Class: Increase::Models::Transaction::Source::CardRefund::PurchaseDetails

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/transaction.rb

Overview

See Also:

Defined Under Namespace

Modules: PurchaseIdentifierFormat Classes: CarRental, Lodging, Travel

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(car_rental: , customer_reference_identifier: , local_tax_amount: , local_tax_currency: , lodging: , national_tax_amount: , national_tax_currency: , purchase_identifier: , purchase_identifier_format: , travel: ) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::Transaction::Source::CardRefund::PurchaseDetails for more details.

Additional details about the card purchase, such as tax and industry-specific fields.

Parameters:



# File 'lib/increase/models/transaction.rb', line 2852


Instance Attribute Details

#car_rentalIncrease::Models::Transaction::Source::CardRefund::PurchaseDetails::CarRental?

Fields specific to car rentals.



2780
2781
2782
# File 'lib/increase/models/transaction.rb', line 2780

required :car_rental,
-> { Increase::Transaction::Source::CardRefund::PurchaseDetails::CarRental },
nil?: true

#customer_reference_identifierString?

An identifier from the merchant for the customer or consumer.

Returns:

  • (String, nil)


2788
# File 'lib/increase/models/transaction.rb', line 2788

required :customer_reference_identifier, String, nil?: true

#local_tax_amountInteger?

The state or provincial tax amount in minor units.

Returns:

  • (Integer, nil)


2794
# File 'lib/increase/models/transaction.rb', line 2794

required :local_tax_amount, Integer, nil?: true

#local_tax_currencyString?

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the local tax assessed.

Returns:

  • (String, nil)


2801
# File 'lib/increase/models/transaction.rb', line 2801

required :local_tax_currency, String, nil?: true

#lodgingIncrease::Models::Transaction::Source::CardRefund::PurchaseDetails::Lodging?

Fields specific to lodging.



2807
2808
2809
2810
2811
# File 'lib/increase/models/transaction.rb', line 2807

required :lodging,
-> {
  Increase::Transaction::Source::CardRefund::PurchaseDetails::Lodging
},
nil?: true

#national_tax_amountInteger?

The national tax amount in minor units.

Returns:

  • (Integer, nil)


2817
# File 'lib/increase/models/transaction.rb', line 2817

required :national_tax_amount, Integer, nil?: true

#national_tax_currencyString?

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the local tax assessed.

Returns:

  • (String, nil)


2824
# File 'lib/increase/models/transaction.rb', line 2824

required :national_tax_currency, String, nil?: true

#purchase_identifierString?

An identifier from the merchant for the purchase to the issuer and cardholder.

Returns:

  • (String, nil)


2830
# File 'lib/increase/models/transaction.rb', line 2830

required :purchase_identifier, String, nil?: true

#purchase_identifier_formatSymbol, ...

The format of the purchase identifier.



2836
2837
2838
2839
2840
# File 'lib/increase/models/transaction.rb', line 2836

required :purchase_identifier_format,
enum: -> {
  Increase::Transaction::Source::CardRefund::PurchaseDetails::PurchaseIdentifierFormat
},
nil?: true

#travelIncrease::Models::Transaction::Source::CardRefund::PurchaseDetails::Travel?

Fields specific to travel.



2846
2847
2848
2849
2850
# File 'lib/increase/models/transaction.rb', line 2846

required :travel,
-> {
  Increase::Transaction::Source::CardRefund::PurchaseDetails::Travel
},
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/transaction.rb', line 3074