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
Jump to file
Failed to load files.
Loading
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 @@
{
".": "1.39.0"
".": "1.40.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 214
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e37d9eb06122e71071da98a7375420ce776ad9aa05176bed89a232bd6854f26b.yml
openapi_spec_hash: 8ffb1a0fd8523b24113105717c5d85d8
config_hash: b0b366d8c705ea0efe62093bae953e5a
configured_endpoints: 215
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9a5905fe541badfa11ad0641e7aea625c9fb0bc59ba33b1d43d8e88cbbdd71b2.yml
openapi_spec_hash: 4347de40c3142cd56c2185aac9a6739e
config_hash: 0b0a2503208283b283fc5bc6df6a07a5
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.40.0 (2025-08-20)

Full Changelog: [v1.39.0...v1.40.0](https://github.com/Increase/increase-ruby/compare/v1.39.0...v1.40.0)

### Features

* **api:** api update ([6f2b4ab](https://github.com/Increase/increase-ruby/commit/6f2b4ab35ffbb974911ac85740af55836f9609e1))

## 1.39.0 (2025-08-20)

Full Changelog: [v1.38.0...v1.39.0](https://github.com/Increase/increase-ruby/compare/v1.38.0...v1.39.0)
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 (1.39.0)
increase (1.40.0)
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", "~> 1.39.0"
gem "increase", "~> 1.40.0"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 2 additions & 0 deletions lib/increase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,15 @@
require_relative "increase/models/bookkeeping_entry_set_list_params"
require_relative "increase/models/bookkeeping_entry_set_retrieve_params"
require_relative "increase/models/card"
require_relative "increase/models/card_create_details_iframe_params"
require_relative "increase/models/card_create_params"
require_relative "increase/models/card_details"
require_relative "increase/models/card_details_params"
require_relative "increase/models/card_dispute"
require_relative "increase/models/card_dispute_create_params"
require_relative "increase/models/card_dispute_list_params"
require_relative "increase/models/card_dispute_retrieve_params"
require_relative "increase/models/card_iframe_url"
require_relative "increase/models/card_list_params"
require_relative "increase/models/card_payment"
require_relative "increase/models/card_payment_list_params"
Expand Down
4 changes: 4 additions & 0 deletions lib/increase/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ module Increase

Card = Increase::Models::Card

CardCreateDetailsIframeParams = Increase::Models::CardCreateDetailsIframeParams

CardCreateParams = Increase::Models::CardCreateParams

CardDetails = Increase::Models::CardDetails
Expand All @@ -145,6 +147,8 @@ module Increase

CardDisputeRetrieveParams = Increase::Models::CardDisputeRetrieveParams

CardIframeURL = Increase::Models::CardIframeURL

CardListParams = Increase::Models::CardListParams

CardPayment = Increase::Models::CardPayment
Expand Down
22 changes: 22 additions & 0 deletions lib/increase/models/card_create_details_iframe_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# frozen_string_literal: true

module Increase
module Models
# @see Increase::Resources::Cards#create_details_iframe
class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

# @!attribute physical_card_id
# The identifier of the Physical Card to retrieve details for.
#
# @return [String, nil]
optional :physical_card_id, String

# @!method initialize(physical_card_id: nil, request_options: {})
# @param physical_card_id [String] The identifier of the Physical Card to retrieve details for.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
end
end
end
52 changes: 52 additions & 0 deletions lib/increase/models/card_iframe_url.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# frozen_string_literal: true

module Increase
module Models
# @see Increase::Resources::Cards#create_details_iframe
class CardIframeURL < Increase::Internal::Type::BaseModel
# @!attribute expires_at
# The time the iframe URL will expire.
#
# @return [Time]
required :expires_at, Time

# @!attribute iframe_url
# The iframe URL for the Card. Treat this as an opaque URL.
#
# @return [String]
required :iframe_url, String

# @!attribute type
# A constant representing the object's type. For this resource it will always be
# `card_iframe_url`.
#
# @return [Symbol, Increase::Models::CardIframeURL::Type]
required :type, enum: -> { Increase::CardIframeURL::Type }

# @!method initialize(expires_at:, iframe_url:, type:)
# Some parameter documentations has been truncated, see
# {Increase::Models::CardIframeURL} for more details.
#
# An object containing the iframe URL for a Card.
#
# @param expires_at [Time] The time the iframe URL will expire.
#
# @param iframe_url [String] The iframe URL for the Card. Treat this as an opaque URL.
#
# @param type [Symbol, Increase::Models::CardIframeURL::Type] A constant representing the object's type. For this resource it will always be `

# A constant representing the object's type. For this resource it will always be
# `card_iframe_url`.
#
# @see Increase::Models::CardIframeURL#type
module Type
extend Increase::Internal::Type::Enum

CARD_IFRAME_URL = :card_iframe_url

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
29 changes: 28 additions & 1 deletion lib/increase/resources/cards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,34 @@ def list(params = {})
)
end

# Retrieve sensitive details for a Card
# Create an iframe URL for a Card to display the card details. More details about
# styling and usage can be found in the
# [documentation](/documentation/embedded-card-component).
#
# @overload create_details_iframe(card_id, physical_card_id: nil, request_options: {})
#
# @param card_id [String] The identifier of the Card to retrieve details for.
#
# @param physical_card_id [String] The identifier of the Physical Card to retrieve details for.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::CardIframeURL]
#
# @see Increase::Models::CardCreateDetailsIframeParams
def create_details_iframe(card_id, params = {})
parsed, options = Increase::CardCreateDetailsIframeParams.dump_request(params)
@client.request(
method: :post,
path: ["cards/%1$s/create_details_iframe", card_id],
body: parsed,
model: Increase::CardIframeURL,
options: options
)
end

# Sensitive details for a Card include the primary account number, expiry, card
# verification code, and PIN.
#
# @overload details(card_id, request_options: {})
#
Expand Down
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 = "1.39.0"
VERSION = "1.40.0"
end
5 changes: 5 additions & 0 deletions rbi/increase/models.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ module Increase

Card = Increase::Models::Card

CardCreateDetailsIframeParams =
Increase::Models::CardCreateDetailsIframeParams

CardCreateParams = Increase::Models::CardCreateParams

CardDetails = Increase::Models::CardDetails
Expand All @@ -118,6 +121,8 @@ module Increase

CardDisputeRetrieveParams = Increase::Models::CardDisputeRetrieveParams

CardIframeURL = Increase::Models::CardIframeURL

CardListParams = Increase::Models::CardListParams

CardPayment = Increase::Models::CardPayment
Expand Down
49 changes: 49 additions & 0 deletions rbi/increase/models/card_create_details_iframe_params.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# typed: strong

module Increase
module Models
class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

OrHash =
T.type_alias do
T.any(
Increase::CardCreateDetailsIframeParams,
Increase::Internal::AnyHash
)
end

# The identifier of the Physical Card to retrieve details for.
sig { returns(T.nilable(String)) }
attr_reader :physical_card_id

sig { params(physical_card_id: String).void }
attr_writer :physical_card_id

sig do
params(
physical_card_id: String,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
def self.new(
# The identifier of the Physical Card to retrieve details for.
physical_card_id: nil,
request_options: {}
)
end

sig do
override.returns(
{
physical_card_id: String,
request_options: Increase::RequestOptions
}
)
end
def to_hash
end
end
end
end
77 changes: 77 additions & 0 deletions rbi/increase/models/card_iframe_url.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# typed: strong

module Increase
module Models
class CardIframeURL < Increase::Internal::Type::BaseModel
OrHash =
T.type_alias do
T.any(Increase::CardIframeURL, Increase::Internal::AnyHash)
end

# The time the iframe URL will expire.
sig { returns(Time) }
attr_accessor :expires_at

# The iframe URL for the Card. Treat this as an opaque URL.
sig { returns(String) }
attr_accessor :iframe_url

# A constant representing the object's type. For this resource it will always be
# `card_iframe_url`.
sig { returns(Increase::CardIframeURL::Type::TaggedSymbol) }
attr_accessor :type

# An object containing the iframe URL for a Card.
sig do
params(
expires_at: Time,
iframe_url: String,
type: Increase::CardIframeURL::Type::OrSymbol
).returns(T.attached_class)
end
def self.new(
# The time the iframe URL will expire.
expires_at:,
# The iframe URL for the Card. Treat this as an opaque URL.
iframe_url:,
# A constant representing the object's type. For this resource it will always be
# `card_iframe_url`.
type:
)
end

sig do
override.returns(
{
expires_at: Time,
iframe_url: String,
type: Increase::CardIframeURL::Type::TaggedSymbol
}
)
end
def to_hash
end

# A constant representing the object's type. For this resource it will always be
# `card_iframe_url`.
module Type
extend Increase::Internal::Type::Enum

TaggedSymbol =
T.type_alias { T.all(Symbol, Increase::CardIframeURL::Type) }
OrSymbol = T.type_alias { T.any(Symbol, String) }

CARD_IFRAME_URL =
T.let(:card_iframe_url, Increase::CardIframeURL::Type::TaggedSymbol)

sig do
override.returns(
T::Array[Increase::CardIframeURL::Type::TaggedSymbol]
)
end
def self.values
end
end
end
end
end
22 changes: 21 additions & 1 deletion rbi/increase/resources/cards.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,27 @@ module Increase
)
end

# Retrieve sensitive details for a Card
# Create an iframe URL for a Card to display the card details. More details about
# styling and usage can be found in the
# [documentation](/documentation/embedded-card-component).
sig do
params(
card_id: String,
physical_card_id: String,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::CardIframeURL)
end
def create_details_iframe(
# The identifier of the Card to retrieve details for.
card_id,
# The identifier of the Physical Card to retrieve details for.
physical_card_id: nil,
request_options: {}
)
end

# Sensitive details for a Card include the primary account number, expiry, card
# verification code, and PIN.
sig do
params(
card_id: String,
Expand Down
4 changes: 4 additions & 0 deletions sig/increase/models.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ module Increase

class Card = Increase::Models::Card

class CardCreateDetailsIframeParams = Increase::Models::CardCreateDetailsIframeParams

class CardCreateParams = Increase::Models::CardCreateParams

class CardDetails = Increase::Models::CardDetails
Expand All @@ -105,6 +107,8 @@ module Increase

class CardDisputeRetrieveParams = Increase::Models::CardDisputeRetrieveParams

class CardIframeURL = Increase::Models::CardIframeURL

class CardListParams = Increase::Models::CardListParams

class CardPayment = Increase::Models::CardPayment
Expand Down
Loading