increase 1.359.0 → 1.361.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/ach_transfer_create_params.rb +4 -4
- data/lib/increase/models/digital_card_profile.rb +63 -1
- data/lib/increase/models/digital_card_profile_clone_params.rb +65 -1
- data/lib/increase/models/digital_card_profile_create_params.rb +62 -1
- 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/event.rb +5 -2
- data/lib/increase/models/event_list_params.rb +5 -2
- data/lib/increase/models/event_subscription.rb +5 -2
- data/lib/increase/models/event_subscription_create_params.rb +5 -2
- data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
- data/lib/increase/models/physical_card.rb +4 -3
- 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/models/unwrap_webhook_event.rb +5 -2
- data/lib/increase/resources/ach_transfers.rb +2 -2
- data/lib/increase/resources/digital_card_profiles.rb +9 -2
- 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/ach_transfer_create_params.rbi +4 -4
- data/rbi/increase/models/digital_card_profile.rbi +137 -0
- data/rbi/increase/models/digital_card_profile_clone_params.rbi +166 -0
- data/rbi/increase/models/digital_card_profile_create_params.rbi +163 -0
- 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/event.rbi +10 -3
- data/rbi/increase/models/event_list_params.rbi +10 -3
- data/rbi/increase/models/event_subscription.rbi +10 -3
- data/rbi/increase/models/event_subscription_create_params.rbi +10 -3
- data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
- data/rbi/increase/models/physical_card.rbi +3 -3
- 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/models/unwrap_webhook_event.rbi +10 -3
- data/rbi/increase/resources/ach_transfers.rbi +2 -2
- data/rbi/increase/resources/digital_card_profiles.rbi +7 -0
- data/rbi/increase/resources/physical_cards.rbi +2 -1
- data/rbi/increase/resources/simulations/programs.rbi +1 -1
- data/sig/increase/models/digital_card_profile.rbs +47 -0
- data/sig/increase/models/digital_card_profile_clone_params.rbs +59 -0
- data/sig/increase/models/digital_card_profile_create_params.rbs +59 -0
- 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/event.rbs +7 -3
- data/sig/increase/models/event_list_params.rbs +7 -3
- data/sig/increase/models/event_subscription.rbs +7 -3
- data/sig/increase/models/event_subscription_create_params.rbs +7 -3
- data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
- data/sig/increase/models/simulations/digital_wallet_token_request_create_response.rbs +4 -0
- data/sig/increase/models/unwrap_webhook_event.rbs +7 -3
- data/sig/increase/resources/digital_card_profiles.rbs +2 -0
- metadata +2 -2
|
@@ -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[
|
|
@@ -615,10 +615,17 @@ module Increase
|
|
|
615
615
|
LOAN_OFFER_UPDATED =
|
|
616
616
|
T.let(:"loan_offer.updated", Increase::Event::Category::TaggedSymbol)
|
|
617
617
|
|
|
618
|
-
# Occurs whenever a Loan Purchase is created.
|
|
619
|
-
|
|
618
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
619
|
+
LOAN_PURCHASE_OFFER_CREATED =
|
|
620
620
|
T.let(
|
|
621
|
-
:"
|
|
621
|
+
:"loan_purchase_offer.created",
|
|
622
|
+
Increase::Event::Category::TaggedSymbol
|
|
623
|
+
)
|
|
624
|
+
|
|
625
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
626
|
+
LOAN_PURCHASE_OFFER_UPDATED =
|
|
627
|
+
T.let(
|
|
628
|
+
:"loan_purchase_offer.updated",
|
|
622
629
|
Increase::Event::Category::TaggedSymbol
|
|
623
630
|
)
|
|
624
631
|
|
|
@@ -724,10 +724,17 @@ module Increase
|
|
|
724
724
|
Increase::EventListParams::Category::In::TaggedSymbol
|
|
725
725
|
)
|
|
726
726
|
|
|
727
|
-
# Occurs whenever a Loan Purchase is created.
|
|
728
|
-
|
|
727
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
728
|
+
LOAN_PURCHASE_OFFER_CREATED =
|
|
729
729
|
T.let(
|
|
730
|
-
:"
|
|
730
|
+
:"loan_purchase_offer.created",
|
|
731
|
+
Increase::EventListParams::Category::In::TaggedSymbol
|
|
732
|
+
)
|
|
733
|
+
|
|
734
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
735
|
+
LOAN_PURCHASE_OFFER_UPDATED =
|
|
736
|
+
T.let(
|
|
737
|
+
:"loan_purchase_offer.updated",
|
|
731
738
|
Increase::EventListParams::Category::In::TaggedSymbol
|
|
732
739
|
)
|
|
733
740
|
|
|
@@ -745,10 +745,17 @@ module Increase
|
|
|
745
745
|
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
746
746
|
)
|
|
747
747
|
|
|
748
|
-
# Occurs whenever a Loan Purchase is created.
|
|
749
|
-
|
|
748
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
749
|
+
LOAN_PURCHASE_OFFER_CREATED =
|
|
750
750
|
T.let(
|
|
751
|
-
:"
|
|
751
|
+
:"loan_purchase_offer.created",
|
|
752
|
+
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
753
|
+
)
|
|
754
|
+
|
|
755
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
756
|
+
LOAN_PURCHASE_OFFER_UPDATED =
|
|
757
|
+
T.let(
|
|
758
|
+
:"loan_purchase_offer.updated",
|
|
752
759
|
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
753
760
|
)
|
|
754
761
|
|
|
@@ -743,10 +743,17 @@ module Increase
|
|
|
743
743
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
744
744
|
)
|
|
745
745
|
|
|
746
|
-
# Occurs whenever a Loan Purchase is created.
|
|
747
|
-
|
|
746
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
747
|
+
LOAN_PURCHASE_OFFER_CREATED =
|
|
748
748
|
T.let(
|
|
749
|
-
:"
|
|
749
|
+
:"loan_purchase_offer.created",
|
|
750
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
751
|
+
)
|
|
752
|
+
|
|
753
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
754
|
+
LOAN_PURCHASE_OFFER_UPDATED =
|
|
755
|
+
T.let(
|
|
756
|
+
:"loan_purchase_offer.updated",
|
|
750
757
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
751
758
|
)
|
|
752
759
|
|
|
@@ -91,6 +91,10 @@ module Increase
|
|
|
91
91
|
end
|
|
92
92
|
attr_writer :decline
|
|
93
93
|
|
|
94
|
+
# A free-form reference string set by the sender, to help identify the transfer.
|
|
95
|
+
sig { returns(T.nilable(String)) }
|
|
96
|
+
attr_accessor :end_to_end_identification
|
|
97
|
+
|
|
94
98
|
# The lifecycle status of the transfer.
|
|
95
99
|
sig do
|
|
96
100
|
returns(Increase::InboundRealTimePaymentsTransfer::Status::TaggedSymbol)
|
|
@@ -135,6 +139,7 @@ module Increase
|
|
|
135
139
|
T.nilable(
|
|
136
140
|
Increase::InboundRealTimePaymentsTransfer::Decline::OrHash
|
|
137
141
|
),
|
|
142
|
+
end_to_end_identification: T.nilable(String),
|
|
138
143
|
status: Increase::InboundRealTimePaymentsTransfer::Status::OrSymbol,
|
|
139
144
|
transaction_identification: String,
|
|
140
145
|
type: Increase::InboundRealTimePaymentsTransfer::Type::OrSymbol,
|
|
@@ -168,6 +173,8 @@ module Increase
|
|
|
168
173
|
debtor_routing_number:,
|
|
169
174
|
# If your transfer is declined, this will contain details of the decline.
|
|
170
175
|
decline:,
|
|
176
|
+
# A free-form reference string set by the sender, to help identify the transfer.
|
|
177
|
+
end_to_end_identification:,
|
|
171
178
|
# The lifecycle status of the transfer.
|
|
172
179
|
status:,
|
|
173
180
|
# The Real-Time Payments network identification of the transfer.
|
|
@@ -200,6 +207,7 @@ module Increase
|
|
|
200
207
|
debtor_routing_number: String,
|
|
201
208
|
decline:
|
|
202
209
|
T.nilable(Increase::InboundRealTimePaymentsTransfer::Decline),
|
|
210
|
+
end_to_end_identification: T.nilable(String),
|
|
203
211
|
status:
|
|
204
212
|
Increase::InboundRealTimePaymentsTransfer::Status::TaggedSymbol,
|
|
205
213
|
transaction_identification: String,
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
|
@@ -657,10 +657,17 @@ module Increase
|
|
|
657
657
|
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
658
658
|
)
|
|
659
659
|
|
|
660
|
-
# Occurs whenever a Loan Purchase is created.
|
|
661
|
-
|
|
660
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
661
|
+
LOAN_PURCHASE_OFFER_CREATED =
|
|
662
662
|
T.let(
|
|
663
|
-
:"
|
|
663
|
+
:"loan_purchase_offer.created",
|
|
664
|
+
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
665
|
+
)
|
|
666
|
+
|
|
667
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
668
|
+
LOAN_PURCHASE_OFFER_UPDATED =
|
|
669
|
+
T.let(
|
|
670
|
+
:"loan_purchase_offer.updated",
|
|
664
671
|
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
|
|
665
672
|
)
|
|
666
673
|
|
|
@@ -68,8 +68,8 @@ module Increase
|
|
|
68
68
|
# `PAYROLL`, and reversals must use `REVERSAL`.
|
|
69
69
|
company_entry_description: nil,
|
|
70
70
|
# The name by which the recipient knows you, sent in the company batch header. We
|
|
71
|
-
# recommend setting this on every transfer; if you do not, we fall back to the
|
|
72
|
-
#
|
|
71
|
+
# recommend setting this on every transfer; if you do not, we fall back to the
|
|
72
|
+
# `statement_descriptor`.
|
|
73
73
|
company_name: nil,
|
|
74
74
|
# The type of entity that owns the receiver's account.
|
|
75
75
|
destination_account_holder: nil,
|
|
@@ -10,6 +10,7 @@ module Increase
|
|
|
10
10
|
background_image_file_id: String,
|
|
11
11
|
card_description: String,
|
|
12
12
|
description: String,
|
|
13
|
+
apple_pay: Increase::DigitalCardProfileCreateParams::ApplePay::OrHash,
|
|
13
14
|
contact_email: String,
|
|
14
15
|
contact_name: String,
|
|
15
16
|
contact_phone: String,
|
|
@@ -28,6 +29,8 @@ module Increase
|
|
|
28
29
|
card_description:,
|
|
29
30
|
# A description you can use to identify the Card Profile.
|
|
30
31
|
description:,
|
|
32
|
+
# Apple Pay specific settings for the Card Profile.
|
|
33
|
+
apple_pay: nil,
|
|
31
34
|
# An email address the user can contact to receive support for their card.
|
|
32
35
|
contact_email: nil,
|
|
33
36
|
# The name of your company or card program, shown to the user as who to contact
|
|
@@ -104,6 +107,7 @@ module Increase
|
|
|
104
107
|
params(
|
|
105
108
|
digital_card_profile_id: String,
|
|
106
109
|
app_icon_file_id: String,
|
|
110
|
+
apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay::OrHash,
|
|
107
111
|
background_image_file_id: String,
|
|
108
112
|
card_description: String,
|
|
109
113
|
contact_email: String,
|
|
@@ -121,6 +125,9 @@ module Increase
|
|
|
121
125
|
digital_card_profile_id,
|
|
122
126
|
# The identifier of the File containing the card's icon image.
|
|
123
127
|
app_icon_file_id: nil,
|
|
128
|
+
# Apple Pay specific settings for the Card Profile. Each list you leave out is
|
|
129
|
+
# copied from the original Card Profile.
|
|
130
|
+
apple_pay: nil,
|
|
124
131
|
# The identifier of the File containing the card's front image.
|
|
125
132
|
background_image_file_id: nil,
|
|
126
133
|
# A user-facing description for the card itself.
|
|
@@ -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
|
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
|
|
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,
|
|
@@ -4,6 +4,7 @@ module Increase
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
app_icon_file_id: String,
|
|
7
|
+
apple_pay: Increase::DigitalCardProfile::ApplePay?,
|
|
7
8
|
background_image_file_id: String,
|
|
8
9
|
card_description: String,
|
|
9
10
|
contact_email: String?,
|
|
@@ -23,6 +24,8 @@ module Increase
|
|
|
23
24
|
|
|
24
25
|
attr_accessor app_icon_file_id: String
|
|
25
26
|
|
|
27
|
+
attr_accessor apple_pay: Increase::DigitalCardProfile::ApplePay?
|
|
28
|
+
|
|
26
29
|
attr_accessor background_image_file_id: String
|
|
27
30
|
|
|
28
31
|
attr_accessor card_description: String
|
|
@@ -50,6 +53,7 @@ module Increase
|
|
|
50
53
|
def initialize: (
|
|
51
54
|
id: String,
|
|
52
55
|
app_icon_file_id: String,
|
|
56
|
+
apple_pay: Increase::DigitalCardProfile::ApplePay?,
|
|
53
57
|
background_image_file_id: String,
|
|
54
58
|
card_description: String,
|
|
55
59
|
contact_email: String?,
|
|
@@ -67,6 +71,7 @@ module Increase
|
|
|
67
71
|
def to_hash: -> {
|
|
68
72
|
id: String,
|
|
69
73
|
app_icon_file_id: String,
|
|
74
|
+
apple_pay: Increase::DigitalCardProfile::ApplePay?,
|
|
70
75
|
background_image_file_id: String,
|
|
71
76
|
card_description: String,
|
|
72
77
|
contact_email: String?,
|
|
@@ -81,6 +86,48 @@ module Increase
|
|
|
81
86
|
type: Increase::Models::DigitalCardProfile::type_
|
|
82
87
|
}
|
|
83
88
|
|
|
89
|
+
type apple_pay =
|
|
90
|
+
{
|
|
91
|
+
associated_application_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier],
|
|
92
|
+
associated_store_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier]
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
class ApplePay < Increase::Internal::Type::BaseModel
|
|
96
|
+
attr_accessor associated_application_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier]
|
|
97
|
+
|
|
98
|
+
attr_accessor associated_store_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier]
|
|
99
|
+
|
|
100
|
+
def initialize: (
|
|
101
|
+
associated_application_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier],
|
|
102
|
+
associated_store_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier]
|
|
103
|
+
) -> void
|
|
104
|
+
|
|
105
|
+
def to_hash: -> {
|
|
106
|
+
associated_application_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier],
|
|
107
|
+
associated_store_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier]
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
type associated_application_identifier = { identifier: String }
|
|
111
|
+
|
|
112
|
+
class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
|
|
113
|
+
attr_accessor identifier: String
|
|
114
|
+
|
|
115
|
+
def initialize: (identifier: String) -> void
|
|
116
|
+
|
|
117
|
+
def to_hash: -> { identifier: String }
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
type associated_store_identifier = { identifier: String }
|
|
121
|
+
|
|
122
|
+
class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
|
|
123
|
+
attr_accessor identifier: String
|
|
124
|
+
|
|
125
|
+
def initialize: (identifier: String) -> void
|
|
126
|
+
|
|
127
|
+
def to_hash: -> { identifier: String }
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
84
131
|
type status = :pending | :rejected | :active | :archived
|
|
85
132
|
|
|
86
133
|
module Status
|
|
@@ -4,6 +4,7 @@ module Increase
|
|
|
4
4
|
{
|
|
5
5
|
digital_card_profile_id: String,
|
|
6
6
|
app_icon_file_id: String,
|
|
7
|
+
apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay,
|
|
7
8
|
background_image_file_id: String,
|
|
8
9
|
card_description: String,
|
|
9
10
|
contact_email: String,
|
|
@@ -25,6 +26,12 @@ module Increase
|
|
|
25
26
|
|
|
26
27
|
def app_icon_file_id=: (String) -> String
|
|
27
28
|
|
|
29
|
+
attr_reader apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay?
|
|
30
|
+
|
|
31
|
+
def apple_pay=: (
|
|
32
|
+
Increase::DigitalCardProfileCloneParams::ApplePay
|
|
33
|
+
) -> Increase::DigitalCardProfileCloneParams::ApplePay
|
|
34
|
+
|
|
28
35
|
attr_reader background_image_file_id: String?
|
|
29
36
|
|
|
30
37
|
def background_image_file_id=: (String) -> String
|
|
@@ -62,6 +69,7 @@ module Increase
|
|
|
62
69
|
def initialize: (
|
|
63
70
|
digital_card_profile_id: String,
|
|
64
71
|
?app_icon_file_id: String,
|
|
72
|
+
?apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay,
|
|
65
73
|
?background_image_file_id: String,
|
|
66
74
|
?card_description: String,
|
|
67
75
|
?contact_email: String,
|
|
@@ -76,6 +84,7 @@ module Increase
|
|
|
76
84
|
def to_hash: -> {
|
|
77
85
|
digital_card_profile_id: String,
|
|
78
86
|
app_icon_file_id: String,
|
|
87
|
+
apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay,
|
|
79
88
|
background_image_file_id: String,
|
|
80
89
|
card_description: String,
|
|
81
90
|
contact_email: String,
|
|
@@ -87,6 +96,56 @@ module Increase
|
|
|
87
96
|
request_options: Increase::RequestOptions
|
|
88
97
|
}
|
|
89
98
|
|
|
99
|
+
type apple_pay =
|
|
100
|
+
{
|
|
101
|
+
associated_application_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier],
|
|
102
|
+
associated_store_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
class ApplePay < Increase::Internal::Type::BaseModel
|
|
106
|
+
attr_reader associated_application_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier]?
|
|
107
|
+
|
|
108
|
+
def associated_application_identifiers=: (
|
|
109
|
+
::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier]
|
|
110
|
+
) -> ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier]
|
|
111
|
+
|
|
112
|
+
attr_reader associated_store_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]?
|
|
113
|
+
|
|
114
|
+
def associated_store_identifiers=: (
|
|
115
|
+
::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]
|
|
116
|
+
) -> ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]
|
|
117
|
+
|
|
118
|
+
def initialize: (
|
|
119
|
+
?associated_application_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier],
|
|
120
|
+
?associated_store_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]
|
|
121
|
+
) -> void
|
|
122
|
+
|
|
123
|
+
def to_hash: -> {
|
|
124
|
+
associated_application_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier],
|
|
125
|
+
associated_store_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
type associated_application_identifier = { identifier: String }
|
|
129
|
+
|
|
130
|
+
class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
|
|
131
|
+
attr_accessor identifier: String
|
|
132
|
+
|
|
133
|
+
def initialize: (identifier: String) -> void
|
|
134
|
+
|
|
135
|
+
def to_hash: -> { identifier: String }
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
type associated_store_identifier = { identifier: String }
|
|
139
|
+
|
|
140
|
+
class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
|
|
141
|
+
attr_accessor identifier: String
|
|
142
|
+
|
|
143
|
+
def initialize: (identifier: String) -> void
|
|
144
|
+
|
|
145
|
+
def to_hash: -> { identifier: String }
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
90
149
|
type text_color = { blue: Integer, green: Integer, red: Integer }
|
|
91
150
|
|
|
92
151
|
class TextColor < Increase::Internal::Type::BaseModel
|