Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.12"
".": "0.1.0-alpha.13"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 194
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-27dc46bb403d49303c0a407c619e63dfcb1be14d16536390f0b4a8dd3b3d8e38.yml
openapi_spec_hash: 679632c6d91d4a35625ce94adc2c6ea0
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-58a2ee2ff5eb6f528503fbaae714862d76b1dc7c64dc6349e0358d4cac6cc9a4.yml
openapi_spec_hash: ff3a1961dead0bea92a692b13b6a96fb
config_hash: 6ae27f935d24d38237894dd4fd6bd749
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 0.1.0-alpha.13 (2025-04-28)

Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)

### Features

* **api:** api update ([45fc551](https://github.com/Increase/increase-ruby/commit/45fc551b875600bfcd2dea9cfad233e932937c60))


### Chores

* add generator safe directory ([cb8b110](https://github.com/Increase/increase-ruby/commit/cb8b1101240abd6d05da7e20d0dd9d03cc8f0d31))
* **internal:** annotate request options with type aliases in sorbet ([2c2ec21](https://github.com/Increase/increase-ruby/commit/2c2ec21376e7acc7554e8ac99a36682479ee8930))
* **internal:** remove unnecessary `rbi/lib` folder ([7826238](https://github.com/Increase/increase-ruby/commit/7826238a53b6c07a3c256f88c9f1bcd8ea29c92c))
* more accurate type annotations and aliases ([4a22b74](https://github.com/Increase/increase-ruby/commit/4a22b7498e85103d2a393b4930c49a200141b27c))

## 0.1.0-alpha.12 (2025-04-25)

Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This will install all the required dependencies.

## Modifying/Adding code

Most of the SDK is generated code. Modifications to code will be persisted between generations, but may result in merge conflicts between manual patches and changes from the generator. The generator will never modify the contents `examples/` directory.
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may result in merge conflicts between manual patches and changes from the generator. The generator will never modify the contents of `lib/increase/helpers/` and `examples/` directory.

## Adding and running examples

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
increase (0.1.0.pre.alpha.12)
increase (0.1.0.pre.alpha.13)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "increase", "~> 0.1.0.pre.alpha.12"
gem "increase", "~> 0.1.0.pre.alpha.13"
```

<!-- x-release-please-end -->
Expand Down
18 changes: 9 additions & 9 deletions lib/increase/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
module Increase
module Errors
class Error < StandardError
# @!parse
# # @return [StandardError, nil]
# attr_accessor :cause
# @!attribute cause
#
# @return [StandardError, nil]
end

class ConversionError < Increase::Errors::Error
Expand Down Expand Up @@ -40,13 +40,13 @@ def initialize(url:, status: nil, body: nil, request: nil, response: nil, messag
end

class APIConnectionError < Increase::Errors::APIError
# @!parse
# # @return [nil]
# attr_accessor :status
# @!attribute status
#
# @return [nil]

# @!parse
# # @return [nil]
# attr_accessor :body
# @!attribute body
#
# @return [nil]

# @api private
#
Expand Down
21 changes: 10 additions & 11 deletions lib/increase/internal/type/boolean.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,16 @@ def coerce(value, state:)
value
end

# @!parse
# # @api private
# #
# # @param value [Boolean, Object]
# #
# # @param state [Hash{Symbol=>Object}] .
# #
# # @option state [Boolean] :can_retry
# #
# # @return [Boolean, Object]
# def dump(value, state:) = super
# @!method dump(value, state:)
# @api private
#
# @param value [Boolean, Object]
#
# @param state [Hash{Symbol=>Object}] .
#
# @option state [Boolean] :can_retry
#
# @return [Boolean, Object]
end
end
end
Expand Down
21 changes: 10 additions & 11 deletions lib/increase/internal/type/enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,16 @@ def coerce(value, state:)
end
end

# @!parse
# # @api private
# #
# # @param value [Symbol, Object]
# #
# # @param state [Hash{Symbol=>Object}] .
# #
# # @option state [Boolean] :can_retry
# #
# # @return [Symbol, Object]
# def dump(value, state:) = super
# @!method dump(value, state:)
# @api private
#
# @param value [Symbol, Object]
#
# @param state [Hash{Symbol=>Object}] .
#
# @option state [Boolean] :can_retry
#
# @return [Symbol, Object]

# @api private
#
Expand Down
21 changes: 10 additions & 11 deletions lib/increase/internal/type/unknown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,16 @@ def coerce(value, state:)
value
end

# @!parse
# # @api private
# #
# # @param value [Object]
# #
# # @param state [Hash{Symbol=>Object}] .
# #
# # @option state [Boolean] :can_retry
# #
# # @return [Object]
# def dump(value, state:) = super
# @!method dump(value, state:)
# @api private
#
# @param value [Object]
#
# @param state [Hash{Symbol=>Object}] .
#
# @option state [Boolean] :can_retry
#
# @return [Object]
end

# rubocop:enable Lint/UnusedMethodArgument
Expand Down
65 changes: 64 additions & 1 deletion lib/increase/models/physical_card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,14 @@ class Tracking < Increase::Internal::Type::BaseModel
# @return [Time]
required :shipped_at, Time

# @!method initialize(number:, return_number:, return_reason:, shipped_at:)
# @!attribute updates
# Tracking updates relating to the physical card's delivery.
#
# @return [Array<Increase::Models::PhysicalCard::Shipment::Tracking::Update>]
required :updates,
-> { Increase::Internal::Type::ArrayOf[Increase::Models::PhysicalCard::Shipment::Tracking::Update] }

# @!method initialize(number:, return_number:, return_reason:, shipped_at:, updates:)
# Some parameter documentations has been truncated, see
# {Increase::Models::PhysicalCard::Shipment::Tracking} for more details.
#
Expand All @@ -306,6 +313,62 @@ class Tracking < Increase::Internal::Type::BaseModel
#
# @param shipped_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
# ...
#
# @param updates [Array<Increase::Models::PhysicalCard::Shipment::Tracking::Update>] Tracking updates relating to the physical card's delivery.

class Update < Increase::Internal::Type::BaseModel
# @!attribute category
# The type of tracking event.
#
# @return [Symbol, Increase::Models::PhysicalCard::Shipment::Tracking::Update::Category]
required :category, enum: -> { Increase::Models::PhysicalCard::Shipment::Tracking::Update::Category }

# @!attribute created_at
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
# the tracking event took place.
#
# @return [Time]
required :created_at, Time

# @!attribute postal_code
# The postal code where the event took place.
#
# @return [String]
required :postal_code, String

# @!method initialize(category:, created_at:, postal_code:)
# Some parameter documentations has been truncated, see
# {Increase::Models::PhysicalCard::Shipment::Tracking::Update} for more details.
#
# @param category [Symbol, Increase::Models::PhysicalCard::Shipment::Tracking::Update::Category] The type of tracking event.
#
# @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
# ...
#
# @param postal_code [String] The postal code where the event took place.

# The type of tracking event.
#
# @see Increase::Models::PhysicalCard::Shipment::Tracking::Update#category
module Category
extend Increase::Internal::Type::Enum

# The physical card is in transit.
IN_TRANSIT = :in_transit

# The physical card has been processed for delivery.
PROCESSED_FOR_DELIVERY = :processed_for_delivery

# The physical card has been delivered.
DELIVERED = :delivered

# Delivery failed and the physical card was returned to sender.
RETURNED_TO_SENDER = :returned_to_sender

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end

Expand Down
9 changes: 4 additions & 5 deletions lib/increase/request_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ def self.validate!(opts)
# @return [Float, nil]
optional :timeout, Float

# @!parse
# # @!method initialize(values = {})
# # Returns a new instance of RequestOptions.
# #
# # @param values [Hash{Symbol=>Object}]
# @!method initialize(values = {})
# Returns a new instance of RequestOptions.
#
# @param values [Hash{Symbol=>Object}]
end
end
2 changes: 1 addition & 1 deletion lib/increase/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Increase
VERSION = "0.1.0.pre.alpha.12"
VERSION = "0.1.0.pre.alpha.13"
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
T.proc.params(arg0: T.anything).returns(T.anything)
)
),
page: T.nilable(T::Class[Increase::Internal::Type::BasePage[Increase::Internal::Type::BaseModel]]),

Check warning on line 35 in rbi/increase/internal/transport/base_client.rbi

View workflow job for this annotation

GitHub Actions / lint

Layout/LineLength: Line is too long. [113/110]
stream: T.nilable(T::Class[T.anything]),
model: T.nilable(Increase::Internal::Type::Converter::Input),
options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash))
options: T.nilable(Increase::RequestOpts)
}
end

Expand Down Expand Up @@ -185,10 +185,10 @@
T.proc.params(arg0: T.anything).returns(T.anything)
)
),
page: T.nilable(T::Class[Increase::Internal::Type::BasePage[Increase::Internal::Type::BaseModel]]),

Check warning on line 188 in rbi/increase/internal/transport/base_client.rbi

View workflow job for this annotation

GitHub Actions / lint

Layout/LineLength: Line is too long. [111/110]
stream: T.nilable(T::Class[T.anything]),
model: T.nilable(Increase::Internal::Type::Converter::Input),
options: T.nilable(T.any(Increase::RequestOptions, Increase::Internal::AnyHash))
options: T.nilable(Increase::RequestOpts)
)
.returns(T.anything)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Increase
# @api private
module RequestParameters
# Options to specify HTTP behaviour for this request.
sig { returns(T.any(Increase::RequestOptions, Increase::Internal::AnyHash)) }
sig { returns(Increase::RequestOpts) }
attr_accessor :request_options

# @api private
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading