Skip to content

Commit 8a5fce1

Browse files
Update generated code (#2620)
* Update generated code for v2205 and * Update generated code for v2205 and * Update generated code for v2206 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: David Brownman <109395161+xavdid-stripe@users.noreply.github.com>
1 parent af7c994 commit 8a5fce1

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b51a9d09327603fa3a61d076f4bf7f07b43e1659
1+
97ed8f33ac148105eefc5ec2543b66a32367bc1f

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2205
1+
v2206

src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ export const AI_AGENTS: [string, string][] = [
486486
['CODEX_CI', 'codex_cli'],
487487
['CURSOR_AGENT', 'cursor'],
488488
['GEMINI_CLI', 'gemini_cli'],
489+
['OPENCLAW_SHELL', 'openclaw'],
489490
['OPENCODE', 'open_code'],
490491
// The end of the section generated from our OpenAPI spec
491492
];

test/resources/generated_examples_test.spec.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
const testUtils = require('../testUtils.js');
66
const stripe = testUtils.getStripeMockClient();
77
const realStripe = require('../../src/stripe.cjs.node.js')('sk_test_123');
8+
const {Decimal} = require('../../src/stripe.cjs.node.js');
89
const nock = require('nock');
910
const expect = require('chai').expect;
1011

@@ -3023,8 +3024,8 @@ describe('Generated tests', function() {
30233024
fuel: {
30243025
type: 'diesel',
30253026
unit: 'liter',
3026-
unit_cost_decimal: '3.5',
3027-
quantity_decimal: '10',
3027+
unit_cost_decimal: Decimal.from('3.5'),
3028+
quantity_decimal: Decimal.from('10'),
30283029
},
30293030
lodging: {
30303031
check_in_at: 1633651200,
@@ -3033,7 +3034,7 @@ describe('Generated tests', function() {
30333034
receipt: [
30343035
{
30353036
description: 'Room charge',
3036-
quantity: '1',
3037+
quantity: Decimal.from('1'),
30373038
total: 200,
30383039
unit_cost: 200,
30393040
},
@@ -3192,8 +3193,8 @@ describe('Generated tests', function() {
31923193
fuel: {
31933194
type: 'diesel',
31943195
unit: 'liter',
3195-
unit_cost_decimal: '3.5',
3196-
quantity_decimal: '10',
3196+
unit_cost_decimal: Decimal.from('3.5'),
3197+
quantity_decimal: Decimal.from('10'),
31973198
},
31983199
lodging: {
31993200
check_in_at: 1533651200,
@@ -3202,7 +3203,7 @@ describe('Generated tests', function() {
32023203
receipt: [
32033204
{
32043205
description: 'Room charge',
3205-
quantity: '1',
3206+
quantity: Decimal.from('1'),
32063207
total: 200,
32073208
unit_cost: 200,
32083209
},
@@ -3250,8 +3251,8 @@ describe('Generated tests', function() {
32503251
fuel: {
32513252
type: 'diesel',
32523253
unit: 'liter',
3253-
unit_cost_decimal: '3.5',
3254-
quantity_decimal: '10',
3254+
unit_cost_decimal: Decimal.from('3.5'),
3255+
quantity_decimal: Decimal.from('10'),
32553256
},
32563257
lodging: {
32573258
check_in_at: 1533651200,
@@ -3260,7 +3261,7 @@ describe('Generated tests', function() {
32603261
receipt: [
32613262
{
32623263
description: 'Room charge',
3263-
quantity: '1',
3264+
quantity: Decimal.from('1'),
32643265
total: 200,
32653266
unit_cost: 200,
32663267
},

0 commit comments

Comments
 (0)