increase 1.293.0 → 1.295.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/models/simulations/card_purchase_supplement_create_params.rb +214 -0
- data/lib/increase/resources/simulations/card_purchase_supplements.rb +48 -0
- data/lib/increase/resources/simulations.rb +5 -4
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +2 -2
- data/rbi/increase/models/simulations/card_purchase_supplement_create_params.rbi +381 -0
- data/rbi/increase/resources/simulations/card_purchase_supplements.rbi +41 -0
- data/rbi/increase/resources/simulations.rbi +3 -3
- data/sig/increase/models/simulations/card_purchase_supplement_create_params.rbs +210 -0
- data/sig/increase/resources/simulations/card_purchase_supplements.rbs +16 -0
- data/sig/increase/resources/simulations.rbs +2 -2
- metadata +7 -7
- data/lib/increase/models/simulations/account_transfer_complete_params.rb +0 -24
- data/lib/increase/resources/simulations/account_transfers.rb +0 -39
- data/rbi/increase/models/simulations/account_transfer_complete_params.rbi +0 -48
- data/rbi/increase/resources/simulations/account_transfers.rbi +0 -31
- data/sig/increase/models/simulations/account_transfer_complete_params.rbs +0 -26
- data/sig/increase/resources/simulations/account_transfers.rbs +0 -14
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
module Simulations
|
|
6
|
+
class CardPurchaseSupplementCreateParams < Increase::Internal::Type::BaseModel
|
|
7
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Increase::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams,
|
|
14
|
+
Increase::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# The identifier of the Transaction to create a Card Purchase Supplement for. The
|
|
19
|
+
# Transaction must have a source of type `card_settlement`.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :transaction_id
|
|
22
|
+
|
|
23
|
+
# Invoice-level information about the payment.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
T.nilable(
|
|
27
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice
|
|
28
|
+
)
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
attr_reader :invoice
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
invoice:
|
|
36
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice::OrHash
|
|
37
|
+
).void
|
|
38
|
+
end
|
|
39
|
+
attr_writer :invoice
|
|
40
|
+
|
|
41
|
+
# Line item information, such as individual products purchased.
|
|
42
|
+
sig do
|
|
43
|
+
returns(
|
|
44
|
+
T.nilable(
|
|
45
|
+
T::Array[
|
|
46
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem
|
|
47
|
+
]
|
|
48
|
+
)
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
attr_reader :line_items
|
|
52
|
+
|
|
53
|
+
sig do
|
|
54
|
+
params(
|
|
55
|
+
line_items:
|
|
56
|
+
T::Array[
|
|
57
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem::OrHash
|
|
58
|
+
]
|
|
59
|
+
).void
|
|
60
|
+
end
|
|
61
|
+
attr_writer :line_items
|
|
62
|
+
|
|
63
|
+
sig do
|
|
64
|
+
params(
|
|
65
|
+
transaction_id: String,
|
|
66
|
+
invoice:
|
|
67
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice::OrHash,
|
|
68
|
+
line_items:
|
|
69
|
+
T::Array[
|
|
70
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem::OrHash
|
|
71
|
+
],
|
|
72
|
+
request_options: Increase::RequestOptions::OrHash
|
|
73
|
+
).returns(T.attached_class)
|
|
74
|
+
end
|
|
75
|
+
def self.new(
|
|
76
|
+
# The identifier of the Transaction to create a Card Purchase Supplement for. The
|
|
77
|
+
# Transaction must have a source of type `card_settlement`.
|
|
78
|
+
transaction_id:,
|
|
79
|
+
# Invoice-level information about the payment.
|
|
80
|
+
invoice: nil,
|
|
81
|
+
# Line item information, such as individual products purchased.
|
|
82
|
+
line_items: nil,
|
|
83
|
+
request_options: {}
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
sig do
|
|
88
|
+
override.returns(
|
|
89
|
+
{
|
|
90
|
+
transaction_id: String,
|
|
91
|
+
invoice:
|
|
92
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice,
|
|
93
|
+
line_items:
|
|
94
|
+
T::Array[
|
|
95
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem
|
|
96
|
+
],
|
|
97
|
+
request_options: Increase::RequestOptions
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
def to_hash
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
class Invoice < Increase::Internal::Type::BaseModel
|
|
105
|
+
OrHash =
|
|
106
|
+
T.type_alias do
|
|
107
|
+
T.any(
|
|
108
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice,
|
|
109
|
+
Increase::Internal::AnyHash
|
|
110
|
+
)
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Discount given to cardholder.
|
|
114
|
+
sig { returns(T.nilable(Integer)) }
|
|
115
|
+
attr_reader :discount_amount
|
|
116
|
+
|
|
117
|
+
sig { params(discount_amount: Integer).void }
|
|
118
|
+
attr_writer :discount_amount
|
|
119
|
+
|
|
120
|
+
# Amount of duty taxes.
|
|
121
|
+
sig { returns(T.nilable(Integer)) }
|
|
122
|
+
attr_reader :duty_tax_amount
|
|
123
|
+
|
|
124
|
+
sig { params(duty_tax_amount: Integer).void }
|
|
125
|
+
attr_writer :duty_tax_amount
|
|
126
|
+
|
|
127
|
+
# Date the order was taken.
|
|
128
|
+
sig { returns(T.nilable(Date)) }
|
|
129
|
+
attr_reader :order_date
|
|
130
|
+
|
|
131
|
+
sig { params(order_date: Date).void }
|
|
132
|
+
attr_writer :order_date
|
|
133
|
+
|
|
134
|
+
# The shipping cost.
|
|
135
|
+
sig { returns(T.nilable(Integer)) }
|
|
136
|
+
attr_reader :shipping_amount
|
|
137
|
+
|
|
138
|
+
sig { params(shipping_amount: Integer).void }
|
|
139
|
+
attr_writer :shipping_amount
|
|
140
|
+
|
|
141
|
+
# Country code of the shipping destination.
|
|
142
|
+
sig { returns(T.nilable(String)) }
|
|
143
|
+
attr_reader :shipping_destination_country_code
|
|
144
|
+
|
|
145
|
+
sig { params(shipping_destination_country_code: String).void }
|
|
146
|
+
attr_writer :shipping_destination_country_code
|
|
147
|
+
|
|
148
|
+
# Postal code of the shipping destination.
|
|
149
|
+
sig { returns(T.nilable(String)) }
|
|
150
|
+
attr_reader :shipping_destination_postal_code
|
|
151
|
+
|
|
152
|
+
sig { params(shipping_destination_postal_code: String).void }
|
|
153
|
+
attr_writer :shipping_destination_postal_code
|
|
154
|
+
|
|
155
|
+
# Postal code of the location being shipped from.
|
|
156
|
+
sig { returns(T.nilable(String)) }
|
|
157
|
+
attr_reader :shipping_source_postal_code
|
|
158
|
+
|
|
159
|
+
sig { params(shipping_source_postal_code: String).void }
|
|
160
|
+
attr_writer :shipping_source_postal_code
|
|
161
|
+
|
|
162
|
+
# Taxes paid for freight and shipping.
|
|
163
|
+
sig { returns(T.nilable(Integer)) }
|
|
164
|
+
attr_reader :shipping_tax_amount
|
|
165
|
+
|
|
166
|
+
sig { params(shipping_tax_amount: Integer).void }
|
|
167
|
+
attr_writer :shipping_tax_amount
|
|
168
|
+
|
|
169
|
+
# Tax rate for freight and shipping.
|
|
170
|
+
sig { returns(T.nilable(String)) }
|
|
171
|
+
attr_reader :shipping_tax_rate
|
|
172
|
+
|
|
173
|
+
sig { params(shipping_tax_rate: String).void }
|
|
174
|
+
attr_writer :shipping_tax_rate
|
|
175
|
+
|
|
176
|
+
# Value added tax invoice reference number.
|
|
177
|
+
sig { returns(T.nilable(String)) }
|
|
178
|
+
attr_reader :unique_value_added_tax_invoice_reference
|
|
179
|
+
|
|
180
|
+
sig { params(unique_value_added_tax_invoice_reference: String).void }
|
|
181
|
+
attr_writer :unique_value_added_tax_invoice_reference
|
|
182
|
+
|
|
183
|
+
# Invoice-level information about the payment.
|
|
184
|
+
sig do
|
|
185
|
+
params(
|
|
186
|
+
discount_amount: Integer,
|
|
187
|
+
duty_tax_amount: Integer,
|
|
188
|
+
order_date: Date,
|
|
189
|
+
shipping_amount: Integer,
|
|
190
|
+
shipping_destination_country_code: String,
|
|
191
|
+
shipping_destination_postal_code: String,
|
|
192
|
+
shipping_source_postal_code: String,
|
|
193
|
+
shipping_tax_amount: Integer,
|
|
194
|
+
shipping_tax_rate: String,
|
|
195
|
+
unique_value_added_tax_invoice_reference: String
|
|
196
|
+
).returns(T.attached_class)
|
|
197
|
+
end
|
|
198
|
+
def self.new(
|
|
199
|
+
# Discount given to cardholder.
|
|
200
|
+
discount_amount: nil,
|
|
201
|
+
# Amount of duty taxes.
|
|
202
|
+
duty_tax_amount: nil,
|
|
203
|
+
# Date the order was taken.
|
|
204
|
+
order_date: nil,
|
|
205
|
+
# The shipping cost.
|
|
206
|
+
shipping_amount: nil,
|
|
207
|
+
# Country code of the shipping destination.
|
|
208
|
+
shipping_destination_country_code: nil,
|
|
209
|
+
# Postal code of the shipping destination.
|
|
210
|
+
shipping_destination_postal_code: nil,
|
|
211
|
+
# Postal code of the location being shipped from.
|
|
212
|
+
shipping_source_postal_code: nil,
|
|
213
|
+
# Taxes paid for freight and shipping.
|
|
214
|
+
shipping_tax_amount: nil,
|
|
215
|
+
# Tax rate for freight and shipping.
|
|
216
|
+
shipping_tax_rate: nil,
|
|
217
|
+
# Value added tax invoice reference number.
|
|
218
|
+
unique_value_added_tax_invoice_reference: nil
|
|
219
|
+
)
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
sig do
|
|
223
|
+
override.returns(
|
|
224
|
+
{
|
|
225
|
+
discount_amount: Integer,
|
|
226
|
+
duty_tax_amount: Integer,
|
|
227
|
+
order_date: Date,
|
|
228
|
+
shipping_amount: Integer,
|
|
229
|
+
shipping_destination_country_code: String,
|
|
230
|
+
shipping_destination_postal_code: String,
|
|
231
|
+
shipping_source_postal_code: String,
|
|
232
|
+
shipping_tax_amount: Integer,
|
|
233
|
+
shipping_tax_rate: String,
|
|
234
|
+
unique_value_added_tax_invoice_reference: String
|
|
235
|
+
}
|
|
236
|
+
)
|
|
237
|
+
end
|
|
238
|
+
def to_hash
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
class LineItem < Increase::Internal::Type::BaseModel
|
|
243
|
+
OrHash =
|
|
244
|
+
T.type_alias do
|
|
245
|
+
T.any(
|
|
246
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem,
|
|
247
|
+
Increase::Internal::AnyHash
|
|
248
|
+
)
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Discount amount for this specific line item.
|
|
252
|
+
sig { returns(T.nilable(Integer)) }
|
|
253
|
+
attr_reader :discount_amount
|
|
254
|
+
|
|
255
|
+
sig { params(discount_amount: Integer).void }
|
|
256
|
+
attr_writer :discount_amount
|
|
257
|
+
|
|
258
|
+
# Code used to categorize the purchase item.
|
|
259
|
+
sig { returns(T.nilable(String)) }
|
|
260
|
+
attr_reader :item_commodity_code
|
|
261
|
+
|
|
262
|
+
sig { params(item_commodity_code: String).void }
|
|
263
|
+
attr_writer :item_commodity_code
|
|
264
|
+
|
|
265
|
+
# Description of the purchase item.
|
|
266
|
+
sig { returns(T.nilable(String)) }
|
|
267
|
+
attr_reader :item_descriptor
|
|
268
|
+
|
|
269
|
+
sig { params(item_descriptor: String).void }
|
|
270
|
+
attr_writer :item_descriptor
|
|
271
|
+
|
|
272
|
+
# The number of units of the product being purchased.
|
|
273
|
+
sig { returns(T.nilable(String)) }
|
|
274
|
+
attr_reader :item_quantity
|
|
275
|
+
|
|
276
|
+
sig { params(item_quantity: String).void }
|
|
277
|
+
attr_writer :item_quantity
|
|
278
|
+
|
|
279
|
+
# Code used to categorize the product being purchased.
|
|
280
|
+
sig { returns(T.nilable(String)) }
|
|
281
|
+
attr_reader :product_code
|
|
282
|
+
|
|
283
|
+
sig { params(product_code: String).void }
|
|
284
|
+
attr_writer :product_code
|
|
285
|
+
|
|
286
|
+
# Sales tax amount for this line item.
|
|
287
|
+
sig { returns(T.nilable(Integer)) }
|
|
288
|
+
attr_reader :sales_tax_amount
|
|
289
|
+
|
|
290
|
+
sig { params(sales_tax_amount: Integer).void }
|
|
291
|
+
attr_writer :sales_tax_amount
|
|
292
|
+
|
|
293
|
+
# Sales tax rate for this line item.
|
|
294
|
+
sig { returns(T.nilable(String)) }
|
|
295
|
+
attr_reader :sales_tax_rate
|
|
296
|
+
|
|
297
|
+
sig { params(sales_tax_rate: String).void }
|
|
298
|
+
attr_writer :sales_tax_rate
|
|
299
|
+
|
|
300
|
+
# Total amount of all line items.
|
|
301
|
+
sig { returns(T.nilable(Integer)) }
|
|
302
|
+
attr_reader :total_amount
|
|
303
|
+
|
|
304
|
+
sig { params(total_amount: Integer).void }
|
|
305
|
+
attr_writer :total_amount
|
|
306
|
+
|
|
307
|
+
# Cost of line item per unit of measure, in major units.
|
|
308
|
+
sig { returns(T.nilable(String)) }
|
|
309
|
+
attr_reader :unit_cost
|
|
310
|
+
|
|
311
|
+
sig { params(unit_cost: String).void }
|
|
312
|
+
attr_writer :unit_cost
|
|
313
|
+
|
|
314
|
+
# Code indicating unit of measure (gallons, etc.).
|
|
315
|
+
sig { returns(T.nilable(String)) }
|
|
316
|
+
attr_reader :unit_of_measure_code
|
|
317
|
+
|
|
318
|
+
sig { params(unit_of_measure_code: String).void }
|
|
319
|
+
attr_writer :unit_of_measure_code
|
|
320
|
+
|
|
321
|
+
sig do
|
|
322
|
+
params(
|
|
323
|
+
discount_amount: Integer,
|
|
324
|
+
item_commodity_code: String,
|
|
325
|
+
item_descriptor: String,
|
|
326
|
+
item_quantity: String,
|
|
327
|
+
product_code: String,
|
|
328
|
+
sales_tax_amount: Integer,
|
|
329
|
+
sales_tax_rate: String,
|
|
330
|
+
total_amount: Integer,
|
|
331
|
+
unit_cost: String,
|
|
332
|
+
unit_of_measure_code: String
|
|
333
|
+
).returns(T.attached_class)
|
|
334
|
+
end
|
|
335
|
+
def self.new(
|
|
336
|
+
# Discount amount for this specific line item.
|
|
337
|
+
discount_amount: nil,
|
|
338
|
+
# Code used to categorize the purchase item.
|
|
339
|
+
item_commodity_code: nil,
|
|
340
|
+
# Description of the purchase item.
|
|
341
|
+
item_descriptor: nil,
|
|
342
|
+
# The number of units of the product being purchased.
|
|
343
|
+
item_quantity: nil,
|
|
344
|
+
# Code used to categorize the product being purchased.
|
|
345
|
+
product_code: nil,
|
|
346
|
+
# Sales tax amount for this line item.
|
|
347
|
+
sales_tax_amount: nil,
|
|
348
|
+
# Sales tax rate for this line item.
|
|
349
|
+
sales_tax_rate: nil,
|
|
350
|
+
# Total amount of all line items.
|
|
351
|
+
total_amount: nil,
|
|
352
|
+
# Cost of line item per unit of measure, in major units.
|
|
353
|
+
unit_cost: nil,
|
|
354
|
+
# Code indicating unit of measure (gallons, etc.).
|
|
355
|
+
unit_of_measure_code: nil
|
|
356
|
+
)
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
sig do
|
|
360
|
+
override.returns(
|
|
361
|
+
{
|
|
362
|
+
discount_amount: Integer,
|
|
363
|
+
item_commodity_code: String,
|
|
364
|
+
item_descriptor: String,
|
|
365
|
+
item_quantity: String,
|
|
366
|
+
product_code: String,
|
|
367
|
+
sales_tax_amount: Integer,
|
|
368
|
+
sales_tax_rate: String,
|
|
369
|
+
total_amount: Integer,
|
|
370
|
+
unit_cost: String,
|
|
371
|
+
unit_of_measure_code: String
|
|
372
|
+
}
|
|
373
|
+
)
|
|
374
|
+
end
|
|
375
|
+
def to_hash
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
end
|
|
379
|
+
end
|
|
380
|
+
end
|
|
381
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Resources
|
|
5
|
+
class Simulations
|
|
6
|
+
class CardPurchaseSupplements
|
|
7
|
+
# Simulates the creation of a Card Purchase Supplement (Level 3 data) for a card
|
|
8
|
+
# settlement. This happens asynchronously in production when Visa sends enhanced
|
|
9
|
+
# transaction data about a purchase.
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
transaction_id: String,
|
|
13
|
+
invoice:
|
|
14
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice::OrHash,
|
|
15
|
+
line_items:
|
|
16
|
+
T::Array[
|
|
17
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem::OrHash
|
|
18
|
+
],
|
|
19
|
+
request_options: Increase::RequestOptions::OrHash
|
|
20
|
+
).returns(Increase::CardPurchaseSupplement)
|
|
21
|
+
end
|
|
22
|
+
def create(
|
|
23
|
+
# The identifier of the Transaction to create a Card Purchase Supplement for. The
|
|
24
|
+
# Transaction must have a source of type `card_settlement`.
|
|
25
|
+
transaction_id:,
|
|
26
|
+
# Invoice-level information about the payment.
|
|
27
|
+
invoice: nil,
|
|
28
|
+
# Line item information, such as individual products purchased.
|
|
29
|
+
line_items: nil,
|
|
30
|
+
request_options: {}
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# @api private
|
|
35
|
+
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
36
|
+
def self.new(client:)
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -6,9 +6,6 @@ module Increase
|
|
|
6
6
|
sig { returns(Increase::Resources::Simulations::InterestPayments) }
|
|
7
7
|
attr_reader :interest_payments
|
|
8
8
|
|
|
9
|
-
sig { returns(Increase::Resources::Simulations::AccountTransfers) }
|
|
10
|
-
attr_reader :account_transfers
|
|
11
|
-
|
|
12
9
|
sig { returns(Increase::Resources::Simulations::CardAuthorizations) }
|
|
13
10
|
attr_reader :card_authorizations
|
|
14
11
|
|
|
@@ -38,6 +35,9 @@ module Increase
|
|
|
38
35
|
sig { returns(Increase::Resources::Simulations::CardAuthentications) }
|
|
39
36
|
attr_reader :card_authentications
|
|
40
37
|
|
|
38
|
+
sig { returns(Increase::Resources::Simulations::CardPurchaseSupplements) }
|
|
39
|
+
attr_reader :card_purchase_supplements
|
|
40
|
+
|
|
41
41
|
sig { returns(Increase::Resources::Simulations::CardDisputes) }
|
|
42
42
|
attr_reader :card_disputes
|
|
43
43
|
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
module Simulations
|
|
4
|
+
type card_purchase_supplement_create_params =
|
|
5
|
+
{
|
|
6
|
+
transaction_id: String,
|
|
7
|
+
invoice: Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice,
|
|
8
|
+
line_items: ::Array[Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem]
|
|
9
|
+
}
|
|
10
|
+
& Increase::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class CardPurchaseSupplementCreateParams < Increase::Internal::Type::BaseModel
|
|
13
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Increase::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor transaction_id: String
|
|
17
|
+
|
|
18
|
+
attr_reader invoice: Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice?
|
|
19
|
+
|
|
20
|
+
def invoice=: (
|
|
21
|
+
Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice
|
|
22
|
+
) -> Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice
|
|
23
|
+
|
|
24
|
+
attr_reader line_items: ::Array[Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem]?
|
|
25
|
+
|
|
26
|
+
def line_items=: (
|
|
27
|
+
::Array[Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem]
|
|
28
|
+
) -> ::Array[Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem]
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
transaction_id: String,
|
|
32
|
+
?invoice: Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice,
|
|
33
|
+
?line_items: ::Array[Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem],
|
|
34
|
+
?request_options: Increase::request_opts
|
|
35
|
+
) -> void
|
|
36
|
+
|
|
37
|
+
def to_hash: -> {
|
|
38
|
+
transaction_id: String,
|
|
39
|
+
invoice: Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice,
|
|
40
|
+
line_items: ::Array[Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem],
|
|
41
|
+
request_options: Increase::RequestOptions
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type invoice =
|
|
45
|
+
{
|
|
46
|
+
discount_amount: Integer,
|
|
47
|
+
duty_tax_amount: Integer,
|
|
48
|
+
order_date: Date,
|
|
49
|
+
shipping_amount: Integer,
|
|
50
|
+
shipping_destination_country_code: String,
|
|
51
|
+
shipping_destination_postal_code: String,
|
|
52
|
+
shipping_source_postal_code: String,
|
|
53
|
+
shipping_tax_amount: Integer,
|
|
54
|
+
shipping_tax_rate: String,
|
|
55
|
+
unique_value_added_tax_invoice_reference: String
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
class Invoice < Increase::Internal::Type::BaseModel
|
|
59
|
+
attr_reader discount_amount: Integer?
|
|
60
|
+
|
|
61
|
+
def discount_amount=: (Integer) -> Integer
|
|
62
|
+
|
|
63
|
+
attr_reader duty_tax_amount: Integer?
|
|
64
|
+
|
|
65
|
+
def duty_tax_amount=: (Integer) -> Integer
|
|
66
|
+
|
|
67
|
+
attr_reader order_date: Date?
|
|
68
|
+
|
|
69
|
+
def order_date=: (Date) -> Date
|
|
70
|
+
|
|
71
|
+
attr_reader shipping_amount: Integer?
|
|
72
|
+
|
|
73
|
+
def shipping_amount=: (Integer) -> Integer
|
|
74
|
+
|
|
75
|
+
attr_reader shipping_destination_country_code: String?
|
|
76
|
+
|
|
77
|
+
def shipping_destination_country_code=: (String) -> String
|
|
78
|
+
|
|
79
|
+
attr_reader shipping_destination_postal_code: String?
|
|
80
|
+
|
|
81
|
+
def shipping_destination_postal_code=: (String) -> String
|
|
82
|
+
|
|
83
|
+
attr_reader shipping_source_postal_code: String?
|
|
84
|
+
|
|
85
|
+
def shipping_source_postal_code=: (String) -> String
|
|
86
|
+
|
|
87
|
+
attr_reader shipping_tax_amount: Integer?
|
|
88
|
+
|
|
89
|
+
def shipping_tax_amount=: (Integer) -> Integer
|
|
90
|
+
|
|
91
|
+
attr_reader shipping_tax_rate: String?
|
|
92
|
+
|
|
93
|
+
def shipping_tax_rate=: (String) -> String
|
|
94
|
+
|
|
95
|
+
attr_reader unique_value_added_tax_invoice_reference: String?
|
|
96
|
+
|
|
97
|
+
def unique_value_added_tax_invoice_reference=: (String) -> String
|
|
98
|
+
|
|
99
|
+
def initialize: (
|
|
100
|
+
?discount_amount: Integer,
|
|
101
|
+
?duty_tax_amount: Integer,
|
|
102
|
+
?order_date: Date,
|
|
103
|
+
?shipping_amount: Integer,
|
|
104
|
+
?shipping_destination_country_code: String,
|
|
105
|
+
?shipping_destination_postal_code: String,
|
|
106
|
+
?shipping_source_postal_code: String,
|
|
107
|
+
?shipping_tax_amount: Integer,
|
|
108
|
+
?shipping_tax_rate: String,
|
|
109
|
+
?unique_value_added_tax_invoice_reference: String
|
|
110
|
+
) -> void
|
|
111
|
+
|
|
112
|
+
def to_hash: -> {
|
|
113
|
+
discount_amount: Integer,
|
|
114
|
+
duty_tax_amount: Integer,
|
|
115
|
+
order_date: Date,
|
|
116
|
+
shipping_amount: Integer,
|
|
117
|
+
shipping_destination_country_code: String,
|
|
118
|
+
shipping_destination_postal_code: String,
|
|
119
|
+
shipping_source_postal_code: String,
|
|
120
|
+
shipping_tax_amount: Integer,
|
|
121
|
+
shipping_tax_rate: String,
|
|
122
|
+
unique_value_added_tax_invoice_reference: String
|
|
123
|
+
}
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
type line_item =
|
|
127
|
+
{
|
|
128
|
+
discount_amount: Integer,
|
|
129
|
+
item_commodity_code: String,
|
|
130
|
+
item_descriptor: String,
|
|
131
|
+
item_quantity: String,
|
|
132
|
+
product_code: String,
|
|
133
|
+
sales_tax_amount: Integer,
|
|
134
|
+
sales_tax_rate: String,
|
|
135
|
+
total_amount: Integer,
|
|
136
|
+
unit_cost: String,
|
|
137
|
+
unit_of_measure_code: String
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
class LineItem < Increase::Internal::Type::BaseModel
|
|
141
|
+
attr_reader discount_amount: Integer?
|
|
142
|
+
|
|
143
|
+
def discount_amount=: (Integer) -> Integer
|
|
144
|
+
|
|
145
|
+
attr_reader item_commodity_code: String?
|
|
146
|
+
|
|
147
|
+
def item_commodity_code=: (String) -> String
|
|
148
|
+
|
|
149
|
+
attr_reader item_descriptor: String?
|
|
150
|
+
|
|
151
|
+
def item_descriptor=: (String) -> String
|
|
152
|
+
|
|
153
|
+
attr_reader item_quantity: String?
|
|
154
|
+
|
|
155
|
+
def item_quantity=: (String) -> String
|
|
156
|
+
|
|
157
|
+
attr_reader product_code: String?
|
|
158
|
+
|
|
159
|
+
def product_code=: (String) -> String
|
|
160
|
+
|
|
161
|
+
attr_reader sales_tax_amount: Integer?
|
|
162
|
+
|
|
163
|
+
def sales_tax_amount=: (Integer) -> Integer
|
|
164
|
+
|
|
165
|
+
attr_reader sales_tax_rate: String?
|
|
166
|
+
|
|
167
|
+
def sales_tax_rate=: (String) -> String
|
|
168
|
+
|
|
169
|
+
attr_reader total_amount: Integer?
|
|
170
|
+
|
|
171
|
+
def total_amount=: (Integer) -> Integer
|
|
172
|
+
|
|
173
|
+
attr_reader unit_cost: String?
|
|
174
|
+
|
|
175
|
+
def unit_cost=: (String) -> String
|
|
176
|
+
|
|
177
|
+
attr_reader unit_of_measure_code: String?
|
|
178
|
+
|
|
179
|
+
def unit_of_measure_code=: (String) -> String
|
|
180
|
+
|
|
181
|
+
def initialize: (
|
|
182
|
+
?discount_amount: Integer,
|
|
183
|
+
?item_commodity_code: String,
|
|
184
|
+
?item_descriptor: String,
|
|
185
|
+
?item_quantity: String,
|
|
186
|
+
?product_code: String,
|
|
187
|
+
?sales_tax_amount: Integer,
|
|
188
|
+
?sales_tax_rate: String,
|
|
189
|
+
?total_amount: Integer,
|
|
190
|
+
?unit_cost: String,
|
|
191
|
+
?unit_of_measure_code: String
|
|
192
|
+
) -> void
|
|
193
|
+
|
|
194
|
+
def to_hash: -> {
|
|
195
|
+
discount_amount: Integer,
|
|
196
|
+
item_commodity_code: String,
|
|
197
|
+
item_descriptor: String,
|
|
198
|
+
item_quantity: String,
|
|
199
|
+
product_code: String,
|
|
200
|
+
sales_tax_amount: Integer,
|
|
201
|
+
sales_tax_rate: String,
|
|
202
|
+
total_amount: Integer,
|
|
203
|
+
unit_cost: String,
|
|
204
|
+
unit_of_measure_code: String
|
|
205
|
+
}
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Resources
|
|
3
|
+
class Simulations
|
|
4
|
+
class CardPurchaseSupplements
|
|
5
|
+
def create: (
|
|
6
|
+
transaction_id: String,
|
|
7
|
+
?invoice: Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice,
|
|
8
|
+
?line_items: ::Array[Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem],
|
|
9
|
+
?request_options: Increase::request_opts
|
|
10
|
+
) -> Increase::CardPurchaseSupplement
|
|
11
|
+
|
|
12
|
+
def initialize: (client: Increase::Client) -> void
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -3,8 +3,6 @@ module Increase
|
|
|
3
3
|
class Simulations
|
|
4
4
|
attr_reader interest_payments: Increase::Resources::Simulations::InterestPayments
|
|
5
5
|
|
|
6
|
-
attr_reader account_transfers: Increase::Resources::Simulations::AccountTransfers
|
|
7
|
-
|
|
8
6
|
attr_reader card_authorizations: Increase::Resources::Simulations::CardAuthorizations
|
|
9
7
|
|
|
10
8
|
attr_reader card_balance_inquiries: Increase::Resources::Simulations::CardBalanceInquiries
|
|
@@ -23,6 +21,8 @@ module Increase
|
|
|
23
21
|
|
|
24
22
|
attr_reader card_authentications: Increase::Resources::Simulations::CardAuthentications
|
|
25
23
|
|
|
24
|
+
attr_reader card_purchase_supplements: Increase::Resources::Simulations::CardPurchaseSupplements
|
|
25
|
+
|
|
26
26
|
attr_reader card_disputes: Increase::Resources::Simulations::CardDisputes
|
|
27
27
|
|
|
28
28
|
attr_reader physical_cards: Increase::Resources::Simulations::PhysicalCards
|