Class: Dodopayments::Models::CreditBalanceLowWebhookEvent::Data

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

Overview

See Also:

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

Webhook payload for credit.balance_low event

Parameters:

  • available_balance (String)
  • brand_id (String)

    Brand id this credit entitlement belongs to

  • credit_entitlement_id (String)
  • credit_entitlement_name (String)
  • customer_id (String)
  • subscription_credits_amount (String)
  • subscription_id (String)
  • threshold_amount (String)
  • threshold_percent (Integer)


# File 'lib/dodopayments/models/credit_balance_low_webhook_event.rb', line 87

Instance Attribute Details

#available_balanceString

Returns:

  • (String)


44
# File 'lib/dodopayments/models/credit_balance_low_webhook_event.rb', line 44

required :available_balance, String

#brand_idString

Brand id this credit entitlement belongs to

Returns:

  • (String)


50
# File 'lib/dodopayments/models/credit_balance_low_webhook_event.rb', line 50

required :brand_id, String

#credit_entitlement_idString

Returns:

  • (String)


55
# File 'lib/dodopayments/models/credit_balance_low_webhook_event.rb', line 55

required :credit_entitlement_id, String

#credit_entitlement_nameString

Returns:

  • (String)


60
# File 'lib/dodopayments/models/credit_balance_low_webhook_event.rb', line 60

required :credit_entitlement_name, String

#customer_idString

Returns:

  • (String)


65
# File 'lib/dodopayments/models/credit_balance_low_webhook_event.rb', line 65

required :customer_id, String

#subscription_credits_amountString

Returns:

  • (String)


70
# File 'lib/dodopayments/models/credit_balance_low_webhook_event.rb', line 70

required :subscription_credits_amount, String

#subscription_idString

Returns:

  • (String)


75
# File 'lib/dodopayments/models/credit_balance_low_webhook_event.rb', line 75

required :subscription_id, String

#threshold_amountString

Returns:

  • (String)


80
# File 'lib/dodopayments/models/credit_balance_low_webhook_event.rb', line 80

required :threshold_amount, String

#threshold_percentInteger

Returns:

  • (Integer)


85
# File 'lib/dodopayments/models/credit_balance_low_webhook_event.rb', line 85

required :threshold_percent, Integer