Class: Orb::Models::Customers::BalanceTransactionCreateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/customers/balance_transaction_create_response.rb

Overview

Defined Under Namespace

Modules: Action, Type

Instance Attribute Summary collapse

Class Method 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(id: , action: , amount: , created_at: , credit_note: , description: , ending_balance: , invoice: , starting_balance: , type: ) ⇒ Object

Some parameter documentations has been truncated, see Orb::Models::Customers::BalanceTransactionCreateResponse for more details.

Parameters:

  • id (String) (defaults to: )

    A unique id for this transaction.

  • action (Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Action) (defaults to: )
  • amount (String) (defaults to: )

    The value of the amount changed in the transaction.

  • created_at (Time) (defaults to: )

    The creation time of this transaction.

  • credit_note (Orb::Models::CreditNoteTiny, nil) (defaults to: )
  • description (String, nil) (defaults to: )

    An optional description provided for manual customer balance adjustments.

  • ending_balance (String) (defaults to: )

    The new value of the customer’s balance prior to the transaction, in the custome

  • invoice (Orb::Models::InvoiceTiny, nil) (defaults to: )
  • starting_balance (String) (defaults to: )

    The original value of the customer’s balance prior to the transaction, in the cu

  • type (Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Type) (defaults to: )


# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 66

Instance Attribute Details

#actionSymbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Action



17
# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 17

required :action, enum: -> { Orb::Models::Customers::BalanceTransactionCreateResponse::Action }

#amountString

The value of the amount changed in the transaction.

Returns:

  • (String)


23
# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 23

required :amount, String

#created_atTime

The creation time of this transaction.

Returns:

  • (Time)


29
# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 29

required :created_at, Time

#credit_noteOrb::Models::CreditNoteTiny?

Returns:



34
# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 34

required :credit_note, -> { Orb::CreditNoteTiny }, nil?: true

#descriptionString?

An optional description provided for manual customer balance adjustments.

Returns:

  • (String, nil)


40
# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 40

required :description, String, nil?: true

#ending_balanceString

The new value of the customer’s balance prior to the transaction, in the customer’s currency.

Returns:

  • (String)


47
# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 47

required :ending_balance, String

#idString

A unique id for this transaction.

Returns:

  • (String)


12
# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 12

required :id, String

#invoiceOrb::Models::InvoiceTiny?

Returns:



52
# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 52

required :invoice, -> { Orb::InvoiceTiny }, nil?: true

#starting_balanceString

The original value of the customer’s balance prior to the transaction, in the customer’s currency.

Returns:

  • (String)


59
# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 59

required :starting_balance, String

#typeSymbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Type



64
# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 64

required :type, enum: -> { Orb::Models::Customers::BalanceTransactionCreateResponse::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/orb/models/customers/balance_transaction_create_response.rb', line 104