@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
|
@@ -0,0 +1,136 @@
|
|
|
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 ShippingRate extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing ShippingRate 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?: ShippingRateState, opts?: pulumi.CustomResourceOptions): ShippingRate;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of ShippingRate. 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 ShippingRate;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the shipping rate can be used for new purchases. Defaults to `true`.
|
|
22
|
+
*/
|
|
23
|
+
readonly active: pulumi.Output<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
26
|
+
*/
|
|
27
|
+
readonly deliveryEstimate: pulumi.Output<outputs.ShippingRateDeliveryEstimate | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
30
|
+
*/
|
|
31
|
+
readonly displayName: pulumi.Output<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Describes a fixed amount to charge for shipping. Must be present if type is `fixedAmount`.
|
|
34
|
+
*/
|
|
35
|
+
readonly fixedAmount: pulumi.Output<outputs.ShippingRateFixedAmount | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* 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`.
|
|
38
|
+
*/
|
|
39
|
+
readonly metadata: pulumi.Output<{
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
44
|
+
*/
|
|
45
|
+
readonly taxBehavior: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd92010001`.
|
|
48
|
+
*/
|
|
49
|
+
readonly taxCode: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The type of calculation to use on the shipping rate.
|
|
52
|
+
*/
|
|
53
|
+
readonly type: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Create a ShippingRate resource with the given unique name, arguments, and options.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resource.
|
|
58
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
59
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
60
|
+
*/
|
|
61
|
+
constructor(name: string, args: ShippingRateArgs, opts?: pulumi.CustomResourceOptions);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Input properties used for looking up and filtering ShippingRate resources.
|
|
65
|
+
*/
|
|
66
|
+
export interface ShippingRateState {
|
|
67
|
+
/**
|
|
68
|
+
* Whether the shipping rate can be used for new purchases. Defaults to `true`.
|
|
69
|
+
*/
|
|
70
|
+
active?: pulumi.Input<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
73
|
+
*/
|
|
74
|
+
deliveryEstimate?: pulumi.Input<inputs.ShippingRateDeliveryEstimate>;
|
|
75
|
+
/**
|
|
76
|
+
* The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
77
|
+
*/
|
|
78
|
+
displayName?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Describes a fixed amount to charge for shipping. Must be present if type is `fixedAmount`.
|
|
81
|
+
*/
|
|
82
|
+
fixedAmount?: pulumi.Input<inputs.ShippingRateFixedAmount>;
|
|
83
|
+
/**
|
|
84
|
+
* 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`.
|
|
85
|
+
*/
|
|
86
|
+
metadata?: pulumi.Input<{
|
|
87
|
+
[key: string]: pulumi.Input<string>;
|
|
88
|
+
}>;
|
|
89
|
+
/**
|
|
90
|
+
* Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
91
|
+
*/
|
|
92
|
+
taxBehavior?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd92010001`.
|
|
95
|
+
*/
|
|
96
|
+
taxCode?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The type of calculation to use on the shipping rate.
|
|
99
|
+
*/
|
|
100
|
+
type?: pulumi.Input<string>;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The set of arguments for constructing a ShippingRate resource.
|
|
104
|
+
*/
|
|
105
|
+
export interface ShippingRateArgs {
|
|
106
|
+
/**
|
|
107
|
+
* The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
108
|
+
*/
|
|
109
|
+
deliveryEstimate?: pulumi.Input<inputs.ShippingRateDeliveryEstimate>;
|
|
110
|
+
/**
|
|
111
|
+
* The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
112
|
+
*/
|
|
113
|
+
displayName: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Describes a fixed amount to charge for shipping. Must be present if type is `fixedAmount`.
|
|
116
|
+
*/
|
|
117
|
+
fixedAmount?: pulumi.Input<inputs.ShippingRateFixedAmount>;
|
|
118
|
+
/**
|
|
119
|
+
* 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`.
|
|
120
|
+
*/
|
|
121
|
+
metadata?: pulumi.Input<{
|
|
122
|
+
[key: string]: pulumi.Input<string>;
|
|
123
|
+
}>;
|
|
124
|
+
/**
|
|
125
|
+
* Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
126
|
+
*/
|
|
127
|
+
taxBehavior?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd92010001`.
|
|
130
|
+
*/
|
|
131
|
+
taxCode?: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The type of calculation to use on the shipping rate.
|
|
134
|
+
*/
|
|
135
|
+
type?: pulumi.Input<string>;
|
|
136
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.ShippingRate = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class ShippingRate extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ShippingRate 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 ShippingRate(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of ShippingRate. 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'] === ShippingRate.__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["deliveryEstimate"] = state?.deliveryEstimate;
|
|
38
|
+
resourceInputs["displayName"] = state?.displayName;
|
|
39
|
+
resourceInputs["fixedAmount"] = state?.fixedAmount;
|
|
40
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
41
|
+
resourceInputs["taxBehavior"] = state?.taxBehavior;
|
|
42
|
+
resourceInputs["taxCode"] = state?.taxCode;
|
|
43
|
+
resourceInputs["type"] = state?.type;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
const args = argsOrState;
|
|
47
|
+
if (args?.displayName === undefined && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'displayName'");
|
|
49
|
+
}
|
|
50
|
+
resourceInputs["deliveryEstimate"] = args?.deliveryEstimate;
|
|
51
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
52
|
+
resourceInputs["fixedAmount"] = args?.fixedAmount;
|
|
53
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
54
|
+
resourceInputs["taxBehavior"] = args?.taxBehavior;
|
|
55
|
+
resourceInputs["taxCode"] = args?.taxCode;
|
|
56
|
+
resourceInputs["type"] = args?.type;
|
|
57
|
+
resourceInputs["active"] = undefined /*out*/;
|
|
58
|
+
}
|
|
59
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
60
|
+
super(ShippingRate.__pulumiType, name, resourceInputs, opts);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.ShippingRate = ShippingRate;
|
|
64
|
+
/** @internal */
|
|
65
|
+
ShippingRate.__pulumiType = 'stripe:index/shippingRate:ShippingRate';
|
|
66
|
+
//# sourceMappingURL=shippingRate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shippingRate.js","sourceRoot":"","sources":["../shippingRate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;YACV,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CA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,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAlGL,oCAmGC;AArFG,gBAAgB;AACO,yBAAY,GAAG,wCAAwC,CAAC"}
|
package/bin/taxRate.d.ts
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class TaxRate extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing TaxRate resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param state Any extra arguments used during the lookup.
|
|
10
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
11
|
+
*/
|
|
12
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TaxRateState, opts?: pulumi.CustomResourceOptions): TaxRate;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of TaxRate. This is designed to work even
|
|
15
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
|
+
*/
|
|
17
|
+
static isInstance(obj: any): obj is TaxRate;
|
|
18
|
+
/**
|
|
19
|
+
* Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
|
|
20
|
+
*/
|
|
21
|
+
readonly active: pulumi.Output<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
24
|
+
*/
|
|
25
|
+
readonly country: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
|
|
28
|
+
*/
|
|
29
|
+
readonly description: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The display name of the tax rate, which will be shown to users.
|
|
32
|
+
*/
|
|
33
|
+
readonly displayName: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product's taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.
|
|
36
|
+
*/
|
|
37
|
+
readonly effectivePercentage: pulumi.Output<number>;
|
|
38
|
+
/**
|
|
39
|
+
* This specifies if the tax rate is inclusive or exclusive.
|
|
40
|
+
*/
|
|
41
|
+
readonly inclusive: pulumi.Output<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
|
|
44
|
+
*/
|
|
45
|
+
readonly jurisdiction: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* The level of the jurisdiction that imposes this tax rate. Will be `null` for manually defined tax rates.
|
|
48
|
+
*/
|
|
49
|
+
readonly jurisdictionLevel: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* 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`.
|
|
52
|
+
*/
|
|
53
|
+
readonly metadata: pulumi.Output<{
|
|
54
|
+
[key: string]: string;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* This represents the tax rate percent out of 100.
|
|
58
|
+
*/
|
|
59
|
+
readonly percentage: pulumi.Output<number>;
|
|
60
|
+
/**
|
|
61
|
+
* Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
|
|
62
|
+
*/
|
|
63
|
+
readonly rateType: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, \"NY\" for New York, United States.
|
|
66
|
+
*/
|
|
67
|
+
readonly state: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* The high-level tax type, such as `vat` or `salesTax`.
|
|
70
|
+
*/
|
|
71
|
+
readonly taxType: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Create a TaxRate resource with the given unique name, arguments, and options.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resource.
|
|
76
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
77
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
78
|
+
*/
|
|
79
|
+
constructor(name: string, args: TaxRateArgs, opts?: pulumi.CustomResourceOptions);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Input properties used for looking up and filtering TaxRate resources.
|
|
83
|
+
*/
|
|
84
|
+
export interface TaxRateState {
|
|
85
|
+
/**
|
|
86
|
+
* Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
|
|
87
|
+
*/
|
|
88
|
+
active?: pulumi.Input<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
91
|
+
*/
|
|
92
|
+
country?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
|
|
95
|
+
*/
|
|
96
|
+
description?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The display name of the tax rate, which will be shown to users.
|
|
99
|
+
*/
|
|
100
|
+
displayName?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product's taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.
|
|
103
|
+
*/
|
|
104
|
+
effectivePercentage?: pulumi.Input<number>;
|
|
105
|
+
/**
|
|
106
|
+
* This specifies if the tax rate is inclusive or exclusive.
|
|
107
|
+
*/
|
|
108
|
+
inclusive?: pulumi.Input<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
|
|
111
|
+
*/
|
|
112
|
+
jurisdiction?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The level of the jurisdiction that imposes this tax rate. Will be `null` for manually defined tax rates.
|
|
115
|
+
*/
|
|
116
|
+
jurisdictionLevel?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* 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`.
|
|
119
|
+
*/
|
|
120
|
+
metadata?: pulumi.Input<{
|
|
121
|
+
[key: string]: pulumi.Input<string>;
|
|
122
|
+
}>;
|
|
123
|
+
/**
|
|
124
|
+
* This represents the tax rate percent out of 100.
|
|
125
|
+
*/
|
|
126
|
+
percentage?: pulumi.Input<number>;
|
|
127
|
+
/**
|
|
128
|
+
* Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
|
|
129
|
+
*/
|
|
130
|
+
rateType?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, \"NY\" for New York, United States.
|
|
133
|
+
*/
|
|
134
|
+
state?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The high-level tax type, such as `vat` or `salesTax`.
|
|
137
|
+
*/
|
|
138
|
+
taxType?: pulumi.Input<string>;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The set of arguments for constructing a TaxRate resource.
|
|
142
|
+
*/
|
|
143
|
+
export interface TaxRateArgs {
|
|
144
|
+
/**
|
|
145
|
+
* Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
|
|
146
|
+
*/
|
|
147
|
+
active?: pulumi.Input<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
150
|
+
*/
|
|
151
|
+
country?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
|
|
154
|
+
*/
|
|
155
|
+
description?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* The display name of the tax rate, which will be shown to users.
|
|
158
|
+
*/
|
|
159
|
+
displayName: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* This specifies if the tax rate is inclusive or exclusive.
|
|
162
|
+
*/
|
|
163
|
+
inclusive: pulumi.Input<boolean>;
|
|
164
|
+
/**
|
|
165
|
+
* The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
|
|
166
|
+
*/
|
|
167
|
+
jurisdiction?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* 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`.
|
|
170
|
+
*/
|
|
171
|
+
metadata?: pulumi.Input<{
|
|
172
|
+
[key: string]: pulumi.Input<string>;
|
|
173
|
+
}>;
|
|
174
|
+
/**
|
|
175
|
+
* This represents the tax rate percent out of 100.
|
|
176
|
+
*/
|
|
177
|
+
percentage: pulumi.Input<number>;
|
|
178
|
+
/**
|
|
179
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, \"NY\" for New York, United States.
|
|
180
|
+
*/
|
|
181
|
+
state?: pulumi.Input<string>;
|
|
182
|
+
/**
|
|
183
|
+
* The high-level tax type, such as `vat` or `salesTax`.
|
|
184
|
+
*/
|
|
185
|
+
taxType?: pulumi.Input<string>;
|
|
186
|
+
}
|
package/bin/taxRate.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.TaxRate = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class TaxRate extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing TaxRate 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 TaxRate(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of TaxRate. 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'] === TaxRate.__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["country"] = state?.country;
|
|
38
|
+
resourceInputs["description"] = state?.description;
|
|
39
|
+
resourceInputs["displayName"] = state?.displayName;
|
|
40
|
+
resourceInputs["effectivePercentage"] = state?.effectivePercentage;
|
|
41
|
+
resourceInputs["inclusive"] = state?.inclusive;
|
|
42
|
+
resourceInputs["jurisdiction"] = state?.jurisdiction;
|
|
43
|
+
resourceInputs["jurisdictionLevel"] = state?.jurisdictionLevel;
|
|
44
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
45
|
+
resourceInputs["percentage"] = state?.percentage;
|
|
46
|
+
resourceInputs["rateType"] = state?.rateType;
|
|
47
|
+
resourceInputs["state"] = state?.state;
|
|
48
|
+
resourceInputs["taxType"] = state?.taxType;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const args = argsOrState;
|
|
52
|
+
if (args?.displayName === undefined && !opts.urn) {
|
|
53
|
+
throw new Error("Missing required property 'displayName'");
|
|
54
|
+
}
|
|
55
|
+
if (args?.inclusive === undefined && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'inclusive'");
|
|
57
|
+
}
|
|
58
|
+
if (args?.percentage === undefined && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'percentage'");
|
|
60
|
+
}
|
|
61
|
+
resourceInputs["active"] = args?.active;
|
|
62
|
+
resourceInputs["country"] = args?.country;
|
|
63
|
+
resourceInputs["description"] = args?.description;
|
|
64
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
65
|
+
resourceInputs["inclusive"] = args?.inclusive;
|
|
66
|
+
resourceInputs["jurisdiction"] = args?.jurisdiction;
|
|
67
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
68
|
+
resourceInputs["percentage"] = args?.percentage;
|
|
69
|
+
resourceInputs["state"] = args?.state;
|
|
70
|
+
resourceInputs["taxType"] = args?.taxType;
|
|
71
|
+
resourceInputs["effectivePercentage"] = undefined /*out*/;
|
|
72
|
+
resourceInputs["jurisdictionLevel"] = undefined /*out*/;
|
|
73
|
+
resourceInputs["rateType"] = undefined /*out*/;
|
|
74
|
+
}
|
|
75
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
76
|
+
super(TaxRate.__pulumiType, name, resourceInputs, opts);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.TaxRate = TaxRate;
|
|
80
|
+
/** @internal */
|
|
81
|
+
TaxRate.__pulumiType = 'stripe:index/taxRate:TaxRate';
|
|
82
|
+
//# sourceMappingURL=taxRate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taxRate.js","sourceRoot":"","sources":["../taxRate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IA+DD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QA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 +1,11 @@
|
|
|
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.output = exports.input = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const input = require("./input");
|
|
8
|
+
exports.input = input;
|
|
9
|
+
const output = require("./output");
|
|
10
|
+
exports.output = output;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|