Skip to content

Commit

Permalink
Update generated code for v1295
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 15, 2024
1 parent 7475e76 commit abe64d9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1290
v1295
21 changes: 21 additions & 0 deletions lib/stripe/resources/customer_cash_balance_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,26 @@ class CustomerCashBalanceTransaction < APIResource
def self.object_name
"customer_cash_balance_transaction"
end

def test_helpers
TestHelpers.new(self)
end

class TestHelpers < APIResourceTestHelpers
RESOURCE_CLASS = CustomerCashBalanceTransaction
def self.resource_class
"CustomerCashBalanceTransaction"
end

# Simulate various customer cash balance side-effects by creating synthetic cash balance transactions in testmode.
def self.create(params = {}, opts = {})
request_stripe_object(
method: :post,
path: "/v1/test_helpers/customer_cash_balance_transactions",
params: params,
opts: opts
)
end
end
end
end

0 comments on commit abe64d9

Please sign in to comment.