@lshay-provider/stripe 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/bin/applePayDomain.d.ts +12 -4
  2. package/bin/applePayDomain.d.ts.map +1 -1
  3. package/bin/applePayDomain.js +10 -0
  4. package/bin/applePayDomain.js.map +1 -1
  5. package/bin/appsInstall.d.ts +201 -0
  6. package/bin/appsInstall.d.ts.map +1 -0
  7. package/bin/appsInstall.js +121 -0
  8. package/bin/appsInstall.js.map +1 -0
  9. package/bin/billingAlert.d.ts +15 -7
  10. package/bin/billingAlert.d.ts.map +1 -1
  11. package/bin/billingAlert.js +10 -0
  12. package/bin/billingAlert.js.map +1 -1
  13. package/bin/billingCreditGrant.d.ts +32 -24
  14. package/bin/billingCreditGrant.d.ts.map +1 -1
  15. package/bin/billingCreditGrant.js +10 -0
  16. package/bin/billingCreditGrant.js.map +1 -1
  17. package/bin/billingFeedbackOption.d.ts +85 -0
  18. package/bin/billingFeedbackOption.d.ts.map +1 -0
  19. package/bin/billingFeedbackOption.js +93 -0
  20. package/bin/billingFeedbackOption.js.map +1 -0
  21. package/bin/billingMeter.d.ts +24 -16
  22. package/bin/billingMeter.d.ts.map +1 -1
  23. package/bin/billingMeter.js +10 -0
  24. package/bin/billingMeter.js.map +1 -1
  25. package/bin/billingPortalConfiguration.d.ts +29 -21
  26. package/bin/billingPortalConfiguration.d.ts.map +1 -1
  27. package/bin/billingPortalConfiguration.js +10 -0
  28. package/bin/billingPortalConfiguration.js.map +1 -1
  29. package/bin/charge.d.ts +77 -69
  30. package/bin/charge.d.ts.map +1 -1
  31. package/bin/charge.js +10 -0
  32. package/bin/charge.js.map +1 -1
  33. package/bin/climateOrder.d.ts +37 -29
  34. package/bin/climateOrder.d.ts.map +1 -1
  35. package/bin/climateOrder.js +10 -0
  36. package/bin/climateOrder.js.map +1 -1
  37. package/bin/coupon.d.ts +47 -27
  38. package/bin/coupon.d.ts.map +1 -1
  39. package/bin/coupon.js +12 -0
  40. package/bin/coupon.js.map +1 -1
  41. package/bin/creditNote.d.ts +52 -44
  42. package/bin/creditNote.d.ts.map +1 -1
  43. package/bin/creditNote.js +10 -0
  44. package/bin/creditNote.js.map +1 -1
  45. package/bin/customer.d.ts +65 -57
  46. package/bin/customer.d.ts.map +1 -1
  47. package/bin/customer.js +10 -0
  48. package/bin/customer.js.map +1 -1
  49. package/bin/customerBalanceTransaction.d.ts +23 -15
  50. package/bin/customerBalanceTransaction.d.ts.map +1 -1
  51. package/bin/customerBalanceTransaction.js +10 -0
  52. package/bin/customerBalanceTransaction.js.map +1 -1
  53. package/bin/entitlementsFeature.d.ts +16 -8
  54. package/bin/entitlementsFeature.d.ts.map +1 -1
  55. package/bin/entitlementsFeature.js +10 -0
  56. package/bin/entitlementsFeature.js.map +1 -1
  57. package/bin/file.d.ts +23 -15
  58. package/bin/file.d.ts.map +1 -1
  59. package/bin/file.js +10 -0
  60. package/bin/file.js.map +1 -1
  61. package/bin/fileLink.d.ts +18 -10
  62. package/bin/fileLink.d.ts.map +1 -1
  63. package/bin/fileLink.js +10 -0
  64. package/bin/fileLink.js.map +1 -1
  65. package/bin/index.d.ts +39 -0
  66. package/bin/index.d.ts.map +1 -1
  67. package/bin/index.js +67 -2
  68. package/bin/index.js.map +1 -1
  69. package/bin/invoice.d.ts +124 -114
  70. package/bin/invoice.d.ts.map +1 -1
  71. package/bin/invoice.js +12 -0
  72. package/bin/invoice.js.map +1 -1
  73. package/bin/invoiceItem.d.ts +74 -46
  74. package/bin/invoiceItem.d.ts.map +1 -1
  75. package/bin/invoiceItem.js +14 -0
  76. package/bin/invoiceItem.js.map +1 -1
  77. package/bin/issuingCard.d.ts +46 -38
  78. package/bin/issuingCard.d.ts.map +1 -1
  79. package/bin/issuingCard.js +10 -0
  80. package/bin/issuingCard.js.map +1 -1
  81. package/bin/issuingCardholder.d.ts +36 -28
  82. package/bin/issuingCardholder.d.ts.map +1 -1
  83. package/bin/issuingCardholder.js +10 -0
  84. package/bin/issuingCardholder.js.map +1 -1
  85. package/bin/issuingDispute.d.ts +24 -16
  86. package/bin/issuingDispute.d.ts.map +1 -1
  87. package/bin/issuingDispute.js +10 -0
  88. package/bin/issuingDispute.js.map +1 -1
  89. package/bin/issuingPersonalizationDesign.d.ts +28 -20
  90. package/bin/issuingPersonalizationDesign.d.ts.map +1 -1
  91. package/bin/issuingPersonalizationDesign.js +10 -0
  92. package/bin/issuingPersonalizationDesign.js.map +1 -1
  93. package/bin/package.json +6 -7
  94. package/bin/paymentIntent.d.ts +108 -84
  95. package/bin/paymentIntent.d.ts.map +1 -1
  96. package/bin/paymentIntent.js +14 -0
  97. package/bin/paymentIntent.js.map +1 -1
  98. package/bin/paymentLink.d.ts +78 -70
  99. package/bin/paymentLink.d.ts.map +1 -1
  100. package/bin/paymentLink.js +10 -0
  101. package/bin/paymentLink.js.map +1 -1
  102. package/bin/paymentMethod.d.ts +79 -62
  103. package/bin/paymentMethod.d.ts.map +1 -1
  104. package/bin/paymentMethod.js +16 -0
  105. package/bin/paymentMethod.js.map +1 -1
  106. package/bin/paymentMethodConfiguration.d.ts +142 -128
  107. package/bin/paymentMethodConfiguration.d.ts.map +1 -1
  108. package/bin/paymentMethodConfiguration.js +14 -0
  109. package/bin/paymentMethodConfiguration.js.map +1 -1
  110. package/bin/paymentMethodDomain.d.ts +20 -12
  111. package/bin/paymentMethodDomain.d.ts.map +1 -1
  112. package/bin/paymentMethodDomain.js +10 -0
  113. package/bin/paymentMethodDomain.js.map +1 -1
  114. package/bin/person.d.ts +90 -64
  115. package/bin/person.d.ts.map +1 -1
  116. package/bin/person.js +10 -0
  117. package/bin/person.js.map +1 -1
  118. package/bin/plan.d.ts +53 -33
  119. package/bin/plan.d.ts.map +1 -1
  120. package/bin/plan.js +12 -0
  121. package/bin/plan.js.map +1 -1
  122. package/bin/price.d.ts +50 -42
  123. package/bin/price.d.ts.map +1 -1
  124. package/bin/price.js +10 -0
  125. package/bin/price.js.map +1 -1
  126. package/bin/product.d.ts +65 -33
  127. package/bin/product.d.ts.map +1 -1
  128. package/bin/product.js +14 -0
  129. package/bin/product.js.map +1 -1
  130. package/bin/productCatalogTrialOffer.d.ts +105 -0
  131. package/bin/productCatalogTrialOffer.d.ts.map +1 -0
  132. package/bin/productCatalogTrialOffer.js +103 -0
  133. package/bin/productCatalogTrialOffer.js.map +1 -0
  134. package/bin/productFeature.d.ts +21 -4
  135. package/bin/productFeature.d.ts.map +1 -1
  136. package/bin/productFeature.js +10 -0
  137. package/bin/productFeature.js.map +1 -1
  138. package/bin/promotionCode.d.ts +30 -22
  139. package/bin/promotionCode.d.ts.map +1 -1
  140. package/bin/promotionCode.js +10 -0
  141. package/bin/promotionCode.js.map +1 -1
  142. package/bin/provider.d.ts +2 -2
  143. package/bin/provider.d.ts.map +1 -1
  144. package/bin/quote.d.ts +60 -52
  145. package/bin/quote.d.ts.map +1 -1
  146. package/bin/quote.js +10 -0
  147. package/bin/quote.js.map +1 -1
  148. package/bin/radarValueList.d.ts +19 -11
  149. package/bin/radarValueList.d.ts.map +1 -1
  150. package/bin/radarValueList.js +10 -0
  151. package/bin/radarValueList.js.map +1 -1
  152. package/bin/radarValueListItem.d.ts +14 -6
  153. package/bin/radarValueListItem.d.ts.map +1 -1
  154. package/bin/radarValueListItem.js +10 -0
  155. package/bin/radarValueListItem.js.map +1 -1
  156. package/bin/setupIntent.d.ts +75 -59
  157. package/bin/setupIntent.d.ts.map +1 -1
  158. package/bin/setupIntent.js +13 -1
  159. package/bin/setupIntent.js.map +1 -1
  160. package/bin/shippingRate.d.ts +26 -18
  161. package/bin/shippingRate.d.ts.map +1 -1
  162. package/bin/shippingRate.js +10 -0
  163. package/bin/shippingRate.js.map +1 -1
  164. package/bin/source.d.ts +64 -56
  165. package/bin/source.d.ts.map +1 -1
  166. package/bin/source.js +10 -0
  167. package/bin/source.js.map +1 -1
  168. package/bin/subscription.d.ts +114 -98
  169. package/bin/subscription.d.ts.map +1 -1
  170. package/bin/subscription.js +12 -0
  171. package/bin/subscription.js.map +1 -1
  172. package/bin/subscriptionItem.d.ts +57 -37
  173. package/bin/subscriptionItem.d.ts.map +1 -1
  174. package/bin/subscriptionItem.js +12 -0
  175. package/bin/subscriptionItem.js.map +1 -1
  176. package/bin/subscriptionSchedule.d.ts +53 -33
  177. package/bin/subscriptionSchedule.d.ts.map +1 -1
  178. package/bin/subscriptionSchedule.js +12 -0
  179. package/bin/subscriptionSchedule.js.map +1 -1
  180. package/bin/taxId.d.ts +21 -13
  181. package/bin/taxId.d.ts.map +1 -1
  182. package/bin/taxId.js +10 -0
  183. package/bin/taxId.js.map +1 -1
  184. package/bin/taxLocation.d.ts +90 -0
  185. package/bin/taxLocation.d.ts.map +1 -0
  186. package/bin/taxLocation.js +96 -0
  187. package/bin/taxLocation.js.map +1 -0
  188. package/bin/taxRate.d.ts +32 -24
  189. package/bin/taxRate.d.ts.map +1 -1
  190. package/bin/taxRate.js +10 -0
  191. package/bin/taxRate.js.map +1 -1
  192. package/bin/taxRegistration.d.ts +17 -9
  193. package/bin/taxRegistration.d.ts.map +1 -1
  194. package/bin/taxRegistration.js +10 -0
  195. package/bin/taxRegistration.js.map +1 -1
  196. package/bin/terminalConfiguration.d.ts +47 -33
  197. package/bin/terminalConfiguration.d.ts.map +1 -1
  198. package/bin/terminalConfiguration.js +14 -0
  199. package/bin/terminalConfiguration.js.map +1 -1
  200. package/bin/terminalLocation.d.ts +26 -18
  201. package/bin/terminalLocation.d.ts.map +1 -1
  202. package/bin/terminalLocation.js +10 -0
  203. package/bin/terminalLocation.js.map +1 -1
  204. package/bin/terminalReader.d.ts +25 -17
  205. package/bin/terminalReader.d.ts.map +1 -1
  206. package/bin/terminalReader.js +10 -0
  207. package/bin/terminalReader.js.map +1 -1
  208. package/bin/threeDSecureAuthentication.d.ts +297 -0
  209. package/bin/threeDSecureAuthentication.d.ts.map +1 -0
  210. package/bin/threeDSecureAuthentication.js +132 -0
  211. package/bin/threeDSecureAuthentication.js.map +1 -0
  212. package/bin/treasuryFinancialAccount.d.ts +29 -21
  213. package/bin/treasuryFinancialAccount.d.ts.map +1 -1
  214. package/bin/treasuryFinancialAccount.js +10 -0
  215. package/bin/treasuryFinancialAccount.js.map +1 -1
  216. package/bin/types/input.d.ts +5787 -3630
  217. package/bin/types/input.d.ts.map +1 -1
  218. package/bin/types/output.d.ts +2538 -381
  219. package/bin/types/output.d.ts.map +1 -1
  220. package/bin/utilities.d.ts.map +1 -1
  221. package/bin/utilities.js +8 -35
  222. package/bin/utilities.js.map +1 -1
  223. package/bin/v2coreEventDestination.d.ts +76 -68
  224. package/bin/v2coreEventDestination.d.ts.map +1 -1
  225. package/bin/v2coreEventDestination.js +10 -0
  226. package/bin/v2coreEventDestination.js.map +1 -1
  227. package/bin/v2coreVaultGbBankAccount.d.ts +182 -0
  228. package/bin/v2coreVaultGbBankAccount.d.ts.map +1 -0
  229. package/bin/v2coreVaultGbBankAccount.js +111 -0
  230. package/bin/v2coreVaultGbBankAccount.js.map +1 -0
  231. package/bin/v2coreVaultUsBankAccount.d.ts +193 -0
  232. package/bin/v2coreVaultUsBankAccount.d.ts.map +1 -0
  233. package/bin/v2coreVaultUsBankAccount.js +118 -0
  234. package/bin/v2coreVaultUsBankAccount.js.map +1 -0
  235. package/bin/v2moneyManagementFinancialAddress.d.ts +117 -0
  236. package/bin/v2moneyManagementFinancialAddress.d.ts.map +1 -0
  237. package/bin/v2moneyManagementFinancialAddress.js +102 -0
  238. package/bin/v2moneyManagementFinancialAddress.js.map +1 -0
  239. package/bin/v2moneyManagementInboundTransfer.d.ts +127 -0
  240. package/bin/v2moneyManagementInboundTransfer.d.ts.map +1 -0
  241. package/bin/v2moneyManagementInboundTransfer.js +105 -0
  242. package/bin/v2moneyManagementInboundTransfer.js.map +1 -0
  243. package/bin/v2moneyManagementOutboundPayment.d.ts +237 -0
  244. package/bin/v2moneyManagementOutboundPayment.d.ts.map +1 -0
  245. package/bin/v2moneyManagementOutboundPayment.js +125 -0
  246. package/bin/v2moneyManagementOutboundPayment.js.map +1 -0
  247. package/bin/v2moneyManagementOutboundSetupIntent.d.ts +121 -0
  248. package/bin/v2moneyManagementOutboundSetupIntent.d.ts.map +1 -0
  249. package/bin/v2moneyManagementOutboundSetupIntent.js +96 -0
  250. package/bin/v2moneyManagementOutboundSetupIntent.js.map +1 -0
  251. package/bin/v2moneyManagementPayoutIntent.d.ts +246 -0
  252. package/bin/v2moneyManagementPayoutIntent.d.ts.map +1 -0
  253. package/bin/v2moneyManagementPayoutIntent.js +127 -0
  254. package/bin/v2moneyManagementPayoutIntent.js.map +1 -0
  255. package/bin/v2moneyManagementRecipientVerification.d.ts +155 -0
  256. package/bin/v2moneyManagementRecipientVerification.d.ts.map +1 -0
  257. package/bin/v2moneyManagementRecipientVerification.js +107 -0
  258. package/bin/v2moneyManagementRecipientVerification.js.map +1 -0
  259. package/bin/webhookEndpoint.d.ts +27 -19
  260. package/bin/webhookEndpoint.d.ts.map +1 -1
  261. package/bin/webhookEndpoint.js +10 -0
  262. package/bin/webhookEndpoint.js.map +1 -1
  263. package/package.json +6 -7
package/bin/invoice.d.ts CHANGED
@@ -12,6 +12,14 @@ export declare class Invoice extends pulumi.CustomResource {
12
12
  * @param opts Optional settings to control the behavior of the CustomResource.
13
13
  */
14
14
  static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InvoiceState, opts?: pulumi.CustomResourceOptions): Invoice;
15
+ /**
16
+ * Check whether an existing Invoice 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?: InvoiceState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
15
23
  /**
16
24
  * Returns true if the given object is an instance of Invoice. This is designed to work even
17
25
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
@@ -262,7 +270,7 @@ export declare class Invoice extends pulumi.CustomResource {
262
270
  */
263
271
  readonly receiptNumber: pulumi.Output<string>;
264
272
  /**
265
- * The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
273
+ * The rendering-related settings that control how invoices render in customer-facing interfaces such as the PDF or hosted invoice page.
266
274
  */
267
275
  readonly rendering: pulumi.Output<outputs.InvoiceRendering>;
268
276
  /**
@@ -285,6 +293,7 @@ export declare class Invoice extends pulumi.CustomResource {
285
293
  * The status of the invoice, one of <span pulumi-lang-nodejs="`draft`" pulumi-lang-dotnet="`Draft`" pulumi-lang-go="`draft`" pulumi-lang-python="`draft`" pulumi-lang-yaml="`draft`" pulumi-lang-java="`draft`" pulumi-lang-hcl="`draft`">`draft`</span>, <span pulumi-lang-nodejs="`open`" pulumi-lang-dotnet="`Open`" pulumi-lang-go="`open`" pulumi-lang-python="`open`" pulumi-lang-yaml="`open`" pulumi-lang-java="`open`" pulumi-lang-hcl="`open`">`open`</span>, <span pulumi-lang-nodejs="`paid`" pulumi-lang-dotnet="`Paid`" pulumi-lang-go="`paid`" pulumi-lang-python="`paid`" pulumi-lang-yaml="`paid`" pulumi-lang-java="`paid`" pulumi-lang-hcl="`paid`">`paid`</span>, <span pulumi-lang-nodejs="`uncollectible`" pulumi-lang-dotnet="`Uncollectible`" pulumi-lang-go="`uncollectible`" pulumi-lang-python="`uncollectible`" pulumi-lang-yaml="`uncollectible`" pulumi-lang-java="`uncollectible`" pulumi-lang-hcl="`uncollectible`">`uncollectible`</span>, or <span pulumi-lang-nodejs="`void`" pulumi-lang-dotnet="`Void`" pulumi-lang-go="`void`" pulumi-lang-python="`void`" pulumi-lang-yaml="`void`" pulumi-lang-java="`void`" pulumi-lang-hcl="`void`">`void`</span>. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview)
286
294
  */
287
295
  readonly status: pulumi.Output<string>;
296
+ readonly statusDetails: pulumi.Output<outputs.InvoiceStatusDetails>;
288
297
  readonly statusTransitions: pulumi.Output<outputs.InvoiceStatusTransitions>;
289
298
  readonly subscription: pulumi.Output<string>;
290
299
  /**
@@ -345,65 +354,65 @@ export interface InvoiceState {
345
354
  /**
346
355
  * The country of the business associated with this invoice, most often the business creating the invoice.
347
356
  */
348
- accountCountry?: pulumi.Input<string>;
357
+ accountCountry?: pulumi.Input<string | undefined>;
349
358
  /**
350
359
  * The public name of the business associated with this invoice, most often the business creating the invoice.
351
360
  */
352
- accountName?: pulumi.Input<string>;
361
+ accountName?: pulumi.Input<string | undefined>;
353
362
  /**
354
363
  * The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
355
364
  */
356
- accountTaxIds?: pulumi.Input<pulumi.Input<string>[]>;
365
+ accountTaxIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
357
366
  /**
358
367
  * Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the <span pulumi-lang-nodejs="`amountDue`" pulumi-lang-dotnet="`AmountDue`" pulumi-lang-go="`amountDue`" pulumi-lang-python="`amount_due`" pulumi-lang-yaml="`amountDue`" pulumi-lang-java="`amountDue`" pulumi-lang-hcl="`amount_due`">`amountDue`</span> may be 0. If there is a positive <span pulumi-lang-nodejs="`startingBalance`" pulumi-lang-dotnet="`StartingBalance`" pulumi-lang-go="`startingBalance`" pulumi-lang-python="`starting_balance`" pulumi-lang-yaml="`startingBalance`" pulumi-lang-java="`startingBalance`" pulumi-lang-hcl="`starting_balance`">`startingBalance`</span> for the invoice (the customer owes money), the <span pulumi-lang-nodejs="`amountDue`" pulumi-lang-dotnet="`AmountDue`" pulumi-lang-go="`amountDue`" pulumi-lang-python="`amount_due`" pulumi-lang-yaml="`amountDue`" pulumi-lang-java="`amountDue`" pulumi-lang-hcl="`amount_due`">`amountDue`</span> will also take that into account. The charge that gets generated for the invoice will be for the amount specified in <span pulumi-lang-nodejs="`amountDue`" pulumi-lang-dotnet="`AmountDue`" pulumi-lang-go="`amountDue`" pulumi-lang-python="`amount_due`" pulumi-lang-yaml="`amountDue`" pulumi-lang-java="`amountDue`" pulumi-lang-hcl="`amount_due`">`amountDue`</span>.
359
368
  */
360
- amountDue?: pulumi.Input<number>;
369
+ amountDue?: pulumi.Input<number | undefined>;
361
370
  /**
362
371
  * Amount that was overpaid on the invoice. The amount overpaid is credited to the customer's credit balance.
363
372
  */
364
- amountOverpaid?: pulumi.Input<number>;
373
+ amountOverpaid?: pulumi.Input<number | undefined>;
365
374
  /**
366
375
  * The amount, in cents (or local equivalent), that was paid.
367
376
  */
368
- amountPaid?: pulumi.Input<number>;
377
+ amountPaid?: pulumi.Input<number | undefined>;
369
378
  /**
370
379
  * Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe.
371
380
  */
372
- amountPaidOffStripe?: pulumi.Input<number>;
381
+ amountPaidOffStripe?: pulumi.Input<number | undefined>;
373
382
  /**
374
383
  * The difference between<span pulumi-lang-nodejs=" amountDue " pulumi-lang-dotnet=" AmountDue " pulumi-lang-go=" amountDue " pulumi-lang-python=" amount_due " pulumi-lang-yaml=" amountDue " pulumi-lang-java=" amountDue " pulumi-lang-hcl=" amount_due "> amountDue </span>and amount_paid, in cents (or local equivalent).
375
384
  */
376
- amountRemaining?: pulumi.Input<number>;
385
+ amountRemaining?: pulumi.Input<number | undefined>;
377
386
  /**
378
387
  * This is the sum of all the shipping amounts.
379
388
  */
380
- amountShipping?: pulumi.Input<number>;
389
+ amountShipping?: pulumi.Input<number | undefined>;
381
390
  /**
382
391
  * ID of the Connect Application that created the invoice.
383
392
  */
384
- application?: pulumi.Input<string>;
393
+ application?: pulumi.Input<string | undefined>;
385
394
  /**
386
395
  * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
387
396
  * A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
388
397
  */
389
- applicationFeeAmount?: pulumi.Input<number>;
398
+ applicationFeeAmount?: pulumi.Input<number | undefined>;
390
399
  /**
391
400
  * Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and<span pulumi-lang-nodejs=" attemptCount " pulumi-lang-dotnet=" AttemptCount " pulumi-lang-go=" attemptCount " pulumi-lang-python=" attempt_count " pulumi-lang-yaml=" attemptCount " pulumi-lang-java=" attemptCount " pulumi-lang-hcl=" attempt_count "> attemptCount </span>will continue to increment, but retries will only be executed if a new payment method is obtained.
392
401
  */
393
- attemptCount?: pulumi.Input<number>;
402
+ attemptCount?: pulumi.Input<number | undefined>;
394
403
  /**
395
404
  * Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the `invoice.created` webhook, for example, so you might not want to display that invoice as unpaid to your users.
396
405
  */
397
- attempted?: pulumi.Input<boolean>;
406
+ attempted?: pulumi.Input<boolean | undefined>;
398
407
  /**
399
408
  * Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice. If <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>, the invoice's state doesn't automatically advance without an explicit action.
400
409
  */
401
- autoAdvance?: pulumi.Input<boolean>;
402
- automaticTax?: pulumi.Input<inputs.InvoiceAutomaticTax>;
410
+ autoAdvance?: pulumi.Input<boolean | undefined>;
411
+ automaticTax?: pulumi.Input<inputs.InvoiceAutomaticTax | undefined>;
403
412
  /**
404
413
  * The time when this invoice is currently scheduled to be automatically finalized. The field 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> if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always 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> - see <span pulumi-lang-nodejs="`finalizedAt`" pulumi-lang-dotnet="`FinalizedAt`" pulumi-lang-go="`finalizedAt`" pulumi-lang-python="`finalized_at`" pulumi-lang-yaml="`finalizedAt`" pulumi-lang-java="`finalizedAt`" pulumi-lang-hcl="`finalized_at`">`finalizedAt`</span> for the time when an already-finalized invoice was finalized.
405
414
  */
406
- automaticallyFinalizesAt?: pulumi.Input<number>;
415
+ automaticallyFinalizesAt?: pulumi.Input<number | undefined>;
407
416
  /**
408
417
  * Indicates the reason why the invoice was created.
409
418
  *
@@ -415,245 +424,246 @@ export interface InvoiceState {
415
424
  * * <span pulumi-lang-nodejs="`subscriptionUpdate`" pulumi-lang-dotnet="`SubscriptionUpdate`" pulumi-lang-go="`subscriptionUpdate`" pulumi-lang-python="`subscription_update`" pulumi-lang-yaml="`subscriptionUpdate`" pulumi-lang-java="`subscriptionUpdate`" pulumi-lang-hcl="`subscription_update`">`subscriptionUpdate`</span>: A subscription was updated.
416
425
  * * <span pulumi-lang-nodejs="`upcoming`" pulumi-lang-dotnet="`Upcoming`" pulumi-lang-go="`upcoming`" pulumi-lang-python="`upcoming`" pulumi-lang-yaml="`upcoming`" pulumi-lang-java="`upcoming`" pulumi-lang-hcl="`upcoming`">`upcoming`</span>: Reserved for upcoming invoices created through the Create Preview Invoice API or when an `invoice.upcoming` event is generated for an upcoming invoice on a subscription.
417
426
  */
418
- billingReason?: pulumi.Input<string>;
427
+ billingReason?: pulumi.Input<string | undefined>;
419
428
  /**
420
429
  * 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 invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
421
430
  */
422
- collectionMethod?: pulumi.Input<string>;
431
+ collectionMethod?: pulumi.Input<string | undefined>;
423
432
  /**
424
433
  * The confirmation secret associated with this invoice. Currently, this contains the<span pulumi-lang-nodejs=" clientSecret " pulumi-lang-dotnet=" ClientSecret " pulumi-lang-go=" clientSecret " pulumi-lang-python=" client_secret " pulumi-lang-yaml=" clientSecret " pulumi-lang-java=" clientSecret " pulumi-lang-hcl=" client_secret "> clientSecret </span>of the PaymentIntent that Stripe creates during invoice finalization.
425
434
  */
426
- confirmationSecret?: pulumi.Input<inputs.InvoiceConfirmationSecret>;
435
+ confirmationSecret?: pulumi.Input<inputs.InvoiceConfirmationSecret | undefined>;
427
436
  /**
428
437
  * Time at which the object was created. Measured in seconds since the Unix epoch.
429
438
  */
430
- created?: pulumi.Input<number>;
439
+ created?: pulumi.Input<number | undefined>;
431
440
  /**
432
441
  * 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).
433
442
  */
434
- currency?: pulumi.Input<string>;
443
+ currency?: pulumi.Input<string | undefined>;
435
444
  /**
436
445
  * Custom fields displayed on the invoice.
437
446
  */
438
- customFields?: pulumi.Input<pulumi.Input<inputs.InvoiceCustomField>[]>;
447
+ customFields?: pulumi.Input<pulumi.Input<inputs.InvoiceCustomField>[] | undefined>;
439
448
  /**
440
449
  * The ID of the customer to bill.
441
450
  */
442
- customer?: pulumi.Input<string>;
451
+ customer?: pulumi.Input<string | undefined>;
443
452
  /**
444
453
  * The ID of the account representing the customer to bill.
445
454
  */
446
- customerAccount?: pulumi.Input<string>;
455
+ customerAccount?: pulumi.Input<string | undefined>;
447
456
  /**
448
457
  * The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated.
449
458
  */
450
- customerAddress?: pulumi.Input<inputs.InvoiceCustomerAddress>;
459
+ customerAddress?: pulumi.Input<inputs.InvoiceCustomerAddress | undefined>;
451
460
  /**
452
461
  * The customer's email. Until the invoice is finalized, this field will equal `customer.email`. Once the invoice is finalized, this field will no longer be updated.
453
462
  */
454
- customerEmail?: pulumi.Input<string>;
463
+ customerEmail?: pulumi.Input<string | undefined>;
455
464
  /**
456
465
  * The customer's name. Until the invoice is finalized, this field will equal `customer.name`. Once the invoice is finalized, this field will no longer be updated.
457
466
  */
458
- customerName?: pulumi.Input<string>;
467
+ customerName?: pulumi.Input<string | undefined>;
459
468
  /**
460
469
  * The customer's phone number. Until the invoice is finalized, this field will equal `customer.phone`. Once the invoice is finalized, this field will no longer be updated.
461
470
  */
462
- customerPhone?: pulumi.Input<string>;
471
+ customerPhone?: pulumi.Input<string | undefined>;
463
472
  /**
464
473
  * The customer's shipping information. Until the invoice is finalized, this field will equal `customer.shipping`. Once the invoice is finalized, this field will no longer be updated.
465
474
  */
466
- customerShipping?: pulumi.Input<inputs.InvoiceCustomerShipping>;
475
+ customerShipping?: pulumi.Input<inputs.InvoiceCustomerShipping | undefined>;
467
476
  /**
468
477
  * The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.
469
478
  */
470
- customerTaxIds?: pulumi.Input<pulumi.Input<inputs.InvoiceCustomerTaxId>[]>;
479
+ customerTaxIds?: pulumi.Input<pulumi.Input<inputs.InvoiceCustomerTaxId>[] | undefined>;
471
480
  /**
472
481
  * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
473
482
  * The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
474
483
  */
475
- daysUntilDue?: pulumi.Input<number>;
484
+ daysUntilDue?: pulumi.Input<number | undefined>;
476
485
  /**
477
486
  * ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
478
487
  */
479
- defaultPaymentMethod?: pulumi.Input<string>;
488
+ defaultPaymentMethod?: pulumi.Input<string | undefined>;
480
489
  /**
481
490
  * ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
482
491
  */
483
- defaultSource?: pulumi.Input<string>;
492
+ defaultSource?: pulumi.Input<string | undefined>;
484
493
  /**
485
494
  * The tax rates applied to this invoice, if any.
486
495
  */
487
- defaultTaxRates?: pulumi.Input<pulumi.Input<string>[]>;
496
+ defaultTaxRates?: pulumi.Input<pulumi.Input<string>[] | undefined>;
488
497
  /**
489
498
  * An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
490
499
  */
491
- description?: pulumi.Input<string>;
500
+ description?: pulumi.Input<string | undefined>;
492
501
  /**
493
502
  * The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.
494
503
  */
495
- discounts?: pulumi.Input<pulumi.Input<inputs.InvoiceDiscount>[]>;
504
+ discounts?: pulumi.Input<pulumi.Input<inputs.InvoiceDiscount>[] | undefined>;
496
505
  /**
497
506
  * The date on which payment for this invoice is due. 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 invoices where `collection_method=charge_automatically`.
498
507
  */
499
- dueDate?: pulumi.Input<number>;
508
+ dueDate?: pulumi.Input<number | undefined>;
500
509
  /**
501
510
  * The date when this invoice is in effect. Same as <span pulumi-lang-nodejs="`finalizedAt`" pulumi-lang-dotnet="`FinalizedAt`" pulumi-lang-go="`finalizedAt`" pulumi-lang-python="`finalized_at`" pulumi-lang-yaml="`finalizedAt`" pulumi-lang-java="`finalizedAt`" pulumi-lang-hcl="`finalized_at`">`finalizedAt`</span> unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
502
511
  */
503
- effectiveAt?: pulumi.Input<number>;
512
+ effectiveAt?: pulumi.Input<number | undefined>;
504
513
  /**
505
514
  * Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
506
515
  */
507
- endingBalance?: pulumi.Input<number>;
516
+ endingBalance?: pulumi.Input<number | undefined>;
508
517
  /**
509
518
  * Footer displayed on the invoice.
510
519
  */
511
- footer?: pulumi.Input<string>;
520
+ footer?: pulumi.Input<string | undefined>;
512
521
  /**
513
522
  * Details of the invoice that was cloned. See the [revision documentation](https://docs.stripe.com/invoicing/invoice-revisions) for more details.
514
523
  */
515
- fromInvoice?: pulumi.Input<inputs.InvoiceFromInvoice>;
524
+ fromInvoice?: pulumi.Input<inputs.InvoiceFromInvoice | undefined>;
516
525
  /**
517
526
  * The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.
518
527
  */
519
- hostedInvoiceUrl?: pulumi.Input<string>;
528
+ hostedInvoiceUrl?: pulumi.Input<string | undefined>;
520
529
  /**
521
530
  * The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.
522
531
  */
523
- invoicePdf?: pulumi.Input<string>;
524
- issuer?: pulumi.Input<inputs.InvoiceIssuer>;
532
+ invoicePdf?: pulumi.Input<string | undefined>;
533
+ issuer?: pulumi.Input<inputs.InvoiceIssuer | undefined>;
525
534
  /**
526
535
  * The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
527
536
  */
528
- lastFinalizationError?: pulumi.Input<inputs.InvoiceLastFinalizationError>;
537
+ lastFinalizationError?: pulumi.Input<inputs.InvoiceLastFinalizationError | undefined>;
529
538
  /**
530
539
  * The ID of the most recent non-draft revision of this invoice
531
540
  */
532
- latestRevision?: pulumi.Input<string>;
541
+ latestRevision?: pulumi.Input<string | undefined>;
533
542
  /**
534
543
  * 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>.
535
544
  */
536
- livemode?: pulumi.Input<boolean>;
545
+ livemode?: pulumi.Input<boolean | undefined>;
537
546
  /**
538
547
  * 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.
539
548
  */
540
549
  metadata?: pulumi.Input<{
541
550
  [key: string]: pulumi.Input<string>;
542
- }>;
551
+ } | undefined>;
543
552
  /**
544
553
  * The time at which payment will next be attempted. 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 invoices where `collection_method=send_invoice`.
545
554
  */
546
- nextPaymentAttempt?: pulumi.Input<number>;
555
+ nextPaymentAttempt?: pulumi.Input<number | undefined>;
547
556
  /**
548
557
  * A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique<span pulumi-lang-nodejs=" invoicePrefix " pulumi-lang-dotnet=" InvoicePrefix " pulumi-lang-go=" invoicePrefix " pulumi-lang-python=" invoice_prefix " pulumi-lang-yaml=" invoicePrefix " pulumi-lang-java=" invoicePrefix " pulumi-lang-hcl=" invoice_prefix "> invoicePrefix </span>if it is specified.
549
558
  */
550
- number?: pulumi.Input<string>;
559
+ number?: pulumi.Input<string | undefined>;
551
560
  /**
552
561
  * String representing the object's type. Objects of the same type share the same value.
553
562
  */
554
- object?: pulumi.Input<string>;
563
+ object?: pulumi.Input<string | undefined>;
555
564
  /**
556
565
  * The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details.
557
566
  */
558
- onBehalfOf?: pulumi.Input<string>;
567
+ onBehalfOf?: pulumi.Input<string | undefined>;
559
568
  /**
560
569
  * The parent that generated this invoice
561
570
  */
562
- parent?: pulumi.Input<inputs.InvoiceParent>;
563
- paymentSettings?: pulumi.Input<inputs.InvoicePaymentSettings>;
571
+ parent?: pulumi.Input<inputs.InvoiceParent | undefined>;
572
+ paymentSettings?: pulumi.Input<inputs.InvoicePaymentSettings | undefined>;
564
573
  /**
565
574
  * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
566
575
  * How to handle pending invoice items on invoice creation. Defaults to <span pulumi-lang-nodejs="`exclude`" pulumi-lang-dotnet="`Exclude`" pulumi-lang-go="`exclude`" pulumi-lang-python="`exclude`" pulumi-lang-yaml="`exclude`" pulumi-lang-java="`exclude`" pulumi-lang-hcl="`exclude`">`exclude`</span> if the parameter is omitted.
567
576
  */
568
- pendingInvoiceItemsBehavior?: pulumi.Input<string>;
577
+ pendingInvoiceItemsBehavior?: pulumi.Input<string | undefined>;
569
578
  /**
570
579
  * The latest timestamp at which invoice items can be associated with this invoice. Use the [line item period](https://www.terraform.io/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
571
580
  */
572
- periodEnd?: pulumi.Input<number>;
581
+ periodEnd?: pulumi.Input<number | undefined>;
573
582
  /**
574
583
  * The earliest timestamp at which invoice items can be associated with this invoice. Use the [line item period](https://www.terraform.io/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
575
584
  */
576
- periodStart?: pulumi.Input<number>;
585
+ periodStart?: pulumi.Input<number | undefined>;
577
586
  /**
578
587
  * Total amount of all post-payment credit notes issued for this invoice.
579
588
  */
580
- postPaymentCreditNotesAmount?: pulumi.Input<number>;
589
+ postPaymentCreditNotesAmount?: pulumi.Input<number | undefined>;
581
590
  /**
582
591
  * Total amount of all pre-payment credit notes issued for this invoice.
583
592
  */
584
- prePaymentCreditNotesAmount?: pulumi.Input<number>;
593
+ prePaymentCreditNotesAmount?: pulumi.Input<number | undefined>;
585
594
  /**
586
595
  * This is the transaction number that appears on email receipts sent for this invoice.
587
596
  */
588
- receiptNumber?: pulumi.Input<string>;
597
+ receiptNumber?: pulumi.Input<string | undefined>;
589
598
  /**
590
- * The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
599
+ * The rendering-related settings that control how invoices render in customer-facing interfaces such as the PDF or hosted invoice page.
591
600
  */
592
- rendering?: pulumi.Input<inputs.InvoiceRendering>;
601
+ rendering?: pulumi.Input<inputs.InvoiceRendering | undefined>;
593
602
  /**
594
603
  * The details of the cost of shipping, including the ShippingRate applied on the invoice.
595
604
  */
596
- shippingCost?: pulumi.Input<inputs.InvoiceShippingCost>;
605
+ shippingCost?: pulumi.Input<inputs.InvoiceShippingCost | undefined>;
597
606
  /**
598
607
  * Shipping details for the invoice. The Invoice PDF will use the <span pulumi-lang-nodejs="`shippingDetails`" pulumi-lang-dotnet="`ShippingDetails`" pulumi-lang-go="`shippingDetails`" pulumi-lang-python="`shipping_details`" pulumi-lang-yaml="`shippingDetails`" pulumi-lang-java="`shippingDetails`" pulumi-lang-hcl="`shipping_details`">`shippingDetails`</span> value if it is set, otherwise the PDF will render the shipping address from the customer.
599
608
  */
600
- shippingDetails?: pulumi.Input<inputs.InvoiceShippingDetails>;
609
+ shippingDetails?: pulumi.Input<inputs.InvoiceShippingDetails | undefined>;
601
610
  /**
602
611
  * Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.
603
612
  */
604
- startingBalance?: pulumi.Input<number>;
613
+ startingBalance?: pulumi.Input<number | undefined>;
605
614
  /**
606
615
  * Extra information about an invoice for the customer's credit card statement.
607
616
  */
608
- statementDescriptor?: pulumi.Input<string>;
617
+ statementDescriptor?: pulumi.Input<string | undefined>;
609
618
  /**
610
619
  * The status of the invoice, one of <span pulumi-lang-nodejs="`draft`" pulumi-lang-dotnet="`Draft`" pulumi-lang-go="`draft`" pulumi-lang-python="`draft`" pulumi-lang-yaml="`draft`" pulumi-lang-java="`draft`" pulumi-lang-hcl="`draft`">`draft`</span>, <span pulumi-lang-nodejs="`open`" pulumi-lang-dotnet="`Open`" pulumi-lang-go="`open`" pulumi-lang-python="`open`" pulumi-lang-yaml="`open`" pulumi-lang-java="`open`" pulumi-lang-hcl="`open`">`open`</span>, <span pulumi-lang-nodejs="`paid`" pulumi-lang-dotnet="`Paid`" pulumi-lang-go="`paid`" pulumi-lang-python="`paid`" pulumi-lang-yaml="`paid`" pulumi-lang-java="`paid`" pulumi-lang-hcl="`paid`">`paid`</span>, <span pulumi-lang-nodejs="`uncollectible`" pulumi-lang-dotnet="`Uncollectible`" pulumi-lang-go="`uncollectible`" pulumi-lang-python="`uncollectible`" pulumi-lang-yaml="`uncollectible`" pulumi-lang-java="`uncollectible`" pulumi-lang-hcl="`uncollectible`">`uncollectible`</span>, or <span pulumi-lang-nodejs="`void`" pulumi-lang-dotnet="`Void`" pulumi-lang-go="`void`" pulumi-lang-python="`void`" pulumi-lang-yaml="`void`" pulumi-lang-java="`void`" pulumi-lang-hcl="`void`">`void`</span>. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview)
611
620
  */
612
- status?: pulumi.Input<string>;
613
- statusTransitions?: pulumi.Input<inputs.InvoiceStatusTransitions>;
614
- subscription?: pulumi.Input<string>;
621
+ status?: pulumi.Input<string | undefined>;
622
+ statusDetails?: pulumi.Input<inputs.InvoiceStatusDetails | undefined>;
623
+ statusTransitions?: pulumi.Input<inputs.InvoiceStatusTransitions | undefined>;
624
+ subscription?: pulumi.Input<string | undefined>;
615
625
  /**
616
626
  * Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated
617
627
  */
618
- subtotal?: pulumi.Input<number>;
628
+ subtotal?: pulumi.Input<number | undefined>;
619
629
  /**
620
630
  * The integer amount in cents (or local equivalent) representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated
621
631
  */
622
- subtotalExcludingTax?: pulumi.Input<number>;
632
+ subtotalExcludingTax?: pulumi.Input<number | undefined>;
623
633
  /**
624
634
  * ID of the test clock this invoice belongs to.
625
635
  */
626
- testClock?: pulumi.Input<string>;
627
- thresholdReason?: pulumi.Input<inputs.InvoiceThresholdReason>;
636
+ testClock?: pulumi.Input<string | undefined>;
637
+ thresholdReason?: pulumi.Input<inputs.InvoiceThresholdReason | undefined>;
628
638
  /**
629
639
  * Total after discounts and taxes.
630
640
  */
631
- total?: pulumi.Input<number>;
641
+ total?: pulumi.Input<number | undefined>;
632
642
  /**
633
643
  * The aggregate amounts calculated per discount across all line items.
634
644
  */
635
- totalDiscountAmounts?: pulumi.Input<pulumi.Input<inputs.InvoiceTotalDiscountAmount>[]>;
645
+ totalDiscountAmounts?: pulumi.Input<pulumi.Input<inputs.InvoiceTotalDiscountAmount>[] | undefined>;
636
646
  /**
637
647
  * The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
638
648
  */
639
- totalExcludingTax?: pulumi.Input<number>;
649
+ totalExcludingTax?: pulumi.Input<number | undefined>;
640
650
  /**
641
651
  * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of<span pulumi-lang-nodejs=" totalPretaxCreditAmounts " pulumi-lang-dotnet=" TotalPretaxCreditAmounts " pulumi-lang-go=" totalPretaxCreditAmounts " pulumi-lang-python=" total_pretax_credit_amounts " pulumi-lang-yaml=" totalPretaxCreditAmounts " pulumi-lang-java=" totalPretaxCreditAmounts " pulumi-lang-hcl=" total_pretax_credit_amounts "> totalPretaxCreditAmounts </span>across all invoice line items.
642
652
  */
643
- totalPretaxCreditAmounts?: pulumi.Input<pulumi.Input<inputs.InvoiceTotalPretaxCreditAmount>[]>;
653
+ totalPretaxCreditAmounts?: pulumi.Input<pulumi.Input<inputs.InvoiceTotalPretaxCreditAmount>[] | undefined>;
644
654
  /**
645
655
  * The aggregate tax information of all line items.
646
656
  */
647
- totalTaxes?: pulumi.Input<pulumi.Input<inputs.InvoiceTotalTax>[]>;
657
+ totalTaxes?: pulumi.Input<pulumi.Input<inputs.InvoiceTotalTax>[] | undefined>;
648
658
  /**
649
659
  * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
650
660
  * If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge.
651
661
  */
652
- transferData?: pulumi.Input<inputs.InvoiceTransferData>;
662
+ transferData?: pulumi.Input<inputs.InvoiceTransferData | undefined>;
653
663
  /**
654
664
  * Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have [been exhausted](https://docs.stripe.com/billing/webhooks#understand). This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
655
665
  */
656
- webhooksDeliveredAt?: pulumi.Input<number>;
666
+ webhooksDeliveredAt?: pulumi.Input<number | undefined>;
657
667
  }
658
668
  /**
659
669
  * The set of arguments for constructing a Invoice resource.
@@ -662,124 +672,124 @@ export interface InvoiceArgs {
662
672
  /**
663
673
  * The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
664
674
  */
665
- accountTaxIds?: pulumi.Input<pulumi.Input<string>[]>;
675
+ accountTaxIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
666
676
  /**
667
677
  * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
668
678
  * A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
669
679
  */
670
- applicationFeeAmount?: pulumi.Input<number>;
680
+ applicationFeeAmount?: pulumi.Input<number | undefined>;
671
681
  /**
672
682
  * Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice. If <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>, the invoice's state doesn't automatically advance without an explicit action.
673
683
  */
674
- autoAdvance?: pulumi.Input<boolean>;
675
- automaticTax?: pulumi.Input<inputs.InvoiceAutomaticTax>;
684
+ autoAdvance?: pulumi.Input<boolean | undefined>;
685
+ automaticTax?: pulumi.Input<inputs.InvoiceAutomaticTax | undefined>;
676
686
  /**
677
687
  * The time when this invoice is currently scheduled to be automatically finalized. The field 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> if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always 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> - see <span pulumi-lang-nodejs="`finalizedAt`" pulumi-lang-dotnet="`FinalizedAt`" pulumi-lang-go="`finalizedAt`" pulumi-lang-python="`finalized_at`" pulumi-lang-yaml="`finalizedAt`" pulumi-lang-java="`finalizedAt`" pulumi-lang-hcl="`finalized_at`">`finalizedAt`</span> for the time when an already-finalized invoice was finalized.
678
688
  */
679
- automaticallyFinalizesAt?: pulumi.Input<number>;
689
+ automaticallyFinalizesAt?: pulumi.Input<number | undefined>;
680
690
  /**
681
691
  * 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 invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
682
692
  */
683
- collectionMethod?: pulumi.Input<string>;
693
+ collectionMethod?: pulumi.Input<string | undefined>;
684
694
  /**
685
695
  * 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).
686
696
  */
687
- currency?: pulumi.Input<string>;
697
+ currency?: pulumi.Input<string | undefined>;
688
698
  /**
689
699
  * Custom fields displayed on the invoice.
690
700
  */
691
- customFields?: pulumi.Input<pulumi.Input<inputs.InvoiceCustomField>[]>;
701
+ customFields?: pulumi.Input<pulumi.Input<inputs.InvoiceCustomField>[] | undefined>;
692
702
  /**
693
703
  * The ID of the customer to bill.
694
704
  */
695
- customer?: pulumi.Input<string>;
705
+ customer?: pulumi.Input<string | undefined>;
696
706
  /**
697
707
  * The ID of the account representing the customer to bill.
698
708
  */
699
- customerAccount?: pulumi.Input<string>;
709
+ customerAccount?: pulumi.Input<string | undefined>;
700
710
  /**
701
711
  * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
702
712
  * The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
703
713
  */
704
- daysUntilDue?: pulumi.Input<number>;
714
+ daysUntilDue?: pulumi.Input<number | undefined>;
705
715
  /**
706
716
  * ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
707
717
  */
708
- defaultPaymentMethod?: pulumi.Input<string>;
718
+ defaultPaymentMethod?: pulumi.Input<string | undefined>;
709
719
  /**
710
720
  * ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
711
721
  */
712
- defaultSource?: pulumi.Input<string>;
722
+ defaultSource?: pulumi.Input<string | undefined>;
713
723
  /**
714
724
  * The tax rates applied to this invoice, if any.
715
725
  */
716
- defaultTaxRates?: pulumi.Input<pulumi.Input<string>[]>;
726
+ defaultTaxRates?: pulumi.Input<pulumi.Input<string>[] | undefined>;
717
727
  /**
718
728
  * An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
719
729
  */
720
- description?: pulumi.Input<string>;
730
+ description?: pulumi.Input<string | undefined>;
721
731
  /**
722
732
  * The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.
723
733
  */
724
- discounts?: pulumi.Input<pulumi.Input<inputs.InvoiceDiscount>[]>;
734
+ discounts?: pulumi.Input<pulumi.Input<inputs.InvoiceDiscount>[] | undefined>;
725
735
  /**
726
736
  * The date on which payment for this invoice is due. 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 invoices where `collection_method=charge_automatically`.
727
737
  */
728
- dueDate?: pulumi.Input<number>;
738
+ dueDate?: pulumi.Input<number | undefined>;
729
739
  /**
730
740
  * The date when this invoice is in effect. Same as <span pulumi-lang-nodejs="`finalizedAt`" pulumi-lang-dotnet="`FinalizedAt`" pulumi-lang-go="`finalizedAt`" pulumi-lang-python="`finalized_at`" pulumi-lang-yaml="`finalizedAt`" pulumi-lang-java="`finalizedAt`" pulumi-lang-hcl="`finalized_at`">`finalizedAt`</span> unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
731
741
  */
732
- effectiveAt?: pulumi.Input<number>;
742
+ effectiveAt?: pulumi.Input<number | undefined>;
733
743
  /**
734
744
  * Footer displayed on the invoice.
735
745
  */
736
- footer?: pulumi.Input<string>;
746
+ footer?: pulumi.Input<string | undefined>;
737
747
  /**
738
748
  * Details of the invoice that was cloned. See the [revision documentation](https://docs.stripe.com/invoicing/invoice-revisions) for more details.
739
749
  */
740
- fromInvoice?: pulumi.Input<inputs.InvoiceFromInvoice>;
741
- issuer?: pulumi.Input<inputs.InvoiceIssuer>;
750
+ fromInvoice?: pulumi.Input<inputs.InvoiceFromInvoice | undefined>;
751
+ issuer?: pulumi.Input<inputs.InvoiceIssuer | undefined>;
742
752
  /**
743
753
  * 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.
744
754
  */
745
755
  metadata?: pulumi.Input<{
746
756
  [key: string]: pulumi.Input<string>;
747
- }>;
757
+ } | undefined>;
748
758
  /**
749
759
  * A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique<span pulumi-lang-nodejs=" invoicePrefix " pulumi-lang-dotnet=" InvoicePrefix " pulumi-lang-go=" invoicePrefix " pulumi-lang-python=" invoice_prefix " pulumi-lang-yaml=" invoicePrefix " pulumi-lang-java=" invoicePrefix " pulumi-lang-hcl=" invoice_prefix "> invoicePrefix </span>if it is specified.
750
760
  */
751
- number?: pulumi.Input<string>;
761
+ number?: pulumi.Input<string | undefined>;
752
762
  /**
753
763
  * The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details.
754
764
  */
755
- onBehalfOf?: pulumi.Input<string>;
756
- paymentSettings?: pulumi.Input<inputs.InvoicePaymentSettings>;
765
+ onBehalfOf?: pulumi.Input<string | undefined>;
766
+ paymentSettings?: pulumi.Input<inputs.InvoicePaymentSettings | undefined>;
757
767
  /**
758
768
  * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
759
769
  * How to handle pending invoice items on invoice creation. Defaults to <span pulumi-lang-nodejs="`exclude`" pulumi-lang-dotnet="`Exclude`" pulumi-lang-go="`exclude`" pulumi-lang-python="`exclude`" pulumi-lang-yaml="`exclude`" pulumi-lang-java="`exclude`" pulumi-lang-hcl="`exclude`">`exclude`</span> if the parameter is omitted.
760
770
  */
761
- pendingInvoiceItemsBehavior?: pulumi.Input<string>;
771
+ pendingInvoiceItemsBehavior?: pulumi.Input<string | undefined>;
762
772
  /**
763
- * The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
773
+ * The rendering-related settings that control how invoices render in customer-facing interfaces such as the PDF or hosted invoice page.
764
774
  */
765
- rendering?: pulumi.Input<inputs.InvoiceRendering>;
775
+ rendering?: pulumi.Input<inputs.InvoiceRendering | undefined>;
766
776
  /**
767
777
  * The details of the cost of shipping, including the ShippingRate applied on the invoice.
768
778
  */
769
- shippingCost?: pulumi.Input<inputs.InvoiceShippingCost>;
779
+ shippingCost?: pulumi.Input<inputs.InvoiceShippingCost | undefined>;
770
780
  /**
771
781
  * Shipping details for the invoice. The Invoice PDF will use the <span pulumi-lang-nodejs="`shippingDetails`" pulumi-lang-dotnet="`ShippingDetails`" pulumi-lang-go="`shippingDetails`" pulumi-lang-python="`shipping_details`" pulumi-lang-yaml="`shippingDetails`" pulumi-lang-java="`shippingDetails`" pulumi-lang-hcl="`shipping_details`">`shippingDetails`</span> value if it is set, otherwise the PDF will render the shipping address from the customer.
772
782
  */
773
- shippingDetails?: pulumi.Input<inputs.InvoiceShippingDetails>;
783
+ shippingDetails?: pulumi.Input<inputs.InvoiceShippingDetails | undefined>;
774
784
  /**
775
785
  * Extra information about an invoice for the customer's credit card statement.
776
786
  */
777
- statementDescriptor?: pulumi.Input<string>;
778
- subscription?: pulumi.Input<string>;
787
+ statementDescriptor?: pulumi.Input<string | undefined>;
788
+ subscription?: pulumi.Input<string | undefined>;
779
789
  /**
780
790
  * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
781
791
  * If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge.
782
792
  */
783
- transferData?: pulumi.Input<inputs.InvoiceTransferData>;
793
+ transferData?: pulumi.Input<inputs.InvoiceTransferData | undefined>;
784
794
  }
785
795
  //# sourceMappingURL=invoice.d.ts.map