@lshay-provider/stripe 0.3.0 → 0.3.1
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/bin/applePayDomain.d.ts +12 -4
- package/bin/applePayDomain.d.ts.map +1 -1
- package/bin/applePayDomain.js +10 -0
- package/bin/applePayDomain.js.map +1 -1
- package/bin/appsInstall.d.ts +201 -0
- package/bin/appsInstall.d.ts.map +1 -0
- package/bin/appsInstall.js +121 -0
- package/bin/appsInstall.js.map +1 -0
- package/bin/billingAlert.d.ts +15 -7
- package/bin/billingAlert.d.ts.map +1 -1
- package/bin/billingAlert.js +10 -0
- package/bin/billingAlert.js.map +1 -1
- package/bin/billingCreditGrant.d.ts +32 -24
- package/bin/billingCreditGrant.d.ts.map +1 -1
- package/bin/billingCreditGrant.js +10 -0
- package/bin/billingCreditGrant.js.map +1 -1
- package/bin/billingFeedbackOption.d.ts +85 -0
- package/bin/billingFeedbackOption.d.ts.map +1 -0
- package/bin/billingFeedbackOption.js +93 -0
- package/bin/billingFeedbackOption.js.map +1 -0
- package/bin/billingMeter.d.ts +24 -16
- package/bin/billingMeter.d.ts.map +1 -1
- package/bin/billingMeter.js +10 -0
- package/bin/billingMeter.js.map +1 -1
- package/bin/billingPortalConfiguration.d.ts +29 -21
- package/bin/billingPortalConfiguration.d.ts.map +1 -1
- package/bin/billingPortalConfiguration.js +10 -0
- package/bin/billingPortalConfiguration.js.map +1 -1
- package/bin/charge.d.ts +77 -69
- package/bin/charge.d.ts.map +1 -1
- package/bin/charge.js +10 -0
- package/bin/charge.js.map +1 -1
- package/bin/climateOrder.d.ts +37 -29
- package/bin/climateOrder.d.ts.map +1 -1
- package/bin/climateOrder.js +10 -0
- package/bin/climateOrder.js.map +1 -1
- package/bin/coupon.d.ts +47 -27
- package/bin/coupon.d.ts.map +1 -1
- package/bin/coupon.js +12 -0
- package/bin/coupon.js.map +1 -1
- package/bin/creditNote.d.ts +52 -44
- package/bin/creditNote.d.ts.map +1 -1
- package/bin/creditNote.js +10 -0
- package/bin/creditNote.js.map +1 -1
- package/bin/customer.d.ts +65 -57
- package/bin/customer.d.ts.map +1 -1
- package/bin/customer.js +10 -0
- package/bin/customer.js.map +1 -1
- package/bin/customerBalanceTransaction.d.ts +23 -15
- package/bin/customerBalanceTransaction.d.ts.map +1 -1
- package/bin/customerBalanceTransaction.js +10 -0
- package/bin/customerBalanceTransaction.js.map +1 -1
- package/bin/entitlementsFeature.d.ts +16 -8
- package/bin/entitlementsFeature.d.ts.map +1 -1
- package/bin/entitlementsFeature.js +10 -0
- package/bin/entitlementsFeature.js.map +1 -1
- package/bin/file.d.ts +23 -15
- package/bin/file.d.ts.map +1 -1
- package/bin/file.js +10 -0
- package/bin/file.js.map +1 -1
- package/bin/fileLink.d.ts +18 -10
- package/bin/fileLink.d.ts.map +1 -1
- package/bin/fileLink.js +10 -0
- package/bin/fileLink.js.map +1 -1
- package/bin/index.d.ts +39 -0
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +67 -2
- package/bin/index.js.map +1 -1
- package/bin/invoice.d.ts +124 -114
- package/bin/invoice.d.ts.map +1 -1
- package/bin/invoice.js +12 -0
- package/bin/invoice.js.map +1 -1
- package/bin/invoiceItem.d.ts +74 -46
- package/bin/invoiceItem.d.ts.map +1 -1
- package/bin/invoiceItem.js +14 -0
- package/bin/invoiceItem.js.map +1 -1
- package/bin/issuingCard.d.ts +46 -38
- package/bin/issuingCard.d.ts.map +1 -1
- package/bin/issuingCard.js +10 -0
- package/bin/issuingCard.js.map +1 -1
- package/bin/issuingCardholder.d.ts +36 -28
- package/bin/issuingCardholder.d.ts.map +1 -1
- package/bin/issuingCardholder.js +10 -0
- package/bin/issuingCardholder.js.map +1 -1
- package/bin/issuingDispute.d.ts +24 -16
- package/bin/issuingDispute.d.ts.map +1 -1
- package/bin/issuingDispute.js +10 -0
- package/bin/issuingDispute.js.map +1 -1
- package/bin/issuingPersonalizationDesign.d.ts +28 -20
- package/bin/issuingPersonalizationDesign.d.ts.map +1 -1
- package/bin/issuingPersonalizationDesign.js +10 -0
- package/bin/issuingPersonalizationDesign.js.map +1 -1
- package/bin/package.json +6 -7
- package/bin/paymentIntent.d.ts +108 -84
- package/bin/paymentIntent.d.ts.map +1 -1
- package/bin/paymentIntent.js +14 -0
- package/bin/paymentIntent.js.map +1 -1
- package/bin/paymentLink.d.ts +78 -70
- package/bin/paymentLink.d.ts.map +1 -1
- package/bin/paymentLink.js +10 -0
- package/bin/paymentLink.js.map +1 -1
- package/bin/paymentMethod.d.ts +79 -62
- package/bin/paymentMethod.d.ts.map +1 -1
- package/bin/paymentMethod.js +16 -0
- package/bin/paymentMethod.js.map +1 -1
- package/bin/paymentMethodConfiguration.d.ts +142 -128
- package/bin/paymentMethodConfiguration.d.ts.map +1 -1
- package/bin/paymentMethodConfiguration.js +14 -0
- package/bin/paymentMethodConfiguration.js.map +1 -1
- package/bin/paymentMethodDomain.d.ts +20 -12
- package/bin/paymentMethodDomain.d.ts.map +1 -1
- package/bin/paymentMethodDomain.js +10 -0
- package/bin/paymentMethodDomain.js.map +1 -1
- package/bin/person.d.ts +90 -64
- package/bin/person.d.ts.map +1 -1
- package/bin/person.js +10 -0
- package/bin/person.js.map +1 -1
- package/bin/plan.d.ts +53 -33
- package/bin/plan.d.ts.map +1 -1
- package/bin/plan.js +12 -0
- package/bin/plan.js.map +1 -1
- package/bin/price.d.ts +50 -42
- package/bin/price.d.ts.map +1 -1
- package/bin/price.js +10 -0
- package/bin/price.js.map +1 -1
- package/bin/product.d.ts +65 -33
- package/bin/product.d.ts.map +1 -1
- package/bin/product.js +14 -0
- package/bin/product.js.map +1 -1
- package/bin/productCatalogTrialOffer.d.ts +105 -0
- package/bin/productCatalogTrialOffer.d.ts.map +1 -0
- package/bin/productCatalogTrialOffer.js +103 -0
- package/bin/productCatalogTrialOffer.js.map +1 -0
- package/bin/productFeature.d.ts +21 -4
- package/bin/productFeature.d.ts.map +1 -1
- package/bin/productFeature.js +10 -0
- package/bin/productFeature.js.map +1 -1
- package/bin/promotionCode.d.ts +30 -22
- package/bin/promotionCode.d.ts.map +1 -1
- package/bin/promotionCode.js +10 -0
- package/bin/promotionCode.js.map +1 -1
- package/bin/provider.d.ts +2 -2
- package/bin/provider.d.ts.map +1 -1
- package/bin/quote.d.ts +60 -52
- package/bin/quote.d.ts.map +1 -1
- package/bin/quote.js +10 -0
- package/bin/quote.js.map +1 -1
- package/bin/radarValueList.d.ts +19 -11
- package/bin/radarValueList.d.ts.map +1 -1
- package/bin/radarValueList.js +10 -0
- package/bin/radarValueList.js.map +1 -1
- package/bin/radarValueListItem.d.ts +14 -6
- package/bin/radarValueListItem.d.ts.map +1 -1
- package/bin/radarValueListItem.js +10 -0
- package/bin/radarValueListItem.js.map +1 -1
- package/bin/setupIntent.d.ts +75 -59
- package/bin/setupIntent.d.ts.map +1 -1
- package/bin/setupIntent.js +13 -1
- package/bin/setupIntent.js.map +1 -1
- package/bin/shippingRate.d.ts +26 -18
- package/bin/shippingRate.d.ts.map +1 -1
- package/bin/shippingRate.js +10 -0
- package/bin/shippingRate.js.map +1 -1
- package/bin/source.d.ts +64 -56
- package/bin/source.d.ts.map +1 -1
- package/bin/source.js +10 -0
- package/bin/source.js.map +1 -1
- package/bin/subscription.d.ts +114 -98
- package/bin/subscription.d.ts.map +1 -1
- package/bin/subscription.js +12 -0
- package/bin/subscription.js.map +1 -1
- package/bin/subscriptionItem.d.ts +57 -37
- package/bin/subscriptionItem.d.ts.map +1 -1
- package/bin/subscriptionItem.js +12 -0
- package/bin/subscriptionItem.js.map +1 -1
- package/bin/subscriptionSchedule.d.ts +53 -33
- package/bin/subscriptionSchedule.d.ts.map +1 -1
- package/bin/subscriptionSchedule.js +12 -0
- package/bin/subscriptionSchedule.js.map +1 -1
- package/bin/taxId.d.ts +21 -13
- package/bin/taxId.d.ts.map +1 -1
- package/bin/taxId.js +10 -0
- package/bin/taxId.js.map +1 -1
- package/bin/taxLocation.d.ts +90 -0
- package/bin/taxLocation.d.ts.map +1 -0
- package/bin/taxLocation.js +96 -0
- package/bin/taxLocation.js.map +1 -0
- package/bin/taxRate.d.ts +32 -24
- package/bin/taxRate.d.ts.map +1 -1
- package/bin/taxRate.js +10 -0
- package/bin/taxRate.js.map +1 -1
- package/bin/taxRegistration.d.ts +17 -9
- package/bin/taxRegistration.d.ts.map +1 -1
- package/bin/taxRegistration.js +10 -0
- package/bin/taxRegistration.js.map +1 -1
- package/bin/terminalConfiguration.d.ts +47 -33
- package/bin/terminalConfiguration.d.ts.map +1 -1
- package/bin/terminalConfiguration.js +14 -0
- package/bin/terminalConfiguration.js.map +1 -1
- package/bin/terminalLocation.d.ts +26 -18
- package/bin/terminalLocation.d.ts.map +1 -1
- package/bin/terminalLocation.js +10 -0
- package/bin/terminalLocation.js.map +1 -1
- package/bin/terminalReader.d.ts +25 -17
- package/bin/terminalReader.d.ts.map +1 -1
- package/bin/terminalReader.js +10 -0
- package/bin/terminalReader.js.map +1 -1
- package/bin/threeDSecureAuthentication.d.ts +297 -0
- package/bin/threeDSecureAuthentication.d.ts.map +1 -0
- package/bin/threeDSecureAuthentication.js +132 -0
- package/bin/threeDSecureAuthentication.js.map +1 -0
- package/bin/treasuryFinancialAccount.d.ts +29 -21
- package/bin/treasuryFinancialAccount.d.ts.map +1 -1
- package/bin/treasuryFinancialAccount.js +10 -0
- package/bin/treasuryFinancialAccount.js.map +1 -1
- package/bin/types/input.d.ts +5787 -3630
- package/bin/types/input.d.ts.map +1 -1
- package/bin/types/output.d.ts +2538 -381
- package/bin/types/output.d.ts.map +1 -1
- package/bin/utilities.d.ts.map +1 -1
- package/bin/utilities.js +8 -35
- package/bin/utilities.js.map +1 -1
- package/bin/v2coreEventDestination.d.ts +76 -68
- package/bin/v2coreEventDestination.d.ts.map +1 -1
- package/bin/v2coreEventDestination.js +10 -0
- package/bin/v2coreEventDestination.js.map +1 -1
- package/bin/v2coreVaultGbBankAccount.d.ts +182 -0
- package/bin/v2coreVaultGbBankAccount.d.ts.map +1 -0
- package/bin/v2coreVaultGbBankAccount.js +111 -0
- package/bin/v2coreVaultGbBankAccount.js.map +1 -0
- package/bin/v2coreVaultUsBankAccount.d.ts +193 -0
- package/bin/v2coreVaultUsBankAccount.d.ts.map +1 -0
- package/bin/v2coreVaultUsBankAccount.js +118 -0
- package/bin/v2coreVaultUsBankAccount.js.map +1 -0
- package/bin/v2moneyManagementFinancialAddress.d.ts +117 -0
- package/bin/v2moneyManagementFinancialAddress.d.ts.map +1 -0
- package/bin/v2moneyManagementFinancialAddress.js +102 -0
- package/bin/v2moneyManagementFinancialAddress.js.map +1 -0
- package/bin/v2moneyManagementInboundTransfer.d.ts +127 -0
- package/bin/v2moneyManagementInboundTransfer.d.ts.map +1 -0
- package/bin/v2moneyManagementInboundTransfer.js +105 -0
- package/bin/v2moneyManagementInboundTransfer.js.map +1 -0
- package/bin/v2moneyManagementOutboundPayment.d.ts +237 -0
- package/bin/v2moneyManagementOutboundPayment.d.ts.map +1 -0
- package/bin/v2moneyManagementOutboundPayment.js +125 -0
- package/bin/v2moneyManagementOutboundPayment.js.map +1 -0
- package/bin/v2moneyManagementOutboundSetupIntent.d.ts +121 -0
- package/bin/v2moneyManagementOutboundSetupIntent.d.ts.map +1 -0
- package/bin/v2moneyManagementOutboundSetupIntent.js +96 -0
- package/bin/v2moneyManagementOutboundSetupIntent.js.map +1 -0
- package/bin/v2moneyManagementPayoutIntent.d.ts +246 -0
- package/bin/v2moneyManagementPayoutIntent.d.ts.map +1 -0
- package/bin/v2moneyManagementPayoutIntent.js +127 -0
- package/bin/v2moneyManagementPayoutIntent.js.map +1 -0
- package/bin/v2moneyManagementRecipientVerification.d.ts +155 -0
- package/bin/v2moneyManagementRecipientVerification.d.ts.map +1 -0
- package/bin/v2moneyManagementRecipientVerification.js +107 -0
- package/bin/v2moneyManagementRecipientVerification.js.map +1 -0
- package/bin/webhookEndpoint.d.ts +27 -19
- package/bin/webhookEndpoint.d.ts.map +1 -1
- package/bin/webhookEndpoint.js +10 -0
- package/bin/webhookEndpoint.js.map +1 -1
- package/package.json +6 -7
package/bin/subscription.d.ts
CHANGED
|
@@ -12,6 +12,14 @@ export declare class Subscription extends pulumi.CustomResource {
|
|
|
12
12
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
13
|
*/
|
|
14
14
|
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SubscriptionState, opts?: pulumi.CustomResourceOptions): Subscription;
|
|
15
|
+
/**
|
|
16
|
+
* Check whether an existing Subscription resource with the given ID exists.
|
|
17
|
+
*
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
19
|
+
* @param state Any extra arguments used during the lookup.
|
|
20
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
21
|
+
*/
|
|
22
|
+
static exists(id: pulumi.Input<string>, state?: SubscriptionState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
|
|
15
23
|
/**
|
|
16
24
|
* Returns true if the given object is an instance of Subscription. This is designed to work even
|
|
17
25
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
@@ -202,13 +210,17 @@ export declare class Subscription extends pulumi.CustomResource {
|
|
|
202
210
|
*
|
|
203
211
|
* A subscription that is currently in a trial period is <span pulumi-lang-nodejs="`trialing`" pulumi-lang-dotnet="`Trialing`" pulumi-lang-go="`trialing`" pulumi-lang-python="`trialing`" pulumi-lang-yaml="`trialing`" pulumi-lang-java="`trialing`" pulumi-lang-hcl="`trialing`">`trialing`</span> and moves to <span pulumi-lang-nodejs="`active`" pulumi-lang-dotnet="`Active`" pulumi-lang-go="`active`" pulumi-lang-python="`active`" pulumi-lang-yaml="`active`" pulumi-lang-java="`active`" pulumi-lang-hcl="`active`">`active`</span> when the trial period is over.
|
|
204
212
|
*
|
|
205
|
-
* A subscription can
|
|
213
|
+
* A subscription can enter a <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`" pulumi-lang-hcl="`paused`">`paused`</span> status in several ways, including [when a trial ends without a payment method](https://docs.stripe.com/billing/subscriptions/trials/free-trials#create-free-trials-without-payment) or when you pause it using the [pause endpoint](https://docs.stripe.com/api/subscriptions/pause). A <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`" pulumi-lang-hcl="`paused`">`paused`</span> subscription doesn't advance to a new billing period or generate invoices until it resumes. The <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`" pulumi-lang-hcl="`paused`">`paused`</span> status is different from [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged.
|
|
206
214
|
*
|
|
207
215
|
* If subscription `collection_method=charge_automatically`, it becomes <span pulumi-lang-nodejs="`pastDue`" pulumi-lang-dotnet="`PastDue`" pulumi-lang-go="`pastDue`" pulumi-lang-python="`past_due`" pulumi-lang-yaml="`pastDue`" pulumi-lang-java="`pastDue`" pulumi-lang-hcl="`past_due`">`pastDue`</span> when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become <span pulumi-lang-nodejs="`canceled`" pulumi-lang-dotnet="`Canceled`" pulumi-lang-go="`canceled`" pulumi-lang-python="`canceled`" pulumi-lang-yaml="`canceled`" pulumi-lang-java="`canceled`" pulumi-lang-hcl="`canceled`">`canceled`</span> or <span pulumi-lang-nodejs="`unpaid`" pulumi-lang-dotnet="`Unpaid`" pulumi-lang-go="`unpaid`" pulumi-lang-python="`unpaid`" pulumi-lang-yaml="`unpaid`" pulumi-lang-java="`unpaid`" pulumi-lang-hcl="`unpaid`">`unpaid`</span> (depending on your subscriptions settings).
|
|
208
216
|
*
|
|
209
217
|
* If subscription `collection_method=send_invoice` it becomes <span pulumi-lang-nodejs="`pastDue`" pulumi-lang-dotnet="`PastDue`" pulumi-lang-go="`pastDue`" pulumi-lang-python="`past_due`" pulumi-lang-yaml="`pastDue`" pulumi-lang-java="`pastDue`" pulumi-lang-hcl="`past_due`">`pastDue`</span> when its invoice is not paid by the due date, and <span pulumi-lang-nodejs="`canceled`" pulumi-lang-dotnet="`Canceled`" pulumi-lang-go="`canceled`" pulumi-lang-python="`canceled`" pulumi-lang-yaml="`canceled`" pulumi-lang-java="`canceled`" pulumi-lang-hcl="`canceled`">`canceled`</span> or <span pulumi-lang-nodejs="`unpaid`" pulumi-lang-dotnet="`Unpaid`" pulumi-lang-go="`unpaid`" pulumi-lang-python="`unpaid`" pulumi-lang-yaml="`unpaid`" pulumi-lang-java="`unpaid`" pulumi-lang-hcl="`unpaid`">`unpaid`</span> if it is still not paid by an additional deadline after that. Note that when a subscription has a status of <span pulumi-lang-nodejs="`unpaid`" pulumi-lang-dotnet="`Unpaid`" pulumi-lang-go="`unpaid`" pulumi-lang-python="`unpaid`" pulumi-lang-yaml="`unpaid`" pulumi-lang-java="`unpaid`" pulumi-lang-hcl="`unpaid`">`unpaid`</span>, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
|
|
210
218
|
*/
|
|
211
219
|
readonly status: pulumi.Output<string>;
|
|
220
|
+
/**
|
|
221
|
+
* Describes changes to the subscription's status.
|
|
222
|
+
*/
|
|
223
|
+
readonly statusDetails: pulumi.Output<outputs.SubscriptionStatusDetails>;
|
|
212
224
|
/**
|
|
213
225
|
* ID of the test clock this subscription belongs to.
|
|
214
226
|
*/
|
|
@@ -223,12 +235,12 @@ export declare class Subscription extends pulumi.CustomResource {
|
|
|
223
235
|
readonly trialEnd: pulumi.Output<number>;
|
|
224
236
|
/**
|
|
225
237
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
226
|
-
* Indicates if a plan's <span pulumi-lang-nodejs="`trialPeriodDays`" pulumi-lang-dotnet="`TrialPeriodDays`" pulumi-lang-go="`trialPeriodDays`" pulumi-lang-python="`trial_period_days`" pulumi-lang-yaml="`trialPeriodDays`" pulumi-lang-java="`trialPeriodDays`" pulumi-lang-hcl="`trial_period_days`">`trialPeriodDays`</span> should be applied to the subscription. Setting <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> per subscription is preferred, and this defaults 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>. Setting this flag 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> together with <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> is not allowed. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials) to learn more.
|
|
238
|
+
* Indicates if a plan's <span pulumi-lang-nodejs="`trialPeriodDays`" pulumi-lang-dotnet="`TrialPeriodDays`" pulumi-lang-go="`trialPeriodDays`" pulumi-lang-python="`trial_period_days`" pulumi-lang-yaml="`trialPeriodDays`" pulumi-lang-java="`trialPeriodDays`" pulumi-lang-hcl="`trial_period_days`">`trialPeriodDays`</span> should be applied to the subscription. Setting <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> per subscription is preferred, and this defaults 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>. Setting this flag 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> together with <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> is not allowed. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials/free-trials) to learn more.
|
|
227
239
|
*/
|
|
228
240
|
readonly trialFromPlan: pulumi.Output<boolean | undefined>;
|
|
229
241
|
/**
|
|
230
242
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
231
|
-
* Integer representing the number of trial period days before the customer is charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials) to learn more.
|
|
243
|
+
* Integer representing the number of trial period days before the customer is charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials/free-trials) to learn more.
|
|
232
244
|
*/
|
|
233
245
|
readonly trialPeriodDays: pulumi.Output<number | undefined>;
|
|
234
246
|
/**
|
|
@@ -256,180 +268,180 @@ export interface SubscriptionState {
|
|
|
256
268
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
257
269
|
* A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. You may pass up to 20 items.
|
|
258
270
|
*/
|
|
259
|
-
addInvoiceItems?: pulumi.Input<pulumi.Input<inputs.SubscriptionAddInvoiceItem>[]>;
|
|
271
|
+
addInvoiceItems?: pulumi.Input<pulumi.Input<inputs.SubscriptionAddInvoiceItem>[] | undefined>;
|
|
260
272
|
/**
|
|
261
273
|
* ID of the Connect Application that created the subscription.
|
|
262
274
|
*/
|
|
263
|
-
application?: pulumi.Input<string>;
|
|
275
|
+
application?: pulumi.Input<string | undefined>;
|
|
264
276
|
/**
|
|
265
277
|
* A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account.
|
|
266
278
|
*/
|
|
267
|
-
applicationFeePercent?: pulumi.Input<number>;
|
|
268
|
-
automaticTax?: pulumi.Input<inputs.SubscriptionAutomaticTax>;
|
|
279
|
+
applicationFeePercent?: pulumi.Input<number | undefined>;
|
|
280
|
+
automaticTax?: pulumi.Input<inputs.SubscriptionAutomaticTax | undefined>;
|
|
269
281
|
/**
|
|
270
282
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
271
283
|
* A past timestamp to backdate the subscription's start date to. If set, the first invoice will contain line items for the timespan between the start date and the current time. Can be combined with trials and the billing cycle anchor.
|
|
272
284
|
*/
|
|
273
|
-
backdateStartDate?: pulumi.Input<number>;
|
|
285
|
+
backdateStartDate?: pulumi.Input<number | undefined>;
|
|
274
286
|
/**
|
|
275
287
|
* The reference point that aligns future [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle) dates. It sets the day of week for <span pulumi-lang-nodejs="`week`" pulumi-lang-dotnet="`Week`" pulumi-lang-go="`week`" pulumi-lang-python="`week`" pulumi-lang-yaml="`week`" pulumi-lang-java="`week`" pulumi-lang-hcl="`week`">`week`</span> intervals, the day of month for <span pulumi-lang-nodejs="`month`" pulumi-lang-dotnet="`Month`" pulumi-lang-go="`month`" pulumi-lang-python="`month`" pulumi-lang-yaml="`month`" pulumi-lang-java="`month`" pulumi-lang-hcl="`month`">`month`</span> and <span pulumi-lang-nodejs="`year`" pulumi-lang-dotnet="`Year`" pulumi-lang-go="`year`" pulumi-lang-python="`year`" pulumi-lang-yaml="`year`" pulumi-lang-java="`year`" pulumi-lang-hcl="`year`">`year`</span> intervals, and the month of year for <span pulumi-lang-nodejs="`year`" pulumi-lang-dotnet="`Year`" pulumi-lang-go="`year`" pulumi-lang-python="`year`" pulumi-lang-yaml="`year`" pulumi-lang-java="`year`" pulumi-lang-hcl="`year`">`year`</span> intervals. The timestamp is in UTC format.
|
|
276
288
|
*/
|
|
277
|
-
billingCycleAnchor?: pulumi.Input<number>;
|
|
289
|
+
billingCycleAnchor?: pulumi.Input<number | undefined>;
|
|
278
290
|
/**
|
|
279
291
|
* The fixed values used to calculate the <span pulumi-lang-nodejs="`billingCycleAnchor`" pulumi-lang-dotnet="`BillingCycleAnchor`" pulumi-lang-go="`billingCycleAnchor`" pulumi-lang-python="`billing_cycle_anchor`" pulumi-lang-yaml="`billingCycleAnchor`" pulumi-lang-java="`billingCycleAnchor`" pulumi-lang-hcl="`billing_cycle_anchor`">`billingCycleAnchor`</span>.
|
|
280
292
|
*/
|
|
281
|
-
billingCycleAnchorConfig?: pulumi.Input<inputs.SubscriptionBillingCycleAnchorConfig>;
|
|
293
|
+
billingCycleAnchorConfig?: pulumi.Input<inputs.SubscriptionBillingCycleAnchorConfig | undefined>;
|
|
282
294
|
/**
|
|
283
295
|
* The billing mode of the subscription.
|
|
284
296
|
*/
|
|
285
|
-
billingMode?: pulumi.Input<inputs.SubscriptionBillingMode>;
|
|
297
|
+
billingMode?: pulumi.Input<inputs.SubscriptionBillingMode | undefined>;
|
|
286
298
|
/**
|
|
287
299
|
* Billing schedules for this subscription.
|
|
288
300
|
*/
|
|
289
|
-
billingSchedules?: pulumi.Input<pulumi.Input<inputs.SubscriptionBillingSchedule>[]>;
|
|
301
|
+
billingSchedules?: pulumi.Input<pulumi.Input<inputs.SubscriptionBillingSchedule>[] | undefined>;
|
|
290
302
|
/**
|
|
291
303
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
|
|
292
304
|
*/
|
|
293
|
-
billingThresholds?: pulumi.Input<inputs.SubscriptionBillingThresholds>;
|
|
305
|
+
billingThresholds?: pulumi.Input<inputs.SubscriptionBillingThresholds | undefined>;
|
|
294
306
|
/**
|
|
295
307
|
* A date in the future at which the subscription will automatically get canceled
|
|
296
308
|
*/
|
|
297
|
-
cancelAt?: pulumi.Input<number>;
|
|
309
|
+
cancelAt?: pulumi.Input<number | undefined>;
|
|
298
310
|
/**
|
|
299
311
|
* Whether this subscription will (if `status=active`) or did (if `status=canceled`) cancel at the end of the current billing period.
|
|
300
312
|
*/
|
|
301
|
-
cancelAtPeriodEnd?: pulumi.Input<boolean>;
|
|
313
|
+
cancelAtPeriodEnd?: pulumi.Input<boolean | undefined>;
|
|
302
314
|
/**
|
|
303
315
|
* If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with <span pulumi-lang-nodejs="`cancelAtPeriodEnd`" pulumi-lang-dotnet="`CancelAtPeriodEnd`" pulumi-lang-go="`cancelAtPeriodEnd`" pulumi-lang-python="`cancel_at_period_end`" pulumi-lang-yaml="`cancelAtPeriodEnd`" pulumi-lang-java="`cancelAtPeriodEnd`" pulumi-lang-hcl="`cancel_at_period_end`">`cancelAtPeriodEnd`</span>, <span pulumi-lang-nodejs="`canceledAt`" pulumi-lang-dotnet="`CanceledAt`" pulumi-lang-go="`canceledAt`" pulumi-lang-python="`canceled_at`" pulumi-lang-yaml="`canceledAt`" pulumi-lang-java="`canceledAt`" pulumi-lang-hcl="`canceled_at`">`canceledAt`</span> will reflect the time of the most recent update request, not the end of the subscription period when the subscription is automatically moved to a canceled state.
|
|
304
316
|
*/
|
|
305
|
-
canceledAt?: pulumi.Input<number>;
|
|
317
|
+
canceledAt?: pulumi.Input<number | undefined>;
|
|
306
318
|
/**
|
|
307
319
|
* Details about why this subscription was cancelled
|
|
308
320
|
*/
|
|
309
|
-
cancellationDetails?: pulumi.Input<inputs.SubscriptionCancellationDetails>;
|
|
321
|
+
cancellationDetails?: pulumi.Input<inputs.SubscriptionCancellationDetails | undefined>;
|
|
310
322
|
/**
|
|
311
323
|
* Either <span pulumi-lang-nodejs="`chargeAutomatically`" pulumi-lang-dotnet="`ChargeAutomatically`" pulumi-lang-go="`chargeAutomatically`" pulumi-lang-python="`charge_automatically`" pulumi-lang-yaml="`chargeAutomatically`" pulumi-lang-java="`chargeAutomatically`" pulumi-lang-hcl="`charge_automatically`">`chargeAutomatically`</span>, or <span pulumi-lang-nodejs="`sendInvoice`" pulumi-lang-dotnet="`SendInvoice`" pulumi-lang-go="`sendInvoice`" pulumi-lang-python="`send_invoice`" pulumi-lang-yaml="`sendInvoice`" pulumi-lang-java="`sendInvoice`" pulumi-lang-hcl="`send_invoice`">`sendInvoice`</span>. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as <span pulumi-lang-nodejs="`active`" pulumi-lang-dotnet="`Active`" pulumi-lang-go="`active`" pulumi-lang-python="`active`" pulumi-lang-yaml="`active`" pulumi-lang-java="`active`" pulumi-lang-hcl="`active`">`active`</span>.
|
|
312
324
|
*/
|
|
313
|
-
collectionMethod?: pulumi.Input<string>;
|
|
325
|
+
collectionMethod?: pulumi.Input<string | undefined>;
|
|
314
326
|
/**
|
|
315
327
|
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
316
328
|
*/
|
|
317
|
-
created?: pulumi.Input<number>;
|
|
329
|
+
created?: pulumi.Input<number | undefined>;
|
|
318
330
|
/**
|
|
319
331
|
* 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).
|
|
320
332
|
*/
|
|
321
|
-
currency?: pulumi.Input<string>;
|
|
333
|
+
currency?: pulumi.Input<string | undefined>;
|
|
322
334
|
/**
|
|
323
335
|
* ID of the customer who owns the subscription.
|
|
324
336
|
*/
|
|
325
|
-
customer?: pulumi.Input<string>;
|
|
337
|
+
customer?: pulumi.Input<string | undefined>;
|
|
326
338
|
/**
|
|
327
339
|
* ID of the account representing the customer who owns the subscription.
|
|
328
340
|
*/
|
|
329
|
-
customerAccount?: pulumi.Input<string>;
|
|
341
|
+
customerAccount?: pulumi.Input<string | undefined>;
|
|
330
342
|
/**
|
|
331
343
|
* Number of days a customer has to pay invoices generated by this subscription. This value 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 subscriptions where `collection_method=charge_automatically`.
|
|
332
344
|
*/
|
|
333
|
-
daysUntilDue?: pulumi.Input<number>;
|
|
345
|
+
daysUntilDue?: pulumi.Input<number | undefined>;
|
|
334
346
|
/**
|
|
335
347
|
* ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over <span pulumi-lang-nodejs="`defaultSource`" pulumi-lang-dotnet="`DefaultSource`" pulumi-lang-go="`defaultSource`" pulumi-lang-python="`default_source`" pulumi-lang-yaml="`defaultSource`" pulumi-lang-java="`defaultSource`" pulumi-lang-hcl="`default_source`">`defaultSource`</span>. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or <span pulumi-lang-nodejs="[defaultSource]" pulumi-lang-dotnet="[DefaultSource]" pulumi-lang-go="[defaultSource]" pulumi-lang-python="[default_source]" pulumi-lang-yaml="[defaultSource]" pulumi-lang-java="[defaultSource]" pulumi-lang-hcl="[default_source]">[defaultSource]</span>(https://docs.stripe.com/api/customers/object#customer_object-default_source).
|
|
336
348
|
*/
|
|
337
|
-
defaultPaymentMethod?: pulumi.Input<string>;
|
|
349
|
+
defaultPaymentMethod?: pulumi.Input<string | undefined>;
|
|
338
350
|
/**
|
|
339
351
|
* ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If <span pulumi-lang-nodejs="`defaultPaymentMethod`" pulumi-lang-dotnet="`DefaultPaymentMethod`" pulumi-lang-go="`defaultPaymentMethod`" pulumi-lang-python="`default_payment_method`" pulumi-lang-yaml="`defaultPaymentMethod`" pulumi-lang-java="`defaultPaymentMethod`" pulumi-lang-hcl="`default_payment_method`">`defaultPaymentMethod`</span> is also set, <span pulumi-lang-nodejs="`defaultPaymentMethod`" pulumi-lang-dotnet="`DefaultPaymentMethod`" pulumi-lang-go="`defaultPaymentMethod`" pulumi-lang-python="`default_payment_method`" pulumi-lang-yaml="`defaultPaymentMethod`" pulumi-lang-java="`defaultPaymentMethod`" pulumi-lang-hcl="`default_payment_method`">`defaultPaymentMethod`</span> will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or <span pulumi-lang-nodejs="[defaultSource]" pulumi-lang-dotnet="[DefaultSource]" pulumi-lang-go="[defaultSource]" pulumi-lang-python="[default_source]" pulumi-lang-yaml="[defaultSource]" pulumi-lang-java="[defaultSource]" pulumi-lang-hcl="[default_source]">[defaultSource]</span>(https://docs.stripe.com/api/customers/object#customer_object-default_source).
|
|
340
352
|
*/
|
|
341
|
-
defaultSource?: pulumi.Input<string>;
|
|
353
|
+
defaultSource?: pulumi.Input<string | undefined>;
|
|
342
354
|
/**
|
|
343
355
|
* The tax rates that will apply to any subscription item that does not have <span pulumi-lang-nodejs="`taxRates`" pulumi-lang-dotnet="`TaxRates`" pulumi-lang-go="`taxRates`" pulumi-lang-python="`tax_rates`" pulumi-lang-yaml="`taxRates`" pulumi-lang-java="`taxRates`" pulumi-lang-hcl="`tax_rates`">`taxRates`</span> set. Invoices created will have their <span pulumi-lang-nodejs="`defaultTaxRates`" pulumi-lang-dotnet="`DefaultTaxRates`" pulumi-lang-go="`defaultTaxRates`" pulumi-lang-python="`default_tax_rates`" pulumi-lang-yaml="`defaultTaxRates`" pulumi-lang-java="`defaultTaxRates`" pulumi-lang-hcl="`default_tax_rates`">`defaultTaxRates`</span> populated from the subscription.
|
|
344
356
|
*/
|
|
345
|
-
defaultTaxRates?: pulumi.Input<pulumi.Input<string>[]>;
|
|
357
|
+
defaultTaxRates?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
346
358
|
/**
|
|
347
359
|
* The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
348
360
|
*/
|
|
349
|
-
description?: pulumi.Input<string>;
|
|
361
|
+
description?: pulumi.Input<string | undefined>;
|
|
350
362
|
/**
|
|
351
363
|
* The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
|
|
352
364
|
*/
|
|
353
|
-
discounts?: pulumi.Input<pulumi.Input<inputs.SubscriptionDiscount>[]>;
|
|
365
|
+
discounts?: pulumi.Input<pulumi.Input<inputs.SubscriptionDiscount>[] | undefined>;
|
|
354
366
|
/**
|
|
355
367
|
* If the subscription has ended, the date the subscription ended.
|
|
356
368
|
*/
|
|
357
|
-
endedAt?: pulumi.Input<number>;
|
|
358
|
-
invoiceSettings?: pulumi.Input<inputs.SubscriptionInvoiceSettings>;
|
|
369
|
+
endedAt?: pulumi.Input<number | undefined>;
|
|
370
|
+
invoiceSettings?: pulumi.Input<inputs.SubscriptionInvoiceSettings | undefined>;
|
|
359
371
|
/**
|
|
360
372
|
* List of subscription items, each with an attached price.
|
|
361
373
|
*/
|
|
362
|
-
items?: pulumi.Input<pulumi.Input<inputs.SubscriptionItem>[]>;
|
|
374
|
+
items?: pulumi.Input<pulumi.Input<inputs.SubscriptionItem>[] | undefined>;
|
|
363
375
|
/**
|
|
364
376
|
* 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>.
|
|
365
377
|
*/
|
|
366
|
-
livemode?: pulumi.Input<boolean>;
|
|
378
|
+
livemode?: pulumi.Input<boolean | undefined>;
|
|
367
379
|
/**
|
|
368
380
|
* Settings for Managed Payments for this Subscription and resulting [Invoices](https://www.terraform.io/api/invoices/object) and [PaymentIntents](https://www.terraform.io/api/payment_intents/object).
|
|
369
381
|
*/
|
|
370
|
-
managedPayments?: pulumi.Input<inputs.SubscriptionManagedPayments>;
|
|
382
|
+
managedPayments?: pulumi.Input<inputs.SubscriptionManagedPayments | undefined>;
|
|
371
383
|
/**
|
|
372
384
|
* 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.
|
|
373
385
|
*/
|
|
374
386
|
metadata?: pulumi.Input<{
|
|
375
387
|
[key: string]: pulumi.Input<string>;
|
|
376
|
-
}>;
|
|
388
|
+
} | undefined>;
|
|
377
389
|
/**
|
|
378
390
|
* Specifies the approximate timestamp on which any pending invoice items will be billed according to the schedule provided at <span pulumi-lang-nodejs="`pendingInvoiceItemInterval`" pulumi-lang-dotnet="`PendingInvoiceItemInterval`" pulumi-lang-go="`pendingInvoiceItemInterval`" pulumi-lang-python="`pending_invoice_item_interval`" pulumi-lang-yaml="`pendingInvoiceItemInterval`" pulumi-lang-java="`pendingInvoiceItemInterval`" pulumi-lang-hcl="`pending_invoice_item_interval`">`pendingInvoiceItemInterval`</span>.
|
|
379
391
|
*/
|
|
380
|
-
nextPendingInvoiceItemInvoice?: pulumi.Input<number>;
|
|
392
|
+
nextPendingInvoiceItemInvoice?: pulumi.Input<number | undefined>;
|
|
381
393
|
/**
|
|
382
394
|
* String representing the object's type. Objects of the same type share the same value.
|
|
383
395
|
*/
|
|
384
|
-
object?: pulumi.Input<string>;
|
|
396
|
+
object?: pulumi.Input<string | undefined>;
|
|
385
397
|
/**
|
|
386
398
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
387
399
|
* Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults 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> (on-session).
|
|
388
400
|
*/
|
|
389
|
-
offSession?: pulumi.Input<boolean>;
|
|
401
|
+
offSession?: pulumi.Input<boolean | undefined>;
|
|
390
402
|
/**
|
|
391
403
|
* The account (if any) the charge was made on behalf of for charges associated with this subscription. See the [Connect documentation](https://docs.stripe.com/connect/subscriptions#on-behalf-of) for details.
|
|
392
404
|
*/
|
|
393
|
-
onBehalfOf?: pulumi.Input<string>;
|
|
405
|
+
onBehalfOf?: pulumi.Input<string | undefined>;
|
|
394
406
|
/**
|
|
395
407
|
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`" pulumi-lang-hcl="`paused`">`paused`</span>. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
396
408
|
*/
|
|
397
|
-
pauseCollection?: pulumi.Input<inputs.SubscriptionPauseCollection>;
|
|
409
|
+
pauseCollection?: pulumi.Input<inputs.SubscriptionPauseCollection | undefined>;
|
|
398
410
|
/**
|
|
399
411
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
400
412
|
* Controls how Stripe handles the first invoice when payment is required and `collection_method=charge_automatically`. Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status.
|
|
401
413
|
*/
|
|
402
|
-
paymentBehavior?: pulumi.Input<string>;
|
|
414
|
+
paymentBehavior?: pulumi.Input<string | undefined>;
|
|
403
415
|
/**
|
|
404
416
|
* Payment settings passed on to invoices created by the subscription.
|
|
405
417
|
*/
|
|
406
|
-
paymentSettings?: pulumi.Input<inputs.SubscriptionPaymentSettings>;
|
|
418
|
+
paymentSettings?: pulumi.Input<inputs.SubscriptionPaymentSettings | undefined>;
|
|
407
419
|
/**
|
|
408
420
|
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://www.terraform.io/api/invoices/create) for the given subscription at the specified interval.
|
|
409
421
|
*/
|
|
410
|
-
pendingInvoiceItemInterval?: pulumi.Input<inputs.SubscriptionPendingInvoiceItemInterval>;
|
|
422
|
+
pendingInvoiceItemInterval?: pulumi.Input<inputs.SubscriptionPendingInvoiceItemInterval | undefined>;
|
|
411
423
|
/**
|
|
412
424
|
* You can use this [SetupIntent](https://docs.stripe.com/api/setup_intents) to collect user authentication when creating a subscription without immediate payment or updating a subscription's payment method, allowing you to optimize for off-session payments. Learn more in the [SCA Migration Guide](https://docs.stripe.com/billing/migration/strong-customer-authentication#scenario-2).
|
|
413
425
|
*/
|
|
414
|
-
pendingSetupIntent?: pulumi.Input<string>;
|
|
426
|
+
pendingSetupIntent?: pulumi.Input<string | undefined>;
|
|
415
427
|
/**
|
|
416
428
|
* If specified, [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates) that will be applied to the subscription once the <span pulumi-lang-nodejs="`latestInvoice`" pulumi-lang-dotnet="`LatestInvoice`" pulumi-lang-go="`latestInvoice`" pulumi-lang-python="`latest_invoice`" pulumi-lang-yaml="`latestInvoice`" pulumi-lang-java="`latestInvoice`" pulumi-lang-hcl="`latest_invoice`">`latestInvoice`</span> has been paid.
|
|
417
429
|
*/
|
|
418
|
-
pendingUpdate?: pulumi.Input<inputs.SubscriptionPendingUpdate>;
|
|
419
|
-
presentmentDetails?: pulumi.Input<inputs.SubscriptionPresentmentDetails>;
|
|
430
|
+
pendingUpdate?: pulumi.Input<inputs.SubscriptionPendingUpdate | undefined>;
|
|
431
|
+
presentmentDetails?: pulumi.Input<inputs.SubscriptionPresentmentDetails | undefined>;
|
|
420
432
|
/**
|
|
421
433
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
422
434
|
* Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) resulting from the <span pulumi-lang-nodejs="`billingCycleAnchor`" pulumi-lang-dotnet="`BillingCycleAnchor`" pulumi-lang-go="`billingCycleAnchor`" pulumi-lang-python="`billing_cycle_anchor`" pulumi-lang-yaml="`billingCycleAnchor`" pulumi-lang-java="`billingCycleAnchor`" pulumi-lang-hcl="`billing_cycle_anchor`">`billingCycleAnchor`</span>. If no value is passed, the default is <span pulumi-lang-nodejs="`createProrations`" pulumi-lang-dotnet="`CreateProrations`" pulumi-lang-go="`createProrations`" pulumi-lang-python="`create_prorations`" pulumi-lang-yaml="`createProrations`" pulumi-lang-java="`createProrations`" pulumi-lang-hcl="`create_prorations`">`createProrations`</span>.
|
|
423
435
|
*/
|
|
424
|
-
prorationBehavior?: pulumi.Input<string>;
|
|
436
|
+
prorationBehavior?: pulumi.Input<string | undefined>;
|
|
425
437
|
/**
|
|
426
438
|
* The schedule attached to the subscription
|
|
427
439
|
*/
|
|
428
|
-
schedule?: pulumi.Input<string>;
|
|
440
|
+
schedule?: pulumi.Input<string | undefined>;
|
|
429
441
|
/**
|
|
430
442
|
* Date when the subscription was first created. The date might differ from the <span pulumi-lang-nodejs="`created`" pulumi-lang-dotnet="`Created`" pulumi-lang-go="`created`" pulumi-lang-python="`created`" pulumi-lang-yaml="`created`" pulumi-lang-java="`created`" pulumi-lang-hcl="`created`">`created`</span> date due to backdating.
|
|
431
443
|
*/
|
|
432
|
-
startDate?: pulumi.Input<number>;
|
|
444
|
+
startDate?: pulumi.Input<number | undefined>;
|
|
433
445
|
/**
|
|
434
446
|
* Possible values are <span pulumi-lang-nodejs="`incomplete`" pulumi-lang-dotnet="`Incomplete`" pulumi-lang-go="`incomplete`" pulumi-lang-python="`incomplete`" pulumi-lang-yaml="`incomplete`" pulumi-lang-java="`incomplete`" pulumi-lang-hcl="`incomplete`">`incomplete`</span>, <span pulumi-lang-nodejs="`incompleteExpired`" pulumi-lang-dotnet="`IncompleteExpired`" pulumi-lang-go="`incompleteExpired`" pulumi-lang-python="`incomplete_expired`" pulumi-lang-yaml="`incompleteExpired`" pulumi-lang-java="`incompleteExpired`" pulumi-lang-hcl="`incomplete_expired`">`incompleteExpired`</span>, <span pulumi-lang-nodejs="`trialing`" pulumi-lang-dotnet="`Trialing`" pulumi-lang-go="`trialing`" pulumi-lang-python="`trialing`" pulumi-lang-yaml="`trialing`" pulumi-lang-java="`trialing`" pulumi-lang-hcl="`trialing`">`trialing`</span>, <span pulumi-lang-nodejs="`active`" pulumi-lang-dotnet="`Active`" pulumi-lang-go="`active`" pulumi-lang-python="`active`" pulumi-lang-yaml="`active`" pulumi-lang-java="`active`" pulumi-lang-hcl="`active`">`active`</span>, <span pulumi-lang-nodejs="`pastDue`" pulumi-lang-dotnet="`PastDue`" pulumi-lang-go="`pastDue`" pulumi-lang-python="`past_due`" pulumi-lang-yaml="`pastDue`" pulumi-lang-java="`pastDue`" pulumi-lang-hcl="`past_due`">`pastDue`</span>, <span pulumi-lang-nodejs="`canceled`" pulumi-lang-dotnet="`Canceled`" pulumi-lang-go="`canceled`" pulumi-lang-python="`canceled`" pulumi-lang-yaml="`canceled`" pulumi-lang-java="`canceled`" pulumi-lang-hcl="`canceled`">`canceled`</span>, <span pulumi-lang-nodejs="`unpaid`" pulumi-lang-dotnet="`Unpaid`" pulumi-lang-go="`unpaid`" pulumi-lang-python="`unpaid`" pulumi-lang-yaml="`unpaid`" pulumi-lang-java="`unpaid`" pulumi-lang-hcl="`unpaid`">`unpaid`</span>, or <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`" pulumi-lang-hcl="`paused`">`paused`</span>.
|
|
435
447
|
*
|
|
@@ -437,43 +449,47 @@ export interface SubscriptionState {
|
|
|
437
449
|
*
|
|
438
450
|
* A subscription that is currently in a trial period is <span pulumi-lang-nodejs="`trialing`" pulumi-lang-dotnet="`Trialing`" pulumi-lang-go="`trialing`" pulumi-lang-python="`trialing`" pulumi-lang-yaml="`trialing`" pulumi-lang-java="`trialing`" pulumi-lang-hcl="`trialing`">`trialing`</span> and moves to <span pulumi-lang-nodejs="`active`" pulumi-lang-dotnet="`Active`" pulumi-lang-go="`active`" pulumi-lang-python="`active`" pulumi-lang-yaml="`active`" pulumi-lang-java="`active`" pulumi-lang-hcl="`active`">`active`</span> when the trial period is over.
|
|
439
451
|
*
|
|
440
|
-
* A subscription can
|
|
452
|
+
* A subscription can enter a <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`" pulumi-lang-hcl="`paused`">`paused`</span> status in several ways, including [when a trial ends without a payment method](https://docs.stripe.com/billing/subscriptions/trials/free-trials#create-free-trials-without-payment) or when you pause it using the [pause endpoint](https://docs.stripe.com/api/subscriptions/pause). A <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`" pulumi-lang-hcl="`paused`">`paused`</span> subscription doesn't advance to a new billing period or generate invoices until it resumes. The <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`" pulumi-lang-hcl="`paused`">`paused`</span> status is different from [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged.
|
|
441
453
|
*
|
|
442
454
|
* If subscription `collection_method=charge_automatically`, it becomes <span pulumi-lang-nodejs="`pastDue`" pulumi-lang-dotnet="`PastDue`" pulumi-lang-go="`pastDue`" pulumi-lang-python="`past_due`" pulumi-lang-yaml="`pastDue`" pulumi-lang-java="`pastDue`" pulumi-lang-hcl="`past_due`">`pastDue`</span> when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become <span pulumi-lang-nodejs="`canceled`" pulumi-lang-dotnet="`Canceled`" pulumi-lang-go="`canceled`" pulumi-lang-python="`canceled`" pulumi-lang-yaml="`canceled`" pulumi-lang-java="`canceled`" pulumi-lang-hcl="`canceled`">`canceled`</span> or <span pulumi-lang-nodejs="`unpaid`" pulumi-lang-dotnet="`Unpaid`" pulumi-lang-go="`unpaid`" pulumi-lang-python="`unpaid`" pulumi-lang-yaml="`unpaid`" pulumi-lang-java="`unpaid`" pulumi-lang-hcl="`unpaid`">`unpaid`</span> (depending on your subscriptions settings).
|
|
443
455
|
*
|
|
444
456
|
* If subscription `collection_method=send_invoice` it becomes <span pulumi-lang-nodejs="`pastDue`" pulumi-lang-dotnet="`PastDue`" pulumi-lang-go="`pastDue`" pulumi-lang-python="`past_due`" pulumi-lang-yaml="`pastDue`" pulumi-lang-java="`pastDue`" pulumi-lang-hcl="`past_due`">`pastDue`</span> when its invoice is not paid by the due date, and <span pulumi-lang-nodejs="`canceled`" pulumi-lang-dotnet="`Canceled`" pulumi-lang-go="`canceled`" pulumi-lang-python="`canceled`" pulumi-lang-yaml="`canceled`" pulumi-lang-java="`canceled`" pulumi-lang-hcl="`canceled`">`canceled`</span> or <span pulumi-lang-nodejs="`unpaid`" pulumi-lang-dotnet="`Unpaid`" pulumi-lang-go="`unpaid`" pulumi-lang-python="`unpaid`" pulumi-lang-yaml="`unpaid`" pulumi-lang-java="`unpaid`" pulumi-lang-hcl="`unpaid`">`unpaid`</span> if it is still not paid by an additional deadline after that. Note that when a subscription has a status of <span pulumi-lang-nodejs="`unpaid`" pulumi-lang-dotnet="`Unpaid`" pulumi-lang-go="`unpaid`" pulumi-lang-python="`unpaid`" pulumi-lang-yaml="`unpaid`" pulumi-lang-java="`unpaid`" pulumi-lang-hcl="`unpaid`">`unpaid`</span>, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
|
|
445
457
|
*/
|
|
446
|
-
status?: pulumi.Input<string>;
|
|
458
|
+
status?: pulumi.Input<string | undefined>;
|
|
459
|
+
/**
|
|
460
|
+
* Describes changes to the subscription's status.
|
|
461
|
+
*/
|
|
462
|
+
statusDetails?: pulumi.Input<inputs.SubscriptionStatusDetails | undefined>;
|
|
447
463
|
/**
|
|
448
464
|
* ID of the test clock this subscription belongs to.
|
|
449
465
|
*/
|
|
450
|
-
testClock?: pulumi.Input<string>;
|
|
466
|
+
testClock?: pulumi.Input<string | undefined>;
|
|
451
467
|
/**
|
|
452
468
|
* The account (if any) the subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
|
|
453
469
|
*/
|
|
454
|
-
transferData?: pulumi.Input<inputs.SubscriptionTransferData>;
|
|
470
|
+
transferData?: pulumi.Input<inputs.SubscriptionTransferData | undefined>;
|
|
455
471
|
/**
|
|
456
472
|
* If the subscription has a trial, the end of that trial.
|
|
457
473
|
*/
|
|
458
|
-
trialEnd?: pulumi.Input<number>;
|
|
474
|
+
trialEnd?: pulumi.Input<number | undefined>;
|
|
459
475
|
/**
|
|
460
476
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
461
|
-
* Indicates if a plan's <span pulumi-lang-nodejs="`trialPeriodDays`" pulumi-lang-dotnet="`TrialPeriodDays`" pulumi-lang-go="`trialPeriodDays`" pulumi-lang-python="`trial_period_days`" pulumi-lang-yaml="`trialPeriodDays`" pulumi-lang-java="`trialPeriodDays`" pulumi-lang-hcl="`trial_period_days`">`trialPeriodDays`</span> should be applied to the subscription. Setting <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> per subscription is preferred, and this defaults 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>. Setting this flag 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> together with <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> is not allowed. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials) to learn more.
|
|
477
|
+
* Indicates if a plan's <span pulumi-lang-nodejs="`trialPeriodDays`" pulumi-lang-dotnet="`TrialPeriodDays`" pulumi-lang-go="`trialPeriodDays`" pulumi-lang-python="`trial_period_days`" pulumi-lang-yaml="`trialPeriodDays`" pulumi-lang-java="`trialPeriodDays`" pulumi-lang-hcl="`trial_period_days`">`trialPeriodDays`</span> should be applied to the subscription. Setting <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> per subscription is preferred, and this defaults 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>. Setting this flag 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> together with <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> is not allowed. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials/free-trials) to learn more.
|
|
462
478
|
*/
|
|
463
|
-
trialFromPlan?: pulumi.Input<boolean>;
|
|
479
|
+
trialFromPlan?: pulumi.Input<boolean | undefined>;
|
|
464
480
|
/**
|
|
465
481
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
466
|
-
* Integer representing the number of trial period days before the customer is charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials) to learn more.
|
|
482
|
+
* Integer representing the number of trial period days before the customer is charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials/free-trials) to learn more.
|
|
467
483
|
*/
|
|
468
|
-
trialPeriodDays?: pulumi.Input<number>;
|
|
484
|
+
trialPeriodDays?: pulumi.Input<number | undefined>;
|
|
469
485
|
/**
|
|
470
486
|
* Settings related to subscription trials.
|
|
471
487
|
*/
|
|
472
|
-
trialSettings?: pulumi.Input<inputs.SubscriptionTrialSettings>;
|
|
488
|
+
trialSettings?: pulumi.Input<inputs.SubscriptionTrialSettings | undefined>;
|
|
473
489
|
/**
|
|
474
490
|
* If the subscription has a trial, the beginning of that trial.
|
|
475
491
|
*/
|
|
476
|
-
trialStart?: pulumi.Input<number>;
|
|
492
|
+
trialStart?: pulumi.Input<number | undefined>;
|
|
477
493
|
}
|
|
478
494
|
/**
|
|
479
495
|
* The set of arguments for constructing a Subscription resource.
|
|
@@ -483,152 +499,152 @@ export interface SubscriptionArgs {
|
|
|
483
499
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
484
500
|
* A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. You may pass up to 20 items.
|
|
485
501
|
*/
|
|
486
|
-
addInvoiceItems?: pulumi.Input<pulumi.Input<inputs.SubscriptionAddInvoiceItem>[]>;
|
|
502
|
+
addInvoiceItems?: pulumi.Input<pulumi.Input<inputs.SubscriptionAddInvoiceItem>[] | undefined>;
|
|
487
503
|
/**
|
|
488
504
|
* A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account.
|
|
489
505
|
*/
|
|
490
|
-
applicationFeePercent?: pulumi.Input<number>;
|
|
491
|
-
automaticTax?: pulumi.Input<inputs.SubscriptionAutomaticTax>;
|
|
506
|
+
applicationFeePercent?: pulumi.Input<number | undefined>;
|
|
507
|
+
automaticTax?: pulumi.Input<inputs.SubscriptionAutomaticTax | undefined>;
|
|
492
508
|
/**
|
|
493
509
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
494
510
|
* A past timestamp to backdate the subscription's start date to. If set, the first invoice will contain line items for the timespan between the start date and the current time. Can be combined with trials and the billing cycle anchor.
|
|
495
511
|
*/
|
|
496
|
-
backdateStartDate?: pulumi.Input<number>;
|
|
512
|
+
backdateStartDate?: pulumi.Input<number | undefined>;
|
|
497
513
|
/**
|
|
498
514
|
* The reference point that aligns future [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle) dates. It sets the day of week for <span pulumi-lang-nodejs="`week`" pulumi-lang-dotnet="`Week`" pulumi-lang-go="`week`" pulumi-lang-python="`week`" pulumi-lang-yaml="`week`" pulumi-lang-java="`week`" pulumi-lang-hcl="`week`">`week`</span> intervals, the day of month for <span pulumi-lang-nodejs="`month`" pulumi-lang-dotnet="`Month`" pulumi-lang-go="`month`" pulumi-lang-python="`month`" pulumi-lang-yaml="`month`" pulumi-lang-java="`month`" pulumi-lang-hcl="`month`">`month`</span> and <span pulumi-lang-nodejs="`year`" pulumi-lang-dotnet="`Year`" pulumi-lang-go="`year`" pulumi-lang-python="`year`" pulumi-lang-yaml="`year`" pulumi-lang-java="`year`" pulumi-lang-hcl="`year`">`year`</span> intervals, and the month of year for <span pulumi-lang-nodejs="`year`" pulumi-lang-dotnet="`Year`" pulumi-lang-go="`year`" pulumi-lang-python="`year`" pulumi-lang-yaml="`year`" pulumi-lang-java="`year`" pulumi-lang-hcl="`year`">`year`</span> intervals. The timestamp is in UTC format.
|
|
499
515
|
*/
|
|
500
|
-
billingCycleAnchor?: pulumi.Input<number>;
|
|
516
|
+
billingCycleAnchor?: pulumi.Input<number | undefined>;
|
|
501
517
|
/**
|
|
502
518
|
* The fixed values used to calculate the <span pulumi-lang-nodejs="`billingCycleAnchor`" pulumi-lang-dotnet="`BillingCycleAnchor`" pulumi-lang-go="`billingCycleAnchor`" pulumi-lang-python="`billing_cycle_anchor`" pulumi-lang-yaml="`billingCycleAnchor`" pulumi-lang-java="`billingCycleAnchor`" pulumi-lang-hcl="`billing_cycle_anchor`">`billingCycleAnchor`</span>.
|
|
503
519
|
*/
|
|
504
|
-
billingCycleAnchorConfig?: pulumi.Input<inputs.SubscriptionBillingCycleAnchorConfig>;
|
|
520
|
+
billingCycleAnchorConfig?: pulumi.Input<inputs.SubscriptionBillingCycleAnchorConfig | undefined>;
|
|
505
521
|
/**
|
|
506
522
|
* The billing mode of the subscription.
|
|
507
523
|
*/
|
|
508
|
-
billingMode?: pulumi.Input<inputs.SubscriptionBillingMode>;
|
|
524
|
+
billingMode?: pulumi.Input<inputs.SubscriptionBillingMode | undefined>;
|
|
509
525
|
/**
|
|
510
526
|
* Billing schedules for this subscription.
|
|
511
527
|
*/
|
|
512
|
-
billingSchedules?: pulumi.Input<pulumi.Input<inputs.SubscriptionBillingSchedule>[]>;
|
|
528
|
+
billingSchedules?: pulumi.Input<pulumi.Input<inputs.SubscriptionBillingSchedule>[] | undefined>;
|
|
513
529
|
/**
|
|
514
530
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
|
|
515
531
|
*/
|
|
516
|
-
billingThresholds?: pulumi.Input<inputs.SubscriptionBillingThresholds>;
|
|
532
|
+
billingThresholds?: pulumi.Input<inputs.SubscriptionBillingThresholds | undefined>;
|
|
517
533
|
/**
|
|
518
534
|
* A date in the future at which the subscription will automatically get canceled
|
|
519
535
|
*/
|
|
520
|
-
cancelAt?: pulumi.Input<number>;
|
|
536
|
+
cancelAt?: pulumi.Input<number | undefined>;
|
|
521
537
|
/**
|
|
522
538
|
* Whether this subscription will (if `status=active`) or did (if `status=canceled`) cancel at the end of the current billing period.
|
|
523
539
|
*/
|
|
524
|
-
cancelAtPeriodEnd?: pulumi.Input<boolean>;
|
|
540
|
+
cancelAtPeriodEnd?: pulumi.Input<boolean | undefined>;
|
|
525
541
|
/**
|
|
526
542
|
* Details about why this subscription was cancelled
|
|
527
543
|
*/
|
|
528
|
-
cancellationDetails?: pulumi.Input<inputs.SubscriptionCancellationDetails>;
|
|
544
|
+
cancellationDetails?: pulumi.Input<inputs.SubscriptionCancellationDetails | undefined>;
|
|
529
545
|
/**
|
|
530
546
|
* Either <span pulumi-lang-nodejs="`chargeAutomatically`" pulumi-lang-dotnet="`ChargeAutomatically`" pulumi-lang-go="`chargeAutomatically`" pulumi-lang-python="`charge_automatically`" pulumi-lang-yaml="`chargeAutomatically`" pulumi-lang-java="`chargeAutomatically`" pulumi-lang-hcl="`charge_automatically`">`chargeAutomatically`</span>, or <span pulumi-lang-nodejs="`sendInvoice`" pulumi-lang-dotnet="`SendInvoice`" pulumi-lang-go="`sendInvoice`" pulumi-lang-python="`send_invoice`" pulumi-lang-yaml="`sendInvoice`" pulumi-lang-java="`sendInvoice`" pulumi-lang-hcl="`send_invoice`">`sendInvoice`</span>. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as <span pulumi-lang-nodejs="`active`" pulumi-lang-dotnet="`Active`" pulumi-lang-go="`active`" pulumi-lang-python="`active`" pulumi-lang-yaml="`active`" pulumi-lang-java="`active`" pulumi-lang-hcl="`active`">`active`</span>.
|
|
531
547
|
*/
|
|
532
|
-
collectionMethod?: pulumi.Input<string>;
|
|
548
|
+
collectionMethod?: pulumi.Input<string | undefined>;
|
|
533
549
|
/**
|
|
534
550
|
* 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).
|
|
535
551
|
*/
|
|
536
|
-
currency?: pulumi.Input<string>;
|
|
552
|
+
currency?: pulumi.Input<string | undefined>;
|
|
537
553
|
/**
|
|
538
554
|
* ID of the customer who owns the subscription.
|
|
539
555
|
*/
|
|
540
|
-
customer?: pulumi.Input<string>;
|
|
556
|
+
customer?: pulumi.Input<string | undefined>;
|
|
541
557
|
/**
|
|
542
558
|
* ID of the account representing the customer who owns the subscription.
|
|
543
559
|
*/
|
|
544
|
-
customerAccount?: pulumi.Input<string>;
|
|
560
|
+
customerAccount?: pulumi.Input<string | undefined>;
|
|
545
561
|
/**
|
|
546
562
|
* Number of days a customer has to pay invoices generated by this subscription. This value 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 subscriptions where `collection_method=charge_automatically`.
|
|
547
563
|
*/
|
|
548
|
-
daysUntilDue?: pulumi.Input<number>;
|
|
564
|
+
daysUntilDue?: pulumi.Input<number | undefined>;
|
|
549
565
|
/**
|
|
550
566
|
* ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over <span pulumi-lang-nodejs="`defaultSource`" pulumi-lang-dotnet="`DefaultSource`" pulumi-lang-go="`defaultSource`" pulumi-lang-python="`default_source`" pulumi-lang-yaml="`defaultSource`" pulumi-lang-java="`defaultSource`" pulumi-lang-hcl="`default_source`">`defaultSource`</span>. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or <span pulumi-lang-nodejs="[defaultSource]" pulumi-lang-dotnet="[DefaultSource]" pulumi-lang-go="[defaultSource]" pulumi-lang-python="[default_source]" pulumi-lang-yaml="[defaultSource]" pulumi-lang-java="[defaultSource]" pulumi-lang-hcl="[default_source]">[defaultSource]</span>(https://docs.stripe.com/api/customers/object#customer_object-default_source).
|
|
551
567
|
*/
|
|
552
|
-
defaultPaymentMethod?: pulumi.Input<string>;
|
|
568
|
+
defaultPaymentMethod?: pulumi.Input<string | undefined>;
|
|
553
569
|
/**
|
|
554
570
|
* ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If <span pulumi-lang-nodejs="`defaultPaymentMethod`" pulumi-lang-dotnet="`DefaultPaymentMethod`" pulumi-lang-go="`defaultPaymentMethod`" pulumi-lang-python="`default_payment_method`" pulumi-lang-yaml="`defaultPaymentMethod`" pulumi-lang-java="`defaultPaymentMethod`" pulumi-lang-hcl="`default_payment_method`">`defaultPaymentMethod`</span> is also set, <span pulumi-lang-nodejs="`defaultPaymentMethod`" pulumi-lang-dotnet="`DefaultPaymentMethod`" pulumi-lang-go="`defaultPaymentMethod`" pulumi-lang-python="`default_payment_method`" pulumi-lang-yaml="`defaultPaymentMethod`" pulumi-lang-java="`defaultPaymentMethod`" pulumi-lang-hcl="`default_payment_method`">`defaultPaymentMethod`</span> will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or <span pulumi-lang-nodejs="[defaultSource]" pulumi-lang-dotnet="[DefaultSource]" pulumi-lang-go="[defaultSource]" pulumi-lang-python="[default_source]" pulumi-lang-yaml="[defaultSource]" pulumi-lang-java="[defaultSource]" pulumi-lang-hcl="[default_source]">[defaultSource]</span>(https://docs.stripe.com/api/customers/object#customer_object-default_source).
|
|
555
571
|
*/
|
|
556
|
-
defaultSource?: pulumi.Input<string>;
|
|
572
|
+
defaultSource?: pulumi.Input<string | undefined>;
|
|
557
573
|
/**
|
|
558
574
|
* The tax rates that will apply to any subscription item that does not have <span pulumi-lang-nodejs="`taxRates`" pulumi-lang-dotnet="`TaxRates`" pulumi-lang-go="`taxRates`" pulumi-lang-python="`tax_rates`" pulumi-lang-yaml="`taxRates`" pulumi-lang-java="`taxRates`" pulumi-lang-hcl="`tax_rates`">`taxRates`</span> set. Invoices created will have their <span pulumi-lang-nodejs="`defaultTaxRates`" pulumi-lang-dotnet="`DefaultTaxRates`" pulumi-lang-go="`defaultTaxRates`" pulumi-lang-python="`default_tax_rates`" pulumi-lang-yaml="`defaultTaxRates`" pulumi-lang-java="`defaultTaxRates`" pulumi-lang-hcl="`default_tax_rates`">`defaultTaxRates`</span> populated from the subscription.
|
|
559
575
|
*/
|
|
560
|
-
defaultTaxRates?: pulumi.Input<pulumi.Input<string>[]>;
|
|
576
|
+
defaultTaxRates?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
561
577
|
/**
|
|
562
578
|
* The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
563
579
|
*/
|
|
564
|
-
description?: pulumi.Input<string>;
|
|
580
|
+
description?: pulumi.Input<string | undefined>;
|
|
565
581
|
/**
|
|
566
582
|
* The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
|
|
567
583
|
*/
|
|
568
|
-
discounts?: pulumi.Input<pulumi.Input<inputs.SubscriptionDiscount>[]>;
|
|
569
|
-
invoiceSettings?: pulumi.Input<inputs.SubscriptionInvoiceSettings>;
|
|
584
|
+
discounts?: pulumi.Input<pulumi.Input<inputs.SubscriptionDiscount>[] | undefined>;
|
|
585
|
+
invoiceSettings?: pulumi.Input<inputs.SubscriptionInvoiceSettings | undefined>;
|
|
570
586
|
/**
|
|
571
587
|
* List of subscription items, each with an attached price.
|
|
572
588
|
*/
|
|
573
|
-
items?: pulumi.Input<pulumi.Input<inputs.SubscriptionItem>[]>;
|
|
589
|
+
items?: pulumi.Input<pulumi.Input<inputs.SubscriptionItem>[] | undefined>;
|
|
574
590
|
/**
|
|
575
591
|
* 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.
|
|
576
592
|
*/
|
|
577
593
|
metadata?: pulumi.Input<{
|
|
578
594
|
[key: string]: pulumi.Input<string>;
|
|
579
|
-
}>;
|
|
595
|
+
} | undefined>;
|
|
580
596
|
/**
|
|
581
597
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
582
598
|
* Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults 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> (on-session).
|
|
583
599
|
*/
|
|
584
|
-
offSession?: pulumi.Input<boolean>;
|
|
600
|
+
offSession?: pulumi.Input<boolean | undefined>;
|
|
585
601
|
/**
|
|
586
602
|
* The account (if any) the charge was made on behalf of for charges associated with this subscription. See the [Connect documentation](https://docs.stripe.com/connect/subscriptions#on-behalf-of) for details.
|
|
587
603
|
*/
|
|
588
|
-
onBehalfOf?: pulumi.Input<string>;
|
|
604
|
+
onBehalfOf?: pulumi.Input<string | undefined>;
|
|
589
605
|
/**
|
|
590
606
|
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to <span pulumi-lang-nodejs="`paused`" pulumi-lang-dotnet="`Paused`" pulumi-lang-go="`paused`" pulumi-lang-python="`paused`" pulumi-lang-yaml="`paused`" pulumi-lang-java="`paused`" pulumi-lang-hcl="`paused`">`paused`</span>. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
591
607
|
*/
|
|
592
|
-
pauseCollection?: pulumi.Input<inputs.SubscriptionPauseCollection>;
|
|
608
|
+
pauseCollection?: pulumi.Input<inputs.SubscriptionPauseCollection | undefined>;
|
|
593
609
|
/**
|
|
594
610
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
595
611
|
* Controls how Stripe handles the first invoice when payment is required and `collection_method=charge_automatically`. Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status.
|
|
596
612
|
*/
|
|
597
|
-
paymentBehavior?: pulumi.Input<string>;
|
|
613
|
+
paymentBehavior?: pulumi.Input<string | undefined>;
|
|
598
614
|
/**
|
|
599
615
|
* Payment settings passed on to invoices created by the subscription.
|
|
600
616
|
*/
|
|
601
|
-
paymentSettings?: pulumi.Input<inputs.SubscriptionPaymentSettings>;
|
|
617
|
+
paymentSettings?: pulumi.Input<inputs.SubscriptionPaymentSettings | undefined>;
|
|
602
618
|
/**
|
|
603
619
|
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://www.terraform.io/api/invoices/create) for the given subscription at the specified interval.
|
|
604
620
|
*/
|
|
605
|
-
pendingInvoiceItemInterval?: pulumi.Input<inputs.SubscriptionPendingInvoiceItemInterval>;
|
|
621
|
+
pendingInvoiceItemInterval?: pulumi.Input<inputs.SubscriptionPendingInvoiceItemInterval | undefined>;
|
|
606
622
|
/**
|
|
607
623
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
608
624
|
* Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) resulting from the <span pulumi-lang-nodejs="`billingCycleAnchor`" pulumi-lang-dotnet="`BillingCycleAnchor`" pulumi-lang-go="`billingCycleAnchor`" pulumi-lang-python="`billing_cycle_anchor`" pulumi-lang-yaml="`billingCycleAnchor`" pulumi-lang-java="`billingCycleAnchor`" pulumi-lang-hcl="`billing_cycle_anchor`">`billingCycleAnchor`</span>. If no value is passed, the default is <span pulumi-lang-nodejs="`createProrations`" pulumi-lang-dotnet="`CreateProrations`" pulumi-lang-go="`createProrations`" pulumi-lang-python="`create_prorations`" pulumi-lang-yaml="`createProrations`" pulumi-lang-java="`createProrations`" pulumi-lang-hcl="`create_prorations`">`createProrations`</span>.
|
|
609
625
|
*/
|
|
610
|
-
prorationBehavior?: pulumi.Input<string>;
|
|
626
|
+
prorationBehavior?: pulumi.Input<string | undefined>;
|
|
611
627
|
/**
|
|
612
628
|
* The account (if any) the subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
|
|
613
629
|
*/
|
|
614
|
-
transferData?: pulumi.Input<inputs.SubscriptionTransferData>;
|
|
630
|
+
transferData?: pulumi.Input<inputs.SubscriptionTransferData | undefined>;
|
|
615
631
|
/**
|
|
616
632
|
* If the subscription has a trial, the end of that trial.
|
|
617
633
|
*/
|
|
618
|
-
trialEnd?: pulumi.Input<number>;
|
|
634
|
+
trialEnd?: pulumi.Input<number | undefined>;
|
|
619
635
|
/**
|
|
620
636
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
621
|
-
* Indicates if a plan's <span pulumi-lang-nodejs="`trialPeriodDays`" pulumi-lang-dotnet="`TrialPeriodDays`" pulumi-lang-go="`trialPeriodDays`" pulumi-lang-python="`trial_period_days`" pulumi-lang-yaml="`trialPeriodDays`" pulumi-lang-java="`trialPeriodDays`" pulumi-lang-hcl="`trial_period_days`">`trialPeriodDays`</span> should be applied to the subscription. Setting <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> per subscription is preferred, and this defaults 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>. Setting this flag 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> together with <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> is not allowed. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials) to learn more.
|
|
637
|
+
* Indicates if a plan's <span pulumi-lang-nodejs="`trialPeriodDays`" pulumi-lang-dotnet="`TrialPeriodDays`" pulumi-lang-go="`trialPeriodDays`" pulumi-lang-python="`trial_period_days`" pulumi-lang-yaml="`trialPeriodDays`" pulumi-lang-java="`trialPeriodDays`" pulumi-lang-hcl="`trial_period_days`">`trialPeriodDays`</span> should be applied to the subscription. Setting <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> per subscription is preferred, and this defaults 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>. Setting this flag 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> together with <span pulumi-lang-nodejs="`trialEnd`" pulumi-lang-dotnet="`TrialEnd`" pulumi-lang-go="`trialEnd`" pulumi-lang-python="`trial_end`" pulumi-lang-yaml="`trialEnd`" pulumi-lang-java="`trialEnd`" pulumi-lang-hcl="`trial_end`">`trialEnd`</span> is not allowed. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials/free-trials) to learn more.
|
|
622
638
|
*/
|
|
623
|
-
trialFromPlan?: pulumi.Input<boolean>;
|
|
639
|
+
trialFromPlan?: pulumi.Input<boolean | undefined>;
|
|
624
640
|
/**
|
|
625
641
|
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
626
|
-
* Integer representing the number of trial period days before the customer is charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials) to learn more.
|
|
642
|
+
* Integer representing the number of trial period days before the customer is charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials/free-trials) to learn more.
|
|
627
643
|
*/
|
|
628
|
-
trialPeriodDays?: pulumi.Input<number>;
|
|
644
|
+
trialPeriodDays?: pulumi.Input<number | undefined>;
|
|
629
645
|
/**
|
|
630
646
|
* Settings related to subscription trials.
|
|
631
647
|
*/
|
|
632
|
-
trialSettings?: pulumi.Input<inputs.SubscriptionTrialSettings>;
|
|
648
|
+
trialSettings?: pulumi.Input<inputs.SubscriptionTrialSettings | undefined>;
|
|
633
649
|
}
|
|
634
650
|
//# sourceMappingURL=subscription.d.ts.map
|