Skip to content
Open
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 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/lithic-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: |-
github.repository == 'stainless-sdks/lithic-ruby' &&
(github.event_name == 'push' || github.event.pull_request.head.repo.fork)
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
Expand Down
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.10.0"
".": "0.11.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 190
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-17c04dd1b0508b380c21e3acc3d4cd1e86b590f81d14fa26d1973b236f660e38.yml
openapi_spec_hash: f8ddee07358d2c938450a6889fbf7940
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-eb2cf51467f505a1d29c3ca40b9595ecbf6d6a3743f53bc42a52c8135a252ff0.yml
openapi_spec_hash: 2fbd71b69d71138b3e54432a38d759ed
config_hash: edbdfefeb0d3d927c2f9fe3402793215
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## 0.11.0 (2026-03-27)

Full Changelog: [v0.10.0...v0.11.0](https://github.com/lithic-com/lithic-ruby/compare/v0.10.0...v0.11.0)

### Features

* **api:** add override_company_name field to payment create parameters ([7e916b6](https://github.com/lithic-com/lithic-ruby/commit/7e916b6bb6e41494aab381d5a30bb83f9ea6ca23))


### Bug Fixes

* **internal:** correct multipart form field name encoding ([abfc1fd](https://github.com/lithic-com/lithic-ruby/commit/abfc1fdd7c78682932979e362448f95bca347d43))


### Chores

* **ci:** skip lint on metadata-only changes ([810ca31](https://github.com/lithic-com/lithic-ruby/commit/810ca31d3deeb0fd04c5843496dc601187076633))
* **ci:** support opting out of skipping builds on metadata-only commits ([40b20fb](https://github.com/lithic-com/lithic-ruby/commit/40b20fb0c3c2c31e2870ee2df86d4a55fac67a04))


### Documentation

* **api:** update nature_of_business and qr_code_url field descriptions ([b11902d](https://github.com/lithic-com/lithic-ruby/commit/b11902d30b4b337e7ffc05358df51c18e6ea6648))

## 0.10.0 (2026-03-23)

Full Changelog: [v0.9.0...v0.10.0](https://github.com/lithic-com/lithic-ruby/compare/v0.9.0...v0.10.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:
lithic (0.10.0)
lithic (0.11.0)
cgi
connection_pool

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

```ruby
gem "lithic", "~> 0.10.0"
gem "lithic", "~> 0.11.0"
```

<!-- x-release-please-end -->
Expand Down
3 changes: 1 addition & 2 deletions lib/lithic/internal/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,7 @@ def encode_query_params(query)
y << "Content-Disposition: form-data"

unless key.nil?
name = ERB::Util.url_encode(key.to_s)
y << "; name=\"#{name}\""
y << "; name=\"#{key}\""
end

case val
Expand Down
11 changes: 8 additions & 3 deletions lib/lithic/models/card_bulk_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class CardBulkOrder < Lithic::Internal::Type::BaseModel
required :shipping_address, Lithic::Internal::Type::Unknown

# @!attribute shipping_method
# Shipping method for all cards in this bulk order
# Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
# BULK_EXPRESS are only available with Perfect Plastic Printing
#
# @return [Symbol, Lithic::Models::CardBulkOrder::ShippingMethod]
required :shipping_method, enum: -> { Lithic::CardBulkOrder::ShippingMethod }
Expand Down Expand Up @@ -70,19 +71,23 @@ class CardBulkOrder < Lithic::Internal::Type::BaseModel
#
# @param shipping_address [Object] Shipping address for all cards in this bulk order
#
# @param shipping_method [Symbol, Lithic::Models::CardBulkOrder::ShippingMethod] Shipping method for all cards in this bulk order
# @param shipping_method [Symbol, Lithic::Models::CardBulkOrder::ShippingMethod] Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
#
# @param status [Symbol, Lithic::Models::CardBulkOrder::Status] Status of the bulk order. OPEN indicates the order is accepting cards. LOCKED in
#
# @param updated [Time] An RFC 3339 timestamp for when the bulk order was last updated. UTC time zone

# Shipping method for all cards in this bulk order
# Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
# BULK_EXPRESS are only available with Perfect Plastic Printing
#
# @see Lithic::Models::CardBulkOrder#shipping_method
module ShippingMethod
extend Lithic::Internal::Type::Enum

BULK_EXPEDITED = :BULK_EXPEDITED
BULK_PRIORITY = :BULK_PRIORITY
BULK_2_DAY = :BULK_2_DAY
BULK_EXPRESS = :BULK_EXPRESS

# @!method self.values
# @return [Array<Symbol>]
Expand Down
11 changes: 8 additions & 3 deletions lib/lithic/models/card_bulk_order_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class CardBulkOrderCreateParams < Lithic::Internal::Type::BaseModel
required :shipping_address, Lithic::Internal::Type::Unknown

# @!attribute shipping_method
# Shipping method for all cards in this bulk order
# Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
# BULK_EXPRESS are only available with Perfect Plastic Printing
#
# @return [Symbol, Lithic::Models::CardBulkOrderCreateParams::ShippingMethod]
required :shipping_method, enum: -> { Lithic::CardBulkOrderCreateParams::ShippingMethod }
Expand All @@ -34,15 +35,19 @@ class CardBulkOrderCreateParams < Lithic::Internal::Type::BaseModel
#
# @param shipping_address [Object] Shipping address for all cards in this bulk order
#
# @param shipping_method [Symbol, Lithic::Models::CardBulkOrderCreateParams::ShippingMethod] Shipping method for all cards in this bulk order
# @param shipping_method [Symbol, Lithic::Models::CardBulkOrderCreateParams::ShippingMethod] Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
#
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]

# Shipping method for all cards in this bulk order
# Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
# BULK_EXPRESS are only available with Perfect Plastic Printing
module ShippingMethod
extend Lithic::Internal::Type::Enum

BULK_EXPEDITED = :BULK_EXPEDITED
BULK_PRIORITY = :BULK_PRIORITY
BULK_2_DAY = :BULK_2_DAY
BULK_EXPRESS = :BULK_EXPRESS

# @!method self.values
# @return [Array<Symbol>]
Expand Down
8 changes: 5 additions & 3 deletions lib/lithic/models/card_convert_physical_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class CardConvertPhysicalParams < Lithic::Internal::Type::BaseModel
# tracking
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
# or similar international option, with tracking
# - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
# - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
# shipping method and timeline are inherited from the parent bulk order.
#
# @return [Symbol, Lithic::Models::CardConvertPhysicalParams::ShippingMethod, nil]
optional :shipping_method, enum: -> { Lithic::CardConvertPhysicalParams::ShippingMethod }
Expand Down Expand Up @@ -82,12 +83,13 @@ class CardConvertPhysicalParams < Lithic::Internal::Type::BaseModel
# tracking
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
# or similar international option, with tracking
# - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
# - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
# shipping method and timeline are inherited from the parent bulk order.
module ShippingMethod
extend Lithic::Internal::Type::Enum

SHIPPING_METHOD_2_DAY = :"2_DAY"
BULK_EXPEDITED = :BULK_EXPEDITED
BULK = :BULK
EXPEDITED = :EXPEDITED
EXPRESS = :EXPRESS
PRIORITY = :PRIORITY
Expand Down
8 changes: 5 additions & 3 deletions lib/lithic/models/card_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ class CardCreateParams < Lithic::Internal::Type::BaseModel
# tracking
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
# or similar international option, with tracking
# - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
# - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
# shipping method and timeline are inherited from the parent bulk order.
#
# @return [Symbol, Lithic::Models::CardCreateParams::ShippingMethod, nil]
optional :shipping_method, enum: -> { Lithic::CardCreateParams::ShippingMethod }
Expand Down Expand Up @@ -369,12 +370,13 @@ module ReplacementSubstatus
# tracking
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
# or similar international option, with tracking
# - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
# - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
# shipping method and timeline are inherited from the parent bulk order.
module ShippingMethod
extend Lithic::Internal::Type::Enum

SHIPPING_METHOD_2_DAY = :"2_DAY"
BULK_EXPEDITED = :BULK_EXPEDITED
BULK = :BULK
EXPEDITED = :EXPEDITED
EXPRESS = :EXPRESS
PRIORITY = :PRIORITY
Expand Down
8 changes: 5 additions & 3 deletions lib/lithic/models/card_reissue_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class CardReissueParams < Lithic::Internal::Type::BaseModel
# tracking
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
# or similar international option, with tracking
# - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
# - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
# shipping method and timeline are inherited from the parent bulk order.
#
# @return [Symbol, Lithic::Models::CardReissueParams::ShippingMethod, nil]
optional :shipping_method, enum: -> { Lithic::CardReissueParams::ShippingMethod }
Expand Down Expand Up @@ -82,12 +83,13 @@ class CardReissueParams < Lithic::Internal::Type::BaseModel
# tracking
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
# or similar international option, with tracking
# - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
# - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
# shipping method and timeline are inherited from the parent bulk order.
module ShippingMethod
extend Lithic::Internal::Type::Enum

SHIPPING_METHOD_2_DAY = :"2_DAY"
BULK_EXPEDITED = :BULK_EXPEDITED
BULK = :BULK
EXPEDITED = :EXPEDITED
EXPRESS = :EXPRESS
PRIORITY = :PRIORITY
Expand Down
8 changes: 5 additions & 3 deletions lib/lithic/models/card_renew_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class CardRenewParams < Lithic::Internal::Type::BaseModel
# tracking
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
# or similar international option, with tracking
# - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
# - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
# shipping method and timeline are inherited from the parent bulk order.
#
# @return [Symbol, Lithic::Models::CardRenewParams::ShippingMethod, nil]
optional :shipping_method, enum: -> { Lithic::CardRenewParams::ShippingMethod }
Expand Down Expand Up @@ -100,12 +101,13 @@ class CardRenewParams < Lithic::Internal::Type::BaseModel
# tracking
# - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
# or similar international option, with tracking
# - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
# - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
# shipping method and timeline are inherited from the parent bulk order.
module ShippingMethod
extend Lithic::Internal::Type::Enum

SHIPPING_METHOD_2_DAY = :"2_DAY"
BULK_EXPEDITED = :BULK_EXPEDITED
BULK = :BULK
EXPEDITED = :EXPEDITED
EXPRESS = :EXPRESS
PRIORITY = :PRIORITY
Expand Down
14 changes: 13 additions & 1 deletion lib/lithic/models/payment_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,24 @@ class MethodAttributes < Lithic::Internal::Type::BaseModel
# @return [String, nil]
optional :addenda, String, nil?: true

# @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil)
# @!attribute override_company_name
# Value to override the configured company name with. Can only be used if allowed
# to override
#
# @return [String, nil]
optional :override_company_name, String, nil?: true

# @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil, override_company_name: nil)
# Some parameter documentations has been truncated, see
# {Lithic::Models::PaymentCreateParams::MethodAttributes} for more details.
#
# @param sec_code [Symbol, Lithic::Models::PaymentCreateParams::MethodAttributes::SecCode]
#
# @param ach_hold_period [Integer] Number of days to hold the ACH payment
#
# @param addenda [String, nil]
#
# @param override_company_name [String, nil] Value to override the configured company name with. Can only be used if allowed

# @see Lithic::Models::PaymentCreateParams::MethodAttributes#sec_code
module SecCode
Expand Down
21 changes: 10 additions & 11 deletions lib/lithic/resources/card_bulk_orders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ class CardBulkOrders
# Some parameter documentations has been truncated, see
# {Lithic::Models::CardBulkOrderCreateParams} for more details.
#
# Create a new bulk order for physical card shipments **[BETA]**. Cards can be
# added to the order via the POST /v1/cards endpoint by specifying the
# bulk_order_token. Lock the order via PATCH
# /v1/card_bulk_orders/{bulk_order_token} to prepare for shipment. Please work
# with your Customer Success Manager and card personalization bureau to ensure
# bulk shipping is supported for your program.
# Create a new bulk order for physical card shipments. Cards can be added to the
# order via the POST /v1/cards endpoint by specifying the bulk_order_token. Lock
# the order via PATCH /v1/card_bulk_orders/{bulk_order_token} to prepare for
# shipment. Please work with your Customer Success Manager and card
# personalization bureau to ensure bulk shipping is supported for your program.
#
# @overload create(customer_product_id:, shipping_address:, shipping_method:, request_options: {})
#
# @param customer_product_id [String] Customer-specified product configuration for physical card manufacturing. This m
#
# @param shipping_address [Object] Shipping address for all cards in this bulk order
#
# @param shipping_method [Symbol, Lithic::Models::CardBulkOrderCreateParams::ShippingMethod] Shipping method for all cards in this bulk order
# @param shipping_method [Symbol, Lithic::Models::CardBulkOrderCreateParams::ShippingMethod] Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
#
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
#
Expand All @@ -37,7 +36,7 @@ def create(params)
)
end

# Retrieve a specific bulk order by token **[BETA]**
# Retrieve a specific bulk order by token
#
# @overload retrieve(bulk_order_token, request_options: {})
#
Expand All @@ -57,8 +56,8 @@ def retrieve(bulk_order_token, params = {})
)
end

# Update a bulk order **[BETA]**. Primarily used to lock the order, preventing
# additional cards from being added
# Update a bulk order. Primarily used to lock the order, preventing additional
# cards from being added
#
# @overload update(bulk_order_token, status:, request_options: {})
#
Expand All @@ -85,7 +84,7 @@ def update(bulk_order_token, params)
# Some parameter documentations has been truncated, see
# {Lithic::Models::CardBulkOrderListParams} for more details.
#
# List bulk orders for physical card shipments **[BETA]**
# List bulk orders for physical card shipments
#
# @overload list(begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
#
Expand Down
2 changes: 1 addition & 1 deletion lib/lithic/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Lithic
VERSION = "0.10.0"
VERSION = "0.11.0"
end
24 changes: 21 additions & 3 deletions rbi/lithic/models/card_bulk_order.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ module Lithic
sig { returns(T.anything) }
attr_accessor :shipping_address

# Shipping method for all cards in this bulk order
# Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
# BULK_EXPRESS are only available with Perfect Plastic Printing
sig { returns(Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol) }
attr_accessor :shipping_method

Expand Down Expand Up @@ -65,7 +66,8 @@ module Lithic
customer_product_id:,
# Shipping address for all cards in this bulk order
shipping_address:,
# Shipping method for all cards in this bulk order
# Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
# BULK_EXPRESS are only available with Perfect Plastic Printing
shipping_method:,
# Status of the bulk order. OPEN indicates the order is accepting cards. LOCKED
# indicates the order is finalized and no more cards can be added
Expand Down Expand Up @@ -93,7 +95,8 @@ module Lithic
def to_hash
end

# Shipping method for all cards in this bulk order
# Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
# BULK_EXPRESS are only available with Perfect Plastic Printing
module ShippingMethod
extend Lithic::Internal::Type::Enum

Expand All @@ -106,6 +109,21 @@ module Lithic
:BULK_EXPEDITED,
Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol
)
BULK_PRIORITY =
T.let(
:BULK_PRIORITY,
Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol
)
BULK_2_DAY =
T.let(
:BULK_2_DAY,
Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol
)
BULK_EXPRESS =
T.let(
:BULK_EXPRESS,
Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol
)

sig do
override.returns(
Expand Down
Loading