Class: Dodopayments::Models::SubscriptionChargeParams::CustomerBalanceConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::SubscriptionChargeParams::CustomerBalanceConfig
- Defined in:
- lib/dodopayments/models/subscription_charge_params.rb
Instance Attribute Summary collapse
-
#allow_customer_credits_purchase ⇒ Boolean?
Allows Customer Credit to be purchased to settle payments.
-
#allow_customer_credits_usage ⇒ Boolean?
Allows Customer Credit Balance to be used to settle payments.
Instance Method Summary collapse
-
#initialize(allow_customer_credits_purchase: nil, allow_customer_credits_usage: nil) ⇒ Object
constructor
Specify how customer balance is used for the payment.
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(allow_customer_credits_purchase: nil, allow_customer_credits_usage: nil) ⇒ Object
Specify how customer balance is used for the payment
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/dodopayments/models/subscription_charge_params.rb', line 72 class CustomerBalanceConfig < Dodopayments::Internal::Type::BaseModel # @!attribute allow_customer_credits_purchase # Allows Customer Credit to be purchased to settle payments # # @return [Boolean, nil] optional :allow_customer_credits_purchase, Dodopayments::Internal::Type::Boolean, nil?: true # @!attribute allow_customer_credits_usage # Allows Customer Credit Balance to be used to settle payments # # @return [Boolean, nil] optional :allow_customer_credits_usage, Dodopayments::Internal::Type::Boolean, nil?: true # @!method initialize(allow_customer_credits_purchase: nil, allow_customer_credits_usage: nil) # Specify how customer balance is used for the payment # # @param allow_customer_credits_purchase [Boolean, nil] Allows Customer Credit to be purchased to settle payments # # @param allow_customer_credits_usage [Boolean, nil] Allows Customer Credit Balance to be used to settle payments end |
Instance Attribute Details
#allow_customer_credits_purchase ⇒ Boolean?
Allows Customer Credit to be purchased to settle payments
77 |
# File 'lib/dodopayments/models/subscription_charge_params.rb', line 77 optional :allow_customer_credits_purchase, Dodopayments::Internal::Type::Boolean, nil?: true |
#allow_customer_credits_usage ⇒ Boolean?
Allows Customer Credit Balance to be used to settle payments
83 |
# File 'lib/dodopayments/models/subscription_charge_params.rb', line 83 optional :allow_customer_credits_usage, Dodopayments::Internal::Type::Boolean, nil?: true |