increase 1.115.0 → 1.116.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 +8 -0
- data/README.md +1 -1
- data/lib/increase/models/simulations/card_refund_create_params.rb +10 -1
- data/lib/increase/resources/simulations/card_refunds.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/simulations/card_refund_create_params.rbi +13 -0
- data/rbi/increase/resources/simulations/card_refunds.rbi +4 -0
- data/sig/increase/models/simulations/card_refund_create_params.rbs +11 -1
- data/sig/increase/resources/simulations/card_refunds.rbs +1 -0
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 1f603d150d58551ed768c287938833ae182c1592c0c471275e13887d419d3e84
         | 
| 4 | 
            +
              data.tar.gz: c07e87205dc91864e238afdcd14d510d2305cb01d41ebc5c1b8308a3424a8998
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 704d99b034e6fc1d9eebcc4a6ad2339a3186598622818f5299e2addd7381dee380a7dd75ae9d90e0adf669b06fcac7304c0be1de3ee9e48959ae73d18a9746f9
         | 
| 7 | 
            +
              data.tar.gz: 390359466dcba5f8580bba02f285a17e3986216156c32b77e9d9d0c61609508ef8ab76dcfe5e389a3d37cf8694a31a87718714e32dadbf21fac75609643ab756
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,5 +1,13 @@ | |
| 1 1 | 
             
            # Changelog
         | 
| 2 2 |  | 
| 3 | 
            +
            ## 1.116.0 (2025-10-27)
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            Full Changelog: [v1.115.0...v1.116.0](https://github.com/Increase/increase-ruby/compare/v1.115.0...v1.116.0)
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            ### Features
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            * **api:** api update ([bcb588d](https://github.com/Increase/increase-ruby/commit/bcb588d1864aafbf4a1b99b65a02bc37005bf4d2))
         | 
| 10 | 
            +
             | 
| 3 11 | 
             
            ## 1.115.0 (2025-10-26)
         | 
| 4 12 |  | 
| 5 13 | 
             
            Full Changelog: [v1.114.0...v1.115.0](https://github.com/Increase/increase-ruby/compare/v1.114.0...v1.115.0)
         | 
    
        data/README.md
    CHANGED
    
    
| @@ -8,6 +8,13 @@ module Increase | |
| 8 8 | 
             
                    extend Increase::Internal::Type::RequestParameters::Converter
         | 
| 9 9 | 
             
                    include Increase::Internal::Type::RequestParameters
         | 
| 10 10 |  | 
| 11 | 
            +
                    # @!attribute amount
         | 
| 12 | 
            +
                    #   The refund amount in cents. Pulled off the `pending_transaction` or the
         | 
| 13 | 
            +
                    #   `transaction` if not provided.
         | 
| 14 | 
            +
                    #
         | 
| 15 | 
            +
                    #   @return [Integer, nil]
         | 
| 16 | 
            +
                    optional :amount, Integer
         | 
| 17 | 
            +
             | 
| 11 18 | 
             
                    # @!attribute pending_transaction_id
         | 
| 12 19 | 
             
                    #   The identifier of the Pending Transaction for the refund authorization. If this
         | 
| 13 20 | 
             
                    #   is provided, `transaction` must not be provided as a refund with a refund
         | 
| @@ -23,10 +30,12 @@ module Increase | |
| 23 30 | 
             
                    #   @return [String, nil]
         | 
| 24 31 | 
             
                    optional :transaction_id, String
         | 
| 25 32 |  | 
| 26 | 
            -
                    # @!method initialize(pending_transaction_id: nil, transaction_id: nil, request_options: {})
         | 
| 33 | 
            +
                    # @!method initialize(amount: nil, pending_transaction_id: nil, transaction_id: nil, request_options: {})
         | 
| 27 34 | 
             
                    #   Some parameter documentations has been truncated, see
         | 
| 28 35 | 
             
                    #   {Increase::Models::Simulations::CardRefundCreateParams} for more details.
         | 
| 29 36 | 
             
                    #
         | 
| 37 | 
            +
                    #   @param amount [Integer] The refund amount in cents. Pulled off the `pending_transaction` or the `transac
         | 
| 38 | 
            +
                    #
         | 
| 30 39 | 
             
                    #   @param pending_transaction_id [String] The identifier of the Pending Transaction for the refund authorization. If this
         | 
| 31 40 | 
             
                    #
         | 
| 32 41 | 
             
                    #   @param transaction_id [String] The identifier for the Transaction to refund. The Transaction's source must have
         | 
| @@ -10,7 +10,9 @@ module Increase | |
| 10 10 | 
             
                    # Simulates refunding a card transaction. The full value of the original sandbox
         | 
| 11 11 | 
             
                    # transaction is refunded.
         | 
| 12 12 | 
             
                    #
         | 
| 13 | 
            -
                    # @overload create(pending_transaction_id: nil, transaction_id: nil, request_options: {})
         | 
| 13 | 
            +
                    # @overload create(amount: nil, pending_transaction_id: nil, transaction_id: nil, request_options: {})
         | 
| 14 | 
            +
                    #
         | 
| 15 | 
            +
                    # @param amount [Integer] The refund amount in cents. Pulled off the `pending_transaction` or the `transac
         | 
| 14 16 | 
             
                    #
         | 
| 15 17 | 
             
                    # @param pending_transaction_id [String] The identifier of the Pending Transaction for the refund authorization. If this
         | 
| 16 18 | 
             
                    #
         | 
    
        data/lib/increase/version.rb
    CHANGED
    
    
| @@ -15,6 +15,14 @@ module Increase | |
| 15 15 | 
             
                        )
         | 
| 16 16 | 
             
                      end
         | 
| 17 17 |  | 
| 18 | 
            +
                    # The refund amount in cents. Pulled off the `pending_transaction` or the
         | 
| 19 | 
            +
                    # `transaction` if not provided.
         | 
| 20 | 
            +
                    sig { returns(T.nilable(Integer)) }
         | 
| 21 | 
            +
                    attr_reader :amount
         | 
| 22 | 
            +
             | 
| 23 | 
            +
                    sig { params(amount: Integer).void }
         | 
| 24 | 
            +
                    attr_writer :amount
         | 
| 25 | 
            +
             | 
| 18 26 | 
             
                    # The identifier of the Pending Transaction for the refund authorization. If this
         | 
| 19 27 | 
             
                    # is provided, `transaction` must not be provided as a refund with a refund
         | 
| 20 28 | 
             
                    # authorized can not be linked to a regular transaction.
         | 
| @@ -34,12 +42,16 @@ module Increase | |
| 34 42 |  | 
| 35 43 | 
             
                    sig do
         | 
| 36 44 | 
             
                      params(
         | 
| 45 | 
            +
                        amount: Integer,
         | 
| 37 46 | 
             
                        pending_transaction_id: String,
         | 
| 38 47 | 
             
                        transaction_id: String,
         | 
| 39 48 | 
             
                        request_options: Increase::RequestOptions::OrHash
         | 
| 40 49 | 
             
                      ).returns(T.attached_class)
         | 
| 41 50 | 
             
                    end
         | 
| 42 51 | 
             
                    def self.new(
         | 
| 52 | 
            +
                      # The refund amount in cents. Pulled off the `pending_transaction` or the
         | 
| 53 | 
            +
                      # `transaction` if not provided.
         | 
| 54 | 
            +
                      amount: nil,
         | 
| 43 55 | 
             
                      # The identifier of the Pending Transaction for the refund authorization. If this
         | 
| 44 56 | 
             
                      # is provided, `transaction` must not be provided as a refund with a refund
         | 
| 45 57 | 
             
                      # authorized can not be linked to a regular transaction.
         | 
| @@ -54,6 +66,7 @@ module Increase | |
| 54 66 | 
             
                    sig do
         | 
| 55 67 | 
             
                      override.returns(
         | 
| 56 68 | 
             
                        {
         | 
| 69 | 
            +
                          amount: Integer,
         | 
| 57 70 | 
             
                          pending_transaction_id: String,
         | 
| 58 71 | 
             
                          transaction_id: String,
         | 
| 59 72 | 
             
                          request_options: Increase::RequestOptions
         | 
| @@ -8,12 +8,16 @@ module Increase | |
| 8 8 | 
             
                    # transaction is refunded.
         | 
| 9 9 | 
             
                    sig do
         | 
| 10 10 | 
             
                      params(
         | 
| 11 | 
            +
                        amount: Integer,
         | 
| 11 12 | 
             
                        pending_transaction_id: String,
         | 
| 12 13 | 
             
                        transaction_id: String,
         | 
| 13 14 | 
             
                        request_options: Increase::RequestOptions::OrHash
         | 
| 14 15 | 
             
                      ).returns(Increase::Transaction)
         | 
| 15 16 | 
             
                    end
         | 
| 16 17 | 
             
                    def create(
         | 
| 18 | 
            +
                      # The refund amount in cents. Pulled off the `pending_transaction` or the
         | 
| 19 | 
            +
                      # `transaction` if not provided.
         | 
| 20 | 
            +
                      amount: nil,
         | 
| 17 21 | 
             
                      # The identifier of the Pending Transaction for the refund authorization. If this
         | 
| 18 22 | 
             
                      # is provided, `transaction` must not be provided as a refund with a refund
         | 
| 19 23 | 
             
                      # authorized can not be linked to a regular transaction.
         | 
| @@ -2,13 +2,21 @@ module Increase | |
| 2 2 | 
             
              module Models
         | 
| 3 3 | 
             
                module Simulations
         | 
| 4 4 | 
             
                  type card_refund_create_params =
         | 
| 5 | 
            -
                    { | 
| 5 | 
            +
                    {
         | 
| 6 | 
            +
                      amount: Integer,
         | 
| 7 | 
            +
                      pending_transaction_id: String,
         | 
| 8 | 
            +
                      transaction_id: String
         | 
| 9 | 
            +
                    }
         | 
| 6 10 | 
             
                    & Increase::Internal::Type::request_parameters
         | 
| 7 11 |  | 
| 8 12 | 
             
                  class CardRefundCreateParams < Increase::Internal::Type::BaseModel
         | 
| 9 13 | 
             
                    extend Increase::Internal::Type::RequestParameters::Converter
         | 
| 10 14 | 
             
                    include Increase::Internal::Type::RequestParameters
         | 
| 11 15 |  | 
| 16 | 
            +
                    attr_reader amount: Integer?
         | 
| 17 | 
            +
             | 
| 18 | 
            +
                    def amount=: (Integer) -> Integer
         | 
| 19 | 
            +
             | 
| 12 20 | 
             
                    attr_reader pending_transaction_id: String?
         | 
| 13 21 |  | 
| 14 22 | 
             
                    def pending_transaction_id=: (String) -> String
         | 
| @@ -18,12 +26,14 @@ module Increase | |
| 18 26 | 
             
                    def transaction_id=: (String) -> String
         | 
| 19 27 |  | 
| 20 28 | 
             
                    def initialize: (
         | 
| 29 | 
            +
                      ?amount: Integer,
         | 
| 21 30 | 
             
                      ?pending_transaction_id: String,
         | 
| 22 31 | 
             
                      ?transaction_id: String,
         | 
| 23 32 | 
             
                      ?request_options: Increase::request_opts
         | 
| 24 33 | 
             
                    ) -> void
         | 
| 25 34 |  | 
| 26 35 | 
             
                    def to_hash: -> {
         | 
| 36 | 
            +
                      amount: Integer,
         | 
| 27 37 | 
             
                      pending_transaction_id: String,
         | 
| 28 38 | 
             
                      transaction_id: String,
         | 
| 29 39 | 
             
                      request_options: Increase::RequestOptions
         | 
    
        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. | 
| 4 | 
            +
              version: 1.116.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-10- | 
| 11 | 
            +
            date: 2025-10-27 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: connection_pool
         |