@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/index.js
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.types = exports.config = exports.WebhookEndpoint = exports.V2CoreEventDestination = exports.V2BillingServiceAction = exports.V2BillingRateCardRate = exports.V2BillingRateCard = exports.V2BillingPricingPlanComponent = exports.V2BillingPricingPlan = exports.V2BillingMeteredItem = exports.V2BillingLicensedItem = exports.V2BillingLicenseFee = exports.TaxRate = exports.ShippingRate = exports.PromotionCode = exports.Product = exports.Price = exports.getBillingMeterOutput = exports.getBillingMeter = exports.EntitlementsFeature = exports.Customer = exports.Coupon = exports.BillingMeter = void 0;
|
|
20
|
+
const pulumi = require("@pulumi/pulumi");
|
|
21
|
+
const utilities = require("./utilities");
|
|
22
|
+
exports.BillingMeter = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["BillingMeter"], () => require("./billingMeter"));
|
|
24
|
+
exports.Coupon = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["Coupon"], () => require("./coupon"));
|
|
26
|
+
exports.Customer = null;
|
|
27
|
+
utilities.lazyLoad(exports, ["Customer"], () => require("./customer"));
|
|
28
|
+
exports.EntitlementsFeature = null;
|
|
29
|
+
utilities.lazyLoad(exports, ["EntitlementsFeature"], () => require("./entitlementsFeature"));
|
|
30
|
+
exports.getBillingMeter = null;
|
|
31
|
+
exports.getBillingMeterOutput = null;
|
|
32
|
+
utilities.lazyLoad(exports, ["getBillingMeter", "getBillingMeterOutput"], () => require("./getBillingMeter"));
|
|
33
|
+
exports.Price = null;
|
|
34
|
+
utilities.lazyLoad(exports, ["Price"], () => require("./price"));
|
|
35
|
+
exports.Product = null;
|
|
36
|
+
utilities.lazyLoad(exports, ["Product"], () => require("./product"));
|
|
37
|
+
exports.PromotionCode = null;
|
|
38
|
+
utilities.lazyLoad(exports, ["PromotionCode"], () => require("./promotionCode"));
|
|
39
|
+
__exportStar(require("./provider"), exports);
|
|
40
|
+
const provider_1 = require("./provider");
|
|
41
|
+
exports.ShippingRate = null;
|
|
42
|
+
utilities.lazyLoad(exports, ["ShippingRate"], () => require("./shippingRate"));
|
|
43
|
+
exports.TaxRate = null;
|
|
44
|
+
utilities.lazyLoad(exports, ["TaxRate"], () => require("./taxRate"));
|
|
45
|
+
exports.V2BillingLicenseFee = null;
|
|
46
|
+
utilities.lazyLoad(exports, ["V2BillingLicenseFee"], () => require("./v2billingLicenseFee"));
|
|
47
|
+
exports.V2BillingLicensedItem = null;
|
|
48
|
+
utilities.lazyLoad(exports, ["V2BillingLicensedItem"], () => require("./v2billingLicensedItem"));
|
|
49
|
+
exports.V2BillingMeteredItem = null;
|
|
50
|
+
utilities.lazyLoad(exports, ["V2BillingMeteredItem"], () => require("./v2billingMeteredItem"));
|
|
51
|
+
exports.V2BillingPricingPlan = null;
|
|
52
|
+
utilities.lazyLoad(exports, ["V2BillingPricingPlan"], () => require("./v2billingPricingPlan"));
|
|
53
|
+
exports.V2BillingPricingPlanComponent = null;
|
|
54
|
+
utilities.lazyLoad(exports, ["V2BillingPricingPlanComponent"], () => require("./v2billingPricingPlanComponent"));
|
|
55
|
+
exports.V2BillingRateCard = null;
|
|
56
|
+
utilities.lazyLoad(exports, ["V2BillingRateCard"], () => require("./v2billingRateCard"));
|
|
57
|
+
exports.V2BillingRateCardRate = null;
|
|
58
|
+
utilities.lazyLoad(exports, ["V2BillingRateCardRate"], () => require("./v2billingRateCardRate"));
|
|
59
|
+
exports.V2BillingServiceAction = null;
|
|
60
|
+
utilities.lazyLoad(exports, ["V2BillingServiceAction"], () => require("./v2billingServiceAction"));
|
|
61
|
+
exports.V2CoreEventDestination = null;
|
|
62
|
+
utilities.lazyLoad(exports, ["V2CoreEventDestination"], () => require("./v2coreEventDestination"));
|
|
63
|
+
exports.WebhookEndpoint = null;
|
|
64
|
+
utilities.lazyLoad(exports, ["WebhookEndpoint"], () => require("./webhookEndpoint"));
|
|
65
|
+
// Export sub-modules:
|
|
66
|
+
const config = require("./config");
|
|
67
|
+
exports.config = config;
|
|
68
|
+
const types = require("./types");
|
|
69
|
+
exports.types = types;
|
|
70
|
+
const _module = {
|
|
71
|
+
version: utilities.getVersion(),
|
|
72
|
+
construct: (name, type, urn) => {
|
|
73
|
+
switch (type) {
|
|
74
|
+
case "stripe:index/billingMeter:BillingMeter":
|
|
75
|
+
return new exports.BillingMeter(name, undefined, { urn });
|
|
76
|
+
case "stripe:index/coupon:Coupon":
|
|
77
|
+
return new exports.Coupon(name, undefined, { urn });
|
|
78
|
+
case "stripe:index/customer:Customer":
|
|
79
|
+
return new exports.Customer(name, undefined, { urn });
|
|
80
|
+
case "stripe:index/entitlementsFeature:EntitlementsFeature":
|
|
81
|
+
return new exports.EntitlementsFeature(name, undefined, { urn });
|
|
82
|
+
case "stripe:index/price:Price":
|
|
83
|
+
return new exports.Price(name, undefined, { urn });
|
|
84
|
+
case "stripe:index/product:Product":
|
|
85
|
+
return new exports.Product(name, undefined, { urn });
|
|
86
|
+
case "stripe:index/promotionCode:PromotionCode":
|
|
87
|
+
return new exports.PromotionCode(name, undefined, { urn });
|
|
88
|
+
case "stripe:index/shippingRate:ShippingRate":
|
|
89
|
+
return new exports.ShippingRate(name, undefined, { urn });
|
|
90
|
+
case "stripe:index/taxRate:TaxRate":
|
|
91
|
+
return new exports.TaxRate(name, undefined, { urn });
|
|
92
|
+
case "stripe:index/v2BillingLicenseFee:V2BillingLicenseFee":
|
|
93
|
+
return new exports.V2BillingLicenseFee(name, undefined, { urn });
|
|
94
|
+
case "stripe:index/v2BillingLicensedItem:V2BillingLicensedItem":
|
|
95
|
+
return new exports.V2BillingLicensedItem(name, undefined, { urn });
|
|
96
|
+
case "stripe:index/v2BillingMeteredItem:V2BillingMeteredItem":
|
|
97
|
+
return new exports.V2BillingMeteredItem(name, undefined, { urn });
|
|
98
|
+
case "stripe:index/v2BillingPricingPlan:V2BillingPricingPlan":
|
|
99
|
+
return new exports.V2BillingPricingPlan(name, undefined, { urn });
|
|
100
|
+
case "stripe:index/v2BillingPricingPlanComponent:V2BillingPricingPlanComponent":
|
|
101
|
+
return new exports.V2BillingPricingPlanComponent(name, undefined, { urn });
|
|
102
|
+
case "stripe:index/v2BillingRateCard:V2BillingRateCard":
|
|
103
|
+
return new exports.V2BillingRateCard(name, undefined, { urn });
|
|
104
|
+
case "stripe:index/v2BillingRateCardRate:V2BillingRateCardRate":
|
|
105
|
+
return new exports.V2BillingRateCardRate(name, undefined, { urn });
|
|
106
|
+
case "stripe:index/v2BillingServiceAction:V2BillingServiceAction":
|
|
107
|
+
return new exports.V2BillingServiceAction(name, undefined, { urn });
|
|
108
|
+
case "stripe:index/v2CoreEventDestination:V2CoreEventDestination":
|
|
109
|
+
return new exports.V2CoreEventDestination(name, undefined, { urn });
|
|
110
|
+
case "stripe:index/webhookEndpoint:WebhookEndpoint":
|
|
111
|
+
return new exports.WebhookEndpoint(name, undefined, { urn });
|
|
112
|
+
default:
|
|
113
|
+
throw new Error(`unknown resource type ${type}`);
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
pulumi.runtime.registerResourceModule("stripe", "index/billingMeter", _module);
|
|
118
|
+
pulumi.runtime.registerResourceModule("stripe", "index/coupon", _module);
|
|
119
|
+
pulumi.runtime.registerResourceModule("stripe", "index/customer", _module);
|
|
120
|
+
pulumi.runtime.registerResourceModule("stripe", "index/entitlementsFeature", _module);
|
|
121
|
+
pulumi.runtime.registerResourceModule("stripe", "index/price", _module);
|
|
122
|
+
pulumi.runtime.registerResourceModule("stripe", "index/product", _module);
|
|
123
|
+
pulumi.runtime.registerResourceModule("stripe", "index/promotionCode", _module);
|
|
124
|
+
pulumi.runtime.registerResourceModule("stripe", "index/shippingRate", _module);
|
|
125
|
+
pulumi.runtime.registerResourceModule("stripe", "index/taxRate", _module);
|
|
126
|
+
pulumi.runtime.registerResourceModule("stripe", "index/v2BillingLicenseFee", _module);
|
|
127
|
+
pulumi.runtime.registerResourceModule("stripe", "index/v2BillingLicensedItem", _module);
|
|
128
|
+
pulumi.runtime.registerResourceModule("stripe", "index/v2BillingMeteredItem", _module);
|
|
129
|
+
pulumi.runtime.registerResourceModule("stripe", "index/v2BillingPricingPlan", _module);
|
|
130
|
+
pulumi.runtime.registerResourceModule("stripe", "index/v2BillingPricingPlanComponent", _module);
|
|
131
|
+
pulumi.runtime.registerResourceModule("stripe", "index/v2BillingRateCard", _module);
|
|
132
|
+
pulumi.runtime.registerResourceModule("stripe", "index/v2BillingRateCardRate", _module);
|
|
133
|
+
pulumi.runtime.registerResourceModule("stripe", "index/v2BillingServiceAction", _module);
|
|
134
|
+
pulumi.runtime.registerResourceModule("stripe", "index/v2CoreEventDestination", _module);
|
|
135
|
+
pulumi.runtime.registerResourceModule("stripe", "index/webhookEndpoint", _module);
|
|
136
|
+
pulumi.runtime.registerResourcePackage("stripe", {
|
|
137
|
+
version: utilities.getVersion(),
|
|
138
|
+
constructProvider: (name, type, urn) => {
|
|
139
|
+
if (type !== "pulumi:providers:stripe") {
|
|
140
|
+
throw new Error(`unknown provider type ${type}`);
|
|
141
|
+
}
|
|
142
|
+
return new provider_1.Provider(name, undefined, { urn });
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
//# sourceMappingURL=index.js.map
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AE,OAAO,CAAC,CAAA;AACvF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,8BAA8B,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,8BAA8B,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAA;AACjF,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,yBAAyB,EAAE,CAAC;YACrC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;QACrD,CAAC;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/bin/price.d.ts
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
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 Price extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing Price 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?: PriceState, opts?: pulumi.CustomResourceOptions): Price;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Price. 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 Price;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the price can be used for new purchases. Defaults to `true`.
|
|
22
|
+
*/
|
|
23
|
+
readonly active: pulumi.Output<boolean | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Describes how to compute the price per period. Either `perUnit` or `tiered`. `perUnit` indicates that the fixed amount (specified in `unitAmount` or `unitAmountDecimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiersMode` attributes.
|
|
26
|
+
*/
|
|
27
|
+
readonly billingScheme: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
30
|
+
*/
|
|
31
|
+
readonly currency: pulumi.Output<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
|
|
34
|
+
*/
|
|
35
|
+
readonly currencyOptions: pulumi.Output<outputs.PriceCurrencyOption[]>;
|
|
36
|
+
/**
|
|
37
|
+
* When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
|
|
38
|
+
*/
|
|
39
|
+
readonly customUnitAmount: pulumi.Output<outputs.PriceCustomUnitAmount | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
|
|
42
|
+
*/
|
|
43
|
+
readonly lookupKey: pulumi.Output<string>;
|
|
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
|
+
* A brief description of the price, hidden from customers.
|
|
52
|
+
*/
|
|
53
|
+
readonly nickname: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
56
|
+
*/
|
|
57
|
+
readonly product: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* These fields can be used to create a new product that this price will belong to.
|
|
60
|
+
*/
|
|
61
|
+
readonly productData: pulumi.Output<outputs.PriceProductData | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* The recurring components of a price such as `interval` and `usageType`.
|
|
64
|
+
*/
|
|
65
|
+
readonly recurring: pulumi.Output<outputs.PriceRecurring | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
68
|
+
*/
|
|
69
|
+
readonly taxBehavior: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Each element represents a pricing tier. This parameter requires `billingScheme` to be set to `tiered`. See also the documentation for `billingScheme`.
|
|
72
|
+
*/
|
|
73
|
+
readonly tiers: pulumi.Output<outputs.PriceTier[] | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price, in `graduated` tiering pricing can successively change as the quantity grows.
|
|
76
|
+
*/
|
|
77
|
+
readonly tiersMode: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* One of `oneTime` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
80
|
+
*/
|
|
81
|
+
readonly type: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. One of `unitAmount`, `unitAmountDecimal`, or `customUnitAmount` is required, unless `billing_scheme=tiered`.
|
|
84
|
+
*/
|
|
85
|
+
readonly unitAmount: pulumi.Output<number>;
|
|
86
|
+
/**
|
|
87
|
+
* Create a Price resource with the given unique name, arguments, and options.
|
|
88
|
+
*
|
|
89
|
+
* @param name The _unique_ name of the resource.
|
|
90
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
91
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
92
|
+
*/
|
|
93
|
+
constructor(name: string, args: PriceArgs, opts?: pulumi.CustomResourceOptions);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Input properties used for looking up and filtering Price resources.
|
|
97
|
+
*/
|
|
98
|
+
export interface PriceState {
|
|
99
|
+
/**
|
|
100
|
+
* Whether the price can be used for new purchases. Defaults to `true`.
|
|
101
|
+
*/
|
|
102
|
+
active?: pulumi.Input<boolean>;
|
|
103
|
+
/**
|
|
104
|
+
* Describes how to compute the price per period. Either `perUnit` or `tiered`. `perUnit` indicates that the fixed amount (specified in `unitAmount` or `unitAmountDecimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiersMode` attributes.
|
|
105
|
+
*/
|
|
106
|
+
billingScheme?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
109
|
+
*/
|
|
110
|
+
currency?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
|
|
113
|
+
*/
|
|
114
|
+
currencyOptions?: pulumi.Input<pulumi.Input<inputs.PriceCurrencyOption>[]>;
|
|
115
|
+
/**
|
|
116
|
+
* When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
|
|
117
|
+
*/
|
|
118
|
+
customUnitAmount?: pulumi.Input<inputs.PriceCustomUnitAmount>;
|
|
119
|
+
/**
|
|
120
|
+
* A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
|
|
121
|
+
*/
|
|
122
|
+
lookupKey?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* 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`.
|
|
125
|
+
*/
|
|
126
|
+
metadata?: pulumi.Input<{
|
|
127
|
+
[key: string]: pulumi.Input<string>;
|
|
128
|
+
}>;
|
|
129
|
+
/**
|
|
130
|
+
* A brief description of the price, hidden from customers.
|
|
131
|
+
*/
|
|
132
|
+
nickname?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
135
|
+
*/
|
|
136
|
+
product?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* These fields can be used to create a new product that this price will belong to.
|
|
139
|
+
*/
|
|
140
|
+
productData?: pulumi.Input<inputs.PriceProductData>;
|
|
141
|
+
/**
|
|
142
|
+
* The recurring components of a price such as `interval` and `usageType`.
|
|
143
|
+
*/
|
|
144
|
+
recurring?: pulumi.Input<inputs.PriceRecurring>;
|
|
145
|
+
/**
|
|
146
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
147
|
+
*/
|
|
148
|
+
taxBehavior?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Each element represents a pricing tier. This parameter requires `billingScheme` to be set to `tiered`. See also the documentation for `billingScheme`.
|
|
151
|
+
*/
|
|
152
|
+
tiers?: pulumi.Input<pulumi.Input<inputs.PriceTier>[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price, in `graduated` tiering pricing can successively change as the quantity grows.
|
|
155
|
+
*/
|
|
156
|
+
tiersMode?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* One of `oneTime` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
|
|
159
|
+
*/
|
|
160
|
+
type?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. One of `unitAmount`, `unitAmountDecimal`, or `customUnitAmount` is required, unless `billing_scheme=tiered`.
|
|
163
|
+
*/
|
|
164
|
+
unitAmount?: pulumi.Input<number>;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* The set of arguments for constructing a Price resource.
|
|
168
|
+
*/
|
|
169
|
+
export interface PriceArgs {
|
|
170
|
+
/**
|
|
171
|
+
* Whether the price can be used for new purchases. Defaults to `true`.
|
|
172
|
+
*/
|
|
173
|
+
active?: pulumi.Input<boolean>;
|
|
174
|
+
/**
|
|
175
|
+
* Describes how to compute the price per period. Either `perUnit` or `tiered`. `perUnit` indicates that the fixed amount (specified in `unitAmount` or `unitAmountDecimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiersMode` attributes.
|
|
176
|
+
*/
|
|
177
|
+
billingScheme?: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
180
|
+
*/
|
|
181
|
+
currency: pulumi.Input<string>;
|
|
182
|
+
/**
|
|
183
|
+
* Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
|
|
184
|
+
*/
|
|
185
|
+
currencyOptions?: pulumi.Input<pulumi.Input<inputs.PriceCurrencyOption>[]>;
|
|
186
|
+
/**
|
|
187
|
+
* When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
|
|
188
|
+
*/
|
|
189
|
+
customUnitAmount?: pulumi.Input<inputs.PriceCustomUnitAmount>;
|
|
190
|
+
/**
|
|
191
|
+
* A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
|
|
192
|
+
*/
|
|
193
|
+
lookupKey?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* 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`.
|
|
196
|
+
*/
|
|
197
|
+
metadata?: pulumi.Input<{
|
|
198
|
+
[key: string]: pulumi.Input<string>;
|
|
199
|
+
}>;
|
|
200
|
+
/**
|
|
201
|
+
* A brief description of the price, hidden from customers.
|
|
202
|
+
*/
|
|
203
|
+
nickname?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
206
|
+
*/
|
|
207
|
+
product?: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* These fields can be used to create a new product that this price will belong to.
|
|
210
|
+
*/
|
|
211
|
+
productData?: pulumi.Input<inputs.PriceProductData>;
|
|
212
|
+
/**
|
|
213
|
+
* The recurring components of a price such as `interval` and `usageType`.
|
|
214
|
+
*/
|
|
215
|
+
recurring?: pulumi.Input<inputs.PriceRecurring>;
|
|
216
|
+
/**
|
|
217
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
218
|
+
*/
|
|
219
|
+
taxBehavior?: pulumi.Input<string>;
|
|
220
|
+
/**
|
|
221
|
+
* Each element represents a pricing tier. This parameter requires `billingScheme` to be set to `tiered`. See also the documentation for `billingScheme`.
|
|
222
|
+
*/
|
|
223
|
+
tiers?: pulumi.Input<pulumi.Input<inputs.PriceTier>[]>;
|
|
224
|
+
/**
|
|
225
|
+
* Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price, in `graduated` tiering pricing can successively change as the quantity grows.
|
|
226
|
+
*/
|
|
227
|
+
tiersMode?: pulumi.Input<string>;
|
|
228
|
+
/**
|
|
229
|
+
* A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. One of `unitAmount`, `unitAmountDecimal`, or `customUnitAmount` is required, unless `billing_scheme=tiered`.
|
|
230
|
+
*/
|
|
231
|
+
unitAmount?: pulumi.Input<number>;
|
|
232
|
+
}
|
package/bin/price.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
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.Price = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Price extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Price 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 Price(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of Price. 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'] === Price.__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["billingScheme"] = state?.billingScheme;
|
|
38
|
+
resourceInputs["currency"] = state?.currency;
|
|
39
|
+
resourceInputs["currencyOptions"] = state?.currencyOptions;
|
|
40
|
+
resourceInputs["customUnitAmount"] = state?.customUnitAmount;
|
|
41
|
+
resourceInputs["lookupKey"] = state?.lookupKey;
|
|
42
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
43
|
+
resourceInputs["nickname"] = state?.nickname;
|
|
44
|
+
resourceInputs["product"] = state?.product;
|
|
45
|
+
resourceInputs["productData"] = state?.productData;
|
|
46
|
+
resourceInputs["recurring"] = state?.recurring;
|
|
47
|
+
resourceInputs["taxBehavior"] = state?.taxBehavior;
|
|
48
|
+
resourceInputs["tiers"] = state?.tiers;
|
|
49
|
+
resourceInputs["tiersMode"] = state?.tiersMode;
|
|
50
|
+
resourceInputs["type"] = state?.type;
|
|
51
|
+
resourceInputs["unitAmount"] = state?.unitAmount;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
const args = argsOrState;
|
|
55
|
+
if (args?.currency === undefined && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'currency'");
|
|
57
|
+
}
|
|
58
|
+
resourceInputs["active"] = args?.active;
|
|
59
|
+
resourceInputs["billingScheme"] = args?.billingScheme;
|
|
60
|
+
resourceInputs["currency"] = args?.currency;
|
|
61
|
+
resourceInputs["currencyOptions"] = args?.currencyOptions;
|
|
62
|
+
resourceInputs["customUnitAmount"] = args?.customUnitAmount;
|
|
63
|
+
resourceInputs["lookupKey"] = args?.lookupKey;
|
|
64
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
65
|
+
resourceInputs["nickname"] = args?.nickname;
|
|
66
|
+
resourceInputs["product"] = args?.product;
|
|
67
|
+
resourceInputs["productData"] = args?.productData;
|
|
68
|
+
resourceInputs["recurring"] = args?.recurring;
|
|
69
|
+
resourceInputs["taxBehavior"] = args?.taxBehavior;
|
|
70
|
+
resourceInputs["tiers"] = args?.tiers;
|
|
71
|
+
resourceInputs["tiersMode"] = args?.tiersMode;
|
|
72
|
+
resourceInputs["unitAmount"] = args?.unitAmount;
|
|
73
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
74
|
+
}
|
|
75
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
76
|
+
super(Price.__pulumiType, name, resourceInputs, opts);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.Price = Price;
|
|
80
|
+
/** @internal */
|
|
81
|
+
Price.__pulumiType = 'stripe:index/price:Price';
|
|
82
|
+
//# sourceMappingURL=price.js.map
|
package/bin/price.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"price.js","sourceRoot":"","sources":["../price.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IA2ED,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;YACV,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;YACvD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;YAC3D,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,gB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