increase 1.16.0 → 1.18.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: 05c34133d29b41e2324539575497338d848b672c6a9d678f939ccac0d0e9c7e3
4
- data.tar.gz: 3021587175b154c108a8441032a70d09f2b2822bc07bc93652609394dab89438
3
+ metadata.gz: 3332c07b59b7f7d84e03b5d3f4036e52007bcfda58a22074e6ec63caed4d152d
4
+ data.tar.gz: c3d18d3dcc41f5d3e9389c3a3e67585e9669a84a06f82395925b67d6e70e0c5e
5
5
  SHA512:
6
- metadata.gz: fcb1ac03b67f20bb1c0986d21d4bab8a8e2c1dc33a9356f67fe2ce0257611e09bf3d917f76c87f26f5268ed7ca61cf78a7e0a2f84f24237f034574ec51397ae3
7
- data.tar.gz: 6f4d8005504ba8b3a24ce9abac2d5e0801567a21e5a90408b3c83583f2448cfc17a5d26a72665e265a8316390cc6926bd87a98a183735491a002fdca811d8ea8
6
+ metadata.gz: db4d8dc156ca5853aac1e6a3728b578a9ae3a3a7f343f84684547388a99dab10e892e7e795b594d6cc0b9f136a8721d5c5e2c968b22fb36aef970e8f5f5fd8f2
7
+ data.tar.gz: eb2790bfe5197beaa910ad89af0409050c3f97f35a618b036841653669213e20b9b45b2ba90cc65c26aa0d9c551737179e55adc41abf4cfebb0358f87f42e90e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.18.0 (2025-07-23)
4
+
5
+ Full Changelog: [v1.17.0...v1.18.0](https://github.com/Increase/increase-ruby/compare/v1.17.0...v1.18.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([74be015](https://github.com/Increase/increase-ruby/commit/74be0150a34f7236337cfff9de194670e9f7b7d4))
10
+
11
+ ## 1.17.0 (2025-07-22)
12
+
13
+ Full Changelog: [v1.16.0...v1.17.0](https://github.com/Increase/increase-ruby/compare/v1.16.0...v1.17.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([c97cfd4](https://github.com/Increase/increase-ruby/commit/c97cfd42049607113b683af73cca4c3dad439d7d))
18
+
3
19
  ## 1.16.0 (2025-07-22)
4
20
 
5
21
  Full Changelog: [v1.15.0...v1.16.0](https://github.com/Increase/increase-ruby/compare/v1.15.0...v1.16.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.16.0"
18
+ gem "increase", "~> 1.18.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -43,13 +43,6 @@ module Increase
43
43
  # @return [String, nil]
44
44
  optional :digital_wallet_token_id, String
45
45
 
46
- # @!attribute direction
47
- # The direction describes the direction the funds will move, either from the
48
- # cardholder to the merchant or from the merchant to the cardholder.
49
- #
50
- # @return [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::Direction, nil]
51
- optional :direction, enum: -> { Increase::Simulations::CardAuthorizationCreateParams::Direction }
52
-
53
46
  # @!attribute event_subscription_id
54
47
  # The identifier of the Event Subscription to use. If provided, will override the
55
48
  # default real time event subscription. Because you can only create one real time
@@ -116,6 +109,14 @@ module Increase
116
109
  # @return [String, nil]
117
110
  optional :physical_card_id, String
118
111
 
112
+ # @!attribute processing_category
113
+ # Fields specific to a specific type of authorization, such as Automatic Fuel
114
+ # Dispensers, Refund Authorizations, or Cash Disbursements.
115
+ #
116
+ # @return [Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory, nil]
117
+ optional :processing_category,
118
+ -> { Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory }
119
+
119
120
  # @!attribute terminal_id
120
121
  # The terminal identifier (commonly abbreviated as TID) of the terminal the card
121
122
  # is transacting with.
@@ -123,7 +124,7 @@ module Increase
123
124
  # @return [String, nil]
124
125
  optional :terminal_id, String
125
126
 
126
- # @!method initialize(amount:, authenticated_card_payment_id: nil, card_id: nil, decline_reason: nil, digital_wallet_token_id: nil, direction: nil, event_subscription_id: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_city: nil, merchant_country: nil, merchant_descriptor: nil, merchant_state: nil, network_details: nil, network_risk_score: nil, physical_card_id: nil, terminal_id: nil, request_options: {})
127
+ # @!method initialize(amount:, authenticated_card_payment_id: nil, card_id: nil, decline_reason: nil, digital_wallet_token_id: nil, event_subscription_id: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_city: nil, merchant_country: nil, merchant_descriptor: nil, merchant_state: nil, network_details: nil, network_risk_score: nil, physical_card_id: nil, processing_category: nil, terminal_id: nil, request_options: {})
127
128
  # Some parameter documentations has been truncated, see
128
129
  # {Increase::Models::Simulations::CardAuthorizationCreateParams} for more details.
129
130
  #
@@ -137,8 +138,6 @@ module Increase
137
138
  #
138
139
  # @param digital_wallet_token_id [String] The identifier of the Digital Wallet Token to be authorized.
139
140
  #
140
- # @param direction [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::Direction] The direction describes the direction the funds will move, either from the cardh
141
- #
142
141
  # @param event_subscription_id [String] The identifier of the Event Subscription to use. If provided, will override the
143
142
  #
144
143
  # @param merchant_acceptor_id [String] The merchant identifier (commonly abbreviated as MID) of the merchant the card i
@@ -159,6 +158,8 @@ module Increase
159
158
  #
160
159
  # @param physical_card_id [String] The identifier of the Physical Card to be authorized.
161
160
  #
161
+ # @param processing_category [Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory] Fields specific to a specific type of authorization, such as Automatic Fuel Disp
162
+ #
162
163
  # @param terminal_id [String] The terminal identifier (commonly abbreviated as TID) of the terminal the card i
163
164
  #
164
165
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
@@ -232,21 +233,6 @@ module Increase
232
233
  # @return [Array<Symbol>]
233
234
  end
234
235
 
235
- # The direction describes the direction the funds will move, either from the
236
- # cardholder to the merchant or from the merchant to the cardholder.
237
- module Direction
238
- extend Increase::Internal::Type::Enum
239
-
240
- # A regular card authorization where funds are debited from the cardholder.
241
- SETTLEMENT = :settlement
242
-
243
- # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder.
244
- REFUND = :refund
245
-
246
- # @!method self.values
247
- # @return [Array<Symbol>]
248
- end
249
-
250
236
  class NetworkDetails < Increase::Internal::Type::BaseModel
251
237
  # @!attribute visa
252
238
  # Fields specific to the Visa network.
@@ -309,6 +295,63 @@ module Increase
309
295
  end
310
296
  end
311
297
  end
298
+
299
+ class ProcessingCategory < Increase::Internal::Type::BaseModel
300
+ # @!attribute category
301
+ # The processing category describes the intent behind the authorization, such as
302
+ # whether it was used for bill payments or an automatic fuel dispenser.
303
+ #
304
+ # @return [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category]
305
+ required :category,
306
+ enum: -> {
307
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category
308
+ }
309
+
310
+ # @!method initialize(category:)
311
+ # Some parameter documentations has been truncated, see
312
+ # {Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory}
313
+ # for more details.
314
+ #
315
+ # Fields specific to a specific type of authorization, such as Automatic Fuel
316
+ # Dispensers, Refund Authorizations, or Cash Disbursements.
317
+ #
318
+ # @param category [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category] The processing category describes the intent behind the authorization, such as w
319
+
320
+ # The processing category describes the intent behind the authorization, such as
321
+ # whether it was used for bill payments or an automatic fuel dispenser.
322
+ #
323
+ # @see Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory#category
324
+ module Category
325
+ extend Increase::Internal::Type::Enum
326
+
327
+ # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts.
328
+ ACCOUNT_FUNDING = :account_funding
329
+
330
+ # Automatic fuel dispenser authorizations occur when a card is used at a gas pump, prior to the actual transaction amount being known. They are followed by an advice message that updates the amount of the pending transaction.
331
+ AUTOMATIC_FUEL_DISPENSER = :automatic_fuel_dispenser
332
+
333
+ # A transaction used to pay a bill.
334
+ BILL_PAYMENT = :bill_payment
335
+
336
+ # Original credit transactions are used to send money to a cardholder.
337
+ ORIGINAL_CREDIT = :original_credit
338
+
339
+ # A regular purchase.
340
+ PURCHASE = :purchase
341
+
342
+ # Quasi-cash transactions represent purchases of items which may be convertible to cash.
343
+ QUASI_CASH = :quasi_cash
344
+
345
+ # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder.
346
+ REFUND = :refund
347
+
348
+ # Cash disbursement transactions are used to withdraw cash from an ATM or a point of sale.
349
+ CASH_DISBURSEMENT = :cash_disbursement
350
+
351
+ # @!method self.values
352
+ # @return [Array<Symbol>]
353
+ end
354
+ end
312
355
  end
313
356
  end
314
357
  end
@@ -138,7 +138,7 @@ module Increase
138
138
  )
139
139
  end
140
140
 
141
- # Request a stop payment on a Check Transfer
141
+ # Stop payment on a Check Transfer
142
142
  #
143
143
  # @overload stop_payment(check_transfer_id, reason: nil, request_options: {})
144
144
  #
@@ -15,7 +15,7 @@ module Increase
15
15
  # [Digital Wallet Token](#digital-wallet-tokens) id to simulate the two different
16
16
  # ways purchases can be made.
17
17
  #
18
- # @overload create(amount:, authenticated_card_payment_id: nil, card_id: nil, decline_reason: nil, digital_wallet_token_id: nil, direction: nil, event_subscription_id: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_city: nil, merchant_country: nil, merchant_descriptor: nil, merchant_state: nil, network_details: nil, network_risk_score: nil, physical_card_id: nil, terminal_id: nil, request_options: {})
18
+ # @overload create(amount:, authenticated_card_payment_id: nil, card_id: nil, decline_reason: nil, digital_wallet_token_id: nil, event_subscription_id: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_city: nil, merchant_country: nil, merchant_descriptor: nil, merchant_state: nil, network_details: nil, network_risk_score: nil, physical_card_id: nil, processing_category: nil, terminal_id: nil, request_options: {})
19
19
  #
20
20
  # @param amount [Integer] The authorization amount in cents.
21
21
  #
@@ -27,8 +27,6 @@ module Increase
27
27
  #
28
28
  # @param digital_wallet_token_id [String] The identifier of the Digital Wallet Token to be authorized.
29
29
  #
30
- # @param direction [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::Direction] The direction describes the direction the funds will move, either from the cardh
31
- #
32
30
  # @param event_subscription_id [String] The identifier of the Event Subscription to use. If provided, will override the
33
31
  #
34
32
  # @param merchant_acceptor_id [String] The merchant identifier (commonly abbreviated as MID) of the merchant the card i
@@ -49,6 +47,8 @@ module Increase
49
47
  #
50
48
  # @param physical_card_id [String] The identifier of the Physical Card to be authorized.
51
49
  #
50
+ # @param processing_category [Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory] Fields specific to a specific type of authorization, such as Automatic Fuel Disp
51
+ #
52
52
  # @param terminal_id [String] The terminal identifier (commonly abbreviated as TID) of the terminal the card i
53
53
  #
54
54
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.16.0"
4
+ VERSION = "1.18.0"
5
5
  end
@@ -60,25 +60,6 @@ module Increase
60
60
  sig { params(digital_wallet_token_id: String).void }
61
61
  attr_writer :digital_wallet_token_id
62
62
 
63
- # The direction describes the direction the funds will move, either from the
64
- # cardholder to the merchant or from the merchant to the cardholder.
65
- sig do
66
- returns(
67
- T.nilable(
68
- Increase::Simulations::CardAuthorizationCreateParams::Direction::OrSymbol
69
- )
70
- )
71
- end
72
- attr_reader :direction
73
-
74
- sig do
75
- params(
76
- direction:
77
- Increase::Simulations::CardAuthorizationCreateParams::Direction::OrSymbol
78
- ).void
79
- end
80
- attr_writer :direction
81
-
82
63
  # The identifier of the Event Subscription to use. If provided, will override the
83
64
  # default real time event subscription. Because you can only create one real time
84
65
  # decision event subscription, you can use this field to route events to any
@@ -166,6 +147,25 @@ module Increase
166
147
  sig { params(physical_card_id: String).void }
167
148
  attr_writer :physical_card_id
168
149
 
150
+ # Fields specific to a specific type of authorization, such as Automatic Fuel
151
+ # Dispensers, Refund Authorizations, or Cash Disbursements.
152
+ sig do
153
+ returns(
154
+ T.nilable(
155
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory
156
+ )
157
+ )
158
+ end
159
+ attr_reader :processing_category
160
+
161
+ sig do
162
+ params(
163
+ processing_category:
164
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::OrHash
165
+ ).void
166
+ end
167
+ attr_writer :processing_category
168
+
169
169
  # The terminal identifier (commonly abbreviated as TID) of the terminal the card
170
170
  # is transacting with.
171
171
  sig { returns(T.nilable(String)) }
@@ -182,8 +182,6 @@ module Increase
182
182
  decline_reason:
183
183
  Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::OrSymbol,
184
184
  digital_wallet_token_id: String,
185
- direction:
186
- Increase::Simulations::CardAuthorizationCreateParams::Direction::OrSymbol,
187
185
  event_subscription_id: String,
188
186
  merchant_acceptor_id: String,
189
187
  merchant_category_code: String,
@@ -195,6 +193,8 @@ module Increase
195
193
  Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::OrHash,
196
194
  network_risk_score: Integer,
197
195
  physical_card_id: String,
196
+ processing_category:
197
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::OrHash,
198
198
  terminal_id: String,
199
199
  request_options: Increase::RequestOptions::OrHash
200
200
  ).returns(T.attached_class)
@@ -212,9 +212,6 @@ module Increase
212
212
  decline_reason: nil,
213
213
  # The identifier of the Digital Wallet Token to be authorized.
214
214
  digital_wallet_token_id: nil,
215
- # The direction describes the direction the funds will move, either from the
216
- # cardholder to the merchant or from the merchant to the cardholder.
217
- direction: nil,
218
215
  # The identifier of the Event Subscription to use. If provided, will override the
219
216
  # default real time event subscription. Because you can only create one real time
220
217
  # decision event subscription, you can use this field to route events to any
@@ -241,6 +238,9 @@ module Increase
241
238
  network_risk_score: nil,
242
239
  # The identifier of the Physical Card to be authorized.
243
240
  physical_card_id: nil,
241
+ # Fields specific to a specific type of authorization, such as Automatic Fuel
242
+ # Dispensers, Refund Authorizations, or Cash Disbursements.
243
+ processing_category: nil,
244
244
  # The terminal identifier (commonly abbreviated as TID) of the terminal the card
245
245
  # is transacting with.
246
246
  terminal_id: nil,
@@ -257,8 +257,6 @@ module Increase
257
257
  decline_reason:
258
258
  Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::OrSymbol,
259
259
  digital_wallet_token_id: String,
260
- direction:
261
- Increase::Simulations::CardAuthorizationCreateParams::Direction::OrSymbol,
262
260
  event_subscription_id: String,
263
261
  merchant_acceptor_id: String,
264
262
  merchant_category_code: String,
@@ -270,6 +268,8 @@ module Increase
270
268
  Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails,
271
269
  network_risk_score: Integer,
272
270
  physical_card_id: String,
271
+ processing_category:
272
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory,
273
273
  terminal_id: String,
274
274
  request_options: Increase::RequestOptions
275
275
  }
@@ -443,45 +443,6 @@ module Increase
443
443
  end
444
444
  end
445
445
 
446
- # The direction describes the direction the funds will move, either from the
447
- # cardholder to the merchant or from the merchant to the cardholder.
448
- module Direction
449
- extend Increase::Internal::Type::Enum
450
-
451
- TaggedSymbol =
452
- T.type_alias do
453
- T.all(
454
- Symbol,
455
- Increase::Simulations::CardAuthorizationCreateParams::Direction
456
- )
457
- end
458
- OrSymbol = T.type_alias { T.any(Symbol, String) }
459
-
460
- # A regular card authorization where funds are debited from the cardholder.
461
- SETTLEMENT =
462
- T.let(
463
- :settlement,
464
- Increase::Simulations::CardAuthorizationCreateParams::Direction::TaggedSymbol
465
- )
466
-
467
- # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder.
468
- REFUND =
469
- T.let(
470
- :refund,
471
- Increase::Simulations::CardAuthorizationCreateParams::Direction::TaggedSymbol
472
- )
473
-
474
- sig do
475
- override.returns(
476
- T::Array[
477
- Increase::Simulations::CardAuthorizationCreateParams::Direction::TaggedSymbol
478
- ]
479
- )
480
- end
481
- def self.values
482
- end
483
- end
484
-
485
446
  class NetworkDetails < Increase::Internal::Type::BaseModel
486
447
  OrHash =
487
448
  T.type_alias do
@@ -656,6 +617,132 @@ module Increase
656
617
  end
657
618
  end
658
619
  end
620
+
621
+ class ProcessingCategory < Increase::Internal::Type::BaseModel
622
+ OrHash =
623
+ T.type_alias do
624
+ T.any(
625
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory,
626
+ Increase::Internal::AnyHash
627
+ )
628
+ end
629
+
630
+ # The processing category describes the intent behind the authorization, such as
631
+ # whether it was used for bill payments or an automatic fuel dispenser.
632
+ sig do
633
+ returns(
634
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol
635
+ )
636
+ end
637
+ attr_accessor :category
638
+
639
+ # Fields specific to a specific type of authorization, such as Automatic Fuel
640
+ # Dispensers, Refund Authorizations, or Cash Disbursements.
641
+ sig do
642
+ params(
643
+ category:
644
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol
645
+ ).returns(T.attached_class)
646
+ end
647
+ def self.new(
648
+ # The processing category describes the intent behind the authorization, such as
649
+ # whether it was used for bill payments or an automatic fuel dispenser.
650
+ category:
651
+ )
652
+ end
653
+
654
+ sig do
655
+ override.returns(
656
+ {
657
+ category:
658
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol
659
+ }
660
+ )
661
+ end
662
+ def to_hash
663
+ end
664
+
665
+ # The processing category describes the intent behind the authorization, such as
666
+ # whether it was used for bill payments or an automatic fuel dispenser.
667
+ module Category
668
+ extend Increase::Internal::Type::Enum
669
+
670
+ TaggedSymbol =
671
+ T.type_alias do
672
+ T.all(
673
+ Symbol,
674
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category
675
+ )
676
+ end
677
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
678
+
679
+ # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts.
680
+ ACCOUNT_FUNDING =
681
+ T.let(
682
+ :account_funding,
683
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol
684
+ )
685
+
686
+ # Automatic fuel dispenser authorizations occur when a card is used at a gas pump, prior to the actual transaction amount being known. They are followed by an advice message that updates the amount of the pending transaction.
687
+ AUTOMATIC_FUEL_DISPENSER =
688
+ T.let(
689
+ :automatic_fuel_dispenser,
690
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol
691
+ )
692
+
693
+ # A transaction used to pay a bill.
694
+ BILL_PAYMENT =
695
+ T.let(
696
+ :bill_payment,
697
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol
698
+ )
699
+
700
+ # Original credit transactions are used to send money to a cardholder.
701
+ ORIGINAL_CREDIT =
702
+ T.let(
703
+ :original_credit,
704
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol
705
+ )
706
+
707
+ # A regular purchase.
708
+ PURCHASE =
709
+ T.let(
710
+ :purchase,
711
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol
712
+ )
713
+
714
+ # Quasi-cash transactions represent purchases of items which may be convertible to cash.
715
+ QUASI_CASH =
716
+ T.let(
717
+ :quasi_cash,
718
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol
719
+ )
720
+
721
+ # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder.
722
+ REFUND =
723
+ T.let(
724
+ :refund,
725
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol
726
+ )
727
+
728
+ # Cash disbursement transactions are used to withdraw cash from an ATM or a point of sale.
729
+ CASH_DISBURSEMENT =
730
+ T.let(
731
+ :cash_disbursement,
732
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol
733
+ )
734
+
735
+ sig do
736
+ override.returns(
737
+ T::Array[
738
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol
739
+ ]
740
+ )
741
+ end
742
+ def self.values
743
+ end
744
+ end
745
+ end
659
746
  end
660
747
  end
661
748
  end
@@ -120,7 +120,7 @@ module Increase
120
120
  )
121
121
  end
122
122
 
123
- # Request a stop payment on a Check Transfer
123
+ # Stop payment on a Check Transfer
124
124
  sig do
125
125
  params(
126
126
  check_transfer_id: String,
@@ -19,8 +19,6 @@ module Increase
19
19
  decline_reason:
20
20
  Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::OrSymbol,
21
21
  digital_wallet_token_id: String,
22
- direction:
23
- Increase::Simulations::CardAuthorizationCreateParams::Direction::OrSymbol,
24
22
  event_subscription_id: String,
25
23
  merchant_acceptor_id: String,
26
24
  merchant_category_code: String,
@@ -32,6 +30,8 @@ module Increase
32
30
  Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::OrHash,
33
31
  network_risk_score: Integer,
34
32
  physical_card_id: String,
33
+ processing_category:
34
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::OrHash,
35
35
  terminal_id: String,
36
36
  request_options: Increase::RequestOptions::OrHash
37
37
  ).returns(
@@ -51,9 +51,6 @@ module Increase
51
51
  decline_reason: nil,
52
52
  # The identifier of the Digital Wallet Token to be authorized.
53
53
  digital_wallet_token_id: nil,
54
- # The direction describes the direction the funds will move, either from the
55
- # cardholder to the merchant or from the merchant to the cardholder.
56
- direction: nil,
57
54
  # The identifier of the Event Subscription to use. If provided, will override the
58
55
  # default real time event subscription. Because you can only create one real time
59
56
  # decision event subscription, you can use this field to route events to any
@@ -80,6 +77,9 @@ module Increase
80
77
  network_risk_score: nil,
81
78
  # The identifier of the Physical Card to be authorized.
82
79
  physical_card_id: nil,
80
+ # Fields specific to a specific type of authorization, such as Automatic Fuel
81
+ # Dispensers, Refund Authorizations, or Cash Disbursements.
82
+ processing_category: nil,
83
83
  # The terminal identifier (commonly abbreviated as TID) of the terminal the card
84
84
  # is transacting with.
85
85
  terminal_id: nil,
@@ -8,7 +8,6 @@ module Increase
8
8
  card_id: String,
9
9
  decline_reason: Increase::Models::Simulations::CardAuthorizationCreateParams::decline_reason,
10
10
  digital_wallet_token_id: String,
11
- direction: Increase::Models::Simulations::CardAuthorizationCreateParams::direction,
12
11
  event_subscription_id: String,
13
12
  merchant_acceptor_id: String,
14
13
  merchant_category_code: String,
@@ -19,6 +18,7 @@ module Increase
19
18
  network_details: Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails,
20
19
  network_risk_score: Integer,
21
20
  physical_card_id: String,
21
+ processing_category: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory,
22
22
  terminal_id: String
23
23
  }
24
24
  & Increase::Internal::Type::request_parameters
@@ -47,12 +47,6 @@ module Increase
47
47
 
48
48
  def digital_wallet_token_id=: (String) -> String
49
49
 
50
- attr_reader direction: Increase::Models::Simulations::CardAuthorizationCreateParams::direction?
51
-
52
- def direction=: (
53
- Increase::Models::Simulations::CardAuthorizationCreateParams::direction
54
- ) -> Increase::Models::Simulations::CardAuthorizationCreateParams::direction
55
-
56
50
  attr_reader event_subscription_id: String?
57
51
 
58
52
  def event_subscription_id=: (String) -> String
@@ -95,6 +89,12 @@ module Increase
95
89
 
96
90
  def physical_card_id=: (String) -> String
97
91
 
92
+ attr_reader processing_category: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory?
93
+
94
+ def processing_category=: (
95
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory
96
+ ) -> Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory
97
+
98
98
  attr_reader terminal_id: String?
99
99
 
100
100
  def terminal_id=: (String) -> String
@@ -105,7 +105,6 @@ module Increase
105
105
  ?card_id: String,
106
106
  ?decline_reason: Increase::Models::Simulations::CardAuthorizationCreateParams::decline_reason,
107
107
  ?digital_wallet_token_id: String,
108
- ?direction: Increase::Models::Simulations::CardAuthorizationCreateParams::direction,
109
108
  ?event_subscription_id: String,
110
109
  ?merchant_acceptor_id: String,
111
110
  ?merchant_category_code: String,
@@ -116,6 +115,7 @@ module Increase
116
115
  ?network_details: Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails,
117
116
  ?network_risk_score: Integer,
118
117
  ?physical_card_id: String,
118
+ ?processing_category: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory,
119
119
  ?terminal_id: String,
120
120
  ?request_options: Increase::request_opts
121
121
  ) -> void
@@ -126,7 +126,6 @@ module Increase
126
126
  card_id: String,
127
127
  decline_reason: Increase::Models::Simulations::CardAuthorizationCreateParams::decline_reason,
128
128
  digital_wallet_token_id: String,
129
- direction: Increase::Models::Simulations::CardAuthorizationCreateParams::direction,
130
129
  event_subscription_id: String,
131
130
  merchant_acceptor_id: String,
132
131
  merchant_category_code: String,
@@ -137,6 +136,7 @@ module Increase
137
136
  network_details: Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails,
138
137
  network_risk_score: Integer,
139
138
  physical_card_id: String,
139
+ processing_category: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory,
140
140
  terminal_id: String,
141
141
  request_options: Increase::RequestOptions
142
142
  }
@@ -229,20 +229,6 @@ module Increase
229
229
  def self?.values: -> ::Array[Increase::Models::Simulations::CardAuthorizationCreateParams::decline_reason]
230
230
  end
231
231
 
232
- type direction = :settlement | :refund
233
-
234
- module Direction
235
- extend Increase::Internal::Type::Enum
236
-
237
- # A regular card authorization where funds are debited from the cardholder.
238
- SETTLEMENT: :settlement
239
-
240
- # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder.
241
- REFUND: :refund
242
-
243
- def self?.values: -> ::Array[Increase::Models::Simulations::CardAuthorizationCreateParams::direction]
244
- end
245
-
246
232
  type network_details =
247
233
  {
248
234
  visa: Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa
@@ -316,6 +302,63 @@ module Increase
316
302
  end
317
303
  end
318
304
  end
305
+
306
+ type processing_category =
307
+ {
308
+ category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category
309
+ }
310
+
311
+ class ProcessingCategory < Increase::Internal::Type::BaseModel
312
+ attr_accessor category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category
313
+
314
+ def initialize: (
315
+ category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category
316
+ ) -> void
317
+
318
+ def to_hash: -> {
319
+ category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category
320
+ }
321
+
322
+ type category =
323
+ :account_funding
324
+ | :automatic_fuel_dispenser
325
+ | :bill_payment
326
+ | :original_credit
327
+ | :purchase
328
+ | :quasi_cash
329
+ | :refund
330
+ | :cash_disbursement
331
+
332
+ module Category
333
+ extend Increase::Internal::Type::Enum
334
+
335
+ # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts.
336
+ ACCOUNT_FUNDING: :account_funding
337
+
338
+ # Automatic fuel dispenser authorizations occur when a card is used at a gas pump, prior to the actual transaction amount being known. They are followed by an advice message that updates the amount of the pending transaction.
339
+ AUTOMATIC_FUEL_DISPENSER: :automatic_fuel_dispenser
340
+
341
+ # A transaction used to pay a bill.
342
+ BILL_PAYMENT: :bill_payment
343
+
344
+ # Original credit transactions are used to send money to a cardholder.
345
+ ORIGINAL_CREDIT: :original_credit
346
+
347
+ # A regular purchase.
348
+ PURCHASE: :purchase
349
+
350
+ # Quasi-cash transactions represent purchases of items which may be convertible to cash.
351
+ QUASI_CASH: :quasi_cash
352
+
353
+ # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder.
354
+ REFUND: :refund
355
+
356
+ # Cash disbursement transactions are used to withdraw cash from an ATM or a point of sale.
357
+ CASH_DISBURSEMENT: :cash_disbursement
358
+
359
+ def self?.values: -> ::Array[Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category]
360
+ end
361
+ end
319
362
  end
320
363
  end
321
364
  end
@@ -8,7 +8,6 @@ module Increase
8
8
  ?card_id: String,
9
9
  ?decline_reason: Increase::Models::Simulations::CardAuthorizationCreateParams::decline_reason,
10
10
  ?digital_wallet_token_id: String,
11
- ?direction: Increase::Models::Simulations::CardAuthorizationCreateParams::direction,
12
11
  ?event_subscription_id: String,
13
12
  ?merchant_acceptor_id: String,
14
13
  ?merchant_category_code: String,
@@ -19,6 +18,7 @@ module Increase
19
18
  ?network_details: Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails,
20
19
  ?network_risk_score: Integer,
21
20
  ?physical_card_id: String,
21
+ ?processing_category: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory,
22
22
  ?terminal_id: String,
23
23
  ?request_options: Increase::request_opts
24
24
  ) -> Increase::Models::Simulations::CardAuthorizationCreateResponse
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-22 00:00:00.000000000 Z
11
+ date: 2025-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool