@humanlayer/pulumi-stripe 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/bin/billingMeter.d.ts +130 -0
- package/bin/billingMeter.js +72 -0
- package/bin/billingMeter.js.map +1 -0
- package/bin/config/index.d.ts +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +4 -0
- package/bin/config/vars.js +13 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/coupon.d.ts +203 -0
- package/bin/coupon.js +77 -0
- package/bin/coupon.js.map +1 -0
- package/bin/customer.d.ts +248 -0
- package/bin/customer.js +93 -0
- package/bin/customer.js.map +1 -0
- package/bin/entitlementsFeature.d.ts +86 -0
- package/bin/entitlementsFeature.js +58 -0
- package/bin/entitlementsFeature.js.map +1 -0
- package/bin/getBillingMeter.d.ts +26 -0
- package/bin/getBillingMeter.js +25 -0
- package/bin/getBillingMeter.js.map +1 -0
- package/bin/index.d.ts +64 -0
- package/bin/index.js +145 -0
- package/bin/index.js.map +1 -0
- package/bin/price.d.ts +232 -0
- package/bin/price.js +82 -0
- package/bin/price.js.map +1 -0
- package/bin/product.d.ts +212 -0
- package/bin/product.js +75 -0
- package/bin/product.js.map +1 -0
- package/bin/promotionCode.d.ts +160 -0
- package/bin/promotionCode.js +70 -0
- package/bin/promotionCode.js.map +1 -0
- package/bin/provider.d.ts +49 -0
- package/bin/provider.js +55 -0
- package/bin/provider.js.map +1 -0
- package/bin/shippingRate.d.ts +136 -0
- package/bin/shippingRate.js +66 -0
- package/bin/shippingRate.js.map +1 -0
- package/bin/taxRate.d.ts +186 -0
- package/bin/taxRate.js +82 -0
- package/bin/taxRate.js.map +1 -0
- package/bin/types/index.d.ts +3 -0
- package/bin/types/index.js +11 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +713 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +712 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +4 -0
- package/bin/utilities.js +90 -0
- package/bin/utilities.js.map +1 -0
- package/bin/v2billingLicenseFee.d.ts +200 -0
- package/bin/v2billingLicenseFee.js +93 -0
- package/bin/v2billingLicenseFee.js.map +1 -0
- package/bin/v2billingLicensedItem.d.ts +90 -0
- package/bin/v2billingLicensedItem.js +58 -0
- package/bin/v2billingLicensedItem.js.map +1 -0
- package/bin/v2billingMeteredItem.d.ts +128 -0
- package/bin/v2billingMeteredItem.js +67 -0
- package/bin/v2billingMeteredItem.js.map +1 -0
- package/bin/v2billingPricingPlan.d.ts +138 -0
- package/bin/v2billingPricingPlan.js +74 -0
- package/bin/v2billingPricingPlan.js.map +1 -0
- package/bin/v2billingPricingPlanComponent.d.ts +144 -0
- package/bin/v2billingPricingPlanComponent.js +71 -0
- package/bin/v2billingPricingPlanComponent.js.map +1 -0
- package/bin/v2billingRateCard.d.ts +150 -0
- package/bin/v2billingRateCard.js +82 -0
- package/bin/v2billingRateCard.js.map +1 -0
- package/bin/v2billingRateCardRate.d.ts +132 -0
- package/bin/v2billingRateCardRate.js +69 -0
- package/bin/v2billingRateCardRate.js.map +1 -0
- package/bin/v2billingServiceAction.d.ts +98 -0
- package/bin/v2billingServiceAction.js +66 -0
- package/bin/v2billingServiceAction.js.map +1 -0
- package/bin/v2coreEventDestination.d.ts +172 -0
- package/bin/v2coreEventDestination.js +78 -0
- package/bin/v2coreEventDestination.js.map +1 -0
- package/bin/webhookEndpoint.d.ts +120 -0
- package/bin/webhookEndpoint.js +73 -0
- package/bin/webhookEndpoint.js.map +1 -0
- package/package.json +42 -0
package/bin/product.d.ts
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class Product extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing Product resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProductState, opts?: pulumi.CustomResourceOptions): Product;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Product. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is Product;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the product is currently available for purchase. Defaults to `true`.
|
|
22
|
+
*/
|
|
23
|
+
readonly active: pulumi.Output<boolean | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object. This Price will be set as the default price for this product.
|
|
26
|
+
*/
|
|
27
|
+
readonly defaultPriceData: pulumi.Output<outputs.ProductDefaultPriceData | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
30
|
+
*/
|
|
31
|
+
readonly description: pulumi.Output<string>;
|
|
32
|
+
/**
|
|
33
|
+
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
34
|
+
*/
|
|
35
|
+
readonly images: pulumi.Output<string[] | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
|
|
38
|
+
*/
|
|
39
|
+
readonly marketingFeatures: pulumi.Output<outputs.ProductMarketingFeature[] | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
42
|
+
*/
|
|
43
|
+
readonly metadata: pulumi.Output<{
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* The product's name, meant to be displayable to the customer.
|
|
48
|
+
*/
|
|
49
|
+
readonly name: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The dimensions of this product for shipping purposes.
|
|
52
|
+
*/
|
|
53
|
+
readonly packageDimensions: pulumi.Output<outputs.ProductPackageDimensions | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Whether this product is shipped (i.e., physical goods).
|
|
56
|
+
*/
|
|
57
|
+
readonly shippable: pulumi.Output<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. This may be up to 22 characters. The statement description may not include `<`, `>`, `\`, `\"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. It must contain at least one letter. Only used for subscription payments.
|
|
60
|
+
*/
|
|
61
|
+
readonly statementDescriptor: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
|
64
|
+
*/
|
|
65
|
+
readonly taxCode: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The type of the product. Defaults to `service` if not explicitly specified, enabling use of this product with Subscriptions and Plans. Set this parameter to `good` to use this product with Orders and SKUs. On API versions before `2018-02-05`, this field defaults to `good` for compatibility reasons.
|
|
68
|
+
*/
|
|
69
|
+
readonly type: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
72
|
+
*/
|
|
73
|
+
readonly unitLabel: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* A URL of a publicly-accessible webpage for this product.
|
|
76
|
+
*/
|
|
77
|
+
readonly url: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Create a Product resource with the given unique name, arguments, and options.
|
|
80
|
+
*
|
|
81
|
+
* @param name The _unique_ name of the resource.
|
|
82
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
83
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
84
|
+
*/
|
|
85
|
+
constructor(name: string, args?: ProductArgs, opts?: pulumi.CustomResourceOptions);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Input properties used for looking up and filtering Product resources.
|
|
89
|
+
*/
|
|
90
|
+
export interface ProductState {
|
|
91
|
+
/**
|
|
92
|
+
* Whether the product is currently available for purchase. Defaults to `true`.
|
|
93
|
+
*/
|
|
94
|
+
active?: pulumi.Input<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object. This Price will be set as the default price for this product.
|
|
97
|
+
*/
|
|
98
|
+
defaultPriceData?: pulumi.Input<inputs.ProductDefaultPriceData>;
|
|
99
|
+
/**
|
|
100
|
+
* The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
101
|
+
*/
|
|
102
|
+
description?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
105
|
+
*/
|
|
106
|
+
images?: pulumi.Input<pulumi.Input<string>[]>;
|
|
107
|
+
/**
|
|
108
|
+
* A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
|
|
109
|
+
*/
|
|
110
|
+
marketingFeatures?: pulumi.Input<pulumi.Input<inputs.ProductMarketingFeature>[]>;
|
|
111
|
+
/**
|
|
112
|
+
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
113
|
+
*/
|
|
114
|
+
metadata?: pulumi.Input<{
|
|
115
|
+
[key: string]: pulumi.Input<string>;
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* The product's name, meant to be displayable to the customer.
|
|
119
|
+
*/
|
|
120
|
+
name?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The dimensions of this product for shipping purposes.
|
|
123
|
+
*/
|
|
124
|
+
packageDimensions?: pulumi.Input<inputs.ProductPackageDimensions>;
|
|
125
|
+
/**
|
|
126
|
+
* Whether this product is shipped (i.e., physical goods).
|
|
127
|
+
*/
|
|
128
|
+
shippable?: pulumi.Input<boolean>;
|
|
129
|
+
/**
|
|
130
|
+
* An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. This may be up to 22 characters. The statement description may not include `<`, `>`, `\`, `\"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. It must contain at least one letter. Only used for subscription payments.
|
|
131
|
+
*/
|
|
132
|
+
statementDescriptor?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
|
135
|
+
*/
|
|
136
|
+
taxCode?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The type of the product. Defaults to `service` if not explicitly specified, enabling use of this product with Subscriptions and Plans. Set this parameter to `good` to use this product with Orders and SKUs. On API versions before `2018-02-05`, this field defaults to `good` for compatibility reasons.
|
|
139
|
+
*/
|
|
140
|
+
type?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
143
|
+
*/
|
|
144
|
+
unitLabel?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* A URL of a publicly-accessible webpage for this product.
|
|
147
|
+
*/
|
|
148
|
+
url?: pulumi.Input<string>;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* The set of arguments for constructing a Product resource.
|
|
152
|
+
*/
|
|
153
|
+
export interface ProductArgs {
|
|
154
|
+
/**
|
|
155
|
+
* Whether the product is currently available for purchase. Defaults to `true`.
|
|
156
|
+
*/
|
|
157
|
+
active?: pulumi.Input<boolean>;
|
|
158
|
+
/**
|
|
159
|
+
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object. This Price will be set as the default price for this product.
|
|
160
|
+
*/
|
|
161
|
+
defaultPriceData?: pulumi.Input<inputs.ProductDefaultPriceData>;
|
|
162
|
+
/**
|
|
163
|
+
* The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
164
|
+
*/
|
|
165
|
+
description?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
168
|
+
*/
|
|
169
|
+
images?: pulumi.Input<pulumi.Input<string>[]>;
|
|
170
|
+
/**
|
|
171
|
+
* A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table).
|
|
172
|
+
*/
|
|
173
|
+
marketingFeatures?: pulumi.Input<pulumi.Input<inputs.ProductMarketingFeature>[]>;
|
|
174
|
+
/**
|
|
175
|
+
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
176
|
+
*/
|
|
177
|
+
metadata?: pulumi.Input<{
|
|
178
|
+
[key: string]: pulumi.Input<string>;
|
|
179
|
+
}>;
|
|
180
|
+
/**
|
|
181
|
+
* The product's name, meant to be displayable to the customer.
|
|
182
|
+
*/
|
|
183
|
+
name?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* The dimensions of this product for shipping purposes.
|
|
186
|
+
*/
|
|
187
|
+
packageDimensions?: pulumi.Input<inputs.ProductPackageDimensions>;
|
|
188
|
+
/**
|
|
189
|
+
* Whether this product is shipped (i.e., physical goods).
|
|
190
|
+
*/
|
|
191
|
+
shippable?: pulumi.Input<boolean>;
|
|
192
|
+
/**
|
|
193
|
+
* An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. This may be up to 22 characters. The statement description may not include `<`, `>`, `\`, `\"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. It must contain at least one letter. Only used for subscription payments.
|
|
194
|
+
*/
|
|
195
|
+
statementDescriptor?: pulumi.Input<string>;
|
|
196
|
+
/**
|
|
197
|
+
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
|
198
|
+
*/
|
|
199
|
+
taxCode?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* The type of the product. Defaults to `service` if not explicitly specified, enabling use of this product with Subscriptions and Plans. Set this parameter to `good` to use this product with Orders and SKUs. On API versions before `2018-02-05`, this field defaults to `good` for compatibility reasons.
|
|
202
|
+
*/
|
|
203
|
+
type?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
206
|
+
*/
|
|
207
|
+
unitLabel?: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* A URL of a publicly-accessible webpage for this product.
|
|
210
|
+
*/
|
|
211
|
+
url?: pulumi.Input<string>;
|
|
212
|
+
}
|
package/bin/product.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Product = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Product extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Product resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new Product(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of Product. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === Product.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["active"] = state?.active;
|
|
37
|
+
resourceInputs["defaultPriceData"] = state?.defaultPriceData;
|
|
38
|
+
resourceInputs["description"] = state?.description;
|
|
39
|
+
resourceInputs["images"] = state?.images;
|
|
40
|
+
resourceInputs["marketingFeatures"] = state?.marketingFeatures;
|
|
41
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
42
|
+
resourceInputs["name"] = state?.name;
|
|
43
|
+
resourceInputs["packageDimensions"] = state?.packageDimensions;
|
|
44
|
+
resourceInputs["shippable"] = state?.shippable;
|
|
45
|
+
resourceInputs["statementDescriptor"] = state?.statementDescriptor;
|
|
46
|
+
resourceInputs["taxCode"] = state?.taxCode;
|
|
47
|
+
resourceInputs["type"] = state?.type;
|
|
48
|
+
resourceInputs["unitLabel"] = state?.unitLabel;
|
|
49
|
+
resourceInputs["url"] = state?.url;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
const args = argsOrState;
|
|
53
|
+
resourceInputs["active"] = args?.active;
|
|
54
|
+
resourceInputs["defaultPriceData"] = args?.defaultPriceData;
|
|
55
|
+
resourceInputs["description"] = args?.description;
|
|
56
|
+
resourceInputs["images"] = args?.images;
|
|
57
|
+
resourceInputs["marketingFeatures"] = args?.marketingFeatures;
|
|
58
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
59
|
+
resourceInputs["name"] = args?.name;
|
|
60
|
+
resourceInputs["packageDimensions"] = args?.packageDimensions;
|
|
61
|
+
resourceInputs["shippable"] = args?.shippable;
|
|
62
|
+
resourceInputs["statementDescriptor"] = args?.statementDescriptor;
|
|
63
|
+
resourceInputs["taxCode"] = args?.taxCode;
|
|
64
|
+
resourceInputs["type"] = args?.type;
|
|
65
|
+
resourceInputs["unitLabel"] = args?.unitLabel;
|
|
66
|
+
resourceInputs["url"] = args?.url;
|
|
67
|
+
}
|
|
68
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
69
|
+
super(Product.__pulumiType, name, resourceInputs, opts);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.Product = Product;
|
|
73
|
+
/** @internal */
|
|
74
|
+
Product.__pulumiType = 'stripe:index/product:Product';
|
|
75
|
+
//# sourceMappingURL=product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.js","sourceRoot":"","sources":["../product.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EA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,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAnIL,0BAoIC;AAtHG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class PromotionCode extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing PromotionCode resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PromotionCodeState, opts?: pulumi.CustomResourceOptions): PromotionCode;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of PromotionCode. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is PromotionCode;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the promotion code is currently active.
|
|
22
|
+
*/
|
|
23
|
+
readonly active: pulumi.Output<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), and digits (0-9). If left blank, we will generate one automatically.
|
|
26
|
+
*/
|
|
27
|
+
readonly code: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* The customer that this promotion code can be used by. If not set, the promotion code can be used by all customers.
|
|
30
|
+
*/
|
|
31
|
+
readonly customer: pulumi.Output<string>;
|
|
32
|
+
/**
|
|
33
|
+
* The account that this promotion code can be used by. If not set, the promotion code can be used by all accounts.
|
|
34
|
+
*/
|
|
35
|
+
readonly customerAccount: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The timestamp at which this promotion code will expire. If the coupon has specified a `redeemsBy`, then this value cannot be after the coupon's `redeemsBy`.
|
|
38
|
+
*/
|
|
39
|
+
readonly expiresAt: pulumi.Output<number>;
|
|
40
|
+
/**
|
|
41
|
+
* A positive integer specifying the number of times the promotion code can be redeemed. If the coupon has specified a `maxRedemptions`, then this value cannot be greater than the coupon's `maxRedemptions`.
|
|
42
|
+
*/
|
|
43
|
+
readonly maxRedemptions: pulumi.Output<number>;
|
|
44
|
+
/**
|
|
45
|
+
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
46
|
+
*/
|
|
47
|
+
readonly metadata: pulumi.Output<{
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
}>;
|
|
50
|
+
/**
|
|
51
|
+
* The promotion referenced by this promotion code.
|
|
52
|
+
*/
|
|
53
|
+
readonly promotion: pulumi.Output<outputs.PromotionCodePromotion>;
|
|
54
|
+
/**
|
|
55
|
+
* Settings that restrict the redemption of the promotion code.
|
|
56
|
+
*/
|
|
57
|
+
readonly restrictions: pulumi.Output<outputs.PromotionCodeRestrictions | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Number of times this promotion code has been used.
|
|
60
|
+
*/
|
|
61
|
+
readonly timesRedeemed: pulumi.Output<number>;
|
|
62
|
+
/**
|
|
63
|
+
* Create a PromotionCode resource with the given unique name, arguments, and options.
|
|
64
|
+
*
|
|
65
|
+
* @param name The _unique_ name of the resource.
|
|
66
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
67
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
68
|
+
*/
|
|
69
|
+
constructor(name: string, args: PromotionCodeArgs, opts?: pulumi.CustomResourceOptions);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Input properties used for looking up and filtering PromotionCode resources.
|
|
73
|
+
*/
|
|
74
|
+
export interface PromotionCodeState {
|
|
75
|
+
/**
|
|
76
|
+
* Whether the promotion code is currently active.
|
|
77
|
+
*/
|
|
78
|
+
active?: pulumi.Input<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), and digits (0-9). If left blank, we will generate one automatically.
|
|
81
|
+
*/
|
|
82
|
+
code?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The customer that this promotion code can be used by. If not set, the promotion code can be used by all customers.
|
|
85
|
+
*/
|
|
86
|
+
customer?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The account that this promotion code can be used by. If not set, the promotion code can be used by all accounts.
|
|
89
|
+
*/
|
|
90
|
+
customerAccount?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* The timestamp at which this promotion code will expire. If the coupon has specified a `redeemsBy`, then this value cannot be after the coupon's `redeemsBy`.
|
|
93
|
+
*/
|
|
94
|
+
expiresAt?: pulumi.Input<number>;
|
|
95
|
+
/**
|
|
96
|
+
* A positive integer specifying the number of times the promotion code can be redeemed. If the coupon has specified a `maxRedemptions`, then this value cannot be greater than the coupon's `maxRedemptions`.
|
|
97
|
+
*/
|
|
98
|
+
maxRedemptions?: pulumi.Input<number>;
|
|
99
|
+
/**
|
|
100
|
+
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
101
|
+
*/
|
|
102
|
+
metadata?: pulumi.Input<{
|
|
103
|
+
[key: string]: pulumi.Input<string>;
|
|
104
|
+
}>;
|
|
105
|
+
/**
|
|
106
|
+
* The promotion referenced by this promotion code.
|
|
107
|
+
*/
|
|
108
|
+
promotion?: pulumi.Input<inputs.PromotionCodePromotion>;
|
|
109
|
+
/**
|
|
110
|
+
* Settings that restrict the redemption of the promotion code.
|
|
111
|
+
*/
|
|
112
|
+
restrictions?: pulumi.Input<inputs.PromotionCodeRestrictions>;
|
|
113
|
+
/**
|
|
114
|
+
* Number of times this promotion code has been used.
|
|
115
|
+
*/
|
|
116
|
+
timesRedeemed?: pulumi.Input<number>;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The set of arguments for constructing a PromotionCode resource.
|
|
120
|
+
*/
|
|
121
|
+
export interface PromotionCodeArgs {
|
|
122
|
+
/**
|
|
123
|
+
* Whether the promotion code is currently active.
|
|
124
|
+
*/
|
|
125
|
+
active?: pulumi.Input<boolean>;
|
|
126
|
+
/**
|
|
127
|
+
* The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), and digits (0-9). If left blank, we will generate one automatically.
|
|
128
|
+
*/
|
|
129
|
+
code?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The customer that this promotion code can be used by. If not set, the promotion code can be used by all customers.
|
|
132
|
+
*/
|
|
133
|
+
customer?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The account that this promotion code can be used by. If not set, the promotion code can be used by all accounts.
|
|
136
|
+
*/
|
|
137
|
+
customerAccount?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* The timestamp at which this promotion code will expire. If the coupon has specified a `redeemsBy`, then this value cannot be after the coupon's `redeemsBy`.
|
|
140
|
+
*/
|
|
141
|
+
expiresAt?: pulumi.Input<number>;
|
|
142
|
+
/**
|
|
143
|
+
* A positive integer specifying the number of times the promotion code can be redeemed. If the coupon has specified a `maxRedemptions`, then this value cannot be greater than the coupon's `maxRedemptions`.
|
|
144
|
+
*/
|
|
145
|
+
maxRedemptions?: pulumi.Input<number>;
|
|
146
|
+
/**
|
|
147
|
+
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
148
|
+
*/
|
|
149
|
+
metadata?: pulumi.Input<{
|
|
150
|
+
[key: string]: pulumi.Input<string>;
|
|
151
|
+
}>;
|
|
152
|
+
/**
|
|
153
|
+
* The promotion referenced by this promotion code.
|
|
154
|
+
*/
|
|
155
|
+
promotion: pulumi.Input<inputs.PromotionCodePromotion>;
|
|
156
|
+
/**
|
|
157
|
+
* Settings that restrict the redemption of the promotion code.
|
|
158
|
+
*/
|
|
159
|
+
restrictions?: pulumi.Input<inputs.PromotionCodeRestrictions>;
|
|
160
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.PromotionCode = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class PromotionCode extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing PromotionCode resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new PromotionCode(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of PromotionCode. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === PromotionCode.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["active"] = state?.active;
|
|
37
|
+
resourceInputs["code"] = state?.code;
|
|
38
|
+
resourceInputs["customer"] = state?.customer;
|
|
39
|
+
resourceInputs["customerAccount"] = state?.customerAccount;
|
|
40
|
+
resourceInputs["expiresAt"] = state?.expiresAt;
|
|
41
|
+
resourceInputs["maxRedemptions"] = state?.maxRedemptions;
|
|
42
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
43
|
+
resourceInputs["promotion"] = state?.promotion;
|
|
44
|
+
resourceInputs["restrictions"] = state?.restrictions;
|
|
45
|
+
resourceInputs["timesRedeemed"] = state?.timesRedeemed;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const args = argsOrState;
|
|
49
|
+
if (args?.promotion === undefined && !opts.urn) {
|
|
50
|
+
throw new Error("Missing required property 'promotion'");
|
|
51
|
+
}
|
|
52
|
+
resourceInputs["active"] = args?.active;
|
|
53
|
+
resourceInputs["code"] = args?.code;
|
|
54
|
+
resourceInputs["customer"] = args?.customer;
|
|
55
|
+
resourceInputs["customerAccount"] = args?.customerAccount;
|
|
56
|
+
resourceInputs["expiresAt"] = args?.expiresAt;
|
|
57
|
+
resourceInputs["maxRedemptions"] = args?.maxRedemptions;
|
|
58
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
59
|
+
resourceInputs["promotion"] = args?.promotion;
|
|
60
|
+
resourceInputs["restrictions"] = args?.restrictions;
|
|
61
|
+
resourceInputs["timesRedeemed"] = undefined /*out*/;
|
|
62
|
+
}
|
|
63
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
64
|
+
super(PromotionCode.__pulumiType, name, resourceInputs, opts);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.PromotionCode = PromotionCode;
|
|
68
|
+
/** @internal */
|
|
69
|
+
PromotionCode.__pulumiType = 'stripe:index/promotionCode:PromotionCode';
|
|
70
|
+
//# sourceMappingURL=promotionCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotionCode.js","sourceRoot":"","sources":["../promotionCode.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAmDD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;YACV,MAAM,KAAK,GAAG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C,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;QACxD,CAAC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA9GL,sCA+GC;AAjGG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The provider type for the stripe package. By default, resources use package-wide configuration
|
|
4
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
5
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
6
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj: any): obj is Provider;
|
|
14
|
+
/**
|
|
15
|
+
* Stripe API key
|
|
16
|
+
*/
|
|
17
|
+
readonly apiKey: pulumi.Output<string | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
20
|
+
*
|
|
21
|
+
* @param name The _unique_ name of the resource.
|
|
22
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
23
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
24
|
+
*/
|
|
25
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
26
|
+
/**
|
|
27
|
+
* This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
|
28
|
+
*/
|
|
29
|
+
terraformConfig(): pulumi.Output<Provider.TerraformConfigResult>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The set of arguments for constructing a Provider resource.
|
|
33
|
+
*/
|
|
34
|
+
export interface ProviderArgs {
|
|
35
|
+
/**
|
|
36
|
+
* Stripe API key
|
|
37
|
+
*/
|
|
38
|
+
apiKey?: pulumi.Input<string>;
|
|
39
|
+
}
|
|
40
|
+
export declare namespace Provider {
|
|
41
|
+
/**
|
|
42
|
+
* The results of the Provider.terraformConfig method.
|
|
43
|
+
*/
|
|
44
|
+
interface TerraformConfigResult {
|
|
45
|
+
readonly result: {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
package/bin/provider.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Provider = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The provider type for the stripe package. By default, resources use package-wide configuration
|
|
10
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
11
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
12
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
|
+
*/
|
|
14
|
+
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj) {
|
|
20
|
+
if (obj === undefined || obj === null) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resource.
|
|
29
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
30
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
31
|
+
*/
|
|
32
|
+
constructor(name, args, opts) {
|
|
33
|
+
let resourceInputs = {};
|
|
34
|
+
opts = opts || {};
|
|
35
|
+
{
|
|
36
|
+
resourceInputs["apiKey"] = args?.apiKey ? pulumi.secret(args.apiKey) : undefined;
|
|
37
|
+
}
|
|
38
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
39
|
+
const secretOpts = { additionalSecretOutputs: ["apiKey"] };
|
|
40
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
41
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
|
45
|
+
*/
|
|
46
|
+
terraformConfig() {
|
|
47
|
+
return pulumi.runtime.call("pulumi:providers:stripe/terraformConfig", {
|
|
48
|
+
"__self__": this,
|
|
49
|
+
}, this);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.Provider = Provider;
|
|
53
|
+
/** @internal */
|
|
54
|
+
Provider.__pulumiType = 'stripe';
|
|
55
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA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