increase 1.360.0 → 1.362.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/increase/internal/transport/pooled_net_requester.rb +3 -0
- data/lib/increase/internal/util.rb +22 -17
- data/lib/increase/models/ach_transfer_create_params.rb +73 -42
- data/lib/increase/models/digital_card_profile.rb +63 -1
- data/lib/increase/models/digital_card_profile_clone_params.rb +65 -1
- data/lib/increase/models/digital_card_profile_create_params.rb +62 -1
- data/lib/increase/models/event.rb +5 -2
- data/lib/increase/models/event_list_params.rb +5 -2
- data/lib/increase/models/event_subscription.rb +5 -2
- data/lib/increase/models/event_subscription_create_params.rb +5 -2
- data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
- data/lib/increase/models/simulations/card_dispute_action_params.rb +26 -4
- data/lib/increase/models/simulations/wire_drawdown_request_refuse_params.rb +52 -1
- data/lib/increase/models/unwrap_webhook_event.rb +5 -2
- data/lib/increase/models/wire_drawdown_request.rb +78 -1
- data/lib/increase/resources/ach_transfers.rb +43 -22
- data/lib/increase/resources/digital_card_profiles.rb +9 -2
- data/lib/increase/resources/simulations/wire_drawdown_requests.rb +12 -2
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/internal/util.rbi +3 -1
- data/rbi/increase/models/ach_transfer_create_params.rbi +72 -42
- data/rbi/increase/models/digital_card_profile.rbi +137 -0
- data/rbi/increase/models/digital_card_profile_clone_params.rbi +166 -0
- data/rbi/increase/models/digital_card_profile_create_params.rbi +163 -0
- data/rbi/increase/models/event.rbi +10 -3
- data/rbi/increase/models/event_list_params.rbi +10 -3
- data/rbi/increase/models/event_subscription.rbi +10 -3
- data/rbi/increase/models/event_subscription_create_params.rbi +10 -3
- data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
- data/rbi/increase/models/simulations/card_dispute_action_params.rbi +56 -3
- data/rbi/increase/models/simulations/wire_drawdown_request_refuse_params.rbi +107 -0
- data/rbi/increase/models/unwrap_webhook_event.rbi +10 -3
- data/rbi/increase/models/wire_drawdown_request.rbi +146 -0
- data/rbi/increase/resources/ach_transfers.rbi +42 -22
- data/rbi/increase/resources/digital_card_profiles.rbi +7 -0
- data/rbi/increase/resources/simulations/wire_drawdown_requests.rbi +9 -0
- data/sig/increase/internal/util.rbs +1 -1
- data/sig/increase/models/digital_card_profile.rbs +47 -0
- data/sig/increase/models/digital_card_profile_clone_params.rbs +59 -0
- data/sig/increase/models/digital_card_profile_create_params.rbs +59 -0
- data/sig/increase/models/event.rbs +7 -3
- data/sig/increase/models/event_list_params.rbs +7 -3
- data/sig/increase/models/event_subscription.rbs +7 -3
- data/sig/increase/models/event_subscription_create_params.rbs +7 -3
- data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
- data/sig/increase/models/simulations/card_dispute_action_params.rbs +24 -3
- data/sig/increase/models/simulations/wire_drawdown_request_refuse_params.rbs +51 -1
- data/sig/increase/models/unwrap_webhook_event.rbs +7 -3
- data/sig/increase/models/wire_drawdown_request.rbs +64 -0
- data/sig/increase/resources/digital_card_profiles.rbs +2 -0
- data/sig/increase/resources/simulations/wire_drawdown_requests.rbs +2 -0
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55ac30f388550b8f685eb5bf5dce3a9ed1c506387fc9cb58b94746f41f103f5f
|
|
4
|
+
data.tar.gz: 0275dc1471bbee9c227de6bbe30800bcb2dbab8c580b521c516d7c4e7c30539e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9946430baa65f8a3375dd78f87256c1b99c7ee3ad81127381d59bad50449eeb92db6c1d76e8e1298eaf6b9a45c77e024e18dae38b961777c91e8689ad468306
|
|
7
|
+
data.tar.gz: 4ca5d93ed5ed2900ae9997e212447f0e836842ce8d4cdcde2033e4f325e65745c5aa89e90ad96e71c2cab139792409ff431452fa034e755f24f65bc4eaa15d5d
|
data/README.md
CHANGED
|
@@ -64,6 +64,9 @@ module Increase
|
|
|
64
64
|
# @return [Array(Net::HTTPGenericRequest, Proc)]
|
|
65
65
|
def build_request(request, &blk)
|
|
66
66
|
method, url, headers, body = request.fetch_values(:method, :url, :headers, :body)
|
|
67
|
+
# Streamed bodies (e.g. multipart) arrive as a factory so each attempt gets a fresh stream.
|
|
68
|
+
body = body.call if body.is_a?(Proc)
|
|
69
|
+
|
|
67
70
|
req = Net::HTTPGenericRequest.new(
|
|
68
71
|
method.to_s.upcase,
|
|
69
72
|
!body.nil?,
|
|
@@ -608,34 +608,39 @@ module Increase
|
|
|
608
608
|
#
|
|
609
609
|
# @param body [Object]
|
|
610
610
|
#
|
|
611
|
-
# @return [Array(String,
|
|
611
|
+
# @return [Array(String, Proc)]
|
|
612
612
|
private def encode_multipart_streaming(body)
|
|
613
613
|
# rubocop:disable Style/CaseEquality
|
|
614
614
|
# RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
|
|
615
615
|
boundary = SecureRandom.urlsafe_base64(46)
|
|
616
616
|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
617
|
+
# Retries and redirects resend the request, and a streamed body can only be read
|
|
618
|
+
# once, so hand back a factory that builds a fresh stream for each attempt.
|
|
619
|
+
stream = lambda do
|
|
620
|
+
closing = []
|
|
621
|
+
strio = writable_enum do |y|
|
|
622
|
+
case body
|
|
623
|
+
in Hash
|
|
624
|
+
body.each do |key, val|
|
|
625
|
+
case val
|
|
626
|
+
in Array if val.all? { primitive?(_1) || Increase::Internal::Type::FileInput === _1 }
|
|
627
|
+
val.each do |v|
|
|
628
|
+
write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
|
|
629
|
+
end
|
|
630
|
+
else
|
|
631
|
+
write_multipart_chunk(y, boundary: boundary, key: key, val: val, closing: closing)
|
|
626
632
|
end
|
|
627
|
-
else
|
|
628
|
-
write_multipart_chunk(y, boundary: boundary, key: key, val: val, closing: closing)
|
|
629
633
|
end
|
|
634
|
+
else
|
|
635
|
+
write_multipart_chunk(y, boundary: boundary, key: nil, val: body, closing: closing)
|
|
630
636
|
end
|
|
631
|
-
|
|
632
|
-
write_multipart_chunk(y, boundary: boundary, key: nil, val: body, closing: closing)
|
|
637
|
+
y << "--#{boundary}--\r\n"
|
|
633
638
|
end
|
|
634
|
-
|
|
639
|
+
|
|
640
|
+
fused_enum(strio) { closing.each(&:call) }
|
|
635
641
|
end
|
|
636
642
|
|
|
637
|
-
|
|
638
|
-
[boundary, fused_io]
|
|
643
|
+
[boundary, stream]
|
|
639
644
|
# rubocop:enable Style/CaseEquality
|
|
640
645
|
end
|
|
641
646
|
|
|
@@ -8,15 +8,20 @@ module Increase
|
|
|
8
8
|
include Increase::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute account_id
|
|
11
|
-
# The Increase identifier for the account that will
|
|
11
|
+
# The Increase identifier for the account that will originate the transfer. For
|
|
12
|
+
# credit transfers (transfers with a positive `amount`), this is the account that
|
|
13
|
+
# funds will be sent from. For debit transfers (transfers with a negative
|
|
14
|
+
# `amount`), this is the account that funds will be pulled into.
|
|
12
15
|
#
|
|
13
16
|
# @return [String]
|
|
14
17
|
required :account_id, String
|
|
15
18
|
|
|
16
19
|
# @!attribute amount
|
|
17
20
|
# The transfer amount in USD cents. A positive amount originates a credit transfer
|
|
18
|
-
# pushing funds to the
|
|
19
|
-
# transfer pulling funds from the
|
|
21
|
+
# pushing funds from Increase to the account at the other bank. A negative amount
|
|
22
|
+
# originates a debit transfer pulling funds from the account at the other bank
|
|
23
|
+
# into Increase. Debit transfers
|
|
24
|
+
# [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
|
|
20
25
|
#
|
|
21
26
|
# @return [Integer]
|
|
22
27
|
required :amount, Integer
|
|
@@ -33,9 +38,10 @@ module Increase
|
|
|
33
38
|
required :statement_descriptor, String
|
|
34
39
|
|
|
35
40
|
# @!attribute account_number
|
|
36
|
-
# The receiver's account number. For credit transfers (
|
|
37
|
-
# the account that funds will be sent to. For debit transfers
|
|
38
|
-
# this is the account that funds will be
|
|
41
|
+
# The receiver's account number. For credit transfers (transfers with a positive
|
|
42
|
+
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
43
|
+
# (transfers with a negative `amount`), this is the account that funds will be
|
|
44
|
+
# pulled from.
|
|
39
45
|
#
|
|
40
46
|
# @return [String, nil]
|
|
41
47
|
optional :account_number, String
|
|
@@ -58,27 +64,32 @@ module Increase
|
|
|
58
64
|
optional :company_descriptive_date, String
|
|
59
65
|
|
|
60
66
|
# @!attribute company_discretionary_data
|
|
61
|
-
# Custom data sent in the company batch header
|
|
62
|
-
# does not affect funds movement,
|
|
63
|
-
#
|
|
67
|
+
# Custom data sent in the company batch header, meant as metadata for the
|
|
68
|
+
# originator. This value is informational and does not affect funds movement,
|
|
69
|
+
# settlement timing, or returns. Most ACH transfers do not need this; we recommend
|
|
70
|
+
# storing metadata in your own application instead.
|
|
64
71
|
#
|
|
65
72
|
# @return [String, nil]
|
|
66
73
|
optional :company_discretionary_data, String
|
|
67
74
|
|
|
68
75
|
# @!attribute company_entry_description
|
|
69
|
-
# A short description sent in the company batch header
|
|
70
|
-
#
|
|
71
|
-
#
|
|
72
|
-
#
|
|
73
|
-
#
|
|
76
|
+
# A short description sent in the company batch header, meant to provide the
|
|
77
|
+
# receiver with a reason for the transfer. Many receivers do not surface this data
|
|
78
|
+
# on the receiver's bank statement. Only set this if your recipient has asked for
|
|
79
|
+
# a specific value or if Nacha mandates one for your Standard Entry Class (SEC)
|
|
80
|
+
# code and use case. For example, some use cases require constants like
|
|
81
|
+
# `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
|
|
74
82
|
#
|
|
75
83
|
# @return [String, nil]
|
|
76
84
|
optional :company_entry_description, String
|
|
77
85
|
|
|
78
86
|
# @!attribute company_name
|
|
79
|
-
# The name by which the recipient knows
|
|
80
|
-
#
|
|
81
|
-
#
|
|
87
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
88
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
89
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
90
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
91
|
+
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
92
|
+
# back to the `statement_descriptor`.
|
|
82
93
|
#
|
|
83
94
|
# @return [String, nil]
|
|
84
95
|
optional :company_name, String
|
|
@@ -106,15 +117,19 @@ module Increase
|
|
|
106
117
|
optional :funding, enum: -> { Increase::ACHTransferCreateParams::Funding }
|
|
107
118
|
|
|
108
119
|
# @!attribute individual_id
|
|
109
|
-
# Your internal identifier for the
|
|
110
|
-
#
|
|
120
|
+
# Your internal identifier for the recipient. This value is informational and
|
|
121
|
+
# generally not verified by the recipient's bank. Most callers can leave this
|
|
122
|
+
# unset. For the specific case of person-to-person credits with the WEB standard
|
|
123
|
+
# entry class code, this must include the name of the payer.
|
|
111
124
|
#
|
|
112
125
|
# @return [String, nil]
|
|
113
126
|
optional :individual_id, String
|
|
114
127
|
|
|
115
128
|
# @!attribute individual_name
|
|
116
|
-
# The name of the transfer recipient. This value is informational and
|
|
117
|
-
# by the recipient's bank.
|
|
129
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
130
|
+
# not verified by the recipient's bank. This value is usually displayed to the
|
|
131
|
+
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
132
|
+
# if you do not, we fall back to the `statement_descriptor`.
|
|
118
133
|
#
|
|
119
134
|
# @return [String, nil]
|
|
120
135
|
optional :individual_name, String
|
|
@@ -152,12 +167,18 @@ module Increase
|
|
|
152
167
|
enum: -> { Increase::ACHTransferCreateParams::StandardEntryClassCode }
|
|
153
168
|
|
|
154
169
|
# @!method initialize(account_id:, amount:, statement_descriptor:, account_number: nil, addenda: nil, company_descriptive_date: nil, company_discretionary_data: nil, company_entry_description: nil, company_name: nil, destination_account_holder: nil, external_account_id: nil, funding: nil, individual_id: nil, individual_name: nil, preferred_effective_date: nil, require_approval: nil, routing_number: nil, standard_entry_class_code: nil, request_options: {})
|
|
155
|
-
# @param account_id [String]
|
|
170
|
+
# @param account_id [String]
|
|
171
|
+
# The Increase identifier for the account that will originate the transfer. For
|
|
172
|
+
# credit transfers (transfers with a positive `amount`), this is the account that
|
|
173
|
+
# funds will be sent from. For debit transfers (transfers with a negative
|
|
174
|
+
# `amount`), this is the account that funds will be pulled into.
|
|
156
175
|
#
|
|
157
176
|
# @param amount [Integer]
|
|
158
177
|
# The transfer amount in USD cents. A positive amount originates a credit transfer
|
|
159
|
-
# pushing funds to the
|
|
160
|
-
# transfer pulling funds from the
|
|
178
|
+
# pushing funds from Increase to the account at the other bank. A negative amount
|
|
179
|
+
# originates a debit transfer pulling funds from the account at the other bank
|
|
180
|
+
# into Increase. Debit transfers
|
|
181
|
+
# [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
|
|
161
182
|
#
|
|
162
183
|
# @param statement_descriptor [String]
|
|
163
184
|
# A description you choose to give the transfer. This will be saved with the
|
|
@@ -168,9 +189,10 @@ module Increase
|
|
|
168
189
|
# `individual_name` and `company_name` instead of relying on this fallback.
|
|
169
190
|
#
|
|
170
191
|
# @param account_number [String]
|
|
171
|
-
# The receiver's account number. For credit transfers (
|
|
172
|
-
# the account that funds will be sent to. For debit transfers
|
|
173
|
-
# this is the account that funds will be
|
|
192
|
+
# The receiver's account number. For credit transfers (transfers with a positive
|
|
193
|
+
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
194
|
+
# (transfers with a negative `amount`), this is the account that funds will be
|
|
195
|
+
# pulled from.
|
|
174
196
|
#
|
|
175
197
|
# @param addenda [Increase::Models::ACHTransferCreateParams::Addenda]
|
|
176
198
|
# Additional information passed through to the receiving bank with the transfer.
|
|
@@ -184,21 +206,26 @@ module Increase
|
|
|
184
206
|
# settlement timing, or returns. Only set this if your recipient has asked for it.
|
|
185
207
|
#
|
|
186
208
|
# @param company_discretionary_data [String]
|
|
187
|
-
# Custom data sent in the company batch header
|
|
188
|
-
# does not affect funds movement,
|
|
189
|
-
#
|
|
209
|
+
# Custom data sent in the company batch header, meant as metadata for the
|
|
210
|
+
# originator. This value is informational and does not affect funds movement,
|
|
211
|
+
# settlement timing, or returns. Most ACH transfers do not need this; we recommend
|
|
212
|
+
# storing metadata in your own application instead.
|
|
190
213
|
#
|
|
191
214
|
# @param company_entry_description [String]
|
|
192
|
-
# A short description sent in the company batch header
|
|
193
|
-
#
|
|
194
|
-
#
|
|
195
|
-
#
|
|
196
|
-
#
|
|
215
|
+
# A short description sent in the company batch header, meant to provide the
|
|
216
|
+
# receiver with a reason for the transfer. Many receivers do not surface this data
|
|
217
|
+
# on the receiver's bank statement. Only set this if your recipient has asked for
|
|
218
|
+
# a specific value or if Nacha mandates one for your Standard Entry Class (SEC)
|
|
219
|
+
# code and use case. For example, some use cases require constants like
|
|
220
|
+
# `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
|
|
197
221
|
#
|
|
198
222
|
# @param company_name [String]
|
|
199
|
-
# The name by which the recipient knows
|
|
200
|
-
#
|
|
201
|
-
#
|
|
223
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
224
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
225
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
226
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
227
|
+
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
228
|
+
# back to the `statement_descriptor`.
|
|
202
229
|
#
|
|
203
230
|
# @param destination_account_holder [Symbol, Increase::Models::ACHTransferCreateParams::DestinationAccountHolder]
|
|
204
231
|
# The type of entity that owns the receiver's account.
|
|
@@ -213,12 +240,16 @@ module Increase
|
|
|
213
240
|
# Defaults to `checking`.
|
|
214
241
|
#
|
|
215
242
|
# @param individual_id [String]
|
|
216
|
-
# Your internal identifier for the
|
|
217
|
-
#
|
|
243
|
+
# Your internal identifier for the recipient. This value is informational and
|
|
244
|
+
# generally not verified by the recipient's bank. Most callers can leave this
|
|
245
|
+
# unset. For the specific case of person-to-person credits with the WEB standard
|
|
246
|
+
# entry class code, this must include the name of the payer.
|
|
218
247
|
#
|
|
219
248
|
# @param individual_name [String]
|
|
220
|
-
# The name of the transfer recipient. This value is informational and
|
|
221
|
-
# by the recipient's bank.
|
|
249
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
250
|
+
# not verified by the recipient's bank. This value is usually displayed to the
|
|
251
|
+
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
252
|
+
# if you do not, we fall back to the `statement_descriptor`.
|
|
222
253
|
#
|
|
223
254
|
# @param preferred_effective_date [Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate]
|
|
224
255
|
# Configuration for how the effective date of the transfer will be set. This
|
|
@@ -16,6 +16,12 @@ module Increase
|
|
|
16
16
|
# @return [String]
|
|
17
17
|
required :app_icon_file_id, String
|
|
18
18
|
|
|
19
|
+
# @!attribute apple_pay
|
|
20
|
+
# Apple Pay specific settings for the Card Profile.
|
|
21
|
+
#
|
|
22
|
+
# @return [Increase::Models::DigitalCardProfile::ApplePay, nil]
|
|
23
|
+
required :apple_pay, -> { Increase::DigitalCardProfile::ApplePay }, nil?: true
|
|
24
|
+
|
|
19
25
|
# @!attribute background_image_file_id
|
|
20
26
|
# The identifier of the File containing the card's front image.
|
|
21
27
|
#
|
|
@@ -93,7 +99,7 @@ module Increase
|
|
|
93
99
|
# @return [Symbol, Increase::Models::DigitalCardProfile::Type]
|
|
94
100
|
required :type, enum: -> { Increase::DigitalCardProfile::Type }
|
|
95
101
|
|
|
96
|
-
# @!method initialize(id:, app_icon_file_id:, background_image_file_id:, card_description:, contact_email:, contact_name:, contact_phone:, contact_website:, created_at:, description:, idempotency_key:, status:, text_color:, type:)
|
|
102
|
+
# @!method initialize(id:, app_icon_file_id:, apple_pay:, background_image_file_id:, card_description:, contact_email:, contact_name:, contact_phone:, contact_website:, created_at:, description:, idempotency_key:, status:, text_color:, type:)
|
|
97
103
|
# This contains artwork and metadata relating to a Card's appearance in digital
|
|
98
104
|
# wallet apps like Apple Pay and Google Pay. For more information, see our guide
|
|
99
105
|
# on [digital card artwork](https://increase.com/documentation/card-art).
|
|
@@ -102,6 +108,9 @@ module Increase
|
|
|
102
108
|
#
|
|
103
109
|
# @param app_icon_file_id [String] The identifier of the File containing the card's icon image.
|
|
104
110
|
#
|
|
111
|
+
# @param apple_pay [Increase::Models::DigitalCardProfile::ApplePay, nil]
|
|
112
|
+
# Apple Pay specific settings for the Card Profile.
|
|
113
|
+
#
|
|
105
114
|
# @param background_image_file_id [String] The identifier of the File containing the card's front image.
|
|
106
115
|
#
|
|
107
116
|
# @param card_description [String] A user-facing description for the card itself.
|
|
@@ -138,6 +147,59 @@ module Increase
|
|
|
138
147
|
# A constant representing the object's type. For this resource it will always be
|
|
139
148
|
# `digital_card_profile`.
|
|
140
149
|
|
|
150
|
+
# @see Increase::Models::DigitalCardProfile#apple_pay
|
|
151
|
+
class ApplePay < Increase::Internal::Type::BaseModel
|
|
152
|
+
# @!attribute associated_application_identifiers
|
|
153
|
+
# The applications associated with cards using this Card Profile.
|
|
154
|
+
#
|
|
155
|
+
# @return [Array<Increase::Models::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier>]
|
|
156
|
+
required :associated_application_identifiers,
|
|
157
|
+
-> { Increase::Internal::Type::ArrayOf[Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier] }
|
|
158
|
+
|
|
159
|
+
# @!attribute associated_store_identifiers
|
|
160
|
+
# The App Store listings of the applications associated with cards using this Card
|
|
161
|
+
# Profile.
|
|
162
|
+
#
|
|
163
|
+
# @return [Array<Increase::Models::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier>]
|
|
164
|
+
required :associated_store_identifiers,
|
|
165
|
+
-> { Increase::Internal::Type::ArrayOf[Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier] }
|
|
166
|
+
|
|
167
|
+
# @!method initialize(associated_application_identifiers:, associated_store_identifiers:)
|
|
168
|
+
# Apple Pay specific settings for the Card Profile.
|
|
169
|
+
#
|
|
170
|
+
# @param associated_application_identifiers [Array<Increase::Models::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier>]
|
|
171
|
+
# The applications associated with cards using this Card Profile.
|
|
172
|
+
#
|
|
173
|
+
# @param associated_store_identifiers [Array<Increase::Models::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier>]
|
|
174
|
+
# The App Store listings of the applications associated with cards using this Card
|
|
175
|
+
# Profile.
|
|
176
|
+
|
|
177
|
+
class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
|
|
178
|
+
# @!attribute identifier
|
|
179
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
180
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
181
|
+
#
|
|
182
|
+
# @return [String]
|
|
183
|
+
required :identifier, String
|
|
184
|
+
|
|
185
|
+
# @!method initialize(identifier:)
|
|
186
|
+
# @param identifier [String]
|
|
187
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
188
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
|
|
192
|
+
# @!attribute identifier
|
|
193
|
+
# The numeric App Store identifier.
|
|
194
|
+
#
|
|
195
|
+
# @return [String]
|
|
196
|
+
required :identifier, String
|
|
197
|
+
|
|
198
|
+
# @!method initialize(identifier:)
|
|
199
|
+
# @param identifier [String] The numeric App Store identifier.
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
141
203
|
# The status of the Card Profile.
|
|
142
204
|
#
|
|
143
205
|
# @see Increase::Models::DigitalCardProfile#status
|
|
@@ -19,6 +19,13 @@ module Increase
|
|
|
19
19
|
# @return [String, nil]
|
|
20
20
|
optional :app_icon_file_id, String
|
|
21
21
|
|
|
22
|
+
# @!attribute apple_pay
|
|
23
|
+
# Apple Pay specific settings for the Card Profile. Each list you leave out is
|
|
24
|
+
# copied from the original Card Profile.
|
|
25
|
+
#
|
|
26
|
+
# @return [Increase::Models::DigitalCardProfileCloneParams::ApplePay, nil]
|
|
27
|
+
optional :apple_pay, -> { Increase::DigitalCardProfileCloneParams::ApplePay }
|
|
28
|
+
|
|
22
29
|
# @!attribute background_image_file_id
|
|
23
30
|
# The identifier of the File containing the card's front image.
|
|
24
31
|
#
|
|
@@ -68,11 +75,15 @@ module Increase
|
|
|
68
75
|
# @return [Increase::Models::DigitalCardProfileCloneParams::TextColor, nil]
|
|
69
76
|
optional :text_color, -> { Increase::DigitalCardProfileCloneParams::TextColor }
|
|
70
77
|
|
|
71
|
-
# @!method initialize(digital_card_profile_id:, app_icon_file_id: nil, background_image_file_id: nil, card_description: nil, contact_email: nil, contact_name: nil, contact_phone: nil, contact_website: nil, description: nil, text_color: nil, request_options: {})
|
|
78
|
+
# @!method initialize(digital_card_profile_id:, app_icon_file_id: nil, apple_pay: nil, background_image_file_id: nil, card_description: nil, contact_email: nil, contact_name: nil, contact_phone: nil, contact_website: nil, description: nil, text_color: nil, request_options: {})
|
|
72
79
|
# @param digital_card_profile_id [String] The identifier of the Digital Card Profile to clone.
|
|
73
80
|
#
|
|
74
81
|
# @param app_icon_file_id [String] The identifier of the File containing the card's icon image.
|
|
75
82
|
#
|
|
83
|
+
# @param apple_pay [Increase::Models::DigitalCardProfileCloneParams::ApplePay]
|
|
84
|
+
# Apple Pay specific settings for the Card Profile. Each list you leave out is
|
|
85
|
+
# copied from the original Card Profile.
|
|
86
|
+
#
|
|
76
87
|
# @param background_image_file_id [String] The identifier of the File containing the card's front image.
|
|
77
88
|
#
|
|
78
89
|
# @param card_description [String] A user-facing description for the card itself.
|
|
@@ -94,6 +105,59 @@ module Increase
|
|
|
94
105
|
#
|
|
95
106
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
96
107
|
|
|
108
|
+
class ApplePay < Increase::Internal::Type::BaseModel
|
|
109
|
+
# @!attribute associated_application_identifiers
|
|
110
|
+
# The applications to associate with cards using this Card Profile.
|
|
111
|
+
#
|
|
112
|
+
# @return [Array<Increase::Models::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier>, nil]
|
|
113
|
+
optional :associated_application_identifiers,
|
|
114
|
+
-> { Increase::Internal::Type::ArrayOf[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier] }
|
|
115
|
+
|
|
116
|
+
# @!attribute associated_store_identifiers
|
|
117
|
+
# The App Store listings of the applications to associate with cards using this
|
|
118
|
+
# Card Profile.
|
|
119
|
+
#
|
|
120
|
+
# @return [Array<Increase::Models::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier>, nil]
|
|
121
|
+
optional :associated_store_identifiers,
|
|
122
|
+
-> { Increase::Internal::Type::ArrayOf[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier] }
|
|
123
|
+
|
|
124
|
+
# @!method initialize(associated_application_identifiers: nil, associated_store_identifiers: nil)
|
|
125
|
+
# Apple Pay specific settings for the Card Profile. Each list you leave out is
|
|
126
|
+
# copied from the original Card Profile.
|
|
127
|
+
#
|
|
128
|
+
# @param associated_application_identifiers [Array<Increase::Models::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier>]
|
|
129
|
+
# The applications to associate with cards using this Card Profile.
|
|
130
|
+
#
|
|
131
|
+
# @param associated_store_identifiers [Array<Increase::Models::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier>]
|
|
132
|
+
# The App Store listings of the applications to associate with cards using this
|
|
133
|
+
# Card Profile.
|
|
134
|
+
|
|
135
|
+
class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
|
|
136
|
+
# @!attribute identifier
|
|
137
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
138
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
139
|
+
#
|
|
140
|
+
# @return [String]
|
|
141
|
+
required :identifier, String
|
|
142
|
+
|
|
143
|
+
# @!method initialize(identifier:)
|
|
144
|
+
# @param identifier [String]
|
|
145
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
146
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
|
|
150
|
+
# @!attribute identifier
|
|
151
|
+
# The numeric App Store identifier.
|
|
152
|
+
#
|
|
153
|
+
# @return [String]
|
|
154
|
+
required :identifier, String
|
|
155
|
+
|
|
156
|
+
# @!method initialize(identifier:)
|
|
157
|
+
# @param identifier [String] The numeric App Store identifier.
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
97
161
|
class TextColor < Increase::Internal::Type::BaseModel
|
|
98
162
|
# @!attribute blue
|
|
99
163
|
# The value of the blue channel in the RGB color.
|
|
@@ -31,6 +31,12 @@ module Increase
|
|
|
31
31
|
# @return [String]
|
|
32
32
|
required :description, String
|
|
33
33
|
|
|
34
|
+
# @!attribute apple_pay
|
|
35
|
+
# Apple Pay specific settings for the Card Profile.
|
|
36
|
+
#
|
|
37
|
+
# @return [Increase::Models::DigitalCardProfileCreateParams::ApplePay, nil]
|
|
38
|
+
optional :apple_pay, -> { Increase::DigitalCardProfileCreateParams::ApplePay }
|
|
39
|
+
|
|
34
40
|
# @!attribute contact_email
|
|
35
41
|
# An email address the user can contact to receive support for their card.
|
|
36
42
|
#
|
|
@@ -62,7 +68,7 @@ module Increase
|
|
|
62
68
|
# @return [Increase::Models::DigitalCardProfileCreateParams::TextColor, nil]
|
|
63
69
|
optional :text_color, -> { Increase::DigitalCardProfileCreateParams::TextColor }
|
|
64
70
|
|
|
65
|
-
# @!method initialize(app_icon_file_id:, background_image_file_id:, card_description:, description:, contact_email: nil, contact_name: nil, contact_phone: nil, contact_website: nil, text_color: nil, request_options: {})
|
|
71
|
+
# @!method initialize(app_icon_file_id:, background_image_file_id:, card_description:, description:, apple_pay: nil, contact_email: nil, contact_name: nil, contact_phone: nil, contact_website: nil, text_color: nil, request_options: {})
|
|
66
72
|
# @param app_icon_file_id [String] The identifier of the File containing the card's icon image.
|
|
67
73
|
#
|
|
68
74
|
# @param background_image_file_id [String] The identifier of the File containing the card's front image.
|
|
@@ -71,6 +77,9 @@ module Increase
|
|
|
71
77
|
#
|
|
72
78
|
# @param description [String] A description you can use to identify the Card Profile.
|
|
73
79
|
#
|
|
80
|
+
# @param apple_pay [Increase::Models::DigitalCardProfileCreateParams::ApplePay]
|
|
81
|
+
# Apple Pay specific settings for the Card Profile.
|
|
82
|
+
#
|
|
74
83
|
# @param contact_email [String] An email address the user can contact to receive support for their card.
|
|
75
84
|
#
|
|
76
85
|
# @param contact_name [String]
|
|
@@ -86,6 +95,58 @@ module Increase
|
|
|
86
95
|
#
|
|
87
96
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
88
97
|
|
|
98
|
+
class ApplePay < Increase::Internal::Type::BaseModel
|
|
99
|
+
# @!attribute associated_application_identifiers
|
|
100
|
+
# The applications to associate with cards using this Card Profile.
|
|
101
|
+
#
|
|
102
|
+
# @return [Array<Increase::Models::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier>, nil]
|
|
103
|
+
optional :associated_application_identifiers,
|
|
104
|
+
-> { Increase::Internal::Type::ArrayOf[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier] }
|
|
105
|
+
|
|
106
|
+
# @!attribute associated_store_identifiers
|
|
107
|
+
# The App Store listings of the applications to associate with cards using this
|
|
108
|
+
# Card Profile.
|
|
109
|
+
#
|
|
110
|
+
# @return [Array<Increase::Models::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier>, nil]
|
|
111
|
+
optional :associated_store_identifiers,
|
|
112
|
+
-> { Increase::Internal::Type::ArrayOf[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier] }
|
|
113
|
+
|
|
114
|
+
# @!method initialize(associated_application_identifiers: nil, associated_store_identifiers: nil)
|
|
115
|
+
# Apple Pay specific settings for the Card Profile.
|
|
116
|
+
#
|
|
117
|
+
# @param associated_application_identifiers [Array<Increase::Models::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier>]
|
|
118
|
+
# The applications to associate with cards using this Card Profile.
|
|
119
|
+
#
|
|
120
|
+
# @param associated_store_identifiers [Array<Increase::Models::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier>]
|
|
121
|
+
# The App Store listings of the applications to associate with cards using this
|
|
122
|
+
# Card Profile.
|
|
123
|
+
|
|
124
|
+
class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
|
|
125
|
+
# @!attribute identifier
|
|
126
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
127
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
128
|
+
#
|
|
129
|
+
# @return [String]
|
|
130
|
+
required :identifier, String
|
|
131
|
+
|
|
132
|
+
# @!method initialize(identifier:)
|
|
133
|
+
# @param identifier [String]
|
|
134
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
135
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
|
|
139
|
+
# @!attribute identifier
|
|
140
|
+
# The numeric App Store identifier.
|
|
141
|
+
#
|
|
142
|
+
# @return [String]
|
|
143
|
+
required :identifier, String
|
|
144
|
+
|
|
145
|
+
# @!method initialize(identifier:)
|
|
146
|
+
# @param identifier [String] The numeric App Store identifier.
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
|
|
89
150
|
class TextColor < Increase::Internal::Type::BaseModel
|
|
90
151
|
# @!attribute blue
|
|
91
152
|
# The value of the blue channel in the RGB color.
|
|
@@ -316,8 +316,11 @@ module Increase
|
|
|
316
316
|
# Occurs whenever a Loan Offer is updated.
|
|
317
317
|
LOAN_OFFER_UPDATED = :"loan_offer.updated"
|
|
318
318
|
|
|
319
|
-
# Occurs whenever a Loan Purchase is created.
|
|
320
|
-
|
|
319
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
320
|
+
LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
|
|
321
|
+
|
|
322
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
323
|
+
LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
|
|
321
324
|
|
|
322
325
|
# Occurs whenever a Lockbox is created.
|
|
323
326
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
@@ -328,8 +328,11 @@ module Increase
|
|
|
328
328
|
# Occurs whenever a Loan Offer is updated.
|
|
329
329
|
LOAN_OFFER_UPDATED = :"loan_offer.updated"
|
|
330
330
|
|
|
331
|
-
# Occurs whenever a Loan Purchase is created.
|
|
332
|
-
|
|
331
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
332
|
+
LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
|
|
333
|
+
|
|
334
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
335
|
+
LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
|
|
333
336
|
|
|
334
337
|
# Occurs whenever a Lockbox is created.
|
|
335
338
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
@@ -357,8 +357,11 @@ module Increase
|
|
|
357
357
|
# Occurs whenever a Loan Offer is updated.
|
|
358
358
|
LOAN_OFFER_UPDATED = :"loan_offer.updated"
|
|
359
359
|
|
|
360
|
-
# Occurs whenever a Loan Purchase is created.
|
|
361
|
-
|
|
360
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
361
|
+
LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
|
|
362
|
+
|
|
363
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
364
|
+
LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
|
|
362
365
|
|
|
363
366
|
# Occurs whenever a Lockbox is created.
|
|
364
367
|
LOCKBOX_CREATED = :"lockbox.created"
|
|
@@ -326,8 +326,11 @@ module Increase
|
|
|
326
326
|
# Occurs whenever a Loan Offer is updated.
|
|
327
327
|
LOAN_OFFER_UPDATED = :"loan_offer.updated"
|
|
328
328
|
|
|
329
|
-
# Occurs whenever a Loan Purchase is created.
|
|
330
|
-
|
|
329
|
+
# Occurs whenever a Loan Purchase Offer is created.
|
|
330
|
+
LOAN_PURCHASE_OFFER_CREATED = :"loan_purchase_offer.created"
|
|
331
|
+
|
|
332
|
+
# Occurs whenever a Loan Purchase Offer is updated.
|
|
333
|
+
LOAN_PURCHASE_OFFER_UPDATED = :"loan_purchase_offer.updated"
|
|
331
334
|
|
|
332
335
|
# Occurs whenever a Lockbox is created.
|
|
333
336
|
LOCKBOX_CREATED = :"lockbox.created"
|