Class: Stripe::SourceService::CreateParams::Mandate::Acceptance

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/source_service.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.



330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
# File 'lib/stripe/services/source_service.rb', line 330

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.



316
317
318
# File 'lib/stripe/services/source_service.rb', line 316

def date
  @date
end

#ipObject

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



318
319
320
# File 'lib/stripe/services/source_service.rb', line 318

def ip
  @ip
end

#offlineObject

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



320
321
322
# File 'lib/stripe/services/source_service.rb', line 320

def offline
  @offline
end

#onlineObject

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



322
323
324
# File 'lib/stripe/services/source_service.rb', line 322

def online
  @online
end

#statusObject

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



324
325
326
# File 'lib/stripe/services/source_service.rb', line 324

def status
  @status
end

#typeObject

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



326
327
328
# File 'lib/stripe/services/source_service.rb', line 326

def type
  @type
end

#user_agentObject

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



328
329
330
# File 'lib/stripe/services/source_service.rb', line 328

def user_agent
  @user_agent
end