@lshay-provider/stripe 0.0.0-stage → 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/README.md +3 -3
- package/bin/applePayDomain.d.ts +72 -0
- package/bin/applePayDomain.d.ts.map +1 -0
- package/bin/applePayDomain.js +91 -0
- package/bin/applePayDomain.js.map +1 -0
- 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 +107 -0
- package/bin/billingAlert.d.ts.map +1 -0
- package/bin/billingAlert.js +98 -0
- package/bin/billingAlert.js.map +1 -0
- package/bin/billingCreditGrant.d.ts +203 -0
- package/bin/billingCreditGrant.d.ts.map +1 -0
- package/bin/billingCreditGrant.js +118 -0
- package/bin/billingCreditGrant.js.map +1 -0
- 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 +134 -0
- package/bin/billingMeter.d.ts.map +1 -0
- package/bin/billingMeter.js +110 -0
- package/bin/billingMeter.js.map +1 -0
- package/bin/billingPortalConfiguration.d.ts +150 -0
- package/bin/billingPortalConfiguration.d.ts.map +1 -0
- package/bin/billingPortalConfiguration.js +107 -0
- package/bin/billingPortalConfiguration.js.map +1 -0
- package/bin/charge.d.ts +496 -0
- package/bin/charge.d.ts.map +1 -0
- package/bin/charge.js +176 -0
- package/bin/charge.js.map +1 -0
- package/bin/climateOrder.d.ts +247 -0
- package/bin/climateOrder.d.ts.map +1 -0
- package/bin/climateOrder.js +129 -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 +228 -0
- package/bin/coupon.d.ts.map +1 -0
- package/bin/coupon.js +114 -0
- package/bin/coupon.js.map +1 -0
- package/bin/creditNote.d.ts +374 -0
- package/bin/creditNote.d.ts.map +1 -0
- package/bin/creditNote.js +151 -0
- package/bin/creditNote.js.map +1 -0
- package/bin/customer.d.ts +384 -0
- package/bin/customer.d.ts.map +1 -0
- package/bin/customer.js +144 -0
- package/bin/customer.js.map +1 -0
- package/bin/customerBalanceTransaction.d.ts +175 -0
- package/bin/customerBalanceTransaction.d.ts.map +1 -0
- package/bin/customerBalanceTransaction.js +115 -0
- package/bin/customerBalanceTransaction.js.map +1 -0
- package/bin/entitlementsFeature.d.ts +111 -0
- package/bin/entitlementsFeature.d.ts.map +1 -0
- package/bin/entitlementsFeature.js +95 -0
- package/bin/entitlementsFeature.js.map +1 -0
- package/bin/file.d.ts +153 -0
- package/bin/file.d.ts.map +1 -0
- package/bin/file.js +110 -0
- package/bin/file.js.map +1 -0
- package/bin/fileLink.d.ts +127 -0
- package/bin/fileLink.d.ts.map +1 -0
- package/bin/fileLink.js +99 -0
- package/bin/fileLink.js.map +1 -0
- package/bin/index.d.ts +191 -0
- package/bin/index.d.ts.map +1 -0
- package/bin/index.js +370 -0
- package/bin/index.js.map +1 -0
- package/bin/invoice.d.ts +795 -0
- package/bin/invoice.d.ts.map +1 -0
- package/bin/invoice.js +242 -0
- package/bin/invoice.js.map +1 -0
- package/bin/invoiceItem.d.ts +354 -0
- package/bin/invoiceItem.d.ts.map +1 -0
- package/bin/invoiceItem.js +136 -0
- package/bin/invoiceItem.js.map +1 -0
- package/bin/issuingCard.d.ts +313 -0
- package/bin/issuingCard.d.ts.map +1 -0
- package/bin/issuingCard.js +138 -0
- package/bin/issuingCard.js.map +1 -0
- package/bin/issuingCardholder.d.ts +205 -0
- package/bin/issuingCardholder.d.ts.map +1 -0
- package/bin/issuingCardholder.js +113 -0
- package/bin/issuingCardholder.js.map +1 -0
- package/bin/issuingDispute.d.ts +152 -0
- package/bin/issuingDispute.d.ts.map +1 -0
- package/bin/issuingDispute.js +102 -0
- package/bin/issuingDispute.js.map +1 -0
- package/bin/issuingPersonalizationDesign.d.ts +177 -0
- package/bin/issuingPersonalizationDesign.d.ts.map +1 -0
- package/bin/issuingPersonalizationDesign.js +111 -0
- package/bin/issuingPersonalizationDesign.js.map +1 -0
- package/bin/package.json +34 -0
- package/bin/paymentIntent.d.ts +670 -0
- package/bin/paymentIntent.d.ts.map +1 -0
- package/bin/paymentIntent.js +194 -0
- package/bin/paymentIntent.js.map +1 -0
- package/bin/paymentLink.d.ts +415 -0
- package/bin/paymentLink.d.ts.map +1 -0
- package/bin/paymentLink.js +155 -0
- package/bin/paymentLink.js.map +1 -0
- package/bin/paymentMethod.d.ts +232 -0
- package/bin/paymentMethod.d.ts.map +1 -0
- package/bin/paymentMethod.js +154 -0
- package/bin/paymentMethod.js.map +1 -0
- package/bin/paymentMethodConfiguration.d.ts +310 -0
- package/bin/paymentMethodConfiguration.d.ts.map +1 -0
- package/bin/paymentMethodConfiguration.js +218 -0
- package/bin/paymentMethodConfiguration.js.map +1 -0
- package/bin/paymentMethodDomain.d.ts +143 -0
- package/bin/paymentMethodDomain.d.ts.map +1 -0
- package/bin/paymentMethodDomain.js +105 -0
- package/bin/paymentMethodDomain.js.map +1 -0
- package/bin/person.d.ts +436 -0
- package/bin/person.d.ts.map +1 -0
- package/bin/person.js +157 -0
- package/bin/person.js.map +1 -0
- package/bin/plan.d.ts +281 -0
- package/bin/plan.d.ts.map +1 -0
- package/bin/plan.js +126 -0
- package/bin/plan.js.map +1 -0
- package/bin/price.d.ts +304 -0
- package/bin/price.d.ts.map +1 -0
- package/bin/price.js +129 -0
- package/bin/price.js.map +1 -0
- package/bin/product.d.ts +285 -0
- package/bin/product.d.ts.map +1 -0
- package/bin/product.js +122 -0
- package/bin/product.js.map +1 -0
- 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 +88 -0
- package/bin/productFeature.d.ts.map +1 -0
- package/bin/productFeature.js +94 -0
- package/bin/productFeature.js.map +1 -0
- package/bin/promotionCode.d.ts +175 -0
- package/bin/promotionCode.d.ts.map +1 -0
- package/bin/promotionCode.js +106 -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 +350 -0
- package/bin/quote.d.ts.map +1 -0
- package/bin/quote.js +144 -0
- package/bin/quote.js.map +1 -0
- package/bin/radarValueList.d.ts +131 -0
- package/bin/radarValueList.d.ts.map +1 -0
- package/bin/radarValueList.js +99 -0
- package/bin/radarValueList.js.map +1 -0
- package/bin/radarValueListItem.d.ts +101 -0
- package/bin/radarValueListItem.d.ts.map +1 -0
- package/bin/radarValueListItem.js +98 -0
- package/bin/radarValueListItem.js.map +1 -0
- package/bin/setupIntent.d.ts +492 -0
- package/bin/setupIntent.d.ts.map +1 -0
- package/bin/setupIntent.js +154 -0
- package/bin/setupIntent.js.map +1 -0
- package/bin/shippingRate.d.ts +164 -0
- package/bin/shippingRate.d.ts.map +1 -0
- package/bin/shippingRate.js +105 -0
- package/bin/shippingRate.js.map +1 -0
- package/bin/source.d.ts +303 -0
- package/bin/source.d.ts.map +1 -0
- package/bin/source.js +164 -0
- package/bin/source.js.map +1 -0
- package/bin/subscription.d.ts +650 -0
- package/bin/subscription.d.ts.map +1 -0
- package/bin/subscription.js +190 -0
- package/bin/subscription.js.map +1 -0
- package/bin/subscriptionItem.d.ts +297 -0
- package/bin/subscriptionItem.d.ts.map +1 -0
- package/bin/subscriptionItem.js +121 -0
- package/bin/subscriptionItem.js.map +1 -0
- package/bin/subscriptionSchedule.d.ts +263 -0
- package/bin/subscriptionSchedule.d.ts.map +1 -0
- package/bin/subscriptionSchedule.js +126 -0
- package/bin/subscriptionSchedule.js.map +1 -0
- package/bin/taxId.d.ts +139 -0
- package/bin/taxId.d.ts.map +1 -0
- package/bin/taxId.js +109 -0
- package/bin/taxId.js.map +1 -0
- 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 +233 -0
- package/bin/taxRate.d.ts.map +1 -0
- package/bin/taxRate.js +123 -0
- package/bin/taxRate.js.map +1 -0
- package/bin/taxRegistration.d.ts +118 -0
- package/bin/taxRegistration.d.ts.map +1 -0
- package/bin/taxRegistration.js +105 -0
- package/bin/taxRegistration.js.map +1 -0
- package/bin/terminalConfiguration.d.ts +131 -0
- package/bin/terminalConfiguration.d.ts.map +1 -0
- package/bin/terminalConfiguration.js +120 -0
- package/bin/terminalConfiguration.js.map +1 -0
- package/bin/terminalLocation.d.ts +147 -0
- package/bin/terminalLocation.d.ts.map +1 -0
- package/bin/terminalLocation.js +100 -0
- package/bin/terminalLocation.js.map +1 -0
- package/bin/terminalReader.d.ts +168 -0
- package/bin/terminalReader.d.ts.map +1 -0
- package/bin/terminalReader.js +109 -0
- package/bin/terminalReader.js.map +1 -0
- 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 +203 -0
- package/bin/treasuryFinancialAccount.d.ts.map +1 -0
- package/bin/treasuryFinancialAccount.js +119 -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 +18743 -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 +18742 -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 +125 -0
- package/bin/utilities.js.map +1 -0
- package/bin/v2coreEventDestination.d.ts +260 -0
- package/bin/v2coreEventDestination.d.ts.map +1 -0
- package/bin/v2coreEventDestination.js +127 -0
- package/bin/v2coreEventDestination.js.map +1 -0
- 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 +171 -0
- package/bin/webhookEndpoint.d.ts.map +1 -0
- package/bin/webhookEndpoint.js +112 -0
- package/bin/webhookEndpoint.js.map +1 -0
- package/package.json +31 -3
|
@@ -0,0 +1,121 @@
|
|
|
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.SubscriptionItem = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
class SubscriptionItem extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing SubscriptionItem 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 SubscriptionItem(name, state, { ...opts, id: id });
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check whether an existing SubscriptionItem resource with the given ID exists.
|
|
46
|
+
*
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static exists(id, state, opts) {
|
|
52
|
+
return pulumi.runtime.existsResource("stripe:index/subscriptionItem:SubscriptionItem", id, state || {}, { ...opts }, utilities.getPackage());
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
static __pulumiType = 'stripe:index/subscriptionItem:SubscriptionItem';
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of SubscriptionItem. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj) {
|
|
61
|
+
if (obj === undefined || obj === null) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return obj['__pulumiType'] === SubscriptionItem.__pulumiType;
|
|
65
|
+
}
|
|
66
|
+
constructor(name, argsOrState, opts) {
|
|
67
|
+
let resourceInputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (opts.id) {
|
|
70
|
+
const state = argsOrState;
|
|
71
|
+
resourceInputs["billedUntil"] = state?.billedUntil;
|
|
72
|
+
resourceInputs["billingThresholds"] = state?.billingThresholds;
|
|
73
|
+
resourceInputs["created"] = state?.created;
|
|
74
|
+
resourceInputs["currentPeriodEnd"] = state?.currentPeriodEnd;
|
|
75
|
+
resourceInputs["currentPeriodStart"] = state?.currentPeriodStart;
|
|
76
|
+
resourceInputs["currentTrial"] = state?.currentTrial;
|
|
77
|
+
resourceInputs["discounts"] = state?.discounts;
|
|
78
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
79
|
+
resourceInputs["object"] = state?.object;
|
|
80
|
+
resourceInputs["paymentBehavior"] = state?.paymentBehavior;
|
|
81
|
+
resourceInputs["plan"] = state?.plan;
|
|
82
|
+
resourceInputs["price"] = state?.price;
|
|
83
|
+
resourceInputs["priceData"] = state?.priceData;
|
|
84
|
+
resourceInputs["prorationBehavior"] = state?.prorationBehavior;
|
|
85
|
+
resourceInputs["prorationDate"] = state?.prorationDate;
|
|
86
|
+
resourceInputs["quantity"] = state?.quantity;
|
|
87
|
+
resourceInputs["subscription"] = state?.subscription;
|
|
88
|
+
resourceInputs["taxRates"] = state?.taxRates;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
const args = argsOrState;
|
|
92
|
+
if (args?.subscription === undefined && !opts.urn) {
|
|
93
|
+
throw new Error("Missing required property 'subscription'");
|
|
94
|
+
}
|
|
95
|
+
resourceInputs["billingThresholds"] = args?.billingThresholds;
|
|
96
|
+
resourceInputs["currentTrial"] = args?.currentTrial;
|
|
97
|
+
resourceInputs["discounts"] = args?.discounts;
|
|
98
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
99
|
+
resourceInputs["paymentBehavior"] = args?.paymentBehavior ? pulumi.secret(args.paymentBehavior) : undefined;
|
|
100
|
+
resourceInputs["plan"] = args?.plan;
|
|
101
|
+
resourceInputs["price"] = args?.price;
|
|
102
|
+
resourceInputs["priceData"] = args?.priceData ? pulumi.secret(args.priceData) : undefined;
|
|
103
|
+
resourceInputs["prorationBehavior"] = args?.prorationBehavior ? pulumi.secret(args.prorationBehavior) : undefined;
|
|
104
|
+
resourceInputs["prorationDate"] = args?.prorationDate ? pulumi.secret(args.prorationDate) : undefined;
|
|
105
|
+
resourceInputs["quantity"] = args?.quantity;
|
|
106
|
+
resourceInputs["subscription"] = args?.subscription;
|
|
107
|
+
resourceInputs["taxRates"] = args?.taxRates;
|
|
108
|
+
resourceInputs["billedUntil"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["currentPeriodEnd"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["currentPeriodStart"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["object"] = undefined /*out*/;
|
|
113
|
+
}
|
|
114
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
115
|
+
const secretOpts = { additionalSecretOutputs: ["paymentBehavior", "priceData", "prorationBehavior", "prorationDate"] };
|
|
116
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
117
|
+
super(SubscriptionItem.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.SubscriptionItem = SubscriptionItem;
|
|
121
|
+
//# sourceMappingURL=subscriptionItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription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,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,iBAAiB,EAAE,WAAW,EAAE,mBAAmB,EAAE,eAAe,CAAC,EAAE,CAAC;QACvH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACnH,CAAC;;AA3LL,4CA4LC"}
|
|
@@ -0,0 +1,263 @@
|
|
|
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 SubscriptionSchedule extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing SubscriptionSchedule 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?: SubscriptionScheduleState, opts?: pulumi.CustomResourceOptions): SubscriptionSchedule;
|
|
15
|
+
/**
|
|
16
|
+
* Check whether an existing SubscriptionSchedule 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?: SubscriptionScheduleState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of SubscriptionSchedule. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj: any): obj is SubscriptionSchedule;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the Connect Application that created the schedule.
|
|
30
|
+
*/
|
|
31
|
+
readonly application: pulumi.Output<string>;
|
|
32
|
+
/**
|
|
33
|
+
* The billing mode of the subscription.
|
|
34
|
+
*/
|
|
35
|
+
readonly billingMode: pulumi.Output<outputs.SubscriptionScheduleBillingMode>;
|
|
36
|
+
/**
|
|
37
|
+
* Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
|
38
|
+
*/
|
|
39
|
+
readonly canceledAt: pulumi.Output<number>;
|
|
40
|
+
/**
|
|
41
|
+
* Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
|
|
42
|
+
*/
|
|
43
|
+
readonly completedAt: pulumi.Output<number>;
|
|
44
|
+
/**
|
|
45
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
46
|
+
*/
|
|
47
|
+
readonly created: pulumi.Output<number>;
|
|
48
|
+
/**
|
|
49
|
+
* Object representing the start and end dates for the current phase of the subscription schedule, if it is <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>.
|
|
50
|
+
*/
|
|
51
|
+
readonly currentPhase: pulumi.Output<outputs.SubscriptionScheduleCurrentPhase>;
|
|
52
|
+
/**
|
|
53
|
+
* ID of the customer who owns the subscription schedule.
|
|
54
|
+
*/
|
|
55
|
+
readonly customer: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* ID of the account who owns the subscription schedule.
|
|
58
|
+
*/
|
|
59
|
+
readonly customerAccount: pulumi.Output<string>;
|
|
60
|
+
readonly defaultSettings: pulumi.Output<outputs.SubscriptionScheduleDefaultSettings>;
|
|
61
|
+
/**
|
|
62
|
+
* Behavior of the subscription schedule and underlying subscription when it ends. Possible values are <span pulumi-lang-nodejs="`release`" pulumi-lang-dotnet="`Release`" pulumi-lang-go="`release`" pulumi-lang-python="`release`" pulumi-lang-yaml="`release`" pulumi-lang-java="`release`" pulumi-lang-hcl="`release`">`release`</span> or <span pulumi-lang-nodejs="`cancel`" pulumi-lang-dotnet="`Cancel`" pulumi-lang-go="`cancel`" pulumi-lang-python="`cancel`" pulumi-lang-yaml="`cancel`" pulumi-lang-java="`cancel`" pulumi-lang-hcl="`cancel`">`cancel`</span> with the default being <span pulumi-lang-nodejs="`release`" pulumi-lang-dotnet="`Release`" pulumi-lang-go="`release`" pulumi-lang-python="`release`" pulumi-lang-yaml="`release`" pulumi-lang-java="`release`" pulumi-lang-hcl="`release`">`release`</span>. <span pulumi-lang-nodejs="`release`" pulumi-lang-dotnet="`Release`" pulumi-lang-go="`release`" pulumi-lang-python="`release`" pulumi-lang-yaml="`release`" pulumi-lang-java="`release`" pulumi-lang-hcl="`release`">`release`</span> will end the subscription schedule and keep the underlying subscription running. <span pulumi-lang-nodejs="`cancel`" pulumi-lang-dotnet="`Cancel`" pulumi-lang-go="`cancel`" pulumi-lang-python="`cancel`" pulumi-lang-yaml="`cancel`" pulumi-lang-java="`cancel`" pulumi-lang-hcl="`cancel`">`cancel`</span> will end the subscription schedule and cancel the underlying subscription.
|
|
63
|
+
*/
|
|
64
|
+
readonly endBehavior: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
67
|
+
* Migrate an existing subscription to be managed by a subscription schedule. If this parameter is set, a subscription schedule will be created using the subscription's item(s), set to auto-renew using the subscription's interval. When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls.
|
|
68
|
+
*/
|
|
69
|
+
readonly fromSubscription: pulumi.Output<string | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* 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>.
|
|
72
|
+
*/
|
|
73
|
+
readonly livemode: pulumi.Output<boolean>;
|
|
74
|
+
/**
|
|
75
|
+
* 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.
|
|
76
|
+
*/
|
|
77
|
+
readonly metadata: pulumi.Output<{
|
|
78
|
+
[key: string]: string;
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
82
|
+
*/
|
|
83
|
+
readonly object: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The pause schedules for this subscription schedule.
|
|
86
|
+
*/
|
|
87
|
+
readonly pauseSchedules: pulumi.Output<outputs.SubscriptionSchedulePauseSchedule[]>;
|
|
88
|
+
/**
|
|
89
|
+
* Configuration for the subscription schedule's phases.
|
|
90
|
+
*/
|
|
91
|
+
readonly phases: pulumi.Output<outputs.SubscriptionSchedulePhase[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
|
94
|
+
*/
|
|
95
|
+
readonly releasedAt: pulumi.Output<number>;
|
|
96
|
+
/**
|
|
97
|
+
* ID of the subscription once managed by the subscription schedule (if it is released).
|
|
98
|
+
*/
|
|
99
|
+
readonly releasedSubscription: pulumi.Output<string>;
|
|
100
|
+
/**
|
|
101
|
+
* When the subscription schedule starts. We recommend using <span pulumi-lang-nodejs="`now`" pulumi-lang-dotnet="`Now`" pulumi-lang-go="`now`" pulumi-lang-python="`now`" pulumi-lang-yaml="`now`" pulumi-lang-java="`now`" pulumi-lang-hcl="`now`">`now`</span> so that it starts the subscription immediately, and to avoid unexpected behavior due to request delays or clock skew resulting in a slightly backdated or postdated start. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.
|
|
102
|
+
*/
|
|
103
|
+
readonly startDate: pulumi.Output<number | undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* The present status of the subscription schedule. Possible values are <span pulumi-lang-nodejs="`notStarted`" pulumi-lang-dotnet="`NotStarted`" pulumi-lang-go="`notStarted`" pulumi-lang-python="`not_started`" pulumi-lang-yaml="`notStarted`" pulumi-lang-java="`notStarted`" pulumi-lang-hcl="`not_started`">`notStarted`</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="`completed`" pulumi-lang-dotnet="`Completed`" pulumi-lang-go="`completed`" pulumi-lang-python="`completed`" pulumi-lang-yaml="`completed`" pulumi-lang-java="`completed`" pulumi-lang-hcl="`completed`">`completed`</span>, <span pulumi-lang-nodejs="`released`" pulumi-lang-dotnet="`Released`" pulumi-lang-go="`released`" pulumi-lang-python="`released`" pulumi-lang-yaml="`released`" pulumi-lang-java="`released`" pulumi-lang-hcl="`released`">`released`</span>, 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>. You can read more about the different states in our [behavior guide](https://docs.stripe.com/billing/subscriptions/subscription-schedules).
|
|
106
|
+
*/
|
|
107
|
+
readonly status: pulumi.Output<string>;
|
|
108
|
+
/**
|
|
109
|
+
* ID of the subscription managed by the subscription schedule.
|
|
110
|
+
*/
|
|
111
|
+
readonly subscription: pulumi.Output<string>;
|
|
112
|
+
/**
|
|
113
|
+
* ID of the test clock this subscription schedule belongs to.
|
|
114
|
+
*/
|
|
115
|
+
readonly testClock: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Create a SubscriptionSchedule resource with the given unique name, arguments, and options.
|
|
118
|
+
*
|
|
119
|
+
* @param name The _unique_ name of the resource.
|
|
120
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
121
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
122
|
+
*/
|
|
123
|
+
constructor(name: string, args?: SubscriptionScheduleArgs, opts?: pulumi.CustomResourceOptions);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Input properties used for looking up and filtering SubscriptionSchedule resources.
|
|
127
|
+
*/
|
|
128
|
+
export interface SubscriptionScheduleState {
|
|
129
|
+
/**
|
|
130
|
+
* ID of the Connect Application that created the schedule.
|
|
131
|
+
*/
|
|
132
|
+
application?: pulumi.Input<string | undefined>;
|
|
133
|
+
/**
|
|
134
|
+
* The billing mode of the subscription.
|
|
135
|
+
*/
|
|
136
|
+
billingMode?: pulumi.Input<inputs.SubscriptionScheduleBillingMode | undefined>;
|
|
137
|
+
/**
|
|
138
|
+
* Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
|
139
|
+
*/
|
|
140
|
+
canceledAt?: pulumi.Input<number | undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
|
|
143
|
+
*/
|
|
144
|
+
completedAt?: pulumi.Input<number | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
147
|
+
*/
|
|
148
|
+
created?: pulumi.Input<number | undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* Object representing the start and end dates for the current phase of the subscription schedule, if it is <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>.
|
|
151
|
+
*/
|
|
152
|
+
currentPhase?: pulumi.Input<inputs.SubscriptionScheduleCurrentPhase | undefined>;
|
|
153
|
+
/**
|
|
154
|
+
* ID of the customer who owns the subscription schedule.
|
|
155
|
+
*/
|
|
156
|
+
customer?: pulumi.Input<string | undefined>;
|
|
157
|
+
/**
|
|
158
|
+
* ID of the account who owns the subscription schedule.
|
|
159
|
+
*/
|
|
160
|
+
customerAccount?: pulumi.Input<string | undefined>;
|
|
161
|
+
defaultSettings?: pulumi.Input<inputs.SubscriptionScheduleDefaultSettings | undefined>;
|
|
162
|
+
/**
|
|
163
|
+
* Behavior of the subscription schedule and underlying subscription when it ends. Possible values are <span pulumi-lang-nodejs="`release`" pulumi-lang-dotnet="`Release`" pulumi-lang-go="`release`" pulumi-lang-python="`release`" pulumi-lang-yaml="`release`" pulumi-lang-java="`release`" pulumi-lang-hcl="`release`">`release`</span> or <span pulumi-lang-nodejs="`cancel`" pulumi-lang-dotnet="`Cancel`" pulumi-lang-go="`cancel`" pulumi-lang-python="`cancel`" pulumi-lang-yaml="`cancel`" pulumi-lang-java="`cancel`" pulumi-lang-hcl="`cancel`">`cancel`</span> with the default being <span pulumi-lang-nodejs="`release`" pulumi-lang-dotnet="`Release`" pulumi-lang-go="`release`" pulumi-lang-python="`release`" pulumi-lang-yaml="`release`" pulumi-lang-java="`release`" pulumi-lang-hcl="`release`">`release`</span>. <span pulumi-lang-nodejs="`release`" pulumi-lang-dotnet="`Release`" pulumi-lang-go="`release`" pulumi-lang-python="`release`" pulumi-lang-yaml="`release`" pulumi-lang-java="`release`" pulumi-lang-hcl="`release`">`release`</span> will end the subscription schedule and keep the underlying subscription running. <span pulumi-lang-nodejs="`cancel`" pulumi-lang-dotnet="`Cancel`" pulumi-lang-go="`cancel`" pulumi-lang-python="`cancel`" pulumi-lang-yaml="`cancel`" pulumi-lang-java="`cancel`" pulumi-lang-hcl="`cancel`">`cancel`</span> will end the subscription schedule and cancel the underlying subscription.
|
|
164
|
+
*/
|
|
165
|
+
endBehavior?: pulumi.Input<string | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
168
|
+
* Migrate an existing subscription to be managed by a subscription schedule. If this parameter is set, a subscription schedule will be created using the subscription's item(s), set to auto-renew using the subscription's interval. When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls.
|
|
169
|
+
*/
|
|
170
|
+
fromSubscription?: pulumi.Input<string | undefined>;
|
|
171
|
+
/**
|
|
172
|
+
* 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>.
|
|
173
|
+
*/
|
|
174
|
+
livemode?: pulumi.Input<boolean | undefined>;
|
|
175
|
+
/**
|
|
176
|
+
* 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.
|
|
177
|
+
*/
|
|
178
|
+
metadata?: pulumi.Input<{
|
|
179
|
+
[key: string]: pulumi.Input<string>;
|
|
180
|
+
} | undefined>;
|
|
181
|
+
/**
|
|
182
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
183
|
+
*/
|
|
184
|
+
object?: pulumi.Input<string | undefined>;
|
|
185
|
+
/**
|
|
186
|
+
* The pause schedules for this subscription schedule.
|
|
187
|
+
*/
|
|
188
|
+
pauseSchedules?: pulumi.Input<pulumi.Input<inputs.SubscriptionSchedulePauseSchedule>[] | undefined>;
|
|
189
|
+
/**
|
|
190
|
+
* Configuration for the subscription schedule's phases.
|
|
191
|
+
*/
|
|
192
|
+
phases?: pulumi.Input<pulumi.Input<inputs.SubscriptionSchedulePhase>[] | undefined>;
|
|
193
|
+
/**
|
|
194
|
+
* Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
|
195
|
+
*/
|
|
196
|
+
releasedAt?: pulumi.Input<number | undefined>;
|
|
197
|
+
/**
|
|
198
|
+
* ID of the subscription once managed by the subscription schedule (if it is released).
|
|
199
|
+
*/
|
|
200
|
+
releasedSubscription?: pulumi.Input<string | undefined>;
|
|
201
|
+
/**
|
|
202
|
+
* When the subscription schedule starts. We recommend using <span pulumi-lang-nodejs="`now`" pulumi-lang-dotnet="`Now`" pulumi-lang-go="`now`" pulumi-lang-python="`now`" pulumi-lang-yaml="`now`" pulumi-lang-java="`now`" pulumi-lang-hcl="`now`">`now`</span> so that it starts the subscription immediately, and to avoid unexpected behavior due to request delays or clock skew resulting in a slightly backdated or postdated start. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.
|
|
203
|
+
*/
|
|
204
|
+
startDate?: pulumi.Input<number | undefined>;
|
|
205
|
+
/**
|
|
206
|
+
* The present status of the subscription schedule. Possible values are <span pulumi-lang-nodejs="`notStarted`" pulumi-lang-dotnet="`NotStarted`" pulumi-lang-go="`notStarted`" pulumi-lang-python="`not_started`" pulumi-lang-yaml="`notStarted`" pulumi-lang-java="`notStarted`" pulumi-lang-hcl="`not_started`">`notStarted`</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="`completed`" pulumi-lang-dotnet="`Completed`" pulumi-lang-go="`completed`" pulumi-lang-python="`completed`" pulumi-lang-yaml="`completed`" pulumi-lang-java="`completed`" pulumi-lang-hcl="`completed`">`completed`</span>, <span pulumi-lang-nodejs="`released`" pulumi-lang-dotnet="`Released`" pulumi-lang-go="`released`" pulumi-lang-python="`released`" pulumi-lang-yaml="`released`" pulumi-lang-java="`released`" pulumi-lang-hcl="`released`">`released`</span>, 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>. You can read more about the different states in our [behavior guide](https://docs.stripe.com/billing/subscriptions/subscription-schedules).
|
|
207
|
+
*/
|
|
208
|
+
status?: pulumi.Input<string | undefined>;
|
|
209
|
+
/**
|
|
210
|
+
* ID of the subscription managed by the subscription schedule.
|
|
211
|
+
*/
|
|
212
|
+
subscription?: pulumi.Input<string | undefined>;
|
|
213
|
+
/**
|
|
214
|
+
* ID of the test clock this subscription schedule belongs to.
|
|
215
|
+
*/
|
|
216
|
+
testClock?: pulumi.Input<string | undefined>;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* The set of arguments for constructing a SubscriptionSchedule resource.
|
|
220
|
+
*/
|
|
221
|
+
export interface SubscriptionScheduleArgs {
|
|
222
|
+
/**
|
|
223
|
+
* The billing mode of the subscription.
|
|
224
|
+
*/
|
|
225
|
+
billingMode?: pulumi.Input<inputs.SubscriptionScheduleBillingMode | undefined>;
|
|
226
|
+
/**
|
|
227
|
+
* ID of the customer who owns the subscription schedule.
|
|
228
|
+
*/
|
|
229
|
+
customer?: pulumi.Input<string | undefined>;
|
|
230
|
+
/**
|
|
231
|
+
* ID of the account who owns the subscription schedule.
|
|
232
|
+
*/
|
|
233
|
+
customerAccount?: pulumi.Input<string | undefined>;
|
|
234
|
+
defaultSettings?: pulumi.Input<inputs.SubscriptionScheduleDefaultSettings | undefined>;
|
|
235
|
+
/**
|
|
236
|
+
* Behavior of the subscription schedule and underlying subscription when it ends. Possible values are <span pulumi-lang-nodejs="`release`" pulumi-lang-dotnet="`Release`" pulumi-lang-go="`release`" pulumi-lang-python="`release`" pulumi-lang-yaml="`release`" pulumi-lang-java="`release`" pulumi-lang-hcl="`release`">`release`</span> or <span pulumi-lang-nodejs="`cancel`" pulumi-lang-dotnet="`Cancel`" pulumi-lang-go="`cancel`" pulumi-lang-python="`cancel`" pulumi-lang-yaml="`cancel`" pulumi-lang-java="`cancel`" pulumi-lang-hcl="`cancel`">`cancel`</span> with the default being <span pulumi-lang-nodejs="`release`" pulumi-lang-dotnet="`Release`" pulumi-lang-go="`release`" pulumi-lang-python="`release`" pulumi-lang-yaml="`release`" pulumi-lang-java="`release`" pulumi-lang-hcl="`release`">`release`</span>. <span pulumi-lang-nodejs="`release`" pulumi-lang-dotnet="`Release`" pulumi-lang-go="`release`" pulumi-lang-python="`release`" pulumi-lang-yaml="`release`" pulumi-lang-java="`release`" pulumi-lang-hcl="`release`">`release`</span> will end the subscription schedule and keep the underlying subscription running. <span pulumi-lang-nodejs="`cancel`" pulumi-lang-dotnet="`Cancel`" pulumi-lang-go="`cancel`" pulumi-lang-python="`cancel`" pulumi-lang-yaml="`cancel`" pulumi-lang-java="`cancel`" pulumi-lang-hcl="`cancel`">`cancel`</span> will end the subscription schedule and cancel the underlying subscription.
|
|
237
|
+
*/
|
|
238
|
+
endBehavior?: pulumi.Input<string | undefined>;
|
|
239
|
+
/**
|
|
240
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
241
|
+
* Migrate an existing subscription to be managed by a subscription schedule. If this parameter is set, a subscription schedule will be created using the subscription's item(s), set to auto-renew using the subscription's interval. When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls.
|
|
242
|
+
*/
|
|
243
|
+
fromSubscription?: pulumi.Input<string | undefined>;
|
|
244
|
+
/**
|
|
245
|
+
* 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.
|
|
246
|
+
*/
|
|
247
|
+
metadata?: pulumi.Input<{
|
|
248
|
+
[key: string]: pulumi.Input<string>;
|
|
249
|
+
} | undefined>;
|
|
250
|
+
/**
|
|
251
|
+
* The pause schedules for this subscription schedule.
|
|
252
|
+
*/
|
|
253
|
+
pauseSchedules?: pulumi.Input<pulumi.Input<inputs.SubscriptionSchedulePauseSchedule>[] | undefined>;
|
|
254
|
+
/**
|
|
255
|
+
* Configuration for the subscription schedule's phases.
|
|
256
|
+
*/
|
|
257
|
+
phases?: pulumi.Input<pulumi.Input<inputs.SubscriptionSchedulePhase>[] | undefined>;
|
|
258
|
+
/**
|
|
259
|
+
* When the subscription schedule starts. We recommend using <span pulumi-lang-nodejs="`now`" pulumi-lang-dotnet="`Now`" pulumi-lang-go="`now`" pulumi-lang-python="`now`" pulumi-lang-yaml="`now`" pulumi-lang-java="`now`" pulumi-lang-hcl="`now`">`now`</span> so that it starts the subscription immediately, and to avoid unexpected behavior due to request delays or clock skew resulting in a slightly backdated or postdated start. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.
|
|
260
|
+
*/
|
|
261
|
+
startDate?: pulumi.Input<number | undefined>;
|
|
262
|
+
}
|
|
263
|
+
//# sourceMappingURL=subscriptionSchedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionSchedule.d.ts","source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C,CAAC;CAChD"}
|
|
@@ -0,0 +1,126 @@
|
|
|
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.SubscriptionSchedule = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
class SubscriptionSchedule extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing SubscriptionSchedule 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 SubscriptionSchedule(name, state, { ...opts, id: id });
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check whether an existing SubscriptionSchedule resource with the given ID exists.
|
|
46
|
+
*
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static exists(id, state, opts) {
|
|
52
|
+
return pulumi.runtime.existsResource("stripe:index/subscriptionSchedule:SubscriptionSchedule", id, state || {}, { ...opts }, utilities.getPackage());
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
static __pulumiType = 'stripe:index/subscriptionSchedule:SubscriptionSchedule';
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of SubscriptionSchedule. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj) {
|
|
61
|
+
if (obj === undefined || obj === null) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return obj['__pulumiType'] === SubscriptionSchedule.__pulumiType;
|
|
65
|
+
}
|
|
66
|
+
constructor(name, argsOrState, opts) {
|
|
67
|
+
let resourceInputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (opts.id) {
|
|
70
|
+
const state = argsOrState;
|
|
71
|
+
resourceInputs["application"] = state?.application;
|
|
72
|
+
resourceInputs["billingMode"] = state?.billingMode;
|
|
73
|
+
resourceInputs["canceledAt"] = state?.canceledAt;
|
|
74
|
+
resourceInputs["completedAt"] = state?.completedAt;
|
|
75
|
+
resourceInputs["created"] = state?.created;
|
|
76
|
+
resourceInputs["currentPhase"] = state?.currentPhase;
|
|
77
|
+
resourceInputs["customer"] = state?.customer;
|
|
78
|
+
resourceInputs["customerAccount"] = state?.customerAccount;
|
|
79
|
+
resourceInputs["defaultSettings"] = state?.defaultSettings;
|
|
80
|
+
resourceInputs["endBehavior"] = state?.endBehavior;
|
|
81
|
+
resourceInputs["fromSubscription"] = state?.fromSubscription;
|
|
82
|
+
resourceInputs["livemode"] = state?.livemode;
|
|
83
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
84
|
+
resourceInputs["object"] = state?.object;
|
|
85
|
+
resourceInputs["pauseSchedules"] = state?.pauseSchedules;
|
|
86
|
+
resourceInputs["phases"] = state?.phases;
|
|
87
|
+
resourceInputs["releasedAt"] = state?.releasedAt;
|
|
88
|
+
resourceInputs["releasedSubscription"] = state?.releasedSubscription;
|
|
89
|
+
resourceInputs["startDate"] = state?.startDate;
|
|
90
|
+
resourceInputs["status"] = state?.status;
|
|
91
|
+
resourceInputs["subscription"] = state?.subscription;
|
|
92
|
+
resourceInputs["testClock"] = state?.testClock;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
const args = argsOrState;
|
|
96
|
+
resourceInputs["billingMode"] = args?.billingMode;
|
|
97
|
+
resourceInputs["customer"] = args?.customer;
|
|
98
|
+
resourceInputs["customerAccount"] = args?.customerAccount;
|
|
99
|
+
resourceInputs["defaultSettings"] = args?.defaultSettings;
|
|
100
|
+
resourceInputs["endBehavior"] = args?.endBehavior;
|
|
101
|
+
resourceInputs["fromSubscription"] = args?.fromSubscription ? pulumi.secret(args.fromSubscription) : undefined;
|
|
102
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
103
|
+
resourceInputs["pauseSchedules"] = args?.pauseSchedules;
|
|
104
|
+
resourceInputs["phases"] = args?.phases;
|
|
105
|
+
resourceInputs["startDate"] = args?.startDate;
|
|
106
|
+
resourceInputs["application"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["canceledAt"] = undefined /*out*/;
|
|
108
|
+
resourceInputs["completedAt"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["currentPhase"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["livemode"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["object"] = undefined /*out*/;
|
|
113
|
+
resourceInputs["releasedAt"] = undefined /*out*/;
|
|
114
|
+
resourceInputs["releasedSubscription"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["subscription"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["testClock"] = undefined /*out*/;
|
|
118
|
+
}
|
|
119
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
120
|
+
const secretOpts = { additionalSecretOutputs: ["fromSubscription"] };
|
|
121
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
122
|
+
super(SubscriptionSchedule.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.SubscriptionSchedule = SubscriptionSchedule;
|
|
126
|
+
//# sourceMappingURL=subscriptionSchedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionSchedule.js","sourceRoot":"","sources":["../subscriptionSchedule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EA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