Class: Dodopayments::Models::PaymentListResponse

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

Overview

Defined Under Namespace

Modules: PaymentProvider

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:, payment_provider:, total_amount:, card_last_four: nil, card_network: nil, 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)
  • payment_provider (Symbol, Dodopayments::Models::PaymentListResponse::PaymentProvider)

    Which processor handled this payment. ‘stripe` / `adyen` for BYOP routes

  • total_amount (Integer)
  • card_last_four (String, nil) (defaults to: nil)

    The last four digits of the card

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

    Card network like VISA, MASTERCARD etc.

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

Instance Attribute Details

#brand_idString

Returns:

  • (String)


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

required :brand_id, String

#card_last_fourString?

The last four digits of the card

Returns:

  • (String, nil)


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

optional :card_last_four, String, nil?: true

#card_networkString?

Card network like VISA, MASTERCARD etc.

Returns:

  • (String, nil)


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

optional :card_network, String, nil?: true

#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:



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

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)


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

optional :invoice_id, String, nil?: true

#invoice_urlString?

URL to download the invoice PDF for this payment.

Returns:

  • (String, nil)


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

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)


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

optional :payment_method, String, nil?: true

#payment_method_typeString?

Returns:

  • (String, nil)


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

optional :payment_method_type, String, nil?: true

#payment_providerSymbol, Dodopayments::Models::PaymentListResponse::PaymentProvider

Which processor handled this payment. ‘stripe` / `adyen` for BYOP routes (the merchant’s own Hyperswitch connector); ‘dodo` for everything Dodo processed itself.



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

required :payment_provider, enum: -> { Dodopayments::Models::PaymentListResponse::PaymentProvider }

#refund_statusSymbol, ...

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



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

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

#statusSymbol, ...

Returns:



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

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

#subscription_idString?

Returns:

  • (String, nil)


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

optional :subscription_id, String, nil?: true

#total_amountInteger

Returns:

  • (Integer)


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

required :total_amount, Integer