lithic 0.1.0.pre.alpha.16 → 0.1.0.pre.alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/lithic/models/card.rb +28 -0
- data/lib/lithic/models/{card_list_response.rb → non_pci_card.rb} +29 -29
- data/lib/lithic/resources/cards.rb +16 -16
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -8
- data/rbi/lib/lithic/models/card.rbi +30 -0
- data/rbi/lib/lithic/models/{card_list_response.rbi → non_pci_card.rbi} +59 -60
- data/rbi/lib/lithic/resources/cards.rbi +8 -8
- data/sig/lithic/models/card.rbs +19 -0
- data/sig/lithic/models/{card_list_response.rbs → non_pci_card.rbs} +31 -31
- data/sig/lithic/resources/cards.rbs +8 -8
- metadata +7 -25
- data/lib/lithic/models/card_convert_physical_response.rb +0 -393
- data/lib/lithic/models/card_create_response.rb +0 -392
- data/lib/lithic/models/card_reissue_response.rb +0 -392
- data/lib/lithic/models/card_renew_response.rb +0 -392
- data/lib/lithic/models/card_retrieve_response.rb +0 -392
- data/lib/lithic/models/card_search_by_pan_response.rb +0 -392
- data/lib/lithic/models/card_update_response.rb +0 -392
- data/rbi/lib/lithic/models/card_convert_physical_response.rbi +0 -467
- data/rbi/lib/lithic/models/card_create_response.rbi +0 -458
- data/rbi/lib/lithic/models/card_reissue_response.rbi +0 -458
- data/rbi/lib/lithic/models/card_renew_response.rbi +0 -457
- data/rbi/lib/lithic/models/card_retrieve_response.rbi +0 -459
- data/rbi/lib/lithic/models/card_search_by_pan_response.rbi +0 -461
- data/rbi/lib/lithic/models/card_update_response.rbi +0 -458
- data/sig/lithic/models/card_convert_physical_response.rbs +0 -257
- data/sig/lithic/models/card_create_response.rbs +0 -257
- data/sig/lithic/models/card_reissue_response.rbs +0 -257
- data/sig/lithic/models/card_renew_response.rbs +0 -257
- data/sig/lithic/models/card_retrieve_response.rbs +0 -257
- data/sig/lithic/models/card_search_by_pan_response.rbs +0 -257
- data/sig/lithic/models/card_update_response.rbs +0 -257
@@ -1,392 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Lithic
|
4
|
-
module Models
|
5
|
-
# @see Lithic::Resources::Cards#create
|
6
|
-
class CardCreateResponse < Lithic::Internal::Type::BaseModel
|
7
|
-
# @!attribute token
|
8
|
-
# Globally unique identifier.
|
9
|
-
#
|
10
|
-
# @return [String]
|
11
|
-
required :token, String
|
12
|
-
|
13
|
-
# @!attribute account_token
|
14
|
-
# Globally unique identifier for the account to which the card belongs.
|
15
|
-
#
|
16
|
-
# @return [String]
|
17
|
-
required :account_token, String
|
18
|
-
|
19
|
-
# @!attribute card_program_token
|
20
|
-
# Globally unique identifier for the card program on which the card exists.
|
21
|
-
#
|
22
|
-
# @return [String]
|
23
|
-
required :card_program_token, String
|
24
|
-
|
25
|
-
# @!attribute created
|
26
|
-
# An RFC 3339 timestamp for when the card was created. UTC time zone.
|
27
|
-
#
|
28
|
-
# @return [Time]
|
29
|
-
required :created, Time
|
30
|
-
|
31
|
-
# @!attribute funding
|
32
|
-
# Deprecated: Funding account for the card.
|
33
|
-
#
|
34
|
-
# @return [Lithic::Models::CardCreateResponse::Funding]
|
35
|
-
required :funding, -> { Lithic::Models::CardCreateResponse::Funding }
|
36
|
-
|
37
|
-
# @!attribute last_four
|
38
|
-
# Last four digits of the card number.
|
39
|
-
#
|
40
|
-
# @return [String]
|
41
|
-
required :last_four, String
|
42
|
-
|
43
|
-
# @!attribute pin_status
|
44
|
-
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
45
|
-
# attempts).
|
46
|
-
#
|
47
|
-
# @return [Symbol, Lithic::Models::CardCreateResponse::PinStatus]
|
48
|
-
required :pin_status, enum: -> { Lithic::Models::CardCreateResponse::PinStatus }
|
49
|
-
|
50
|
-
# @!attribute spend_limit
|
51
|
-
# Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
|
52
|
-
# $1,000 limit). Transaction requests above the spend limit will be declined.
|
53
|
-
#
|
54
|
-
# @return [Integer]
|
55
|
-
required :spend_limit, Integer
|
56
|
-
|
57
|
-
# @!attribute spend_limit_duration
|
58
|
-
# Spend limit duration
|
59
|
-
#
|
60
|
-
# @return [Symbol, Lithic::Models::CardCreateResponse::SpendLimitDuration]
|
61
|
-
required :spend_limit_duration, enum: -> { Lithic::Models::CardCreateResponse::SpendLimitDuration }
|
62
|
-
|
63
|
-
# @!attribute state
|
64
|
-
# Card state values: _ `CLOSED` - Card will no longer approve authorizations.
|
65
|
-
# Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
|
66
|
-
# they match card and account parameters). _ `PAUSED` - Card will decline
|
67
|
-
# authorizations, but can be resumed at a later time. _ `PENDING_FULFILLMENT` -
|
68
|
-
# The initial state for cards of type `PHYSICAL`. The card is provisioned pending
|
69
|
-
# manufacturing and fulfillment. Cards in this state can accept authorizations for
|
70
|
-
# e-commerce purchases, but not for "Card Present" purchases where the physical
|
71
|
-
# card itself is present. \* `PENDING_ACTIVATION` - At regular intervals, cards of
|
72
|
-
# type `PHYSICAL` in state `PENDING_FULFILLMENT` are sent to the card production
|
73
|
-
# warehouse and updated to state `PENDING_ACTIVATION`. Similar to
|
74
|
-
# `PENDING_FULFILLMENT`, cards in this state can be used for e-commerce
|
75
|
-
# transactions or can be added to mobile wallets. API clients should update the
|
76
|
-
# card's state to `OPEN` only after the cardholder confirms receipt of the card.
|
77
|
-
# In sandbox, the same daily batch fulfillment occurs, but no cards are actually
|
78
|
-
# manufactured.
|
79
|
-
#
|
80
|
-
# @return [Symbol, Lithic::Models::CardCreateResponse::State]
|
81
|
-
required :state, enum: -> { Lithic::Models::CardCreateResponse::State }
|
82
|
-
|
83
|
-
# @!attribute type
|
84
|
-
# Card types: _ `VIRTUAL` - Card will authorize at any merchant and can be added
|
85
|
-
# to a digital wallet like Apple Pay or Google Pay (if the card program is digital
|
86
|
-
# wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
|
87
|
-
# offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
|
88
|
-
# functionality. _ `SINGLE_USE` - Card is closed upon first successful
|
89
|
-
# authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
|
90
|
-
# merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
|
91
|
-
# Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
|
92
|
-
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
|
93
|
-
# VIRTUAL instead.
|
94
|
-
#
|
95
|
-
# @return [Symbol, Lithic::Models::CardCreateResponse::Type]
|
96
|
-
required :type, enum: -> { Lithic::Models::CardCreateResponse::Type }
|
97
|
-
|
98
|
-
# @!attribute auth_rule_tokens
|
99
|
-
# @deprecated
|
100
|
-
#
|
101
|
-
# List of identifiers for the Auth Rule(s) that are applied on the card. This
|
102
|
-
# field is deprecated and will no longer be populated in the `Card` object. The
|
103
|
-
# key will be removed from the schema in a future release. Use the `/auth_rules`
|
104
|
-
# endpoints to fetch Auth Rule information instead.
|
105
|
-
#
|
106
|
-
# @return [Array<String>, nil]
|
107
|
-
optional :auth_rule_tokens, Lithic::Internal::Type::ArrayOf[String]
|
108
|
-
|
109
|
-
# @!attribute cardholder_currency
|
110
|
-
# 3-character alphabetic ISO 4217 code for the currency of the cardholder.
|
111
|
-
#
|
112
|
-
# @return [String, nil]
|
113
|
-
optional :cardholder_currency, String
|
114
|
-
|
115
|
-
# @!attribute cvv
|
116
|
-
# Three digit cvv printed on the back of the card.
|
117
|
-
#
|
118
|
-
# @return [String, nil]
|
119
|
-
optional :cvv, String
|
120
|
-
|
121
|
-
# @!attribute digital_card_art_token
|
122
|
-
# Specifies the digital card art to be displayed in the user's digital wallet
|
123
|
-
# after tokenization. This artwork must be approved by Mastercard and configured
|
124
|
-
# by Lithic to use.
|
125
|
-
#
|
126
|
-
# @return [String, nil]
|
127
|
-
optional :digital_card_art_token, String
|
128
|
-
|
129
|
-
# @!attribute exp_month
|
130
|
-
# Two digit (MM) expiry month.
|
131
|
-
#
|
132
|
-
# @return [String, nil]
|
133
|
-
optional :exp_month, String
|
134
|
-
|
135
|
-
# @!attribute exp_year
|
136
|
-
# Four digit (yyyy) expiry year.
|
137
|
-
#
|
138
|
-
# @return [String, nil]
|
139
|
-
optional :exp_year, String
|
140
|
-
|
141
|
-
# @!attribute hostname
|
142
|
-
# Hostname of card's locked merchant (will be empty if not applicable).
|
143
|
-
#
|
144
|
-
# @return [String, nil]
|
145
|
-
optional :hostname, String
|
146
|
-
|
147
|
-
# @!attribute memo
|
148
|
-
# Friendly name to identify the card.
|
149
|
-
#
|
150
|
-
# @return [String, nil]
|
151
|
-
optional :memo, String
|
152
|
-
|
153
|
-
# @!attribute pan
|
154
|
-
# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
|
155
|
-
# compliant to have PAN returned as a field in production. Please contact
|
156
|
-
# support@lithic.com for questions.
|
157
|
-
#
|
158
|
-
# @return [String, nil]
|
159
|
-
optional :pan, String
|
160
|
-
|
161
|
-
# @!attribute pending_commands
|
162
|
-
# Indicates if there are offline PIN changes pending card interaction with an
|
163
|
-
# offline PIN terminal. Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable
|
164
|
-
# only to cards issued in markets supporting offline PINs.
|
165
|
-
#
|
166
|
-
# @return [Array<String>, nil]
|
167
|
-
optional :pending_commands, Lithic::Internal::Type::ArrayOf[String]
|
168
|
-
|
169
|
-
# @!attribute product_id
|
170
|
-
# Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic
|
171
|
-
# before use. Specifies the configuration (i.e., physical card art) that the card
|
172
|
-
# should be manufactured with.
|
173
|
-
#
|
174
|
-
# @return [String, nil]
|
175
|
-
optional :product_id, String
|
176
|
-
|
177
|
-
# @!attribute replacement_for
|
178
|
-
# If the card is a replacement for another card, the globally unique identifier
|
179
|
-
# for the card that was replaced.
|
180
|
-
#
|
181
|
-
# @return [String, nil]
|
182
|
-
optional :replacement_for, String, nil?: true
|
183
|
-
|
184
|
-
# @!method initialize(token:, account_token:, card_program_token:, created:, funding:, last_four:, pin_status:, spend_limit:, spend_limit_duration:, state:, type:, auth_rule_tokens: nil, cardholder_currency: nil, cvv: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, hostname: nil, memo: nil, pan: nil, pending_commands: nil, product_id: nil, replacement_for: nil)
|
185
|
-
# Card details with potentially PCI sensitive information for Enterprise customers
|
186
|
-
#
|
187
|
-
# @param token [String]
|
188
|
-
# @param account_token [String]
|
189
|
-
# @param card_program_token [String]
|
190
|
-
# @param created [Time]
|
191
|
-
# @param funding [Lithic::Models::CardCreateResponse::Funding]
|
192
|
-
# @param last_four [String]
|
193
|
-
# @param pin_status [Symbol, Lithic::Models::CardCreateResponse::PinStatus]
|
194
|
-
# @param spend_limit [Integer]
|
195
|
-
# @param spend_limit_duration [Symbol, Lithic::Models::CardCreateResponse::SpendLimitDuration]
|
196
|
-
# @param state [Symbol, Lithic::Models::CardCreateResponse::State]
|
197
|
-
# @param type [Symbol, Lithic::Models::CardCreateResponse::Type]
|
198
|
-
# @param auth_rule_tokens [Array<String>]
|
199
|
-
# @param cardholder_currency [String]
|
200
|
-
# @param cvv [String]
|
201
|
-
# @param digital_card_art_token [String]
|
202
|
-
# @param exp_month [String]
|
203
|
-
# @param exp_year [String]
|
204
|
-
# @param hostname [String]
|
205
|
-
# @param memo [String]
|
206
|
-
# @param pan [String]
|
207
|
-
# @param pending_commands [Array<String>]
|
208
|
-
# @param product_id [String]
|
209
|
-
# @param replacement_for [String, nil]
|
210
|
-
|
211
|
-
# @see Lithic::Models::CardCreateResponse#funding
|
212
|
-
class Funding < Lithic::Internal::Type::BaseModel
|
213
|
-
# @!attribute token
|
214
|
-
# A globally unique identifier for this FundingAccount.
|
215
|
-
#
|
216
|
-
# @return [String]
|
217
|
-
required :token, String
|
218
|
-
|
219
|
-
# @!attribute created
|
220
|
-
# An RFC 3339 string representing when this funding source was added to the Lithic
|
221
|
-
# account. This may be `null`. UTC time zone.
|
222
|
-
#
|
223
|
-
# @return [Time]
|
224
|
-
required :created, Time
|
225
|
-
|
226
|
-
# @!attribute last_four
|
227
|
-
# The last 4 digits of the account (e.g. bank account, debit card) associated with
|
228
|
-
# this FundingAccount. This may be null.
|
229
|
-
#
|
230
|
-
# @return [String]
|
231
|
-
required :last_four, String
|
232
|
-
|
233
|
-
# @!attribute state
|
234
|
-
# State of funding source. Funding source states: _ `ENABLED` - The funding
|
235
|
-
# account is available to use for card creation and transactions. _ `PENDING` -
|
236
|
-
# The funding account is still being verified e.g. bank micro-deposits
|
237
|
-
# verification. \* `DELETED` - The founding account has been deleted.
|
238
|
-
#
|
239
|
-
# @return [Symbol, Lithic::Models::CardCreateResponse::Funding::State]
|
240
|
-
required :state, enum: -> { Lithic::Models::CardCreateResponse::Funding::State }
|
241
|
-
|
242
|
-
# @!attribute type
|
243
|
-
# Types of funding source: _ `DEPOSITORY_CHECKING` - Bank checking account. _
|
244
|
-
# `DEPOSITORY_SAVINGS` - Bank savings account.
|
245
|
-
#
|
246
|
-
# @return [Symbol, Lithic::Models::CardCreateResponse::Funding::Type]
|
247
|
-
required :type, enum: -> { Lithic::Models::CardCreateResponse::Funding::Type }
|
248
|
-
|
249
|
-
# @!attribute account_name
|
250
|
-
# Account name identifying the funding source. This may be `null`.
|
251
|
-
#
|
252
|
-
# @return [String, nil]
|
253
|
-
optional :account_name, String
|
254
|
-
|
255
|
-
# @!attribute nickname
|
256
|
-
# The nickname given to the `FundingAccount` or `null` if it has no nickname.
|
257
|
-
#
|
258
|
-
# @return [String, nil]
|
259
|
-
optional :nickname, String
|
260
|
-
|
261
|
-
# @!method initialize(token:, created:, last_four:, state:, type:, account_name: nil, nickname: nil)
|
262
|
-
# Deprecated: Funding account for the card.
|
263
|
-
#
|
264
|
-
# @param token [String]
|
265
|
-
# @param created [Time]
|
266
|
-
# @param last_four [String]
|
267
|
-
# @param state [Symbol, Lithic::Models::CardCreateResponse::Funding::State]
|
268
|
-
# @param type [Symbol, Lithic::Models::CardCreateResponse::Funding::Type]
|
269
|
-
# @param account_name [String]
|
270
|
-
# @param nickname [String]
|
271
|
-
|
272
|
-
# State of funding source. Funding source states: _ `ENABLED` - The funding
|
273
|
-
# account is available to use for card creation and transactions. _ `PENDING` -
|
274
|
-
# The funding account is still being verified e.g. bank micro-deposits
|
275
|
-
# verification. \* `DELETED` - The founding account has been deleted.
|
276
|
-
#
|
277
|
-
# @see Lithic::Models::CardCreateResponse::Funding#state
|
278
|
-
module State
|
279
|
-
extend Lithic::Internal::Type::Enum
|
280
|
-
|
281
|
-
DELETED = :DELETED
|
282
|
-
ENABLED = :ENABLED
|
283
|
-
PENDING = :PENDING
|
284
|
-
|
285
|
-
# @!method self.values
|
286
|
-
# @return [Array<Symbol>]
|
287
|
-
end
|
288
|
-
|
289
|
-
# Types of funding source: _ `DEPOSITORY_CHECKING` - Bank checking account. _
|
290
|
-
# `DEPOSITORY_SAVINGS` - Bank savings account.
|
291
|
-
#
|
292
|
-
# @see Lithic::Models::CardCreateResponse::Funding#type
|
293
|
-
module Type
|
294
|
-
extend Lithic::Internal::Type::Enum
|
295
|
-
|
296
|
-
DEPOSITORY_CHECKING = :DEPOSITORY_CHECKING
|
297
|
-
DEPOSITORY_SAVINGS = :DEPOSITORY_SAVINGS
|
298
|
-
|
299
|
-
# @!method self.values
|
300
|
-
# @return [Array<Symbol>]
|
301
|
-
end
|
302
|
-
end
|
303
|
-
|
304
|
-
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
305
|
-
# attempts).
|
306
|
-
#
|
307
|
-
# @see Lithic::Models::CardCreateResponse#pin_status
|
308
|
-
module PinStatus
|
309
|
-
extend Lithic::Internal::Type::Enum
|
310
|
-
|
311
|
-
OK = :OK
|
312
|
-
BLOCKED = :BLOCKED
|
313
|
-
NOT_SET = :NOT_SET
|
314
|
-
|
315
|
-
# @!method self.values
|
316
|
-
# @return [Array<Symbol>]
|
317
|
-
end
|
318
|
-
|
319
|
-
# Spend limit duration
|
320
|
-
#
|
321
|
-
# @see Lithic::Models::CardCreateResponse#spend_limit_duration
|
322
|
-
module SpendLimitDuration
|
323
|
-
extend Lithic::Internal::Type::Enum
|
324
|
-
|
325
|
-
ANNUALLY = :ANNUALLY
|
326
|
-
FOREVER = :FOREVER
|
327
|
-
MONTHLY = :MONTHLY
|
328
|
-
TRANSACTION = :TRANSACTION
|
329
|
-
DAILY = :DAILY
|
330
|
-
|
331
|
-
# @!method self.values
|
332
|
-
# @return [Array<Symbol>]
|
333
|
-
end
|
334
|
-
|
335
|
-
# Card state values: _ `CLOSED` - Card will no longer approve authorizations.
|
336
|
-
# Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
|
337
|
-
# they match card and account parameters). _ `PAUSED` - Card will decline
|
338
|
-
# authorizations, but can be resumed at a later time. _ `PENDING_FULFILLMENT` -
|
339
|
-
# The initial state for cards of type `PHYSICAL`. The card is provisioned pending
|
340
|
-
# manufacturing and fulfillment. Cards in this state can accept authorizations for
|
341
|
-
# e-commerce purchases, but not for "Card Present" purchases where the physical
|
342
|
-
# card itself is present. \* `PENDING_ACTIVATION` - At regular intervals, cards of
|
343
|
-
# type `PHYSICAL` in state `PENDING_FULFILLMENT` are sent to the card production
|
344
|
-
# warehouse and updated to state `PENDING_ACTIVATION`. Similar to
|
345
|
-
# `PENDING_FULFILLMENT`, cards in this state can be used for e-commerce
|
346
|
-
# transactions or can be added to mobile wallets. API clients should update the
|
347
|
-
# card's state to `OPEN` only after the cardholder confirms receipt of the card.
|
348
|
-
# In sandbox, the same daily batch fulfillment occurs, but no cards are actually
|
349
|
-
# manufactured.
|
350
|
-
#
|
351
|
-
# @see Lithic::Models::CardCreateResponse#state
|
352
|
-
module State
|
353
|
-
extend Lithic::Internal::Type::Enum
|
354
|
-
|
355
|
-
CLOSED = :CLOSED
|
356
|
-
OPEN = :OPEN
|
357
|
-
PAUSED = :PAUSED
|
358
|
-
PENDING_ACTIVATION = :PENDING_ACTIVATION
|
359
|
-
PENDING_FULFILLMENT = :PENDING_FULFILLMENT
|
360
|
-
|
361
|
-
# @!method self.values
|
362
|
-
# @return [Array<Symbol>]
|
363
|
-
end
|
364
|
-
|
365
|
-
# Card types: _ `VIRTUAL` - Card will authorize at any merchant and can be added
|
366
|
-
# to a digital wallet like Apple Pay or Google Pay (if the card program is digital
|
367
|
-
# wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
|
368
|
-
# offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
|
369
|
-
# functionality. _ `SINGLE_USE` - Card is closed upon first successful
|
370
|
-
# authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
|
371
|
-
# merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
|
372
|
-
# Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
|
373
|
-
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
|
374
|
-
# VIRTUAL instead.
|
375
|
-
#
|
376
|
-
# @see Lithic::Models::CardCreateResponse#type
|
377
|
-
module Type
|
378
|
-
extend Lithic::Internal::Type::Enum
|
379
|
-
|
380
|
-
MERCHANT_LOCKED = :MERCHANT_LOCKED
|
381
|
-
PHYSICAL = :PHYSICAL
|
382
|
-
SINGLE_USE = :SINGLE_USE
|
383
|
-
VIRTUAL = :VIRTUAL
|
384
|
-
UNLOCKED = :UNLOCKED
|
385
|
-
DIGITAL_WALLET = :DIGITAL_WALLET
|
386
|
-
|
387
|
-
# @!method self.values
|
388
|
-
# @return [Array<Symbol>]
|
389
|
-
end
|
390
|
-
end
|
391
|
-
end
|
392
|
-
end
|