Class: Dodopayments::Models::WebhookPayload::Data::CreditBalanceLow

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

Defined Under Namespace

Modules: PayloadType

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(available_balance:, credit_entitlement_id:, credit_entitlement_name:, customer_id:, payload_type:, subscription_credits_amount:, subscription_id:, threshold_amount:, threshold_percent:) ⇒ Object

Parameters:



# File 'lib/dodopayments/models/webhook_payload.rb', line 236

Instance Attribute Details

#available_balanceString

Returns:

  • (String)


194
# File 'lib/dodopayments/models/webhook_payload.rb', line 194

required :available_balance, String

#credit_entitlement_idString

Returns:

  • (String)


199
# File 'lib/dodopayments/models/webhook_payload.rb', line 199

required :credit_entitlement_id, String

#credit_entitlement_nameString

Returns:

  • (String)


204
# File 'lib/dodopayments/models/webhook_payload.rb', line 204

required :credit_entitlement_name, String

#customer_idString

Returns:

  • (String)


209
# File 'lib/dodopayments/models/webhook_payload.rb', line 209

required :customer_id, String

#payload_typeSymbol, Dodopayments::Models::WebhookPayload::Data::CreditBalanceLow::PayloadType



214
# File 'lib/dodopayments/models/webhook_payload.rb', line 214

required :payload_type, enum: -> { Dodopayments::WebhookPayload::Data::CreditBalanceLow::PayloadType }

#subscription_credits_amountString

Returns:

  • (String)


219
# File 'lib/dodopayments/models/webhook_payload.rb', line 219

required :subscription_credits_amount, String

#subscription_idString

Returns:

  • (String)


224
# File 'lib/dodopayments/models/webhook_payload.rb', line 224

required :subscription_id, String

#threshold_amountString

Returns:

  • (String)


229
# File 'lib/dodopayments/models/webhook_payload.rb', line 229

required :threshold_amount, String

#threshold_percentInteger

Returns:

  • (Integer)


234
# File 'lib/dodopayments/models/webhook_payload.rb', line 234

required :threshold_percent, Integer