diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfdad185d..3c5452f78 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: @@ -36,7 +36,7 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/increase-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/publish-gem.yml b/.github/workflows/publish-gem.yml index d8931b274..ef1babdee 100644 --- a/.github/workflows/publish-gem.yml +++ b/.github/workflows/publish-gem.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index f2a1d3f64..121cd446c 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -12,7 +12,7 @@ jobs: if: github.repository == 'Increase/increase-ruby' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Check release environment run: | diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8a53e6ae2..8ac6624f7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.177.0" + ".": "1.178.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 55843fe6f..30af6c775 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 232 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a559a6a1a1f3781fad8db5bcb96c40b69a78b952d659395840accce782098e0c.yml -openapi_spec_hash: 2ae62041468e5cf6fe653d65b1b7a58a -config_hash: 3ccb2793be25ae0b15e05dc9ef5da09c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6726a464abac2e26549c692dba99ba448d4e8c8761df6b395ad50b348aa25a26.yml +openapi_spec_hash: 275356a13559aed985c8c5c67b819d7d +config_hash: 27e44ed36b9c5617b580ead7231a594a diff --git a/CHANGELOG.md b/CHANGELOG.md index 72067cee1..5482881e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 1.178.0 (2026-01-21) + +Full Changelog: [v1.177.0...v1.178.0](https://github.com/Increase/increase-ruby/compare/v1.177.0...v1.178.0) + +### Features + +* **api:** api update ([36361bc](https://github.com/Increase/increase-ruby/commit/36361bcbef8213d9aeb54e6f4b90dae74bcb21e0)) + + +### Chores + +* **internal:** update `actions/checkout` version ([3a61451](https://github.com/Increase/increase-ruby/commit/3a61451c76a17f7b56580c139e06db98bf4ea402)) + ## 1.177.0 (2026-01-16) Full Changelog: [v1.176.0...v1.177.0](https://github.com/Increase/increase-ruby/compare/v1.176.0...v1.177.0) diff --git a/Gemfile.lock b/Gemfile.lock index d82e00484..c9113e6ec 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.177.0) + increase (1.178.0) cgi connection_pool diff --git a/README.md b/README.md index 5808b9072..3dc9cbd4b 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.177.0" +gem "increase", "~> 1.178.0" ``` diff --git a/lib/increase/models/check_transfer.rb b/lib/increase/models/check_transfer.rb index ac37cf25a..1055c14b5 100644 --- a/lib/increase/models/check_transfer.rb +++ b/lib/increase/models/check_transfer.rb @@ -913,16 +913,6 @@ module Type # @see Increase::Models::CheckTransfer#submission class Submission < Increase::Internal::Type::BaseModel - # @!attribute address_correction_action - # Per USPS requirements, Increase will standardize the address to USPS standards - # and check it against the USPS National Change of Address (NCOA) database before - # mailing it. This indicates what modifications, if any, were made to the address - # before printing and mailing the check. - # - # @return [Symbol, Increase::Models::CheckTransfer::Submission::AddressCorrectionAction] - required :address_correction_action, - enum: -> { Increase::CheckTransfer::Submission::AddressCorrectionAction } - # @!attribute submitted_address # The address we submitted to the printer. This is what is physically printed on # the check. @@ -931,47 +921,20 @@ class Submission < Increase::Internal::Type::BaseModel required :submitted_address, -> { Increase::CheckTransfer::Submission::SubmittedAddress } # @!attribute submitted_at - # When this check transfer was submitted to our check printer. + # When this check was submitted to our check printer. # # @return [Time] required :submitted_at, Time - # @!method initialize(address_correction_action:, submitted_address:, submitted_at:) + # @!method initialize(submitted_address:, submitted_at:) # Some parameter documentations has been truncated, see # {Increase::Models::CheckTransfer::Submission} for more details. # # After the transfer is submitted, this will contain supplemental details. # - # @param address_correction_action [Symbol, Increase::Models::CheckTransfer::Submission::AddressCorrectionAction] Per USPS requirements, Increase will standardize the address to USPS standards a - # # @param submitted_address [Increase::Models::CheckTransfer::Submission::SubmittedAddress] The address we submitted to the printer. This is what is physically printed on t # - # @param submitted_at [Time] When this check transfer was submitted to our check printer. - - # Per USPS requirements, Increase will standardize the address to USPS standards - # and check it against the USPS National Change of Address (NCOA) database before - # mailing it. This indicates what modifications, if any, were made to the address - # before printing and mailing the check. - # - # @see Increase::Models::CheckTransfer::Submission#address_correction_action - module AddressCorrectionAction - extend Increase::Internal::Type::Enum - - # No address correction took place. - NONE = :none - - # The address was standardized. - STANDARDIZATION = :standardization - - # The address was first standardized and then changed because the recipient moved. - STANDARDIZATION_WITH_ADDRESS_CHANGE = :standardization_with_address_change - - # An error occurred while correcting the address. This typically means the USPS could not find that address. The address was not changed. - ERROR = :error - - # @!method self.values - # @return [Array] - end + # @param submitted_at [Time] When this check was submitted to our check printer. # @see Increase::Models::CheckTransfer::Submission#submitted_address class SubmittedAddress < Increase::Internal::Type::BaseModel diff --git a/lib/increase/models/event.rb b/lib/increase/models/event.rb index d4b61e51b..864d17eb8 100644 --- a/lib/increase/models/event.rb +++ b/lib/increase/models/event.rb @@ -310,6 +310,12 @@ module Category # Occurs whenever a Physical Card Profile is updated. PHYSICAL_CARD_PROFILE_UPDATED = :"physical_card_profile.updated" + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED = :"physical_check.created" + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED = :"physical_check.updated" + # Occurs whenever a Program is created. PROGRAM_CREATED = :"program.created" diff --git a/lib/increase/models/event_list_params.rb b/lib/increase/models/event_list_params.rb index 1871a33e7..9c44608b4 100644 --- a/lib/increase/models/event_list_params.rb +++ b/lib/increase/models/event_list_params.rb @@ -312,6 +312,12 @@ module In # Occurs whenever a Physical Card Profile is updated. PHYSICAL_CARD_PROFILE_UPDATED = :"physical_card_profile.updated" + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED = :"physical_check.created" + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED = :"physical_check.updated" + # Occurs whenever a Program is created. PROGRAM_CREATED = :"program.created" diff --git a/lib/increase/models/event_subscription.rb b/lib/increase/models/event_subscription.rb index 0c2e411a4..d3a4bb6f4 100644 --- a/lib/increase/models/event_subscription.rb +++ b/lib/increase/models/event_subscription.rb @@ -333,6 +333,12 @@ module SelectedEventCategory # Occurs whenever a Physical Card Profile is updated. PHYSICAL_CARD_PROFILE_UPDATED = :"physical_card_profile.updated" + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED = :"physical_check.created" + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED = :"physical_check.updated" + # Occurs whenever a Program is created. PROGRAM_CREATED = :"program.created" diff --git a/lib/increase/models/event_subscription_create_params.rb b/lib/increase/models/event_subscription_create_params.rb index 1f4317d63..87ca24399 100644 --- a/lib/increase/models/event_subscription_create_params.rb +++ b/lib/increase/models/event_subscription_create_params.rb @@ -302,6 +302,12 @@ module SelectedEventCategory # Occurs whenever a Physical Card Profile is updated. PHYSICAL_CARD_PROFILE_UPDATED = :"physical_card_profile.updated" + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED = :"physical_check.created" + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED = :"physical_check.updated" + # Occurs whenever a Program is created. PROGRAM_CREATED = :"program.created" diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 81887d11b..17e9e7d4f 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.177.0" + VERSION = "1.178.0" end diff --git a/rbi/increase/models/check_transfer.rbi b/rbi/increase/models/check_transfer.rbi index 44e3ea590..9d6eab972 100644 --- a/rbi/increase/models/check_transfer.rbi +++ b/rbi/increase/models/check_transfer.rbi @@ -1529,17 +1529,6 @@ module Increase ) end - # Per USPS requirements, Increase will standardize the address to USPS standards - # and check it against the USPS National Change of Address (NCOA) database before - # mailing it. This indicates what modifications, if any, were made to the address - # before printing and mailing the check. - sig do - returns( - Increase::CheckTransfer::Submission::AddressCorrectionAction::TaggedSymbol - ) - end - attr_accessor :address_correction_action - # The address we submitted to the printer. This is what is physically printed on # the check. sig { returns(Increase::CheckTransfer::Submission::SubmittedAddress) } @@ -1553,30 +1542,23 @@ module Increase end attr_writer :submitted_address - # When this check transfer was submitted to our check printer. + # When this check was submitted to our check printer. sig { returns(Time) } attr_accessor :submitted_at # After the transfer is submitted, this will contain supplemental details. sig do params( - address_correction_action: - Increase::CheckTransfer::Submission::AddressCorrectionAction::OrSymbol, submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress::OrHash, submitted_at: Time ).returns(T.attached_class) end def self.new( - # Per USPS requirements, Increase will standardize the address to USPS standards - # and check it against the USPS National Change of Address (NCOA) database before - # mailing it. This indicates what modifications, if any, were made to the address - # before printing and mailing the check. - address_correction_action:, # The address we submitted to the printer. This is what is physically printed on # the check. submitted_address:, - # When this check transfer was submitted to our check printer. + # When this check was submitted to our check printer. submitted_at: ) end @@ -1584,8 +1566,6 @@ module Increase sig do override.returns( { - address_correction_action: - Increase::CheckTransfer::Submission::AddressCorrectionAction::TaggedSymbol, submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress, submitted_at: Time @@ -1595,61 +1575,6 @@ module Increase def to_hash end - # Per USPS requirements, Increase will standardize the address to USPS standards - # and check it against the USPS National Change of Address (NCOA) database before - # mailing it. This indicates what modifications, if any, were made to the address - # before printing and mailing the check. - module AddressCorrectionAction - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Increase::CheckTransfer::Submission::AddressCorrectionAction - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # No address correction took place. - NONE = - T.let( - :none, - Increase::CheckTransfer::Submission::AddressCorrectionAction::TaggedSymbol - ) - - # The address was standardized. - STANDARDIZATION = - T.let( - :standardization, - Increase::CheckTransfer::Submission::AddressCorrectionAction::TaggedSymbol - ) - - # The address was first standardized and then changed because the recipient moved. - STANDARDIZATION_WITH_ADDRESS_CHANGE = - T.let( - :standardization_with_address_change, - Increase::CheckTransfer::Submission::AddressCorrectionAction::TaggedSymbol - ) - - # An error occurred while correcting the address. This typically means the USPS could not find that address. The address was not changed. - ERROR = - T.let( - :error, - Increase::CheckTransfer::Submission::AddressCorrectionAction::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Increase::CheckTransfer::Submission::AddressCorrectionAction::TaggedSymbol - ] - ) - end - def self.values - end - end - class SubmittedAddress < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/event.rbi b/rbi/increase/models/event.rbi index c5bd1d886..bf337bfb6 100644 --- a/rbi/increase/models/event.rbi +++ b/rbi/increase/models/event.rbi @@ -605,6 +605,20 @@ module Increase Increase::Event::Category::TaggedSymbol ) + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED = + T.let( + :"physical_check.created", + Increase::Event::Category::TaggedSymbol + ) + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED = + T.let( + :"physical_check.updated", + Increase::Event::Category::TaggedSymbol + ) + # Occurs whenever a Program is created. PROGRAM_CREATED = T.let(:"program.created", Increase::Event::Category::TaggedSymbol) diff --git a/rbi/increase/models/event_list_params.rbi b/rbi/increase/models/event_list_params.rbi index 8b908eea6..41f50fab8 100644 --- a/rbi/increase/models/event_list_params.rbi +++ b/rbi/increase/models/event_list_params.rbi @@ -704,6 +704,20 @@ module Increase Increase::EventListParams::Category::In::TaggedSymbol ) + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED = + T.let( + :"physical_check.created", + Increase::EventListParams::Category::In::TaggedSymbol + ) + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED = + T.let( + :"physical_check.updated", + Increase::EventListParams::Category::In::TaggedSymbol + ) + # Occurs whenever a Program is created. PROGRAM_CREATED = T.let( diff --git a/rbi/increase/models/event_subscription.rbi b/rbi/increase/models/event_subscription.rbi index f305272be..d81ea4d1c 100644 --- a/rbi/increase/models/event_subscription.rbi +++ b/rbi/increase/models/event_subscription.rbi @@ -688,6 +688,20 @@ module Increase Increase::EventSubscription::SelectedEventCategory::TaggedSymbol ) + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED = + T.let( + :"physical_check.created", + Increase::EventSubscription::SelectedEventCategory::TaggedSymbol + ) + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED = + T.let( + :"physical_check.updated", + Increase::EventSubscription::SelectedEventCategory::TaggedSymbol + ) + # Occurs whenever a Program is created. PROGRAM_CREATED = T.let( diff --git a/rbi/increase/models/event_subscription_create_params.rbi b/rbi/increase/models/event_subscription_create_params.rbi index 42e18ba9b..387778c8f 100644 --- a/rbi/increase/models/event_subscription_create_params.rbi +++ b/rbi/increase/models/event_subscription_create_params.rbi @@ -687,6 +687,20 @@ module Increase Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol ) + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED = + T.let( + :"physical_check.created", + Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol + ) + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED = + T.let( + :"physical_check.updated", + Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol + ) + # Occurs whenever a Program is created. PROGRAM_CREATED = T.let( diff --git a/sig/increase/models/check_transfer.rbs b/sig/increase/models/check_transfer.rbs index be67ad377..2dbb57a6d 100644 --- a/sig/increase/models/check_transfer.rbs +++ b/sig/increase/models/check_transfer.rbs @@ -661,54 +661,25 @@ module Increase type submission = { - address_correction_action: Increase::Models::CheckTransfer::Submission::address_correction_action, submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress, submitted_at: Time } class Submission < Increase::Internal::Type::BaseModel - attr_accessor address_correction_action: Increase::Models::CheckTransfer::Submission::address_correction_action - attr_accessor submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress attr_accessor submitted_at: Time def initialize: ( - address_correction_action: Increase::Models::CheckTransfer::Submission::address_correction_action, submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress, submitted_at: Time ) -> void def to_hash: -> { - address_correction_action: Increase::Models::CheckTransfer::Submission::address_correction_action, submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress, submitted_at: Time } - type address_correction_action = - :none - | :standardization - | :standardization_with_address_change - | :error - - module AddressCorrectionAction - extend Increase::Internal::Type::Enum - - # No address correction took place. - NONE: :none - - # The address was standardized. - STANDARDIZATION: :standardization - - # The address was first standardized and then changed because the recipient moved. - STANDARDIZATION_WITH_ADDRESS_CHANGE: :standardization_with_address_change - - # An error occurred while correcting the address. This typically means the USPS could not find that address. The address was not changed. - ERROR: :error - - def self?.values: -> ::Array[Increase::Models::CheckTransfer::Submission::address_correction_action] - end - type submitted_address = { city: String, diff --git a/sig/increase/models/event.rbs b/sig/increase/models/event.rbs index a3530284d..87be9f58a 100644 --- a/sig/increase/models/event.rbs +++ b/sig/increase/models/event.rbs @@ -122,6 +122,8 @@ module Increase | :"physical_card.updated" | :"physical_card_profile.created" | :"physical_card_profile.updated" + | :"physical_check.created" + | :"physical_check.updated" | :"program.created" | :"program.updated" | :"proof_of_authorization_request.created" @@ -387,6 +389,12 @@ module Increase # Occurs whenever a Physical Card Profile is updated. PHYSICAL_CARD_PROFILE_UPDATED: :"physical_card_profile.updated" + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED: :"physical_check.created" + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED: :"physical_check.updated" + # Occurs whenever a Program is created. PROGRAM_CREATED: :"program.created" diff --git a/sig/increase/models/event_list_params.rbs b/sig/increase/models/event_list_params.rbs index 7ae390a2f..e1b0fbd73 100644 --- a/sig/increase/models/event_list_params.rbs +++ b/sig/increase/models/event_list_params.rbs @@ -155,6 +155,8 @@ module Increase | :"physical_card.updated" | :"physical_card_profile.created" | :"physical_card_profile.updated" + | :"physical_check.created" + | :"physical_check.updated" | :"program.created" | :"program.updated" | :"proof_of_authorization_request.created" @@ -420,6 +422,12 @@ module Increase # Occurs whenever a Physical Card Profile is updated. PHYSICAL_CARD_PROFILE_UPDATED: :"physical_card_profile.updated" + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED: :"physical_check.created" + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED: :"physical_check.updated" + # Occurs whenever a Program is created. PROGRAM_CREATED: :"program.created" diff --git a/sig/increase/models/event_subscription.rbs b/sig/increase/models/event_subscription.rbs index 821db44d2..6f1c3217c 100644 --- a/sig/increase/models/event_subscription.rbs +++ b/sig/increase/models/event_subscription.rbs @@ -132,6 +132,8 @@ module Increase | :"physical_card.updated" | :"physical_card_profile.created" | :"physical_card_profile.updated" + | :"physical_check.created" + | :"physical_check.updated" | :"program.created" | :"program.updated" | :"proof_of_authorization_request.created" @@ -397,6 +399,12 @@ module Increase # Occurs whenever a Physical Card Profile is updated. PHYSICAL_CARD_PROFILE_UPDATED: :"physical_card_profile.updated" + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED: :"physical_check.created" + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED: :"physical_check.updated" + # Occurs whenever a Program is created. PROGRAM_CREATED: :"program.created" diff --git a/sig/increase/models/event_subscription_create_params.rbs b/sig/increase/models/event_subscription_create_params.rbs index 659e1a58f..65b8a3089 100644 --- a/sig/increase/models/event_subscription_create_params.rbs +++ b/sig/increase/models/event_subscription_create_params.rbs @@ -135,6 +135,8 @@ module Increase | :"physical_card.updated" | :"physical_card_profile.created" | :"physical_card_profile.updated" + | :"physical_check.created" + | :"physical_check.updated" | :"program.created" | :"program.updated" | :"proof_of_authorization_request.created" @@ -400,6 +402,12 @@ module Increase # Occurs whenever a Physical Card Profile is updated. PHYSICAL_CARD_PROFILE_UPDATED: :"physical_card_profile.updated" + # Occurs whenever a Physical Check is created. + PHYSICAL_CHECK_CREATED: :"physical_check.created" + + # Occurs whenever a Physical Check is updated. + PHYSICAL_CHECK_UPDATED: :"physical_check.updated" + # Occurs whenever a Program is created. PROGRAM_CREATED: :"program.created"