increase 1.0.0 → 1.1.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/CHANGELOG.md +25 -0
- data/README.md +1 -1
- data/lib/increase/errors.rb +22 -0
- data/lib/increase/internal/type/array_of.rb +6 -1
- data/lib/increase/internal/type/base_model.rb +77 -25
- data/lib/increase/internal/type/boolean.rb +7 -1
- data/lib/increase/internal/type/converter.rb +42 -34
- data/lib/increase/internal/type/enum.rb +10 -2
- data/lib/increase/internal/type/file_input.rb +6 -1
- data/lib/increase/internal/type/hash_of.rb +6 -1
- data/lib/increase/internal/type/union.rb +12 -7
- data/lib/increase/internal/type/unknown.rb +7 -1
- data/lib/increase/models/card_payment.rb +13 -13
- data/lib/increase/models/check_transfer.rb +24 -1
- data/lib/increase/models/check_transfer_create_params.rb +26 -2
- data/lib/increase/models/event.rb +22 -4
- data/lib/increase/models/event_list_params.rb +22 -4
- data/lib/increase/models/event_subscription.rb +22 -4
- data/lib/increase/models/event_subscription_create_params.rb +22 -4
- data/lib/increase/models/inbound_ach_transfer.rb +56 -26
- data/lib/increase/models/inbound_mail_item.rb +38 -1
- data/lib/increase/models/pending_transaction.rb +37 -44
- data/lib/increase/models/pending_transaction_list_params.rb +2 -2
- data/lib/increase/models/transaction.rb +41 -43
- data/lib/increase/models/transaction_list_params.rb +2 -2
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/errors.rbi +16 -0
- data/rbi/increase/internal/type/boolean.rbi +2 -0
- data/rbi/increase/internal/type/converter.rbi +15 -15
- data/rbi/increase/internal/type/union.rbi +5 -0
- data/rbi/increase/internal/type/unknown.rbi +2 -0
- data/rbi/increase/models/card_payment.rbi +18 -18
- data/rbi/increase/models/check_transfer.rbi +36 -0
- data/rbi/increase/models/check_transfer_create_params.rbi +63 -2
- data/rbi/increase/models/event.rbi +46 -4
- data/rbi/increase/models/event_list_params.rbi +46 -4
- data/rbi/increase/models/event_subscription.rbi +46 -4
- data/rbi/increase/models/event_subscription_create_params.rbi +46 -4
- data/rbi/increase/models/inbound_ach_transfer.rbi +108 -52
- data/rbi/increase/models/inbound_mail_item.rbi +57 -0
- data/rbi/increase/models/pending_transaction.rbi +72 -77
- data/rbi/increase/models/pending_transaction_list_params.rbi +3 -3
- data/rbi/increase/models/transaction.rbi +76 -81
- data/rbi/increase/models/transaction_list_params.rbi +3 -3
- data/sig/increase/errors.rbs +9 -0
- data/sig/increase/internal/type/converter.rbs +7 -1
- data/sig/increase/models/card_payment.rbs +3 -3
- data/sig/increase/models/check_transfer.rbs +15 -0
- data/sig/increase/models/check_transfer_create_params.rbs +19 -0
- data/sig/increase/models/event.rbs +28 -4
- data/sig/increase/models/event_list_params.rbs +28 -4
- data/sig/increase/models/event_subscription.rbs +28 -4
- data/sig/increase/models/event_subscription_create_params.rbs +28 -4
- data/sig/increase/models/inbound_ach_transfer.rbs +41 -19
- data/sig/increase/models/inbound_mail_item.rbs +28 -0
- data/sig/increase/models/pending_transaction.rbs +21 -21
- data/sig/increase/models/pending_transaction_list_params.rbs +3 -3
- data/sig/increase/models/transaction.rbs +21 -21
- data/sig/increase/models/transaction_list_params.rbs +3 -3
- metadata +2 -2
@@ -12,6 +12,10 @@ module Increase
|
|
12
12
|
sig { returns(String) }
|
13
13
|
attr_accessor :id
|
14
14
|
|
15
|
+
# The checks in the mail item.
|
16
|
+
sig { returns(T::Array[Increase::InboundMailItem::Check]) }
|
17
|
+
attr_accessor :checks
|
18
|
+
|
15
19
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Inbound
|
16
20
|
# Mail Item was created.
|
17
21
|
sig { returns(Time) }
|
@@ -51,6 +55,7 @@ module Increase
|
|
51
55
|
sig do
|
52
56
|
params(
|
53
57
|
id: String,
|
58
|
+
checks: T::Array[Increase::InboundMailItem::Check::OrHash],
|
54
59
|
created_at: Time,
|
55
60
|
file_id: String,
|
56
61
|
lockbox_id: T.nilable(String),
|
@@ -64,6 +69,8 @@ module Increase
|
|
64
69
|
def self.new(
|
65
70
|
# The Inbound Mail Item identifier.
|
66
71
|
id:,
|
72
|
+
# The checks in the mail item.
|
73
|
+
checks:,
|
67
74
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Inbound
|
68
75
|
# Mail Item was created.
|
69
76
|
created_at:,
|
@@ -88,6 +95,7 @@ module Increase
|
|
88
95
|
override.returns(
|
89
96
|
{
|
90
97
|
id: String,
|
98
|
+
checks: T::Array[Increase::InboundMailItem::Check],
|
91
99
|
created_at: Time,
|
92
100
|
file_id: String,
|
93
101
|
lockbox_id: T.nilable(String),
|
@@ -104,6 +112,55 @@ module Increase
|
|
104
112
|
def to_hash
|
105
113
|
end
|
106
114
|
|
115
|
+
class Check < Increase::Internal::Type::BaseModel
|
116
|
+
OrHash =
|
117
|
+
T.type_alias do
|
118
|
+
T.any(Increase::InboundMailItem::Check, Increase::Internal::AnyHash)
|
119
|
+
end
|
120
|
+
|
121
|
+
# The amount of the check.
|
122
|
+
sig { returns(Integer) }
|
123
|
+
attr_accessor :amount
|
124
|
+
|
125
|
+
# The identifier for the File containing the back of the check.
|
126
|
+
sig { returns(T.nilable(String)) }
|
127
|
+
attr_accessor :back_file_id
|
128
|
+
|
129
|
+
# The identifier for the File containing the front of the check.
|
130
|
+
sig { returns(T.nilable(String)) }
|
131
|
+
attr_accessor :front_file_id
|
132
|
+
|
133
|
+
# Inbound Mail Item Checks represent the checks in an Inbound Mail Item.
|
134
|
+
sig do
|
135
|
+
params(
|
136
|
+
amount: Integer,
|
137
|
+
back_file_id: T.nilable(String),
|
138
|
+
front_file_id: T.nilable(String)
|
139
|
+
).returns(T.attached_class)
|
140
|
+
end
|
141
|
+
def self.new(
|
142
|
+
# The amount of the check.
|
143
|
+
amount:,
|
144
|
+
# The identifier for the File containing the back of the check.
|
145
|
+
back_file_id:,
|
146
|
+
# The identifier for the File containing the front of the check.
|
147
|
+
front_file_id:
|
148
|
+
)
|
149
|
+
end
|
150
|
+
|
151
|
+
sig do
|
152
|
+
override.returns(
|
153
|
+
{
|
154
|
+
amount: Integer,
|
155
|
+
back_file_id: T.nilable(String),
|
156
|
+
front_file_id: T.nilable(String)
|
157
|
+
}
|
158
|
+
)
|
159
|
+
end
|
160
|
+
def to_hash
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
107
164
|
# If the mail item has been rejected, why it was rejected.
|
108
165
|
module RejectionReason
|
109
166
|
extend Increase::Internal::Type::Enum
|
@@ -344,6 +344,27 @@ module Increase
|
|
344
344
|
end
|
345
345
|
attr_writer :card_authorization
|
346
346
|
|
347
|
+
# A Card Push Transfer Instruction object. This field will be present in the JSON
|
348
|
+
# response if and only if `category` is equal to `card_push_transfer_instruction`.
|
349
|
+
sig do
|
350
|
+
returns(
|
351
|
+
T.nilable(
|
352
|
+
Increase::PendingTransaction::Source::CardPushTransferInstruction
|
353
|
+
)
|
354
|
+
)
|
355
|
+
end
|
356
|
+
attr_reader :card_push_transfer_instruction
|
357
|
+
|
358
|
+
sig do
|
359
|
+
params(
|
360
|
+
card_push_transfer_instruction:
|
361
|
+
T.nilable(
|
362
|
+
Increase::PendingTransaction::Source::CardPushTransferInstruction::OrHash
|
363
|
+
)
|
364
|
+
).void
|
365
|
+
end
|
366
|
+
attr_writer :card_push_transfer_instruction
|
367
|
+
|
347
368
|
# The type of the resource. We may add additional possible values for this enum
|
348
369
|
# over time; your application should be able to handle such additions gracefully.
|
349
370
|
sig do
|
@@ -442,28 +463,6 @@ module Increase
|
|
442
463
|
sig { returns(T.nilable(T.anything)) }
|
443
464
|
attr_accessor :other
|
444
465
|
|
445
|
-
# An Outbound Card Push Transfer Instruction object. This field will be present in
|
446
|
-
# the JSON response if and only if `category` is equal to
|
447
|
-
# `outbound_card_push_transfer_instruction`.
|
448
|
-
sig do
|
449
|
-
returns(
|
450
|
-
T.nilable(
|
451
|
-
Increase::PendingTransaction::Source::OutboundCardPushTransferInstruction
|
452
|
-
)
|
453
|
-
)
|
454
|
-
end
|
455
|
-
attr_reader :outbound_card_push_transfer_instruction
|
456
|
-
|
457
|
-
sig do
|
458
|
-
params(
|
459
|
-
outbound_card_push_transfer_instruction:
|
460
|
-
T.nilable(
|
461
|
-
Increase::PendingTransaction::Source::OutboundCardPushTransferInstruction::OrHash
|
462
|
-
)
|
463
|
-
).void
|
464
|
-
end
|
465
|
-
attr_writer :outbound_card_push_transfer_instruction
|
466
|
-
|
467
466
|
# A Real-Time Payments Transfer Instruction object. This field will be present in
|
468
467
|
# the JSON response if and only if `category` is equal to
|
469
468
|
# `real_time_payments_transfer_instruction`.
|
@@ -551,6 +550,10 @@ module Increase
|
|
551
550
|
T.nilable(
|
552
551
|
Increase::PendingTransaction::Source::CardAuthorization::OrHash
|
553
552
|
),
|
553
|
+
card_push_transfer_instruction:
|
554
|
+
T.nilable(
|
555
|
+
Increase::PendingTransaction::Source::CardPushTransferInstruction::OrHash
|
556
|
+
),
|
554
557
|
category: Increase::PendingTransaction::Source::Category::OrSymbol,
|
555
558
|
check_deposit_instruction:
|
556
559
|
T.nilable(
|
@@ -569,10 +572,6 @@ module Increase
|
|
569
572
|
Increase::PendingTransaction::Source::InboundWireTransferReversal::OrHash
|
570
573
|
),
|
571
574
|
other: T.nilable(T.anything),
|
572
|
-
outbound_card_push_transfer_instruction:
|
573
|
-
T.nilable(
|
574
|
-
Increase::PendingTransaction::Source::OutboundCardPushTransferInstruction::OrHash
|
575
|
-
),
|
576
575
|
real_time_payments_transfer_instruction:
|
577
576
|
T.nilable(
|
578
577
|
Increase::PendingTransaction::Source::RealTimePaymentsTransferInstruction::OrHash
|
@@ -600,6 +599,9 @@ module Increase
|
|
600
599
|
# temporary holds placed on a customers funds with the intent to later clear a
|
601
600
|
# transaction.
|
602
601
|
card_authorization:,
|
602
|
+
# A Card Push Transfer Instruction object. This field will be present in the JSON
|
603
|
+
# response if and only if `category` is equal to `card_push_transfer_instruction`.
|
604
|
+
card_push_transfer_instruction:,
|
603
605
|
# The type of the resource. We may add additional possible values for this enum
|
604
606
|
# over time; your application should be able to handle such additions gracefully.
|
605
607
|
category:,
|
@@ -622,10 +624,6 @@ module Increase
|
|
622
624
|
# If the category of this Transaction source is equal to `other`, this field will
|
623
625
|
# contain an empty object, otherwise it will contain null.
|
624
626
|
other:,
|
625
|
-
# An Outbound Card Push Transfer Instruction object. This field will be present in
|
626
|
-
# the JSON response if and only if `category` is equal to
|
627
|
-
# `outbound_card_push_transfer_instruction`.
|
628
|
-
outbound_card_push_transfer_instruction:,
|
629
627
|
# A Real-Time Payments Transfer Instruction object. This field will be present in
|
630
628
|
# the JSON response if and only if `category` is equal to
|
631
629
|
# `real_time_payments_transfer_instruction`.
|
@@ -658,6 +656,10 @@ module Increase
|
|
658
656
|
T.nilable(
|
659
657
|
Increase::PendingTransaction::Source::CardAuthorization
|
660
658
|
),
|
659
|
+
card_push_transfer_instruction:
|
660
|
+
T.nilable(
|
661
|
+
Increase::PendingTransaction::Source::CardPushTransferInstruction
|
662
|
+
),
|
661
663
|
category:
|
662
664
|
Increase::PendingTransaction::Source::Category::TaggedSymbol,
|
663
665
|
check_deposit_instruction:
|
@@ -677,10 +679,6 @@ module Increase
|
|
677
679
|
Increase::PendingTransaction::Source::InboundWireTransferReversal
|
678
680
|
),
|
679
681
|
other: T.nilable(T.anything),
|
680
|
-
outbound_card_push_transfer_instruction:
|
681
|
-
T.nilable(
|
682
|
-
Increase::PendingTransaction::Source::OutboundCardPushTransferInstruction
|
683
|
-
),
|
684
682
|
real_time_payments_transfer_instruction:
|
685
683
|
T.nilable(
|
686
684
|
Increase::PendingTransaction::Source::RealTimePaymentsTransferInstruction
|
@@ -2292,6 +2290,43 @@ module Increase
|
|
2292
2290
|
end
|
2293
2291
|
end
|
2294
2292
|
|
2293
|
+
class CardPushTransferInstruction < Increase::Internal::Type::BaseModel
|
2294
|
+
OrHash =
|
2295
|
+
T.type_alias do
|
2296
|
+
T.any(
|
2297
|
+
Increase::PendingTransaction::Source::CardPushTransferInstruction,
|
2298
|
+
Increase::Internal::AnyHash
|
2299
|
+
)
|
2300
|
+
end
|
2301
|
+
|
2302
|
+
# The transfer amount in USD cents.
|
2303
|
+
sig { returns(Integer) }
|
2304
|
+
attr_accessor :amount
|
2305
|
+
|
2306
|
+
# The identifier of the Card Push Transfer that led to this Pending Transaction.
|
2307
|
+
sig { returns(String) }
|
2308
|
+
attr_accessor :transfer_id
|
2309
|
+
|
2310
|
+
# A Card Push Transfer Instruction object. This field will be present in the JSON
|
2311
|
+
# response if and only if `category` is equal to `card_push_transfer_instruction`.
|
2312
|
+
sig do
|
2313
|
+
params(amount: Integer, transfer_id: String).returns(
|
2314
|
+
T.attached_class
|
2315
|
+
)
|
2316
|
+
end
|
2317
|
+
def self.new(
|
2318
|
+
# The transfer amount in USD cents.
|
2319
|
+
amount:,
|
2320
|
+
# The identifier of the Card Push Transfer that led to this Pending Transaction.
|
2321
|
+
transfer_id:
|
2322
|
+
)
|
2323
|
+
end
|
2324
|
+
|
2325
|
+
sig { override.returns({ amount: Integer, transfer_id: String }) }
|
2326
|
+
def to_hash
|
2327
|
+
end
|
2328
|
+
end
|
2329
|
+
|
2295
2330
|
# The type of the resource. We may add additional possible values for this enum
|
2296
2331
|
# over time; your application should be able to handle such additions gracefully.
|
2297
2332
|
module Category
|
@@ -2380,10 +2415,10 @@ module Increase
|
|
2380
2415
|
Increase::PendingTransaction::Source::Category::TaggedSymbol
|
2381
2416
|
)
|
2382
2417
|
|
2383
|
-
#
|
2384
|
-
|
2418
|
+
# Card Push Transfer Instruction: details will be under the `card_push_transfer_instruction` object.
|
2419
|
+
CARD_PUSH_TRANSFER_INSTRUCTION =
|
2385
2420
|
T.let(
|
2386
|
-
:
|
2421
|
+
:card_push_transfer_instruction,
|
2387
2422
|
Increase::PendingTransaction::Source::Category::TaggedSymbol
|
2388
2423
|
)
|
2389
2424
|
|
@@ -2987,46 +3022,6 @@ module Increase
|
|
2987
3022
|
end
|
2988
3023
|
end
|
2989
3024
|
|
2990
|
-
class OutboundCardPushTransferInstruction < Increase::Internal::Type::BaseModel
|
2991
|
-
OrHash =
|
2992
|
-
T.type_alias do
|
2993
|
-
T.any(
|
2994
|
-
Increase::PendingTransaction::Source::OutboundCardPushTransferInstruction,
|
2995
|
-
Increase::Internal::AnyHash
|
2996
|
-
)
|
2997
|
-
end
|
2998
|
-
|
2999
|
-
# The transfer amount in USD cents.
|
3000
|
-
sig { returns(Integer) }
|
3001
|
-
attr_accessor :amount
|
3002
|
-
|
3003
|
-
# The identifier of the Outbound Card Push Transfer that led to this Pending
|
3004
|
-
# Transaction.
|
3005
|
-
sig { returns(String) }
|
3006
|
-
attr_accessor :transfer_id
|
3007
|
-
|
3008
|
-
# An Outbound Card Push Transfer Instruction object. This field will be present in
|
3009
|
-
# the JSON response if and only if `category` is equal to
|
3010
|
-
# `outbound_card_push_transfer_instruction`.
|
3011
|
-
sig do
|
3012
|
-
params(amount: Integer, transfer_id: String).returns(
|
3013
|
-
T.attached_class
|
3014
|
-
)
|
3015
|
-
end
|
3016
|
-
def self.new(
|
3017
|
-
# The transfer amount in USD cents.
|
3018
|
-
amount:,
|
3019
|
-
# The identifier of the Outbound Card Push Transfer that led to this Pending
|
3020
|
-
# Transaction.
|
3021
|
-
transfer_id:
|
3022
|
-
)
|
3023
|
-
end
|
3024
|
-
|
3025
|
-
sig { override.returns({ amount: Integer, transfer_id: String }) }
|
3026
|
-
def to_hash
|
3027
|
-
end
|
3028
|
-
end
|
3029
|
-
|
3030
3025
|
class RealTimePaymentsTransferInstruction < Increase::Internal::Type::BaseModel
|
3031
3026
|
OrHash =
|
3032
3027
|
T.type_alias do
|
@@ -272,10 +272,10 @@ module Increase
|
|
272
272
|
Increase::PendingTransactionListParams::Category::In::TaggedSymbol
|
273
273
|
)
|
274
274
|
|
275
|
-
#
|
276
|
-
|
275
|
+
# Card Push Transfer Instruction: details will be under the `card_push_transfer_instruction` object.
|
276
|
+
CARD_PUSH_TRANSFER_INSTRUCTION =
|
277
277
|
T.let(
|
278
|
-
:
|
278
|
+
:card_push_transfer_instruction,
|
279
279
|
Increase::PendingTransactionListParams::Category::In::TaggedSymbol
|
280
280
|
)
|
281
281
|
|
@@ -324,6 +324,27 @@ module Increase
|
|
324
324
|
end
|
325
325
|
attr_writer :card_dispute_loss
|
326
326
|
|
327
|
+
# A Card Push Transfer Acceptance object. This field will be present in the JSON
|
328
|
+
# response if and only if `category` is equal to `card_push_transfer_acceptance`.
|
329
|
+
# A Card Push Transfer Acceptance is created when an Outbound Card Push Transfer
|
330
|
+
# sent from Increase is accepted by the receiving bank.
|
331
|
+
sig do
|
332
|
+
returns(
|
333
|
+
T.nilable(Increase::Transaction::Source::CardPushTransferAcceptance)
|
334
|
+
)
|
335
|
+
end
|
336
|
+
attr_reader :card_push_transfer_acceptance
|
337
|
+
|
338
|
+
sig do
|
339
|
+
params(
|
340
|
+
card_push_transfer_acceptance:
|
341
|
+
T.nilable(
|
342
|
+
Increase::Transaction::Source::CardPushTransferAcceptance::OrHash
|
343
|
+
)
|
344
|
+
).void
|
345
|
+
end
|
346
|
+
attr_writer :card_push_transfer_acceptance
|
347
|
+
|
327
348
|
# A Card Refund object. This field will be present in the JSON response if and
|
328
349
|
# only if `category` is equal to `card_refund`. Card Refunds move money back to
|
329
350
|
# the cardholder. While they are usually connected to a Card Settlement an
|
@@ -711,30 +732,6 @@ module Increase
|
|
711
732
|
sig { returns(T.nilable(T.anything)) }
|
712
733
|
attr_accessor :other
|
713
734
|
|
714
|
-
# An Outbound Card Push Transfer Acceptance object. This field will be present in
|
715
|
-
# the JSON response if and only if `category` is equal to
|
716
|
-
# `outbound_card_push_transfer_acceptance`. An Outbound Card Push Transfer
|
717
|
-
# Acceptance is created when an Outbound Card Push Transfer sent from Increase is
|
718
|
-
# accepted by the receiving bank.
|
719
|
-
sig do
|
720
|
-
returns(
|
721
|
-
T.nilable(
|
722
|
-
Increase::Transaction::Source::OutboundCardPushTransferAcceptance
|
723
|
-
)
|
724
|
-
)
|
725
|
-
end
|
726
|
-
attr_reader :outbound_card_push_transfer_acceptance
|
727
|
-
|
728
|
-
sig do
|
729
|
-
params(
|
730
|
-
outbound_card_push_transfer_acceptance:
|
731
|
-
T.nilable(
|
732
|
-
Increase::Transaction::Source::OutboundCardPushTransferAcceptance::OrHash
|
733
|
-
)
|
734
|
-
).void
|
735
|
-
end
|
736
|
-
attr_writer :outbound_card_push_transfer_acceptance
|
737
|
-
|
738
735
|
# A Real-Time Payments Transfer Acknowledgement object. This field will be present
|
739
736
|
# in the JSON response if and only if `category` is equal to
|
740
737
|
# `real_time_payments_transfer_acknowledgement`. A Real-Time Payments Transfer
|
@@ -841,6 +838,10 @@ module Increase
|
|
841
838
|
),
|
842
839
|
card_dispute_loss:
|
843
840
|
T.nilable(Increase::Transaction::Source::CardDisputeLoss::OrHash),
|
841
|
+
card_push_transfer_acceptance:
|
842
|
+
T.nilable(
|
843
|
+
Increase::Transaction::Source::CardPushTransferAcceptance::OrHash
|
844
|
+
),
|
844
845
|
card_refund:
|
845
846
|
T.nilable(Increase::Transaction::Source::CardRefund::OrHash),
|
846
847
|
card_revenue_payment:
|
@@ -907,10 +908,6 @@ module Increase
|
|
907
908
|
internal_source:
|
908
909
|
T.nilable(Increase::Transaction::Source::InternalSource::OrHash),
|
909
910
|
other: T.nilable(T.anything),
|
910
|
-
outbound_card_push_transfer_acceptance:
|
911
|
-
T.nilable(
|
912
|
-
Increase::Transaction::Source::OutboundCardPushTransferAcceptance::OrHash
|
913
|
-
),
|
914
911
|
real_time_payments_transfer_acknowledgement:
|
915
912
|
T.nilable(
|
916
913
|
Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement::OrHash
|
@@ -958,6 +955,11 @@ module Increase
|
|
958
955
|
# and only if `category` is equal to `card_dispute_loss`. Contains the details of
|
959
956
|
# a lost Card Dispute.
|
960
957
|
card_dispute_loss:,
|
958
|
+
# A Card Push Transfer Acceptance object. This field will be present in the JSON
|
959
|
+
# response if and only if `category` is equal to `card_push_transfer_acceptance`.
|
960
|
+
# A Card Push Transfer Acceptance is created when an Outbound Card Push Transfer
|
961
|
+
# sent from Increase is accepted by the receiving bank.
|
962
|
+
card_push_transfer_acceptance:,
|
961
963
|
# A Card Refund object. This field will be present in the JSON response if and
|
962
964
|
# only if `category` is equal to `card_refund`. Card Refunds move money back to
|
963
965
|
# the cardholder. While they are usually connected to a Card Settlement an
|
@@ -1065,12 +1067,6 @@ module Increase
|
|
1065
1067
|
# If the category of this Transaction source is equal to `other`, this field will
|
1066
1068
|
# contain an empty object, otherwise it will contain null.
|
1067
1069
|
other:,
|
1068
|
-
# An Outbound Card Push Transfer Acceptance object. This field will be present in
|
1069
|
-
# the JSON response if and only if `category` is equal to
|
1070
|
-
# `outbound_card_push_transfer_acceptance`. An Outbound Card Push Transfer
|
1071
|
-
# Acceptance is created when an Outbound Card Push Transfer sent from Increase is
|
1072
|
-
# accepted by the receiving bank.
|
1073
|
-
outbound_card_push_transfer_acceptance:,
|
1074
1070
|
# A Real-Time Payments Transfer Acknowledgement object. This field will be present
|
1075
1071
|
# in the JSON response if and only if `category` is equal to
|
1076
1072
|
# `real_time_payments_transfer_acknowledgement`. A Real-Time Payments Transfer
|
@@ -1109,6 +1105,10 @@ module Increase
|
|
1109
1105
|
T.nilable(Increase::Transaction::Source::CardDisputeAcceptance),
|
1110
1106
|
card_dispute_loss:
|
1111
1107
|
T.nilable(Increase::Transaction::Source::CardDisputeLoss),
|
1108
|
+
card_push_transfer_acceptance:
|
1109
|
+
T.nilable(
|
1110
|
+
Increase::Transaction::Source::CardPushTransferAcceptance
|
1111
|
+
),
|
1112
1112
|
card_refund: T.nilable(Increase::Transaction::Source::CardRefund),
|
1113
1113
|
card_revenue_payment:
|
1114
1114
|
T.nilable(Increase::Transaction::Source::CardRevenuePayment),
|
@@ -1161,10 +1161,6 @@ module Increase
|
|
1161
1161
|
internal_source:
|
1162
1162
|
T.nilable(Increase::Transaction::Source::InternalSource),
|
1163
1163
|
other: T.nilable(T.anything),
|
1164
|
-
outbound_card_push_transfer_acceptance:
|
1165
|
-
T.nilable(
|
1166
|
-
Increase::Transaction::Source::OutboundCardPushTransferAcceptance
|
1167
|
-
),
|
1168
1164
|
real_time_payments_transfer_acknowledgement:
|
1169
1165
|
T.nilable(
|
1170
1166
|
Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement
|
@@ -2179,6 +2175,45 @@ module Increase
|
|
2179
2175
|
end
|
2180
2176
|
end
|
2181
2177
|
|
2178
|
+
class CardPushTransferAcceptance < Increase::Internal::Type::BaseModel
|
2179
|
+
OrHash =
|
2180
|
+
T.type_alias do
|
2181
|
+
T.any(
|
2182
|
+
Increase::Transaction::Source::CardPushTransferAcceptance,
|
2183
|
+
Increase::Internal::AnyHash
|
2184
|
+
)
|
2185
|
+
end
|
2186
|
+
|
2187
|
+
# The transfer amount in USD cents.
|
2188
|
+
sig { returns(Integer) }
|
2189
|
+
attr_accessor :amount
|
2190
|
+
|
2191
|
+
# The identifier of the Card Push Transfer that led to this Transaction.
|
2192
|
+
sig { returns(String) }
|
2193
|
+
attr_accessor :transfer_id
|
2194
|
+
|
2195
|
+
# A Card Push Transfer Acceptance object. This field will be present in the JSON
|
2196
|
+
# response if and only if `category` is equal to `card_push_transfer_acceptance`.
|
2197
|
+
# A Card Push Transfer Acceptance is created when an Outbound Card Push Transfer
|
2198
|
+
# sent from Increase is accepted by the receiving bank.
|
2199
|
+
sig do
|
2200
|
+
params(amount: Integer, transfer_id: String).returns(
|
2201
|
+
T.attached_class
|
2202
|
+
)
|
2203
|
+
end
|
2204
|
+
def self.new(
|
2205
|
+
# The transfer amount in USD cents.
|
2206
|
+
amount:,
|
2207
|
+
# The identifier of the Card Push Transfer that led to this Transaction.
|
2208
|
+
transfer_id:
|
2209
|
+
)
|
2210
|
+
end
|
2211
|
+
|
2212
|
+
sig { override.returns({ amount: Integer, transfer_id: String }) }
|
2213
|
+
def to_hash
|
2214
|
+
end
|
2215
|
+
end
|
2216
|
+
|
2182
2217
|
class CardRefund < Increase::Internal::Type::BaseModel
|
2183
2218
|
OrHash =
|
2184
2219
|
T.type_alias do
|
@@ -7558,10 +7593,10 @@ module Increase
|
|
7558
7593
|
Increase::Transaction::Source::Category::TaggedSymbol
|
7559
7594
|
)
|
7560
7595
|
|
7561
|
-
#
|
7562
|
-
|
7596
|
+
# Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object.
|
7597
|
+
CARD_PUSH_TRANSFER_ACCEPTANCE =
|
7563
7598
|
T.let(
|
7564
|
-
:
|
7599
|
+
:card_push_transfer_acceptance,
|
7565
7600
|
Increase::Transaction::Source::Category::TaggedSymbol
|
7566
7601
|
)
|
7567
7602
|
|
@@ -10194,46 +10229,6 @@ module Increase
|
|
10194
10229
|
end
|
10195
10230
|
end
|
10196
10231
|
|
10197
|
-
class OutboundCardPushTransferAcceptance < Increase::Internal::Type::BaseModel
|
10198
|
-
OrHash =
|
10199
|
-
T.type_alias do
|
10200
|
-
T.any(
|
10201
|
-
Increase::Transaction::Source::OutboundCardPushTransferAcceptance,
|
10202
|
-
Increase::Internal::AnyHash
|
10203
|
-
)
|
10204
|
-
end
|
10205
|
-
|
10206
|
-
# The transfer amount in USD cents.
|
10207
|
-
sig { returns(Integer) }
|
10208
|
-
attr_accessor :amount
|
10209
|
-
|
10210
|
-
# The identifier of the Outbound Card Push Transfer that led to this Transaction.
|
10211
|
-
sig { returns(String) }
|
10212
|
-
attr_accessor :transfer_id
|
10213
|
-
|
10214
|
-
# An Outbound Card Push Transfer Acceptance object. This field will be present in
|
10215
|
-
# the JSON response if and only if `category` is equal to
|
10216
|
-
# `outbound_card_push_transfer_acceptance`. An Outbound Card Push Transfer
|
10217
|
-
# Acceptance is created when an Outbound Card Push Transfer sent from Increase is
|
10218
|
-
# accepted by the receiving bank.
|
10219
|
-
sig do
|
10220
|
-
params(amount: Integer, transfer_id: String).returns(
|
10221
|
-
T.attached_class
|
10222
|
-
)
|
10223
|
-
end
|
10224
|
-
def self.new(
|
10225
|
-
# The transfer amount in USD cents.
|
10226
|
-
amount:,
|
10227
|
-
# The identifier of the Outbound Card Push Transfer that led to this Transaction.
|
10228
|
-
transfer_id:
|
10229
|
-
)
|
10230
|
-
end
|
10231
|
-
|
10232
|
-
sig { override.returns({ amount: Integer, transfer_id: String }) }
|
10233
|
-
def to_hash
|
10234
|
-
end
|
10235
|
-
end
|
10236
|
-
|
10237
10232
|
class RealTimePaymentsTransferAcknowledgement < Increase::Internal::Type::BaseModel
|
10238
10233
|
OrHash =
|
10239
10234
|
T.type_alias do
|
@@ -369,10 +369,10 @@ module Increase
|
|
369
369
|
Increase::TransactionListParams::Category::In::TaggedSymbol
|
370
370
|
)
|
371
371
|
|
372
|
-
#
|
373
|
-
|
372
|
+
# Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object.
|
373
|
+
CARD_PUSH_TRANSFER_ACCEPTANCE =
|
374
374
|
T.let(
|
375
|
-
:
|
375
|
+
:card_push_transfer_acceptance,
|
376
376
|
Increase::TransactionListParams::Category::In::TaggedSymbol
|
377
377
|
)
|
378
378
|
|
data/sig/increase/errors.rbs
CHANGED
@@ -5,6 +5,15 @@ module Increase
|
|
5
5
|
end
|
6
6
|
|
7
7
|
class ConversionError < Increase::Errors::Error
|
8
|
+
def cause: -> StandardError?
|
9
|
+
|
10
|
+
def initialize: (
|
11
|
+
on: Class,
|
12
|
+
method: Symbol,
|
13
|
+
target: top,
|
14
|
+
value: top,
|
15
|
+
?cause: StandardError?
|
16
|
+
) -> void
|
8
17
|
end
|
9
18
|
|
10
19
|
class APIError < Increase::Errors::Error
|
@@ -8,8 +8,10 @@ module Increase
|
|
8
8
|
|
9
9
|
type coerce_state =
|
10
10
|
{
|
11
|
-
|
11
|
+
translate_names: bool,
|
12
|
+
strictness: bool,
|
12
13
|
exactness: { yes: Integer, no: Integer, maybe: Integer },
|
14
|
+
error: Class,
|
13
15
|
branched: Integer
|
14
16
|
}
|
15
17
|
|
@@ -37,6 +39,10 @@ module Increase
|
|
37
39
|
| Increase::Internal::Type::Converter::input spec
|
38
40
|
) -> (^-> top)
|
39
41
|
|
42
|
+
def self.new_coerce_state: (
|
43
|
+
?translate_names: bool
|
44
|
+
) -> Increase::Internal::Type::Converter::coerce_state
|
45
|
+
|
40
46
|
def self.coerce: (
|
41
47
|
Increase::Internal::Type::Converter::input target,
|
42
48
|
top value,
|
@@ -4715,12 +4715,12 @@ module Increase
|
|
4715
4715
|
}
|
4716
4716
|
end
|
4717
4717
|
|
4718
|
-
type type_ = :
|
4718
|
+
type type_ = :inbound_card_validation
|
4719
4719
|
|
4720
4720
|
module Type
|
4721
4721
|
extend Increase::Internal::Type::Enum
|
4722
4722
|
|
4723
|
-
|
4723
|
+
INBOUND_CARD_VALIDATION: :inbound_card_validation
|
4724
4724
|
|
4725
4725
|
def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardValidation::type_]
|
4726
4726
|
end
|
@@ -4873,7 +4873,7 @@ module Increase
|
|
4873
4873
|
# Card Authentication: details will be under the `card_authentication` object.
|
4874
4874
|
CARD_AUTHENTICATION: :card_authentication
|
4875
4875
|
|
4876
|
-
# Card Validation: details will be under the `card_validation` object.
|
4876
|
+
# Inbound Card Validation: details will be under the `card_validation` object.
|
4877
4877
|
CARD_VALIDATION: :card_validation
|
4878
4878
|
|
4879
4879
|
# Card Decline: details will be under the `card_decline` object.
|
@@ -298,6 +298,7 @@ module Increase
|
|
298
298
|
mailing_address: Increase::CheckTransfer::PhysicalCheck::MailingAddress,
|
299
299
|
memo: String?,
|
300
300
|
note: String?,
|
301
|
+
payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer],
|
301
302
|
recipient_name: String,
|
302
303
|
return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?,
|
303
304
|
shipping_method: Increase::Models::CheckTransfer::PhysicalCheck::shipping_method?,
|
@@ -314,6 +315,8 @@ module Increase
|
|
314
315
|
|
315
316
|
attr_accessor note: String?
|
316
317
|
|
318
|
+
attr_accessor payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer]
|
319
|
+
|
317
320
|
attr_accessor recipient_name: String
|
318
321
|
|
319
322
|
attr_accessor return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?
|
@@ -329,6 +332,7 @@ module Increase
|
|
329
332
|
mailing_address: Increase::CheckTransfer::PhysicalCheck::MailingAddress,
|
330
333
|
memo: String?,
|
331
334
|
note: String?,
|
335
|
+
payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer],
|
332
336
|
recipient_name: String,
|
333
337
|
return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?,
|
334
338
|
shipping_method: Increase::Models::CheckTransfer::PhysicalCheck::shipping_method?,
|
@@ -341,6 +345,7 @@ module Increase
|
|
341
345
|
mailing_address: Increase::CheckTransfer::PhysicalCheck::MailingAddress,
|
342
346
|
memo: String?,
|
343
347
|
note: String?,
|
348
|
+
payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer],
|
344
349
|
recipient_name: String,
|
345
350
|
return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?,
|
346
351
|
shipping_method: Increase::Models::CheckTransfer::PhysicalCheck::shipping_method?,
|
@@ -390,6 +395,16 @@ module Increase
|
|
390
395
|
}
|
391
396
|
end
|
392
397
|
|
398
|
+
type payer = { contents: String }
|
399
|
+
|
400
|
+
class Payer < Increase::Internal::Type::BaseModel
|
401
|
+
attr_accessor contents: String
|
402
|
+
|
403
|
+
def initialize: (contents: String) -> void
|
404
|
+
|
405
|
+
def to_hash: -> { contents: String }
|
406
|
+
end
|
407
|
+
|
393
408
|
type return_address =
|
394
409
|
{
|
395
410
|
city: String?,
|