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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f27d6f8d78af4a33d7b458c035245c4e044b3a3e72a75c5170ac24022674b580
4
- data.tar.gz: b35640a9e4076bda3c967450239e038fc84245eeab1334636d046642fc624da4
3
+ metadata.gz: 567701574c02ba560bbb96a1e04827f022b68d0a7cf84e0872ea76c9af85dece
4
+ data.tar.gz: 0253d3e5d408b42a93191492eb0f3e489abb3a9477dc323fbcbcee5c5b4b33ba
5
5
  SHA512:
6
- metadata.gz: c9477f09858c87ba749ec0536c2d5e9082969f13efccb9d71b5e5134f55b0a97c2b5ad5f3f0d7615ebc45e989471aeae9f3399afa7e8c60c971f56a4de4776ea
7
- data.tar.gz: afe6393b06142cec7b5d7f5afb782d2382951bf9bb17e6228474e001c5c987b31647b43f6eb994809030df334d3575300e7aaf27877f4b906b438bce3435128d
6
+ metadata.gz: 5a3ea4fa764355741a79cef56034c5d44e46fb39349aab6c9ef8b54bed59b7f22fd195ea0c7664f6723d80a4b0584886e682e4aa90f3fe2dcc38120b00d0de4c
7
+ data.tar.gz: ec2cad6647a883fa54596c4c7630d07c380d74a9fd075db0b8981934bc8156d406f10fc0cbde04a920898dc15d3f2f0771d98cf6a930317e9fcc2d96c710e247
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.295.0 (2026-04-13)
4
+
5
+ Full Changelog: [v1.294.0...v1.295.0](https://github.com/Increase/increase-ruby/compare/v1.294.0...v1.295.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([b0eedbe](https://github.com/Increase/increase-ruby/commit/b0eedbe1db3daaf38c542071c9430e602def8045))
10
+
11
+ ## 1.294.0 (2026-04-13)
12
+
13
+ Full Changelog: [v1.293.0...v1.294.0](https://github.com/Increase/increase-ruby/compare/v1.293.0...v1.294.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([18c4e93](https://github.com/Increase/increase-ruby/commit/18c4e93f6c76702b024e728e795e986ff7b80f5e))
18
+
3
19
  ## 1.293.0 (2026-04-13)
4
20
 
5
21
  Full Changelog: [v1.292.0...v1.293.0](https://github.com/Increase/increase-ruby/compare/v1.292.0...v1.293.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.293.0"
18
+ gem "increase", "~> 1.295.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -0,0 +1,214 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ module Simulations
6
+ # @see Increase::Resources::Simulations::CardPurchaseSupplements#create
7
+ class CardPurchaseSupplementCreateParams < Increase::Internal::Type::BaseModel
8
+ extend Increase::Internal::Type::RequestParameters::Converter
9
+ include Increase::Internal::Type::RequestParameters
10
+
11
+ # @!attribute transaction_id
12
+ # The identifier of the Transaction to create a Card Purchase Supplement for. The
13
+ # Transaction must have a source of type `card_settlement`.
14
+ #
15
+ # @return [String]
16
+ required :transaction_id, String
17
+
18
+ # @!attribute invoice
19
+ # Invoice-level information about the payment.
20
+ #
21
+ # @return [Increase::Models::Simulations::CardPurchaseSupplementCreateParams::Invoice, nil]
22
+ optional :invoice, -> { Increase::Simulations::CardPurchaseSupplementCreateParams::Invoice }
23
+
24
+ # @!attribute line_items
25
+ # Line item information, such as individual products purchased.
26
+ #
27
+ # @return [Array<Increase::Models::Simulations::CardPurchaseSupplementCreateParams::LineItem>, nil]
28
+ optional :line_items,
29
+ -> { Increase::Internal::Type::ArrayOf[Increase::Simulations::CardPurchaseSupplementCreateParams::LineItem] }
30
+
31
+ # @!method initialize(transaction_id:, invoice: nil, line_items: nil, request_options: {})
32
+ # Some parameter documentations has been truncated, see
33
+ # {Increase::Models::Simulations::CardPurchaseSupplementCreateParams} for more
34
+ # details.
35
+ #
36
+ # @param transaction_id [String] The identifier of the Transaction to create a Card Purchase Supplement for. The
37
+ #
38
+ # @param invoice [Increase::Models::Simulations::CardPurchaseSupplementCreateParams::Invoice] Invoice-level information about the payment.
39
+ #
40
+ # @param line_items [Array<Increase::Models::Simulations::CardPurchaseSupplementCreateParams::LineItem>] Line item information, such as individual products purchased.
41
+ #
42
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
43
+
44
+ class Invoice < Increase::Internal::Type::BaseModel
45
+ # @!attribute discount_amount
46
+ # Discount given to cardholder.
47
+ #
48
+ # @return [Integer, nil]
49
+ optional :discount_amount, Integer
50
+
51
+ # @!attribute duty_tax_amount
52
+ # Amount of duty taxes.
53
+ #
54
+ # @return [Integer, nil]
55
+ optional :duty_tax_amount, Integer
56
+
57
+ # @!attribute order_date
58
+ # Date the order was taken.
59
+ #
60
+ # @return [Date, nil]
61
+ optional :order_date, Date
62
+
63
+ # @!attribute shipping_amount
64
+ # The shipping cost.
65
+ #
66
+ # @return [Integer, nil]
67
+ optional :shipping_amount, Integer
68
+
69
+ # @!attribute shipping_destination_country_code
70
+ # Country code of the shipping destination.
71
+ #
72
+ # @return [String, nil]
73
+ optional :shipping_destination_country_code, String
74
+
75
+ # @!attribute shipping_destination_postal_code
76
+ # Postal code of the shipping destination.
77
+ #
78
+ # @return [String, nil]
79
+ optional :shipping_destination_postal_code, String
80
+
81
+ # @!attribute shipping_source_postal_code
82
+ # Postal code of the location being shipped from.
83
+ #
84
+ # @return [String, nil]
85
+ optional :shipping_source_postal_code, String
86
+
87
+ # @!attribute shipping_tax_amount
88
+ # Taxes paid for freight and shipping.
89
+ #
90
+ # @return [Integer, nil]
91
+ optional :shipping_tax_amount, Integer
92
+
93
+ # @!attribute shipping_tax_rate
94
+ # Tax rate for freight and shipping.
95
+ #
96
+ # @return [String, nil]
97
+ optional :shipping_tax_rate, String
98
+
99
+ # @!attribute unique_value_added_tax_invoice_reference
100
+ # Value added tax invoice reference number.
101
+ #
102
+ # @return [String, nil]
103
+ optional :unique_value_added_tax_invoice_reference, String
104
+
105
+ # @!method initialize(discount_amount: nil, duty_tax_amount: nil, order_date: nil, shipping_amount: nil, shipping_destination_country_code: nil, shipping_destination_postal_code: nil, shipping_source_postal_code: nil, shipping_tax_amount: nil, shipping_tax_rate: nil, unique_value_added_tax_invoice_reference: nil)
106
+ # Invoice-level information about the payment.
107
+ #
108
+ # @param discount_amount [Integer] Discount given to cardholder.
109
+ #
110
+ # @param duty_tax_amount [Integer] Amount of duty taxes.
111
+ #
112
+ # @param order_date [Date] Date the order was taken.
113
+ #
114
+ # @param shipping_amount [Integer] The shipping cost.
115
+ #
116
+ # @param shipping_destination_country_code [String] Country code of the shipping destination.
117
+ #
118
+ # @param shipping_destination_postal_code [String] Postal code of the shipping destination.
119
+ #
120
+ # @param shipping_source_postal_code [String] Postal code of the location being shipped from.
121
+ #
122
+ # @param shipping_tax_amount [Integer] Taxes paid for freight and shipping.
123
+ #
124
+ # @param shipping_tax_rate [String] Tax rate for freight and shipping.
125
+ #
126
+ # @param unique_value_added_tax_invoice_reference [String] Value added tax invoice reference number.
127
+ end
128
+
129
+ class LineItem < Increase::Internal::Type::BaseModel
130
+ # @!attribute discount_amount
131
+ # Discount amount for this specific line item.
132
+ #
133
+ # @return [Integer, nil]
134
+ optional :discount_amount, Integer
135
+
136
+ # @!attribute item_commodity_code
137
+ # Code used to categorize the purchase item.
138
+ #
139
+ # @return [String, nil]
140
+ optional :item_commodity_code, String
141
+
142
+ # @!attribute item_descriptor
143
+ # Description of the purchase item.
144
+ #
145
+ # @return [String, nil]
146
+ optional :item_descriptor, String
147
+
148
+ # @!attribute item_quantity
149
+ # The number of units of the product being purchased.
150
+ #
151
+ # @return [String, nil]
152
+ optional :item_quantity, String
153
+
154
+ # @!attribute product_code
155
+ # Code used to categorize the product being purchased.
156
+ #
157
+ # @return [String, nil]
158
+ optional :product_code, String
159
+
160
+ # @!attribute sales_tax_amount
161
+ # Sales tax amount for this line item.
162
+ #
163
+ # @return [Integer, nil]
164
+ optional :sales_tax_amount, Integer
165
+
166
+ # @!attribute sales_tax_rate
167
+ # Sales tax rate for this line item.
168
+ #
169
+ # @return [String, nil]
170
+ optional :sales_tax_rate, String
171
+
172
+ # @!attribute total_amount
173
+ # Total amount of all line items.
174
+ #
175
+ # @return [Integer, nil]
176
+ optional :total_amount, Integer
177
+
178
+ # @!attribute unit_cost
179
+ # Cost of line item per unit of measure, in major units.
180
+ #
181
+ # @return [String, nil]
182
+ optional :unit_cost, String
183
+
184
+ # @!attribute unit_of_measure_code
185
+ # Code indicating unit of measure (gallons, etc.).
186
+ #
187
+ # @return [String, nil]
188
+ optional :unit_of_measure_code, String
189
+
190
+ # @!method initialize(discount_amount: nil, item_commodity_code: nil, item_descriptor: nil, item_quantity: nil, product_code: nil, sales_tax_amount: nil, sales_tax_rate: nil, total_amount: nil, unit_cost: nil, unit_of_measure_code: nil)
191
+ # @param discount_amount [Integer] Discount amount for this specific line item.
192
+ #
193
+ # @param item_commodity_code [String] Code used to categorize the purchase item.
194
+ #
195
+ # @param item_descriptor [String] Description of the purchase item.
196
+ #
197
+ # @param item_quantity [String] The number of units of the product being purchased.
198
+ #
199
+ # @param product_code [String] Code used to categorize the product being purchased.
200
+ #
201
+ # @param sales_tax_amount [Integer] Sales tax amount for this line item.
202
+ #
203
+ # @param sales_tax_rate [String] Sales tax rate for this line item.
204
+ #
205
+ # @param total_amount [Integer] Total amount of all line items.
206
+ #
207
+ # @param unit_cost [String] Cost of line item per unit of measure, in major units.
208
+ #
209
+ # @param unit_of_measure_code [String] Code indicating unit of measure (gallons, etc.).
210
+ end
211
+ end
212
+ end
213
+ end
214
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Resources
5
+ class Simulations
6
+ class CardPurchaseSupplements
7
+ # Some parameter documentations has been truncated, see
8
+ # {Increase::Models::Simulations::CardPurchaseSupplementCreateParams} for more
9
+ # details.
10
+ #
11
+ # Simulates the creation of a Card Purchase Supplement (Level 3 data) for a card
12
+ # settlement. This happens asynchronously in production when Visa sends enhanced
13
+ # transaction data about a purchase.
14
+ #
15
+ # @overload create(transaction_id:, invoice: nil, line_items: nil, request_options: {})
16
+ #
17
+ # @param transaction_id [String] The identifier of the Transaction to create a Card Purchase Supplement for. The
18
+ #
19
+ # @param invoice [Increase::Models::Simulations::CardPurchaseSupplementCreateParams::Invoice] Invoice-level information about the payment.
20
+ #
21
+ # @param line_items [Array<Increase::Models::Simulations::CardPurchaseSupplementCreateParams::LineItem>] Line item information, such as individual products purchased.
22
+ #
23
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
24
+ #
25
+ # @return [Increase::Models::CardPurchaseSupplement]
26
+ #
27
+ # @see Increase::Models::Simulations::CardPurchaseSupplementCreateParams
28
+ def create(params)
29
+ parsed, options = Increase::Simulations::CardPurchaseSupplementCreateParams.dump_request(params)
30
+ @client.request(
31
+ method: :post,
32
+ path: "simulations/card_purchase_supplements",
33
+ body: parsed,
34
+ model: Increase::CardPurchaseSupplement,
35
+ options: options
36
+ )
37
+ end
38
+
39
+ # @api private
40
+ #
41
+ # @param client [Increase::Client]
42
+ def initialize(client:)
43
+ @client = client
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -6,9 +6,6 @@ module Increase
6
6
  # @return [Increase::Resources::Simulations::InterestPayments]
7
7
  attr_reader :interest_payments
8
8
 
9
- # @return [Increase::Resources::Simulations::AccountTransfers]
10
- attr_reader :account_transfers
11
-
12
9
  # @return [Increase::Resources::Simulations::CardAuthorizations]
13
10
  attr_reader :card_authorizations
14
11
 
@@ -36,6 +33,9 @@ module Increase
36
33
  # @return [Increase::Resources::Simulations::CardAuthentications]
37
34
  attr_reader :card_authentications
38
35
 
36
+ # @return [Increase::Resources::Simulations::CardPurchaseSupplements]
37
+ attr_reader :card_purchase_supplements
38
+
39
39
  # @return [Increase::Resources::Simulations::CardDisputes]
40
40
  attr_reader :card_disputes
41
41
 
@@ -108,7 +108,6 @@ module Increase
108
108
  def initialize(client:)
109
109
  @client = client
110
110
  @interest_payments = Increase::Resources::Simulations::InterestPayments.new(client: client)
111
- @account_transfers = Increase::Resources::Simulations::AccountTransfers.new(client: client)
112
111
  @card_authorizations = Increase::Resources::Simulations::CardAuthorizations.new(client: client)
113
112
  @card_balance_inquiries = Increase::Resources::Simulations::CardBalanceInquiries.new(client: client)
114
113
  @card_authorization_expirations =
@@ -119,6 +118,8 @@ module Increase
119
118
  @card_fuel_confirmations = Increase::Resources::Simulations::CardFuelConfirmations.new(client: client)
120
119
  @card_refunds = Increase::Resources::Simulations::CardRefunds.new(client: client)
121
120
  @card_authentications = Increase::Resources::Simulations::CardAuthentications.new(client: client)
121
+ @card_purchase_supplements =
122
+ Increase::Resources::Simulations::CardPurchaseSupplements.new(client: client)
122
123
  @card_disputes = Increase::Resources::Simulations::CardDisputes.new(client: client)
123
124
  @physical_cards = Increase::Resources::Simulations::PhysicalCards.new(client: client)
124
125
  @digital_wallet_token_requests =
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.293.0"
4
+ VERSION = "1.295.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -293,7 +293,6 @@ require_relative "increase/models/real_time_payments_transfer_retrieve_params"
293
293
  require_relative "increase/models/routing_number_list_params"
294
294
  require_relative "increase/models/routing_number_list_response"
295
295
  require_relative "increase/models/simulations/account_statement_create_params"
296
- require_relative "increase/models/simulations/account_transfer_complete_params"
297
296
  require_relative "increase/models/simulations/ach_transfer_acknowledge_params"
298
297
  require_relative "increase/models/simulations/ach_transfer_create_notification_of_change_params"
299
298
  require_relative "increase/models/simulations/ach_transfer_return_params"
@@ -309,6 +308,7 @@ require_relative "increase/models/simulations/card_balance_inquiry_create_params
309
308
  require_relative "increase/models/simulations/card_dispute_action_params"
310
309
  require_relative "increase/models/simulations/card_fuel_confirmation_create_params"
311
310
  require_relative "increase/models/simulations/card_increment_create_params"
311
+ require_relative "increase/models/simulations/card_purchase_supplement_create_params"
312
312
  require_relative "increase/models/simulations/card_refund_create_params"
313
313
  require_relative "increase/models/simulations/card_reversal_create_params"
314
314
  require_relative "increase/models/simulations/card_settlement_create_params"
@@ -418,7 +418,6 @@ require_relative "increase/resources/real_time_payments_transfers"
418
418
  require_relative "increase/resources/routing_numbers"
419
419
  require_relative "increase/resources/simulations"
420
420
  require_relative "increase/resources/simulations/account_statements"
421
- require_relative "increase/resources/simulations/account_transfers"
422
421
  require_relative "increase/resources/simulations/ach_transfers"
423
422
  require_relative "increase/resources/simulations/card_authentications"
424
423
  require_relative "increase/resources/simulations/card_authorization_expirations"
@@ -427,6 +426,7 @@ require_relative "increase/resources/simulations/card_balance_inquiries"
427
426
  require_relative "increase/resources/simulations/card_disputes"
428
427
  require_relative "increase/resources/simulations/card_fuel_confirmations"
429
428
  require_relative "increase/resources/simulations/card_increments"
429
+ require_relative "increase/resources/simulations/card_purchase_supplements"
430
430
  require_relative "increase/resources/simulations/card_refunds"
431
431
  require_relative "increase/resources/simulations/card_reversals"
432
432
  require_relative "increase/resources/simulations/card_settlements"