increase 1.359.0 → 1.360.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34e50ff2a76f94e5d65e0a5c80802b01fb099caec60bcfe108176c7893576397
4
- data.tar.gz: 4f4dee6f3aab64576e00f4122a84e1232012f3de18aad9cb38176c24eb2ad6de
3
+ metadata.gz: '090ddfb3996fb38eaebc7ef190bbda03ef32d7450462d3a7b1a5593d1a66ab05'
4
+ data.tar.gz: '018e7f273ffe6a0dfa9732a8eeac3525bd547fb8c2bb3e2ccce47210b0fe0acc'
5
5
  SHA512:
6
- metadata.gz: c47f988216462e9d2b6552120fa1a87aa5fca777080ba6b595cc1c2d63d1ab82e3f22ae0636e772e671b752d60b7df8ed9bc97c2e54bafa36a3c306fadcd9f1b
7
- data.tar.gz: 3175e2228cefc4e5fd51d8c53bdbdc7592d3d02a0076131d330a11000cf83a6346ef35bb9e068d3631a11d80ca5255d5dca9a8aebf7e94211743a3d3c905b614
6
+ metadata.gz: bb4a15246e823dbfe3c0db21169bd2ab03a5c92cd2f810799a1885791f5ac65fde301a6c07a056086d1a89132a0c899a81d264425f5f80fbcf2db285cf998772
7
+ data.tar.gz: f81dee02494d3077d5db942dd82677b99e13bd1cb1840102cd0c36846545c145564ea60736c2231f168d3a6403e3e6df568a05f6bace2c7fc174522e6f92ee84
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 "increase", "~> 1.359.0"
18
+ gem "increase", "~> 1.360.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -35,13 +35,6 @@ module Increase
35
35
  # @return [Time]
36
36
  required :created_at, Time
37
37
 
38
- # @!attribute decline
39
- # If the Digital Wallet Token was declined during provisioning, details about the
40
- # decline.
41
- #
42
- # @return [Increase::Models::DigitalWalletToken::Decline, nil]
43
- required :decline, -> { Increase::DigitalWalletToken::Decline }, nil?: true
44
-
45
38
  # @!attribute device
46
39
  # The device that was used to create the Digital Wallet Token.
47
40
  #
@@ -93,7 +86,7 @@ module Increase
93
86
  # @return [Array<Increase::Models::DigitalWalletToken::Update>]
94
87
  required :updates, -> { Increase::Internal::Type::ArrayOf[Increase::DigitalWalletToken::Update] }
95
88
 
96
- # @!method initialize(id:, account_id:, card_id:, cardholder:, created_at:, decline:, device:, dynamic_primary_account_number:, primary_account_number_reference_identifier:, status:, token_reference_identifier:, token_requestor:, type:, updates:)
89
+ # @!method initialize(id:, account_id:, card_id:, cardholder:, created_at:, device:, dynamic_primary_account_number:, primary_account_number_reference_identifier:, status:, token_reference_identifier:, token_requestor:, type:, updates:)
97
90
  # A Digital Wallet Token is created when a user adds a Card to their Apple Pay or
98
91
  # Google Pay app. The Digital Wallet Token can be used for purchases just like a
99
92
  # Card.
@@ -111,10 +104,6 @@ module Increase
111
104
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
112
105
  # the Digital Wallet Token was created.
113
106
  #
114
- # @param decline [Increase::Models::DigitalWalletToken::Decline, nil]
115
- # If the Digital Wallet Token was declined during provisioning, details about the
116
- # decline.
117
- #
118
107
  # @param device [Increase::Models::DigitalWalletToken::Device]
119
108
  # The device that was used to create the Digital Wallet Token.
120
109
  #
@@ -153,59 +142,6 @@ module Increase
153
142
  # @param name [String, nil] Name of the cardholder, for example "John Smith".
154
143
  end
155
144
 
156
- # @see Increase::Models::DigitalWalletToken#decline
157
- class Decline < Increase::Internal::Type::BaseModel
158
- # @!attribute reason
159
- # The reason the token provisioning was declined.
160
- #
161
- # @return [Symbol, Increase::Models::DigitalWalletToken::Decline::Reason]
162
- required :reason, enum: -> { Increase::DigitalWalletToken::Decline::Reason }
163
-
164
- # @!method initialize(reason:)
165
- # If the Digital Wallet Token was declined during provisioning, details about the
166
- # decline.
167
- #
168
- # @param reason [Symbol, Increase::Models::DigitalWalletToken::Decline::Reason]
169
- # The reason the token provisioning was declined.
170
-
171
- # The reason the token provisioning was declined.
172
- #
173
- # @see Increase::Models::DigitalWalletToken::Decline#reason
174
- module Reason
175
- extend Increase::Internal::Type::Enum
176
-
177
- # The card is not active.
178
- CARD_NOT_ACTIVE = :card_not_active
179
-
180
- # The card does not have a two-factor authentication method.
181
- NO_VERIFICATION_METHOD = :no_verification_method
182
-
183
- # Your webhook timed out when evaluating the token provisioning attempt.
184
- WEBHOOK_TIMED_OUT = :webhook_timed_out
185
-
186
- # Your webhook declined the token provisioning attempt.
187
- WEBHOOK_DECLINED = :webhook_declined
188
-
189
- # The tokenization attempt failed because the Card Verification Code (CVC) was incorrect.
190
- INCORRECT_CARD_VERIFICATION_CODE = :incorrect_card_verification_code
191
-
192
- # The tokenization attempt was declined by the token requestor.
193
- DECLINED_BY_TOKEN_REQUESTOR = :declined_by_token_requestor
194
-
195
- # The group was locked.
196
- GROUP_LOCKED = :group_locked
197
-
198
- # The account has been closed.
199
- ACCOUNT_CLOSED = :account_closed
200
-
201
- # The account's entity was not active.
202
- ENTITY_NOT_ACTIVE = :entity_not_active
203
-
204
- # @!method self.values
205
- # @return [Array<Symbol>]
206
- end
207
- end
208
-
209
145
  # @see Increase::Models::DigitalWalletToken#device
210
146
  class Device < Increase::Internal::Type::BaseModel
211
147
  # @!attribute device_type
@@ -321,9 +257,6 @@ module Increase
321
257
  # The digital wallet token has been permanently canceled.
322
258
  DEACTIVATED = :deactivated
323
259
 
324
- # The digital wallet token was declined during provisioning.
325
- DECLINED = :declined
326
-
327
260
  # The digital wallet token is transitioning to a new status and is awaiting confirmation from the card network.
328
261
  PENDING_TRANSITIONING = :pending_transitioning
329
262
 
@@ -409,9 +342,6 @@ module Increase
409
342
  # The digital wallet token has been permanently canceled.
410
343
  DEACTIVATED = :deactivated
411
344
 
412
- # The digital wallet token was declined during provisioning.
413
- DECLINED = :declined
414
-
415
345
  # The digital wallet token is transitioning to a new status and is awaiting confirmation from the card network.
416
346
  PENDING_TRANSITIONING = :pending_transitioning
417
347
 
@@ -149,6 +149,9 @@ module Increase
149
149
  # The account's entity was not active.
150
150
  ENTITY_NOT_ACTIVE = :entity_not_active
151
151
 
152
+ # The given expiration date did not match the card's value.
153
+ CARD_EXPIRATION_MISMATCH = :card_expiration_mismatch
154
+
152
155
  # @!method self.values
153
156
  # @return [Array<Symbol>]
154
157
  end
@@ -70,7 +70,7 @@ module Increase
70
70
  required :shipment, -> { Increase::PhysicalCard::Shipment }
71
71
 
72
72
  # @!attribute status
73
- # The status of the Physical Card.
73
+ # The status of the Physical Card. The initial status is `disabled`.
74
74
  #
75
75
  # @return [Symbol, Increase::Models::PhysicalCard::Status]
76
76
  required :status, enum: -> { Increase::PhysicalCard::Status }
@@ -120,7 +120,8 @@ module Increase
120
120
  #
121
121
  # @param shipment [Increase::Models::PhysicalCard::Shipment] The details used to ship this physical card.
122
122
  #
123
- # @param status [Symbol, Increase::Models::PhysicalCard::Status] The status of the Physical Card.
123
+ # @param status [Symbol, Increase::Models::PhysicalCard::Status]
124
+ # The status of the Physical Card. The initial status is `disabled`.
124
125
  #
125
126
  # @param type [Symbol, Increase::Models::PhysicalCard::Type]
126
127
  # A constant representing the object's type. For this resource it will always be
@@ -498,7 +499,7 @@ module Increase
498
499
  end
499
500
  end
500
501
 
501
- # The status of the Physical Card.
502
+ # The status of the Physical Card. The initial status is `disabled`.
502
503
  #
503
504
  # @see Increase::Models::PhysicalCard#status
504
505
  module Status
@@ -77,6 +77,9 @@ module Increase
77
77
  # The account's entity was not active.
78
78
  ENTITY_NOT_ACTIVE = :entity_not_active
79
79
 
80
+ # The given expiration date did not match the card's value.
81
+ CARD_EXPIRATION_MISMATCH = :card_expiration_mismatch
82
+
80
83
  # @!method self.values
81
84
  # @return [Array<Symbol>]
82
85
  end
@@ -15,7 +15,7 @@ module Increase
15
15
  required :name, String
16
16
 
17
17
  # @!attribute bank
18
- # The bank for the program's accounts, defaults to First Internet Bank.
18
+ # The bank for the program's accounts, defaults to Increase Bank.
19
19
  #
20
20
  # @return [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank, nil]
21
21
  optional :bank, enum: -> { Increase::Simulations::ProgramCreateParams::Bank }
@@ -43,7 +43,7 @@ module Increase
43
43
  # @param name [String] The name of the program being added.
44
44
  #
45
45
  # @param bank [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank]
46
- # The bank for the program's accounts, defaults to First Internet Bank.
46
+ # The bank for the program's accounts, defaults to Increase Bank.
47
47
  #
48
48
  # @param lending_maximum_extendable_credit [Integer]
49
49
  # The maximum extendable credit of the program being added.
@@ -56,7 +56,7 @@ module Increase
56
56
  #
57
57
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
58
58
 
59
- # The bank for the program's accounts, defaults to First Internet Bank.
59
+ # The bank for the program's accounts, defaults to Increase Bank.
60
60
  module Bank
61
61
  extend Increase::Internal::Type::Enum
62
62
 
@@ -3,7 +3,8 @@
3
3
  module Increase
4
4
  module Resources
5
5
  class PhysicalCards
6
- # Create a Physical Card
6
+ # Physical Cards start in the status `disabled`. Activate the card once it arrives
7
+ # at the destination and the recipient confirms receipt.
7
8
  #
8
9
  # @overload create(card_id:, cardholder:, shipment:, physical_card_profile_id: nil, request_options: {})
9
10
  #
@@ -14,7 +14,7 @@ module Increase
14
14
  # @param name [String] The name of the program being added.
15
15
  #
16
16
  # @param bank [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank]
17
- # The bank for the program's accounts, defaults to First Internet Bank.
17
+ # The bank for the program's accounts, defaults to Increase Bank.
18
18
  #
19
19
  # @param lending_maximum_extendable_credit [Integer]
20
20
  # The maximum extendable credit of the program being added.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.359.0"
4
+ VERSION = "1.360.0"
5
5
  end
@@ -36,18 +36,6 @@ module Increase
36
36
  sig { returns(Time) }
37
37
  attr_accessor :created_at
38
38
 
39
- # If the Digital Wallet Token was declined during provisioning, details about the
40
- # decline.
41
- sig { returns(T.nilable(Increase::DigitalWalletToken::Decline)) }
42
- attr_reader :decline
43
-
44
- sig do
45
- params(
46
- decline: T.nilable(Increase::DigitalWalletToken::Decline::OrHash)
47
- ).void
48
- end
49
- attr_writer :decline
50
-
51
39
  # The device that was used to create the Digital Wallet Token.
52
40
  sig { returns(Increase::DigitalWalletToken::Device) }
53
41
  attr_reader :device
@@ -110,7 +98,6 @@ module Increase
110
98
  card_id: String,
111
99
  cardholder: Increase::DigitalWalletToken::Cardholder::OrHash,
112
100
  created_at: Time,
113
- decline: T.nilable(Increase::DigitalWalletToken::Decline::OrHash),
114
101
  device: Increase::DigitalWalletToken::Device::OrHash,
115
102
  dynamic_primary_account_number:
116
103
  T.nilable(
@@ -137,9 +124,6 @@ module Increase
137
124
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
138
125
  # the Digital Wallet Token was created.
139
126
  created_at:,
140
- # If the Digital Wallet Token was declined during provisioning, details about the
141
- # decline.
142
- decline:,
143
127
  # The device that was used to create the Digital Wallet Token.
144
128
  device:,
145
129
  # The redacted Dynamic Primary Account Number.
@@ -168,7 +152,6 @@ module Increase
168
152
  card_id: String,
169
153
  cardholder: Increase::DigitalWalletToken::Cardholder,
170
154
  created_at: Time,
171
- decline: T.nilable(Increase::DigitalWalletToken::Decline),
172
155
  device: Increase::DigitalWalletToken::Device,
173
156
  dynamic_primary_account_number:
174
157
  T.nilable(
@@ -213,130 +196,6 @@ module Increase
213
196
  end
214
197
  end
215
198
 
216
- class Decline < Increase::Internal::Type::BaseModel
217
- OrHash =
218
- T.type_alias do
219
- T.any(
220
- Increase::DigitalWalletToken::Decline,
221
- Increase::Internal::AnyHash
222
- )
223
- end
224
-
225
- # The reason the token provisioning was declined.
226
- sig do
227
- returns(Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol)
228
- end
229
- attr_accessor :reason
230
-
231
- # If the Digital Wallet Token was declined during provisioning, details about the
232
- # decline.
233
- sig do
234
- params(
235
- reason: Increase::DigitalWalletToken::Decline::Reason::OrSymbol
236
- ).returns(T.attached_class)
237
- end
238
- def self.new(
239
- # The reason the token provisioning was declined.
240
- reason:
241
- )
242
- end
243
-
244
- sig do
245
- override.returns(
246
- {
247
- reason:
248
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
249
- }
250
- )
251
- end
252
- def to_hash
253
- end
254
-
255
- # The reason the token provisioning was declined.
256
- module Reason
257
- extend Increase::Internal::Type::Enum
258
-
259
- TaggedSymbol =
260
- T.type_alias do
261
- T.all(Symbol, Increase::DigitalWalletToken::Decline::Reason)
262
- end
263
- OrSymbol = T.type_alias { T.any(Symbol, String) }
264
-
265
- # The card is not active.
266
- CARD_NOT_ACTIVE =
267
- T.let(
268
- :card_not_active,
269
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
270
- )
271
-
272
- # The card does not have a two-factor authentication method.
273
- NO_VERIFICATION_METHOD =
274
- T.let(
275
- :no_verification_method,
276
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
277
- )
278
-
279
- # Your webhook timed out when evaluating the token provisioning attempt.
280
- WEBHOOK_TIMED_OUT =
281
- T.let(
282
- :webhook_timed_out,
283
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
284
- )
285
-
286
- # Your webhook declined the token provisioning attempt.
287
- WEBHOOK_DECLINED =
288
- T.let(
289
- :webhook_declined,
290
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
291
- )
292
-
293
- # The tokenization attempt failed because the Card Verification Code (CVC) was incorrect.
294
- INCORRECT_CARD_VERIFICATION_CODE =
295
- T.let(
296
- :incorrect_card_verification_code,
297
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
298
- )
299
-
300
- # The tokenization attempt was declined by the token requestor.
301
- DECLINED_BY_TOKEN_REQUESTOR =
302
- T.let(
303
- :declined_by_token_requestor,
304
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
305
- )
306
-
307
- # The group was locked.
308
- GROUP_LOCKED =
309
- T.let(
310
- :group_locked,
311
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
312
- )
313
-
314
- # The account has been closed.
315
- ACCOUNT_CLOSED =
316
- T.let(
317
- :account_closed,
318
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
319
- )
320
-
321
- # The account's entity was not active.
322
- ENTITY_NOT_ACTIVE =
323
- T.let(
324
- :entity_not_active,
325
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
326
- )
327
-
328
- sig do
329
- override.returns(
330
- T::Array[
331
- Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
332
- ]
333
- )
334
- end
335
- def self.values
336
- end
337
- end
338
- end
339
-
340
199
  class Device < Increase::Internal::Type::BaseModel
341
200
  OrHash =
342
201
  T.type_alias do
@@ -552,10 +411,6 @@ module Increase
552
411
  Increase::DigitalWalletToken::Status::TaggedSymbol
553
412
  )
554
413
 
555
- # The digital wallet token was declined during provisioning.
556
- DECLINED =
557
- T.let(:declined, Increase::DigitalWalletToken::Status::TaggedSymbol)
558
-
559
414
  # The digital wallet token is transitioning to a new status and is awaiting confirmation from the card network.
560
415
  PENDING_TRANSITIONING =
561
416
  T.let(
@@ -735,13 +590,6 @@ module Increase
735
590
  Increase::DigitalWalletToken::Update::Status::TaggedSymbol
736
591
  )
737
592
 
738
- # The digital wallet token was declined during provisioning.
739
- DECLINED =
740
- T.let(
741
- :declined,
742
- Increase::DigitalWalletToken::Update::Status::TaggedSymbol
743
- )
744
-
745
593
  # The digital wallet token is transitioning to a new status and is awaiting confirmation from the card network.
746
594
  PENDING_TRANSITIONING =
747
595
  T.let(
@@ -267,6 +267,13 @@ module Increase
267
267
  Increase::DigitalWalletTokenRequest::Declined::Reason::TaggedSymbol
268
268
  )
269
269
 
270
+ # The given expiration date did not match the card's value.
271
+ CARD_EXPIRATION_MISMATCH =
272
+ T.let(
273
+ :card_expiration_mismatch,
274
+ Increase::DigitalWalletTokenRequest::Declined::Reason::TaggedSymbol
275
+ )
276
+
270
277
  sig do
271
278
  override.returns(
272
279
  T::Array[
@@ -61,7 +61,7 @@ module Increase
61
61
  sig { params(shipment: Increase::PhysicalCard::Shipment::OrHash).void }
62
62
  attr_writer :shipment
63
63
 
64
- # The status of the Physical Card.
64
+ # The status of the Physical Card. The initial status is `disabled`.
65
65
  sig { returns(Increase::PhysicalCard::Status::TaggedSymbol) }
66
66
  attr_accessor :status
67
67
 
@@ -118,7 +118,7 @@ module Increase
118
118
  physical_card_profile_id:,
119
119
  # The details used to ship this physical card.
120
120
  shipment:,
121
- # The status of the Physical Card.
121
+ # The status of the Physical Card. The initial status is `disabled`.
122
122
  status:,
123
123
  # A constant representing the object's type. For this resource it will always be
124
124
  # `physical_card`.
@@ -762,7 +762,7 @@ module Increase
762
762
  end
763
763
  end
764
764
 
765
- # The status of the Physical Card.
765
+ # The status of the Physical Card. The initial status is `disabled`.
766
766
  module Status
767
767
  extend Increase::Internal::Type::Enum
768
768
 
@@ -155,6 +155,13 @@ module Increase
155
155
  Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse::DeclineReason::TaggedSymbol
156
156
  )
157
157
 
158
+ # The given expiration date did not match the card's value.
159
+ CARD_EXPIRATION_MISMATCH =
160
+ T.let(
161
+ :card_expiration_mismatch,
162
+ Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse::DeclineReason::TaggedSymbol
163
+ )
164
+
158
165
  sig do
159
166
  override.returns(
160
167
  T::Array[
@@ -19,7 +19,7 @@ module Increase
19
19
  sig { returns(String) }
20
20
  attr_accessor :name
21
21
 
22
- # The bank for the program's accounts, defaults to First Internet Bank.
22
+ # The bank for the program's accounts, defaults to Increase Bank.
23
23
  sig do
24
24
  returns(
25
25
  T.nilable(
@@ -71,7 +71,7 @@ module Increase
71
71
  def self.new(
72
72
  # The name of the program being added.
73
73
  name:,
74
- # The bank for the program's accounts, defaults to First Internet Bank.
74
+ # The bank for the program's accounts, defaults to Increase Bank.
75
75
  bank: nil,
76
76
  # The maximum extendable credit of the program being added.
77
77
  lending_maximum_extendable_credit: nil,
@@ -99,7 +99,7 @@ module Increase
99
99
  def to_hash
100
100
  end
101
101
 
102
- # The bank for the program's accounts, defaults to First Internet Bank.
102
+ # The bank for the program's accounts, defaults to Increase Bank.
103
103
  module Bank
104
104
  extend Increase::Internal::Type::Enum
105
105
 
@@ -3,7 +3,8 @@
3
3
  module Increase
4
4
  module Resources
5
5
  class PhysicalCards
6
- # Create a Physical Card
6
+ # Physical Cards start in the status `disabled`. Activate the card once it arrives
7
+ # at the destination and the recipient confirms receipt.
7
8
  sig do
8
9
  params(
9
10
  card_id: String,
@@ -21,7 +21,7 @@ module Increase
21
21
  def create(
22
22
  # The name of the program being added.
23
23
  name:,
24
- # The bank for the program's accounts, defaults to First Internet Bank.
24
+ # The bank for the program's accounts, defaults to Increase Bank.
25
25
  bank: nil,
26
26
  # The maximum extendable credit of the program being added.
27
27
  lending_maximum_extendable_credit: nil,
@@ -7,7 +7,6 @@ module Increase
7
7
  card_id: String,
8
8
  cardholder: Increase::DigitalWalletToken::Cardholder,
9
9
  created_at: Time,
10
- decline: Increase::DigitalWalletToken::Decline?,
11
10
  device: Increase::DigitalWalletToken::Device,
12
11
  dynamic_primary_account_number: Increase::DigitalWalletToken::DynamicPrimaryAccountNumber?,
13
12
  primary_account_number_reference_identifier: String,
@@ -29,8 +28,6 @@ module Increase
29
28
 
30
29
  attr_accessor created_at: Time
31
30
 
32
- attr_accessor decline: Increase::DigitalWalletToken::Decline?
33
-
34
31
  attr_accessor device: Increase::DigitalWalletToken::Device
35
32
 
36
33
  attr_accessor dynamic_primary_account_number: Increase::DigitalWalletToken::DynamicPrimaryAccountNumber?
@@ -53,7 +50,6 @@ module Increase
53
50
  card_id: String,
54
51
  cardholder: Increase::DigitalWalletToken::Cardholder,
55
52
  created_at: Time,
56
- decline: Increase::DigitalWalletToken::Decline?,
57
53
  device: Increase::DigitalWalletToken::Device,
58
54
  dynamic_primary_account_number: Increase::DigitalWalletToken::DynamicPrimaryAccountNumber?,
59
55
  primary_account_number_reference_identifier: String,
@@ -70,7 +66,6 @@ module Increase
70
66
  card_id: String,
71
67
  cardholder: Increase::DigitalWalletToken::Cardholder,
72
68
  created_at: Time,
73
- decline: Increase::DigitalWalletToken::Decline?,
74
69
  device: Increase::DigitalWalletToken::Device,
75
70
  dynamic_primary_account_number: Increase::DigitalWalletToken::DynamicPrimaryAccountNumber?,
76
71
  primary_account_number_reference_identifier: String,
@@ -91,65 +86,6 @@ module Increase
91
86
  def to_hash: -> { name: String? }
92
87
  end
93
88
 
94
- type decline =
95
- { reason: Increase::Models::DigitalWalletToken::Decline::reason }
96
-
97
- class Decline < Increase::Internal::Type::BaseModel
98
- attr_accessor reason: Increase::Models::DigitalWalletToken::Decline::reason
99
-
100
- def initialize: (
101
- reason: Increase::Models::DigitalWalletToken::Decline::reason
102
- ) -> void
103
-
104
- def to_hash: -> {
105
- reason: Increase::Models::DigitalWalletToken::Decline::reason
106
- }
107
-
108
- type reason =
109
- :card_not_active
110
- | :no_verification_method
111
- | :webhook_timed_out
112
- | :webhook_declined
113
- | :incorrect_card_verification_code
114
- | :declined_by_token_requestor
115
- | :group_locked
116
- | :account_closed
117
- | :entity_not_active
118
-
119
- module Reason
120
- extend Increase::Internal::Type::Enum
121
-
122
- # The card is not active.
123
- CARD_NOT_ACTIVE: :card_not_active
124
-
125
- # The card does not have a two-factor authentication method.
126
- NO_VERIFICATION_METHOD: :no_verification_method
127
-
128
- # Your webhook timed out when evaluating the token provisioning attempt.
129
- WEBHOOK_TIMED_OUT: :webhook_timed_out
130
-
131
- # Your webhook declined the token provisioning attempt.
132
- WEBHOOK_DECLINED: :webhook_declined
133
-
134
- # The tokenization attempt failed because the Card Verification Code (CVC) was incorrect.
135
- INCORRECT_CARD_VERIFICATION_CODE: :incorrect_card_verification_code
136
-
137
- # The tokenization attempt was declined by the token requestor.
138
- DECLINED_BY_TOKEN_REQUESTOR: :declined_by_token_requestor
139
-
140
- # The group was locked.
141
- GROUP_LOCKED: :group_locked
142
-
143
- # The account has been closed.
144
- ACCOUNT_CLOSED: :account_closed
145
-
146
- # The account's entity was not active.
147
- ENTITY_NOT_ACTIVE: :entity_not_active
148
-
149
- def self?.values: -> ::Array[Increase::Models::DigitalWalletToken::Decline::reason]
150
- end
151
- end
152
-
153
89
  type device =
154
90
  {
155
91
  device_type: Increase::Models::DigitalWalletToken::Device::device_type?,
@@ -240,12 +176,7 @@ module Increase
240
176
  end
241
177
 
242
178
  type status =
243
- :active
244
- | :inactive
245
- | :suspended
246
- | :deactivated
247
- | :declined
248
- | :pending_transitioning
179
+ :active | :inactive | :suspended | :deactivated | :pending_transitioning
249
180
 
250
181
  module Status
251
182
  extend Increase::Internal::Type::Enum
@@ -262,9 +193,6 @@ module Increase
262
193
  # The digital wallet token has been permanently canceled.
263
194
  DEACTIVATED: :deactivated
264
195
 
265
- # The digital wallet token was declined during provisioning.
266
- DECLINED: :declined
267
-
268
196
  # The digital wallet token is transitioning to a new status and is awaiting confirmation from the card network.
269
197
  PENDING_TRANSITIONING: :pending_transitioning
270
198
 
@@ -331,7 +259,6 @@ module Increase
331
259
  | :inactive
332
260
  | :suspended
333
261
  | :deactivated
334
- | :declined
335
262
  | :pending_transitioning
336
263
 
337
264
  module Status
@@ -349,9 +276,6 @@ module Increase
349
276
  # The digital wallet token has been permanently canceled.
350
277
  DEACTIVATED: :deactivated
351
278
 
352
- # The digital wallet token was declined during provisioning.
353
- DECLINED: :declined
354
-
355
279
  # The digital wallet token is transitioning to a new status and is awaiting confirmation from the card network.
356
280
  PENDING_TRANSITIONING: :pending_transitioning
357
281
 
@@ -87,6 +87,7 @@ module Increase
87
87
  | :group_locked
88
88
  | :account_closed
89
89
  | :entity_not_active
90
+ | :card_expiration_mismatch
90
91
 
91
92
  module Reason
92
93
  extend Increase::Internal::Type::Enum
@@ -118,6 +119,9 @@ module Increase
118
119
  # The account's entity was not active.
119
120
  ENTITY_NOT_ACTIVE: :entity_not_active
120
121
 
122
+ # The given expiration date did not match the card's value.
123
+ CARD_EXPIRATION_MISMATCH: :card_expiration_mismatch
124
+
121
125
  def self?.values: -> ::Array[Increase::Models::DigitalWalletTokenRequest::Declined::reason]
122
126
  end
123
127
  end
@@ -37,6 +37,7 @@ module Increase
37
37
  | :group_locked
38
38
  | :account_closed
39
39
  | :entity_not_active
40
+ | :card_expiration_mismatch
40
41
 
41
42
  module DeclineReason
42
43
  extend Increase::Internal::Type::Enum
@@ -68,6 +69,9 @@ module Increase
68
69
  # The account's entity was not active.
69
70
  ENTITY_NOT_ACTIVE: :entity_not_active
70
71
 
72
+ # The given expiration date did not match the card's value.
73
+ CARD_EXPIRATION_MISMATCH: :card_expiration_mismatch
74
+
71
75
  def self?.values: -> ::Array[Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse::decline_reason]
72
76
  end
73
77
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.359.0
4
+ version: 1.360.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-20 00:00:00.000000000 Z
11
+ date: 2026-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi