increase 1.113.0 → 1.115.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 +16 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +8 -0
- data/lib/increase/models/card_payment.rb +160 -4
- data/lib/increase/models/declined_transaction.rb +40 -1
- data/lib/increase/models/fednow_transfer.rb +516 -0
- data/lib/increase/models/fednow_transfer_approve_params.rb +14 -0
- data/lib/increase/models/fednow_transfer_cancel_params.rb +14 -0
- data/lib/increase/models/fednow_transfer_create_params.rb +188 -0
- data/lib/increase/models/fednow_transfer_list_params.rb +170 -0
- data/lib/increase/models/fednow_transfer_retrieve_params.rb +14 -0
- data/lib/increase/models/inbound_fednow_transfer.rb +278 -0
- data/lib/increase/models/inbound_fednow_transfer_list_params.rb +100 -0
- data/lib/increase/models/inbound_fednow_transfer_retrieve_params.rb +14 -0
- data/lib/increase/models/pending_transaction.rb +42 -1
- data/lib/increase/models/real_time_decision.rb +40 -1
- data/lib/increase/models/simulations/inbound_fednow_transfer_create_params.rb +64 -0
- data/lib/increase/models/transaction.rb +40 -1
- data/lib/increase/models.rb +18 -0
- data/lib/increase/resources/fednow_transfers.rb +159 -0
- data/lib/increase/resources/inbound_fednow_transfers.rb +68 -0
- data/lib/increase/resources/simulations/inbound_fednow_transfers.rb +49 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +13 -0
- data/rbi/increase/client.rbi +6 -0
- data/rbi/increase/models/card_payment.rbi +288 -0
- data/rbi/increase/models/declined_transaction.rbi +72 -0
- data/rbi/increase/models/fednow_transfer.rbi +877 -0
- data/rbi/increase/models/fednow_transfer_approve_params.rbi +30 -0
- data/rbi/increase/models/fednow_transfer_cancel_params.rbi +30 -0
- data/rbi/increase/models/fednow_transfer_create_params.rbi +289 -0
- data/rbi/increase/models/fednow_transfer_list_params.rbi +334 -0
- data/rbi/increase/models/fednow_transfer_retrieve_params.rbi +30 -0
- data/rbi/increase/models/inbound_fednow_transfer.rbi +444 -0
- data/rbi/increase/models/inbound_fednow_transfer_list_params.rbi +177 -0
- data/rbi/increase/models/inbound_fednow_transfer_retrieve_params.rbi +30 -0
- data/rbi/increase/models/pending_transaction.rbi +72 -0
- data/rbi/increase/models/real_time_decision.rbi +72 -0
- data/rbi/increase/models/simulations/inbound_fednow_transfer_create_params.rbi +100 -0
- data/rbi/increase/models/transaction.rbi +72 -0
- data/rbi/increase/models.rbi +20 -0
- data/rbi/increase/resources/fednow_transfers.rbi +138 -0
- data/rbi/increase/resources/inbound_fednow_transfers.rbi +54 -0
- data/rbi/increase/resources/simulations/inbound_fednow_transfers.rbi +44 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +4 -0
- data/sig/increase/models/card_payment.rbs +68 -0
- data/sig/increase/models/declined_transaction.rbs +17 -0
- data/sig/increase/models/fednow_transfer.rbs +404 -0
- data/sig/increase/models/fednow_transfer_approve_params.rbs +15 -0
- data/sig/increase/models/fednow_transfer_cancel_params.rbs +15 -0
- data/sig/increase/models/fednow_transfer_create_params.rbs +155 -0
- data/sig/increase/models/fednow_transfer_list_params.rbs +174 -0
- data/sig/increase/models/fednow_transfer_retrieve_params.rbs +15 -0
- data/sig/increase/models/inbound_fednow_transfer.rbs +223 -0
- data/sig/increase/models/inbound_fednow_transfer_list_params.rbs +93 -0
- data/sig/increase/models/inbound_fednow_transfer_retrieve_params.rbs +15 -0
- data/sig/increase/models/pending_transaction.rbs +17 -0
- data/sig/increase/models/real_time_decision.rbs +17 -0
- data/sig/increase/models/simulations/inbound_fednow_transfer_create_params.rbs +61 -0
- data/sig/increase/models/transaction.rbs +17 -0
- data/sig/increase/models.rbs +18 -0
- data/sig/increase/resources/fednow_transfers.rbs +49 -0
- data/sig/increase/resources/inbound_fednow_transfers.rbs +21 -0
- data/sig/increase/resources/simulations/inbound_fednow_transfers.rbs +19 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +41 -2
|
@@ -1372,6 +1372,26 @@ module Increase
|
|
|
1372
1372
|
end
|
|
1373
1373
|
attr_writer :dental
|
|
1374
1374
|
|
|
1375
|
+
# The original pre-authorized amount.
|
|
1376
|
+
sig do
|
|
1377
|
+
returns(
|
|
1378
|
+
T.nilable(
|
|
1379
|
+
Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original
|
|
1380
|
+
)
|
|
1381
|
+
)
|
|
1382
|
+
end
|
|
1383
|
+
attr_reader :original
|
|
1384
|
+
|
|
1385
|
+
sig do
|
|
1386
|
+
params(
|
|
1387
|
+
original:
|
|
1388
|
+
T.nilable(
|
|
1389
|
+
Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original::OrHash
|
|
1390
|
+
)
|
|
1391
|
+
).void
|
|
1392
|
+
end
|
|
1393
|
+
attr_writer :original
|
|
1394
|
+
|
|
1375
1395
|
# The part of this transaction amount that was for healthcare prescriptions.
|
|
1376
1396
|
sig do
|
|
1377
1397
|
returns(
|
|
@@ -1525,6 +1545,10 @@ module Increase
|
|
|
1525
1545
|
T.nilable(
|
|
1526
1546
|
Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental::OrHash
|
|
1527
1547
|
),
|
|
1548
|
+
original:
|
|
1549
|
+
T.nilable(
|
|
1550
|
+
Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original::OrHash
|
|
1551
|
+
),
|
|
1528
1552
|
prescription:
|
|
1529
1553
|
T.nilable(
|
|
1530
1554
|
Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription::OrHash
|
|
@@ -1560,6 +1584,8 @@ module Increase
|
|
|
1560
1584
|
clinic:,
|
|
1561
1585
|
# The part of this transaction amount that was for dental-related services.
|
|
1562
1586
|
dental:,
|
|
1587
|
+
# The original pre-authorized amount.
|
|
1588
|
+
original:,
|
|
1563
1589
|
# The part of this transaction amount that was for healthcare prescriptions.
|
|
1564
1590
|
prescription:,
|
|
1565
1591
|
# The surcharge amount charged for this transaction by the merchant.
|
|
@@ -1588,6 +1614,10 @@ module Increase
|
|
|
1588
1614
|
T.nilable(
|
|
1589
1615
|
Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental
|
|
1590
1616
|
),
|
|
1617
|
+
original:
|
|
1618
|
+
T.nilable(
|
|
1619
|
+
Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original
|
|
1620
|
+
),
|
|
1591
1621
|
prescription:
|
|
1592
1622
|
T.nilable(
|
|
1593
1623
|
Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription
|
|
@@ -1706,6 +1736,48 @@ module Increase
|
|
|
1706
1736
|
end
|
|
1707
1737
|
end
|
|
1708
1738
|
|
|
1739
|
+
class Original < Increase::Internal::Type::BaseModel
|
|
1740
|
+
OrHash =
|
|
1741
|
+
T.type_alias do
|
|
1742
|
+
T.any(
|
|
1743
|
+
Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original,
|
|
1744
|
+
Increase::Internal::AnyHash
|
|
1745
|
+
)
|
|
1746
|
+
end
|
|
1747
|
+
|
|
1748
|
+
# The amount in minor units of the `currency` field. The amount is positive if it
|
|
1749
|
+
# is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1750
|
+
# subtracted from the amount (such as a discount).
|
|
1751
|
+
sig { returns(Integer) }
|
|
1752
|
+
attr_accessor :amount
|
|
1753
|
+
|
|
1754
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1755
|
+
# amount's currency.
|
|
1756
|
+
sig { returns(String) }
|
|
1757
|
+
attr_accessor :currency
|
|
1758
|
+
|
|
1759
|
+
# The original pre-authorized amount.
|
|
1760
|
+
sig do
|
|
1761
|
+
params(amount: Integer, currency: String).returns(
|
|
1762
|
+
T.attached_class
|
|
1763
|
+
)
|
|
1764
|
+
end
|
|
1765
|
+
def self.new(
|
|
1766
|
+
# The amount in minor units of the `currency` field. The amount is positive if it
|
|
1767
|
+
# is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1768
|
+
# subtracted from the amount (such as a discount).
|
|
1769
|
+
amount:,
|
|
1770
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1771
|
+
# amount's currency.
|
|
1772
|
+
currency:
|
|
1773
|
+
)
|
|
1774
|
+
end
|
|
1775
|
+
|
|
1776
|
+
sig { override.returns({ amount: Integer, currency: String }) }
|
|
1777
|
+
def to_hash
|
|
1778
|
+
end
|
|
1779
|
+
end
|
|
1780
|
+
|
|
1709
1781
|
class Prescription < Increase::Internal::Type::BaseModel
|
|
1710
1782
|
OrHash =
|
|
1711
1783
|
T.type_alias do
|
|
@@ -870,6 +870,26 @@ module Increase
|
|
|
870
870
|
end
|
|
871
871
|
attr_writer :dental
|
|
872
872
|
|
|
873
|
+
# The original pre-authorized amount.
|
|
874
|
+
sig do
|
|
875
|
+
returns(
|
|
876
|
+
T.nilable(
|
|
877
|
+
Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original
|
|
878
|
+
)
|
|
879
|
+
)
|
|
880
|
+
end
|
|
881
|
+
attr_reader :original
|
|
882
|
+
|
|
883
|
+
sig do
|
|
884
|
+
params(
|
|
885
|
+
original:
|
|
886
|
+
T.nilable(
|
|
887
|
+
Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original::OrHash
|
|
888
|
+
)
|
|
889
|
+
).void
|
|
890
|
+
end
|
|
891
|
+
attr_writer :original
|
|
892
|
+
|
|
873
893
|
# The part of this transaction amount that was for healthcare prescriptions.
|
|
874
894
|
sig do
|
|
875
895
|
returns(
|
|
@@ -1023,6 +1043,10 @@ module Increase
|
|
|
1023
1043
|
T.nilable(
|
|
1024
1044
|
Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental::OrHash
|
|
1025
1045
|
),
|
|
1046
|
+
original:
|
|
1047
|
+
T.nilable(
|
|
1048
|
+
Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original::OrHash
|
|
1049
|
+
),
|
|
1026
1050
|
prescription:
|
|
1027
1051
|
T.nilable(
|
|
1028
1052
|
Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription::OrHash
|
|
@@ -1058,6 +1082,8 @@ module Increase
|
|
|
1058
1082
|
clinic:,
|
|
1059
1083
|
# The part of this transaction amount that was for dental-related services.
|
|
1060
1084
|
dental:,
|
|
1085
|
+
# The original pre-authorized amount.
|
|
1086
|
+
original:,
|
|
1061
1087
|
# The part of this transaction amount that was for healthcare prescriptions.
|
|
1062
1088
|
prescription:,
|
|
1063
1089
|
# The surcharge amount charged for this transaction by the merchant.
|
|
@@ -1086,6 +1112,10 @@ module Increase
|
|
|
1086
1112
|
T.nilable(
|
|
1087
1113
|
Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental
|
|
1088
1114
|
),
|
|
1115
|
+
original:
|
|
1116
|
+
T.nilable(
|
|
1117
|
+
Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original
|
|
1118
|
+
),
|
|
1089
1119
|
prescription:
|
|
1090
1120
|
T.nilable(
|
|
1091
1121
|
Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription
|
|
@@ -1204,6 +1234,48 @@ module Increase
|
|
|
1204
1234
|
end
|
|
1205
1235
|
end
|
|
1206
1236
|
|
|
1237
|
+
class Original < Increase::Internal::Type::BaseModel
|
|
1238
|
+
OrHash =
|
|
1239
|
+
T.type_alias do
|
|
1240
|
+
T.any(
|
|
1241
|
+
Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original,
|
|
1242
|
+
Increase::Internal::AnyHash
|
|
1243
|
+
)
|
|
1244
|
+
end
|
|
1245
|
+
|
|
1246
|
+
# The amount in minor units of the `currency` field. The amount is positive if it
|
|
1247
|
+
# is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1248
|
+
# subtracted from the amount (such as a discount).
|
|
1249
|
+
sig { returns(Integer) }
|
|
1250
|
+
attr_accessor :amount
|
|
1251
|
+
|
|
1252
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1253
|
+
# amount's currency.
|
|
1254
|
+
sig { returns(String) }
|
|
1255
|
+
attr_accessor :currency
|
|
1256
|
+
|
|
1257
|
+
# The original pre-authorized amount.
|
|
1258
|
+
sig do
|
|
1259
|
+
params(amount: Integer, currency: String).returns(
|
|
1260
|
+
T.attached_class
|
|
1261
|
+
)
|
|
1262
|
+
end
|
|
1263
|
+
def self.new(
|
|
1264
|
+
# The amount in minor units of the `currency` field. The amount is positive if it
|
|
1265
|
+
# is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1266
|
+
# subtracted from the amount (such as a discount).
|
|
1267
|
+
amount:,
|
|
1268
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1269
|
+
# amount's currency.
|
|
1270
|
+
currency:
|
|
1271
|
+
)
|
|
1272
|
+
end
|
|
1273
|
+
|
|
1274
|
+
sig { override.returns({ amount: Integer, currency: String }) }
|
|
1275
|
+
def to_hash
|
|
1276
|
+
end
|
|
1277
|
+
end
|
|
1278
|
+
|
|
1207
1279
|
class Prescription < Increase::Internal::Type::BaseModel
|
|
1208
1280
|
OrHash =
|
|
1209
1281
|
T.type_alias do
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
module Simulations
|
|
6
|
+
class InboundFednowTransferCreateParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Increase::Simulations::InboundFednowTransferCreateParams,
|
|
14
|
+
Increase::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# The identifier of the Account Number the inbound FedNow Transfer is for.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :account_number_id
|
|
21
|
+
|
|
22
|
+
# The transfer amount in USD cents. Must be positive.
|
|
23
|
+
sig { returns(Integer) }
|
|
24
|
+
attr_accessor :amount
|
|
25
|
+
|
|
26
|
+
# The account number of the account that sent the transfer.
|
|
27
|
+
sig { returns(T.nilable(String)) }
|
|
28
|
+
attr_reader :debtor_account_number
|
|
29
|
+
|
|
30
|
+
sig { params(debtor_account_number: String).void }
|
|
31
|
+
attr_writer :debtor_account_number
|
|
32
|
+
|
|
33
|
+
# The name provided by the sender of the transfer.
|
|
34
|
+
sig { returns(T.nilable(String)) }
|
|
35
|
+
attr_reader :debtor_name
|
|
36
|
+
|
|
37
|
+
sig { params(debtor_name: String).void }
|
|
38
|
+
attr_writer :debtor_name
|
|
39
|
+
|
|
40
|
+
# The routing number of the account that sent the transfer.
|
|
41
|
+
sig { returns(T.nilable(String)) }
|
|
42
|
+
attr_reader :debtor_routing_number
|
|
43
|
+
|
|
44
|
+
sig { params(debtor_routing_number: String).void }
|
|
45
|
+
attr_writer :debtor_routing_number
|
|
46
|
+
|
|
47
|
+
# Additional information included with the transfer.
|
|
48
|
+
sig { returns(T.nilable(String)) }
|
|
49
|
+
attr_reader :unstructured_remittance_information
|
|
50
|
+
|
|
51
|
+
sig { params(unstructured_remittance_information: String).void }
|
|
52
|
+
attr_writer :unstructured_remittance_information
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
params(
|
|
56
|
+
account_number_id: String,
|
|
57
|
+
amount: Integer,
|
|
58
|
+
debtor_account_number: String,
|
|
59
|
+
debtor_name: String,
|
|
60
|
+
debtor_routing_number: String,
|
|
61
|
+
unstructured_remittance_information: String,
|
|
62
|
+
request_options: Increase::RequestOptions::OrHash
|
|
63
|
+
).returns(T.attached_class)
|
|
64
|
+
end
|
|
65
|
+
def self.new(
|
|
66
|
+
# The identifier of the Account Number the inbound FedNow Transfer is for.
|
|
67
|
+
account_number_id:,
|
|
68
|
+
# The transfer amount in USD cents. Must be positive.
|
|
69
|
+
amount:,
|
|
70
|
+
# The account number of the account that sent the transfer.
|
|
71
|
+
debtor_account_number: nil,
|
|
72
|
+
# The name provided by the sender of the transfer.
|
|
73
|
+
debtor_name: nil,
|
|
74
|
+
# The routing number of the account that sent the transfer.
|
|
75
|
+
debtor_routing_number: nil,
|
|
76
|
+
# Additional information included with the transfer.
|
|
77
|
+
unstructured_remittance_information: nil,
|
|
78
|
+
request_options: {}
|
|
79
|
+
)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
sig do
|
|
83
|
+
override.returns(
|
|
84
|
+
{
|
|
85
|
+
account_number_id: String,
|
|
86
|
+
amount: Integer,
|
|
87
|
+
debtor_account_number: String,
|
|
88
|
+
debtor_name: String,
|
|
89
|
+
debtor_routing_number: String,
|
|
90
|
+
unstructured_remittance_information: String,
|
|
91
|
+
request_options: Increase::RequestOptions
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
def to_hash
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -3068,6 +3068,26 @@ module Increase
|
|
|
3068
3068
|
end
|
|
3069
3069
|
attr_writer :dental
|
|
3070
3070
|
|
|
3071
|
+
# The original pre-authorized amount.
|
|
3072
|
+
sig do
|
|
3073
|
+
returns(
|
|
3074
|
+
T.nilable(
|
|
3075
|
+
Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original
|
|
3076
|
+
)
|
|
3077
|
+
)
|
|
3078
|
+
end
|
|
3079
|
+
attr_reader :original
|
|
3080
|
+
|
|
3081
|
+
sig do
|
|
3082
|
+
params(
|
|
3083
|
+
original:
|
|
3084
|
+
T.nilable(
|
|
3085
|
+
Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original::OrHash
|
|
3086
|
+
)
|
|
3087
|
+
).void
|
|
3088
|
+
end
|
|
3089
|
+
attr_writer :original
|
|
3090
|
+
|
|
3071
3091
|
# The part of this transaction amount that was for healthcare prescriptions.
|
|
3072
3092
|
sig do
|
|
3073
3093
|
returns(
|
|
@@ -3221,6 +3241,10 @@ module Increase
|
|
|
3221
3241
|
T.nilable(
|
|
3222
3242
|
Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Dental::OrHash
|
|
3223
3243
|
),
|
|
3244
|
+
original:
|
|
3245
|
+
T.nilable(
|
|
3246
|
+
Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original::OrHash
|
|
3247
|
+
),
|
|
3224
3248
|
prescription:
|
|
3225
3249
|
T.nilable(
|
|
3226
3250
|
Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Prescription::OrHash
|
|
@@ -3256,6 +3280,8 @@ module Increase
|
|
|
3256
3280
|
clinic:,
|
|
3257
3281
|
# The part of this transaction amount that was for dental-related services.
|
|
3258
3282
|
dental:,
|
|
3283
|
+
# The original pre-authorized amount.
|
|
3284
|
+
original:,
|
|
3259
3285
|
# The part of this transaction amount that was for healthcare prescriptions.
|
|
3260
3286
|
prescription:,
|
|
3261
3287
|
# The surcharge amount charged for this transaction by the merchant.
|
|
@@ -3284,6 +3310,10 @@ module Increase
|
|
|
3284
3310
|
T.nilable(
|
|
3285
3311
|
Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Dental
|
|
3286
3312
|
),
|
|
3313
|
+
original:
|
|
3314
|
+
T.nilable(
|
|
3315
|
+
Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original
|
|
3316
|
+
),
|
|
3287
3317
|
prescription:
|
|
3288
3318
|
T.nilable(
|
|
3289
3319
|
Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Prescription
|
|
@@ -3402,6 +3432,48 @@ module Increase
|
|
|
3402
3432
|
end
|
|
3403
3433
|
end
|
|
3404
3434
|
|
|
3435
|
+
class Original < Increase::Internal::Type::BaseModel
|
|
3436
|
+
OrHash =
|
|
3437
|
+
T.type_alias do
|
|
3438
|
+
T.any(
|
|
3439
|
+
Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original,
|
|
3440
|
+
Increase::Internal::AnyHash
|
|
3441
|
+
)
|
|
3442
|
+
end
|
|
3443
|
+
|
|
3444
|
+
# The amount in minor units of the `currency` field. The amount is positive if it
|
|
3445
|
+
# is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
3446
|
+
# subtracted from the amount (such as a discount).
|
|
3447
|
+
sig { returns(Integer) }
|
|
3448
|
+
attr_accessor :amount
|
|
3449
|
+
|
|
3450
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
3451
|
+
# amount's currency.
|
|
3452
|
+
sig { returns(String) }
|
|
3453
|
+
attr_accessor :currency
|
|
3454
|
+
|
|
3455
|
+
# The original pre-authorized amount.
|
|
3456
|
+
sig do
|
|
3457
|
+
params(amount: Integer, currency: String).returns(
|
|
3458
|
+
T.attached_class
|
|
3459
|
+
)
|
|
3460
|
+
end
|
|
3461
|
+
def self.new(
|
|
3462
|
+
# The amount in minor units of the `currency` field. The amount is positive if it
|
|
3463
|
+
# is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
3464
|
+
# subtracted from the amount (such as a discount).
|
|
3465
|
+
amount:,
|
|
3466
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
3467
|
+
# amount's currency.
|
|
3468
|
+
currency:
|
|
3469
|
+
)
|
|
3470
|
+
end
|
|
3471
|
+
|
|
3472
|
+
sig { override.returns({ amount: Integer, currency: String }) }
|
|
3473
|
+
def to_hash
|
|
3474
|
+
end
|
|
3475
|
+
end
|
|
3476
|
+
|
|
3405
3477
|
class Prescription < Increase::Internal::Type::BaseModel
|
|
3406
3478
|
OrHash =
|
|
3407
3479
|
T.type_alias do
|
data/rbi/increase/models.rbi
CHANGED
|
@@ -312,6 +312,18 @@ module Increase
|
|
|
312
312
|
|
|
313
313
|
ExternalAccountUpdateParams = Increase::Models::ExternalAccountUpdateParams
|
|
314
314
|
|
|
315
|
+
FednowTransfer = Increase::Models::FednowTransfer
|
|
316
|
+
|
|
317
|
+
FednowTransferApproveParams = Increase::Models::FednowTransferApproveParams
|
|
318
|
+
|
|
319
|
+
FednowTransferCancelParams = Increase::Models::FednowTransferCancelParams
|
|
320
|
+
|
|
321
|
+
FednowTransferCreateParams = Increase::Models::FednowTransferCreateParams
|
|
322
|
+
|
|
323
|
+
FednowTransferListParams = Increase::Models::FednowTransferListParams
|
|
324
|
+
|
|
325
|
+
FednowTransferRetrieveParams = Increase::Models::FednowTransferRetrieveParams
|
|
326
|
+
|
|
315
327
|
File = Increase::Models::File
|
|
316
328
|
|
|
317
329
|
FileCreateParams = Increase::Models::FileCreateParams
|
|
@@ -358,6 +370,14 @@ module Increase
|
|
|
358
370
|
InboundCheckDepositReturnParams =
|
|
359
371
|
Increase::Models::InboundCheckDepositReturnParams
|
|
360
372
|
|
|
373
|
+
InboundFednowTransfer = Increase::Models::InboundFednowTransfer
|
|
374
|
+
|
|
375
|
+
InboundFednowTransferListParams =
|
|
376
|
+
Increase::Models::InboundFednowTransferListParams
|
|
377
|
+
|
|
378
|
+
InboundFednowTransferRetrieveParams =
|
|
379
|
+
Increase::Models::InboundFednowTransferRetrieveParams
|
|
380
|
+
|
|
361
381
|
InboundMailItem = Increase::Models::InboundMailItem
|
|
362
382
|
|
|
363
383
|
InboundMailItemListParams = Increase::Models::InboundMailItemListParams
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class FednowTransfers
|
|
6
|
+
# Create a FedNow Transfer
|
|
7
|
+
sig do
|
|
8
|
+
params(
|
|
9
|
+
account_id: String,
|
|
10
|
+
amount: Integer,
|
|
11
|
+
creditor_name: String,
|
|
12
|
+
debtor_name: String,
|
|
13
|
+
source_account_number_id: String,
|
|
14
|
+
unstructured_remittance_information: String,
|
|
15
|
+
account_number: String,
|
|
16
|
+
creditor_address:
|
|
17
|
+
Increase::FednowTransferCreateParams::CreditorAddress::OrHash,
|
|
18
|
+
debtor_address:
|
|
19
|
+
Increase::FednowTransferCreateParams::DebtorAddress::OrHash,
|
|
20
|
+
external_account_id: String,
|
|
21
|
+
require_approval: T::Boolean,
|
|
22
|
+
routing_number: String,
|
|
23
|
+
request_options: Increase::RequestOptions::OrHash
|
|
24
|
+
).returns(Increase::FednowTransfer)
|
|
25
|
+
end
|
|
26
|
+
def create(
|
|
27
|
+
# The identifier for the account that will send the transfer.
|
|
28
|
+
account_id:,
|
|
29
|
+
# The amount, in minor units, to send to the creditor.
|
|
30
|
+
amount:,
|
|
31
|
+
# The creditor's name.
|
|
32
|
+
creditor_name:,
|
|
33
|
+
# The debtor's name.
|
|
34
|
+
debtor_name:,
|
|
35
|
+
# The Account Number to include in the transfer as the debtor's account number.
|
|
36
|
+
source_account_number_id:,
|
|
37
|
+
# Unstructured remittance information to include in the transfer.
|
|
38
|
+
unstructured_remittance_information:,
|
|
39
|
+
# The creditor's account number.
|
|
40
|
+
account_number: nil,
|
|
41
|
+
# The creditor's address.
|
|
42
|
+
creditor_address: nil,
|
|
43
|
+
# The debtor's address.
|
|
44
|
+
debtor_address: nil,
|
|
45
|
+
# The ID of an External Account to initiate a transfer to. If this parameter is
|
|
46
|
+
# provided, `account_number` and `routing_number` must be absent.
|
|
47
|
+
external_account_id: nil,
|
|
48
|
+
# Whether the transfer requires explicit approval via the dashboard or API.
|
|
49
|
+
require_approval: nil,
|
|
50
|
+
# The creditor's bank account routing number.
|
|
51
|
+
routing_number: nil,
|
|
52
|
+
request_options: {}
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Retrieve a FedNow Transfer
|
|
57
|
+
sig do
|
|
58
|
+
params(
|
|
59
|
+
fednow_transfer_id: String,
|
|
60
|
+
request_options: Increase::RequestOptions::OrHash
|
|
61
|
+
).returns(Increase::FednowTransfer)
|
|
62
|
+
end
|
|
63
|
+
def retrieve(
|
|
64
|
+
# The identifier of the FedNow Transfer.
|
|
65
|
+
fednow_transfer_id,
|
|
66
|
+
request_options: {}
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List FedNow Transfers
|
|
71
|
+
sig do
|
|
72
|
+
params(
|
|
73
|
+
account_id: String,
|
|
74
|
+
created_at: Increase::FednowTransferListParams::CreatedAt::OrHash,
|
|
75
|
+
cursor: String,
|
|
76
|
+
external_account_id: String,
|
|
77
|
+
idempotency_key: String,
|
|
78
|
+
limit: Integer,
|
|
79
|
+
status: Increase::FednowTransferListParams::Status::OrHash,
|
|
80
|
+
request_options: Increase::RequestOptions::OrHash
|
|
81
|
+
).returns(Increase::Internal::Page[Increase::FednowTransfer])
|
|
82
|
+
end
|
|
83
|
+
def list(
|
|
84
|
+
# Filter FedNow Transfers to those that originated from the specified Account.
|
|
85
|
+
account_id: nil,
|
|
86
|
+
created_at: nil,
|
|
87
|
+
# Return the page of entries after this one.
|
|
88
|
+
cursor: nil,
|
|
89
|
+
# Filter FedNow Transfers to those made to the specified External Account.
|
|
90
|
+
external_account_id: nil,
|
|
91
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
92
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
93
|
+
# request is only processed once. Learn more about
|
|
94
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
95
|
+
idempotency_key: nil,
|
|
96
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
97
|
+
# objects.
|
|
98
|
+
limit: nil,
|
|
99
|
+
status: nil,
|
|
100
|
+
request_options: {}
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Approve a FedNow Transfer
|
|
105
|
+
sig do
|
|
106
|
+
params(
|
|
107
|
+
fednow_transfer_id: String,
|
|
108
|
+
request_options: Increase::RequestOptions::OrHash
|
|
109
|
+
).returns(Increase::FednowTransfer)
|
|
110
|
+
end
|
|
111
|
+
def approve(
|
|
112
|
+
# The identifier of the FedNow Transfer to approve.
|
|
113
|
+
fednow_transfer_id,
|
|
114
|
+
request_options: {}
|
|
115
|
+
)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Cancel a pending FedNow Transfer
|
|
119
|
+
sig do
|
|
120
|
+
params(
|
|
121
|
+
fednow_transfer_id: String,
|
|
122
|
+
request_options: Increase::RequestOptions::OrHash
|
|
123
|
+
).returns(Increase::FednowTransfer)
|
|
124
|
+
end
|
|
125
|
+
def cancel(
|
|
126
|
+
# The identifier of the pending FedNow Transfer to cancel.
|
|
127
|
+
fednow_transfer_id,
|
|
128
|
+
request_options: {}
|
|
129
|
+
)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# @api private
|
|
133
|
+
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
134
|
+
def self.new(client:)
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class InboundFednowTransfers
|
|
6
|
+
# Retrieve an Inbound FedNow Transfer
|
|
7
|
+
sig do
|
|
8
|
+
params(
|
|
9
|
+
inbound_fednow_transfer_id: String,
|
|
10
|
+
request_options: Increase::RequestOptions::OrHash
|
|
11
|
+
).returns(Increase::InboundFednowTransfer)
|
|
12
|
+
end
|
|
13
|
+
def retrieve(
|
|
14
|
+
# The identifier of the Inbound FedNow Transfer to get details for.
|
|
15
|
+
inbound_fednow_transfer_id,
|
|
16
|
+
request_options: {}
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# List Inbound FedNow Transfers
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
account_id: String,
|
|
24
|
+
account_number_id: String,
|
|
25
|
+
created_at:
|
|
26
|
+
Increase::InboundFednowTransferListParams::CreatedAt::OrHash,
|
|
27
|
+
cursor: String,
|
|
28
|
+
limit: Integer,
|
|
29
|
+
request_options: Increase::RequestOptions::OrHash
|
|
30
|
+
).returns(Increase::Internal::Page[Increase::InboundFednowTransfer])
|
|
31
|
+
end
|
|
32
|
+
def list(
|
|
33
|
+
# Filter Inbound FedNow Transfers to those belonging to the specified Account.
|
|
34
|
+
account_id: nil,
|
|
35
|
+
# Filter Inbound FedNow Transfers to ones belonging to the specified Account
|
|
36
|
+
# Number.
|
|
37
|
+
account_number_id: nil,
|
|
38
|
+
created_at: nil,
|
|
39
|
+
# Return the page of entries after this one.
|
|
40
|
+
cursor: nil,
|
|
41
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
42
|
+
# objects.
|
|
43
|
+
limit: nil,
|
|
44
|
+
request_options: {}
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# @api private
|
|
49
|
+
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
50
|
+
def self.new(client:)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class Simulations
|
|
6
|
+
class InboundFednowTransfers
|
|
7
|
+
# Simulates an [Inbound FedNow Transfer](#inbound-fednow-transfers) to your
|
|
8
|
+
# account.
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
account_number_id: String,
|
|
12
|
+
amount: Integer,
|
|
13
|
+
debtor_account_number: String,
|
|
14
|
+
debtor_name: String,
|
|
15
|
+
debtor_routing_number: String,
|
|
16
|
+
unstructured_remittance_information: String,
|
|
17
|
+
request_options: Increase::RequestOptions::OrHash
|
|
18
|
+
).returns(Increase::InboundFednowTransfer)
|
|
19
|
+
end
|
|
20
|
+
def create(
|
|
21
|
+
# The identifier of the Account Number the inbound FedNow Transfer is for.
|
|
22
|
+
account_number_id:,
|
|
23
|
+
# The transfer amount in USD cents. Must be positive.
|
|
24
|
+
amount:,
|
|
25
|
+
# The account number of the account that sent the transfer.
|
|
26
|
+
debtor_account_number: nil,
|
|
27
|
+
# The name provided by the sender of the transfer.
|
|
28
|
+
debtor_name: nil,
|
|
29
|
+
# The routing number of the account that sent the transfer.
|
|
30
|
+
debtor_routing_number: nil,
|
|
31
|
+
# Additional information included with the transfer.
|
|
32
|
+
unstructured_remittance_information: nil,
|
|
33
|
+
request_options: {}
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @api private
|
|
38
|
+
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
39
|
+
def self.new(client:)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|