Class: Stripe::ChargeService::CaptureParams::TransferData

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/charge_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil) ⇒ TransferData

Returns a new instance of TransferData.



360
361
362
# File 'lib/stripe/services/charge_service.rb', line 360

def initialize(amount: nil)
  @amount = amount
end

Instance Attribute Details

#amountObject

The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.



358
359
360
# File 'lib/stripe/services/charge_service.rb', line 358

def amount
  @amount
end