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:, has_license_key:, metadata:, payment_id:, total_amount:, dispute_status: nil, invoice_id: nil, invoice_url: nil, payment_method: nil, payment_method_type: nil, refund_status: nil, status: nil, subscription_id: nil) ⇒ Object

Some parameter documentations has been truncated, see Dodopayments::Models::PaymentListResponse for more details.

Parameters:

  • brand_id (String)
  • created_at (Time)
  • currency (Symbol, Dodopayments::Models::Currency)
  • customer (Dodopayments::Models::CustomerLimitedDetails)
  • digital_products_delivered (Boolean)
  • has_license_key (Boolean)
  • metadata (Hash{Symbol=>String})
  • payment_id (String)
  • total_amount (Integer)
  • dispute_status (Symbol, Dodopayments::Models::DisputeStatus, nil) (defaults to: nil)

    The most recent dispute status for this payment. None if no disputes exist.

  • invoice_id (String, nil) (defaults to: nil)

    Invoice ID for this payment. Uses India-specific invoice ID if available.

  • invoice_url (String, nil) (defaults to: nil)

    URL to download the invoice PDF for this payment.

  • payment_method (String, nil) (defaults to: nil)
  • payment_method_type (String, nil) (defaults to: nil)
  • refund_status (Symbol, Dodopayments::Models::PaymentRefundStatus, nil) (defaults to: nil)

    Summary of the refund status for this payment. None if no succeeded refunds exis

  • 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 97

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

#dispute_statusSymbol, ...

The most recent dispute status for this payment. None if no disputes exist.

Returns:



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

optional :dispute_status, enum: -> { Dodopayments::DisputeStatus }, nil?: true

#has_license_keyBoolean

Returns:

  • (Boolean)


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

required :has_license_key, Dodopayments::Internal::Type::Boolean

#invoice_idString?

Invoice ID for this payment. Uses India-specific invoice ID if available.

Returns:

  • (String, nil)


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

optional :invoice_id, String, nil?: true

#invoice_urlString?

URL to download the invoice PDF for this payment.

Returns:

  • (String, nil)


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

optional :invoice_url, String, nil?: true

#metadataHash{Symbol=>String}

Returns:

  • (Hash{Symbol=>String})


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

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

#payment_idString

Returns:

  • (String)


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

required :payment_id, String

#payment_methodString?

Returns:

  • (String, nil)


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

optional :payment_method, String, nil?: true

#payment_method_typeString?

Returns:

  • (String, nil)


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

optional :payment_method_type, String, nil?: true

#refund_statusSymbol, ...

Summary of the refund status for this payment. None if no succeeded refunds exist.



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

optional :refund_status, enum: -> { Dodopayments::PaymentRefundStatus }, nil?: true

#statusSymbol, ...

Returns:



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

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

#subscription_idString?

Returns:

  • (String, nil)


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

optional :subscription_id, String, nil?: true

#total_amountInteger

Returns:

  • (Integer)


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

required :total_amount, Integer