Class: Orb::Models::SubscriptionUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/orb/models/subscription_update_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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: nil, default_invoice_memo: nil, invoicing_threshold: nil, metadata: nil, net_terms: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Orb::Models::SubscriptionUpdateParams for more details.

Parameters:

  • auto_collection (Boolean, nil) (defaults to: nil)

    Determines whether issued invoices for this subscription will automatically be c

  • default_invoice_memo (String, nil) (defaults to: nil)

    Determines the default memo on this subscription’s invoices. Note that if this i

  • invoicing_threshold (String, nil) (defaults to: nil)

    When this subscription’s accrued usage reaches this threshold, an invoice will b

  • metadata (Hash{Symbol=>String, nil}, nil) (defaults to: nil)

    User-specified key/value pairs for the resource. Individual keys can be removed

  • net_terms (Integer, nil) (defaults to: nil)

    Determines the difference between the invoice issue date for subscription invoic

  • request_options (Orb::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/orb/models/subscription_update_params.rb', line 50

Instance Attribute Details

#auto_collectionBoolean?

Determines whether issued invoices for this subscription will automatically be charged with the saved payment method on the due date. This property defaults to the plan’s behavior.

Returns:

  • (Boolean, nil)


16
# File 'lib/orb/models/subscription_update_params.rb', line 16

optional :auto_collection, Orb::Internal::Type::Boolean, nil?: true

#default_invoice_memoString?

Determines the default memo on this subscription’s invoices. Note that if this is not provided, it is determined by the plan configuration.

Returns:

  • (String, nil)


23
# File 'lib/orb/models/subscription_update_params.rb', line 23

optional :default_invoice_memo, String, nil?: true

#invoicing_thresholdString?

When this subscription’s accrued usage reaches this threshold, an invoice will be issued for the subscription. If not specified, invoices will only be issued at the end of the billing period.

Returns:

  • (String, nil)


31
# File 'lib/orb/models/subscription_update_params.rb', line 31

optional :invoicing_threshold, String, nil?: true

#metadataHash{Symbol=>String, nil}?

User-specified key/value pairs for the resource. Individual keys can be removed by setting the value to ‘null`, and the entire metadata mapping can be cleared by setting `metadata` to `null`.

Returns:

  • (Hash{Symbol=>String, nil}, nil)


39
# File 'lib/orb/models/subscription_update_params.rb', line 39

optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true

#net_termsInteger?

Determines the difference between the invoice issue date for subscription invoices as the date that they are due. A value of ‘0` here represents that the invoice is due on issue, whereas a value of `30` represents that the customer has a month to pay the invoice.

Returns:

  • (Integer, nil)


48
# File 'lib/orb/models/subscription_update_params.rb', line 48

optional :net_terms, Integer, nil?: true