increase 1.230.0 → 1.232.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: 3c069c49ffaad5a87f57090b0daea50e24512280378abb5d295cbc5158fb23b2
4
- data.tar.gz: 5fe14f953df93c9e39821b77478614c2b0c1a244022de5420f7ec2ed3dc8cb02
3
+ metadata.gz: a8a6a763a923b10e2c130dfbbf12644589df72adb7e652058a46a1c7cd6f8bc2
4
+ data.tar.gz: 71097a299884ca3018f5aa15cdfda17c949a9da84cbcf05c570f0f733eae1703
5
5
  SHA512:
6
- metadata.gz: '03206181a8662cd554c3fe8792e1797055d3b40506bba0d11c32cf313fe48afd2ea92a30ea178ef86e00d5b7de0bed9624030ba722536f1a922f3eebff2ab188'
7
- data.tar.gz: 5f99e831d718444af4441e23505ddf64bd7f1626947c70d66170a8089a70f457eaef68790b072c0647843e2ee68062e678671d2eb88ca1261e1d46bfcf97d4d9
6
+ metadata.gz: 2753052736fd663dd7d5c691dc4f637dc30507bd7b55676ba863c6536628adf9b9c0c8ac769107fd93aab41f2cb4750387e069d4564af3835f55d99a16ceaefc
7
+ data.tar.gz: 326299cdfd1d6ea9adb8476a55b5f6715acf94a6dfb7f980690aacda021986cde1290ffd8d334f6d007f1080f7646ae5d1b460a1ee23719750eeae62a165ea31
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.232.0 (2026-03-05)
4
+
5
+ Full Changelog: [v1.231.0...v1.232.0](https://github.com/Increase/increase-ruby/compare/v1.231.0...v1.232.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([65e0b8f](https://github.com/Increase/increase-ruby/commit/65e0b8f40881298c3d7f9de56d6d5c44450d7d42))
10
+
11
+ ## 1.231.0 (2026-03-05)
12
+
13
+ Full Changelog: [v1.230.0...v1.231.0](https://github.com/Increase/increase-ruby/compare/v1.230.0...v1.231.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([0924a4a](https://github.com/Increase/increase-ruby/commit/0924a4a54f1510a80b4bac5a2a282c36e94e08a4))
18
+
3
19
  ## 1.230.0 (2026-03-05)
4
20
 
5
21
  Full Changelog: [v1.229.0...v1.230.0](https://github.com/Increase/increase-ruby/compare/v1.229.0...v1.230.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.230.0"
18
+ gem "increase", "~> 1.232.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -318,6 +318,13 @@ module Increase
318
318
  # @return [String]
319
319
  required :id, String
320
320
 
321
+ # @!attribute access_control_server_transaction_id
322
+ # A unique identifier assigned by the Access Control Server (us) for this
323
+ # transaction.
324
+ #
325
+ # @return [String]
326
+ required :access_control_server_transaction_id, String
327
+
321
328
  # @!attribute billing_address_city
322
329
  # The city of the cardholder billing address associated with the card used for
323
330
  # this purchase.
@@ -432,6 +439,13 @@ module Increase
432
439
  # @return [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel]
433
440
  required :device_channel, -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel }
434
441
 
442
+ # @!attribute directory_server_transaction_id
443
+ # A unique identifier assigned by the Directory Server (the card network) for this
444
+ # transaction.
445
+ #
446
+ # @return [String]
447
+ required :directory_server_transaction_id, String
448
+
435
449
  # @!attribute merchant_acceptor_id
436
450
  # The merchant identifier (commonly abbreviated as MID) of the merchant the card
437
451
  # is transacting with.
@@ -518,12 +532,69 @@ module Increase
518
532
  # @return [String]
519
533
  required :requestor_url, String
520
534
 
535
+ # @!attribute shipping_address_city
536
+ # The city of the shipping address associated with this purchase.
537
+ #
538
+ # @return [String, nil]
539
+ required :shipping_address_city, String, nil?: true
540
+
541
+ # @!attribute shipping_address_country
542
+ # The country of the shipping address associated with this purchase.
543
+ #
544
+ # @return [String, nil]
545
+ required :shipping_address_country, String, nil?: true
546
+
547
+ # @!attribute shipping_address_line1
548
+ # The first line of the shipping address associated with this purchase.
549
+ #
550
+ # @return [String, nil]
551
+ required :shipping_address_line1, String, nil?: true
552
+
553
+ # @!attribute shipping_address_line2
554
+ # The second line of the shipping address associated with this purchase.
555
+ #
556
+ # @return [String, nil]
557
+ required :shipping_address_line2, String, nil?: true
558
+
559
+ # @!attribute shipping_address_line3
560
+ # The third line of the shipping address associated with this purchase.
561
+ #
562
+ # @return [String, nil]
563
+ required :shipping_address_line3, String, nil?: true
564
+
565
+ # @!attribute shipping_address_postal_code
566
+ # The postal code of the shipping address associated with this purchase.
567
+ #
568
+ # @return [String, nil]
569
+ required :shipping_address_postal_code, String, nil?: true
570
+
571
+ # @!attribute shipping_address_state
572
+ # The US state of the shipping address associated with this purchase.
573
+ #
574
+ # @return [String, nil]
575
+ required :shipping_address_state, String, nil?: true
576
+
521
577
  # @!attribute status
522
578
  # The status of the card authentication.
523
579
  #
524
580
  # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Status]
525
581
  required :status, enum: -> { Increase::CardPayment::Element::CardAuthentication::Status }
526
582
 
583
+ # @!attribute three_d_secure_server_transaction_id
584
+ # A unique identifier assigned by the 3DS Server initiating the authentication
585
+ # attempt for this transaction.
586
+ #
587
+ # @return [String]
588
+ required :three_d_secure_server_transaction_id, String
589
+
590
+ # @!attribute transaction_type
591
+ # The type of transaction being authenticated.
592
+ #
593
+ # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::TransactionType, nil]
594
+ required :transaction_type,
595
+ enum: -> { Increase::CardPayment::Element::CardAuthentication::TransactionType },
596
+ nil?: true
597
+
527
598
  # @!attribute type
528
599
  # A constant representing the object's type. For this resource it will always be
529
600
  # `card_authentication`.
@@ -531,7 +602,7 @@ module Increase
531
602
  # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Type]
532
603
  required :type, enum: -> { Increase::CardPayment::Element::CardAuthentication::Type }
533
604
 
534
- # @!method initialize(id:, billing_address_city:, billing_address_country:, billing_address_line1:, billing_address_line2:, billing_address_line3:, billing_address_postal_code:, billing_address_state:, card_id:, card_payment_id:, cardholder_email:, cardholder_name:, category:, challenge:, created_at:, deny_reason:, device_channel:, merchant_acceptor_id:, merchant_category_code:, merchant_country:, merchant_name:, prior_card_authentication_id:, purchase_amount:, purchase_currency:, real_time_decision_id:, requestor_authentication_indicator:, requestor_challenge_indicator:, requestor_name:, requestor_url:, status:, type:)
605
+ # @!method initialize(id:, access_control_server_transaction_id:, billing_address_city:, billing_address_country:, billing_address_line1:, billing_address_line2:, billing_address_line3:, billing_address_postal_code:, billing_address_state:, card_id:, card_payment_id:, cardholder_email:, cardholder_name:, category:, challenge:, created_at:, deny_reason:, device_channel:, directory_server_transaction_id:, merchant_acceptor_id:, merchant_category_code:, merchant_country:, merchant_name:, prior_card_authentication_id:, purchase_amount:, purchase_currency:, real_time_decision_id:, requestor_authentication_indicator:, requestor_challenge_indicator:, requestor_name:, requestor_url:, shipping_address_city:, shipping_address_country:, shipping_address_line1:, shipping_address_line2:, shipping_address_line3:, shipping_address_postal_code:, shipping_address_state:, status:, three_d_secure_server_transaction_id:, transaction_type:, type:)
535
606
  # Some parameter documentations has been truncated, see
536
607
  # {Increase::Models::CardPayment::Element::CardAuthentication} for more details.
537
608
  #
@@ -541,6 +612,8 @@ module Increase
541
612
  #
542
613
  # @param id [String] The Card Authentication identifier.
543
614
  #
615
+ # @param access_control_server_transaction_id [String] A unique identifier assigned by the Access Control Server (us) for this transact
616
+ #
544
617
  # @param billing_address_city [String, nil] The city of the cardholder billing address associated with the card used for thi
545
618
  #
546
619
  # @param billing_address_country [String, nil] The country of the cardholder billing address associated with the card used for
@@ -573,6 +646,8 @@ module Increase
573
646
  #
574
647
  # @param device_channel [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel] The device channel of the card authentication attempt.
575
648
  #
649
+ # @param directory_server_transaction_id [String] A unique identifier assigned by the Directory Server (the card network) for this
650
+ #
576
651
  # @param merchant_acceptor_id [String] The merchant identifier (commonly abbreviated as MID) of the merchant the card i
577
652
  #
578
653
  # @param merchant_category_code [String] The Merchant Category Code (commonly abbreviated as MCC) of the merchant the car
@@ -597,8 +672,26 @@ module Increase
597
672
  #
598
673
  # @param requestor_url [String] The URL of the 3DS requestor.
599
674
  #
675
+ # @param shipping_address_city [String, nil] The city of the shipping address associated with this purchase.
676
+ #
677
+ # @param shipping_address_country [String, nil] The country of the shipping address associated with this purchase.
678
+ #
679
+ # @param shipping_address_line1 [String, nil] The first line of the shipping address associated with this purchase.
680
+ #
681
+ # @param shipping_address_line2 [String, nil] The second line of the shipping address associated with this purchase.
682
+ #
683
+ # @param shipping_address_line3 [String, nil] The third line of the shipping address associated with this purchase.
684
+ #
685
+ # @param shipping_address_postal_code [String, nil] The postal code of the shipping address associated with this purchase.
686
+ #
687
+ # @param shipping_address_state [String, nil] The US state of the shipping address associated with this purchase.
688
+ #
600
689
  # @param status [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Status] The status of the card authentication.
601
690
  #
691
+ # @param three_d_secure_server_transaction_id [String] A unique identifier assigned by the 3DS Server initiating the authentication att
692
+ #
693
+ # @param transaction_type [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::TransactionType, nil] The type of transaction being authenticated.
694
+ #
602
695
  # @param type [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Type] A constant representing the object's type. For this resource it will always be `
603
696
 
604
697
  # The category of the card authentication attempt.
@@ -776,12 +869,24 @@ module Increase
776
869
  required :category,
777
870
  enum: -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category }
778
871
 
779
- # @!method initialize(browser:, category:)
872
+ # @!attribute merchant_initiated
873
+ # Fields specific to merchant initiated transactions.
874
+ #
875
+ # @return [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated, nil]
876
+ required :merchant_initiated,
877
+ -> {
878
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated
879
+ },
880
+ nil?: true
881
+
882
+ # @!method initialize(browser:, category:, merchant_initiated:)
780
883
  # The device channel of the card authentication attempt.
781
884
  #
782
885
  # @param browser [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser, nil] Fields specific to the browser device channel.
783
886
  #
784
887
  # @param category [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Category] The category of the device channel.
888
+ #
889
+ # @param merchant_initiated [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated, nil] Fields specific to merchant initiated transactions.
785
890
 
786
891
  # @see Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel#browser
787
892
  class Browser < Increase::Internal::Type::BaseModel
@@ -867,6 +972,88 @@ module Increase
867
972
  # @!method self.values
868
973
  # @return [Array<Symbol>]
869
974
  end
975
+
976
+ # @see Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel#merchant_initiated
977
+ class MerchantInitiated < Increase::Internal::Type::BaseModel
978
+ # @!attribute indicator
979
+ # The merchant initiated indicator for the transaction.
980
+ #
981
+ # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator]
982
+ required :indicator,
983
+ enum: -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator }
984
+
985
+ # @!method initialize(indicator:)
986
+ # Fields specific to merchant initiated transactions.
987
+ #
988
+ # @param indicator [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator] The merchant initiated indicator for the transaction.
989
+
990
+ # The merchant initiated indicator for the transaction.
991
+ #
992
+ # @see Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated#indicator
993
+ module Indicator
994
+ extend Increase::Internal::Type::Enum
995
+
996
+ # Recurring transaction.
997
+ RECURRING_TRANSACTION = :recurring_transaction
998
+
999
+ # Installment transaction.
1000
+ INSTALLMENT_TRANSACTION = :installment_transaction
1001
+
1002
+ # Add card.
1003
+ ADD_CARD = :add_card
1004
+
1005
+ # Maintain card information.
1006
+ MAINTAIN_CARD_INFORMATION = :maintain_card_information
1007
+
1008
+ # Account verification.
1009
+ ACCOUNT_VERIFICATION = :account_verification
1010
+
1011
+ # Split or delayed shipment.
1012
+ SPLIT_DELAYED_SHIPMENT = :split_delayed_shipment
1013
+
1014
+ # Top up.
1015
+ TOP_UP = :top_up
1016
+
1017
+ # Mail order.
1018
+ MAIL_ORDER = :mail_order
1019
+
1020
+ # Telephone order.
1021
+ TELEPHONE_ORDER = :telephone_order
1022
+
1023
+ # Whitelist status check.
1024
+ WHITELIST_STATUS_CHECK = :whitelist_status_check
1025
+
1026
+ # Other payment.
1027
+ OTHER_PAYMENT = :other_payment
1028
+
1029
+ # Billing agreement.
1030
+ BILLING_AGREEMENT = :billing_agreement
1031
+
1032
+ # Device binding status check.
1033
+ DEVICE_BINDING_STATUS_CHECK = :device_binding_status_check
1034
+
1035
+ # Card security code status check.
1036
+ CARD_SECURITY_CODE_STATUS_CHECK = :card_security_code_status_check
1037
+
1038
+ # Delayed shipment.
1039
+ DELAYED_SHIPMENT = :delayed_shipment
1040
+
1041
+ # Split payment.
1042
+ SPLIT_PAYMENT = :split_payment
1043
+
1044
+ # FIDO credential deletion.
1045
+ FIDO_CREDENTIAL_DELETION = :fido_credential_deletion
1046
+
1047
+ # FIDO credential registration.
1048
+ FIDO_CREDENTIAL_REGISTRATION = :fido_credential_registration
1049
+
1050
+ # Decoupled authentication fallback.
1051
+ DECOUPLED_AUTHENTICATION_FALLBACK = :decoupled_authentication_fallback
1052
+
1053
+ # @!method self.values
1054
+ # @return [Array<Symbol>]
1055
+ end
1056
+ end
870
1057
  end
871
1058
 
872
1059
  # The 3DS requestor authentication indicator describes why the authentication
@@ -979,6 +1166,31 @@ module Increase
979
1166
  # @return [Array<Symbol>]
980
1167
  end
981
1168
 
1169
+ # The type of transaction being authenticated.
1170
+ #
1171
+ # @see Increase::Models::CardPayment::Element::CardAuthentication#transaction_type
1172
+ module TransactionType
1173
+ extend Increase::Internal::Type::Enum
1174
+
1175
+ # Purchase of goods or services.
1176
+ GOODS_SERVICE_PURCHASE = :goods_service_purchase
1177
+
1178
+ # Check acceptance.
1179
+ CHECK_ACCEPTANCE = :check_acceptance
1180
+
1181
+ # Account funding.
1182
+ ACCOUNT_FUNDING = :account_funding
1183
+
1184
+ # Quasi-cash transaction.
1185
+ QUASI_CASH_TRANSACTION = :quasi_cash_transaction
1186
+
1187
+ # Prepaid activation and load.
1188
+ PREPAID_ACTIVATION_AND_LOAD = :prepaid_activation_and_load
1189
+
1190
+ # @!method self.values
1191
+ # @return [Array<Symbol>]
1192
+ end
1193
+
982
1194
  # A constant representing the object's type. For this resource it will always be
983
1195
  # `card_authentication`.
984
1196
  #
@@ -0,0 +1,68 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ module Simulations
6
+ # @see Increase::Resources::Simulations::InboundCheckDeposits#adjustment
7
+ class InboundCheckDepositAdjustmentParams < Increase::Internal::Type::BaseModel
8
+ extend Increase::Internal::Type::RequestParameters::Converter
9
+ include Increase::Internal::Type::RequestParameters
10
+
11
+ # @!attribute inbound_check_deposit_id
12
+ # The identifier of the Inbound Check Deposit to adjust.
13
+ #
14
+ # @return [String]
15
+ required :inbound_check_deposit_id, String
16
+
17
+ # @!attribute amount
18
+ # The adjustment amount in cents. Defaults to the amount of the Inbound Check
19
+ # Deposit.
20
+ #
21
+ # @return [Integer, nil]
22
+ optional :amount, Integer
23
+
24
+ # @!attribute reason
25
+ # The reason for the adjustment. Defaults to `wrong_payee_credit`.
26
+ #
27
+ # @return [Symbol, Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::Reason, nil]
28
+ optional :reason, enum: -> { Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason }
29
+
30
+ # @!method initialize(inbound_check_deposit_id:, amount: nil, reason: nil, request_options: {})
31
+ # Some parameter documentations has been truncated, see
32
+ # {Increase::Models::Simulations::InboundCheckDepositAdjustmentParams} for more
33
+ # details.
34
+ #
35
+ # @param inbound_check_deposit_id [String] The identifier of the Inbound Check Deposit to adjust.
36
+ #
37
+ # @param amount [Integer] The adjustment amount in cents. Defaults to the amount of the Inbound Check Depo
38
+ #
39
+ # @param reason [Symbol, Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::Reason] The reason for the adjustment. Defaults to `wrong_payee_credit`.
40
+ #
41
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
42
+
43
+ # The reason for the adjustment. Defaults to `wrong_payee_credit`.
44
+ module Reason
45
+ extend Increase::Internal::Type::Enum
46
+
47
+ # The return was initiated too late and the receiving institution has responded with a Late Return Claim.
48
+ LATE_RETURN = :late_return
49
+
50
+ # The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
51
+ WRONG_PAYEE_CREDIT = :wrong_payee_credit
52
+
53
+ # The check was deposited with a different amount than what was written on the check.
54
+ ADJUSTED_AMOUNT = :adjusted_amount
55
+
56
+ # The recipient was not able to process the check. This usually happens for e.g., low quality images.
57
+ NON_CONFORMING_ITEM = :non_conforming_item
58
+
59
+ # The check has already been deposited elsewhere and so this is a duplicate.
60
+ PAID = :paid
61
+
62
+ # @!method self.values
63
+ # @return [Array<Symbol>]
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
@@ -41,6 +41,37 @@ module Increase
41
41
  )
42
42
  end
43
43
 
44
+ # Some parameter documentations has been truncated, see
45
+ # {Increase::Models::Simulations::InboundCheckDepositAdjustmentParams} for more
46
+ # details.
47
+ #
48
+ # Simulates an adjustment on an Inbound Check Deposit. The Inbound Check Deposit
49
+ # must have a `status` of `accepted`.
50
+ #
51
+ # @overload adjustment(inbound_check_deposit_id, amount: nil, reason: nil, request_options: {})
52
+ #
53
+ # @param inbound_check_deposit_id [String] The identifier of the Inbound Check Deposit to adjust.
54
+ #
55
+ # @param amount [Integer] The adjustment amount in cents. Defaults to the amount of the Inbound Check Depo
56
+ #
57
+ # @param reason [Symbol, Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::Reason] The reason for the adjustment. Defaults to `wrong_payee_credit`.
58
+ #
59
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
60
+ #
61
+ # @return [Increase::Models::InboundCheckDeposit]
62
+ #
63
+ # @see Increase::Models::Simulations::InboundCheckDepositAdjustmentParams
64
+ def adjustment(inbound_check_deposit_id, params = {})
65
+ parsed, options = Increase::Simulations::InboundCheckDepositAdjustmentParams.dump_request(params)
66
+ @client.request(
67
+ method: :post,
68
+ path: ["simulations/inbound_check_deposits/%1$s/adjustment", inbound_check_deposit_id],
69
+ body: parsed,
70
+ model: Increase::InboundCheckDeposit,
71
+ options: options
72
+ )
73
+ end
74
+
44
75
  # @api private
45
76
  #
46
77
  # @param client [Increase::Client]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.230.0"
4
+ VERSION = "1.232.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -313,6 +313,7 @@ require_relative "increase/models/simulations/digital_wallet_token_request_creat
313
313
  require_relative "increase/models/simulations/digital_wallet_token_request_create_response"
314
314
  require_relative "increase/models/simulations/export_create_params"
315
315
  require_relative "increase/models/simulations/inbound_ach_transfer_create_params"
316
+ require_relative "increase/models/simulations/inbound_check_deposit_adjustment_params"
316
317
  require_relative "increase/models/simulations/inbound_check_deposit_create_params"
317
318
  require_relative "increase/models/simulations/inbound_fednow_transfer_create_params"
318
319
  require_relative "increase/models/simulations/inbound_mail_item_create_params"