diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 241cecef..7b587617 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 091cfb12..f7014c35 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.10.0" + ".": "0.11.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 2c9eb4a3..f20dc054 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 957c1f5c..ef72d859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index 38db2155..8db6021d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.10.0) + lithic (0.11.0) cgi connection_pool diff --git a/README.md b/README.md index 1cd63711..ed016fd5 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "lithic", "~> 0.10.0" +gem "lithic", "~> 0.11.0" ``` diff --git a/lib/lithic/internal/util.rb b/lib/lithic/internal/util.rb index 9efafc4e..3cf4acea 100644 --- a/lib/lithic/internal/util.rb +++ b/lib/lithic/internal/util.rb @@ -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 diff --git a/lib/lithic/models/card_bulk_order.rb b/lib/lithic/models/card_bulk_order.rb index d8410e16..798f03be 100644 --- a/lib/lithic/models/card_bulk_order.rb +++ b/lib/lithic/models/card_bulk_order.rb @@ -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 } @@ -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] diff --git a/lib/lithic/models/card_bulk_order_create_params.rb b/lib/lithic/models/card_bulk_order_create_params.rb index ae8ffb72..40b2d649 100644 --- a/lib/lithic/models/card_bulk_order_create_params.rb +++ b/lib/lithic/models/card_bulk_order_create_params.rb @@ -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 } @@ -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] diff --git a/lib/lithic/models/card_convert_physical_params.rb b/lib/lithic/models/card_convert_physical_params.rb index 19eb76b8..efae78ae 100644 --- a/lib/lithic/models/card_convert_physical_params.rb +++ b/lib/lithic/models/card_convert_physical_params.rb @@ -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 } @@ -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 diff --git a/lib/lithic/models/card_create_params.rb b/lib/lithic/models/card_create_params.rb index 669b73db..1d6837a9 100644 --- a/lib/lithic/models/card_create_params.rb +++ b/lib/lithic/models/card_create_params.rb @@ -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 } @@ -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 diff --git a/lib/lithic/models/card_reissue_params.rb b/lib/lithic/models/card_reissue_params.rb index 3212f176..c0e07ceb 100644 --- a/lib/lithic/models/card_reissue_params.rb +++ b/lib/lithic/models/card_reissue_params.rb @@ -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 } @@ -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 diff --git a/lib/lithic/models/card_renew_params.rb b/lib/lithic/models/card_renew_params.rb index 2b7fcd07..5b7cd10c 100644 --- a/lib/lithic/models/card_renew_params.rb +++ b/lib/lithic/models/card_renew_params.rb @@ -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 } @@ -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 diff --git a/lib/lithic/models/payment_create_params.rb b/lib/lithic/models/payment_create_params.rb index 14bc2e5e..f777988f 100644 --- a/lib/lithic/models/payment_create_params.rb +++ b/lib/lithic/models/payment_create_params.rb @@ -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 diff --git a/lib/lithic/resources/card_bulk_orders.rb b/lib/lithic/resources/card_bulk_orders.rb index 366c1723..63c251f3 100644 --- a/lib/lithic/resources/card_bulk_orders.rb +++ b/lib/lithic/resources/card_bulk_orders.rb @@ -6,12 +6,11 @@ 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: {}) # @@ -19,7 +18,7 @@ class CardBulkOrders # # @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] # @@ -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: {}) # @@ -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: {}) # @@ -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: {}) # diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index fba104c0..2b43120f 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.10.0" + VERSION = "0.11.0" end diff --git a/rbi/lithic/models/card_bulk_order.rbi b/rbi/lithic/models/card_bulk_order.rbi index 330e7bbf..f99811f9 100644 --- a/rbi/lithic/models/card_bulk_order.rbi +++ b/rbi/lithic/models/card_bulk_order.rbi @@ -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 @@ -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 @@ -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 @@ -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( diff --git a/rbi/lithic/models/card_bulk_order_create_params.rbi b/rbi/lithic/models/card_bulk_order_create_params.rbi index ee302b75..27647ef5 100644 --- a/rbi/lithic/models/card_bulk_order_create_params.rbi +++ b/rbi/lithic/models/card_bulk_order_create_params.rbi @@ -20,7 +20,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 do returns(Lithic::CardBulkOrderCreateParams::ShippingMethod::OrSymbol) end @@ -41,7 +42,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:, request_options: {} ) @@ -61,7 +63,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 @@ -76,6 +79,21 @@ module Lithic :BULK_EXPEDITED, Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol ) + BULK_PRIORITY = + T.let( + :BULK_PRIORITY, + Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol + ) + BULK_2_DAY = + T.let( + :BULK_2_DAY, + Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol + ) + BULK_EXPRESS = + T.let( + :BULK_EXPRESS, + Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/card_convert_physical_params.rbi b/rbi/lithic/models/card_convert_physical_params.rbi index b095e88f..37383a4d 100644 --- a/rbi/lithic/models/card_convert_physical_params.rbi +++ b/rbi/lithic/models/card_convert_physical_params.rbi @@ -51,7 +51,8 @@ module Lithic # 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. sig do returns( T.nilable(Lithic::CardConvertPhysicalParams::ShippingMethod::OrSymbol) @@ -102,7 +103,8 @@ module Lithic # 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. shipping_method: nil, request_options: {} ) @@ -138,7 +140,8 @@ module Lithic # 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 @@ -153,9 +156,9 @@ module Lithic :"2_DAY", Lithic::CardConvertPhysicalParams::ShippingMethod::TaggedSymbol ) - BULK_EXPEDITED = + BULK = T.let( - :BULK_EXPEDITED, + :BULK, Lithic::CardConvertPhysicalParams::ShippingMethod::TaggedSymbol ) EXPEDITED = diff --git a/rbi/lithic/models/card_create_params.rbi b/rbi/lithic/models/card_create_params.rbi index a3ffe2a1..2b5a1b0a 100644 --- a/rbi/lithic/models/card_create_params.rbi +++ b/rbi/lithic/models/card_create_params.rbi @@ -208,7 +208,8 @@ module Lithic # 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. sig do returns(T.nilable(Lithic::CardCreateParams::ShippingMethod::OrSymbol)) end @@ -409,7 +410,8 @@ module Lithic # 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. shipping_method: nil, # Amount (in cents) to limit approved authorizations (e.g. 100000 would be a # $1,000 limit). Transaction requests above the spend limit will be declined. Note @@ -635,7 +637,8 @@ module Lithic # 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 @@ -650,11 +653,8 @@ module Lithic :"2_DAY", Lithic::CardCreateParams::ShippingMethod::TaggedSymbol ) - BULK_EXPEDITED = - T.let( - :BULK_EXPEDITED, - Lithic::CardCreateParams::ShippingMethod::TaggedSymbol - ) + BULK = + T.let(:BULK, Lithic::CardCreateParams::ShippingMethod::TaggedSymbol) EXPEDITED = T.let( :EXPEDITED, diff --git a/rbi/lithic/models/card_reissue_params.rbi b/rbi/lithic/models/card_reissue_params.rbi index a365e366..18fd8c10 100644 --- a/rbi/lithic/models/card_reissue_params.rbi +++ b/rbi/lithic/models/card_reissue_params.rbi @@ -51,7 +51,8 @@ module Lithic # 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. sig do returns(T.nilable(Lithic::CardReissueParams::ShippingMethod::OrSymbol)) end @@ -98,7 +99,8 @@ module Lithic # 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. shipping_method: nil, request_options: {} ) @@ -134,7 +136,8 @@ module Lithic # 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 @@ -149,11 +152,8 @@ module Lithic :"2_DAY", Lithic::CardReissueParams::ShippingMethod::TaggedSymbol ) - BULK_EXPEDITED = - T.let( - :BULK_EXPEDITED, - Lithic::CardReissueParams::ShippingMethod::TaggedSymbol - ) + BULK = + T.let(:BULK, Lithic::CardReissueParams::ShippingMethod::TaggedSymbol) EXPEDITED = T.let( :EXPEDITED, diff --git a/rbi/lithic/models/card_renew_params.rbi b/rbi/lithic/models/card_renew_params.rbi index 819a10df..985dcef1 100644 --- a/rbi/lithic/models/card_renew_params.rbi +++ b/rbi/lithic/models/card_renew_params.rbi @@ -67,7 +67,8 @@ module Lithic # 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. sig do returns(T.nilable(Lithic::CardRenewParams::ShippingMethod::OrSymbol)) end @@ -122,7 +123,8 @@ module Lithic # 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. shipping_method: nil, request_options: {} ) @@ -159,7 +161,8 @@ module Lithic # 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 @@ -171,11 +174,8 @@ module Lithic SHIPPING_METHOD_2_DAY = T.let(:"2_DAY", Lithic::CardRenewParams::ShippingMethod::TaggedSymbol) - BULK_EXPEDITED = - T.let( - :BULK_EXPEDITED, - Lithic::CardRenewParams::ShippingMethod::TaggedSymbol - ) + BULK = + T.let(:BULK, Lithic::CardRenewParams::ShippingMethod::TaggedSymbol) EXPEDITED = T.let( :EXPEDITED, diff --git a/rbi/lithic/models/payment_create_params.rbi b/rbi/lithic/models/payment_create_params.rbi index 7cee135d..57fcea10 100644 --- a/rbi/lithic/models/payment_create_params.rbi +++ b/rbi/lithic/models/payment_create_params.rbi @@ -171,19 +171,28 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :addenda + # Value to override the configured company name with. Can only be used if allowed + # to override + sig { returns(T.nilable(String)) } + attr_accessor :override_company_name + sig do params( sec_code: Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol, ach_hold_period: Integer, - addenda: T.nilable(String) + addenda: T.nilable(String), + override_company_name: T.nilable(String) ).returns(T.attached_class) end def self.new( sec_code:, # Number of days to hold the ACH payment ach_hold_period: nil, - addenda: nil + addenda: nil, + # Value to override the configured company name with. Can only be used if allowed + # to override + override_company_name: nil ) end @@ -193,7 +202,8 @@ module Lithic sec_code: Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol, ach_hold_period: Integer, - addenda: T.nilable(String) + addenda: T.nilable(String), + override_company_name: T.nilable(String) } ) end diff --git a/rbi/lithic/resources/card_bulk_orders.rbi b/rbi/lithic/resources/card_bulk_orders.rbi index 42434340..f76c8a25 100644 --- a/rbi/lithic/resources/card_bulk_orders.rbi +++ b/rbi/lithic/resources/card_bulk_orders.rbi @@ -3,12 +3,11 @@ module Lithic module Resources class CardBulkOrders - # 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. sig do params( customer_product_id: String, @@ -24,13 +23,14 @@ 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:, request_options: {} ) end - # Retrieve a specific bulk order by token **[BETA]** + # Retrieve a specific bulk order by token sig do params( bulk_order_token: String, @@ -44,8 +44,8 @@ module Lithic ) 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 sig do params( bulk_order_token: String, @@ -62,7 +62,7 @@ module Lithic ) end - # List bulk orders for physical card shipments **[BETA]** + # List bulk orders for physical card shipments sig do params( begin_: Time, diff --git a/rbi/lithic/resources/cards.rbi b/rbi/lithic/resources/cards.rbi index 8aa66d9e..7b4b41a4 100644 --- a/rbi/lithic/resources/cards.rbi +++ b/rbi/lithic/resources/cards.rbi @@ -153,7 +153,8 @@ module Lithic # 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. shipping_method: nil, # Body param: Amount (in cents) to limit approved authorizations (e.g. 100000 # would be a $1,000 limit). Transaction requests above the spend limit will be @@ -383,7 +384,8 @@ module Lithic # 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. shipping_method: nil, request_options: {} ) @@ -519,7 +521,8 @@ module Lithic # 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. shipping_method: nil, request_options: {} ) @@ -576,7 +579,8 @@ module Lithic # 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. shipping_method: nil, request_options: {} ) diff --git a/sig/lithic/models/card_bulk_order.rbs b/sig/lithic/models/card_bulk_order.rbs index 86305d9a..364e85f8 100644 --- a/sig/lithic/models/card_bulk_order.rbs +++ b/sig/lithic/models/card_bulk_order.rbs @@ -51,12 +51,16 @@ module Lithic updated: Time } - type shipping_method = :BULK_EXPEDITED + type shipping_method = + :BULK_EXPEDITED | :BULK_PRIORITY | :BULK_2_DAY | :BULK_EXPRESS 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 def self?.values: -> ::Array[Lithic::Models::CardBulkOrder::shipping_method] end diff --git a/sig/lithic/models/card_bulk_order_create_params.rbs b/sig/lithic/models/card_bulk_order_create_params.rbs index 79d51424..33361ef6 100644 --- a/sig/lithic/models/card_bulk_order_create_params.rbs +++ b/sig/lithic/models/card_bulk_order_create_params.rbs @@ -32,12 +32,16 @@ module Lithic request_options: Lithic::RequestOptions } - type shipping_method = :BULK_EXPEDITED + type shipping_method = + :BULK_EXPEDITED | :BULK_PRIORITY | :BULK_2_DAY | :BULK_EXPRESS 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 def self?.values: -> ::Array[Lithic::Models::CardBulkOrderCreateParams::shipping_method] end diff --git a/sig/lithic/models/card_convert_physical_params.rbs b/sig/lithic/models/card_convert_physical_params.rbs index d8156440..9ca4dcd1 100644 --- a/sig/lithic/models/card_convert_physical_params.rbs +++ b/sig/lithic/models/card_convert_physical_params.rbs @@ -52,7 +52,7 @@ module Lithic type shipping_method = :"2_DAY" - | :BULK_EXPEDITED + | :BULK | :EXPEDITED | :EXPRESS | :PRIORITY @@ -63,7 +63,7 @@ module Lithic extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY: :"2_DAY" - BULK_EXPEDITED: :BULK_EXPEDITED + BULK: :BULK EXPEDITED: :EXPEDITED EXPRESS: :EXPRESS PRIORITY: :PRIORITY diff --git a/sig/lithic/models/card_create_params.rbs b/sig/lithic/models/card_create_params.rbs index 8ea307b4..8c90958e 100644 --- a/sig/lithic/models/card_create_params.rbs +++ b/sig/lithic/models/card_create_params.rbs @@ -226,7 +226,7 @@ module Lithic type shipping_method = :"2_DAY" - | :BULK_EXPEDITED + | :BULK | :EXPEDITED | :EXPRESS | :PRIORITY @@ -237,7 +237,7 @@ module Lithic extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY: :"2_DAY" - BULK_EXPEDITED: :BULK_EXPEDITED + BULK: :BULK EXPEDITED: :EXPEDITED EXPRESS: :EXPRESS PRIORITY: :PRIORITY diff --git a/sig/lithic/models/card_reissue_params.rbs b/sig/lithic/models/card_reissue_params.rbs index 8b669e80..d4529ab0 100644 --- a/sig/lithic/models/card_reissue_params.rbs +++ b/sig/lithic/models/card_reissue_params.rbs @@ -56,7 +56,7 @@ module Lithic type shipping_method = :"2_DAY" - | :BULK_EXPEDITED + | :BULK | :EXPEDITED | :EXPRESS | :PRIORITY @@ -67,7 +67,7 @@ module Lithic extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY: :"2_DAY" - BULK_EXPEDITED: :BULK_EXPEDITED + BULK: :BULK EXPEDITED: :EXPEDITED EXPRESS: :EXPRESS PRIORITY: :PRIORITY diff --git a/sig/lithic/models/card_renew_params.rbs b/sig/lithic/models/card_renew_params.rbs index 2265b4a7..aeadd193 100644 --- a/sig/lithic/models/card_renew_params.rbs +++ b/sig/lithic/models/card_renew_params.rbs @@ -66,7 +66,7 @@ module Lithic type shipping_method = :"2_DAY" - | :BULK_EXPEDITED + | :BULK | :EXPEDITED | :EXPRESS | :PRIORITY @@ -77,7 +77,7 @@ module Lithic extend Lithic::Internal::Type::Enum SHIPPING_METHOD_2_DAY: :"2_DAY" - BULK_EXPEDITED: :BULK_EXPEDITED + BULK: :BULK EXPEDITED: :EXPEDITED EXPRESS: :EXPRESS PRIORITY: :PRIORITY diff --git a/sig/lithic/models/payment_create_params.rbs b/sig/lithic/models/payment_create_params.rbs index 4f6d15e7..2865c918 100644 --- a/sig/lithic/models/payment_create_params.rbs +++ b/sig/lithic/models/payment_create_params.rbs @@ -92,7 +92,8 @@ module Lithic { sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code, ach_hold_period: Integer, - addenda: String? + addenda: String?, + override_company_name: String? } class MethodAttributes < Lithic::Internal::Type::BaseModel @@ -104,16 +105,20 @@ module Lithic attr_accessor addenda: String? + attr_accessor override_company_name: String? + def initialize: ( sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code, ?ach_hold_period: Integer, - ?addenda: String? + ?addenda: String?, + ?override_company_name: String? ) -> void def to_hash: -> { sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code, ach_hold_period: Integer, - addenda: String? + addenda: String?, + override_company_name: String? } type sec_code = :CCD | :PPD | :WEB