diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5c7f5760..c98b6e85 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.179.0" + ".": "1.180.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d6295fc7..458c6d83 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-4df3552a635fafa2af8caa70f7daed96996b4263da92fb96e03cbf3c1b4931b4.yml -openapi_spec_hash: 77a141ca0b0c00f8117cea15374a734d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-cc66158bcd1307d07051dcfd43d73dad380a7d8eb637620b21ff4a59e6073b68.yml +openapi_spec_hash: add50aa92e44e568b1efa8dba7bdb2d5 config_hash: 27e44ed36b9c5617b580ead7231a594a diff --git a/CHANGELOG.md b/CHANGELOG.md index a1acb1c0..fc4993c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.180.0 (2026-01-23) + +Full Changelog: [v1.179.0...v1.180.0](https://github.com/Increase/increase-ruby/compare/v1.179.0...v1.180.0) + +### Features + +* **api:** api update ([d5d4377](https://github.com/Increase/increase-ruby/commit/d5d4377c1a31303f23e021568166f7cd03e88766)) + ## 1.179.0 (2026-01-22) Full Changelog: [v1.178.0...v1.179.0](https://github.com/Increase/increase-ruby/compare/v1.178.0...v1.179.0) diff --git a/Gemfile.lock b/Gemfile.lock index 8124f5e1..9de62c99 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.179.0) + increase (1.180.0) cgi connection_pool diff --git a/README.md b/README.md index f1b5c21a..553893d1 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.179.0" +gem "increase", "~> 1.180.0" ``` diff --git a/lib/increase/models/check_transfer.rb b/lib/increase/models/check_transfer.rb index 1055c14b..256a2724 100644 --- a/lib/increase/models/check_transfer.rb +++ b/lib/increase/models/check_transfer.rb @@ -433,13 +433,6 @@ module FulfillmentMethod # @see Increase::Models::CheckTransfer#mailing class Mailing < Increase::Internal::Type::BaseModel - # @!attribute image_id - # The ID of the file corresponding to an image of the check that was mailed, if - # available. - # - # @return [String, nil] - required :image_id, String, nil?: true - # @!attribute mailed_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the check was mailed. @@ -447,24 +440,14 @@ class Mailing < Increase::Internal::Type::BaseModel # @return [Time] required :mailed_at, Time - # @!attribute tracking_number - # The tracking number of the shipment, if available for the shipping method. - # - # @return [String, nil] - required :tracking_number, String, nil?: true - - # @!method initialize(image_id:, mailed_at:, tracking_number:) + # @!method initialize(mailed_at:) # Some parameter documentations has been truncated, see # {Increase::Models::CheckTransfer::Mailing} for more details. # # If the check has been mailed by Increase, this will contain details of the # shipment. # - # @param image_id [String, nil] The ID of the file corresponding to an image of the check that was mailed, if av - # # @param mailed_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th - # - # @param tracking_number [String, nil] The tracking number of the shipment, if available for the shipping method. end # @see Increase::Models::CheckTransfer#physical_check @@ -913,6 +896,13 @@ module Type # @see Increase::Models::CheckTransfer#submission class Submission < Increase::Internal::Type::BaseModel + # @!attribute preview_file_id + # The ID of the file corresponding to an image of the check that was mailed, if + # available. + # + # @return [String, nil] + required :preview_file_id, String, nil?: true + # @!attribute submitted_address # The address we submitted to the printer. This is what is physically printed on # the check. @@ -926,15 +916,25 @@ class Submission < Increase::Internal::Type::BaseModel # @return [Time] required :submitted_at, Time - # @!method initialize(submitted_address:, submitted_at:) + # @!attribute tracking_number + # The tracking number for the check shipment. + # + # @return [String, nil] + required :tracking_number, String, nil?: true + + # @!method initialize(preview_file_id:, submitted_address:, submitted_at:, tracking_number:) # 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 preview_file_id [String, nil] The ID of the file corresponding to an image of the check that was mailed, if av + # # @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 was submitted to our check printer. + # + # @param tracking_number [String, nil] The tracking number for the check shipment. # @see Increase::Models::CheckTransfer::Submission#submitted_address class SubmittedAddress < Increase::Internal::Type::BaseModel diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 80a3e236..920948c2 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.179.0" + VERSION = "1.180.0" end diff --git a/rbi/increase/models/check_transfer.rbi b/rbi/increase/models/check_transfer.rbi index 9d6eab97..a8a4a5c6 100644 --- a/rbi/increase/models/check_transfer.rbi +++ b/rbi/increase/models/check_transfer.rbi @@ -725,50 +725,22 @@ module Increase T.any(Increase::CheckTransfer::Mailing, Increase::Internal::AnyHash) end - # The ID of the file corresponding to an image of the check that was mailed, if - # available. - sig { returns(T.nilable(String)) } - attr_accessor :image_id - # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the check was mailed. sig { returns(Time) } attr_accessor :mailed_at - # The tracking number of the shipment, if available for the shipping method. - sig { returns(T.nilable(String)) } - attr_accessor :tracking_number - # If the check has been mailed by Increase, this will contain details of the # shipment. - sig do - params( - image_id: T.nilable(String), - mailed_at: Time, - tracking_number: T.nilable(String) - ).returns(T.attached_class) - end + sig { params(mailed_at: Time).returns(T.attached_class) } def self.new( - # The ID of the file corresponding to an image of the check that was mailed, if - # available. - image_id:, # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which # the check was mailed. - mailed_at:, - # The tracking number of the shipment, if available for the shipping method. - tracking_number: + mailed_at: ) end - sig do - override.returns( - { - image_id: T.nilable(String), - mailed_at: Time, - tracking_number: T.nilable(String) - } - ) - end + sig { override.returns({ mailed_at: Time }) } def to_hash end end @@ -1529,6 +1501,11 @@ module Increase ) end + # The ID of the file corresponding to an image of the check that was mailed, if + # available. + sig { returns(T.nilable(String)) } + attr_accessor :preview_file_id + # The address we submitted to the printer. This is what is physically printed on # the check. sig { returns(Increase::CheckTransfer::Submission::SubmittedAddress) } @@ -1546,29 +1523,42 @@ module Increase sig { returns(Time) } attr_accessor :submitted_at + # The tracking number for the check shipment. + sig { returns(T.nilable(String)) } + attr_accessor :tracking_number + # After the transfer is submitted, this will contain supplemental details. sig do params( + preview_file_id: T.nilable(String), submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress::OrHash, - submitted_at: Time + submitted_at: Time, + tracking_number: T.nilable(String) ).returns(T.attached_class) end def self.new( + # The ID of the file corresponding to an image of the check that was mailed, if + # available. + preview_file_id:, # The address we submitted to the printer. This is what is physically printed on # the check. submitted_address:, # When this check was submitted to our check printer. - submitted_at: + submitted_at:, + # The tracking number for the check shipment. + tracking_number: ) end sig do override.returns( { + preview_file_id: T.nilable(String), submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress, - submitted_at: Time + submitted_at: Time, + tracking_number: T.nilable(String) } ) end diff --git a/sig/increase/models/check_transfer.rbs b/sig/increase/models/check_transfer.rbs index 2dbb57a6..8d5bd9fb 100644 --- a/sig/increase/models/check_transfer.rbs +++ b/sig/increase/models/check_transfer.rbs @@ -278,27 +278,14 @@ module Increase def self?.values: -> ::Array[Increase::Models::CheckTransfer::fulfillment_method] end - type mailing = - { image_id: String?, mailed_at: Time, tracking_number: String? } + type mailing = { mailed_at: Time } class Mailing < Increase::Internal::Type::BaseModel - attr_accessor image_id: String? - attr_accessor mailed_at: Time - attr_accessor tracking_number: String? - - def initialize: ( - image_id: String?, - mailed_at: Time, - tracking_number: String? - ) -> void + def initialize: (mailed_at: Time) -> void - def to_hash: -> { - image_id: String?, - mailed_at: Time, - tracking_number: String? - } + def to_hash: -> { mailed_at: Time } end type physical_check = @@ -661,23 +648,33 @@ module Increase type submission = { + preview_file_id: String?, submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress, - submitted_at: Time + submitted_at: Time, + tracking_number: String? } class Submission < Increase::Internal::Type::BaseModel + attr_accessor preview_file_id: String? + attr_accessor submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress attr_accessor submitted_at: Time + attr_accessor tracking_number: String? + def initialize: ( + preview_file_id: String?, submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress, - submitted_at: Time + submitted_at: Time, + tracking_number: String? ) -> void def to_hash: -> { + preview_file_id: String?, submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress, - submitted_at: Time + submitted_at: Time, + tracking_number: String? } type submitted_address =