-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update generated code for v1261 * Update generated code for v1268 * Update generated code for v1268 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
- Loading branch information
1 parent
07ee576
commit b1fe348
Showing
11 changed files
with
146 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1255 | ||
v1268 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
|
||
module Stripe | ||
module ApiVersion | ||
CURRENT = "2024-06-20" | ||
CURRENT = "2024-09-30.acacia" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# File generated from our OpenAPI spec | ||
# frozen_string_literal: true | ||
|
||
module Stripe | ||
module Billing | ||
# Indicates the credit balance for credits granted to a customer. | ||
class CreditBalanceSummary < SingletonAPIResource | ||
OBJECT_NAME = "billing.credit_balance_summary" | ||
def self.object_name | ||
"billing.credit_balance_summary" | ||
end | ||
end | ||
end | ||
end |
26 changes: 26 additions & 0 deletions
26
lib/stripe/resources/billing/credit_balance_transaction.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# File generated from our OpenAPI spec | ||
# frozen_string_literal: true | ||
|
||
module Stripe | ||
module Billing | ||
# A credit balance transaction is a resource representing a transaction (either a credit or a debit) against an existing credit grant. | ||
class CreditBalanceTransaction < APIResource | ||
extend Stripe::APIOperations::List | ||
|
||
OBJECT_NAME = "billing.credit_balance_transaction" | ||
def self.object_name | ||
"billing.credit_balance_transaction" | ||
end | ||
|
||
# Retrieve a list of credit balance transactions | ||
def self.list(filters = {}, opts = {}) | ||
request_stripe_object( | ||
method: :get, | ||
path: "/v1/billing/credit_balance_transactions", | ||
params: filters, | ||
opts: opts | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# File generated from our OpenAPI spec | ||
# frozen_string_literal: true | ||
|
||
module Stripe | ||
module Billing | ||
# A credit grant is a resource that records a grant of some credit to a customer. | ||
class CreditGrant < APIResource | ||
extend Stripe::APIOperations::Create | ||
extend Stripe::APIOperations::List | ||
include Stripe::APIOperations::Save | ||
|
||
OBJECT_NAME = "billing.credit_grant" | ||
def self.object_name | ||
"billing.credit_grant" | ||
end | ||
|
||
# Creates a credit grant | ||
def self.create(params = {}, opts = {}) | ||
request_stripe_object( | ||
method: :post, | ||
path: "/v1/billing/credit_grants", | ||
params: params, | ||
opts: opts | ||
) | ||
end | ||
|
||
# Expires a credit grant | ||
def expire(params = {}, opts = {}) | ||
request_stripe_object( | ||
method: :post, | ||
path: format("/v1/billing/credit_grants/%<id>s/expire", { id: CGI.escape(self["id"]) }), | ||
params: params, | ||
opts: opts | ||
) | ||
end | ||
|
||
# Expires a credit grant | ||
def self.expire(id, params = {}, opts = {}) | ||
request_stripe_object( | ||
method: :post, | ||
path: format("/v1/billing/credit_grants/%<id>s/expire", { id: CGI.escape(id) }), | ||
params: params, | ||
opts: opts | ||
) | ||
end | ||
|
||
# Retrieve a list of credit grants | ||
def self.list(filters = {}, opts = {}) | ||
request_stripe_object( | ||
method: :get, | ||
path: "/v1/billing/credit_grants", | ||
params: filters, | ||
opts: opts | ||
) | ||
end | ||
|
||
# Updates a credit grant | ||
def self.update(id, params = {}, opts = {}) | ||
request_stripe_object( | ||
method: :post, | ||
path: format("/v1/billing/credit_grants/%<id>s", { id: CGI.escape(id) }), | ||
params: params, | ||
opts: opts | ||
) | ||
end | ||
|
||
# Voids a credit grant | ||
def void_grant(params = {}, opts = {}) | ||
request_stripe_object( | ||
method: :post, | ||
path: format("/v1/billing/credit_grants/%<id>s/void", { id: CGI.escape(self["id"]) }), | ||
params: params, | ||
opts: opts | ||
) | ||
end | ||
|
||
# Voids a credit grant | ||
def self.void_grant(id, params = {}, opts = {}) | ||
request_stripe_object( | ||
method: :post, | ||
path: format("/v1/billing/credit_grants/%<id>s/void", { id: CGI.escape(id) }), | ||
params: params, | ||
opts: opts | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters