Class: Stripe::Tax::TransactionCreateFromCalculationParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Tax::TransactionCreateFromCalculationParams
- Defined in:
- lib/stripe/params/tax/transaction_create_from_calculation_params.rb
Instance Attribute Summary collapse
-
#calculation ⇒ Object
Tax Calculation ID to be used as input when creating the transaction.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#posted_at ⇒ Object
The Unix timestamp representing when the tax liability is assumed or reduced, which determines the liability posting period and handling in tax liability reports.
-
#reference ⇒ Object
A custom order or sale identifier, such as ‘myOrder_123’.
Instance Method Summary collapse
-
#initialize(calculation: nil, expand: nil, metadata: nil, posted_at: nil, reference: nil) ⇒ TransactionCreateFromCalculationParams
constructor
A new instance of TransactionCreateFromCalculationParams.
Methods inherited from RequestParams
Constructor Details
#initialize(calculation: nil, expand: nil, metadata: nil, posted_at: nil, reference: nil) ⇒ TransactionCreateFromCalculationParams
Returns a new instance of TransactionCreateFromCalculationParams.
18 19 20 21 22 23 24 |
# File 'lib/stripe/params/tax/transaction_create_from_calculation_params.rb', line 18 def initialize(calculation: nil, expand: nil, metadata: nil, posted_at: nil, reference: nil) @calculation = calculation = = @posted_at = posted_at @reference = reference end |
Instance Attribute Details
#calculation ⇒ Object
Tax Calculation ID to be used as input when creating the transaction.
8 9 10 |
# File 'lib/stripe/params/tax/transaction_create_from_calculation_params.rb', line 8 def calculation @calculation end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
10 11 12 |
# File 'lib/stripe/params/tax/transaction_create_from_calculation_params.rb', line 10 def end |
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.
12 13 14 |
# File 'lib/stripe/params/tax/transaction_create_from_calculation_params.rb', line 12 def end |
#posted_at ⇒ Object
The Unix timestamp representing when the tax liability is assumed or reduced, which determines the liability posting period and handling in tax liability reports. The timestamp must fall within the ‘tax_date` and the current time, unless the `tax_date` is scheduled in advance. Defaults to the current time.
14 15 16 |
# File 'lib/stripe/params/tax/transaction_create_from_calculation_params.rb', line 14 def posted_at @posted_at end |
#reference ⇒ Object
A custom order or sale identifier, such as ‘myOrder_123’. Must be unique across all transactions, including reversals.
16 17 18 |
# File 'lib/stripe/params/tax/transaction_create_from_calculation_params.rb', line 16 def reference @reference end |