-
Notifications
You must be signed in to change notification settings - Fork 773
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 v870 * Update generated code for v871 * Update generated code for v872 * Update generated code for v874 * Update generated code for v876 * Update generated code for v877 * Update generated code for v878 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
- Loading branch information
1 parent
097bc22
commit 16310e1
Showing
17 changed files
with
839 additions
and
3 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 @@ | ||
v869 | ||
v878 |
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,23 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
import {StripeResource} from '../../StripeResource.js'; | ||
const stripeMethod = StripeResource.method; | ||
export const PersonalizationDesigns = StripeResource.extend({ | ||
create: stripeMethod({ | ||
method: 'POST', | ||
fullPath: '/v1/issuing/personalization_designs', | ||
}), | ||
retrieve: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/issuing/personalization_designs/{personalization_design}', | ||
}), | ||
update: stripeMethod({ | ||
method: 'POST', | ||
fullPath: '/v1/issuing/personalization_designs/{personalization_design}', | ||
}), | ||
list: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/issuing/personalization_designs', | ||
methodType: 'list', | ||
}), | ||
}); |
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,15 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
import {StripeResource} from '../../StripeResource.js'; | ||
const stripeMethod = StripeResource.method; | ||
export const PhysicalBundles = StripeResource.extend({ | ||
retrieve: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/issuing/physical_bundles/{physical_bundle}', | ||
}), | ||
list: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/issuing/physical_bundles', | ||
methodType: 'list', | ||
}), | ||
}); |
21 changes: 21 additions & 0 deletions
21
src/resources/TestHelpers/Issuing/PersonalizationDesigns.ts
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,21 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
import {StripeResource} from '../../../StripeResource.js'; | ||
const stripeMethod = StripeResource.method; | ||
export const PersonalizationDesigns = StripeResource.extend({ | ||
activate: stripeMethod({ | ||
method: 'POST', | ||
fullPath: | ||
'/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate', | ||
}), | ||
deactivate: stripeMethod({ | ||
method: 'POST', | ||
fullPath: | ||
'/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate', | ||
}), | ||
reject: stripeMethod({ | ||
method: 'POST', | ||
fullPath: | ||
'/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject', | ||
}), | ||
}); |
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
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,142 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
namespace Issuing { | ||
/** | ||
* A Personalization Design is a logical grouping of a Physical Bundle, card logo, and carrier text that represents a product line. | ||
*/ | ||
interface PersonalizationDesign { | ||
/** | ||
* Unique identifier for the object. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* String representing the object's type. Objects of the same type share the same value. | ||
*/ | ||
object: 'issuing.personalization_design'; | ||
|
||
/** | ||
* The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. | ||
*/ | ||
card_logo: string | Stripe.File | null; | ||
|
||
/** | ||
* Hash containing carrier text, for use with physical bundles that support carrier text. | ||
*/ | ||
carrier_text: PersonalizationDesign.CarrierText | null; | ||
|
||
/** | ||
* Time at which the object was created. Measured in seconds since the Unix epoch. | ||
*/ | ||
created: number; | ||
|
||
/** | ||
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. | ||
*/ | ||
livemode: boolean; | ||
|
||
/** | ||
* A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters. | ||
*/ | ||
lookup_key: string | null; | ||
|
||
/** | ||
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | ||
*/ | ||
metadata: Stripe.Metadata; | ||
|
||
/** | ||
* Friendly display name. | ||
*/ | ||
name: string | null; | ||
|
||
/** | ||
* The physical bundle object belonging to this personalization design. | ||
*/ | ||
physical_bundle: string | Stripe.Issuing.PhysicalBundle; | ||
|
||
preferences: PersonalizationDesign.Preferences; | ||
|
||
rejection_reasons: PersonalizationDesign.RejectionReasons; | ||
|
||
/** | ||
* Whether this personalization design can be used to create cards. | ||
*/ | ||
status: PersonalizationDesign.Status; | ||
} | ||
|
||
namespace PersonalizationDesign { | ||
interface CarrierText { | ||
/** | ||
* The footer body text of the carrier letter. | ||
*/ | ||
footer_body: string | null; | ||
|
||
/** | ||
* The footer title text of the carrier letter. | ||
*/ | ||
footer_title: string | null; | ||
|
||
/** | ||
* The header body text of the carrier letter. | ||
*/ | ||
header_body: string | null; | ||
|
||
/** | ||
* The header title text of the carrier letter. | ||
*/ | ||
header_title: string | null; | ||
} | ||
|
||
interface Preferences { | ||
/** | ||
* Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. | ||
*/ | ||
is_default: boolean; | ||
|
||
/** | ||
* Whether this personalization design is used to create cards when one is not specified and a default for this connected account does not exist. | ||
*/ | ||
is_platform_default: boolean | null; | ||
} | ||
|
||
interface RejectionReasons { | ||
/** | ||
* The reason(s) the card logo was rejected. | ||
*/ | ||
card_logo: Array<RejectionReasons.CardLogo> | null; | ||
|
||
/** | ||
* The reason(s) the carrier text was rejected. | ||
*/ | ||
carrier_text: Array<RejectionReasons.CarrierText> | null; | ||
} | ||
|
||
namespace RejectionReasons { | ||
type CardLogo = | ||
| 'geographic_location' | ||
| 'inappropriate' | ||
| 'network_name' | ||
| 'non_binary_image' | ||
| 'non_fiat_currency' | ||
| 'other' | ||
| 'other_entity' | ||
| 'promotional_material'; | ||
|
||
type CarrierText = | ||
| 'geographic_location' | ||
| 'inappropriate' | ||
| 'network_name' | ||
| 'non_fiat_currency' | ||
| 'other' | ||
| 'other_entity' | ||
| 'promotional_material'; | ||
} | ||
|
||
type Status = 'active' | 'inactive' | 'rejected' | 'review'; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.