increase 1.0.0 → 1.2.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 +33 -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/document.rb +26 -1
- data/lib/increase/models/document_create_params.rb +25 -1
- data/lib/increase/models/document_list_params.rb +3 -0
- 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/file.rb +3 -0
- data/lib/increase/models/file_list_params.rb +3 -0
- 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/resources/documents.rb +3 -1
- 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/document.rbi +51 -0
- data/rbi/increase/models/document_create_params.rbi +53 -0
- data/rbi/increase/models/document_list_params.rbi +7 -0
- 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/file.rbi +4 -0
- data/rbi/increase/models/file_list_params.rbi +7 -0
- 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/rbi/increase/resources/documents.rbi +4 -0
- 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/document.rbs +19 -0
- data/sig/increase/models/document_create_params.rbs +24 -2
- data/sig/increase/models/document_list_params.rbs +4 -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/file.rbs +4 -0
- data/sig/increase/models/file_list_params.rbs +4 -0
- 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
- data/sig/increase/resources/documents.rbs +1 -0
- metadata +2 -2
@@ -556,34 +556,62 @@ module Increase
|
|
556
556
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
557
557
|
)
|
558
558
|
|
559
|
-
# Occurs whenever
|
559
|
+
# Occurs whenever a Card Push Transfer is created.
|
560
560
|
OUTBOUND_CARD_PUSH_TRANSFER_CREATED =
|
561
561
|
T.let(
|
562
562
|
:"outbound_card_push_transfer.created",
|
563
563
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
564
564
|
)
|
565
565
|
|
566
|
-
# Occurs whenever
|
566
|
+
# Occurs whenever a Card Push Transfer is updated.
|
567
567
|
OUTBOUND_CARD_PUSH_TRANSFER_UPDATED =
|
568
568
|
T.let(
|
569
569
|
:"outbound_card_push_transfer.updated",
|
570
570
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
571
571
|
)
|
572
572
|
|
573
|
-
# Occurs whenever
|
573
|
+
# Occurs whenever a Card Validation is created.
|
574
574
|
OUTBOUND_CARD_VALIDATION_CREATED =
|
575
575
|
T.let(
|
576
576
|
:"outbound_card_validation.created",
|
577
577
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
578
578
|
)
|
579
579
|
|
580
|
-
# Occurs whenever
|
580
|
+
# Occurs whenever a Card Validation is updated.
|
581
581
|
OUTBOUND_CARD_VALIDATION_UPDATED =
|
582
582
|
T.let(
|
583
583
|
:"outbound_card_validation.updated",
|
584
584
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
585
585
|
)
|
586
586
|
|
587
|
+
# Occurs whenever a Card Push Transfer is created.
|
588
|
+
CARD_PUSH_TRANSFER_CREATED =
|
589
|
+
T.let(
|
590
|
+
:"card_push_transfer.created",
|
591
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
592
|
+
)
|
593
|
+
|
594
|
+
# Occurs whenever a Card Push Transfer is updated.
|
595
|
+
CARD_PUSH_TRANSFER_UPDATED =
|
596
|
+
T.let(
|
597
|
+
:"card_push_transfer.updated",
|
598
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
599
|
+
)
|
600
|
+
|
601
|
+
# Occurs whenever a Card Validation is created.
|
602
|
+
CARD_VALIDATION_CREATED =
|
603
|
+
T.let(
|
604
|
+
:"card_validation.created",
|
605
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
606
|
+
)
|
607
|
+
|
608
|
+
# Occurs whenever a Card Validation is updated.
|
609
|
+
CARD_VALIDATION_UPDATED =
|
610
|
+
T.let(
|
611
|
+
:"card_validation.updated",
|
612
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
613
|
+
)
|
614
|
+
|
587
615
|
# Occurs whenever a Pending Transaction is created.
|
588
616
|
PENDING_TRANSACTION_CREATED =
|
589
617
|
T.let(
|
@@ -703,6 +731,20 @@ module Increase
|
|
703
731
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
704
732
|
)
|
705
733
|
|
734
|
+
# Occurs whenever a Swift Transfer is created.
|
735
|
+
SWIFT_TRANSFER_CREATED =
|
736
|
+
T.let(
|
737
|
+
:"swift_transfer.created",
|
738
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
739
|
+
)
|
740
|
+
|
741
|
+
# Occurs whenever a Swift Transfer is updated.
|
742
|
+
SWIFT_TRANSFER_UPDATED =
|
743
|
+
T.let(
|
744
|
+
:"swift_transfer.updated",
|
745
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
|
746
|
+
)
|
747
|
+
|
706
748
|
# Occurs whenever a Transaction is created.
|
707
749
|
TRANSACTION_CREATED =
|
708
750
|
T.let(
|
@@ -265,6 +265,10 @@ module Increase
|
|
265
265
|
Increase::File::Purpose::TaggedSymbol
|
266
266
|
)
|
267
267
|
|
268
|
+
# Funding instructions.
|
269
|
+
FUNDING_INSTRUCTIONS =
|
270
|
+
T.let(:funding_instructions, Increase::File::Purpose::TaggedSymbol)
|
271
|
+
|
268
272
|
sig do
|
269
273
|
override.returns(T::Array[Increase::File::Purpose::TaggedSymbol])
|
270
274
|
end
|
@@ -396,6 +396,13 @@ module Increase
|
|
396
396
|
Increase::FileListParams::Purpose::In::TaggedSymbol
|
397
397
|
)
|
398
398
|
|
399
|
+
# Funding instructions.
|
400
|
+
FUNDING_INSTRUCTIONS =
|
401
|
+
T.let(
|
402
|
+
:funding_instructions,
|
403
|
+
Increase::FileListParams::Purpose::In::TaggedSymbol
|
404
|
+
)
|
405
|
+
|
399
406
|
sig do
|
400
407
|
override.returns(
|
401
408
|
T::Array[Increase::FileListParams::Purpose::In::TaggedSymbol]
|
@@ -76,14 +76,6 @@ module Increase
|
|
76
76
|
sig { returns(Date) }
|
77
77
|
attr_accessor :effective_date
|
78
78
|
|
79
|
-
# The settlement schedule the transfer is expected to follow.
|
80
|
-
sig do
|
81
|
-
returns(
|
82
|
-
Increase::InboundACHTransfer::ExpectedSettlementSchedule::TaggedSymbol
|
83
|
-
)
|
84
|
-
end
|
85
|
-
attr_accessor :expected_settlement_schedule
|
86
|
-
|
87
79
|
# If the Inbound ACH Transfer has a Standard Entry Class Code of IAT, this will
|
88
80
|
# contain fields pertaining to the International ACH Transaction.
|
89
81
|
sig do
|
@@ -151,6 +143,18 @@ module Increase
|
|
151
143
|
sig { returns(T.nilable(String)) }
|
152
144
|
attr_accessor :receiver_name
|
153
145
|
|
146
|
+
# A subhash containing information about when and how the transfer settled at the
|
147
|
+
# Federal Reserve.
|
148
|
+
sig { returns(Increase::InboundACHTransfer::Settlement) }
|
149
|
+
attr_reader :settlement
|
150
|
+
|
151
|
+
sig do
|
152
|
+
params(
|
153
|
+
settlement: Increase::InboundACHTransfer::Settlement::OrHash
|
154
|
+
).void
|
155
|
+
end
|
156
|
+
attr_writer :settlement
|
157
|
+
|
154
158
|
# The Standard Entry Class (SEC) code of the transfer.
|
155
159
|
sig do
|
156
160
|
returns(
|
@@ -203,8 +207,6 @@ module Increase
|
|
203
207
|
decline: T.nilable(Increase::InboundACHTransfer::Decline::OrHash),
|
204
208
|
direction: Increase::InboundACHTransfer::Direction::OrSymbol,
|
205
209
|
effective_date: Date,
|
206
|
-
expected_settlement_schedule:
|
207
|
-
Increase::InboundACHTransfer::ExpectedSettlementSchedule::OrSymbol,
|
208
210
|
international_addenda:
|
209
211
|
T.nilable(
|
210
212
|
Increase::InboundACHTransfer::InternationalAddenda::OrHash
|
@@ -221,6 +223,7 @@ module Increase
|
|
221
223
|
originator_routing_number: String,
|
222
224
|
receiver_id_number: T.nilable(String),
|
223
225
|
receiver_name: T.nilable(String),
|
226
|
+
settlement: Increase::InboundACHTransfer::Settlement::OrHash,
|
224
227
|
standard_entry_class_code:
|
225
228
|
Increase::InboundACHTransfer::StandardEntryClassCode::OrSymbol,
|
226
229
|
status: Increase::InboundACHTransfer::Status::OrSymbol,
|
@@ -255,8 +258,6 @@ module Increase
|
|
255
258
|
# The effective date of the transfer. This is sent by the sending bank and is a
|
256
259
|
# factor in determining funds availability.
|
257
260
|
effective_date:,
|
258
|
-
# The settlement schedule the transfer is expected to follow.
|
259
|
-
expected_settlement_schedule:,
|
260
261
|
# If the Inbound ACH Transfer has a Standard Entry Class Code of IAT, this will
|
261
262
|
# contain fields pertaining to the International ACH Transaction.
|
262
263
|
international_addenda:,
|
@@ -280,6 +281,9 @@ module Increase
|
|
280
281
|
receiver_id_number:,
|
281
282
|
# The name of the receiver of the transfer.
|
282
283
|
receiver_name:,
|
284
|
+
# A subhash containing information about when and how the transfer settled at the
|
285
|
+
# Federal Reserve.
|
286
|
+
settlement:,
|
283
287
|
# The Standard Entry Class (SEC) code of the transfer.
|
284
288
|
standard_entry_class_code:,
|
285
289
|
# The status of the transfer.
|
@@ -311,8 +315,6 @@ module Increase
|
|
311
315
|
decline: T.nilable(Increase::InboundACHTransfer::Decline),
|
312
316
|
direction: Increase::InboundACHTransfer::Direction::TaggedSymbol,
|
313
317
|
effective_date: Date,
|
314
|
-
expected_settlement_schedule:
|
315
|
-
Increase::InboundACHTransfer::ExpectedSettlementSchedule::TaggedSymbol,
|
316
318
|
international_addenda:
|
317
319
|
T.nilable(Increase::InboundACHTransfer::InternationalAddenda),
|
318
320
|
notification_of_change:
|
@@ -325,6 +327,7 @@ module Increase
|
|
325
327
|
originator_routing_number: String,
|
326
328
|
receiver_id_number: T.nilable(String),
|
327
329
|
receiver_name: T.nilable(String),
|
330
|
+
settlement: Increase::InboundACHTransfer::Settlement,
|
328
331
|
standard_entry_class_code:
|
329
332
|
Increase::InboundACHTransfer::StandardEntryClassCode::TaggedSymbol,
|
330
333
|
status: Increase::InboundACHTransfer::Status::TaggedSymbol,
|
@@ -758,44 +761,6 @@ module Increase
|
|
758
761
|
end
|
759
762
|
end
|
760
763
|
|
761
|
-
# The settlement schedule the transfer is expected to follow.
|
762
|
-
module ExpectedSettlementSchedule
|
763
|
-
extend Increase::Internal::Type::Enum
|
764
|
-
|
765
|
-
TaggedSymbol =
|
766
|
-
T.type_alias do
|
767
|
-
T.all(
|
768
|
-
Symbol,
|
769
|
-
Increase::InboundACHTransfer::ExpectedSettlementSchedule
|
770
|
-
)
|
771
|
-
end
|
772
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
773
|
-
|
774
|
-
# The transfer is expected to settle same-day.
|
775
|
-
SAME_DAY =
|
776
|
-
T.let(
|
777
|
-
:same_day,
|
778
|
-
Increase::InboundACHTransfer::ExpectedSettlementSchedule::TaggedSymbol
|
779
|
-
)
|
780
|
-
|
781
|
-
# The transfer is expected to settle on a future date.
|
782
|
-
FUTURE_DATED =
|
783
|
-
T.let(
|
784
|
-
:future_dated,
|
785
|
-
Increase::InboundACHTransfer::ExpectedSettlementSchedule::TaggedSymbol
|
786
|
-
)
|
787
|
-
|
788
|
-
sig do
|
789
|
-
override.returns(
|
790
|
-
T::Array[
|
791
|
-
Increase::InboundACHTransfer::ExpectedSettlementSchedule::TaggedSymbol
|
792
|
-
]
|
793
|
-
)
|
794
|
-
end
|
795
|
-
def self.values
|
796
|
-
end
|
797
|
-
end
|
798
|
-
|
799
764
|
class InternationalAddenda < Increase::Internal::Type::BaseModel
|
800
765
|
OrHash =
|
801
766
|
T.type_alias do
|
@@ -1552,6 +1517,97 @@ module Increase
|
|
1552
1517
|
end
|
1553
1518
|
end
|
1554
1519
|
|
1520
|
+
class Settlement < Increase::Internal::Type::BaseModel
|
1521
|
+
OrHash =
|
1522
|
+
T.type_alias do
|
1523
|
+
T.any(
|
1524
|
+
Increase::InboundACHTransfer::Settlement,
|
1525
|
+
Increase::Internal::AnyHash
|
1526
|
+
)
|
1527
|
+
end
|
1528
|
+
|
1529
|
+
# When the funds for this transfer settle at the recipient bank at the Federal
|
1530
|
+
# Reserve.
|
1531
|
+
sig { returns(Time) }
|
1532
|
+
attr_accessor :settled_at
|
1533
|
+
|
1534
|
+
# The settlement schedule this transfer follows.
|
1535
|
+
sig do
|
1536
|
+
returns(
|
1537
|
+
Increase::InboundACHTransfer::Settlement::SettlementSchedule::TaggedSymbol
|
1538
|
+
)
|
1539
|
+
end
|
1540
|
+
attr_accessor :settlement_schedule
|
1541
|
+
|
1542
|
+
# A subhash containing information about when and how the transfer settled at the
|
1543
|
+
# Federal Reserve.
|
1544
|
+
sig do
|
1545
|
+
params(
|
1546
|
+
settled_at: Time,
|
1547
|
+
settlement_schedule:
|
1548
|
+
Increase::InboundACHTransfer::Settlement::SettlementSchedule::OrSymbol
|
1549
|
+
).returns(T.attached_class)
|
1550
|
+
end
|
1551
|
+
def self.new(
|
1552
|
+
# When the funds for this transfer settle at the recipient bank at the Federal
|
1553
|
+
# Reserve.
|
1554
|
+
settled_at:,
|
1555
|
+
# The settlement schedule this transfer follows.
|
1556
|
+
settlement_schedule:
|
1557
|
+
)
|
1558
|
+
end
|
1559
|
+
|
1560
|
+
sig do
|
1561
|
+
override.returns(
|
1562
|
+
{
|
1563
|
+
settled_at: Time,
|
1564
|
+
settlement_schedule:
|
1565
|
+
Increase::InboundACHTransfer::Settlement::SettlementSchedule::TaggedSymbol
|
1566
|
+
}
|
1567
|
+
)
|
1568
|
+
end
|
1569
|
+
def to_hash
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
# The settlement schedule this transfer follows.
|
1573
|
+
module SettlementSchedule
|
1574
|
+
extend Increase::Internal::Type::Enum
|
1575
|
+
|
1576
|
+
TaggedSymbol =
|
1577
|
+
T.type_alias do
|
1578
|
+
T.all(
|
1579
|
+
Symbol,
|
1580
|
+
Increase::InboundACHTransfer::Settlement::SettlementSchedule
|
1581
|
+
)
|
1582
|
+
end
|
1583
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1584
|
+
|
1585
|
+
# The transfer is expected to settle same-day.
|
1586
|
+
SAME_DAY =
|
1587
|
+
T.let(
|
1588
|
+
:same_day,
|
1589
|
+
Increase::InboundACHTransfer::Settlement::SettlementSchedule::TaggedSymbol
|
1590
|
+
)
|
1591
|
+
|
1592
|
+
# The transfer is expected to settle on a future date.
|
1593
|
+
FUTURE_DATED =
|
1594
|
+
T.let(
|
1595
|
+
:future_dated,
|
1596
|
+
Increase::InboundACHTransfer::Settlement::SettlementSchedule::TaggedSymbol
|
1597
|
+
)
|
1598
|
+
|
1599
|
+
sig do
|
1600
|
+
override.returns(
|
1601
|
+
T::Array[
|
1602
|
+
Increase::InboundACHTransfer::Settlement::SettlementSchedule::TaggedSymbol
|
1603
|
+
]
|
1604
|
+
)
|
1605
|
+
end
|
1606
|
+
def self.values
|
1607
|
+
end
|
1608
|
+
end
|
1609
|
+
end
|
1610
|
+
|
1555
1611
|
# The Standard Entry Class (SEC) code of the transfer.
|
1556
1612
|
module StandardEntryClassCode
|
1557
1613
|
extend Increase::Internal::Type::Enum
|
@@ -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
|
|