Class: Stripe::SourceUpdateParams::Mandate::Acceptance

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/source_update_params.rb

Defined Under Namespace

Classes: Offline, Online

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(date: nil, ip: nil, offline: nil, online: nil, status: nil, type: nil, user_agent: nil) ⇒ Acceptance

Returns a new instance of Acceptance.



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/stripe/params/source_update_params.rb', line 46

def initialize(
  date: nil,
  ip: nil,
  offline: nil,
  online: nil,
  status: nil,
  type: nil,
  user_agent: nil
)
  @date = date
  @ip = ip
  @offline = offline
  @online = online
  @status = status
  @type = type
  @user_agent = user_agent
end

Instance Attribute Details

#dateObject

The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer.



32
33
34
# File 'lib/stripe/params/source_update_params.rb', line 32

def date
  @date
end

#ipObject

The IP address from which the mandate was accepted or refused by the customer.



34
35
36
# File 'lib/stripe/params/source_update_params.rb', line 34

def ip
  @ip
end

#offlineObject

The parameters required to store a mandate accepted offline. Should only be set if ‘mandate` is `offline`



36
37
38
# File 'lib/stripe/params/source_update_params.rb', line 36

def offline
  @offline
end

#onlineObject

The parameters required to store a mandate accepted online. Should only be set if ‘mandate` is `online`



38
39
40
# File 'lib/stripe/params/source_update_params.rb', line 38

def online
  @online
end

#statusObject

The status of the mandate acceptance. Either ‘accepted` (the mandate was accepted) or `refused` (the mandate was refused).



40
41
42
# File 'lib/stripe/params/source_update_params.rb', line 40

def status
  @status
end

#typeObject

The type of acceptance information included with the mandate. Either ‘online` or `offline`



42
43
44
# File 'lib/stripe/params/source_update_params.rb', line 42

def type
  @type
end

#user_agentObject

The user agent of the browser from which the mandate was accepted or refused by the customer.



44
45
46
# File 'lib/stripe/params/source_update_params.rb', line 44

def user_agent
  @user_agent
end