Compare commits

..

5 Commits

Author SHA1 Message Date
Pavel Krymets
1be10ae4fc Bump version to 8.4.0-beta.2 2023-03-03 06:34:37 -08:00
pakrym-stripe
167daeaf62
Merge pull request #1183 from stripe/latest-codegen-beta
API Updates for beta branch
2023-03-03 06:33:06 -08:00
Pavel Krymets
080fddce5a Codegen for openapi v237 2023-03-02 15:50:55 -08:00
Pavel Krymets
466824d0af Reset version to 8.4.0-beta.1 2023-03-02 15:50:39 -08:00
Pavel Krymets
945e691968 Set version to 8.3.0 to simplify merge 2023-03-02 15:50:39 -08:00
8 changed files with 95 additions and 13 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## 8.4.0-beta.2 - 2023-03-03
* [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
* Updated stable APIs to the latest version
* Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
* Add support for `list` and `retrieve` methods on resource `CardBundle`
* Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
## 8.4.0-beta.1 - 2023-02-23
* [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
* Updated stable APIs to the latest version
@ -21,18 +28,18 @@
## 8.2.0-beta.3 - 2023-01-26
* [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
* Updated stable APIs to the latest version
* Updated stable APIs to the latest version
* Add support for `list_transactions` method on resource `Tax.Transaction`
## 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
* 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
* Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
* Updated stable APIs to the latest version
* Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
* Add support for `Tax::Register` resource
## 8.1.0 - 2023-01-12
@ -40,7 +47,7 @@
## 8.1.0-beta.4 - 2023-01-05
* [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
* Updated stable APIs to the latest version
* Updated stable APIs to the latest version
* Add support for `mark_stale_quote` method on resource `Quote`
## 8.1.0-beta.3 - 2022-12-22
@ -50,12 +57,12 @@
## 8.1.0-beta.2 - 2022-12-15
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
* Updated stable APIs to the latest version
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
* Updated stable APIs to the latest version
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
* [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
* Updated stable APIs to the latest version
* Updated stable APIs to the latest version
* Add support for new resource `QuoteLine`.
## 8.1.0-beta.1 - 2022-12-08
@ -73,7 +80,7 @@ Breaking changes that arose during code generation of the library that we postpo
## 7.2.0-beta.5 - 2022-11-02
* [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
* Updated beta APIs to the latest stable version
* Updated beta APIs to the latest stable version
* [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
* Updated stable APIs to the latest version

View File

@ -1 +1 @@
v232
v237

View File

@ -1 +1 @@
8.4.0-beta.1
8.4.0-beta.2

View File

@ -64,6 +64,8 @@ module Stripe
InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
Issuing::Card::OBJECT_NAME => Issuing::Card,
Issuing::CardBundle::OBJECT_NAME => Issuing::CardBundle,
Issuing::CardDesign::OBJECT_NAME => Issuing::CardDesign,
Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,

View File

@ -51,6 +51,8 @@ require "stripe/resources/invoice_item"
require "stripe/resources/invoice_line_item"
require "stripe/resources/issuing/authorization"
require "stripe/resources/issuing/card"
require "stripe/resources/issuing/card_bundle"
require "stripe/resources/issuing/card_design"
require "stripe/resources/issuing/cardholder"
require "stripe/resources/issuing/dispute"
require "stripe/resources/issuing/transaction"

View File

@ -0,0 +1,13 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Issuing
# A Card Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card.
class CardBundle < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "issuing.card_bundle"
end
end
end

View File

@ -0,0 +1,58 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Issuing
# A Card Design is a logical grouping of a Card Bundle, card logo, and carrier text that represents a product line.
class CardDesign < APIResource
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
OBJECT_NAME = "issuing.card_design"
def test_helpers
TestHelpers.new(self)
end
class TestHelpers < APIResourceTestHelpers
RESOURCE_CLASS = CardDesign
def self.activate_testmode(card_design, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/activate", { card_design: CGI.escape(card_design) }),
params: params,
opts: opts
)
end
def self.deactivate_testmode(card_design, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/deactivate", { card_design: CGI.escape(card_design) }),
params: params,
opts: opts
)
end
def activate_testmode(params = {}, opts = {})
@resource.request_stripe_object(
method: :post,
path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/activate", { card_design: CGI.escape(@resource["id"]) }),
params: params,
opts: opts
)
end
def deactivate_testmode(params = {}, opts = {})
@resource.request_stripe_object(
method: :post,
path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/deactivate", { card_design: CGI.escape(@resource["id"]) }),
params: params,
opts: opts
)
end
end
end
end
end

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module Stripe
VERSION = "8.4.0-beta.1"
VERSION = "8.4.0-beta.2"
end