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
@@ -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
|
|
@@ -9,6 +9,8 @@ module Increase
|
|
9
9
|
category: Increase::DocumentCreateParams::Category::OrSymbol,
|
10
10
|
account_verification_letter:
|
11
11
|
Increase::DocumentCreateParams::AccountVerificationLetter::OrHash,
|
12
|
+
funding_instructions:
|
13
|
+
Increase::DocumentCreateParams::FundingInstructions::OrHash,
|
12
14
|
request_options: Increase::RequestOptions::OrHash
|
13
15
|
).returns(Increase::Document)
|
14
16
|
end
|
@@ -17,6 +19,8 @@ module Increase
|
|
17
19
|
category:,
|
18
20
|
# An account verification letter.
|
19
21
|
account_verification_letter: nil,
|
22
|
+
# Funding instructions.
|
23
|
+
funding_instructions: nil,
|
20
24
|
request_options: {}
|
21
25
|
)
|
22
26
|
end
|
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?,
|
@@ -90,6 +90,7 @@ module Increase
|
|
90
90
|
recipient_name: String,
|
91
91
|
attachment_file_id: String,
|
92
92
|
note: String,
|
93
|
+
payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer],
|
93
94
|
return_address: Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress,
|
94
95
|
shipping_method: Increase::Models::CheckTransferCreateParams::PhysicalCheck::shipping_method,
|
95
96
|
signature_text: String
|
@@ -110,6 +111,12 @@ module Increase
|
|
110
111
|
|
111
112
|
def note=: (String) -> String
|
112
113
|
|
114
|
+
attr_reader payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer]?
|
115
|
+
|
116
|
+
def payer=: (
|
117
|
+
::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer]
|
118
|
+
) -> ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer]
|
119
|
+
|
113
120
|
attr_reader return_address: Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress?
|
114
121
|
|
115
122
|
def return_address=: (
|
@@ -132,6 +139,7 @@ module Increase
|
|
132
139
|
recipient_name: String,
|
133
140
|
?attachment_file_id: String,
|
134
141
|
?note: String,
|
142
|
+
?payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer],
|
135
143
|
?return_address: Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress,
|
136
144
|
?shipping_method: Increase::Models::CheckTransferCreateParams::PhysicalCheck::shipping_method,
|
137
145
|
?signature_text: String
|
@@ -143,6 +151,7 @@ module Increase
|
|
143
151
|
recipient_name: String,
|
144
152
|
attachment_file_id: String,
|
145
153
|
note: String,
|
154
|
+
payer: ::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payer],
|
146
155
|
return_address: Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress,
|
147
156
|
shipping_method: Increase::Models::CheckTransferCreateParams::PhysicalCheck::shipping_method,
|
148
157
|
signature_text: String
|
@@ -187,6 +196,16 @@ module Increase
|
|
187
196
|
}
|
188
197
|
end
|
189
198
|
|
199
|
+
type payer = { contents: String }
|
200
|
+
|
201
|
+
class Payer < Increase::Internal::Type::BaseModel
|
202
|
+
attr_accessor contents: String
|
203
|
+
|
204
|
+
def initialize: (contents: String) -> void
|
205
|
+
|
206
|
+
def to_hash: -> { contents: String }
|
207
|
+
end
|
208
|
+
|
190
209
|
type return_address =
|
191
210
|
{
|
192
211
|
city: String,
|
@@ -8,6 +8,7 @@ module Increase
|
|
8
8
|
created_at: Time,
|
9
9
|
entity_id: String?,
|
10
10
|
file_id: String,
|
11
|
+
funding_instructions: Increase::Document::FundingInstructions?,
|
11
12
|
idempotency_key: String?,
|
12
13
|
type: Increase::Models::Document::type_
|
13
14
|
}
|
@@ -25,6 +26,8 @@ module Increase
|
|
25
26
|
|
26
27
|
attr_accessor file_id: String
|
27
28
|
|
29
|
+
attr_accessor funding_instructions: Increase::Document::FundingInstructions?
|
30
|
+
|
28
31
|
attr_accessor idempotency_key: String?
|
29
32
|
|
30
33
|
attr_accessor type: Increase::Models::Document::type_
|
@@ -36,6 +39,7 @@ module Increase
|
|
36
39
|
created_at: Time,
|
37
40
|
entity_id: String?,
|
38
41
|
file_id: String,
|
42
|
+
funding_instructions: Increase::Document::FundingInstructions?,
|
39
43
|
idempotency_key: String?,
|
40
44
|
type: Increase::Models::Document::type_
|
41
45
|
) -> void
|
@@ -47,6 +51,7 @@ module Increase
|
|
47
51
|
created_at: Time,
|
48
52
|
entity_id: String?,
|
49
53
|
file_id: String,
|
54
|
+
funding_instructions: Increase::Document::FundingInstructions?,
|
50
55
|
idempotency_key: String?,
|
51
56
|
type: Increase::Models::Document::type_
|
52
57
|
}
|
@@ -67,6 +72,7 @@ module Increase
|
|
67
72
|
| :proof_of_authorization
|
68
73
|
| :company_information
|
69
74
|
| :account_verification_letter
|
75
|
+
| :funding_instructions
|
70
76
|
|
71
77
|
module Category
|
72
78
|
extend Increase::Internal::Type::Enum
|
@@ -86,9 +92,22 @@ module Increase
|
|
86
92
|
# An account verification letter.
|
87
93
|
ACCOUNT_VERIFICATION_LETTER: :account_verification_letter
|
88
94
|
|
95
|
+
# Funding instructions.
|
96
|
+
FUNDING_INSTRUCTIONS: :funding_instructions
|
97
|
+
|
89
98
|
def self?.values: -> ::Array[Increase::Models::Document::category]
|
90
99
|
end
|
91
100
|
|
101
|
+
type funding_instructions = { account_number_id: String }
|
102
|
+
|
103
|
+
class FundingInstructions < Increase::Internal::Type::BaseModel
|
104
|
+
attr_accessor account_number_id: String
|
105
|
+
|
106
|
+
def initialize: (account_number_id: String) -> void
|
107
|
+
|
108
|
+
def to_hash: -> { account_number_id: String }
|
109
|
+
end
|
110
|
+
|
92
111
|
type type_ = :document
|
93
112
|
|
94
113
|
module Type
|
@@ -3,7 +3,8 @@ module Increase
|
|
3
3
|
type document_create_params =
|
4
4
|
{
|
5
5
|
category: Increase::Models::DocumentCreateParams::category,
|
6
|
-
account_verification_letter: Increase::DocumentCreateParams::AccountVerificationLetter
|
6
|
+
account_verification_letter: Increase::DocumentCreateParams::AccountVerificationLetter,
|
7
|
+
funding_instructions: Increase::DocumentCreateParams::FundingInstructions
|
7
8
|
}
|
8
9
|
& Increase::Internal::Type::request_parameters
|
9
10
|
|
@@ -19,19 +20,27 @@ module Increase
|
|
19
20
|
Increase::DocumentCreateParams::AccountVerificationLetter
|
20
21
|
) -> Increase::DocumentCreateParams::AccountVerificationLetter
|
21
22
|
|
23
|
+
attr_reader funding_instructions: Increase::DocumentCreateParams::FundingInstructions?
|
24
|
+
|
25
|
+
def funding_instructions=: (
|
26
|
+
Increase::DocumentCreateParams::FundingInstructions
|
27
|
+
) -> Increase::DocumentCreateParams::FundingInstructions
|
28
|
+
|
22
29
|
def initialize: (
|
23
30
|
category: Increase::Models::DocumentCreateParams::category,
|
24
31
|
?account_verification_letter: Increase::DocumentCreateParams::AccountVerificationLetter,
|
32
|
+
?funding_instructions: Increase::DocumentCreateParams::FundingInstructions,
|
25
33
|
?request_options: Increase::request_opts
|
26
34
|
) -> void
|
27
35
|
|
28
36
|
def to_hash: -> {
|
29
37
|
category: Increase::Models::DocumentCreateParams::category,
|
30
38
|
account_verification_letter: Increase::DocumentCreateParams::AccountVerificationLetter,
|
39
|
+
funding_instructions: Increase::DocumentCreateParams::FundingInstructions,
|
31
40
|
request_options: Increase::RequestOptions
|
32
41
|
}
|
33
42
|
|
34
|
-
type category = :account_verification_letter
|
43
|
+
type category = :account_verification_letter | :funding_instructions
|
35
44
|
|
36
45
|
module Category
|
37
46
|
extend Increase::Internal::Type::Enum
|
@@ -39,6 +48,9 @@ module Increase
|
|
39
48
|
# An account verification letter.
|
40
49
|
ACCOUNT_VERIFICATION_LETTER: :account_verification_letter
|
41
50
|
|
51
|
+
# Funding instructions.
|
52
|
+
FUNDING_INSTRUCTIONS: :funding_instructions
|
53
|
+
|
42
54
|
def self?.values: -> ::Array[Increase::Models::DocumentCreateParams::category]
|
43
55
|
end
|
44
56
|
|
@@ -56,6 +68,16 @@ module Increase
|
|
56
68
|
|
57
69
|
def to_hash: -> { account_number_id: String, balance_date: Date }
|
58
70
|
end
|
71
|
+
|
72
|
+
type funding_instructions = { account_number_id: String }
|
73
|
+
|
74
|
+
class FundingInstructions < Increase::Internal::Type::BaseModel
|
75
|
+
attr_accessor account_number_id: String
|
76
|
+
|
77
|
+
def initialize: (account_number_id: String) -> void
|
78
|
+
|
79
|
+
def to_hash: -> { account_number_id: String }
|
80
|
+
end
|
59
81
|
end
|
60
82
|
end
|
61
83
|
end
|
@@ -87,6 +87,7 @@ module Increase
|
|
87
87
|
| :proof_of_authorization
|
88
88
|
| :company_information
|
89
89
|
| :account_verification_letter
|
90
|
+
| :funding_instructions
|
90
91
|
|
91
92
|
module In
|
92
93
|
extend Increase::Internal::Type::Enum
|
@@ -106,6 +107,9 @@ module Increase
|
|
106
107
|
# An account verification letter.
|
107
108
|
ACCOUNT_VERIFICATION_LETTER: :account_verification_letter
|
108
109
|
|
110
|
+
# Funding instructions.
|
111
|
+
FUNDING_INSTRUCTIONS: :funding_instructions
|
112
|
+
|
109
113
|
def self?.values: -> ::Array[Increase::Models::DocumentListParams::Category::in_]
|
110
114
|
end
|
111
115
|
end
|
@@ -110,6 +110,10 @@ module Increase
|
|
110
110
|
| :"outbound_card_push_transfer.updated"
|
111
111
|
| :"outbound_card_validation.created"
|
112
112
|
| :"outbound_card_validation.updated"
|
113
|
+
| :"card_push_transfer.created"
|
114
|
+
| :"card_push_transfer.updated"
|
115
|
+
| :"card_validation.created"
|
116
|
+
| :"card_validation.updated"
|
113
117
|
| :"pending_transaction.created"
|
114
118
|
| :"pending_transaction.updated"
|
115
119
|
| :"physical_card.created"
|
@@ -127,6 +131,8 @@ module Increase
|
|
127
131
|
| :"real_time_payments_transfer.updated"
|
128
132
|
| :"real_time_payments_request_for_payment.created"
|
129
133
|
| :"real_time_payments_request_for_payment.updated"
|
134
|
+
| :"swift_transfer.created"
|
135
|
+
| :"swift_transfer.updated"
|
130
136
|
| :"transaction.created"
|
131
137
|
| :"wire_drawdown_request.created"
|
132
138
|
| :"wire_drawdown_request.updated"
|
@@ -328,18 +334,30 @@ module Increase
|
|
328
334
|
# Occurs whenever an OAuth Connection is deactivated.
|
329
335
|
OAUTH_CONNECTION_DEACTIVATED: :"oauth_connection.deactivated"
|
330
336
|
|
331
|
-
# Occurs whenever
|
337
|
+
# Occurs whenever a Card Push Transfer is created.
|
332
338
|
OUTBOUND_CARD_PUSH_TRANSFER_CREATED: :"outbound_card_push_transfer.created"
|
333
339
|
|
334
|
-
# Occurs whenever
|
340
|
+
# Occurs whenever a Card Push Transfer is updated.
|
335
341
|
OUTBOUND_CARD_PUSH_TRANSFER_UPDATED: :"outbound_card_push_transfer.updated"
|
336
342
|
|
337
|
-
# Occurs whenever
|
343
|
+
# Occurs whenever a Card Validation is created.
|
338
344
|
OUTBOUND_CARD_VALIDATION_CREATED: :"outbound_card_validation.created"
|
339
345
|
|
340
|
-
# Occurs whenever
|
346
|
+
# Occurs whenever a Card Validation is updated.
|
341
347
|
OUTBOUND_CARD_VALIDATION_UPDATED: :"outbound_card_validation.updated"
|
342
348
|
|
349
|
+
# Occurs whenever a Card Push Transfer is created.
|
350
|
+
CARD_PUSH_TRANSFER_CREATED: :"card_push_transfer.created"
|
351
|
+
|
352
|
+
# Occurs whenever a Card Push Transfer is updated.
|
353
|
+
CARD_PUSH_TRANSFER_UPDATED: :"card_push_transfer.updated"
|
354
|
+
|
355
|
+
# Occurs whenever a Card Validation is created.
|
356
|
+
CARD_VALIDATION_CREATED: :"card_validation.created"
|
357
|
+
|
358
|
+
# Occurs whenever a Card Validation is updated.
|
359
|
+
CARD_VALIDATION_UPDATED: :"card_validation.updated"
|
360
|
+
|
343
361
|
# Occurs whenever a Pending Transaction is created.
|
344
362
|
PENDING_TRANSACTION_CREATED: :"pending_transaction.created"
|
345
363
|
|
@@ -391,6 +409,12 @@ module Increase
|
|
391
409
|
# Occurs whenever a Real-Time Payments Request for Payment is updated.
|
392
410
|
REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED: :"real_time_payments_request_for_payment.updated"
|
393
411
|
|
412
|
+
# Occurs whenever a Swift Transfer is created.
|
413
|
+
SWIFT_TRANSFER_CREATED: :"swift_transfer.created"
|
414
|
+
|
415
|
+
# Occurs whenever a Swift Transfer is updated.
|
416
|
+
SWIFT_TRANSFER_UPDATED: :"swift_transfer.updated"
|
417
|
+
|
394
418
|
# Occurs whenever a Transaction is created.
|
395
419
|
TRANSACTION_CREATED: :"transaction.created"
|
396
420
|
|