Class: Increase::Models::CardPayment::Element

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/increase/models/card_payment.rb

Defined Under Namespace

Classes: CardAuthorization, CardAuthorizationExpiration, CardDecline, CardFuelConfirmation, CardIncrement, CardRefund, CardReversal, CardSettlement, CardValidation

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #inspect, #to_h, #to_s

Instance Attribute Details

#card_authorizationIncrease::Models::CardPayment::Element::CardAuthorization

A Card Authorization object. This field will be present in the JSON response if and only if category is equal to card_authorization.



55
# File 'lib/increase/models/card_payment.rb', line 55

required :card_authorization, -> { Increase::Models::CardPayment::Element::CardAuthorization }

#card_authorization_expirationIncrease::Models::CardPayment::Element::CardAuthorizationExpiration

A Card Authorization Expiration object. This field will be present in the JSON response if and only if category is equal to card_authorization_expiration.



60
61
# File 'lib/increase/models/card_payment.rb', line 60

required :card_authorization_expiration,
-> { Increase::Models::CardPayment::Element::CardAuthorizationExpiration }

#card_declineIncrease::Models::CardPayment::Element::CardDecline

A Card Decline object. This field will be present in the JSON response if and only if category is equal to card_decline.



66
# File 'lib/increase/models/card_payment.rb', line 66

required :card_decline, -> { Increase::Models::CardPayment::Element::CardDecline }

#card_fuel_confirmationIncrease::Models::CardPayment::Element::CardFuelConfirmation

A Card Fuel Confirmation object. This field will be present in the JSON response if and only if category is equal to card_fuel_confirmation.



71
# File 'lib/increase/models/card_payment.rb', line 71

required :card_fuel_confirmation, -> { Increase::Models::CardPayment::Element::CardFuelConfirmation }

#card_incrementIncrease::Models::CardPayment::Element::CardIncrement

A Card Increment object. This field will be present in the JSON response if and only if category is equal to card_increment.



76
# File 'lib/increase/models/card_payment.rb', line 76

required :card_increment, -> { Increase::Models::CardPayment::Element::CardIncrement }

#card_refundIncrease::Models::CardPayment::Element::CardRefund

A Card Refund object. This field will be present in the JSON response if and only if category is equal to card_refund.



81
# File 'lib/increase/models/card_payment.rb', line 81

required :card_refund, -> { Increase::Models::CardPayment::Element::CardRefund }

#card_reversalIncrease::Models::CardPayment::Element::CardReversal

A Card Reversal object. This field will be present in the JSON response if and only if category is equal to card_reversal.



86
# File 'lib/increase/models/card_payment.rb', line 86

required :card_reversal, -> { Increase::Models::CardPayment::Element::CardReversal }

#card_settlementIncrease::Models::CardPayment::Element::CardSettlement

A Card Settlement object. This field will be present in the JSON response if and only if category is equal to card_settlement.



91
# File 'lib/increase/models/card_payment.rb', line 91

required :card_settlement, -> { Increase::Models::CardPayment::Element::CardSettlement }

#card_validationIncrease::Models::CardPayment::Element::CardValidation

A Card Validation object. This field will be present in the JSON response if and only if category is equal to card_validation.



96
# File 'lib/increase/models/card_payment.rb', line 96

required :card_validation, -> { Increase::Models::CardPayment::Element::CardValidation }

#categorySymbol

The type of the resource. We may add additional possible values for this enum over time; your application should be able to handle such additions gracefully.

Returns:

  • (Symbol)


101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/increase/models/card_payment.rb', line 101

required :category,
Increase::Enum.new(
  :card_authorization,
  :card_validation,
  :card_decline,
  :card_reversal,
  :card_authorization_expiration,
  :card_increment,
  :card_settlement,
  :card_refund,
  :card_fuel_confirmation,
  :other
)

#created_atString

The ISO 8601 date and time at which the card payment element was created.

Returns:

  • (String)


118
# File 'lib/increase/models/card_payment.rb', line 118

required :created_at, String