Class: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings
- Defined in:
- lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb
Defined Under Namespace
Modules: InvoiceDate
Instance Attribute Summary collapse
-
#auto_collection ⇒ Boolean
Whether the credits purchase invoice should auto collect with the customer’s saved payment method.
-
#invoice_date ⇒ Date, ...
An ISO 8601 format date that denotes when this invoice should be dated in the customer’s timezone.
-
#memo ⇒ String?
An optional memo to display on the invoice.
-
#net_terms ⇒ Integer?
The net terms determines the difference between the invoice date and the issue date for the invoice.
-
#require_successful_payment ⇒ Boolean?
If true, the new credit block will require that the corresponding invoice is paid before it can be drawn down from.
Instance Method Summary collapse
-
#initialize(auto_collection: , net_terms: , invoice_date: nil, memo: nil, require_successful_payment: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see InvoiceSettings for more details.
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(auto_collection: , net_terms: , invoice_date: nil, memo: nil, require_successful_payment: nil) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings for more details.
Passing ‘invoice_settings` automatically generates an invoice for the newly added credits. If `invoice_settings` is passed, you must specify per_unit_cost_basis, as the calculation of the invoice total is done on that basis.
|
|
# File 'lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb', line 181
|
Instance Attribute Details
#auto_collection ⇒ Boolean
Whether the credits purchase invoice should auto collect with the customer’s saved payment method.
146 |
# File 'lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb', line 146 required :auto_collection, Orb::Internal::Type::Boolean |
#invoice_date ⇒ Date, ...
An ISO 8601 format date that denotes when this invoice should be dated in the customer’s timezone. If not provided, the invoice date will default to the credit block’s effective date.
162 163 164 165 166 |
# File 'lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb', line 162 optional :invoice_date, union: -> { Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::InvoiceDate }, nil?: true |
#memo ⇒ String?
An optional memo to display on the invoice.
172 |
# File 'lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb', line 172 optional :memo, String, nil?: true |
#net_terms ⇒ Integer?
The net terms determines the difference between the invoice date and the issue date for the invoice. If you intend the invoice to be due on issue, set this to 0.
154 |
# File 'lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb', line 154 required :net_terms, Integer, nil?: true |
#require_successful_payment ⇒ Boolean?
If true, the new credit block will require that the corresponding invoice is paid before it can be drawn down from.
179 |
# File 'lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb', line 179 optional :require_successful_payment, Orb::Internal::Type::Boolean |