Class: MetronomeSDK::Models::V1::Customers::InvoiceAddChargeParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::Customers::InvoiceAddChargeParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/metronome_sdk/models/v1/customers/invoice_add_charge_params.rb
Overview
Instance Attribute Summary collapse
-
#charge_id ⇒ String
The Metronome ID of the charge to add to the invoice.
- #customer_id ⇒ String
-
#customer_plan_id ⇒ String
The Metronome ID of the customer plan to add the charge to.
- #description ⇒ String
-
#invoice_start_timestamp ⇒ Time
The start_timestamp of the invoice to add the charge to.
-
#price ⇒ Float
The price of the charge.
- #quantity ⇒ Float
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(customer_id: , charge_id: , customer_plan_id: , description: , invoice_start_timestamp: , price: , quantity: , request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see InvoiceAddChargeParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(customer_id: , charge_id: , customer_plan_id: , description: , invoice_start_timestamp: , price: , quantity: , request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::Customers::InvoiceAddChargeParams for more details.
|
|
# File 'lib/metronome_sdk/models/v1/customers/invoice_add_charge_params.rb', line 54
|
Instance Attribute Details
#charge_id ⇒ String
The Metronome ID of the charge to add to the invoice. Note that the charge must be on a product that is not on the current plan, and the product must have only fixed charges.
23 |
# File 'lib/metronome_sdk/models/v1/customers/invoice_add_charge_params.rb', line 23 required :charge_id, String |
#customer_id ⇒ String
15 |
# File 'lib/metronome_sdk/models/v1/customers/invoice_add_charge_params.rb', line 15 required :customer_id, String |
#customer_plan_id ⇒ String
The Metronome ID of the customer plan to add the charge to.
29 |
# File 'lib/metronome_sdk/models/v1/customers/invoice_add_charge_params.rb', line 29 required :customer_plan_id, String |
#description ⇒ String
34 |
# File 'lib/metronome_sdk/models/v1/customers/invoice_add_charge_params.rb', line 34 required :description, String |
#invoice_start_timestamp ⇒ Time
The start_timestamp of the invoice to add the charge to.
40 |
# File 'lib/metronome_sdk/models/v1/customers/invoice_add_charge_params.rb', line 40 required :invoice_start_timestamp, Time |
#price ⇒ Float
The price of the charge. This price will match the currency on the invoice, e.g. USD cents.
47 |
# File 'lib/metronome_sdk/models/v1/customers/invoice_add_charge_params.rb', line 47 required :price, Float |
#quantity ⇒ Float
52 |
# File 'lib/metronome_sdk/models/v1/customers/invoice_add_charge_params.rb', line 52 required :quantity, Float |