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 234

Instance Attribute Details

#available_balanceString

Returns:

  • (String)


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

required :available_balance, String

#credit_entitlement_idString

Returns:

  • (String)


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

required :credit_entitlement_id, String

#credit_entitlement_nameString

Returns:

  • (String)


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

required :credit_entitlement_name, String

#customer_idString

Returns:

  • (String)


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

required :customer_id, String

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



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

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

#subscription_credits_amountString

Returns:

  • (String)


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

required :subscription_credits_amount, String

#subscription_idString

Returns:

  • (String)


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

required :subscription_id, String

#threshold_amountString

Returns:

  • (String)


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

required :threshold_amount, String

#threshold_percentInteger

Returns:

  • (Integer)


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

required :threshold_percent, Integer