Class: Sink::Models::Card
- Defined in:
- lib/sink/models/card.rb
Defined Under Namespace
Classes: SpendLimitDuration, State, Type
Instance Attribute Summary collapse
-
#auth_rule_tokens ⇒ Array<String>
List of identifiers for the Auth Rule(s) that are applied on the card.
-
#created ⇒ Time
An ISO 8601 timestamp for when the card was created.
-
#cvv ⇒ String
Three digit cvv printed on the back of the card.
-
#exp_month ⇒ String
Two digit (MM) expiry month.
-
#exp_year ⇒ String
Four digit (yyyy) expiry year.
- #funding ⇒ Sink::Models::FundingAccount
-
#hostname ⇒ String
Hostname of card’s locked merchant (will be empty if not applicable).
-
#last_four ⇒ String
Last four digits of the card number.
-
#memo ⇒ String
Friendly name to identify the card.
-
#pan ⇒ String
Primary Account Number (PAN) (i.e. the card number).
-
#spend_limit ⇒ Integer
Amount (in cents) to limit approved authorizations.
-
#spend_limit_duration ⇒ Object
Spend limit duration values:.
-
#state ⇒ Object
Card state values:.
-
#token ⇒ String
Globally unique identifier.
-
#type ⇒ Object
Card types:.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Card
constructor
Create a new instance of Card from a Hash of raw data.
Methods inherited from BaseModel
#[], #deconstruct_keys, #inspect, #to_h, #to_s
Constructor Details
#initialize(data = {}) ⇒ Card
Create a new instance of Card from a Hash of raw data.
65 |
# File 'lib/sink/models/card.rb', line 65 def initialize(data = {}) = super |
Instance Attribute Details
#auth_rule_tokens ⇒ Array<String>
List of identifiers for the Auth Rule(s) that are applied on the card.
67 |
# File 'lib/sink/models/card.rb', line 67 optional :auth_rule_tokens, Sink::ArrayOf.new(String) |
#created ⇒ Time
An ISO 8601 timestamp for when the card was created. UTC time zone.
14 |
# File 'lib/sink/models/card.rb', line 14 required :created, Time |
#cvv ⇒ String
Three digit cvv printed on the back of the card.
72 |
# File 'lib/sink/models/card.rb', line 72 optional :cvv, String |
#exp_month ⇒ String
Two digit (MM) expiry month.
77 |
# File 'lib/sink/models/card.rb', line 77 optional :exp_month, String |
#exp_year ⇒ String
Four digit (yyyy) expiry year.
82 |
# File 'lib/sink/models/card.rb', line 82 optional :exp_year, String |
#funding ⇒ Sink::Models::FundingAccount
18 |
# File 'lib/sink/models/card.rb', line 18 required :funding, -> { Sink::Models::FundingAccount } |
#hostname ⇒ String
Hostname of card’s locked merchant (will be empty if not applicable).
87 |
# File 'lib/sink/models/card.rb', line 87 optional :hostname, String |
#last_four ⇒ String
Last four digits of the card number.
23 |
# File 'lib/sink/models/card.rb', line 23 required :last_four, String, api_name: :lastFour |
#memo ⇒ String
Friendly name to identify the card.
92 |
# File 'lib/sink/models/card.rb', line 92 optional :memo, String |
#pan ⇒ String
Primary Account Number (PAN) (i.e. the card number). Customers must be PCI compliant to have PAN returned as a field in production. Please contact [[email protected]]([email protected]) for questions.
98 |
# File 'lib/sink/models/card.rb', line 98 optional :pan, String |
#spend_limit ⇒ Integer
Amount (in cents) to limit approved authorizations. Transaction requests above the spend limit will be declined.
28 |
# File 'lib/sink/models/card.rb', line 28 required :spend_limit, Integer |
#spend_limit_duration ⇒ Object
Spend limit duration values:
38 |
# File 'lib/sink/models/card.rb', line 38 required :spend_limit_duration, enum: -> { Sink::Models::Card::SpendLimitDuration } |
#state ⇒ Object
Card state values:
51 |
# File 'lib/sink/models/card.rb', line 51 required :state, enum: -> { Sink::Models::Card::State } |
#token ⇒ String
Globally unique identifier.
9 |
# File 'lib/sink/models/card.rb', line 9 required :token, String |