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 API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b2c5026cbcd9404c94b31197152f479d279410a8
d6534f3d076849c4f6df1414d4c477334e431ffd
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2100
v2103
2 changes: 1 addition & 1 deletion lib/stripe/api_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

module Stripe
module ApiVersion
CURRENT = "2025-09-30.preview"
CURRENT = "2025-10-29.preview"
end
end
10 changes: 8 additions & 2 deletions lib/stripe/params/charge_capture_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -676,15 +676,21 @@ def initialize(
end
# Car rental details for this PaymentIntent.
attr_accessor :car_rental
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
# A unique value to identify the customer. This field is available only for card payments.
#
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
attr_accessor :customer_reference
# Event details for this PaymentIntent
attr_accessor :event_details
# Flight reservation details for this PaymentIntent
attr_accessor :flight
# Lodging reservation details for this PaymentIntent
attr_accessor :lodging
# A unique value assigned by the business to identify the transaction.
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
#
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
#
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
attr_accessor :order_reference
# Subscription details for this PaymentIntent
attr_accessor :subscription
Expand Down
10 changes: 8 additions & 2 deletions lib/stripe/params/charge_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -685,15 +685,21 @@ def initialize(
end
# Car rental details for this PaymentIntent.
attr_accessor :car_rental
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
# A unique value to identify the customer. This field is available only for card payments.
#
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
attr_accessor :customer_reference
# Event details for this PaymentIntent
attr_accessor :event_details
# Flight reservation details for this PaymentIntent
attr_accessor :flight
# Lodging reservation details for this PaymentIntent
attr_accessor :lodging
# A unique value assigned by the business to identify the transaction.
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
#
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
#
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
attr_accessor :order_reference
# Subscription details for this PaymentIntent
attr_accessor :subscription
Expand Down
42 changes: 29 additions & 13 deletions lib/stripe/params/payment_intent_capture_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,32 @@ def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
end

class Tax < ::Stripe::RequestParams
# The total tax on an item. Non-negative integer.
# The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
#
# This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
attr_accessor :total_tax_amount

def initialize(total_tax_amount: nil)
@total_tax_amount = total_tax_amount
end
end
# The amount an item was discounted for. Positive integer.
# The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
#
# This field is mutually exclusive with the `amount_details[discount_amount]` field.
attr_accessor :discount_amount
# Payment method-specific information for line items.
attr_accessor :payment_method_options
# Unique identifier of the product. At most 12 characters long.
# The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
attr_accessor :product_code
# Name of the product. At most 100 characters long.
# The product name of the line item. Required for L3 rates. At most 1024 characters long.
#
# For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
attr_accessor :product_name
# Number of items of the product. Positive integer.
# The quantity of items. Required for L3 rates. An integer greater than 0.
attr_accessor :quantity
# Contains information about the tax on the item.
attr_accessor :tax
# Cost of the product. Non-negative integer.
# The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
attr_accessor :unit_cost
# A unit of measure for the line item, such as gallons, feet, meters, etc.
attr_accessor :unit_of_measure
Expand All @@ -125,11 +131,11 @@ def initialize(
end

class Shipping < ::Stripe::RequestParams
# Portion of the amount that is for shipping.
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0.
attr_accessor :amount
# The postal code that represents the shipping source.
# If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
attr_accessor :from_postal_code
# The postal code that represents the shipping destination.
# If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
attr_accessor :to_postal_code

def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
Expand All @@ -140,14 +146,18 @@ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
end

class Tax < ::Stripe::RequestParams
# Total portion of the amount that is for tax.
# The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
#
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
attr_accessor :total_tax_amount

def initialize(total_tax_amount: nil)
@total_tax_amount = total_tax_amount
end
end
# The total discount applied on the transaction.
# The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
#
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
attr_accessor :discount_amount
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
attr_accessor :line_items
Expand Down Expand Up @@ -862,15 +872,21 @@ def initialize(
end
# Car rental details for this PaymentIntent.
attr_accessor :car_rental
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
# A unique value to identify the customer. This field is available only for card payments.
#
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
attr_accessor :customer_reference
# Event details for this PaymentIntent
attr_accessor :event_details
# Flight reservation details for this PaymentIntent
attr_accessor :flight
# Lodging reservation details for this PaymentIntent
attr_accessor :lodging
# A unique value assigned by the business to identify the transaction.
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
#
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
#
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
attr_accessor :order_reference
# Subscription details for this PaymentIntent
attr_accessor :subscription
Expand Down
42 changes: 29 additions & 13 deletions lib/stripe/params/payment_intent_confirm_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,32 @@ def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
end

class Tax < ::Stripe::RequestParams
# The total tax on an item. Non-negative integer.
# The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
#
# This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
attr_accessor :total_tax_amount

def initialize(total_tax_amount: nil)
@total_tax_amount = total_tax_amount
end
end
# The amount an item was discounted for. Positive integer.
# The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
#
# This field is mutually exclusive with the `amount_details[discount_amount]` field.
attr_accessor :discount_amount
# Payment method-specific information for line items.
attr_accessor :payment_method_options
# Unique identifier of the product. At most 12 characters long.
# The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
attr_accessor :product_code
# Name of the product. At most 100 characters long.
# The product name of the line item. Required for L3 rates. At most 1024 characters long.
#
# For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
attr_accessor :product_name
# Number of items of the product. Positive integer.
# The quantity of items. Required for L3 rates. An integer greater than 0.
attr_accessor :quantity
# Contains information about the tax on the item.
attr_accessor :tax
# Cost of the product. Non-negative integer.
# The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
attr_accessor :unit_cost
# A unit of measure for the line item, such as gallons, feet, meters, etc.
attr_accessor :unit_of_measure
Expand All @@ -125,11 +131,11 @@ def initialize(
end

class Shipping < ::Stripe::RequestParams
# Portion of the amount that is for shipping.
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0.
attr_accessor :amount
# The postal code that represents the shipping source.
# If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
attr_accessor :from_postal_code
# The postal code that represents the shipping destination.
# If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
attr_accessor :to_postal_code

def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
Expand All @@ -140,14 +146,18 @@ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
end

class Tax < ::Stripe::RequestParams
# Total portion of the amount that is for tax.
# The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
#
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
attr_accessor :total_tax_amount

def initialize(total_tax_amount: nil)
@total_tax_amount = total_tax_amount
end
end
# The total discount applied on the transaction.
# The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
#
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
attr_accessor :discount_amount
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
attr_accessor :line_items
Expand Down Expand Up @@ -901,15 +911,21 @@ def initialize(
end
# Car rental details for this PaymentIntent.
attr_accessor :car_rental
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
# A unique value to identify the customer. This field is available only for card payments.
#
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
attr_accessor :customer_reference
# Event details for this PaymentIntent
attr_accessor :event_details
# Flight reservation details for this PaymentIntent
attr_accessor :flight
# Lodging reservation details for this PaymentIntent
attr_accessor :lodging
# A unique value assigned by the business to identify the transaction.
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
#
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
#
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
attr_accessor :order_reference
# Subscription details for this PaymentIntent
attr_accessor :subscription
Expand Down
Loading