From f00e7b755ebdf5e028e341ed476b8b5f9e189944 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 20:42:42 +0000 Subject: [PATCH 1/3] Update generated code for v1269 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/issuing/card.rb | 20 +++++++++++++++++++ .../test_helpers/issuing/card_service.rb | 11 ++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f298eea64..96efc3b59 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1268 +v1269 \ No newline at end of file diff --git a/lib/stripe/resources/issuing/card.rb b/lib/stripe/resources/issuing/card.rb index 36cdf0ecc..428b18b51 100644 --- a/lib/stripe/resources/issuing/card.rb +++ b/lib/stripe/resources/issuing/card.rb @@ -123,6 +123,26 @@ def ship_card(params = {}, opts = {}) opts: opts ) end + + # Updates the shipping status of the specified Issuing Card object to submitted. This method is only available with Stripe Version ‘2024-09-30.acacia' or above. + def self.submit_card(card, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/test_helpers/issuing/cards/%s/shipping/submit", { card: CGI.escape(card) }), + params: params, + opts: opts + ) + end + + # Updates the shipping status of the specified Issuing Card object to submitted. This method is only available with Stripe Version ‘2024-09-30.acacia' or above. + def submit_card(params = {}, opts = {}) + @resource.request_stripe_object( + method: :post, + path: format("/v1/test_helpers/issuing/cards/%s/shipping/submit", { card: CGI.escape(@resource["id"]) }), + params: params, + opts: opts + ) + end end end end diff --git a/lib/stripe/services/test_helpers/issuing/card_service.rb b/lib/stripe/services/test_helpers/issuing/card_service.rb index 528896343..c78e7ae9d 100644 --- a/lib/stripe/services/test_helpers/issuing/card_service.rb +++ b/lib/stripe/services/test_helpers/issuing/card_service.rb @@ -48,6 +48,17 @@ def ship_card(card, params = {}, opts = {}) base_address: :api ) end + + # Updates the shipping status of the specified Issuing Card object to submitted. This method is only available with Stripe Version ‘2024-09-30.acacia' or above. + def submit_card(card, params = {}, opts = {}) + request( + method: :post, + path: format("/v1/test_helpers/issuing/cards/%s/shipping/submit", { card: CGI.escape(card) }), + params: params, + opts: opts, + base_address: :api + ) + end end end end From f5b1550a4d10190c89b1be8f3d59581c811f1a7b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:07:07 +0000 Subject: [PATCH 2/3] Update generated code for v1272 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/billing/meter.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 96efc3b59..ae46fe520 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1269 \ No newline at end of file +v1272 \ No newline at end of file diff --git a/lib/stripe/resources/billing/meter.rb b/lib/stripe/resources/billing/meter.rb index e8a0c9a0d..6ef7ad9ec 100644 --- a/lib/stripe/resources/billing/meter.rb +++ b/lib/stripe/resources/billing/meter.rb @@ -4,6 +4,8 @@ module Stripe module Billing # A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make. + # + # Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based) class Meter < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List From abb7f96f7e966761062b3f4e50a422a13a453ef1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 22:11:40 +0000 Subject: [PATCH 3/3] Update generated code for v1273 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/usage_record_summary.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ae46fe520..35e0f7638 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1272 \ No newline at end of file +v1273 \ No newline at end of file diff --git a/lib/stripe/resources/usage_record_summary.rb b/lib/stripe/resources/usage_record_summary.rb index 0af534dd8..1186754d6 100644 --- a/lib/stripe/resources/usage_record_summary.rb +++ b/lib/stripe/resources/usage_record_summary.rb @@ -2,6 +2,7 @@ # frozen_string_literal: true module Stripe + # A usage record summary represents an aggregated view of how much usage was accrued for a subscription item within a subscription billing period. class UsageRecordSummary < StripeObject OBJECT_NAME = "usage_record_summary" def self.object_name