mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-15 00:00:49 -04:00
Compare commits
No commits in common. "9a4dfdcb2fa74490561a8b242ecd824e95d0510c" and "7bf9cace9e7d94dcdf5d2e1c2e61ce134f253884" have entirely different histories.
9a4dfdcb2f
...
7bf9cace9e
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
@ -33,7 +33,7 @@ jobs:
|
||||
- name: Build
|
||||
run: gem build stripe.gemspec
|
||||
- name: 'Upload Artifact'
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: gems
|
||||
path: '*.gem'
|
||||
@ -43,9 +43,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, jruby-9.4.0.0, truffleruby-head]
|
||||
ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, jruby-9.4.0.0, truffleruby-head]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
@ -69,7 +69,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download all workflow run artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: gems
|
||||
path: gems
|
||||
|
@ -1,10 +1,5 @@
|
||||
# Changelog
|
||||
|
||||
## 8.2.0-beta.2 - 2023-01-19
|
||||
* [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
|
||||
* Updated stable APIs to the latest version
|
||||
* Add support for `Tax.Settings` resource.
|
||||
|
||||
## 8.2.0-beta.1 - 2023-01-12
|
||||
* [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
|
||||
* Updated stable APIs to the latest version
|
||||
|
@ -1 +1 @@
|
||||
v221
|
||||
v219
|
@ -9,15 +9,6 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "tax.transaction"
|
||||
|
||||
def list_line_items(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: format("/v1/tax/transactions/%<transaction>s/line_items", { transaction: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.create_reversal(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
@ -26,24 +17,6 @@ module Stripe
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.list_line_items(transaction, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: format("/v1/tax/transactions/%<transaction>s/line_items", { transaction: CGI.escape(transaction) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.list_transactions(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: "/v1/tax/transactions",
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -429,13 +429,13 @@ module Stripe
|
||||
# * +:opts:+ Options for StripeObject like an API key.
|
||||
# * +:partial:+ Indicates that the re-initialization should not attempt to
|
||||
# remove accessors.
|
||||
protected def initialize_from(values, opts)
|
||||
protected def initialize_from(values, opts, partial = false)
|
||||
@opts = Util.normalize_opts(opts)
|
||||
|
||||
# the `#send` is here so that we can keep this method private
|
||||
@original_values = self.class.send(:deep_copy, values)
|
||||
|
||||
removed = Set.new(@values.keys - values.keys)
|
||||
removed = partial ? Set.new : Set.new(@values.keys - values.keys)
|
||||
added = Set.new(values.keys - @values.keys)
|
||||
|
||||
# Wipe old state before setting new. This is useful for e.g. updating a
|
||||
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
VERSION = "8.2.0-beta.2"
|
||||
VERSION = "8.2.0-beta.1"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user