Class: Dodopayments::Models::PaymentListResponse

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

Overview

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(brand_id: , created_at: , currency: , customer: , digital_products_delivered: , metadata: , payment_id: , total_amount: , payment_method: nil, payment_method_type: nil, status: nil, subscription_id: nil) ⇒ Object

Parameters:

  • brand_id (String) (defaults to: )
  • created_at (Time) (defaults to: )
  • currency (Symbol, Dodopayments::Models::Currency) (defaults to: )
  • customer (Dodopayments::Models::CustomerLimitedDetails) (defaults to: )
  • digital_products_delivered (Boolean) (defaults to: )
  • metadata (Hash{Symbol=>String}) (defaults to: )
  • payment_id (String) (defaults to: )
  • total_amount (Integer) (defaults to: )
  • payment_method (String, nil) (defaults to: nil)
  • payment_method_type (String, nil) (defaults to: nil)
  • status (Symbol, Dodopayments::Models::IntentStatus, nil) (defaults to: nil)
  • subscription_id (String, nil) (defaults to: nil)


# File 'lib/dodopayments/models/payment_list_response.rb', line 67

Instance Attribute Details

#brand_idString

Returns:

  • (String)


10
# File 'lib/dodopayments/models/payment_list_response.rb', line 10

required :brand_id, String

#created_atTime

Returns:

  • (Time)


15
# File 'lib/dodopayments/models/payment_list_response.rb', line 15

required :created_at, Time

#currencySymbol, Dodopayments::Models::Currency

Returns:



20
# File 'lib/dodopayments/models/payment_list_response.rb', line 20

required :currency, enum: -> { Dodopayments::Currency }

#customerDodopayments::Models::CustomerLimitedDetails



25
# File 'lib/dodopayments/models/payment_list_response.rb', line 25

required :customer, -> { Dodopayments::CustomerLimitedDetails }

#digital_products_deliveredBoolean

Returns:

  • (Boolean)


30
# File 'lib/dodopayments/models/payment_list_response.rb', line 30

required :digital_products_delivered, Dodopayments::Internal::Type::Boolean

#metadataHash{Symbol=>String}

Returns:

  • (Hash{Symbol=>String})


35
# File 'lib/dodopayments/models/payment_list_response.rb', line 35

required :metadata, Dodopayments::Internal::Type::HashOf[String]

#payment_idString

Returns:

  • (String)


40
# File 'lib/dodopayments/models/payment_list_response.rb', line 40

required :payment_id, String

#payment_methodString?

Returns:

  • (String, nil)


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

optional :payment_method, String, nil?: true

#payment_method_typeString?

Returns:

  • (String, nil)


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

optional :payment_method_type, String, nil?: true

#statusSymbol, ...

Returns:



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

optional :status, enum: -> { Dodopayments::IntentStatus }, nil?: true

#subscription_idString?

Returns:

  • (String, nil)


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

optional :subscription_id, String, nil?: true

#total_amountInteger

Returns:

  • (Integer)


45
# File 'lib/dodopayments/models/payment_list_response.rb', line 45

required :total_amount, Integer