lithic 0.1.0.pre.alpha.15 → 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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +61 -52
  4. data/lib/lithic/client.rb +4 -4
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -5
  6. data/lib/lithic/internal/type/array_of.rb +9 -0
  7. data/lib/lithic/internal/type/base_model.rb +29 -13
  8. data/lib/lithic/internal/type/base_page.rb +8 -0
  9. data/lib/lithic/internal/type/boolean.rb +4 -0
  10. data/lib/lithic/internal/type/enum.rb +9 -0
  11. data/lib/lithic/internal/type/hash_of.rb +9 -0
  12. data/lib/lithic/internal/type/io_like.rb +4 -0
  13. data/lib/lithic/internal/type/union.rb +10 -1
  14. data/lib/lithic/internal/type/unknown.rb +4 -0
  15. data/lib/lithic/internal.rb +0 -1
  16. data/lib/lithic/models/account.rb +3 -0
  17. data/lib/lithic/models/account_holder.rb +2 -0
  18. data/lib/lithic/models/account_holder_create_params.rb +2 -0
  19. data/lib/lithic/models/account_holder_update_params.rb +2 -0
  20. data/lib/lithic/models/account_update_params.rb +2 -0
  21. data/lib/lithic/models/card.rb +28 -0
  22. data/lib/lithic/models/kyb.rb +2 -0
  23. data/lib/lithic/models/{card_list_response.rb → non_pci_card.rb} +31 -29
  24. data/lib/lithic/models/settlement_report.rb +12 -0
  25. data/lib/lithic/models/transaction.rb +16 -0
  26. data/lib/lithic/resources/cards.rb +16 -16
  27. data/lib/lithic/version.rb +1 -1
  28. data/lib/lithic.rb +2 -17
  29. data/rbi/lib/lithic/client.rbi +4 -4
  30. data/rbi/lib/lithic/internal/type/array_of.rbi +3 -0
  31. data/rbi/lib/lithic/internal/type/base_model.rbi +6 -1
  32. data/rbi/lib/lithic/internal/type/base_page.rbi +2 -0
  33. data/rbi/lib/lithic/internal/type/enum.rbi +3 -0
  34. data/rbi/lib/lithic/internal/type/hash_of.rbi +3 -0
  35. data/rbi/lib/lithic/internal/type/union.rbi +3 -0
  36. data/rbi/lib/lithic/internal.rbi +0 -1
  37. data/rbi/lib/lithic/models/card.rbi +30 -0
  38. data/rbi/lib/lithic/models/{card_list_response.rbi → non_pci_card.rbi} +59 -60
  39. data/rbi/lib/lithic/resources/cards.rbi +8 -8
  40. data/sig/lithic/internal/type/array_of.rbs +2 -0
  41. data/sig/lithic/internal/type/base_model.rbs +4 -0
  42. data/sig/lithic/internal/type/enum.rbs +2 -0
  43. data/sig/lithic/internal/type/hash_of.rbs +2 -0
  44. data/sig/lithic/internal/type/union.rbs +2 -0
  45. data/sig/lithic/models/card.rbs +19 -0
  46. data/sig/lithic/models/{card_list_response.rbs → non_pci_card.rbs} +31 -31
  47. data/sig/lithic/resources/cards.rbs +8 -8
  48. metadata +8 -26
  49. data/lib/lithic/models/card_convert_physical_response.rb +0 -391
  50. data/lib/lithic/models/card_create_response.rb +0 -390
  51. data/lib/lithic/models/card_reissue_response.rb +0 -390
  52. data/lib/lithic/models/card_renew_response.rb +0 -390
  53. data/lib/lithic/models/card_retrieve_response.rb +0 -390
  54. data/lib/lithic/models/card_search_by_pan_response.rb +0 -390
  55. data/lib/lithic/models/card_update_response.rb +0 -390
  56. data/rbi/lib/lithic/models/card_convert_physical_response.rbi +0 -467
  57. data/rbi/lib/lithic/models/card_create_response.rbi +0 -458
  58. data/rbi/lib/lithic/models/card_reissue_response.rbi +0 -458
  59. data/rbi/lib/lithic/models/card_renew_response.rbi +0 -457
  60. data/rbi/lib/lithic/models/card_retrieve_response.rbi +0 -459
  61. data/rbi/lib/lithic/models/card_search_by_pan_response.rbi +0 -461
  62. data/rbi/lib/lithic/models/card_update_response.rbi +0 -458
  63. data/sig/lithic/models/card_convert_physical_response.rbs +0 -257
  64. data/sig/lithic/models/card_create_response.rbs +0 -257
  65. data/sig/lithic/models/card_reissue_response.rbs +0 -257
  66. data/sig/lithic/models/card_renew_response.rbs +0 -257
  67. data/sig/lithic/models/card_retrieve_response.rbs +0 -257
  68. data/sig/lithic/models/card_search_by_pan_response.rbs +0 -257
  69. data/sig/lithic/models/card_update_response.rbs +0 -257
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lithic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.15
4
+ version: 0.1.0.pre.alpha.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lithic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-18 00:00:00.000000000 Z
11
+ date: 2025-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -118,30 +118,23 @@ files:
118
118
  - lib/lithic/models/book_transfer_response.rb
119
119
  - lib/lithic/models/book_transfer_retrieve_params.rb
120
120
  - lib/lithic/models/book_transfer_reverse_params.rb
121
+ - lib/lithic/models/card.rb
121
122
  - lib/lithic/models/card_convert_physical_params.rb
122
- - lib/lithic/models/card_convert_physical_response.rb
123
123
  - lib/lithic/models/card_create_params.rb
124
- - lib/lithic/models/card_create_response.rb
125
124
  - lib/lithic/models/card_embed_params.rb
126
125
  - lib/lithic/models/card_list_params.rb
127
- - lib/lithic/models/card_list_response.rb
128
126
  - lib/lithic/models/card_program.rb
129
127
  - lib/lithic/models/card_program_list_params.rb
130
128
  - lib/lithic/models/card_program_retrieve_params.rb
131
129
  - lib/lithic/models/card_provision_params.rb
132
130
  - lib/lithic/models/card_provision_response.rb
133
131
  - lib/lithic/models/card_reissue_params.rb
134
- - lib/lithic/models/card_reissue_response.rb
135
132
  - lib/lithic/models/card_renew_params.rb
136
- - lib/lithic/models/card_renew_response.rb
137
133
  - lib/lithic/models/card_retrieve_params.rb
138
- - lib/lithic/models/card_retrieve_response.rb
139
134
  - lib/lithic/models/card_retrieve_spend_limits_params.rb
140
135
  - lib/lithic/models/card_search_by_pan_params.rb
141
- - lib/lithic/models/card_search_by_pan_response.rb
142
136
  - lib/lithic/models/card_spend_limits.rb
143
137
  - lib/lithic/models/card_update_params.rb
144
- - lib/lithic/models/card_update_response.rb
145
138
  - lib/lithic/models/cards/aggregate_balance_list_params.rb
146
139
  - lib/lithic/models/cards/aggregate_balance_list_response.rb
147
140
  - lib/lithic/models/cards/balance_list_params.rb
@@ -245,6 +238,7 @@ files:
245
238
  - lib/lithic/models/management_operation_reverse_params.rb
246
239
  - lib/lithic/models/management_operation_transaction.rb
247
240
  - lib/lithic/models/message_attempt.rb
241
+ - lib/lithic/models/non_pci_card.rb
248
242
  - lib/lithic/models/owner_type.rb
249
243
  - lib/lithic/models/payment.rb
250
244
  - lib/lithic/models/payment_create_params.rb
@@ -464,30 +458,23 @@ files:
464
458
  - rbi/lib/lithic/models/book_transfer_response.rbi
465
459
  - rbi/lib/lithic/models/book_transfer_retrieve_params.rbi
466
460
  - rbi/lib/lithic/models/book_transfer_reverse_params.rbi
461
+ - rbi/lib/lithic/models/card.rbi
467
462
  - rbi/lib/lithic/models/card_convert_physical_params.rbi
468
- - rbi/lib/lithic/models/card_convert_physical_response.rbi
469
463
  - rbi/lib/lithic/models/card_create_params.rbi
470
- - rbi/lib/lithic/models/card_create_response.rbi
471
464
  - rbi/lib/lithic/models/card_embed_params.rbi
472
465
  - rbi/lib/lithic/models/card_list_params.rbi
473
- - rbi/lib/lithic/models/card_list_response.rbi
474
466
  - rbi/lib/lithic/models/card_program.rbi
475
467
  - rbi/lib/lithic/models/card_program_list_params.rbi
476
468
  - rbi/lib/lithic/models/card_program_retrieve_params.rbi
477
469
  - rbi/lib/lithic/models/card_provision_params.rbi
478
470
  - rbi/lib/lithic/models/card_provision_response.rbi
479
471
  - rbi/lib/lithic/models/card_reissue_params.rbi
480
- - rbi/lib/lithic/models/card_reissue_response.rbi
481
472
  - rbi/lib/lithic/models/card_renew_params.rbi
482
- - rbi/lib/lithic/models/card_renew_response.rbi
483
473
  - rbi/lib/lithic/models/card_retrieve_params.rbi
484
- - rbi/lib/lithic/models/card_retrieve_response.rbi
485
474
  - rbi/lib/lithic/models/card_retrieve_spend_limits_params.rbi
486
475
  - rbi/lib/lithic/models/card_search_by_pan_params.rbi
487
- - rbi/lib/lithic/models/card_search_by_pan_response.rbi
488
476
  - rbi/lib/lithic/models/card_spend_limits.rbi
489
477
  - rbi/lib/lithic/models/card_update_params.rbi
490
- - rbi/lib/lithic/models/card_update_response.rbi
491
478
  - rbi/lib/lithic/models/cards/aggregate_balance_list_params.rbi
492
479
  - rbi/lib/lithic/models/cards/aggregate_balance_list_response.rbi
493
480
  - rbi/lib/lithic/models/cards/balance_list_params.rbi
@@ -591,6 +578,7 @@ files:
591
578
  - rbi/lib/lithic/models/management_operation_reverse_params.rbi
592
579
  - rbi/lib/lithic/models/management_operation_transaction.rbi
593
580
  - rbi/lib/lithic/models/message_attempt.rbi
581
+ - rbi/lib/lithic/models/non_pci_card.rbi
594
582
  - rbi/lib/lithic/models/owner_type.rbi
595
583
  - rbi/lib/lithic/models/payment.rbi
596
584
  - rbi/lib/lithic/models/payment_create_params.rbi
@@ -809,30 +797,23 @@ files:
809
797
  - sig/lithic/models/book_transfer_response.rbs
810
798
  - sig/lithic/models/book_transfer_retrieve_params.rbs
811
799
  - sig/lithic/models/book_transfer_reverse_params.rbs
800
+ - sig/lithic/models/card.rbs
812
801
  - sig/lithic/models/card_convert_physical_params.rbs
813
- - sig/lithic/models/card_convert_physical_response.rbs
814
802
  - sig/lithic/models/card_create_params.rbs
815
- - sig/lithic/models/card_create_response.rbs
816
803
  - sig/lithic/models/card_embed_params.rbs
817
804
  - sig/lithic/models/card_list_params.rbs
818
- - sig/lithic/models/card_list_response.rbs
819
805
  - sig/lithic/models/card_program.rbs
820
806
  - sig/lithic/models/card_program_list_params.rbs
821
807
  - sig/lithic/models/card_program_retrieve_params.rbs
822
808
  - sig/lithic/models/card_provision_params.rbs
823
809
  - sig/lithic/models/card_provision_response.rbs
824
810
  - sig/lithic/models/card_reissue_params.rbs
825
- - sig/lithic/models/card_reissue_response.rbs
826
811
  - sig/lithic/models/card_renew_params.rbs
827
- - sig/lithic/models/card_renew_response.rbs
828
812
  - sig/lithic/models/card_retrieve_params.rbs
829
- - sig/lithic/models/card_retrieve_response.rbs
830
813
  - sig/lithic/models/card_retrieve_spend_limits_params.rbs
831
814
  - sig/lithic/models/card_search_by_pan_params.rbs
832
- - sig/lithic/models/card_search_by_pan_response.rbs
833
815
  - sig/lithic/models/card_spend_limits.rbs
834
816
  - sig/lithic/models/card_update_params.rbs
835
- - sig/lithic/models/card_update_response.rbs
836
817
  - sig/lithic/models/cards/aggregate_balance_list_params.rbs
837
818
  - sig/lithic/models/cards/aggregate_balance_list_response.rbs
838
819
  - sig/lithic/models/cards/balance_list_params.rbs
@@ -936,6 +917,7 @@ files:
936
917
  - sig/lithic/models/management_operation_reverse_params.rbs
937
918
  - sig/lithic/models/management_operation_transaction.rbs
938
919
  - sig/lithic/models/message_attempt.rbs
920
+ - sig/lithic/models/non_pci_card.rbs
939
921
  - sig/lithic/models/owner_type.rbs
940
922
  - sig/lithic/models/payment.rbs
941
923
  - sig/lithic/models/payment_create_params.rbs
@@ -1,391 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lithic
4
- module Models
5
- # @see Lithic::Resources::Cards#convert_physical
6
- class CardConvertPhysicalResponse < 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::CardConvertPhysicalResponse::Funding]
35
- required :funding, -> { Lithic::Models::CardConvertPhysicalResponse::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::CardConvertPhysicalResponse::PinStatus]
48
- required :pin_status, enum: -> { Lithic::Models::CardConvertPhysicalResponse::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::CardConvertPhysicalResponse::SpendLimitDuration]
61
- required :spend_limit_duration,
62
- enum: -> { Lithic::Models::CardConvertPhysicalResponse::SpendLimitDuration }
63
-
64
- # @!attribute state
65
- # Card state values: _ `CLOSED` - Card will no longer approve authorizations.
66
- # Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
67
- # they match card and account parameters). _ `PAUSED` - Card will decline
68
- # authorizations, but can be resumed at a later time. _ `PENDING_FULFILLMENT` -
69
- # The initial state for cards of type `PHYSICAL`. The card is provisioned pending
70
- # manufacturing and fulfillment. Cards in this state can accept authorizations for
71
- # e-commerce purchases, but not for "Card Present" purchases where the physical
72
- # card itself is present. \* `PENDING_ACTIVATION` - At regular intervals, cards of
73
- # type `PHYSICAL` in state `PENDING_FULFILLMENT` are sent to the card production
74
- # warehouse and updated to state `PENDING_ACTIVATION`. Similar to
75
- # `PENDING_FULFILLMENT`, cards in this state can be used for e-commerce
76
- # transactions or can be added to mobile wallets. API clients should update the
77
- # card's state to `OPEN` only after the cardholder confirms receipt of the card.
78
- # In sandbox, the same daily batch fulfillment occurs, but no cards are actually
79
- # manufactured.
80
- #
81
- # @return [Symbol, Lithic::Models::CardConvertPhysicalResponse::State]
82
- required :state, enum: -> { Lithic::Models::CardConvertPhysicalResponse::State }
83
-
84
- # @!attribute type
85
- # Card types: _ `VIRTUAL` - Card will authorize at any merchant and can be added
86
- # to a digital wallet like Apple Pay or Google Pay (if the card program is digital
87
- # wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
88
- # offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
89
- # functionality. _ `SINGLE_USE` - Card is closed upon first successful
90
- # authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
91
- # merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
92
- # Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
93
- # `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
94
- # VIRTUAL instead.
95
- #
96
- # @return [Symbol, Lithic::Models::CardConvertPhysicalResponse::Type]
97
- required :type, enum: -> { Lithic::Models::CardConvertPhysicalResponse::Type }
98
-
99
- # @!attribute auth_rule_tokens
100
- # List of identifiers for the Auth Rule(s) that are applied on the card. This
101
- # field is deprecated and will no longer be populated in the `Card` object. The
102
- # key will be removed from the schema in a future release. Use the `/auth_rules`
103
- # endpoints to fetch Auth Rule information instead.
104
- #
105
- # @return [Array<String>, nil]
106
- optional :auth_rule_tokens, Lithic::Internal::Type::ArrayOf[String]
107
-
108
- # @!attribute cardholder_currency
109
- # 3-character alphabetic ISO 4217 code for the currency of the cardholder.
110
- #
111
- # @return [String, nil]
112
- optional :cardholder_currency, String
113
-
114
- # @!attribute cvv
115
- # Three digit cvv printed on the back of the card.
116
- #
117
- # @return [String, nil]
118
- optional :cvv, String
119
-
120
- # @!attribute digital_card_art_token
121
- # Specifies the digital card art to be displayed in the user's digital wallet
122
- # after tokenization. This artwork must be approved by Mastercard and configured
123
- # by Lithic to use.
124
- #
125
- # @return [String, nil]
126
- optional :digital_card_art_token, String
127
-
128
- # @!attribute exp_month
129
- # Two digit (MM) expiry month.
130
- #
131
- # @return [String, nil]
132
- optional :exp_month, String
133
-
134
- # @!attribute exp_year
135
- # Four digit (yyyy) expiry year.
136
- #
137
- # @return [String, nil]
138
- optional :exp_year, String
139
-
140
- # @!attribute hostname
141
- # Hostname of card's locked merchant (will be empty if not applicable).
142
- #
143
- # @return [String, nil]
144
- optional :hostname, String
145
-
146
- # @!attribute memo
147
- # Friendly name to identify the card.
148
- #
149
- # @return [String, nil]
150
- optional :memo, String
151
-
152
- # @!attribute pan
153
- # Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
154
- # compliant to have PAN returned as a field in production. Please contact
155
- # support@lithic.com for questions.
156
- #
157
- # @return [String, nil]
158
- optional :pan, String
159
-
160
- # @!attribute pending_commands
161
- # Indicates if there are offline PIN changes pending card interaction with an
162
- # offline PIN terminal. Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable
163
- # only to cards issued in markets supporting offline PINs.
164
- #
165
- # @return [Array<String>, nil]
166
- optional :pending_commands, Lithic::Internal::Type::ArrayOf[String]
167
-
168
- # @!attribute product_id
169
- # Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic
170
- # before use. Specifies the configuration (i.e., physical card art) that the card
171
- # should be manufactured with.
172
- #
173
- # @return [String, nil]
174
- optional :product_id, String
175
-
176
- # @!attribute replacement_for
177
- # If the card is a replacement for another card, the globally unique identifier
178
- # for the card that was replaced.
179
- #
180
- # @return [String, nil]
181
- optional :replacement_for, String, nil?: true
182
-
183
- # @!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)
184
- # Card details with potentially PCI sensitive information for Enterprise customers
185
- #
186
- # @param token [String]
187
- # @param account_token [String]
188
- # @param card_program_token [String]
189
- # @param created [Time]
190
- # @param funding [Lithic::Models::CardConvertPhysicalResponse::Funding]
191
- # @param last_four [String]
192
- # @param pin_status [Symbol, Lithic::Models::CardConvertPhysicalResponse::PinStatus]
193
- # @param spend_limit [Integer]
194
- # @param spend_limit_duration [Symbol, Lithic::Models::CardConvertPhysicalResponse::SpendLimitDuration]
195
- # @param state [Symbol, Lithic::Models::CardConvertPhysicalResponse::State]
196
- # @param type [Symbol, Lithic::Models::CardConvertPhysicalResponse::Type]
197
- # @param auth_rule_tokens [Array<String>]
198
- # @param cardholder_currency [String]
199
- # @param cvv [String]
200
- # @param digital_card_art_token [String]
201
- # @param exp_month [String]
202
- # @param exp_year [String]
203
- # @param hostname [String]
204
- # @param memo [String]
205
- # @param pan [String]
206
- # @param pending_commands [Array<String>]
207
- # @param product_id [String]
208
- # @param replacement_for [String, nil]
209
-
210
- # @see Lithic::Models::CardConvertPhysicalResponse#funding
211
- class Funding < Lithic::Internal::Type::BaseModel
212
- # @!attribute token
213
- # A globally unique identifier for this FundingAccount.
214
- #
215
- # @return [String]
216
- required :token, String
217
-
218
- # @!attribute created
219
- # An RFC 3339 string representing when this funding source was added to the Lithic
220
- # account. This may be `null`. UTC time zone.
221
- #
222
- # @return [Time]
223
- required :created, Time
224
-
225
- # @!attribute last_four
226
- # The last 4 digits of the account (e.g. bank account, debit card) associated with
227
- # this FundingAccount. This may be null.
228
- #
229
- # @return [String]
230
- required :last_four, String
231
-
232
- # @!attribute state
233
- # State of funding source. Funding source states: _ `ENABLED` - The funding
234
- # account is available to use for card creation and transactions. _ `PENDING` -
235
- # The funding account is still being verified e.g. bank micro-deposits
236
- # verification. \* `DELETED` - The founding account has been deleted.
237
- #
238
- # @return [Symbol, Lithic::Models::CardConvertPhysicalResponse::Funding::State]
239
- required :state, enum: -> { Lithic::Models::CardConvertPhysicalResponse::Funding::State }
240
-
241
- # @!attribute type
242
- # Types of funding source: _ `DEPOSITORY_CHECKING` - Bank checking account. _
243
- # `DEPOSITORY_SAVINGS` - Bank savings account.
244
- #
245
- # @return [Symbol, Lithic::Models::CardConvertPhysicalResponse::Funding::Type]
246
- required :type, enum: -> { Lithic::Models::CardConvertPhysicalResponse::Funding::Type }
247
-
248
- # @!attribute account_name
249
- # Account name identifying the funding source. This may be `null`.
250
- #
251
- # @return [String, nil]
252
- optional :account_name, String
253
-
254
- # @!attribute nickname
255
- # The nickname given to the `FundingAccount` or `null` if it has no nickname.
256
- #
257
- # @return [String, nil]
258
- optional :nickname, String
259
-
260
- # @!method initialize(token:, created:, last_four:, state:, type:, account_name: nil, nickname: nil)
261
- # Deprecated: Funding account for the card.
262
- #
263
- # @param token [String]
264
- # @param created [Time]
265
- # @param last_four [String]
266
- # @param state [Symbol, Lithic::Models::CardConvertPhysicalResponse::Funding::State]
267
- # @param type [Symbol, Lithic::Models::CardConvertPhysicalResponse::Funding::Type]
268
- # @param account_name [String]
269
- # @param nickname [String]
270
-
271
- # State of funding source. Funding source states: _ `ENABLED` - The funding
272
- # account is available to use for card creation and transactions. _ `PENDING` -
273
- # The funding account is still being verified e.g. bank micro-deposits
274
- # verification. \* `DELETED` - The founding account has been deleted.
275
- #
276
- # @see Lithic::Models::CardConvertPhysicalResponse::Funding#state
277
- module State
278
- extend Lithic::Internal::Type::Enum
279
-
280
- DELETED = :DELETED
281
- ENABLED = :ENABLED
282
- PENDING = :PENDING
283
-
284
- # @!method self.values
285
- # @return [Array<Symbol>]
286
- end
287
-
288
- # Types of funding source: _ `DEPOSITORY_CHECKING` - Bank checking account. _
289
- # `DEPOSITORY_SAVINGS` - Bank savings account.
290
- #
291
- # @see Lithic::Models::CardConvertPhysicalResponse::Funding#type
292
- module Type
293
- extend Lithic::Internal::Type::Enum
294
-
295
- DEPOSITORY_CHECKING = :DEPOSITORY_CHECKING
296
- DEPOSITORY_SAVINGS = :DEPOSITORY_SAVINGS
297
-
298
- # @!method self.values
299
- # @return [Array<Symbol>]
300
- end
301
- end
302
-
303
- # Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
304
- # attempts).
305
- #
306
- # @see Lithic::Models::CardConvertPhysicalResponse#pin_status
307
- module PinStatus
308
- extend Lithic::Internal::Type::Enum
309
-
310
- OK = :OK
311
- BLOCKED = :BLOCKED
312
- NOT_SET = :NOT_SET
313
-
314
- # @!method self.values
315
- # @return [Array<Symbol>]
316
- end
317
-
318
- # Spend limit duration
319
- #
320
- # @see Lithic::Models::CardConvertPhysicalResponse#spend_limit_duration
321
- module SpendLimitDuration
322
- extend Lithic::Internal::Type::Enum
323
-
324
- ANNUALLY = :ANNUALLY
325
- FOREVER = :FOREVER
326
- MONTHLY = :MONTHLY
327
- TRANSACTION = :TRANSACTION
328
- DAILY = :DAILY
329
-
330
- # @!method self.values
331
- # @return [Array<Symbol>]
332
- end
333
-
334
- # Card state values: _ `CLOSED` - Card will no longer approve authorizations.
335
- # Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
336
- # they match card and account parameters). _ `PAUSED` - Card will decline
337
- # authorizations, but can be resumed at a later time. _ `PENDING_FULFILLMENT` -
338
- # The initial state for cards of type `PHYSICAL`. The card is provisioned pending
339
- # manufacturing and fulfillment. Cards in this state can accept authorizations for
340
- # e-commerce purchases, but not for "Card Present" purchases where the physical
341
- # card itself is present. \* `PENDING_ACTIVATION` - At regular intervals, cards of
342
- # type `PHYSICAL` in state `PENDING_FULFILLMENT` are sent to the card production
343
- # warehouse and updated to state `PENDING_ACTIVATION`. Similar to
344
- # `PENDING_FULFILLMENT`, cards in this state can be used for e-commerce
345
- # transactions or can be added to mobile wallets. API clients should update the
346
- # card's state to `OPEN` only after the cardholder confirms receipt of the card.
347
- # In sandbox, the same daily batch fulfillment occurs, but no cards are actually
348
- # manufactured.
349
- #
350
- # @see Lithic::Models::CardConvertPhysicalResponse#state
351
- module State
352
- extend Lithic::Internal::Type::Enum
353
-
354
- CLOSED = :CLOSED
355
- OPEN = :OPEN
356
- PAUSED = :PAUSED
357
- PENDING_ACTIVATION = :PENDING_ACTIVATION
358
- PENDING_FULFILLMENT = :PENDING_FULFILLMENT
359
-
360
- # @!method self.values
361
- # @return [Array<Symbol>]
362
- end
363
-
364
- # Card types: _ `VIRTUAL` - Card will authorize at any merchant and can be added
365
- # to a digital wallet like Apple Pay or Google Pay (if the card program is digital
366
- # wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
367
- # offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
368
- # functionality. _ `SINGLE_USE` - Card is closed upon first successful
369
- # authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
370
- # merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
371
- # Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
372
- # `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
373
- # VIRTUAL instead.
374
- #
375
- # @see Lithic::Models::CardConvertPhysicalResponse#type
376
- module Type
377
- extend Lithic::Internal::Type::Enum
378
-
379
- MERCHANT_LOCKED = :MERCHANT_LOCKED
380
- PHYSICAL = :PHYSICAL
381
- SINGLE_USE = :SINGLE_USE
382
- VIRTUAL = :VIRTUAL
383
- UNLOCKED = :UNLOCKED
384
- DIGITAL_WALLET = :DIGITAL_WALLET
385
-
386
- # @!method self.values
387
- # @return [Array<Symbol>]
388
- end
389
- end
390
- end
391
- end