Class: Dodopayments::Models::RefundListResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/refund_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(business_id: , created_at: , is_partial: , payment_id: , refund_id: , status: , amount: nil, currency: nil, reason: nil) ⇒ Object

Parameters:

  • business_id (String) (defaults to: )

    The unique identifier of the business issuing the refund.

  • created_at (Time) (defaults to: )

    The timestamp of when the refund was created in UTC.

  • is_partial (Boolean) (defaults to: )

    If true the refund is a partial refund

  • payment_id (String) (defaults to: )

    The unique identifier of the payment associated with the refund.

  • refund_id (String) (defaults to: )

    The unique identifier of the refund.

  • status (Symbol, Dodopayments::Models::RefundStatus) (defaults to: )

    The current status of the refund.

  • amount (Integer, nil) (defaults to: nil)

    The refunded amount.

  • currency (Symbol, Dodopayments::Models::Currency, nil) (defaults to: nil)

    The currency of the refund, represented as an ISO 4217 currency code.

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

    The reason provided for the refund, if any. Optional.



# File 'lib/dodopayments/models/refund_list_response.rb', line 61

Instance Attribute Details

#amountInteger?

The refunded amount.

Returns:

  • (Integer, nil)


47
# File 'lib/dodopayments/models/refund_list_response.rb', line 47

optional :amount, Integer, nil?: true

#business_idString

The unique identifier of the business issuing the refund.

Returns:

  • (String)


11
# File 'lib/dodopayments/models/refund_list_response.rb', line 11

required :business_id, String

#created_atTime

The timestamp of when the refund was created in UTC.

Returns:

  • (Time)


17
# File 'lib/dodopayments/models/refund_list_response.rb', line 17

required :created_at, Time

#currencySymbol, ...

The currency of the refund, represented as an ISO 4217 currency code.

Returns:



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

optional :currency, enum: -> { Dodopayments::Currency }, nil?: true

#is_partialBoolean

If true the refund is a partial refund

Returns:

  • (Boolean)


23
# File 'lib/dodopayments/models/refund_list_response.rb', line 23

required :is_partial, Dodopayments::Internal::Type::Boolean

#payment_idString

The unique identifier of the payment associated with the refund.

Returns:

  • (String)


29
# File 'lib/dodopayments/models/refund_list_response.rb', line 29

required :payment_id, String

#reasonString?

The reason provided for the refund, if any. Optional.

Returns:

  • (String, nil)


59
# File 'lib/dodopayments/models/refund_list_response.rb', line 59

optional :reason, String, nil?: true

#refund_idString

The unique identifier of the refund.

Returns:

  • (String)


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

required :refund_id, String

#statusSymbol, Dodopayments::Models::RefundStatus

The current status of the refund.



41
# File 'lib/dodopayments/models/refund_list_response.rb', line 41

required :status, enum: -> { Dodopayments::RefundStatus }