-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2162 from stripe/latest-codegen-beta
Update generated code for beta
- Loading branch information
Showing
40 changed files
with
448 additions
and
56 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
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 @@ | ||
v1214 | ||
v1247 |
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,4 +1,4 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
export const ApiVersion = '2024-06-20'; | ||
export const PreviewVersion = '2024-08-21.preview-v2'; | ||
export const PreviewVersion = '2024-09-05.preview-v2'; |
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,10 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
import {StripeResource} from '../../StripeResource.js'; | ||
const stripeMethod = StripeResource.method; | ||
export const ReaderCollectedData = StripeResource.extend({ | ||
retrieve: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/terminal/reader_collected_data/{reader_collected_data}', | ||
}), | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
namespace Billing { | ||
/** | ||
* The MeterErrorReport object. | ||
*/ | ||
interface MeterErrorReport { | ||
/** | ||
* Unique identifier for the object. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* String representing the object's type. Objects of the same type share the same value. | ||
*/ | ||
object: 'billing.meter_error_report'; | ||
|
||
reason: MeterErrorReport.Reason; | ||
|
||
/** | ||
* The related objects about the error | ||
*/ | ||
related_object: MeterErrorReport.RelatedObject | null; | ||
|
||
/** | ||
* Summary of invalid events | ||
*/ | ||
summary: string; | ||
|
||
/** | ||
* Time when validation ended. Measured in seconds since the Unix epoch | ||
*/ | ||
validation_end: number; | ||
|
||
/** | ||
* Time when validation started. Measured in seconds since the Unix epoch | ||
*/ | ||
validation_start: number; | ||
} | ||
|
||
namespace MeterErrorReport { | ||
interface Reason { | ||
/** | ||
* The number of errors generated | ||
*/ | ||
error_count: number; | ||
|
||
/** | ||
* More information about errors | ||
*/ | ||
error_types: Array<Reason.ErrorType>; | ||
} | ||
|
||
namespace Reason { | ||
interface ErrorType { | ||
sample_errors: Array<ErrorType.SampleError>; | ||
} | ||
|
||
namespace ErrorType { | ||
interface SampleError { | ||
api_request: SampleError.ApiRequest | null; | ||
|
||
/** | ||
* message of the error | ||
*/ | ||
error_message: string; | ||
} | ||
|
||
namespace SampleError { | ||
interface ApiRequest { | ||
/** | ||
* Unique identifier for the object. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* idempotency_key of the request | ||
*/ | ||
idempotency_key: string; | ||
} | ||
} | ||
} | ||
} | ||
|
||
interface RelatedObject { | ||
/** | ||
* Unique identifier for the object. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* The type of meter error related object. Should be 'meter' | ||
*/ | ||
object: string; | ||
|
||
/** | ||
* The url of the meter object | ||
*/ | ||
url: string; | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.