Class: Dodopayments::Models::SubscriptionChargeParams::CustomerBalanceConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/subscription_charge_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

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

    Allows Customer Credit to be purchased to settle payments

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

    Allows Customer Credit Balance to be used to settle payments



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_purchaseBoolean?

Allows Customer Credit to be purchased to settle payments

Returns:

  • (Boolean, nil)


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_usageBoolean?

Allows Customer Credit Balance to be used to settle payments

Returns:

  • (Boolean, nil)


83
# File 'lib/dodopayments/models/subscription_charge_params.rb', line 83

optional :allow_customer_credits_usage, Dodopayments::Internal::Type::Boolean, nil?: true