mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-22 00:00:40 -04:00
Compare commits
2 Commits
9cb048b053
...
625a58661e
Author | SHA1 | Date | |
---|---|---|---|
|
625a58661e | ||
|
33eff4d1d3 |
@ -1,4 +1,9 @@
|
||||
# Changelog
|
||||
## 10.1.0 - 2023-11-02
|
||||
* [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
|
||||
* Add support for new resource `Tax.Registration`
|
||||
* Add support for `create`, `list`, and `update` methods on resource `Registration`
|
||||
|
||||
## 10.0.0 - 2023-10-16
|
||||
* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe-ruby`.
|
||||
* [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
|
||||
|
@ -1 +1 @@
|
||||
v603
|
||||
v640
|
@ -95,6 +95,7 @@ module Stripe
|
||||
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
||||
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
||||
Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
|
||||
Tax::Registration::OBJECT_NAME => Tax::Registration,
|
||||
Tax::Settings::OBJECT_NAME => Tax::Settings,
|
||||
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
||||
Tax::TransactionLineItem::OBJECT_NAME => Tax::TransactionLineItem,
|
||||
|
@ -82,6 +82,7 @@ require "stripe/resources/subscription_item"
|
||||
require "stripe/resources/subscription_schedule"
|
||||
require "stripe/resources/tax/calculation"
|
||||
require "stripe/resources/tax/calculation_line_item"
|
||||
require "stripe/resources/tax/registration"
|
||||
require "stripe/resources/tax/settings"
|
||||
require "stripe/resources/tax/transaction"
|
||||
require "stripe/resources/tax/transaction_line_item"
|
||||
|
@ -2,17 +2,32 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# `Exchange Rate` objects allow you to determine the rates that Stripe is
|
||||
# currently using to convert from one currency to another. Since this number is
|
||||
# variable throughout the day, there are various reasons why you might want to
|
||||
# know the current rate (for example, to dynamically price an item for a user
|
||||
# with a default payment in a foreign currency).
|
||||
# `ExchangeRate` objects allow you to determine the rates that Stripe is currently
|
||||
# using to convert from one currency to another. Since this number is variable
|
||||
# throughout the day, there are various reasons why you might want to know the current
|
||||
# rate (for example, to dynamically price an item for a user with a default
|
||||
# payment in a foreign currency).
|
||||
#
|
||||
# If you want a guarantee that the charge is made with a certain exchange rate
|
||||
# you expect is current, you can pass in `exchange_rate` to charges endpoints.
|
||||
# If the value is no longer up to date, the charge won't go through. Please
|
||||
# refer to our [Exchange Rates API](https://stripe.com/docs/exchange-rates) guide for more
|
||||
# details.
|
||||
# Please refer to our [Exchange Rates API](https://stripe.com/docs/fx-rates) guide for more details.
|
||||
#
|
||||
# *[Note: this integration path is supported but no longer recommended]* Additionally,
|
||||
# you can guarantee that a charge is made with an exchange rate that you expect is
|
||||
# current. To do so, you must pass in the exchange_rate to charges endpoints. If the
|
||||
# value is no longer up to date, the charge won't go through. Please refer to our
|
||||
# [Using with charges](https://stripe.com/docs/exchange-rates) guide for more details.
|
||||
#
|
||||
# -----
|
||||
#
|
||||
#
|
||||
#
|
||||
# *This Exchange Rates API is a Beta Service and is subject to Stripe's terms of service. You may use the API solely for the purpose of transacting on Stripe. For example, the API may be queried in order to:*
|
||||
#
|
||||
# - *localize prices for processing payments on Stripe*
|
||||
# - *reconcile Stripe transactions*
|
||||
# - *determine how much money to send to a connected account*
|
||||
# - *determine app fees to charge a connected account*
|
||||
#
|
||||
# *Using this Exchange Rates API beta for any purpose other than to transact on Stripe is strictly prohibited and constitutes a violation of Stripe's terms of service.*
|
||||
class ExchangeRate < APIResource
|
||||
extend Stripe::APIOperations::List
|
||||
|
||||
|
19
lib/stripe/resources/tax/registration.rb
Normal file
19
lib/stripe/resources/tax/registration.rb
Normal file
@ -0,0 +1,19 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
module Tax
|
||||
# A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/docs/tax).
|
||||
#
|
||||
# Stripe doesn't register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/docs/tax/registering).
|
||||
#
|
||||
# Related guide: [Using the Registrations API](https://stripe.com/docs/tax/registrations-api)
|
||||
class Registration < APIResource
|
||||
extend Stripe::APIOperations::Create
|
||||
extend Stripe::APIOperations::List
|
||||
include Stripe::APIOperations::Save
|
||||
|
||||
OBJECT_NAME = "tax.registration"
|
||||
end
|
||||
end
|
||||
end
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
VERSION = "10.0.0"
|
||||
VERSION = "10.1.0"
|
||||
end
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user