@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.
Files changed (283) hide show
  1. package/README.md +3 -3
  2. package/bin/applePayDomain.d.ts +72 -0
  3. package/bin/applePayDomain.d.ts.map +1 -0
  4. package/bin/applePayDomain.js +91 -0
  5. package/bin/applePayDomain.js.map +1 -0
  6. package/bin/appsInstall.d.ts +201 -0
  7. package/bin/appsInstall.d.ts.map +1 -0
  8. package/bin/appsInstall.js +121 -0
  9. package/bin/appsInstall.js.map +1 -0
  10. package/bin/billingAlert.d.ts +107 -0
  11. package/bin/billingAlert.d.ts.map +1 -0
  12. package/bin/billingAlert.js +98 -0
  13. package/bin/billingAlert.js.map +1 -0
  14. package/bin/billingCreditGrant.d.ts +203 -0
  15. package/bin/billingCreditGrant.d.ts.map +1 -0
  16. package/bin/billingCreditGrant.js +118 -0
  17. package/bin/billingCreditGrant.js.map +1 -0
  18. package/bin/billingFeedbackOption.d.ts +85 -0
  19. package/bin/billingFeedbackOption.d.ts.map +1 -0
  20. package/bin/billingFeedbackOption.js +93 -0
  21. package/bin/billingFeedbackOption.js.map +1 -0
  22. package/bin/billingMeter.d.ts +134 -0
  23. package/bin/billingMeter.d.ts.map +1 -0
  24. package/bin/billingMeter.js +110 -0
  25. package/bin/billingMeter.js.map +1 -0
  26. package/bin/billingPortalConfiguration.d.ts +150 -0
  27. package/bin/billingPortalConfiguration.d.ts.map +1 -0
  28. package/bin/billingPortalConfiguration.js +107 -0
  29. package/bin/billingPortalConfiguration.js.map +1 -0
  30. package/bin/charge.d.ts +496 -0
  31. package/bin/charge.d.ts.map +1 -0
  32. package/bin/charge.js +176 -0
  33. package/bin/charge.js.map +1 -0
  34. package/bin/climateOrder.d.ts +247 -0
  35. package/bin/climateOrder.d.ts.map +1 -0
  36. package/bin/climateOrder.js +129 -0
  37. package/bin/climateOrder.js.map +1 -0
  38. package/bin/config/index.d.ts +2 -0
  39. package/bin/config/index.d.ts.map +1 -0
  40. package/bin/config/index.js +21 -0
  41. package/bin/config/index.js.map +1 -0
  42. package/bin/config/vars.d.ts +9 -0
  43. package/bin/config/vars.d.ts.map +1 -0
  44. package/bin/config/vars.js +42 -0
  45. package/bin/config/vars.js.map +1 -0
  46. package/bin/coupon.d.ts +228 -0
  47. package/bin/coupon.d.ts.map +1 -0
  48. package/bin/coupon.js +114 -0
  49. package/bin/coupon.js.map +1 -0
  50. package/bin/creditNote.d.ts +374 -0
  51. package/bin/creditNote.d.ts.map +1 -0
  52. package/bin/creditNote.js +151 -0
  53. package/bin/creditNote.js.map +1 -0
  54. package/bin/customer.d.ts +384 -0
  55. package/bin/customer.d.ts.map +1 -0
  56. package/bin/customer.js +144 -0
  57. package/bin/customer.js.map +1 -0
  58. package/bin/customerBalanceTransaction.d.ts +175 -0
  59. package/bin/customerBalanceTransaction.d.ts.map +1 -0
  60. package/bin/customerBalanceTransaction.js +115 -0
  61. package/bin/customerBalanceTransaction.js.map +1 -0
  62. package/bin/entitlementsFeature.d.ts +111 -0
  63. package/bin/entitlementsFeature.d.ts.map +1 -0
  64. package/bin/entitlementsFeature.js +95 -0
  65. package/bin/entitlementsFeature.js.map +1 -0
  66. package/bin/file.d.ts +153 -0
  67. package/bin/file.d.ts.map +1 -0
  68. package/bin/file.js +110 -0
  69. package/bin/file.js.map +1 -0
  70. package/bin/fileLink.d.ts +127 -0
  71. package/bin/fileLink.d.ts.map +1 -0
  72. package/bin/fileLink.js +99 -0
  73. package/bin/fileLink.js.map +1 -0
  74. package/bin/index.d.ts +191 -0
  75. package/bin/index.d.ts.map +1 -0
  76. package/bin/index.js +370 -0
  77. package/bin/index.js.map +1 -0
  78. package/bin/invoice.d.ts +795 -0
  79. package/bin/invoice.d.ts.map +1 -0
  80. package/bin/invoice.js +242 -0
  81. package/bin/invoice.js.map +1 -0
  82. package/bin/invoiceItem.d.ts +354 -0
  83. package/bin/invoiceItem.d.ts.map +1 -0
  84. package/bin/invoiceItem.js +136 -0
  85. package/bin/invoiceItem.js.map +1 -0
  86. package/bin/issuingCard.d.ts +313 -0
  87. package/bin/issuingCard.d.ts.map +1 -0
  88. package/bin/issuingCard.js +138 -0
  89. package/bin/issuingCard.js.map +1 -0
  90. package/bin/issuingCardholder.d.ts +205 -0
  91. package/bin/issuingCardholder.d.ts.map +1 -0
  92. package/bin/issuingCardholder.js +113 -0
  93. package/bin/issuingCardholder.js.map +1 -0
  94. package/bin/issuingDispute.d.ts +152 -0
  95. package/bin/issuingDispute.d.ts.map +1 -0
  96. package/bin/issuingDispute.js +102 -0
  97. package/bin/issuingDispute.js.map +1 -0
  98. package/bin/issuingPersonalizationDesign.d.ts +177 -0
  99. package/bin/issuingPersonalizationDesign.d.ts.map +1 -0
  100. package/bin/issuingPersonalizationDesign.js +111 -0
  101. package/bin/issuingPersonalizationDesign.js.map +1 -0
  102. package/bin/package.json +34 -0
  103. package/bin/paymentIntent.d.ts +670 -0
  104. package/bin/paymentIntent.d.ts.map +1 -0
  105. package/bin/paymentIntent.js +194 -0
  106. package/bin/paymentIntent.js.map +1 -0
  107. package/bin/paymentLink.d.ts +415 -0
  108. package/bin/paymentLink.d.ts.map +1 -0
  109. package/bin/paymentLink.js +155 -0
  110. package/bin/paymentLink.js.map +1 -0
  111. package/bin/paymentMethod.d.ts +232 -0
  112. package/bin/paymentMethod.d.ts.map +1 -0
  113. package/bin/paymentMethod.js +154 -0
  114. package/bin/paymentMethod.js.map +1 -0
  115. package/bin/paymentMethodConfiguration.d.ts +310 -0
  116. package/bin/paymentMethodConfiguration.d.ts.map +1 -0
  117. package/bin/paymentMethodConfiguration.js +218 -0
  118. package/bin/paymentMethodConfiguration.js.map +1 -0
  119. package/bin/paymentMethodDomain.d.ts +143 -0
  120. package/bin/paymentMethodDomain.d.ts.map +1 -0
  121. package/bin/paymentMethodDomain.js +105 -0
  122. package/bin/paymentMethodDomain.js.map +1 -0
  123. package/bin/person.d.ts +436 -0
  124. package/bin/person.d.ts.map +1 -0
  125. package/bin/person.js +157 -0
  126. package/bin/person.js.map +1 -0
  127. package/bin/plan.d.ts +281 -0
  128. package/bin/plan.d.ts.map +1 -0
  129. package/bin/plan.js +126 -0
  130. package/bin/plan.js.map +1 -0
  131. package/bin/price.d.ts +304 -0
  132. package/bin/price.d.ts.map +1 -0
  133. package/bin/price.js +129 -0
  134. package/bin/price.js.map +1 -0
  135. package/bin/product.d.ts +285 -0
  136. package/bin/product.d.ts.map +1 -0
  137. package/bin/product.js +122 -0
  138. package/bin/product.js.map +1 -0
  139. package/bin/productCatalogTrialOffer.d.ts +105 -0
  140. package/bin/productCatalogTrialOffer.d.ts.map +1 -0
  141. package/bin/productCatalogTrialOffer.js +103 -0
  142. package/bin/productCatalogTrialOffer.js.map +1 -0
  143. package/bin/productFeature.d.ts +88 -0
  144. package/bin/productFeature.d.ts.map +1 -0
  145. package/bin/productFeature.js +94 -0
  146. package/bin/productFeature.js.map +1 -0
  147. package/bin/promotionCode.d.ts +175 -0
  148. package/bin/promotionCode.d.ts.map +1 -0
  149. package/bin/promotionCode.js +106 -0
  150. package/bin/promotionCode.js.map +1 -0
  151. package/bin/provider.d.ts +60 -0
  152. package/bin/provider.d.ts.map +1 -0
  153. package/bin/provider.js +80 -0
  154. package/bin/provider.js.map +1 -0
  155. package/bin/quote.d.ts +350 -0
  156. package/bin/quote.d.ts.map +1 -0
  157. package/bin/quote.js +144 -0
  158. package/bin/quote.js.map +1 -0
  159. package/bin/radarValueList.d.ts +131 -0
  160. package/bin/radarValueList.d.ts.map +1 -0
  161. package/bin/radarValueList.js +99 -0
  162. package/bin/radarValueList.js.map +1 -0
  163. package/bin/radarValueListItem.d.ts +101 -0
  164. package/bin/radarValueListItem.d.ts.map +1 -0
  165. package/bin/radarValueListItem.js +98 -0
  166. package/bin/radarValueListItem.js.map +1 -0
  167. package/bin/setupIntent.d.ts +492 -0
  168. package/bin/setupIntent.d.ts.map +1 -0
  169. package/bin/setupIntent.js +154 -0
  170. package/bin/setupIntent.js.map +1 -0
  171. package/bin/shippingRate.d.ts +164 -0
  172. package/bin/shippingRate.d.ts.map +1 -0
  173. package/bin/shippingRate.js +105 -0
  174. package/bin/shippingRate.js.map +1 -0
  175. package/bin/source.d.ts +303 -0
  176. package/bin/source.d.ts.map +1 -0
  177. package/bin/source.js +164 -0
  178. package/bin/source.js.map +1 -0
  179. package/bin/subscription.d.ts +650 -0
  180. package/bin/subscription.d.ts.map +1 -0
  181. package/bin/subscription.js +190 -0
  182. package/bin/subscription.js.map +1 -0
  183. package/bin/subscriptionItem.d.ts +297 -0
  184. package/bin/subscriptionItem.d.ts.map +1 -0
  185. package/bin/subscriptionItem.js +121 -0
  186. package/bin/subscriptionItem.js.map +1 -0
  187. package/bin/subscriptionSchedule.d.ts +263 -0
  188. package/bin/subscriptionSchedule.d.ts.map +1 -0
  189. package/bin/subscriptionSchedule.js +126 -0
  190. package/bin/subscriptionSchedule.js.map +1 -0
  191. package/bin/taxId.d.ts +139 -0
  192. package/bin/taxId.d.ts.map +1 -0
  193. package/bin/taxId.js +109 -0
  194. package/bin/taxId.js.map +1 -0
  195. package/bin/taxLocation.d.ts +90 -0
  196. package/bin/taxLocation.d.ts.map +1 -0
  197. package/bin/taxLocation.js +96 -0
  198. package/bin/taxLocation.js.map +1 -0
  199. package/bin/taxRate.d.ts +233 -0
  200. package/bin/taxRate.d.ts.map +1 -0
  201. package/bin/taxRate.js +123 -0
  202. package/bin/taxRate.js.map +1 -0
  203. package/bin/taxRegistration.d.ts +118 -0
  204. package/bin/taxRegistration.d.ts.map +1 -0
  205. package/bin/taxRegistration.js +105 -0
  206. package/bin/taxRegistration.js.map +1 -0
  207. package/bin/terminalConfiguration.d.ts +131 -0
  208. package/bin/terminalConfiguration.d.ts.map +1 -0
  209. package/bin/terminalConfiguration.js +120 -0
  210. package/bin/terminalConfiguration.js.map +1 -0
  211. package/bin/terminalLocation.d.ts +147 -0
  212. package/bin/terminalLocation.d.ts.map +1 -0
  213. package/bin/terminalLocation.js +100 -0
  214. package/bin/terminalLocation.js.map +1 -0
  215. package/bin/terminalReader.d.ts +168 -0
  216. package/bin/terminalReader.d.ts.map +1 -0
  217. package/bin/terminalReader.js +109 -0
  218. package/bin/terminalReader.js.map +1 -0
  219. package/bin/threeDSecureAuthentication.d.ts +297 -0
  220. package/bin/threeDSecureAuthentication.d.ts.map +1 -0
  221. package/bin/threeDSecureAuthentication.js +132 -0
  222. package/bin/threeDSecureAuthentication.js.map +1 -0
  223. package/bin/treasuryFinancialAccount.d.ts +203 -0
  224. package/bin/treasuryFinancialAccount.d.ts.map +1 -0
  225. package/bin/treasuryFinancialAccount.js +119 -0
  226. package/bin/treasuryFinancialAccount.js.map +1 -0
  227. package/bin/types/index.d.ts +4 -0
  228. package/bin/types/index.d.ts.map +1 -0
  229. package/bin/types/index.js +34 -0
  230. package/bin/types/index.js.map +1 -0
  231. package/bin/types/input.d.ts +18743 -0
  232. package/bin/types/input.d.ts.map +1 -0
  233. package/bin/types/input.js +5 -0
  234. package/bin/types/input.js.map +1 -0
  235. package/bin/types/output.d.ts +18742 -0
  236. package/bin/types/output.d.ts.map +1 -0
  237. package/bin/types/output.js +5 -0
  238. package/bin/types/output.js.map +1 -0
  239. package/bin/utilities.d.ts +6 -0
  240. package/bin/utilities.d.ts.map +1 -0
  241. package/bin/utilities.js +125 -0
  242. package/bin/utilities.js.map +1 -0
  243. package/bin/v2coreEventDestination.d.ts +260 -0
  244. package/bin/v2coreEventDestination.d.ts.map +1 -0
  245. package/bin/v2coreEventDestination.js +127 -0
  246. package/bin/v2coreEventDestination.js.map +1 -0
  247. package/bin/v2coreVaultGbBankAccount.d.ts +182 -0
  248. package/bin/v2coreVaultGbBankAccount.d.ts.map +1 -0
  249. package/bin/v2coreVaultGbBankAccount.js +111 -0
  250. package/bin/v2coreVaultGbBankAccount.js.map +1 -0
  251. package/bin/v2coreVaultUsBankAccount.d.ts +193 -0
  252. package/bin/v2coreVaultUsBankAccount.d.ts.map +1 -0
  253. package/bin/v2coreVaultUsBankAccount.js +118 -0
  254. package/bin/v2coreVaultUsBankAccount.js.map +1 -0
  255. package/bin/v2moneyManagementFinancialAddress.d.ts +117 -0
  256. package/bin/v2moneyManagementFinancialAddress.d.ts.map +1 -0
  257. package/bin/v2moneyManagementFinancialAddress.js +102 -0
  258. package/bin/v2moneyManagementFinancialAddress.js.map +1 -0
  259. package/bin/v2moneyManagementInboundTransfer.d.ts +127 -0
  260. package/bin/v2moneyManagementInboundTransfer.d.ts.map +1 -0
  261. package/bin/v2moneyManagementInboundTransfer.js +105 -0
  262. package/bin/v2moneyManagementInboundTransfer.js.map +1 -0
  263. package/bin/v2moneyManagementOutboundPayment.d.ts +237 -0
  264. package/bin/v2moneyManagementOutboundPayment.d.ts.map +1 -0
  265. package/bin/v2moneyManagementOutboundPayment.js +125 -0
  266. package/bin/v2moneyManagementOutboundPayment.js.map +1 -0
  267. package/bin/v2moneyManagementOutboundSetupIntent.d.ts +121 -0
  268. package/bin/v2moneyManagementOutboundSetupIntent.d.ts.map +1 -0
  269. package/bin/v2moneyManagementOutboundSetupIntent.js +96 -0
  270. package/bin/v2moneyManagementOutboundSetupIntent.js.map +1 -0
  271. package/bin/v2moneyManagementPayoutIntent.d.ts +246 -0
  272. package/bin/v2moneyManagementPayoutIntent.d.ts.map +1 -0
  273. package/bin/v2moneyManagementPayoutIntent.js +127 -0
  274. package/bin/v2moneyManagementPayoutIntent.js.map +1 -0
  275. package/bin/v2moneyManagementRecipientVerification.d.ts +155 -0
  276. package/bin/v2moneyManagementRecipientVerification.d.ts.map +1 -0
  277. package/bin/v2moneyManagementRecipientVerification.js +107 -0
  278. package/bin/v2moneyManagementRecipientVerification.js.map +1 -0
  279. package/bin/webhookEndpoint.d.ts +171 -0
  280. package/bin/webhookEndpoint.d.ts.map +1 -0
  281. package/bin/webhookEndpoint.js +112 -0
  282. package/bin/webhookEndpoint.js.map +1 -0
  283. package/package.json +31 -3
@@ -0,0 +1,650 @@
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 Subscription extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing Subscription 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?: 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>;
23
+ /**
24
+ * Returns true if the given object is an instance of Subscription. 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 Subscription;
28
+ /**
29
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
30
+ * 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.
31
+ */
32
+ readonly addInvoiceItems: pulumi.Output<outputs.SubscriptionAddInvoiceItem[] | undefined>;
33
+ /**
34
+ * ID of the Connect Application that created the subscription.
35
+ */
36
+ readonly application: pulumi.Output<string>;
37
+ /**
38
+ * 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.
39
+ */
40
+ readonly applicationFeePercent: pulumi.Output<number>;
41
+ readonly automaticTax: pulumi.Output<outputs.SubscriptionAutomaticTax>;
42
+ /**
43
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
44
+ * 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.
45
+ */
46
+ readonly backdateStartDate: pulumi.Output<number | undefined>;
47
+ /**
48
+ * 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.
49
+ */
50
+ readonly billingCycleAnchor: pulumi.Output<number>;
51
+ /**
52
+ * 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>.
53
+ */
54
+ readonly billingCycleAnchorConfig: pulumi.Output<outputs.SubscriptionBillingCycleAnchorConfig>;
55
+ /**
56
+ * The billing mode of the subscription.
57
+ */
58
+ readonly billingMode: pulumi.Output<outputs.SubscriptionBillingMode>;
59
+ /**
60
+ * Billing schedules for this subscription.
61
+ */
62
+ readonly billingSchedules: pulumi.Output<outputs.SubscriptionBillingSchedule[]>;
63
+ /**
64
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
65
+ */
66
+ readonly billingThresholds: pulumi.Output<outputs.SubscriptionBillingThresholds>;
67
+ /**
68
+ * A date in the future at which the subscription will automatically get canceled
69
+ */
70
+ readonly cancelAt: pulumi.Output<number>;
71
+ /**
72
+ * Whether this subscription will (if `status=active`) or did (if `status=canceled`) cancel at the end of the current billing period.
73
+ */
74
+ readonly cancelAtPeriodEnd: pulumi.Output<boolean>;
75
+ /**
76
+ * 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.
77
+ */
78
+ readonly canceledAt: pulumi.Output<number>;
79
+ /**
80
+ * Details about why this subscription was cancelled
81
+ */
82
+ readonly cancellationDetails: pulumi.Output<outputs.SubscriptionCancellationDetails>;
83
+ /**
84
+ * 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>.
85
+ */
86
+ readonly collectionMethod: pulumi.Output<string>;
87
+ /**
88
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
89
+ */
90
+ readonly created: pulumi.Output<number>;
91
+ /**
92
+ * 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).
93
+ */
94
+ readonly currency: pulumi.Output<string>;
95
+ /**
96
+ * ID of the customer who owns the subscription.
97
+ */
98
+ readonly customer: pulumi.Output<string>;
99
+ /**
100
+ * ID of the account representing the customer who owns the subscription.
101
+ */
102
+ readonly customerAccount: pulumi.Output<string>;
103
+ /**
104
+ * 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`.
105
+ */
106
+ readonly daysUntilDue: pulumi.Output<number>;
107
+ /**
108
+ * 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).
109
+ */
110
+ readonly defaultPaymentMethod: pulumi.Output<string>;
111
+ /**
112
+ * 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).
113
+ */
114
+ readonly defaultSource: pulumi.Output<string>;
115
+ /**
116
+ * 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.
117
+ */
118
+ readonly defaultTaxRates: pulumi.Output<string[]>;
119
+ /**
120
+ * 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.
121
+ */
122
+ readonly description: pulumi.Output<string>;
123
+ /**
124
+ * The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
125
+ */
126
+ readonly discounts: pulumi.Output<outputs.SubscriptionDiscount[]>;
127
+ /**
128
+ * If the subscription has ended, the date the subscription ended.
129
+ */
130
+ readonly endedAt: pulumi.Output<number>;
131
+ readonly invoiceSettings: pulumi.Output<outputs.SubscriptionInvoiceSettings>;
132
+ /**
133
+ * List of subscription items, each with an attached price.
134
+ */
135
+ readonly items: pulumi.Output<outputs.SubscriptionItem[]>;
136
+ /**
137
+ * 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>.
138
+ */
139
+ readonly livemode: pulumi.Output<boolean>;
140
+ /**
141
+ * 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).
142
+ */
143
+ readonly managedPayments: pulumi.Output<outputs.SubscriptionManagedPayments>;
144
+ /**
145
+ * 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.
146
+ */
147
+ readonly metadata: pulumi.Output<{
148
+ [key: string]: string;
149
+ }>;
150
+ /**
151
+ * 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>.
152
+ */
153
+ readonly nextPendingInvoiceItemInvoice: pulumi.Output<number>;
154
+ /**
155
+ * String representing the object's type. Objects of the same type share the same value.
156
+ */
157
+ readonly object: pulumi.Output<string>;
158
+ /**
159
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
160
+ * 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).
161
+ */
162
+ readonly offSession: pulumi.Output<boolean | undefined>;
163
+ /**
164
+ * 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.
165
+ */
166
+ readonly onBehalfOf: pulumi.Output<string>;
167
+ /**
168
+ * 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).
169
+ */
170
+ readonly pauseCollection: pulumi.Output<outputs.SubscriptionPauseCollection>;
171
+ /**
172
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
173
+ * 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.
174
+ */
175
+ readonly paymentBehavior: pulumi.Output<string | undefined>;
176
+ /**
177
+ * Payment settings passed on to invoices created by the subscription.
178
+ */
179
+ readonly paymentSettings: pulumi.Output<outputs.SubscriptionPaymentSettings>;
180
+ /**
181
+ * 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.
182
+ */
183
+ readonly pendingInvoiceItemInterval: pulumi.Output<outputs.SubscriptionPendingInvoiceItemInterval>;
184
+ /**
185
+ * 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).
186
+ */
187
+ readonly pendingSetupIntent: pulumi.Output<string>;
188
+ /**
189
+ * 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.
190
+ */
191
+ readonly pendingUpdate: pulumi.Output<outputs.SubscriptionPendingUpdate>;
192
+ readonly presentmentDetails: pulumi.Output<outputs.SubscriptionPresentmentDetails>;
193
+ /**
194
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
195
+ * 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>.
196
+ */
197
+ readonly prorationBehavior: pulumi.Output<string | undefined>;
198
+ /**
199
+ * The schedule attached to the subscription
200
+ */
201
+ readonly schedule: pulumi.Output<string>;
202
+ /**
203
+ * 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.
204
+ */
205
+ readonly startDate: pulumi.Output<number>;
206
+ /**
207
+ * 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>.
208
+ *
209
+ * For `collection_method=charge_automatically` a subscription moves into <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> if the initial payment attempt fails. A subscription in this status can only have metadata and<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>updated. Once the first invoice is paid, the subscription moves into an <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> status. If the first invoice is not paid within 23 hours, the subscription transitions to <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>. This is a terminal status, the open invoice will be voided and no further invoices will be generated.
210
+ *
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.
212
+ *
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.
214
+ *
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).
216
+ *
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.
218
+ */
219
+ readonly status: pulumi.Output<string>;
220
+ /**
221
+ * Describes changes to the subscription's status.
222
+ */
223
+ readonly statusDetails: pulumi.Output<outputs.SubscriptionStatusDetails>;
224
+ /**
225
+ * ID of the test clock this subscription belongs to.
226
+ */
227
+ readonly testClock: pulumi.Output<string>;
228
+ /**
229
+ * 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.
230
+ */
231
+ readonly transferData: pulumi.Output<outputs.SubscriptionTransferData>;
232
+ /**
233
+ * If the subscription has a trial, the end of that trial.
234
+ */
235
+ readonly trialEnd: pulumi.Output<number>;
236
+ /**
237
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
239
+ */
240
+ readonly trialFromPlan: pulumi.Output<boolean | undefined>;
241
+ /**
242
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
244
+ */
245
+ readonly trialPeriodDays: pulumi.Output<number | undefined>;
246
+ /**
247
+ * Settings related to subscription trials.
248
+ */
249
+ readonly trialSettings: pulumi.Output<outputs.SubscriptionTrialSettings>;
250
+ /**
251
+ * If the subscription has a trial, the beginning of that trial.
252
+ */
253
+ readonly trialStart: pulumi.Output<number>;
254
+ /**
255
+ * Create a Subscription resource with the given unique name, arguments, and options.
256
+ *
257
+ * @param name The _unique_ name of the resource.
258
+ * @param args The arguments to use to populate this resource's properties.
259
+ * @param opts A bag of options that control this resource's behavior.
260
+ */
261
+ constructor(name: string, args?: SubscriptionArgs, opts?: pulumi.CustomResourceOptions);
262
+ }
263
+ /**
264
+ * Input properties used for looking up and filtering Subscription resources.
265
+ */
266
+ export interface SubscriptionState {
267
+ /**
268
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
270
+ */
271
+ addInvoiceItems?: pulumi.Input<pulumi.Input<inputs.SubscriptionAddInvoiceItem>[] | undefined>;
272
+ /**
273
+ * ID of the Connect Application that created the subscription.
274
+ */
275
+ application?: pulumi.Input<string | undefined>;
276
+ /**
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.
278
+ */
279
+ applicationFeePercent?: pulumi.Input<number | undefined>;
280
+ automaticTax?: pulumi.Input<inputs.SubscriptionAutomaticTax | undefined>;
281
+ /**
282
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
284
+ */
285
+ backdateStartDate?: pulumi.Input<number | undefined>;
286
+ /**
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.
288
+ */
289
+ billingCycleAnchor?: pulumi.Input<number | undefined>;
290
+ /**
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>.
292
+ */
293
+ billingCycleAnchorConfig?: pulumi.Input<inputs.SubscriptionBillingCycleAnchorConfig | undefined>;
294
+ /**
295
+ * The billing mode of the subscription.
296
+ */
297
+ billingMode?: pulumi.Input<inputs.SubscriptionBillingMode | undefined>;
298
+ /**
299
+ * Billing schedules for this subscription.
300
+ */
301
+ billingSchedules?: pulumi.Input<pulumi.Input<inputs.SubscriptionBillingSchedule>[] | undefined>;
302
+ /**
303
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
304
+ */
305
+ billingThresholds?: pulumi.Input<inputs.SubscriptionBillingThresholds | undefined>;
306
+ /**
307
+ * A date in the future at which the subscription will automatically get canceled
308
+ */
309
+ cancelAt?: pulumi.Input<number | undefined>;
310
+ /**
311
+ * Whether this subscription will (if `status=active`) or did (if `status=canceled`) cancel at the end of the current billing period.
312
+ */
313
+ cancelAtPeriodEnd?: pulumi.Input<boolean | undefined>;
314
+ /**
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.
316
+ */
317
+ canceledAt?: pulumi.Input<number | undefined>;
318
+ /**
319
+ * Details about why this subscription was cancelled
320
+ */
321
+ cancellationDetails?: pulumi.Input<inputs.SubscriptionCancellationDetails | undefined>;
322
+ /**
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>.
324
+ */
325
+ collectionMethod?: pulumi.Input<string | undefined>;
326
+ /**
327
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
328
+ */
329
+ created?: pulumi.Input<number | undefined>;
330
+ /**
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).
332
+ */
333
+ currency?: pulumi.Input<string | undefined>;
334
+ /**
335
+ * ID of the customer who owns the subscription.
336
+ */
337
+ customer?: pulumi.Input<string | undefined>;
338
+ /**
339
+ * ID of the account representing the customer who owns the subscription.
340
+ */
341
+ customerAccount?: pulumi.Input<string | undefined>;
342
+ /**
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`.
344
+ */
345
+ daysUntilDue?: pulumi.Input<number | undefined>;
346
+ /**
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).
348
+ */
349
+ defaultPaymentMethod?: pulumi.Input<string | undefined>;
350
+ /**
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).
352
+ */
353
+ defaultSource?: pulumi.Input<string | undefined>;
354
+ /**
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.
356
+ */
357
+ defaultTaxRates?: pulumi.Input<pulumi.Input<string>[] | undefined>;
358
+ /**
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.
360
+ */
361
+ description?: pulumi.Input<string | undefined>;
362
+ /**
363
+ * The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
364
+ */
365
+ discounts?: pulumi.Input<pulumi.Input<inputs.SubscriptionDiscount>[] | undefined>;
366
+ /**
367
+ * If the subscription has ended, the date the subscription ended.
368
+ */
369
+ endedAt?: pulumi.Input<number | undefined>;
370
+ invoiceSettings?: pulumi.Input<inputs.SubscriptionInvoiceSettings | undefined>;
371
+ /**
372
+ * List of subscription items, each with an attached price.
373
+ */
374
+ items?: pulumi.Input<pulumi.Input<inputs.SubscriptionItem>[] | undefined>;
375
+ /**
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>.
377
+ */
378
+ livemode?: pulumi.Input<boolean | undefined>;
379
+ /**
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).
381
+ */
382
+ managedPayments?: pulumi.Input<inputs.SubscriptionManagedPayments | undefined>;
383
+ /**
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.
385
+ */
386
+ metadata?: pulumi.Input<{
387
+ [key: string]: pulumi.Input<string>;
388
+ } | undefined>;
389
+ /**
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>.
391
+ */
392
+ nextPendingInvoiceItemInvoice?: pulumi.Input<number | undefined>;
393
+ /**
394
+ * String representing the object's type. Objects of the same type share the same value.
395
+ */
396
+ object?: pulumi.Input<string | undefined>;
397
+ /**
398
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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).
400
+ */
401
+ offSession?: pulumi.Input<boolean | undefined>;
402
+ /**
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.
404
+ */
405
+ onBehalfOf?: pulumi.Input<string | undefined>;
406
+ /**
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).
408
+ */
409
+ pauseCollection?: pulumi.Input<inputs.SubscriptionPauseCollection | undefined>;
410
+ /**
411
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
413
+ */
414
+ paymentBehavior?: pulumi.Input<string | undefined>;
415
+ /**
416
+ * Payment settings passed on to invoices created by the subscription.
417
+ */
418
+ paymentSettings?: pulumi.Input<inputs.SubscriptionPaymentSettings | undefined>;
419
+ /**
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.
421
+ */
422
+ pendingInvoiceItemInterval?: pulumi.Input<inputs.SubscriptionPendingInvoiceItemInterval | undefined>;
423
+ /**
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).
425
+ */
426
+ pendingSetupIntent?: pulumi.Input<string | undefined>;
427
+ /**
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.
429
+ */
430
+ pendingUpdate?: pulumi.Input<inputs.SubscriptionPendingUpdate | undefined>;
431
+ presentmentDetails?: pulumi.Input<inputs.SubscriptionPresentmentDetails | undefined>;
432
+ /**
433
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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>.
435
+ */
436
+ prorationBehavior?: pulumi.Input<string | undefined>;
437
+ /**
438
+ * The schedule attached to the subscription
439
+ */
440
+ schedule?: pulumi.Input<string | undefined>;
441
+ /**
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.
443
+ */
444
+ startDate?: pulumi.Input<number | undefined>;
445
+ /**
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>.
447
+ *
448
+ * For `collection_method=charge_automatically` a subscription moves into <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> if the initial payment attempt fails. A subscription in this status can only have metadata and<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>updated. Once the first invoice is paid, the subscription moves into an <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> status. If the first invoice is not paid within 23 hours, the subscription transitions to <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>. This is a terminal status, the open invoice will be voided and no further invoices will be generated.
449
+ *
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.
451
+ *
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.
453
+ *
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).
455
+ *
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.
457
+ */
458
+ status?: pulumi.Input<string | undefined>;
459
+ /**
460
+ * Describes changes to the subscription's status.
461
+ */
462
+ statusDetails?: pulumi.Input<inputs.SubscriptionStatusDetails | undefined>;
463
+ /**
464
+ * ID of the test clock this subscription belongs to.
465
+ */
466
+ testClock?: pulumi.Input<string | undefined>;
467
+ /**
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.
469
+ */
470
+ transferData?: pulumi.Input<inputs.SubscriptionTransferData | undefined>;
471
+ /**
472
+ * If the subscription has a trial, the end of that trial.
473
+ */
474
+ trialEnd?: pulumi.Input<number | undefined>;
475
+ /**
476
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
478
+ */
479
+ trialFromPlan?: pulumi.Input<boolean | undefined>;
480
+ /**
481
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
483
+ */
484
+ trialPeriodDays?: pulumi.Input<number | undefined>;
485
+ /**
486
+ * Settings related to subscription trials.
487
+ */
488
+ trialSettings?: pulumi.Input<inputs.SubscriptionTrialSettings | undefined>;
489
+ /**
490
+ * If the subscription has a trial, the beginning of that trial.
491
+ */
492
+ trialStart?: pulumi.Input<number | undefined>;
493
+ }
494
+ /**
495
+ * The set of arguments for constructing a Subscription resource.
496
+ */
497
+ export interface SubscriptionArgs {
498
+ /**
499
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
501
+ */
502
+ addInvoiceItems?: pulumi.Input<pulumi.Input<inputs.SubscriptionAddInvoiceItem>[] | undefined>;
503
+ /**
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.
505
+ */
506
+ applicationFeePercent?: pulumi.Input<number | undefined>;
507
+ automaticTax?: pulumi.Input<inputs.SubscriptionAutomaticTax | undefined>;
508
+ /**
509
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
511
+ */
512
+ backdateStartDate?: pulumi.Input<number | undefined>;
513
+ /**
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.
515
+ */
516
+ billingCycleAnchor?: pulumi.Input<number | undefined>;
517
+ /**
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>.
519
+ */
520
+ billingCycleAnchorConfig?: pulumi.Input<inputs.SubscriptionBillingCycleAnchorConfig | undefined>;
521
+ /**
522
+ * The billing mode of the subscription.
523
+ */
524
+ billingMode?: pulumi.Input<inputs.SubscriptionBillingMode | undefined>;
525
+ /**
526
+ * Billing schedules for this subscription.
527
+ */
528
+ billingSchedules?: pulumi.Input<pulumi.Input<inputs.SubscriptionBillingSchedule>[] | undefined>;
529
+ /**
530
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
531
+ */
532
+ billingThresholds?: pulumi.Input<inputs.SubscriptionBillingThresholds | undefined>;
533
+ /**
534
+ * A date in the future at which the subscription will automatically get canceled
535
+ */
536
+ cancelAt?: pulumi.Input<number | undefined>;
537
+ /**
538
+ * Whether this subscription will (if `status=active`) or did (if `status=canceled`) cancel at the end of the current billing period.
539
+ */
540
+ cancelAtPeriodEnd?: pulumi.Input<boolean | undefined>;
541
+ /**
542
+ * Details about why this subscription was cancelled
543
+ */
544
+ cancellationDetails?: pulumi.Input<inputs.SubscriptionCancellationDetails | undefined>;
545
+ /**
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>.
547
+ */
548
+ collectionMethod?: pulumi.Input<string | undefined>;
549
+ /**
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).
551
+ */
552
+ currency?: pulumi.Input<string | undefined>;
553
+ /**
554
+ * ID of the customer who owns the subscription.
555
+ */
556
+ customer?: pulumi.Input<string | undefined>;
557
+ /**
558
+ * ID of the account representing the customer who owns the subscription.
559
+ */
560
+ customerAccount?: pulumi.Input<string | undefined>;
561
+ /**
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`.
563
+ */
564
+ daysUntilDue?: pulumi.Input<number | undefined>;
565
+ /**
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).
567
+ */
568
+ defaultPaymentMethod?: pulumi.Input<string | undefined>;
569
+ /**
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).
571
+ */
572
+ defaultSource?: pulumi.Input<string | undefined>;
573
+ /**
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.
575
+ */
576
+ defaultTaxRates?: pulumi.Input<pulumi.Input<string>[] | undefined>;
577
+ /**
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.
579
+ */
580
+ description?: pulumi.Input<string | undefined>;
581
+ /**
582
+ * The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
583
+ */
584
+ discounts?: pulumi.Input<pulumi.Input<inputs.SubscriptionDiscount>[] | undefined>;
585
+ invoiceSettings?: pulumi.Input<inputs.SubscriptionInvoiceSettings | undefined>;
586
+ /**
587
+ * List of subscription items, each with an attached price.
588
+ */
589
+ items?: pulumi.Input<pulumi.Input<inputs.SubscriptionItem>[] | undefined>;
590
+ /**
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.
592
+ */
593
+ metadata?: pulumi.Input<{
594
+ [key: string]: pulumi.Input<string>;
595
+ } | undefined>;
596
+ /**
597
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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).
599
+ */
600
+ offSession?: pulumi.Input<boolean | undefined>;
601
+ /**
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.
603
+ */
604
+ onBehalfOf?: pulumi.Input<string | undefined>;
605
+ /**
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).
607
+ */
608
+ pauseCollection?: pulumi.Input<inputs.SubscriptionPauseCollection | undefined>;
609
+ /**
610
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
612
+ */
613
+ paymentBehavior?: pulumi.Input<string | undefined>;
614
+ /**
615
+ * Payment settings passed on to invoices created by the subscription.
616
+ */
617
+ paymentSettings?: pulumi.Input<inputs.SubscriptionPaymentSettings | undefined>;
618
+ /**
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.
620
+ */
621
+ pendingInvoiceItemInterval?: pulumi.Input<inputs.SubscriptionPendingInvoiceItemInterval | undefined>;
622
+ /**
623
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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>.
625
+ */
626
+ prorationBehavior?: pulumi.Input<string | undefined>;
627
+ /**
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.
629
+ */
630
+ transferData?: pulumi.Input<inputs.SubscriptionTransferData | undefined>;
631
+ /**
632
+ * If the subscription has a trial, the end of that trial.
633
+ */
634
+ trialEnd?: pulumi.Input<number | undefined>;
635
+ /**
636
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
638
+ */
639
+ trialFromPlan?: pulumi.Input<boolean | undefined>;
640
+ /**
641
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
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.
643
+ */
644
+ trialPeriodDays?: pulumi.Input<number | undefined>;
645
+ /**
646
+ * Settings related to subscription trials.
647
+ */
648
+ trialSettings?: pulumi.Input<inputs.SubscriptionTrialSettings | undefined>;
649
+ }
650
+ //# sourceMappingURL=subscription.d.ts.map