Class: Stripe::Treasury::ReceivedCreditCreateParams

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

Defined Under Namespace

Classes: InitiatingPaymentMethodDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, currency: nil, description: nil, expand: nil, financial_account: nil, initiating_payment_method_details: nil, network: nil) ⇒ ReceivedCreditCreateParams



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

def initialize(
  amount: nil,
  currency: nil,
  description: nil,
  expand: nil,
  financial_account: nil,
  initiating_payment_method_details: nil,
  network: nil
)
  @amount = amount
  @currency = currency
  @description = description
  @expand = expand
   = 
  @initiating_payment_method_details = initiating_payment_method_details
  @network = network
end

Instance Attribute Details

#amountObject

Amount (in cents) to be transferred.



33
34
35
# File 'lib/stripe/params/treasury/received_credit_create_params.rb', line 33

def amount
  @amount
end

#currencyObject

Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).



35
36
37
# File 'lib/stripe/params/treasury/received_credit_create_params.rb', line 35

def currency
  @currency
end

#descriptionObject

An arbitrary string attached to the object. Often useful for displaying to users.



37
38
39
# File 'lib/stripe/params/treasury/received_credit_create_params.rb', line 37

def description
  @description
end

#expandObject

Specifies which fields in the response should be expanded.



39
40
41
# File 'lib/stripe/params/treasury/received_credit_create_params.rb', line 39

def expand
  @expand
end

#financial_accountObject

The FinancialAccount to send funds to.



41
42
43
# File 'lib/stripe/params/treasury/received_credit_create_params.rb', line 41

def 
  
end

#initiating_payment_method_detailsObject

Initiating payment method details for the object.



43
44
45
# File 'lib/stripe/params/treasury/received_credit_create_params.rb', line 43

def initiating_payment_method_details
  @initiating_payment_method_details
end

#networkObject

Specifies the network rails to be used. If not set, will default to the PaymentMethod’s preferred network. See the [docs](stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.



45
46
47
# File 'lib/stripe/params/treasury/received_credit_create_params.rb', line 45

def network
  @network
end