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
|
@@ -11,13 +11,18 @@ module Increase
|
|
|
11
11
|
T.any(Increase::ACHTransferCreateParams, Increase::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# The Increase identifier for the account that will
|
|
14
|
+
# The Increase identifier for the account that will originate the transfer. For
|
|
15
|
+
# credit transfers (transfers with a positive `amount`), this is the account that
|
|
16
|
+
# funds will be sent from. For debit transfers (transfers with a negative
|
|
17
|
+
# `amount`), this is the account that funds will be pulled into.
|
|
15
18
|
sig { returns(String) }
|
|
16
19
|
attr_accessor :account_id
|
|
17
20
|
|
|
18
21
|
# The transfer amount in USD cents. A positive amount originates a credit transfer
|
|
19
|
-
# pushing funds to the
|
|
20
|
-
# transfer pulling funds from the
|
|
22
|
+
# pushing funds from Increase to the account at the other bank. A negative amount
|
|
23
|
+
# originates a debit transfer pulling funds from the account at the other bank
|
|
24
|
+
# into Increase. Debit transfers
|
|
25
|
+
# [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
|
|
21
26
|
sig { returns(Integer) }
|
|
22
27
|
attr_accessor :amount
|
|
23
28
|
|
|
@@ -30,9 +35,10 @@ module Increase
|
|
|
30
35
|
sig { returns(String) }
|
|
31
36
|
attr_accessor :statement_descriptor
|
|
32
37
|
|
|
33
|
-
# The receiver's account number. For credit transfers (
|
|
34
|
-
# the account that funds will be sent to. For debit transfers
|
|
35
|
-
# this is the account that funds will be
|
|
38
|
+
# The receiver's account number. For credit transfers (transfers with a positive
|
|
39
|
+
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
40
|
+
# (transfers with a negative `amount`), this is the account that funds will be
|
|
41
|
+
# pulled from.
|
|
36
42
|
sig { returns(T.nilable(String)) }
|
|
37
43
|
attr_reader :account_number
|
|
38
44
|
|
|
@@ -60,29 +66,34 @@ module Increase
|
|
|
60
66
|
sig { params(company_descriptive_date: String).void }
|
|
61
67
|
attr_writer :company_descriptive_date
|
|
62
68
|
|
|
63
|
-
# Custom data sent in the company batch header
|
|
64
|
-
# does not affect funds movement,
|
|
65
|
-
#
|
|
69
|
+
# Custom data sent in the company batch header, meant as metadata for the
|
|
70
|
+
# originator. This value is informational and does not affect funds movement,
|
|
71
|
+
# settlement timing, or returns. Most ACH transfers do not need this; we recommend
|
|
72
|
+
# storing metadata in your own application instead.
|
|
66
73
|
sig { returns(T.nilable(String)) }
|
|
67
74
|
attr_reader :company_discretionary_data
|
|
68
75
|
|
|
69
76
|
sig { params(company_discretionary_data: String).void }
|
|
70
77
|
attr_writer :company_discretionary_data
|
|
71
78
|
|
|
72
|
-
# A short description sent in the company batch header
|
|
73
|
-
#
|
|
74
|
-
#
|
|
75
|
-
#
|
|
76
|
-
#
|
|
79
|
+
# A short description sent in the company batch header, meant to provide the
|
|
80
|
+
# receiver with a reason for the transfer. Many receivers do not surface this data
|
|
81
|
+
# on the receiver's bank statement. Only set this if your recipient has asked for
|
|
82
|
+
# a specific value or if Nacha mandates one for your Standard Entry Class (SEC)
|
|
83
|
+
# code and use case. For example, some use cases require constants like
|
|
84
|
+
# `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
|
|
77
85
|
sig { returns(T.nilable(String)) }
|
|
78
86
|
attr_reader :company_entry_description
|
|
79
87
|
|
|
80
88
|
sig { params(company_entry_description: String).void }
|
|
81
89
|
attr_writer :company_entry_description
|
|
82
90
|
|
|
83
|
-
# The name by which the recipient knows
|
|
84
|
-
#
|
|
85
|
-
#
|
|
91
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
92
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
93
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
94
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
95
|
+
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
96
|
+
# back to the `statement_descriptor`.
|
|
86
97
|
sig { returns(T.nilable(String)) }
|
|
87
98
|
attr_reader :company_name
|
|
88
99
|
|
|
@@ -130,16 +141,20 @@ module Increase
|
|
|
130
141
|
end
|
|
131
142
|
attr_writer :funding
|
|
132
143
|
|
|
133
|
-
# Your internal identifier for the
|
|
134
|
-
#
|
|
144
|
+
# Your internal identifier for the recipient. This value is informational and
|
|
145
|
+
# generally not verified by the recipient's bank. Most callers can leave this
|
|
146
|
+
# unset. For the specific case of person-to-person credits with the WEB standard
|
|
147
|
+
# entry class code, this must include the name of the payer.
|
|
135
148
|
sig { returns(T.nilable(String)) }
|
|
136
149
|
attr_reader :individual_id
|
|
137
150
|
|
|
138
151
|
sig { params(individual_id: String).void }
|
|
139
152
|
attr_writer :individual_id
|
|
140
153
|
|
|
141
|
-
# The name of the transfer recipient. This value is informational and
|
|
142
|
-
# by the recipient's bank.
|
|
154
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
155
|
+
# not verified by the recipient's bank. This value is usually displayed to the
|
|
156
|
+
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
157
|
+
# if you do not, we fall back to the `statement_descriptor`.
|
|
143
158
|
sig { returns(T.nilable(String)) }
|
|
144
159
|
attr_reader :individual_name
|
|
145
160
|
|
|
@@ -228,11 +243,16 @@ module Increase
|
|
|
228
243
|
).returns(T.attached_class)
|
|
229
244
|
end
|
|
230
245
|
def self.new(
|
|
231
|
-
# The Increase identifier for the account that will
|
|
246
|
+
# The Increase identifier for the account that will originate the transfer. For
|
|
247
|
+
# credit transfers (transfers with a positive `amount`), this is the account that
|
|
248
|
+
# funds will be sent from. For debit transfers (transfers with a negative
|
|
249
|
+
# `amount`), this is the account that funds will be pulled into.
|
|
232
250
|
account_id:,
|
|
233
251
|
# The transfer amount in USD cents. A positive amount originates a credit transfer
|
|
234
|
-
# pushing funds to the
|
|
235
|
-
# transfer pulling funds from the
|
|
252
|
+
# pushing funds from Increase to the account at the other bank. A negative amount
|
|
253
|
+
# originates a debit transfer pulling funds from the account at the other bank
|
|
254
|
+
# into Increase. Debit transfers
|
|
255
|
+
# [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
|
|
236
256
|
amount:,
|
|
237
257
|
# A description you choose to give the transfer. This will be saved with the
|
|
238
258
|
# transfer details, displayed in the dashboard, and returned by the API. If
|
|
@@ -241,9 +261,10 @@ module Increase
|
|
|
241
261
|
# help the customer recognize the transfer. You are highly encouraged to pass
|
|
242
262
|
# `individual_name` and `company_name` instead of relying on this fallback.
|
|
243
263
|
statement_descriptor:,
|
|
244
|
-
# The receiver's account number. For credit transfers (
|
|
245
|
-
# the account that funds will be sent to. For debit transfers
|
|
246
|
-
# this is the account that funds will be
|
|
264
|
+
# The receiver's account number. For credit transfers (transfers with a positive
|
|
265
|
+
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
266
|
+
# (transfers with a negative `amount`), this is the account that funds will be
|
|
267
|
+
# pulled from.
|
|
247
268
|
account_number: nil,
|
|
248
269
|
# Additional information passed through to the receiving bank with the transfer.
|
|
249
270
|
# Most ACH transfers do not need this. Only set this if your recipient has asked
|
|
@@ -254,19 +275,24 @@ module Increase
|
|
|
254
275
|
# batch header. This value is informational and does not affect funds movement,
|
|
255
276
|
# settlement timing, or returns. Only set this if your recipient has asked for it.
|
|
256
277
|
company_descriptive_date: nil,
|
|
257
|
-
# Custom data sent in the company batch header
|
|
258
|
-
# does not affect funds movement,
|
|
259
|
-
#
|
|
278
|
+
# Custom data sent in the company batch header, meant as metadata for the
|
|
279
|
+
# originator. This value is informational and does not affect funds movement,
|
|
280
|
+
# settlement timing, or returns. Most ACH transfers do not need this; we recommend
|
|
281
|
+
# storing metadata in your own application instead.
|
|
260
282
|
company_discretionary_data: nil,
|
|
261
|
-
# A short description sent in the company batch header
|
|
262
|
-
#
|
|
263
|
-
#
|
|
264
|
-
#
|
|
265
|
-
#
|
|
283
|
+
# A short description sent in the company batch header, meant to provide the
|
|
284
|
+
# receiver with a reason for the transfer. Many receivers do not surface this data
|
|
285
|
+
# on the receiver's bank statement. Only set this if your recipient has asked for
|
|
286
|
+
# a specific value or if Nacha mandates one for your Standard Entry Class (SEC)
|
|
287
|
+
# code and use case. For example, some use cases require constants like
|
|
288
|
+
# `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
|
|
266
289
|
company_entry_description: nil,
|
|
267
|
-
# The name by which the recipient knows
|
|
268
|
-
#
|
|
269
|
-
#
|
|
290
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
291
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
292
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
293
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
294
|
+
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
295
|
+
# back to the `statement_descriptor`.
|
|
270
296
|
company_name: nil,
|
|
271
297
|
# The type of entity that owns the receiver's account.
|
|
272
298
|
destination_account_holder: nil,
|
|
@@ -277,11 +303,15 @@ module Increase
|
|
|
277
303
|
#
|
|
278
304
|
# Defaults to `checking`.
|
|
279
305
|
funding: nil,
|
|
280
|
-
# Your internal identifier for the
|
|
281
|
-
#
|
|
306
|
+
# Your internal identifier for the recipient. This value is informational and
|
|
307
|
+
# generally not verified by the recipient's bank. Most callers can leave this
|
|
308
|
+
# unset. For the specific case of person-to-person credits with the WEB standard
|
|
309
|
+
# entry class code, this must include the name of the payer.
|
|
282
310
|
individual_id: nil,
|
|
283
|
-
# The name of the transfer recipient. This value is informational and
|
|
284
|
-
# by the recipient's bank.
|
|
311
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
312
|
+
# not verified by the recipient's bank. This value is usually displayed to the
|
|
313
|
+
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
314
|
+
# if you do not, we fall back to the `statement_descriptor`.
|
|
285
315
|
individual_name: nil,
|
|
286
316
|
# Configuration for how the effective date of the transfer will be set. This
|
|
287
317
|
# determines same-day vs future-dated settlement timing. If not set, defaults to a
|
|
@@ -16,6 +16,17 @@ module Increase
|
|
|
16
16
|
sig { returns(String) }
|
|
17
17
|
attr_accessor :app_icon_file_id
|
|
18
18
|
|
|
19
|
+
# Apple Pay specific settings for the Card Profile.
|
|
20
|
+
sig { returns(T.nilable(Increase::DigitalCardProfile::ApplePay)) }
|
|
21
|
+
attr_reader :apple_pay
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
apple_pay: T.nilable(Increase::DigitalCardProfile::ApplePay::OrHash)
|
|
26
|
+
).void
|
|
27
|
+
end
|
|
28
|
+
attr_writer :apple_pay
|
|
29
|
+
|
|
19
30
|
# The identifier of the File containing the card's front image.
|
|
20
31
|
sig { returns(String) }
|
|
21
32
|
attr_accessor :background_image_file_id
|
|
@@ -81,6 +92,7 @@ module Increase
|
|
|
81
92
|
params(
|
|
82
93
|
id: String,
|
|
83
94
|
app_icon_file_id: String,
|
|
95
|
+
apple_pay: T.nilable(Increase::DigitalCardProfile::ApplePay::OrHash),
|
|
84
96
|
background_image_file_id: String,
|
|
85
97
|
card_description: String,
|
|
86
98
|
contact_email: T.nilable(String),
|
|
@@ -100,6 +112,8 @@ module Increase
|
|
|
100
112
|
id:,
|
|
101
113
|
# The identifier of the File containing the card's icon image.
|
|
102
114
|
app_icon_file_id:,
|
|
115
|
+
# Apple Pay specific settings for the Card Profile.
|
|
116
|
+
apple_pay:,
|
|
103
117
|
# The identifier of the File containing the card's front image.
|
|
104
118
|
background_image_file_id:,
|
|
105
119
|
# A user-facing description for the card itself.
|
|
@@ -137,6 +151,7 @@ module Increase
|
|
|
137
151
|
{
|
|
138
152
|
id: String,
|
|
139
153
|
app_icon_file_id: String,
|
|
154
|
+
apple_pay: T.nilable(Increase::DigitalCardProfile::ApplePay),
|
|
140
155
|
background_image_file_id: String,
|
|
141
156
|
card_description: String,
|
|
142
157
|
contact_email: T.nilable(String),
|
|
@@ -155,6 +170,128 @@ module Increase
|
|
|
155
170
|
def to_hash
|
|
156
171
|
end
|
|
157
172
|
|
|
173
|
+
class ApplePay < Increase::Internal::Type::BaseModel
|
|
174
|
+
OrHash =
|
|
175
|
+
T.type_alias do
|
|
176
|
+
T.any(
|
|
177
|
+
Increase::DigitalCardProfile::ApplePay,
|
|
178
|
+
Increase::Internal::AnyHash
|
|
179
|
+
)
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# The applications associated with cards using this Card Profile.
|
|
183
|
+
sig do
|
|
184
|
+
returns(
|
|
185
|
+
T::Array[
|
|
186
|
+
Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier
|
|
187
|
+
]
|
|
188
|
+
)
|
|
189
|
+
end
|
|
190
|
+
attr_accessor :associated_application_identifiers
|
|
191
|
+
|
|
192
|
+
# The App Store listings of the applications associated with cards using this Card
|
|
193
|
+
# Profile.
|
|
194
|
+
sig do
|
|
195
|
+
returns(
|
|
196
|
+
T::Array[
|
|
197
|
+
Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier
|
|
198
|
+
]
|
|
199
|
+
)
|
|
200
|
+
end
|
|
201
|
+
attr_accessor :associated_store_identifiers
|
|
202
|
+
|
|
203
|
+
# Apple Pay specific settings for the Card Profile.
|
|
204
|
+
sig do
|
|
205
|
+
params(
|
|
206
|
+
associated_application_identifiers:
|
|
207
|
+
T::Array[
|
|
208
|
+
Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier::OrHash
|
|
209
|
+
],
|
|
210
|
+
associated_store_identifiers:
|
|
211
|
+
T::Array[
|
|
212
|
+
Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier::OrHash
|
|
213
|
+
]
|
|
214
|
+
).returns(T.attached_class)
|
|
215
|
+
end
|
|
216
|
+
def self.new(
|
|
217
|
+
# The applications associated with cards using this Card Profile.
|
|
218
|
+
associated_application_identifiers:,
|
|
219
|
+
# The App Store listings of the applications associated with cards using this Card
|
|
220
|
+
# Profile.
|
|
221
|
+
associated_store_identifiers:
|
|
222
|
+
)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
sig do
|
|
226
|
+
override.returns(
|
|
227
|
+
{
|
|
228
|
+
associated_application_identifiers:
|
|
229
|
+
T::Array[
|
|
230
|
+
Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier
|
|
231
|
+
],
|
|
232
|
+
associated_store_identifiers:
|
|
233
|
+
T::Array[
|
|
234
|
+
Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
)
|
|
238
|
+
end
|
|
239
|
+
def to_hash
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
|
|
243
|
+
OrHash =
|
|
244
|
+
T.type_alias do
|
|
245
|
+
T.any(
|
|
246
|
+
Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier,
|
|
247
|
+
Increase::Internal::AnyHash
|
|
248
|
+
)
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
252
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
253
|
+
sig { returns(String) }
|
|
254
|
+
attr_accessor :identifier
|
|
255
|
+
|
|
256
|
+
sig { params(identifier: String).returns(T.attached_class) }
|
|
257
|
+
def self.new(
|
|
258
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
259
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
260
|
+
identifier:
|
|
261
|
+
)
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
sig { override.returns({ identifier: String }) }
|
|
265
|
+
def to_hash
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
|
|
270
|
+
OrHash =
|
|
271
|
+
T.type_alias do
|
|
272
|
+
T.any(
|
|
273
|
+
Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier,
|
|
274
|
+
Increase::Internal::AnyHash
|
|
275
|
+
)
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# The numeric App Store identifier.
|
|
279
|
+
sig { returns(String) }
|
|
280
|
+
attr_accessor :identifier
|
|
281
|
+
|
|
282
|
+
sig { params(identifier: String).returns(T.attached_class) }
|
|
283
|
+
def self.new(
|
|
284
|
+
# The numeric App Store identifier.
|
|
285
|
+
identifier:
|
|
286
|
+
)
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
sig { override.returns({ identifier: String }) }
|
|
290
|
+
def to_hash
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
158
295
|
# The status of the Card Profile.
|
|
159
296
|
module Status
|
|
160
297
|
extend Increase::Internal::Type::Enum
|
|
@@ -25,6 +25,20 @@ module Increase
|
|
|
25
25
|
sig { params(app_icon_file_id: String).void }
|
|
26
26
|
attr_writer :app_icon_file_id
|
|
27
27
|
|
|
28
|
+
# Apple Pay specific settings for the Card Profile. Each list you leave out is
|
|
29
|
+
# copied from the original Card Profile.
|
|
30
|
+
sig do
|
|
31
|
+
returns(T.nilable(Increase::DigitalCardProfileCloneParams::ApplePay))
|
|
32
|
+
end
|
|
33
|
+
attr_reader :apple_pay
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay::OrHash
|
|
38
|
+
).void
|
|
39
|
+
end
|
|
40
|
+
attr_writer :apple_pay
|
|
41
|
+
|
|
28
42
|
# The identifier of the File containing the card's front image.
|
|
29
43
|
sig { returns(T.nilable(String)) }
|
|
30
44
|
attr_reader :background_image_file_id
|
|
@@ -92,6 +106,7 @@ module Increase
|
|
|
92
106
|
params(
|
|
93
107
|
digital_card_profile_id: String,
|
|
94
108
|
app_icon_file_id: String,
|
|
109
|
+
apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay::OrHash,
|
|
95
110
|
background_image_file_id: String,
|
|
96
111
|
card_description: String,
|
|
97
112
|
contact_email: String,
|
|
@@ -109,6 +124,9 @@ module Increase
|
|
|
109
124
|
digital_card_profile_id:,
|
|
110
125
|
# The identifier of the File containing the card's icon image.
|
|
111
126
|
app_icon_file_id: nil,
|
|
127
|
+
# Apple Pay specific settings for the Card Profile. Each list you leave out is
|
|
128
|
+
# copied from the original Card Profile.
|
|
129
|
+
apple_pay: nil,
|
|
112
130
|
# The identifier of the File containing the card's front image.
|
|
113
131
|
background_image_file_id: nil,
|
|
114
132
|
# A user-facing description for the card itself.
|
|
@@ -135,6 +153,7 @@ module Increase
|
|
|
135
153
|
{
|
|
136
154
|
digital_card_profile_id: String,
|
|
137
155
|
app_icon_file_id: String,
|
|
156
|
+
apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay,
|
|
138
157
|
background_image_file_id: String,
|
|
139
158
|
card_description: String,
|
|
140
159
|
contact_email: String,
|
|
@@ -150,6 +169,153 @@ module Increase
|
|
|
150
169
|
def to_hash
|
|
151
170
|
end
|
|
152
171
|
|
|
172
|
+
class ApplePay < Increase::Internal::Type::BaseModel
|
|
173
|
+
OrHash =
|
|
174
|
+
T.type_alias do
|
|
175
|
+
T.any(
|
|
176
|
+
Increase::DigitalCardProfileCloneParams::ApplePay,
|
|
177
|
+
Increase::Internal::AnyHash
|
|
178
|
+
)
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# The applications to associate with cards using this Card Profile.
|
|
182
|
+
sig do
|
|
183
|
+
returns(
|
|
184
|
+
T.nilable(
|
|
185
|
+
T::Array[
|
|
186
|
+
Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier
|
|
187
|
+
]
|
|
188
|
+
)
|
|
189
|
+
)
|
|
190
|
+
end
|
|
191
|
+
attr_reader :associated_application_identifiers
|
|
192
|
+
|
|
193
|
+
sig do
|
|
194
|
+
params(
|
|
195
|
+
associated_application_identifiers:
|
|
196
|
+
T::Array[
|
|
197
|
+
Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier::OrHash
|
|
198
|
+
]
|
|
199
|
+
).void
|
|
200
|
+
end
|
|
201
|
+
attr_writer :associated_application_identifiers
|
|
202
|
+
|
|
203
|
+
# The App Store listings of the applications to associate with cards using this
|
|
204
|
+
# Card Profile.
|
|
205
|
+
sig do
|
|
206
|
+
returns(
|
|
207
|
+
T.nilable(
|
|
208
|
+
T::Array[
|
|
209
|
+
Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier
|
|
210
|
+
]
|
|
211
|
+
)
|
|
212
|
+
)
|
|
213
|
+
end
|
|
214
|
+
attr_reader :associated_store_identifiers
|
|
215
|
+
|
|
216
|
+
sig do
|
|
217
|
+
params(
|
|
218
|
+
associated_store_identifiers:
|
|
219
|
+
T::Array[
|
|
220
|
+
Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier::OrHash
|
|
221
|
+
]
|
|
222
|
+
).void
|
|
223
|
+
end
|
|
224
|
+
attr_writer :associated_store_identifiers
|
|
225
|
+
|
|
226
|
+
# Apple Pay specific settings for the Card Profile. Each list you leave out is
|
|
227
|
+
# copied from the original Card Profile.
|
|
228
|
+
sig do
|
|
229
|
+
params(
|
|
230
|
+
associated_application_identifiers:
|
|
231
|
+
T::Array[
|
|
232
|
+
Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier::OrHash
|
|
233
|
+
],
|
|
234
|
+
associated_store_identifiers:
|
|
235
|
+
T::Array[
|
|
236
|
+
Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier::OrHash
|
|
237
|
+
]
|
|
238
|
+
).returns(T.attached_class)
|
|
239
|
+
end
|
|
240
|
+
def self.new(
|
|
241
|
+
# The applications to associate with cards using this Card Profile.
|
|
242
|
+
associated_application_identifiers: nil,
|
|
243
|
+
# The App Store listings of the applications to associate with cards using this
|
|
244
|
+
# Card Profile.
|
|
245
|
+
associated_store_identifiers: nil
|
|
246
|
+
)
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
sig do
|
|
250
|
+
override.returns(
|
|
251
|
+
{
|
|
252
|
+
associated_application_identifiers:
|
|
253
|
+
T::Array[
|
|
254
|
+
Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier
|
|
255
|
+
],
|
|
256
|
+
associated_store_identifiers:
|
|
257
|
+
T::Array[
|
|
258
|
+
Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
)
|
|
262
|
+
end
|
|
263
|
+
def to_hash
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
|
|
267
|
+
OrHash =
|
|
268
|
+
T.type_alias do
|
|
269
|
+
T.any(
|
|
270
|
+
Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier,
|
|
271
|
+
Increase::Internal::AnyHash
|
|
272
|
+
)
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
276
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
277
|
+
sig { returns(String) }
|
|
278
|
+
attr_accessor :identifier
|
|
279
|
+
|
|
280
|
+
sig { params(identifier: String).returns(T.attached_class) }
|
|
281
|
+
def self.new(
|
|
282
|
+
# The application identifier, composed of your Apple Developer Team ID and the
|
|
283
|
+
# application's bundle identifier, like `ABCDE12345.com.example.app`.
|
|
284
|
+
identifier:
|
|
285
|
+
)
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
sig { override.returns({ identifier: String }) }
|
|
289
|
+
def to_hash
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
|
|
294
|
+
OrHash =
|
|
295
|
+
T.type_alias do
|
|
296
|
+
T.any(
|
|
297
|
+
Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier,
|
|
298
|
+
Increase::Internal::AnyHash
|
|
299
|
+
)
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# The numeric App Store identifier.
|
|
303
|
+
sig { returns(String) }
|
|
304
|
+
attr_accessor :identifier
|
|
305
|
+
|
|
306
|
+
sig { params(identifier: String).returns(T.attached_class) }
|
|
307
|
+
def self.new(
|
|
308
|
+
# The numeric App Store identifier.
|
|
309
|
+
identifier:
|
|
310
|
+
)
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
sig { override.returns({ identifier: String }) }
|
|
314
|
+
def to_hash
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
153
319
|
class TextColor < Increase::Internal::Type::BaseModel
|
|
154
320
|
OrHash =
|
|
155
321
|
T.type_alias do
|