increase 1.358.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 +4 -4
- data/README.md +1 -1
- data/lib/increase/models/card.rb +6 -3
- data/lib/increase/models/card_create_params.rb +4 -2
- data/lib/increase/models/card_dispute.rb +3 -1
- data/lib/increase/models/card_payment.rb +3 -1
- data/lib/increase/models/card_push_transfer.rb +18 -3
- data/lib/increase/models/card_push_transfer_create_params.rb +18 -3
- data/lib/increase/models/card_update_params.rb +4 -2
- data/lib/increase/models/digital_wallet_token.rb +1 -71
- data/lib/increase/models/digital_wallet_token_request.rb +3 -0
- data/lib/increase/models/export.rb +6 -6
- data/lib/increase/models/physical_card.rb +6 -4
- data/lib/increase/models/simulations/digital_wallet_token_request_create_response.rb +3 -0
- data/lib/increase/models/simulations/program_create_params.rb +3 -3
- data/lib/increase/resources/physical_cards.rb +2 -1
- data/lib/increase/resources/simulations/programs.rb +1 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/card.rbi +6 -3
- data/rbi/increase/models/card_create_params.rbi +4 -2
- data/rbi/increase/models/card_dispute.rbi +3 -1
- data/rbi/increase/models/card_payment.rbi +3 -1
- data/rbi/increase/models/card_push_transfer.rbi +42 -7
- data/rbi/increase/models/card_push_transfer_create_params.rbi +42 -7
- data/rbi/increase/models/card_update_params.rbi +4 -2
- data/rbi/increase/models/digital_wallet_token.rbi +0 -152
- data/rbi/increase/models/digital_wallet_token_request.rbi +7 -0
- data/rbi/increase/models/export.rbi +6 -6
- data/rbi/increase/models/physical_card.rbi +5 -4
- data/rbi/increase/models/simulations/digital_wallet_token_request_create_response.rbi +7 -0
- data/rbi/increase/models/simulations/program_create_params.rbi +3 -3
- data/rbi/increase/resources/physical_cards.rbi +2 -1
- data/rbi/increase/resources/simulations/programs.rbi +1 -1
- data/sig/increase/models/card_push_transfer.rbs +24 -4
- data/sig/increase/models/card_push_transfer_create_params.rbs +24 -4
- data/sig/increase/models/digital_wallet_token.rbs +1 -77
- data/sig/increase/models/digital_wallet_token_request.rbs +4 -0
- data/sig/increase/models/simulations/digital_wallet_token_request_create_response.rbs +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '090ddfb3996fb38eaebc7ef190bbda03ef32d7450462d3a7b1a5593d1a66ab05'
|
|
4
|
+
data.tar.gz: '018e7f273ffe6a0dfa9732a8eeac3525bd547fb8c2bb3e2ccce47210b0fe0acc'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb4a15246e823dbfe3c0db21169bd2ab03a5c92cd2f810799a1885791f5ac65fde301a6c07a056086d1a89132a0c899a81d264425f5f80fbcf2db285cf998772
|
|
7
|
+
data.tar.gz: f81dee02494d3077d5db942dd82677b99e13bd1cb1840102cd0c36846545c145564ea60736c2231f168d3a6403e3e6df568a05f6bace2c7fc174522e6f92ee84
|
data/README.md
CHANGED
data/lib/increase/models/card.rb
CHANGED
|
@@ -125,7 +125,8 @@ module Increase
|
|
|
125
125
|
# for online purchases after you create them. All cards work on a good funds
|
|
126
126
|
# model, and maintain a maximum limit of 100% of the Account’s available balance
|
|
127
127
|
# at the time of transaction. Funds are deducted from the Account upon transaction
|
|
128
|
-
# settlement.
|
|
128
|
+
# settlement. For more information, see our guide on
|
|
129
|
+
# [managing cards](https://increase.com/documentation/managing-cards).
|
|
129
130
|
#
|
|
130
131
|
# @param id [String] The card identifier.
|
|
131
132
|
#
|
|
@@ -693,7 +694,8 @@ module Increase
|
|
|
693
694
|
|
|
694
695
|
# @!attribute phone
|
|
695
696
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
696
|
-
# over SMS.
|
|
697
|
+
# over SMS. Returned in [E.164](https://en.wikipedia.org/wiki/E.164) format, for
|
|
698
|
+
# example `+14155550123`.
|
|
697
699
|
#
|
|
698
700
|
# @return [String, nil]
|
|
699
701
|
required :phone, String, nil?: true
|
|
@@ -713,7 +715,8 @@ module Increase
|
|
|
713
715
|
#
|
|
714
716
|
# @param phone [String, nil]
|
|
715
717
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
716
|
-
# over SMS.
|
|
718
|
+
# over SMS. Returned in [E.164](https://en.wikipedia.org/wiki/E.164) format, for
|
|
719
|
+
# example `+14155550123`.
|
|
717
720
|
end
|
|
718
721
|
|
|
719
722
|
class Renewal < Increase::Internal::Type::BaseModel
|
|
@@ -587,7 +587,8 @@ module Increase
|
|
|
587
587
|
|
|
588
588
|
# @!attribute phone
|
|
589
589
|
# A phone number that can be used to contact and verify the cardholder via
|
|
590
|
-
# one-time passcode over SMS.
|
|
590
|
+
# one-time passcode over SMS. Accepts formats like `+14155550123`, `4155550123`,
|
|
591
|
+
# `415-555-0123`, or `(415) 555-0123`.
|
|
591
592
|
#
|
|
592
593
|
# @return [String, nil]
|
|
593
594
|
optional :phone, String
|
|
@@ -607,7 +608,8 @@ module Increase
|
|
|
607
608
|
#
|
|
608
609
|
# @param phone [String]
|
|
609
610
|
# A phone number that can be used to contact and verify the cardholder via
|
|
610
|
-
# one-time passcode over SMS.
|
|
611
|
+
# one-time passcode over SMS. Accepts formats like `+14155550123`, `4155550123`,
|
|
612
|
+
# `415-555-0123`, or `(415) 555-0123`.
|
|
611
613
|
end
|
|
612
614
|
|
|
613
615
|
class ReplacementFor < Increase::Internal::Type::BaseModel
|
|
@@ -115,7 +115,9 @@ module Increase
|
|
|
115
115
|
|
|
116
116
|
# @!method initialize(id:, account_id:, amount:, card_id:, created_at:, disputed_transaction_id:, idempotency_key:, loss:, network:, rejection:, status:, type:, user_submission_required_by:, visa:, win:, withdrawal:)
|
|
117
117
|
# If unauthorized activity occurs on a card, you can create a Card Dispute and
|
|
118
|
-
# we'll work with the card networks to return the funds if appropriate.
|
|
118
|
+
# we'll work with the card networks to return the funds if appropriate. For more
|
|
119
|
+
# information, see our guide on
|
|
120
|
+
# [card disputes](https://increase.com/documentation/card-disputes).
|
|
119
121
|
#
|
|
120
122
|
# @param id [String] The Card Dispute identifier.
|
|
121
123
|
#
|
|
@@ -62,7 +62,9 @@ module Increase
|
|
|
62
62
|
|
|
63
63
|
# @!method initialize(id:, account_id:, card_id:, created_at:, digital_wallet_token_id:, elements:, physical_card_id:, state:, type:)
|
|
64
64
|
# Card Payments group together interactions related to a single card payment, such
|
|
65
|
-
# as an authorization and its corresponding settlement.
|
|
65
|
+
# as an authorization and its corresponding settlement. For more information, see
|
|
66
|
+
# our guide on the
|
|
67
|
+
# [Card Payment lifecycle](https://increase.com/documentation/card-payment-lifecycle).
|
|
66
68
|
#
|
|
67
69
|
# @param id [String] The Card Payment identifier.
|
|
68
70
|
#
|
|
@@ -935,6 +935,9 @@ module Increase
|
|
|
935
935
|
# AOA
|
|
936
936
|
AOA = :AOA
|
|
937
937
|
|
|
938
|
+
# XCD
|
|
939
|
+
XCD = :XCD
|
|
940
|
+
|
|
938
941
|
# ARS
|
|
939
942
|
ARS = :ARS
|
|
940
943
|
|
|
@@ -968,6 +971,9 @@ module Increase
|
|
|
968
971
|
# BZD
|
|
969
972
|
BZD = :BZD
|
|
970
973
|
|
|
974
|
+
# XOF
|
|
975
|
+
XOF = :XOF
|
|
976
|
+
|
|
971
977
|
# BMD
|
|
972
978
|
BMD = :BMD
|
|
973
979
|
|
|
@@ -998,9 +1004,6 @@ module Increase
|
|
|
998
1004
|
# BND
|
|
999
1005
|
BND = :BND
|
|
1000
1006
|
|
|
1001
|
-
# BGN
|
|
1002
|
-
BGN = :BGN
|
|
1003
|
-
|
|
1004
1007
|
# BIF
|
|
1005
1008
|
BIF = :BIF
|
|
1006
1009
|
|
|
@@ -1010,6 +1013,9 @@ module Increase
|
|
|
1010
1013
|
# KHR
|
|
1011
1014
|
KHR = :KHR
|
|
1012
1015
|
|
|
1016
|
+
# XAF
|
|
1017
|
+
XAF = :XAF
|
|
1018
|
+
|
|
1013
1019
|
# CAD
|
|
1014
1020
|
CAD = :CAD
|
|
1015
1021
|
|
|
@@ -1046,6 +1052,9 @@ module Increase
|
|
|
1046
1052
|
# CUP
|
|
1047
1053
|
CUP = :CUP
|
|
1048
1054
|
|
|
1055
|
+
# XCG
|
|
1056
|
+
XCG = :XCG
|
|
1057
|
+
|
|
1049
1058
|
# CZK
|
|
1050
1059
|
CZK = :CZK
|
|
1051
1060
|
|
|
@@ -1079,6 +1088,9 @@ module Increase
|
|
|
1079
1088
|
# FJD
|
|
1080
1089
|
FJD = :FJD
|
|
1081
1090
|
|
|
1091
|
+
# XPF
|
|
1092
|
+
XPF = :XPF
|
|
1093
|
+
|
|
1082
1094
|
# GMD
|
|
1083
1095
|
GMD = :GMD
|
|
1084
1096
|
|
|
@@ -1397,6 +1409,9 @@ module Increase
|
|
|
1397
1409
|
# ZWG
|
|
1398
1410
|
ZWG = :ZWG
|
|
1399
1411
|
|
|
1412
|
+
# BGN
|
|
1413
|
+
BGN = :BGN
|
|
1414
|
+
|
|
1400
1415
|
# @!method self.values
|
|
1401
1416
|
# @return [Array<Symbol>]
|
|
1402
1417
|
end
|
|
@@ -349,6 +349,9 @@ module Increase
|
|
|
349
349
|
# AOA
|
|
350
350
|
AOA = :AOA
|
|
351
351
|
|
|
352
|
+
# XCD
|
|
353
|
+
XCD = :XCD
|
|
354
|
+
|
|
352
355
|
# ARS
|
|
353
356
|
ARS = :ARS
|
|
354
357
|
|
|
@@ -382,6 +385,9 @@ module Increase
|
|
|
382
385
|
# BZD
|
|
383
386
|
BZD = :BZD
|
|
384
387
|
|
|
388
|
+
# XOF
|
|
389
|
+
XOF = :XOF
|
|
390
|
+
|
|
385
391
|
# BMD
|
|
386
392
|
BMD = :BMD
|
|
387
393
|
|
|
@@ -412,9 +418,6 @@ module Increase
|
|
|
412
418
|
# BND
|
|
413
419
|
BND = :BND
|
|
414
420
|
|
|
415
|
-
# BGN
|
|
416
|
-
BGN = :BGN
|
|
417
|
-
|
|
418
421
|
# BIF
|
|
419
422
|
BIF = :BIF
|
|
420
423
|
|
|
@@ -424,6 +427,9 @@ module Increase
|
|
|
424
427
|
# KHR
|
|
425
428
|
KHR = :KHR
|
|
426
429
|
|
|
430
|
+
# XAF
|
|
431
|
+
XAF = :XAF
|
|
432
|
+
|
|
427
433
|
# CAD
|
|
428
434
|
CAD = :CAD
|
|
429
435
|
|
|
@@ -460,6 +466,9 @@ module Increase
|
|
|
460
466
|
# CUP
|
|
461
467
|
CUP = :CUP
|
|
462
468
|
|
|
469
|
+
# XCG
|
|
470
|
+
XCG = :XCG
|
|
471
|
+
|
|
463
472
|
# CZK
|
|
464
473
|
CZK = :CZK
|
|
465
474
|
|
|
@@ -493,6 +502,9 @@ module Increase
|
|
|
493
502
|
# FJD
|
|
494
503
|
FJD = :FJD
|
|
495
504
|
|
|
505
|
+
# XPF
|
|
506
|
+
XPF = :XPF
|
|
507
|
+
|
|
496
508
|
# GMD
|
|
497
509
|
GMD = :GMD
|
|
498
510
|
|
|
@@ -811,6 +823,9 @@ module Increase
|
|
|
811
823
|
# ZWG
|
|
812
824
|
ZWG = :ZWG
|
|
813
825
|
|
|
826
|
+
# BGN
|
|
827
|
+
BGN = :BGN
|
|
828
|
+
|
|
814
829
|
# @!method self.values
|
|
815
830
|
# @return [Array<Symbol>]
|
|
816
831
|
end
|
|
@@ -540,7 +540,8 @@ module Increase
|
|
|
540
540
|
|
|
541
541
|
# @!attribute phone
|
|
542
542
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
543
|
-
# over SMS.
|
|
543
|
+
# over SMS. Accepts formats like `+14155550123`, `4155550123`, `415-555-0123`, or
|
|
544
|
+
# `(415) 555-0123`.
|
|
544
545
|
#
|
|
545
546
|
# @return [String, nil]
|
|
546
547
|
optional :phone, String
|
|
@@ -558,7 +559,8 @@ module Increase
|
|
|
558
559
|
#
|
|
559
560
|
# @param phone [String]
|
|
560
561
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
561
|
-
# over SMS.
|
|
562
|
+
# over SMS. Accepts formats like `+14155550123`, `4155550123`, `415-555-0123`, or
|
|
563
|
+
# `(415) 555-0123`.
|
|
562
564
|
end
|
|
563
565
|
|
|
564
566
|
# The status to update the Card with.
|
|
@@ -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:,
|
|
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
|
|
@@ -529,8 +529,8 @@ module Increase
|
|
|
529
529
|
# @see Increase::Models::Export#fee_csv
|
|
530
530
|
class FeeCsv < Increase::Internal::Type::BaseModel
|
|
531
531
|
# @!attribute created_at
|
|
532
|
-
# Filter fees by their created date. The time range must not include any fees
|
|
533
|
-
#
|
|
532
|
+
# Filter fees by their created date. The time range must not include any fees on
|
|
533
|
+
# an open fee statement.
|
|
534
534
|
#
|
|
535
535
|
# @return [Increase::Models::Export::FeeCsv::CreatedAt, nil]
|
|
536
536
|
required :created_at, -> { Increase::Export::FeeCsv::CreatedAt }, nil?: true
|
|
@@ -540,8 +540,8 @@ module Increase
|
|
|
540
540
|
# equal to `fee_csv`.
|
|
541
541
|
#
|
|
542
542
|
# @param created_at [Increase::Models::Export::FeeCsv::CreatedAt, nil]
|
|
543
|
-
# Filter fees by their created date. The time range must not include any fees
|
|
544
|
-
#
|
|
543
|
+
# Filter fees by their created date. The time range must not include any fees on
|
|
544
|
+
# an open fee statement.
|
|
545
545
|
|
|
546
546
|
# @see Increase::Models::Export::FeeCsv#created_at
|
|
547
547
|
class CreatedAt < Increase::Internal::Type::BaseModel
|
|
@@ -570,8 +570,8 @@ module Increase
|
|
|
570
570
|
required :on_or_before, Time, nil?: true
|
|
571
571
|
|
|
572
572
|
# @!method initialize(after:, before:, on_or_after:, on_or_before:)
|
|
573
|
-
# Filter fees by their created date. The time range must not include any fees
|
|
574
|
-
#
|
|
573
|
+
# Filter fees by their created date. The time range must not include any fees on
|
|
574
|
+
# an open fee statement.
|
|
575
575
|
#
|
|
576
576
|
# @param after [Time, nil] Filter fees created after this time.
|
|
577
577
|
#
|
|
@@ -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 }
|
|
@@ -87,7 +87,8 @@ module Increase
|
|
|
87
87
|
# configurable by a connected [Card Profile](/documentation/api#card-profiles).
|
|
88
88
|
# The same Card can be used for multiple Physical Cards. Printing cards incurs a
|
|
89
89
|
# fee. Please contact [support@increase.com](mailto:support@increase.com) for
|
|
90
|
-
# pricing!
|
|
90
|
+
# pricing! For more information, see our guide on
|
|
91
|
+
# [physical card artwork](https://increase.com/documentation/card-art-physical-cards#carrier-image).
|
|
91
92
|
#
|
|
92
93
|
# @param id [String] The physical card identifier.
|
|
93
94
|
#
|
|
@@ -119,7 +120,8 @@ module Increase
|
|
|
119
120
|
#
|
|
120
121
|
# @param shipment [Increase::Models::PhysicalCard::Shipment] The details used to ship this physical card.
|
|
121
122
|
#
|
|
122
|
-
# @param status [Symbol, Increase::Models::PhysicalCard::Status]
|
|
123
|
+
# @param status [Symbol, Increase::Models::PhysicalCard::Status]
|
|
124
|
+
# The status of the Physical Card. The initial status is `disabled`.
|
|
123
125
|
#
|
|
124
126
|
# @param type [Symbol, Increase::Models::PhysicalCard::Type]
|
|
125
127
|
# A constant representing the object's type. For this resource it will always be
|
|
@@ -497,7 +499,7 @@ module Increase
|
|
|
497
499
|
end
|
|
498
500
|
end
|
|
499
501
|
|
|
500
|
-
# The status of the Physical Card.
|
|
502
|
+
# The status of the Physical Card. The initial status is `disabled`.
|
|
501
503
|
#
|
|
502
504
|
# @see Increase::Models::PhysicalCard#status
|
|
503
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
|
|
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
|
|
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
|
|
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
|
-
#
|
|
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
|
|
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.
|
data/lib/increase/version.rb
CHANGED
|
@@ -124,7 +124,8 @@ module Increase
|
|
|
124
124
|
# for online purchases after you create them. All cards work on a good funds
|
|
125
125
|
# model, and maintain a maximum limit of 100% of the Account’s available balance
|
|
126
126
|
# at the time of transaction. Funds are deducted from the Account upon transaction
|
|
127
|
-
# settlement.
|
|
127
|
+
# settlement. For more information, see our guide on
|
|
128
|
+
# [managing cards](https://increase.com/documentation/managing-cards).
|
|
128
129
|
sig do
|
|
129
130
|
params(
|
|
130
131
|
id: String,
|
|
@@ -1378,7 +1379,8 @@ module Increase
|
|
|
1378
1379
|
attr_accessor :email
|
|
1379
1380
|
|
|
1380
1381
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
1381
|
-
# over SMS.
|
|
1382
|
+
# over SMS. Returned in [E.164](https://en.wikipedia.org/wiki/E.164) format, for
|
|
1383
|
+
# example `+14155550123`.
|
|
1382
1384
|
sig { returns(T.nilable(String)) }
|
|
1383
1385
|
attr_accessor :phone
|
|
1384
1386
|
|
|
@@ -1400,7 +1402,8 @@ module Increase
|
|
|
1400
1402
|
# over email.
|
|
1401
1403
|
email:,
|
|
1402
1404
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
1403
|
-
# over SMS.
|
|
1405
|
+
# over SMS. Returned in [E.164](https://en.wikipedia.org/wiki/E.164) format, for
|
|
1406
|
+
# example `+14155550123`.
|
|
1404
1407
|
phone:
|
|
1405
1408
|
)
|
|
1406
1409
|
end
|
|
@@ -1365,7 +1365,8 @@ module Increase
|
|
|
1365
1365
|
attr_writer :email
|
|
1366
1366
|
|
|
1367
1367
|
# A phone number that can be used to contact and verify the cardholder via
|
|
1368
|
-
# one-time passcode over SMS.
|
|
1368
|
+
# one-time passcode over SMS. Accepts formats like `+14155550123`, `4155550123`,
|
|
1369
|
+
# `415-555-0123`, or `(415) 555-0123`.
|
|
1369
1370
|
sig { returns(T.nilable(String)) }
|
|
1370
1371
|
attr_reader :phone
|
|
1371
1372
|
|
|
@@ -1391,7 +1392,8 @@ module Increase
|
|
|
1391
1392
|
# one-time passcode over email.
|
|
1392
1393
|
email: nil,
|
|
1393
1394
|
# A phone number that can be used to contact and verify the cardholder via
|
|
1394
|
-
# one-time passcode over SMS.
|
|
1395
|
+
# one-time passcode over SMS. Accepts formats like `+14155550123`, `4155550123`,
|
|
1396
|
+
# `415-555-0123`, or `(415) 555-0123`.
|
|
1395
1397
|
phone: nil
|
|
1396
1398
|
)
|
|
1397
1399
|
end
|
|
@@ -109,7 +109,9 @@ module Increase
|
|
|
109
109
|
attr_writer :withdrawal
|
|
110
110
|
|
|
111
111
|
# If unauthorized activity occurs on a card, you can create a Card Dispute and
|
|
112
|
-
# we'll work with the card networks to return the funds if appropriate.
|
|
112
|
+
# we'll work with the card networks to return the funds if appropriate. For more
|
|
113
|
+
# information, see our guide on
|
|
114
|
+
# [card disputes](https://increase.com/documentation/card-disputes).
|
|
113
115
|
sig do
|
|
114
116
|
params(
|
|
115
117
|
id: String,
|
|
@@ -50,7 +50,9 @@ module Increase
|
|
|
50
50
|
attr_accessor :type
|
|
51
51
|
|
|
52
52
|
# Card Payments group together interactions related to a single card payment, such
|
|
53
|
-
# as an authorization and its corresponding settlement.
|
|
53
|
+
# as an authorization and its corresponding settlement. For more information, see
|
|
54
|
+
# our guide on the
|
|
55
|
+
# [Card Payment lifecycle](https://increase.com/documentation/card-payment-lifecycle).
|
|
54
56
|
sig do
|
|
55
57
|
params(
|
|
56
58
|
id: String,
|