@lshay-provider/stripe 0.0.0-stage → 0.3.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 +3 -3
- package/bin/applePayDomain.d.ts +64 -0
- package/bin/applePayDomain.d.ts.map +1 -0
- package/bin/applePayDomain.js +81 -0
- package/bin/applePayDomain.js.map +1 -0
- package/bin/billingAlert.d.ts +99 -0
- package/bin/billingAlert.d.ts.map +1 -0
- package/bin/billingAlert.js +88 -0
- package/bin/billingAlert.js.map +1 -0
- package/bin/billingCreditGrant.d.ts +195 -0
- package/bin/billingCreditGrant.d.ts.map +1 -0
- package/bin/billingCreditGrant.js +108 -0
- package/bin/billingCreditGrant.js.map +1 -0
- package/bin/billingMeter.d.ts +126 -0
- package/bin/billingMeter.d.ts.map +1 -0
- package/bin/billingMeter.js +100 -0
- package/bin/billingMeter.js.map +1 -0
- package/bin/billingPortalConfiguration.d.ts +142 -0
- package/bin/billingPortalConfiguration.d.ts.map +1 -0
- package/bin/billingPortalConfiguration.js +97 -0
- package/bin/billingPortalConfiguration.js.map +1 -0
- package/bin/charge.d.ts +488 -0
- package/bin/charge.d.ts.map +1 -0
- package/bin/charge.js +166 -0
- package/bin/charge.js.map +1 -0
- package/bin/climateOrder.d.ts +239 -0
- package/bin/climateOrder.d.ts.map +1 -0
- package/bin/climateOrder.js +119 -0
- package/bin/climateOrder.js.map +1 -0
- package/bin/config/index.d.ts +2 -0
- package/bin/config/index.d.ts.map +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +9 -0
- package/bin/config/vars.d.ts.map +1 -0
- package/bin/config/vars.js +42 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/coupon.d.ts +208 -0
- package/bin/coupon.d.ts.map +1 -0
- package/bin/coupon.js +102 -0
- package/bin/coupon.js.map +1 -0
- package/bin/creditNote.d.ts +366 -0
- package/bin/creditNote.d.ts.map +1 -0
- package/bin/creditNote.js +141 -0
- package/bin/creditNote.js.map +1 -0
- package/bin/customer.d.ts +376 -0
- package/bin/customer.d.ts.map +1 -0
- package/bin/customer.js +134 -0
- package/bin/customer.js.map +1 -0
- package/bin/customerBalanceTransaction.d.ts +167 -0
- package/bin/customerBalanceTransaction.d.ts.map +1 -0
- package/bin/customerBalanceTransaction.js +105 -0
- package/bin/customerBalanceTransaction.js.map +1 -0
- package/bin/entitlementsFeature.d.ts +103 -0
- package/bin/entitlementsFeature.d.ts.map +1 -0
- package/bin/entitlementsFeature.js +85 -0
- package/bin/entitlementsFeature.js.map +1 -0
- package/bin/file.d.ts +145 -0
- package/bin/file.d.ts.map +1 -0
- package/bin/file.js +100 -0
- package/bin/file.js.map +1 -0
- package/bin/fileLink.d.ts +119 -0
- package/bin/fileLink.d.ts.map +1 -0
- package/bin/fileLink.js +89 -0
- package/bin/fileLink.js.map +1 -0
- package/bin/index.d.ts +152 -0
- package/bin/index.d.ts.map +1 -0
- package/bin/index.js +305 -0
- package/bin/index.js.map +1 -0
- package/bin/invoice.d.ts +785 -0
- package/bin/invoice.d.ts.map +1 -0
- package/bin/invoice.js +230 -0
- package/bin/invoice.js.map +1 -0
- package/bin/invoiceItem.d.ts +326 -0
- package/bin/invoiceItem.d.ts.map +1 -0
- package/bin/invoiceItem.js +122 -0
- package/bin/invoiceItem.js.map +1 -0
- package/bin/issuingCard.d.ts +305 -0
- package/bin/issuingCard.d.ts.map +1 -0
- package/bin/issuingCard.js +128 -0
- package/bin/issuingCard.js.map +1 -0
- package/bin/issuingCardholder.d.ts +197 -0
- package/bin/issuingCardholder.d.ts.map +1 -0
- package/bin/issuingCardholder.js +103 -0
- package/bin/issuingCardholder.js.map +1 -0
- package/bin/issuingDispute.d.ts +144 -0
- package/bin/issuingDispute.d.ts.map +1 -0
- package/bin/issuingDispute.js +92 -0
- package/bin/issuingDispute.js.map +1 -0
- package/bin/issuingPersonalizationDesign.d.ts +169 -0
- package/bin/issuingPersonalizationDesign.d.ts.map +1 -0
- package/bin/issuingPersonalizationDesign.js +101 -0
- package/bin/issuingPersonalizationDesign.js.map +1 -0
- package/bin/package.json +35 -0
- package/bin/paymentIntent.d.ts +646 -0
- package/bin/paymentIntent.d.ts.map +1 -0
- package/bin/paymentIntent.js +180 -0
- package/bin/paymentIntent.js.map +1 -0
- package/bin/paymentLink.d.ts +407 -0
- package/bin/paymentLink.d.ts.map +1 -0
- package/bin/paymentLink.js +145 -0
- package/bin/paymentLink.js.map +1 -0
- package/bin/paymentMethod.d.ts +215 -0
- package/bin/paymentMethod.d.ts.map +1 -0
- package/bin/paymentMethod.js +138 -0
- package/bin/paymentMethod.js.map +1 -0
- package/bin/paymentMethodConfiguration.d.ts +296 -0
- package/bin/paymentMethodConfiguration.d.ts.map +1 -0
- package/bin/paymentMethodConfiguration.js +204 -0
- package/bin/paymentMethodConfiguration.js.map +1 -0
- package/bin/paymentMethodDomain.d.ts +135 -0
- package/bin/paymentMethodDomain.d.ts.map +1 -0
- package/bin/paymentMethodDomain.js +95 -0
- package/bin/paymentMethodDomain.js.map +1 -0
- package/bin/person.d.ts +410 -0
- package/bin/person.d.ts.map +1 -0
- package/bin/person.js +147 -0
- package/bin/person.js.map +1 -0
- package/bin/plan.d.ts +261 -0
- package/bin/plan.d.ts.map +1 -0
- package/bin/plan.js +114 -0
- package/bin/plan.js.map +1 -0
- package/bin/price.d.ts +296 -0
- package/bin/price.d.ts.map +1 -0
- package/bin/price.js +119 -0
- package/bin/price.js.map +1 -0
- package/bin/product.d.ts +253 -0
- package/bin/product.d.ts.map +1 -0
- package/bin/product.js +108 -0
- package/bin/product.js.map +1 -0
- package/bin/productFeature.d.ts +71 -0
- package/bin/productFeature.d.ts.map +1 -0
- package/bin/productFeature.js +84 -0
- package/bin/productFeature.js.map +1 -0
- package/bin/promotionCode.d.ts +167 -0
- package/bin/promotionCode.d.ts.map +1 -0
- package/bin/promotionCode.js +96 -0
- package/bin/promotionCode.js.map +1 -0
- package/bin/provider.d.ts +60 -0
- package/bin/provider.d.ts.map +1 -0
- package/bin/provider.js +80 -0
- package/bin/provider.js.map +1 -0
- package/bin/quote.d.ts +342 -0
- package/bin/quote.d.ts.map +1 -0
- package/bin/quote.js +134 -0
- package/bin/quote.js.map +1 -0
- package/bin/radarValueList.d.ts +123 -0
- package/bin/radarValueList.d.ts.map +1 -0
- package/bin/radarValueList.js +89 -0
- package/bin/radarValueList.js.map +1 -0
- package/bin/radarValueListItem.d.ts +93 -0
- package/bin/radarValueListItem.d.ts.map +1 -0
- package/bin/radarValueListItem.js +88 -0
- package/bin/radarValueListItem.js.map +1 -0
- package/bin/setupIntent.d.ts +476 -0
- package/bin/setupIntent.d.ts.map +1 -0
- package/bin/setupIntent.js +142 -0
- package/bin/setupIntent.js.map +1 -0
- package/bin/shippingRate.d.ts +156 -0
- package/bin/shippingRate.d.ts.map +1 -0
- package/bin/shippingRate.js +95 -0
- package/bin/shippingRate.js.map +1 -0
- package/bin/source.d.ts +295 -0
- package/bin/source.d.ts.map +1 -0
- package/bin/source.js +154 -0
- package/bin/source.js.map +1 -0
- package/bin/subscription.d.ts +634 -0
- package/bin/subscription.d.ts.map +1 -0
- package/bin/subscription.js +178 -0
- package/bin/subscription.js.map +1 -0
- package/bin/subscriptionItem.d.ts +277 -0
- package/bin/subscriptionItem.d.ts.map +1 -0
- package/bin/subscriptionItem.js +109 -0
- package/bin/subscriptionItem.js.map +1 -0
- package/bin/subscriptionSchedule.d.ts +243 -0
- package/bin/subscriptionSchedule.d.ts.map +1 -0
- package/bin/subscriptionSchedule.js +114 -0
- package/bin/subscriptionSchedule.js.map +1 -0
- package/bin/taxId.d.ts +131 -0
- package/bin/taxId.d.ts.map +1 -0
- package/bin/taxId.js +99 -0
- package/bin/taxId.js.map +1 -0
- package/bin/taxRate.d.ts +225 -0
- package/bin/taxRate.d.ts.map +1 -0
- package/bin/taxRate.js +113 -0
- package/bin/taxRate.js.map +1 -0
- package/bin/taxRegistration.d.ts +110 -0
- package/bin/taxRegistration.d.ts.map +1 -0
- package/bin/taxRegistration.js +95 -0
- package/bin/taxRegistration.js.map +1 -0
- package/bin/terminalConfiguration.d.ts +117 -0
- package/bin/terminalConfiguration.d.ts.map +1 -0
- package/bin/terminalConfiguration.js +106 -0
- package/bin/terminalConfiguration.js.map +1 -0
- package/bin/terminalLocation.d.ts +139 -0
- package/bin/terminalLocation.d.ts.map +1 -0
- package/bin/terminalLocation.js +90 -0
- package/bin/terminalLocation.js.map +1 -0
- package/bin/terminalReader.d.ts +160 -0
- package/bin/terminalReader.d.ts.map +1 -0
- package/bin/terminalReader.js +99 -0
- package/bin/terminalReader.js.map +1 -0
- package/bin/treasuryFinancialAccount.d.ts +195 -0
- package/bin/treasuryFinancialAccount.d.ts.map +1 -0
- package/bin/treasuryFinancialAccount.js +109 -0
- package/bin/treasuryFinancialAccount.js.map +1 -0
- package/bin/types/index.d.ts +4 -0
- package/bin/types/index.d.ts.map +1 -0
- package/bin/types/index.js +34 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +16586 -0
- package/bin/types/input.d.ts.map +1 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +16585 -0
- package/bin/types/output.d.ts.map +1 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +6 -0
- package/bin/utilities.d.ts.map +1 -0
- package/bin/utilities.js +152 -0
- package/bin/utilities.js.map +1 -0
- package/bin/v2coreEventDestination.d.ts +252 -0
- package/bin/v2coreEventDestination.d.ts.map +1 -0
- package/bin/v2coreEventDestination.js +117 -0
- package/bin/v2coreEventDestination.js.map +1 -0
- package/bin/webhookEndpoint.d.ts +163 -0
- package/bin/webhookEndpoint.d.ts.map +1 -0
- package/bin/webhookEndpoint.js +102 -0
- package/bin/webhookEndpoint.js.map +1 -0
- package/package.json +32 -3
package/bin/taxRate.d.ts
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
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 TaxRate extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing TaxRate 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?: TaxRateState, opts?: pulumi.CustomResourceOptions): TaxRate;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of TaxRate. 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 TaxRate;
|
|
20
|
+
/**
|
|
21
|
+
* Defaults to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`" pulumi-lang-hcl="`true`">`true`</span>. When set to <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`" pulumi-lang-hcl="`false`">`false`</span>, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
|
|
22
|
+
*/
|
|
23
|
+
readonly active: pulumi.Output<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
26
|
+
*/
|
|
27
|
+
readonly country: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
30
|
+
*/
|
|
31
|
+
readonly created: pulumi.Output<number>;
|
|
32
|
+
/**
|
|
33
|
+
* An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
|
|
34
|
+
*/
|
|
35
|
+
readonly description: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
|
|
38
|
+
*/
|
|
39
|
+
readonly displayName: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true,
|
|
42
|
+
* this percentage reflects the rate actually used to calculate tax based on the product's taxability
|
|
43
|
+
* and whether the user is registered to collect taxes in the corresponding jurisdiction.
|
|
44
|
+
*/
|
|
45
|
+
readonly effectivePercentage: pulumi.Output<number>;
|
|
46
|
+
/**
|
|
47
|
+
* The amount of the tax rate when the <span pulumi-lang-nodejs="`rateType`" pulumi-lang-dotnet="`RateType`" pulumi-lang-go="`rateType`" pulumi-lang-python="`rate_type`" pulumi-lang-yaml="`rateType`" pulumi-lang-java="`rateType`" pulumi-lang-hcl="`rate_type`">`rateType`</span> is <span pulumi-lang-nodejs="`flatAmount`" pulumi-lang-dotnet="`FlatAmount`" pulumi-lang-go="`flatAmount`" pulumi-lang-python="`flat_amount`" pulumi-lang-yaml="`flatAmount`" pulumi-lang-java="`flatAmount`" pulumi-lang-hcl="`flat_amount`">`flatAmount`</span>. Tax rates with <span pulumi-lang-nodejs="`rateType`" pulumi-lang-dotnet="`RateType`" pulumi-lang-go="`rateType`" pulumi-lang-python="`rate_type`" pulumi-lang-yaml="`rateType`" pulumi-lang-java="`rateType`" pulumi-lang-hcl="`rate_type`">`rateType`</span> <span pulumi-lang-nodejs="`percentage`" pulumi-lang-dotnet="`Percentage`" pulumi-lang-go="`percentage`" pulumi-lang-python="`percentage`" pulumi-lang-yaml="`percentage`" pulumi-lang-java="`percentage`" pulumi-lang-hcl="`percentage`">`percentage`</span> can vary based on the transaction, resulting in this field being <span pulumi-lang-nodejs="`null`" pulumi-lang-dotnet="`Null`" pulumi-lang-go="`null`" pulumi-lang-python="`null`" pulumi-lang-yaml="`null`" pulumi-lang-java="`null`" pulumi-lang-hcl="`null`">`null`</span>. This field exposes the amount and currency of the flat tax rate.
|
|
48
|
+
*/
|
|
49
|
+
readonly flatAmount: pulumi.Output<outputs.TaxRateFlatAmount>;
|
|
50
|
+
/**
|
|
51
|
+
* This specifies if the tax rate is inclusive or exclusive.
|
|
52
|
+
*/
|
|
53
|
+
readonly inclusive: pulumi.Output<boolean>;
|
|
54
|
+
/**
|
|
55
|
+
* The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
|
|
56
|
+
*/
|
|
57
|
+
readonly jurisdiction: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The level of the jurisdiction that imposes this tax rate. Will be <span pulumi-lang-nodejs="`null`" pulumi-lang-dotnet="`Null`" pulumi-lang-go="`null`" pulumi-lang-python="`null`" pulumi-lang-yaml="`null`" pulumi-lang-java="`null`" pulumi-lang-hcl="`null`">`null`</span> for manually defined tax rates.
|
|
60
|
+
*/
|
|
61
|
+
readonly jurisdictionLevel: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* If the object exists in live mode, the value is <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`" pulumi-lang-hcl="`true`">`true`</span>. If the object exists in test mode, the value is <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`" pulumi-lang-hcl="`false`">`false`</span>.
|
|
64
|
+
*/
|
|
65
|
+
readonly livemode: pulumi.Output<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
68
|
+
*/
|
|
69
|
+
readonly metadata: pulumi.Output<{
|
|
70
|
+
[key: string]: string;
|
|
71
|
+
}>;
|
|
72
|
+
/**
|
|
73
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
74
|
+
*/
|
|
75
|
+
readonly object: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
|
|
78
|
+
*/
|
|
79
|
+
readonly percentage: pulumi.Output<number>;
|
|
80
|
+
/**
|
|
81
|
+
* Indicates the type of tax rate applied to the taxable amount. This value can be <span pulumi-lang-nodejs="`null`" pulumi-lang-dotnet="`Null`" pulumi-lang-go="`null`" pulumi-lang-python="`null`" pulumi-lang-yaml="`null`" pulumi-lang-java="`null`" pulumi-lang-hcl="`null`">`null`</span> when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
|
|
82
|
+
*/
|
|
83
|
+
readonly rateType: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
|
|
86
|
+
*/
|
|
87
|
+
readonly state: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The high-level tax type, such as <span pulumi-lang-nodejs="`vat`" pulumi-lang-dotnet="`Vat`" pulumi-lang-go="`vat`" pulumi-lang-python="`vat`" pulumi-lang-yaml="`vat`" pulumi-lang-java="`vat`" pulumi-lang-hcl="`vat`">`vat`</span> or <span pulumi-lang-nodejs="`salesTax`" pulumi-lang-dotnet="`SalesTax`" pulumi-lang-go="`salesTax`" pulumi-lang-python="`sales_tax`" pulumi-lang-yaml="`salesTax`" pulumi-lang-java="`salesTax`" pulumi-lang-hcl="`sales_tax`">`salesTax`</span>.
|
|
90
|
+
*/
|
|
91
|
+
readonly taxType: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Create a TaxRate resource with the given unique name, arguments, and options.
|
|
94
|
+
*
|
|
95
|
+
* @param name The _unique_ name of the resource.
|
|
96
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
97
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
98
|
+
*/
|
|
99
|
+
constructor(name: string, args: TaxRateArgs, opts?: pulumi.CustomResourceOptions);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Input properties used for looking up and filtering TaxRate resources.
|
|
103
|
+
*/
|
|
104
|
+
export interface TaxRateState {
|
|
105
|
+
/**
|
|
106
|
+
* Defaults to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`" pulumi-lang-hcl="`true`">`true`</span>. When set to <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`" pulumi-lang-hcl="`false`">`false`</span>, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
|
|
107
|
+
*/
|
|
108
|
+
active?: pulumi.Input<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
111
|
+
*/
|
|
112
|
+
country?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
115
|
+
*/
|
|
116
|
+
created?: pulumi.Input<number>;
|
|
117
|
+
/**
|
|
118
|
+
* An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
|
|
119
|
+
*/
|
|
120
|
+
description?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
|
|
123
|
+
*/
|
|
124
|
+
displayName?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true,
|
|
127
|
+
* this percentage reflects the rate actually used to calculate tax based on the product's taxability
|
|
128
|
+
* and whether the user is registered to collect taxes in the corresponding jurisdiction.
|
|
129
|
+
*/
|
|
130
|
+
effectivePercentage?: pulumi.Input<number>;
|
|
131
|
+
/**
|
|
132
|
+
* The amount of the tax rate when the <span pulumi-lang-nodejs="`rateType`" pulumi-lang-dotnet="`RateType`" pulumi-lang-go="`rateType`" pulumi-lang-python="`rate_type`" pulumi-lang-yaml="`rateType`" pulumi-lang-java="`rateType`" pulumi-lang-hcl="`rate_type`">`rateType`</span> is <span pulumi-lang-nodejs="`flatAmount`" pulumi-lang-dotnet="`FlatAmount`" pulumi-lang-go="`flatAmount`" pulumi-lang-python="`flat_amount`" pulumi-lang-yaml="`flatAmount`" pulumi-lang-java="`flatAmount`" pulumi-lang-hcl="`flat_amount`">`flatAmount`</span>. Tax rates with <span pulumi-lang-nodejs="`rateType`" pulumi-lang-dotnet="`RateType`" pulumi-lang-go="`rateType`" pulumi-lang-python="`rate_type`" pulumi-lang-yaml="`rateType`" pulumi-lang-java="`rateType`" pulumi-lang-hcl="`rate_type`">`rateType`</span> <span pulumi-lang-nodejs="`percentage`" pulumi-lang-dotnet="`Percentage`" pulumi-lang-go="`percentage`" pulumi-lang-python="`percentage`" pulumi-lang-yaml="`percentage`" pulumi-lang-java="`percentage`" pulumi-lang-hcl="`percentage`">`percentage`</span> can vary based on the transaction, resulting in this field being <span pulumi-lang-nodejs="`null`" pulumi-lang-dotnet="`Null`" pulumi-lang-go="`null`" pulumi-lang-python="`null`" pulumi-lang-yaml="`null`" pulumi-lang-java="`null`" pulumi-lang-hcl="`null`">`null`</span>. This field exposes the amount and currency of the flat tax rate.
|
|
133
|
+
*/
|
|
134
|
+
flatAmount?: pulumi.Input<inputs.TaxRateFlatAmount>;
|
|
135
|
+
/**
|
|
136
|
+
* This specifies if the tax rate is inclusive or exclusive.
|
|
137
|
+
*/
|
|
138
|
+
inclusive?: pulumi.Input<boolean>;
|
|
139
|
+
/**
|
|
140
|
+
* The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
|
|
141
|
+
*/
|
|
142
|
+
jurisdiction?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* The level of the jurisdiction that imposes this tax rate. Will be <span pulumi-lang-nodejs="`null`" pulumi-lang-dotnet="`Null`" pulumi-lang-go="`null`" pulumi-lang-python="`null`" pulumi-lang-yaml="`null`" pulumi-lang-java="`null`" pulumi-lang-hcl="`null`">`null`</span> for manually defined tax rates.
|
|
145
|
+
*/
|
|
146
|
+
jurisdictionLevel?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* If the object exists in live mode, the value is <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`" pulumi-lang-hcl="`true`">`true`</span>. If the object exists in test mode, the value is <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`" pulumi-lang-hcl="`false`">`false`</span>.
|
|
149
|
+
*/
|
|
150
|
+
livemode?: pulumi.Input<boolean>;
|
|
151
|
+
/**
|
|
152
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
153
|
+
*/
|
|
154
|
+
metadata?: pulumi.Input<{
|
|
155
|
+
[key: string]: pulumi.Input<string>;
|
|
156
|
+
}>;
|
|
157
|
+
/**
|
|
158
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
159
|
+
*/
|
|
160
|
+
object?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
|
|
163
|
+
*/
|
|
164
|
+
percentage?: pulumi.Input<number>;
|
|
165
|
+
/**
|
|
166
|
+
* Indicates the type of tax rate applied to the taxable amount. This value can be <span pulumi-lang-nodejs="`null`" pulumi-lang-dotnet="`Null`" pulumi-lang-go="`null`" pulumi-lang-python="`null`" pulumi-lang-yaml="`null`" pulumi-lang-java="`null`" pulumi-lang-hcl="`null`">`null`</span> when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
|
|
167
|
+
*/
|
|
168
|
+
rateType?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
|
|
171
|
+
*/
|
|
172
|
+
state?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* The high-level tax type, such as <span pulumi-lang-nodejs="`vat`" pulumi-lang-dotnet="`Vat`" pulumi-lang-go="`vat`" pulumi-lang-python="`vat`" pulumi-lang-yaml="`vat`" pulumi-lang-java="`vat`" pulumi-lang-hcl="`vat`">`vat`</span> or <span pulumi-lang-nodejs="`salesTax`" pulumi-lang-dotnet="`SalesTax`" pulumi-lang-go="`salesTax`" pulumi-lang-python="`sales_tax`" pulumi-lang-yaml="`salesTax`" pulumi-lang-java="`salesTax`" pulumi-lang-hcl="`sales_tax`">`salesTax`</span>.
|
|
175
|
+
*/
|
|
176
|
+
taxType?: pulumi.Input<string>;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* The set of arguments for constructing a TaxRate resource.
|
|
180
|
+
*/
|
|
181
|
+
export interface TaxRateArgs {
|
|
182
|
+
/**
|
|
183
|
+
* Defaults to <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`" pulumi-lang-hcl="`true`">`true`</span>. When set to <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`" pulumi-lang-hcl="`false`">`false`</span>, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
|
|
184
|
+
*/
|
|
185
|
+
active?: pulumi.Input<boolean>;
|
|
186
|
+
/**
|
|
187
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
188
|
+
*/
|
|
189
|
+
country?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
|
|
192
|
+
*/
|
|
193
|
+
description?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
|
|
196
|
+
*/
|
|
197
|
+
displayName: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* This specifies if the tax rate is inclusive or exclusive.
|
|
200
|
+
*/
|
|
201
|
+
inclusive: pulumi.Input<boolean>;
|
|
202
|
+
/**
|
|
203
|
+
* The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
|
|
204
|
+
*/
|
|
205
|
+
jurisdiction?: pulumi.Input<string>;
|
|
206
|
+
/**
|
|
207
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
208
|
+
*/
|
|
209
|
+
metadata?: pulumi.Input<{
|
|
210
|
+
[key: string]: pulumi.Input<string>;
|
|
211
|
+
}>;
|
|
212
|
+
/**
|
|
213
|
+
* Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
|
|
214
|
+
*/
|
|
215
|
+
percentage: pulumi.Input<number>;
|
|
216
|
+
/**
|
|
217
|
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
|
|
218
|
+
*/
|
|
219
|
+
state?: pulumi.Input<string>;
|
|
220
|
+
/**
|
|
221
|
+
* The high-level tax type, such as <span pulumi-lang-nodejs="`vat`" pulumi-lang-dotnet="`Vat`" pulumi-lang-go="`vat`" pulumi-lang-python="`vat`" pulumi-lang-yaml="`vat`" pulumi-lang-java="`vat`" pulumi-lang-hcl="`vat`">`vat`</span> or <span pulumi-lang-nodejs="`salesTax`" pulumi-lang-dotnet="`SalesTax`" pulumi-lang-go="`salesTax`" pulumi-lang-python="`sales_tax`" pulumi-lang-yaml="`salesTax`" pulumi-lang-java="`salesTax`" pulumi-lang-hcl="`sales_tax`">`salesTax`</span>.
|
|
222
|
+
*/
|
|
223
|
+
taxType?: pulumi.Input<string>;
|
|
224
|
+
}
|
|
225
|
+
//# sourceMappingURL=taxRate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taxRate.d.ts","sourceRoot":"","sources":["../taxRate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,qBAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,OAAO;IAOhI;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,OAAO;IAOlD;;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ACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
|
package/bin/taxRate.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.TaxRate = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
class TaxRate extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing TaxRate resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name, id, state, opts) {
|
|
42
|
+
return new TaxRate(name, state, { ...opts, id: id });
|
|
43
|
+
}
|
|
44
|
+
/** @internal */
|
|
45
|
+
static __pulumiType = 'stripe:index/taxRate:TaxRate';
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of TaxRate. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj) {
|
|
51
|
+
if (obj === undefined || obj === null) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
return obj['__pulumiType'] === TaxRate.__pulumiType;
|
|
55
|
+
}
|
|
56
|
+
constructor(name, argsOrState, opts) {
|
|
57
|
+
let resourceInputs = {};
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
if (opts.id) {
|
|
60
|
+
const state = argsOrState;
|
|
61
|
+
resourceInputs["active"] = state?.active;
|
|
62
|
+
resourceInputs["country"] = state?.country;
|
|
63
|
+
resourceInputs["created"] = state?.created;
|
|
64
|
+
resourceInputs["description"] = state?.description;
|
|
65
|
+
resourceInputs["displayName"] = state?.displayName;
|
|
66
|
+
resourceInputs["effectivePercentage"] = state?.effectivePercentage;
|
|
67
|
+
resourceInputs["flatAmount"] = state?.flatAmount;
|
|
68
|
+
resourceInputs["inclusive"] = state?.inclusive;
|
|
69
|
+
resourceInputs["jurisdiction"] = state?.jurisdiction;
|
|
70
|
+
resourceInputs["jurisdictionLevel"] = state?.jurisdictionLevel;
|
|
71
|
+
resourceInputs["livemode"] = state?.livemode;
|
|
72
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
73
|
+
resourceInputs["object"] = state?.object;
|
|
74
|
+
resourceInputs["percentage"] = state?.percentage;
|
|
75
|
+
resourceInputs["rateType"] = state?.rateType;
|
|
76
|
+
resourceInputs["state"] = state?.state;
|
|
77
|
+
resourceInputs["taxType"] = state?.taxType;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
const args = argsOrState;
|
|
81
|
+
if (args?.displayName === undefined && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'displayName'");
|
|
83
|
+
}
|
|
84
|
+
if (args?.inclusive === undefined && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'inclusive'");
|
|
86
|
+
}
|
|
87
|
+
if (args?.percentage === undefined && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'percentage'");
|
|
89
|
+
}
|
|
90
|
+
resourceInputs["active"] = args?.active;
|
|
91
|
+
resourceInputs["country"] = args?.country;
|
|
92
|
+
resourceInputs["description"] = args?.description;
|
|
93
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
94
|
+
resourceInputs["inclusive"] = args?.inclusive;
|
|
95
|
+
resourceInputs["jurisdiction"] = args?.jurisdiction;
|
|
96
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
97
|
+
resourceInputs["percentage"] = args?.percentage;
|
|
98
|
+
resourceInputs["state"] = args?.state;
|
|
99
|
+
resourceInputs["taxType"] = args?.taxType;
|
|
100
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["effectivePercentage"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["flatAmount"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["jurisdictionLevel"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["livemode"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["object"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["rateType"] = undefined /*out*/;
|
|
107
|
+
}
|
|
108
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
109
|
+
super(TaxRate.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.TaxRate = TaxRate;
|
|
113
|
+
//# sourceMappingURL=taxRate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taxRate.js","sourceRoot":"","sources":["../taxRate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;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;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,8BAA8B,CAAC;IAErE;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAiFD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAA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AC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC1G,CAAC;;AAhKL,0BAiKC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 TaxRegistration extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing TaxRegistration 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?: TaxRegistrationState, opts?: pulumi.CustomResourceOptions): TaxRegistration;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of TaxRegistration. 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 TaxRegistration;
|
|
20
|
+
/**
|
|
21
|
+
* Time at which the registration becomes active. Measured in seconds since the Unix epoch.
|
|
22
|
+
*/
|
|
23
|
+
readonly activeFrom: pulumi.Output<number>;
|
|
24
|
+
/**
|
|
25
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
26
|
+
*/
|
|
27
|
+
readonly country: pulumi.Output<string>;
|
|
28
|
+
readonly countryOptions: pulumi.Output<outputs.TaxRegistrationCountryOptions>;
|
|
29
|
+
/**
|
|
30
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
31
|
+
*/
|
|
32
|
+
readonly created: pulumi.Output<number>;
|
|
33
|
+
/**
|
|
34
|
+
* If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. Measured in seconds since the Unix epoch.
|
|
35
|
+
*/
|
|
36
|
+
readonly expiresAt: pulumi.Output<number>;
|
|
37
|
+
/**
|
|
38
|
+
* If the object exists in live mode, the value is <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`" pulumi-lang-hcl="`true`">`true`</span>. If the object exists in test mode, the value is <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`" pulumi-lang-hcl="`false`">`false`</span>.
|
|
39
|
+
*/
|
|
40
|
+
readonly livemode: pulumi.Output<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
43
|
+
*/
|
|
44
|
+
readonly object: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The status of the registration. This field is present for convenience and can be deduced from <span pulumi-lang-nodejs="`activeFrom`" pulumi-lang-dotnet="`ActiveFrom`" pulumi-lang-go="`activeFrom`" pulumi-lang-python="`active_from`" pulumi-lang-yaml="`activeFrom`" pulumi-lang-java="`activeFrom`" pulumi-lang-hcl="`active_from`">`activeFrom`</span> and <span pulumi-lang-nodejs="`expiresAt`" pulumi-lang-dotnet="`ExpiresAt`" pulumi-lang-go="`expiresAt`" pulumi-lang-python="`expires_at`" pulumi-lang-yaml="`expiresAt`" pulumi-lang-java="`expiresAt`" pulumi-lang-hcl="`expires_at`">`expiresAt`</span>.
|
|
47
|
+
*/
|
|
48
|
+
readonly status: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Create a TaxRegistration resource with the given unique name, arguments, and options.
|
|
51
|
+
*
|
|
52
|
+
* @param name The _unique_ name of the resource.
|
|
53
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
54
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
55
|
+
*/
|
|
56
|
+
constructor(name: string, args: TaxRegistrationArgs, opts?: pulumi.CustomResourceOptions);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Input properties used for looking up and filtering TaxRegistration resources.
|
|
60
|
+
*/
|
|
61
|
+
export interface TaxRegistrationState {
|
|
62
|
+
/**
|
|
63
|
+
* Time at which the registration becomes active. Measured in seconds since the Unix epoch.
|
|
64
|
+
*/
|
|
65
|
+
activeFrom?: pulumi.Input<number>;
|
|
66
|
+
/**
|
|
67
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
68
|
+
*/
|
|
69
|
+
country?: pulumi.Input<string>;
|
|
70
|
+
countryOptions?: pulumi.Input<inputs.TaxRegistrationCountryOptions>;
|
|
71
|
+
/**
|
|
72
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
73
|
+
*/
|
|
74
|
+
created?: pulumi.Input<number>;
|
|
75
|
+
/**
|
|
76
|
+
* If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. Measured in seconds since the Unix epoch.
|
|
77
|
+
*/
|
|
78
|
+
expiresAt?: pulumi.Input<number>;
|
|
79
|
+
/**
|
|
80
|
+
* If the object exists in live mode, the value is <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`" pulumi-lang-hcl="`true`">`true`</span>. If the object exists in test mode, the value is <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`" pulumi-lang-hcl="`false`">`false`</span>.
|
|
81
|
+
*/
|
|
82
|
+
livemode?: pulumi.Input<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
85
|
+
*/
|
|
86
|
+
object?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The status of the registration. This field is present for convenience and can be deduced from <span pulumi-lang-nodejs="`activeFrom`" pulumi-lang-dotnet="`ActiveFrom`" pulumi-lang-go="`activeFrom`" pulumi-lang-python="`active_from`" pulumi-lang-yaml="`activeFrom`" pulumi-lang-java="`activeFrom`" pulumi-lang-hcl="`active_from`">`activeFrom`</span> and <span pulumi-lang-nodejs="`expiresAt`" pulumi-lang-dotnet="`ExpiresAt`" pulumi-lang-go="`expiresAt`" pulumi-lang-python="`expires_at`" pulumi-lang-yaml="`expiresAt`" pulumi-lang-java="`expiresAt`" pulumi-lang-hcl="`expires_at`">`expiresAt`</span>.
|
|
89
|
+
*/
|
|
90
|
+
status?: pulumi.Input<string>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The set of arguments for constructing a TaxRegistration resource.
|
|
94
|
+
*/
|
|
95
|
+
export interface TaxRegistrationArgs {
|
|
96
|
+
/**
|
|
97
|
+
* Time at which the registration becomes active. Measured in seconds since the Unix epoch.
|
|
98
|
+
*/
|
|
99
|
+
activeFrom: pulumi.Input<number>;
|
|
100
|
+
/**
|
|
101
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
102
|
+
*/
|
|
103
|
+
country: pulumi.Input<string>;
|
|
104
|
+
countryOptions: pulumi.Input<inputs.TaxRegistrationCountryOptions>;
|
|
105
|
+
/**
|
|
106
|
+
* If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. Measured in seconds since the Unix epoch.
|
|
107
|
+
*/
|
|
108
|
+
expiresAt?: pulumi.Input<number>;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=taxRegistration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taxRegistration.d.ts","sourceRoot":"","sources":["../taxRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,qBAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,eAAe;IAOhJ;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,eAAe;IAO1D;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvD,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC7F;;OAEG;IACH,SAAgC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/D;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzD;;OAEG;IACH,SAAgC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO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nE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.TaxRegistration = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
class TaxRegistration extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing TaxRegistration resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name, id, state, opts) {
|
|
42
|
+
return new TaxRegistration(name, state, { ...opts, id: id });
|
|
43
|
+
}
|
|
44
|
+
/** @internal */
|
|
45
|
+
static __pulumiType = 'stripe:index/taxRegistration:TaxRegistration';
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of TaxRegistration. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj) {
|
|
51
|
+
if (obj === undefined || obj === null) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
return obj['__pulumiType'] === TaxRegistration.__pulumiType;
|
|
55
|
+
}
|
|
56
|
+
constructor(name, argsOrState, opts) {
|
|
57
|
+
let resourceInputs = {};
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
if (opts.id) {
|
|
60
|
+
const state = argsOrState;
|
|
61
|
+
resourceInputs["activeFrom"] = state?.activeFrom;
|
|
62
|
+
resourceInputs["country"] = state?.country;
|
|
63
|
+
resourceInputs["countryOptions"] = state?.countryOptions;
|
|
64
|
+
resourceInputs["created"] = state?.created;
|
|
65
|
+
resourceInputs["expiresAt"] = state?.expiresAt;
|
|
66
|
+
resourceInputs["livemode"] = state?.livemode;
|
|
67
|
+
resourceInputs["object"] = state?.object;
|
|
68
|
+
resourceInputs["status"] = state?.status;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
const args = argsOrState;
|
|
72
|
+
if (args?.activeFrom === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'activeFrom'");
|
|
74
|
+
}
|
|
75
|
+
if (args?.country === undefined && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'country'");
|
|
77
|
+
}
|
|
78
|
+
if (args?.countryOptions === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'countryOptions'");
|
|
80
|
+
}
|
|
81
|
+
resourceInputs["activeFrom"] = args?.activeFrom;
|
|
82
|
+
resourceInputs["country"] = args?.country;
|
|
83
|
+
resourceInputs["countryOptions"] = args?.countryOptions;
|
|
84
|
+
resourceInputs["expiresAt"] = args?.expiresAt;
|
|
85
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["livemode"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["object"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
89
|
+
}
|
|
90
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
91
|
+
super(TaxRegistration.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.TaxRegistration = TaxRegistration;
|
|
95
|
+
//# sourceMappingURL=taxRegistration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taxRegistration.js","sourceRoot":"","sources":["../taxRegistration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,gBAAgB;IACT,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