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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d994bf8972c5500b7885b05e3d656c7dda04419796c1abb50218bbe4144e6a1a
|
4
|
+
data.tar.gz: 2f12393da601f3a7877b0b648bf6ff8bbe294cf690889934e9a9883c0ec9bc50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 033661aaae27e014d00dc52cbb53c631ba2bfb5e604cc7a73d3a0a9e8fa9f00c9f88f34f288275fb548fac171de6c3920a6e88f76be0ba350f8312037a68b157
|
7
|
+
data.tar.gz: 6da37fe057e86fde01f7bbdaec2bbec7c36d9d474dc2c6cdc15cc093bedebe7a161cc222686d6fe53011a2077c8aa77109a8e28931a0087be936ed7ba55b51ae
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.17 (2025-04-21)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* **internals:** fix Card schema definition ([1a3d18b](https://github.com/lithic-com/lithic-ruby/commit/1a3d18be7e1817fad98013b032defbaa5663b354))
|
10
|
+
|
3
11
|
## 0.1.0-alpha.16 (2025-04-21)
|
4
12
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.15...v0.1.0-alpha.16)
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
15
15
|
<!-- x-release-please-start-version -->
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem "lithic", "~> 0.1.0.pre.alpha.
|
18
|
+
gem "lithic", "~> 0.1.0.pre.alpha.17"
|
19
19
|
```
|
20
20
|
|
21
21
|
<!-- x-release-please-end -->
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
# @see Lithic::Resources::Cards#create
|
6
|
+
class Card < Lithic::Models::NonPCICard
|
7
|
+
# @!attribute cvv
|
8
|
+
# Three digit cvv printed on the back of the card.
|
9
|
+
#
|
10
|
+
# @return [String, nil]
|
11
|
+
optional :cvv, String
|
12
|
+
|
13
|
+
# @!attribute pan
|
14
|
+
# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
|
15
|
+
# compliant to have PAN returned as a field in production. Please contact
|
16
|
+
# support@lithic.com for questions.
|
17
|
+
#
|
18
|
+
# @return [String, nil]
|
19
|
+
optional :pan, String
|
20
|
+
|
21
|
+
# @!method initialize(cvv: nil, pan: nil)
|
22
|
+
# Card details with potentially PCI sensitive information for Enterprise customers
|
23
|
+
#
|
24
|
+
# @param cvv [String]
|
25
|
+
# @param pan [String]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Lithic
|
4
4
|
module Models
|
5
5
|
# @see Lithic::Resources::Cards#list
|
6
|
-
class
|
6
|
+
class NonPCICard < Lithic::Internal::Type::BaseModel
|
7
7
|
# @!attribute token
|
8
8
|
# Globally unique identifier.
|
9
9
|
#
|
@@ -31,8 +31,8 @@ module Lithic
|
|
31
31
|
# @!attribute funding
|
32
32
|
# Deprecated: Funding account for the card.
|
33
33
|
#
|
34
|
-
# @return [Lithic::Models::
|
35
|
-
required :funding, -> { Lithic::Models::
|
34
|
+
# @return [Lithic::Models::NonPCICard::Funding]
|
35
|
+
required :funding, -> { Lithic::Models::NonPCICard::Funding }
|
36
36
|
|
37
37
|
# @!attribute last_four
|
38
38
|
# Last four digits of the card number.
|
@@ -44,8 +44,8 @@ module Lithic
|
|
44
44
|
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
45
45
|
# attempts).
|
46
46
|
#
|
47
|
-
# @return [Symbol, Lithic::Models::
|
48
|
-
required :pin_status, enum: -> { Lithic::Models::
|
47
|
+
# @return [Symbol, Lithic::Models::NonPCICard::PinStatus]
|
48
|
+
required :pin_status, enum: -> { Lithic::Models::NonPCICard::PinStatus }
|
49
49
|
|
50
50
|
# @!attribute spend_limit
|
51
51
|
# Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
|
@@ -57,8 +57,8 @@ module Lithic
|
|
57
57
|
# @!attribute spend_limit_duration
|
58
58
|
# Spend limit duration
|
59
59
|
#
|
60
|
-
# @return [Symbol, Lithic::Models::
|
61
|
-
required :spend_limit_duration, enum: -> { Lithic::Models::
|
60
|
+
# @return [Symbol, Lithic::Models::NonPCICard::SpendLimitDuration]
|
61
|
+
required :spend_limit_duration, enum: -> { Lithic::Models::NonPCICard::SpendLimitDuration }
|
62
62
|
|
63
63
|
# @!attribute state
|
64
64
|
# Card state values: _ `CLOSED` - Card will no longer approve authorizations.
|
@@ -77,8 +77,8 @@ module Lithic
|
|
77
77
|
# In sandbox, the same daily batch fulfillment occurs, but no cards are actually
|
78
78
|
# manufactured.
|
79
79
|
#
|
80
|
-
# @return [Symbol, Lithic::Models::
|
81
|
-
required :state, enum: -> { Lithic::Models::
|
80
|
+
# @return [Symbol, Lithic::Models::NonPCICard::State]
|
81
|
+
required :state, enum: -> { Lithic::Models::NonPCICard::State }
|
82
82
|
|
83
83
|
# @!attribute type
|
84
84
|
# Card types: _ `VIRTUAL` - Card will authorize at any merchant and can be added
|
@@ -92,8 +92,8 @@ module Lithic
|
|
92
92
|
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
|
93
93
|
# VIRTUAL instead.
|
94
94
|
#
|
95
|
-
# @return [Symbol, Lithic::Models::
|
96
|
-
required :type, enum: -> { Lithic::Models::
|
95
|
+
# @return [Symbol, Lithic::Models::NonPCICard::Type]
|
96
|
+
required :type, enum: -> { Lithic::Models::NonPCICard::Type }
|
97
97
|
|
98
98
|
# @!attribute auth_rule_tokens
|
99
99
|
# @deprecated
|
@@ -174,13 +174,13 @@ module Lithic
|
|
174
174
|
# @param account_token [String]
|
175
175
|
# @param card_program_token [String]
|
176
176
|
# @param created [Time]
|
177
|
-
# @param funding [Lithic::Models::
|
177
|
+
# @param funding [Lithic::Models::NonPCICard::Funding]
|
178
178
|
# @param last_four [String]
|
179
|
-
# @param pin_status [Symbol, Lithic::Models::
|
179
|
+
# @param pin_status [Symbol, Lithic::Models::NonPCICard::PinStatus]
|
180
180
|
# @param spend_limit [Integer]
|
181
|
-
# @param spend_limit_duration [Symbol, Lithic::Models::
|
182
|
-
# @param state [Symbol, Lithic::Models::
|
183
|
-
# @param type [Symbol, Lithic::Models::
|
181
|
+
# @param spend_limit_duration [Symbol, Lithic::Models::NonPCICard::SpendLimitDuration]
|
182
|
+
# @param state [Symbol, Lithic::Models::NonPCICard::State]
|
183
|
+
# @param type [Symbol, Lithic::Models::NonPCICard::Type]
|
184
184
|
# @param auth_rule_tokens [Array<String>]
|
185
185
|
# @param cardholder_currency [String]
|
186
186
|
# @param digital_card_art_token [String]
|
@@ -192,7 +192,7 @@ module Lithic
|
|
192
192
|
# @param product_id [String]
|
193
193
|
# @param replacement_for [String, nil]
|
194
194
|
|
195
|
-
# @see Lithic::Models::
|
195
|
+
# @see Lithic::Models::NonPCICard#funding
|
196
196
|
class Funding < Lithic::Internal::Type::BaseModel
|
197
197
|
# @!attribute token
|
198
198
|
# A globally unique identifier for this FundingAccount.
|
@@ -220,15 +220,15 @@ module Lithic
|
|
220
220
|
# The funding account is still being verified e.g. bank micro-deposits
|
221
221
|
# verification. \* `DELETED` - The founding account has been deleted.
|
222
222
|
#
|
223
|
-
# @return [Symbol, Lithic::Models::
|
224
|
-
required :state, enum: -> { Lithic::Models::
|
223
|
+
# @return [Symbol, Lithic::Models::NonPCICard::Funding::State]
|
224
|
+
required :state, enum: -> { Lithic::Models::NonPCICard::Funding::State }
|
225
225
|
|
226
226
|
# @!attribute type
|
227
227
|
# Types of funding source: _ `DEPOSITORY_CHECKING` - Bank checking account. _
|
228
228
|
# `DEPOSITORY_SAVINGS` - Bank savings account.
|
229
229
|
#
|
230
|
-
# @return [Symbol, Lithic::Models::
|
231
|
-
required :type, enum: -> { Lithic::Models::
|
230
|
+
# @return [Symbol, Lithic::Models::NonPCICard::Funding::Type]
|
231
|
+
required :type, enum: -> { Lithic::Models::NonPCICard::Funding::Type }
|
232
232
|
|
233
233
|
# @!attribute account_name
|
234
234
|
# Account name identifying the funding source. This may be `null`.
|
@@ -248,8 +248,8 @@ module Lithic
|
|
248
248
|
# @param token [String]
|
249
249
|
# @param created [Time]
|
250
250
|
# @param last_four [String]
|
251
|
-
# @param state [Symbol, Lithic::Models::
|
252
|
-
# @param type [Symbol, Lithic::Models::
|
251
|
+
# @param state [Symbol, Lithic::Models::NonPCICard::Funding::State]
|
252
|
+
# @param type [Symbol, Lithic::Models::NonPCICard::Funding::Type]
|
253
253
|
# @param account_name [String]
|
254
254
|
# @param nickname [String]
|
255
255
|
|
@@ -258,7 +258,7 @@ module Lithic
|
|
258
258
|
# The funding account is still being verified e.g. bank micro-deposits
|
259
259
|
# verification. \* `DELETED` - The founding account has been deleted.
|
260
260
|
#
|
261
|
-
# @see Lithic::Models::
|
261
|
+
# @see Lithic::Models::NonPCICard::Funding#state
|
262
262
|
module State
|
263
263
|
extend Lithic::Internal::Type::Enum
|
264
264
|
|
@@ -273,7 +273,7 @@ module Lithic
|
|
273
273
|
# Types of funding source: _ `DEPOSITORY_CHECKING` - Bank checking account. _
|
274
274
|
# `DEPOSITORY_SAVINGS` - Bank savings account.
|
275
275
|
#
|
276
|
-
# @see Lithic::Models::
|
276
|
+
# @see Lithic::Models::NonPCICard::Funding#type
|
277
277
|
module Type
|
278
278
|
extend Lithic::Internal::Type::Enum
|
279
279
|
|
@@ -288,7 +288,7 @@ module Lithic
|
|
288
288
|
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
289
289
|
# attempts).
|
290
290
|
#
|
291
|
-
# @see Lithic::Models::
|
291
|
+
# @see Lithic::Models::NonPCICard#pin_status
|
292
292
|
module PinStatus
|
293
293
|
extend Lithic::Internal::Type::Enum
|
294
294
|
|
@@ -302,7 +302,7 @@ module Lithic
|
|
302
302
|
|
303
303
|
# Spend limit duration
|
304
304
|
#
|
305
|
-
# @see Lithic::Models::
|
305
|
+
# @see Lithic::Models::NonPCICard#spend_limit_duration
|
306
306
|
module SpendLimitDuration
|
307
307
|
extend Lithic::Internal::Type::Enum
|
308
308
|
|
@@ -332,7 +332,7 @@ module Lithic
|
|
332
332
|
# In sandbox, the same daily batch fulfillment occurs, but no cards are actually
|
333
333
|
# manufactured.
|
334
334
|
#
|
335
|
-
# @see Lithic::Models::
|
335
|
+
# @see Lithic::Models::NonPCICard#state
|
336
336
|
module State
|
337
337
|
extend Lithic::Internal::Type::Enum
|
338
338
|
|
@@ -357,7 +357,7 @@ module Lithic
|
|
357
357
|
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
|
358
358
|
# VIRTUAL instead.
|
359
359
|
#
|
360
|
-
# @see Lithic::Models::
|
360
|
+
# @see Lithic::Models::NonPCICard#type
|
361
361
|
module Type
|
362
362
|
extend Lithic::Internal::Type::Enum
|
363
363
|
|
@@ -36,7 +36,7 @@ module Lithic
|
|
36
36
|
# @param state [Symbol, Lithic::Models::CardCreateParams::State]
|
37
37
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
38
38
|
#
|
39
|
-
# @return [Lithic::Models::
|
39
|
+
# @return [Lithic::Models::Card]
|
40
40
|
#
|
41
41
|
# @see Lithic::Models::CardCreateParams
|
42
42
|
def create(params)
|
@@ -45,7 +45,7 @@ module Lithic
|
|
45
45
|
method: :post,
|
46
46
|
path: "v1/cards",
|
47
47
|
body: parsed,
|
48
|
-
model: Lithic::Models::
|
48
|
+
model: Lithic::Models::Card,
|
49
49
|
options: options
|
50
50
|
)
|
51
51
|
end
|
@@ -57,14 +57,14 @@ module Lithic
|
|
57
57
|
# @param card_token [String]
|
58
58
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
59
59
|
#
|
60
|
-
# @return [Lithic::Models::
|
60
|
+
# @return [Lithic::Models::Card]
|
61
61
|
#
|
62
62
|
# @see Lithic::Models::CardRetrieveParams
|
63
63
|
def retrieve(card_token, params = {})
|
64
64
|
@client.request(
|
65
65
|
method: :get,
|
66
66
|
path: ["v1/cards/%1$s", card_token],
|
67
|
-
model: Lithic::Models::
|
67
|
+
model: Lithic::Models::Card,
|
68
68
|
options: params[:request_options]
|
69
69
|
)
|
70
70
|
end
|
@@ -87,7 +87,7 @@ module Lithic
|
|
87
87
|
# @param state [Symbol, Lithic::Models::CardUpdateParams::State]
|
88
88
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
89
89
|
#
|
90
|
-
# @return [Lithic::Models::
|
90
|
+
# @return [Lithic::Models::Card]
|
91
91
|
#
|
92
92
|
# @see Lithic::Models::CardUpdateParams
|
93
93
|
def update(card_token, params = {})
|
@@ -96,7 +96,7 @@ module Lithic
|
|
96
96
|
method: :patch,
|
97
97
|
path: ["v1/cards/%1$s", card_token],
|
98
98
|
body: parsed,
|
99
|
-
model: Lithic::Models::
|
99
|
+
model: Lithic::Models::Card,
|
100
100
|
options: options
|
101
101
|
)
|
102
102
|
end
|
@@ -114,7 +114,7 @@ module Lithic
|
|
114
114
|
# @param state [Symbol, Lithic::Models::CardListParams::State]
|
115
115
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
116
116
|
#
|
117
|
-
# @return [Lithic::Internal::CursorPage<Lithic::Models::
|
117
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::NonPCICard>]
|
118
118
|
#
|
119
119
|
# @see Lithic::Models::CardListParams
|
120
120
|
def list(params = {})
|
@@ -124,7 +124,7 @@ module Lithic
|
|
124
124
|
path: "v1/cards",
|
125
125
|
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
126
126
|
page: Lithic::Internal::CursorPage,
|
127
|
-
model: Lithic::Models::
|
127
|
+
model: Lithic::Models::NonPCICard,
|
128
128
|
options: options
|
129
129
|
)
|
130
130
|
end
|
@@ -149,7 +149,7 @@ module Lithic
|
|
149
149
|
# @param shipping_method [Symbol, Lithic::Models::CardConvertPhysicalParams::ShippingMethod]
|
150
150
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
151
151
|
#
|
152
|
-
# @return [Lithic::Models::
|
152
|
+
# @return [Lithic::Models::Card]
|
153
153
|
#
|
154
154
|
# @see Lithic::Models::CardConvertPhysicalParams
|
155
155
|
def convert_physical(card_token, params)
|
@@ -158,7 +158,7 @@ module Lithic
|
|
158
158
|
method: :post,
|
159
159
|
path: ["v1/cards/%1$s/convert_physical", card_token],
|
160
160
|
body: parsed,
|
161
|
-
model: Lithic::Models::
|
161
|
+
model: Lithic::Models::Card,
|
162
162
|
options: options
|
163
163
|
)
|
164
164
|
end
|
@@ -259,7 +259,7 @@ module Lithic
|
|
259
259
|
# @param shipping_method [Symbol, Lithic::Models::CardReissueParams::ShippingMethod]
|
260
260
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
261
261
|
#
|
262
|
-
# @return [Lithic::Models::
|
262
|
+
# @return [Lithic::Models::Card]
|
263
263
|
#
|
264
264
|
# @see Lithic::Models::CardReissueParams
|
265
265
|
def reissue(card_token, params = {})
|
@@ -268,7 +268,7 @@ module Lithic
|
|
268
268
|
method: :post,
|
269
269
|
path: ["v1/cards/%1$s/reissue", card_token],
|
270
270
|
body: parsed,
|
271
|
-
model: Lithic::Models::
|
271
|
+
model: Lithic::Models::Card,
|
272
272
|
options: options
|
273
273
|
)
|
274
274
|
end
|
@@ -294,7 +294,7 @@ module Lithic
|
|
294
294
|
# @param shipping_method [Symbol, Lithic::Models::CardRenewParams::ShippingMethod]
|
295
295
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
296
296
|
#
|
297
|
-
# @return [Lithic::Models::
|
297
|
+
# @return [Lithic::Models::Card]
|
298
298
|
#
|
299
299
|
# @see Lithic::Models::CardRenewParams
|
300
300
|
def renew(card_token, params)
|
@@ -303,7 +303,7 @@ module Lithic
|
|
303
303
|
method: :post,
|
304
304
|
path: ["v1/cards/%1$s/renew", card_token],
|
305
305
|
body: parsed,
|
306
|
-
model: Lithic::Models::
|
306
|
+
model: Lithic::Models::Card,
|
307
307
|
options: options
|
308
308
|
)
|
309
309
|
end
|
@@ -341,7 +341,7 @@ module Lithic
|
|
341
341
|
# @param pan [String]
|
342
342
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
343
343
|
#
|
344
|
-
# @return [Lithic::Models::
|
344
|
+
# @return [Lithic::Models::Card]
|
345
345
|
#
|
346
346
|
# @see Lithic::Models::CardSearchByPanParams
|
347
347
|
def search_by_pan(params)
|
@@ -350,7 +350,7 @@ module Lithic
|
|
350
350
|
method: :post,
|
351
351
|
path: "v1/cards/search_by_pan",
|
352
352
|
body: parsed,
|
353
|
-
model: Lithic::Models::
|
353
|
+
model: Lithic::Models::Card,
|
354
354
|
options: options
|
355
355
|
)
|
356
356
|
end
|
data/lib/lithic/version.rb
CHANGED
data/lib/lithic.rb
CHANGED
@@ -47,6 +47,7 @@ require_relative "lithic/internal/transport/pooled_net_requester"
|
|
47
47
|
require_relative "lithic/client"
|
48
48
|
require_relative "lithic/internal/cursor_page"
|
49
49
|
require_relative "lithic/internal/single_page"
|
50
|
+
require_relative "lithic/models/non_pci_card"
|
50
51
|
require_relative "lithic/models/payment"
|
51
52
|
require_relative "lithic/models/three_ds/challenge_response"
|
52
53
|
require_relative "lithic/models/account"
|
@@ -112,24 +113,19 @@ require_relative "lithic/models/book_transfer_list_params"
|
|
112
113
|
require_relative "lithic/models/book_transfer_response"
|
113
114
|
require_relative "lithic/models/book_transfer_retrieve_params"
|
114
115
|
require_relative "lithic/models/book_transfer_reverse_params"
|
116
|
+
require_relative "lithic/models/card"
|
115
117
|
require_relative "lithic/models/card_convert_physical_params"
|
116
|
-
require_relative "lithic/models/card_convert_physical_response"
|
117
118
|
require_relative "lithic/models/card_create_params"
|
118
|
-
require_relative "lithic/models/card_create_response"
|
119
119
|
require_relative "lithic/models/card_embed_params"
|
120
120
|
require_relative "lithic/models/card_list_params"
|
121
|
-
require_relative "lithic/models/card_list_response"
|
122
121
|
require_relative "lithic/models/card_program"
|
123
122
|
require_relative "lithic/models/card_program_list_params"
|
124
123
|
require_relative "lithic/models/card_program_retrieve_params"
|
125
124
|
require_relative "lithic/models/card_provision_params"
|
126
125
|
require_relative "lithic/models/card_provision_response"
|
127
126
|
require_relative "lithic/models/card_reissue_params"
|
128
|
-
require_relative "lithic/models/card_reissue_response"
|
129
127
|
require_relative "lithic/models/card_renew_params"
|
130
|
-
require_relative "lithic/models/card_renew_response"
|
131
128
|
require_relative "lithic/models/card_retrieve_params"
|
132
|
-
require_relative "lithic/models/card_retrieve_response"
|
133
129
|
require_relative "lithic/models/card_retrieve_spend_limits_params"
|
134
130
|
require_relative "lithic/models/cards/aggregate_balance_list_params"
|
135
131
|
require_relative "lithic/models/cards/aggregate_balance_list_response"
|
@@ -138,10 +134,8 @@ require_relative "lithic/models/cards/balance_list_response"
|
|
138
134
|
require_relative "lithic/models/cards/financial_transaction_list_params"
|
139
135
|
require_relative "lithic/models/cards/financial_transaction_retrieve_params"
|
140
136
|
require_relative "lithic/models/card_search_by_pan_params"
|
141
|
-
require_relative "lithic/models/card_search_by_pan_response"
|
142
137
|
require_relative "lithic/models/card_spend_limits"
|
143
138
|
require_relative "lithic/models/card_update_params"
|
144
|
-
require_relative "lithic/models/card_update_response"
|
145
139
|
require_relative "lithic/models/carrier"
|
146
140
|
require_relative "lithic/models/client_api_status_params"
|
147
141
|
require_relative "lithic/models/credit_products/extended_credit"
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
class Card < Lithic::Models::NonPCICard
|
6
|
+
# Three digit cvv printed on the back of the card.
|
7
|
+
sig { returns(T.nilable(String)) }
|
8
|
+
attr_reader :cvv
|
9
|
+
|
10
|
+
sig { params(cvv: String).void }
|
11
|
+
attr_writer :cvv
|
12
|
+
|
13
|
+
# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
|
14
|
+
# compliant to have PAN returned as a field in production. Please contact
|
15
|
+
# support@lithic.com for questions.
|
16
|
+
sig { returns(T.nilable(String)) }
|
17
|
+
attr_reader :pan
|
18
|
+
|
19
|
+
sig { params(pan: String).void }
|
20
|
+
attr_writer :pan
|
21
|
+
|
22
|
+
# Card details with potentially PCI sensitive information for Enterprise customers
|
23
|
+
sig { params(cvv: String, pan: String).returns(T.attached_class) }
|
24
|
+
def self.new(cvv: nil, pan: nil); end
|
25
|
+
|
26
|
+
sig { override.returns({cvv: String, pan: String}) }
|
27
|
+
def to_hash; end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|