@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,285 @@
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 Product extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing Product 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?: ProductState, opts?: pulumi.CustomResourceOptions): Product;
15
+ /**
16
+ * Check whether an existing Product 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?: ProductState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
23
+ /**
24
+ * Returns true if the given object is an instance of Product. 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 Product;
28
+ /**
29
+ * Whether the product is currently available for purchase.
30
+ */
31
+ readonly active: pulumi.Output<boolean>;
32
+ /**
33
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
34
+ */
35
+ readonly created: pulumi.Output<number>;
36
+ /**
37
+ * The ID of the [Price](https://docs.stripe.com/api/prices) object that is the default price for this product.
38
+ */
39
+ readonly defaultPrice: pulumi.Output<string>;
40
+ /**
41
+ * Data used to generate a new [Price](https://docs.stripe.com/api/prices) object. This Price will be set as the default price for this product.
42
+ */
43
+ readonly defaultPriceDatas: pulumi.Output<outputs.ProductDefaultPriceData[] | undefined>;
44
+ /**
45
+ * The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
46
+ */
47
+ readonly description: pulumi.Output<string>;
48
+ /**
49
+ * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
50
+ */
51
+ readonly images: pulumi.Output<string[] | undefined>;
52
+ /**
53
+ * 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>.
54
+ */
55
+ readonly livemode: pulumi.Output<boolean>;
56
+ /**
57
+ * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://docs.stripe.com/payments/checkout/pricing-table).
58
+ */
59
+ readonly marketingFeatures: pulumi.Output<outputs.ProductMarketingFeature[] | undefined>;
60
+ /**
61
+ * 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.
62
+ */
63
+ readonly metadata: pulumi.Output<{
64
+ [key: string]: string;
65
+ }>;
66
+ /**
67
+ * The product's name, meant to be displayable to the customer.
68
+ */
69
+ readonly name: pulumi.Output<string>;
70
+ /**
71
+ * String representing the object's type. Objects of the same type share the same value.
72
+ */
73
+ readonly object: pulumi.Output<string>;
74
+ /**
75
+ * The dimensions of this product for shipping purposes.
76
+ */
77
+ readonly packageDimensions: pulumi.Output<outputs.ProductPackageDimension[] | undefined>;
78
+ /**
79
+ * Unique identifier for the object.
80
+ */
81
+ readonly productId: pulumi.Output<string>;
82
+ /**
83
+ * Whether this product is shipped (i.e., physical goods).
84
+ */
85
+ readonly shippable: pulumi.Output<boolean>;
86
+ /**
87
+ * Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. Only used for subscription payments.
88
+ */
89
+ readonly statementDescriptor: pulumi.Output<string>;
90
+ /**
91
+ * A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
92
+ */
93
+ readonly taxCode: pulumi.Output<string>;
94
+ /**
95
+ * Tax details for this product, including the [tax code](https://www.terraform.io/tax/tax-codes) and an optional performance location.
96
+ */
97
+ readonly taxDetails: pulumi.Output<outputs.ProductTaxDetails>;
98
+ /**
99
+ * The type of the product. The product is either of type <span pulumi-lang-nodejs="`good`" pulumi-lang-dotnet="`Good`" pulumi-lang-go="`good`" pulumi-lang-python="`good`" pulumi-lang-yaml="`good`" pulumi-lang-java="`good`" pulumi-lang-hcl="`good`">`good`</span>, which is eligible for use with Orders and SKUs, or <span pulumi-lang-nodejs="`service`" pulumi-lang-dotnet="`Service`" pulumi-lang-go="`service`" pulumi-lang-python="`service`" pulumi-lang-yaml="`service`" pulumi-lang-java="`service`" pulumi-lang-hcl="`service`">`service`</span>, which is eligible for use with Subscriptions and Plans.
100
+ */
101
+ readonly type: pulumi.Output<string>;
102
+ /**
103
+ * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
104
+ */
105
+ readonly unitLabel: pulumi.Output<string>;
106
+ /**
107
+ * Time at which the object was last updated. Measured in seconds since the Unix epoch.
108
+ */
109
+ readonly updated: pulumi.Output<number>;
110
+ /**
111
+ * A URL of a publicly-accessible webpage for this product.
112
+ */
113
+ readonly url: pulumi.Output<string>;
114
+ /**
115
+ * Create a Product resource with the given unique name, arguments, and options.
116
+ *
117
+ * @param name The _unique_ name of the resource.
118
+ * @param args The arguments to use to populate this resource's properties.
119
+ * @param opts A bag of options that control this resource's behavior.
120
+ */
121
+ constructor(name: string, args?: ProductArgs, opts?: pulumi.CustomResourceOptions);
122
+ }
123
+ /**
124
+ * Input properties used for looking up and filtering Product resources.
125
+ */
126
+ export interface ProductState {
127
+ /**
128
+ * Whether the product is currently available for purchase.
129
+ */
130
+ active?: pulumi.Input<boolean | undefined>;
131
+ /**
132
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
133
+ */
134
+ created?: pulumi.Input<number | undefined>;
135
+ /**
136
+ * The ID of the [Price](https://docs.stripe.com/api/prices) object that is the default price for this product.
137
+ */
138
+ defaultPrice?: pulumi.Input<string | undefined>;
139
+ /**
140
+ * Data used to generate a new [Price](https://docs.stripe.com/api/prices) object. This Price will be set as the default price for this product.
141
+ */
142
+ defaultPriceDatas?: pulumi.Input<pulumi.Input<inputs.ProductDefaultPriceData>[] | undefined>;
143
+ /**
144
+ * The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
145
+ */
146
+ description?: pulumi.Input<string | undefined>;
147
+ /**
148
+ * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
149
+ */
150
+ images?: pulumi.Input<pulumi.Input<string>[] | undefined>;
151
+ /**
152
+ * 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>.
153
+ */
154
+ livemode?: pulumi.Input<boolean | undefined>;
155
+ /**
156
+ * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://docs.stripe.com/payments/checkout/pricing-table).
157
+ */
158
+ marketingFeatures?: pulumi.Input<pulumi.Input<inputs.ProductMarketingFeature>[] | undefined>;
159
+ /**
160
+ * 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.
161
+ */
162
+ metadata?: pulumi.Input<{
163
+ [key: string]: pulumi.Input<string>;
164
+ } | undefined>;
165
+ /**
166
+ * The product's name, meant to be displayable to the customer.
167
+ */
168
+ name?: pulumi.Input<string | undefined>;
169
+ /**
170
+ * String representing the object's type. Objects of the same type share the same value.
171
+ */
172
+ object?: pulumi.Input<string | undefined>;
173
+ /**
174
+ * The dimensions of this product for shipping purposes.
175
+ */
176
+ packageDimensions?: pulumi.Input<pulumi.Input<inputs.ProductPackageDimension>[] | undefined>;
177
+ /**
178
+ * Unique identifier for the object.
179
+ */
180
+ productId?: pulumi.Input<string | undefined>;
181
+ /**
182
+ * Whether this product is shipped (i.e., physical goods).
183
+ */
184
+ shippable?: pulumi.Input<boolean | undefined>;
185
+ /**
186
+ * Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. Only used for subscription payments.
187
+ */
188
+ statementDescriptor?: pulumi.Input<string | undefined>;
189
+ /**
190
+ * A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
191
+ */
192
+ taxCode?: pulumi.Input<string | undefined>;
193
+ /**
194
+ * Tax details for this product, including the [tax code](https://www.terraform.io/tax/tax-codes) and an optional performance location.
195
+ */
196
+ taxDetails?: pulumi.Input<inputs.ProductTaxDetails | undefined>;
197
+ /**
198
+ * The type of the product. The product is either of type <span pulumi-lang-nodejs="`good`" pulumi-lang-dotnet="`Good`" pulumi-lang-go="`good`" pulumi-lang-python="`good`" pulumi-lang-yaml="`good`" pulumi-lang-java="`good`" pulumi-lang-hcl="`good`">`good`</span>, which is eligible for use with Orders and SKUs, or <span pulumi-lang-nodejs="`service`" pulumi-lang-dotnet="`Service`" pulumi-lang-go="`service`" pulumi-lang-python="`service`" pulumi-lang-yaml="`service`" pulumi-lang-java="`service`" pulumi-lang-hcl="`service`">`service`</span>, which is eligible for use with Subscriptions and Plans.
199
+ */
200
+ type?: pulumi.Input<string | undefined>;
201
+ /**
202
+ * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
203
+ */
204
+ unitLabel?: pulumi.Input<string | undefined>;
205
+ /**
206
+ * Time at which the object was last updated. Measured in seconds since the Unix epoch.
207
+ */
208
+ updated?: pulumi.Input<number | undefined>;
209
+ /**
210
+ * A URL of a publicly-accessible webpage for this product.
211
+ */
212
+ url?: pulumi.Input<string | undefined>;
213
+ }
214
+ /**
215
+ * The set of arguments for constructing a Product resource.
216
+ */
217
+ export interface ProductArgs {
218
+ /**
219
+ * Whether the product is currently available for purchase.
220
+ */
221
+ active?: pulumi.Input<boolean | undefined>;
222
+ /**
223
+ * Data used to generate a new [Price](https://docs.stripe.com/api/prices) object. This Price will be set as the default price for this product.
224
+ */
225
+ defaultPriceDatas?: pulumi.Input<pulumi.Input<inputs.ProductDefaultPriceData>[] | undefined>;
226
+ /**
227
+ * The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
228
+ */
229
+ description?: pulumi.Input<string | undefined>;
230
+ /**
231
+ * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
232
+ */
233
+ images?: pulumi.Input<pulumi.Input<string>[] | undefined>;
234
+ /**
235
+ * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://docs.stripe.com/payments/checkout/pricing-table).
236
+ */
237
+ marketingFeatures?: pulumi.Input<pulumi.Input<inputs.ProductMarketingFeature>[] | undefined>;
238
+ /**
239
+ * 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.
240
+ */
241
+ metadata?: pulumi.Input<{
242
+ [key: string]: pulumi.Input<string>;
243
+ } | undefined>;
244
+ /**
245
+ * The product's name, meant to be displayable to the customer.
246
+ */
247
+ name?: pulumi.Input<string | undefined>;
248
+ /**
249
+ * The dimensions of this product for shipping purposes.
250
+ */
251
+ packageDimensions?: pulumi.Input<pulumi.Input<inputs.ProductPackageDimension>[] | undefined>;
252
+ /**
253
+ * Unique identifier for the object.
254
+ */
255
+ productId?: pulumi.Input<string | undefined>;
256
+ /**
257
+ * Whether this product is shipped (i.e., physical goods).
258
+ */
259
+ shippable?: pulumi.Input<boolean | undefined>;
260
+ /**
261
+ * Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. Only used for subscription payments.
262
+ */
263
+ statementDescriptor?: pulumi.Input<string | undefined>;
264
+ /**
265
+ * A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
266
+ */
267
+ taxCode?: pulumi.Input<string | undefined>;
268
+ /**
269
+ * Tax details for this product, including the [tax code](https://www.terraform.io/tax/tax-codes) and an optional performance location.
270
+ */
271
+ taxDetails?: pulumi.Input<inputs.ProductTaxDetails | undefined>;
272
+ /**
273
+ * The type of the product. The product is either of type <span pulumi-lang-nodejs="`good`" pulumi-lang-dotnet="`Good`" pulumi-lang-go="`good`" pulumi-lang-python="`good`" pulumi-lang-yaml="`good`" pulumi-lang-java="`good`" pulumi-lang-hcl="`good`">`good`</span>, which is eligible for use with Orders and SKUs, or <span pulumi-lang-nodejs="`service`" pulumi-lang-dotnet="`Service`" pulumi-lang-go="`service`" pulumi-lang-python="`service`" pulumi-lang-yaml="`service`" pulumi-lang-java="`service`" pulumi-lang-hcl="`service`">`service`</span>, which is eligible for use with Subscriptions and Plans.
274
+ */
275
+ type?: pulumi.Input<string | undefined>;
276
+ /**
277
+ * A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
278
+ */
279
+ unitLabel?: pulumi.Input<string | undefined>;
280
+ /**
281
+ * A URL of a publicly-accessible webpage for this product.
282
+ */
283
+ url?: pulumi.Input<string | undefined>;
284
+ }
285
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../product.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,qBAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,E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KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC1C"}
package/bin/product.js ADDED
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Product = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ class Product extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing Product resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name, id, state, opts) {
42
+ return new Product(name, state, { ...opts, id: id });
43
+ }
44
+ /**
45
+ * Check whether an existing Product resource with the given ID exists.
46
+ *
47
+ * @param id The _unique_ provider ID of the resource to check.
48
+ * @param state Any extra arguments used during the lookup.
49
+ * @param opts Optional settings to control the behavior of the CustomResource.
50
+ */
51
+ static exists(id, state, opts) {
52
+ return pulumi.runtime.existsResource("stripe:index/product:Product", id, state || {}, { ...opts }, utilities.getPackage());
53
+ }
54
+ /** @internal */
55
+ static __pulumiType = 'stripe:index/product:Product';
56
+ /**
57
+ * Returns true if the given object is an instance of Product. This is designed to work even
58
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
+ */
60
+ static isInstance(obj) {
61
+ if (obj === undefined || obj === null) {
62
+ return false;
63
+ }
64
+ return obj['__pulumiType'] === Product.__pulumiType;
65
+ }
66
+ constructor(name, argsOrState, opts) {
67
+ let resourceInputs = {};
68
+ opts = opts || {};
69
+ if (opts.id) {
70
+ const state = argsOrState;
71
+ resourceInputs["active"] = state?.active;
72
+ resourceInputs["created"] = state?.created;
73
+ resourceInputs["defaultPrice"] = state?.defaultPrice;
74
+ resourceInputs["defaultPriceDatas"] = state?.defaultPriceDatas;
75
+ resourceInputs["description"] = state?.description;
76
+ resourceInputs["images"] = state?.images;
77
+ resourceInputs["livemode"] = state?.livemode;
78
+ resourceInputs["marketingFeatures"] = state?.marketingFeatures;
79
+ resourceInputs["metadata"] = state?.metadata;
80
+ resourceInputs["name"] = state?.name;
81
+ resourceInputs["object"] = state?.object;
82
+ resourceInputs["packageDimensions"] = state?.packageDimensions;
83
+ resourceInputs["productId"] = state?.productId;
84
+ resourceInputs["shippable"] = state?.shippable;
85
+ resourceInputs["statementDescriptor"] = state?.statementDescriptor;
86
+ resourceInputs["taxCode"] = state?.taxCode;
87
+ resourceInputs["taxDetails"] = state?.taxDetails;
88
+ resourceInputs["type"] = state?.type;
89
+ resourceInputs["unitLabel"] = state?.unitLabel;
90
+ resourceInputs["updated"] = state?.updated;
91
+ resourceInputs["url"] = state?.url;
92
+ }
93
+ else {
94
+ const args = argsOrState;
95
+ resourceInputs["active"] = args?.active;
96
+ resourceInputs["defaultPriceDatas"] = args?.defaultPriceDatas;
97
+ resourceInputs["description"] = args?.description;
98
+ resourceInputs["images"] = args?.images;
99
+ resourceInputs["marketingFeatures"] = args?.marketingFeatures;
100
+ resourceInputs["metadata"] = args?.metadata;
101
+ resourceInputs["name"] = args?.name;
102
+ resourceInputs["packageDimensions"] = args?.packageDimensions;
103
+ resourceInputs["productId"] = args?.productId;
104
+ resourceInputs["shippable"] = args?.shippable;
105
+ resourceInputs["statementDescriptor"] = args?.statementDescriptor;
106
+ resourceInputs["taxCode"] = args?.taxCode;
107
+ resourceInputs["taxDetails"] = args?.taxDetails;
108
+ resourceInputs["type"] = args?.type;
109
+ resourceInputs["unitLabel"] = args?.unitLabel;
110
+ resourceInputs["url"] = args?.url;
111
+ resourceInputs["created"] = undefined /*out*/;
112
+ resourceInputs["defaultPrice"] = undefined /*out*/;
113
+ resourceInputs["livemode"] = undefined /*out*/;
114
+ resourceInputs["object"] = undefined /*out*/;
115
+ resourceInputs["updated"] = undefined /*out*/;
116
+ }
117
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
118
+ super(Product.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
119
+ }
120
+ }
121
+ exports.Product = Product;
122
+ //# sourceMappingURL=product.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.js","sourceRoot":"","sources":["../product.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;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KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC1G,CAAC;;AAxLL,0BAyLC"}
@@ -0,0 +1,105 @@
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 ProductCatalogTrialOffer extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing ProductCatalogTrialOffer 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?: ProductCatalogTrialOfferState, opts?: pulumi.CustomResourceOptions): ProductCatalogTrialOffer;
15
+ /**
16
+ * Check whether an existing ProductCatalogTrialOffer 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?: ProductCatalogTrialOfferState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
23
+ /**
24
+ * Returns true if the given object is an instance of ProductCatalogTrialOffer. 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 ProductCatalogTrialOffer;
28
+ /**
29
+ * Whether the trial offer is active. Set to false to archive the trial offer.
30
+ */
31
+ readonly active: pulumi.Output<boolean>;
32
+ readonly duration: pulumi.Output<outputs.ProductCatalogTrialOfferDuration>;
33
+ readonly endBehavior: pulumi.Output<outputs.ProductCatalogTrialOfferEndBehavior>;
34
+ /**
35
+ * 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>.
36
+ */
37
+ readonly livemode: pulumi.Output<boolean>;
38
+ /**
39
+ * A brief description of the trial offer, hidden from customers.
40
+ */
41
+ readonly nickname: pulumi.Output<string>;
42
+ /**
43
+ * String representing the object's type. Objects of the same type share the same value.
44
+ */
45
+ readonly object: pulumi.Output<string>;
46
+ /**
47
+ * The price during the trial offer.
48
+ */
49
+ readonly price: pulumi.Output<string>;
50
+ /**
51
+ * Create a ProductCatalogTrialOffer resource with the given unique name, arguments, and options.
52
+ *
53
+ * @param name The _unique_ name of the resource.
54
+ * @param args The arguments to use to populate this resource's properties.
55
+ * @param opts A bag of options that control this resource's behavior.
56
+ */
57
+ constructor(name: string, args: ProductCatalogTrialOfferArgs, opts?: pulumi.CustomResourceOptions);
58
+ }
59
+ /**
60
+ * Input properties used for looking up and filtering ProductCatalogTrialOffer resources.
61
+ */
62
+ export interface ProductCatalogTrialOfferState {
63
+ /**
64
+ * Whether the trial offer is active. Set to false to archive the trial offer.
65
+ */
66
+ active?: pulumi.Input<boolean | undefined>;
67
+ duration?: pulumi.Input<inputs.ProductCatalogTrialOfferDuration | undefined>;
68
+ endBehavior?: pulumi.Input<inputs.ProductCatalogTrialOfferEndBehavior | undefined>;
69
+ /**
70
+ * 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>.
71
+ */
72
+ livemode?: pulumi.Input<boolean | undefined>;
73
+ /**
74
+ * A brief description of the trial offer, hidden from customers.
75
+ */
76
+ nickname?: pulumi.Input<string | undefined>;
77
+ /**
78
+ * String representing the object's type. Objects of the same type share the same value.
79
+ */
80
+ object?: pulumi.Input<string | undefined>;
81
+ /**
82
+ * The price during the trial offer.
83
+ */
84
+ price?: pulumi.Input<string | undefined>;
85
+ }
86
+ /**
87
+ * The set of arguments for constructing a ProductCatalogTrialOffer resource.
88
+ */
89
+ export interface ProductCatalogTrialOfferArgs {
90
+ /**
91
+ * Whether the trial offer is active. Set to false to archive the trial offer.
92
+ */
93
+ active?: pulumi.Input<boolean | undefined>;
94
+ duration: pulumi.Input<inputs.ProductCatalogTrialOfferDuration>;
95
+ endBehavior: pulumi.Input<inputs.ProductCatalogTrialOfferEndBehavior>;
96
+ /**
97
+ * A brief description of the trial offer, hidden from customers.
98
+ */
99
+ nickname?: pulumi.Input<string | undefined>;
100
+ /**
101
+ * The price during the trial offer.
102
+ */
103
+ price: pulumi.Input<string>;
104
+ }
105
+ //# sourceMappingURL=productCatalogTrialOffer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productCatalogTrialOffer.d.ts","sourceRoot":"","sources":["../productCatalogTrialOffer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,qBAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,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AK,CAAC,MAAM,CAAC,gCAAgC,GAAG,SAAS,CAAC,CAAC;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mCAAmC,GAAG,SAAS,CAAC,CAAC;IACnF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC;IAChE,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mCAAmC,CAAC,CAAC;IACtE;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC/B"}
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.ProductCatalogTrialOffer = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ class ProductCatalogTrialOffer extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing ProductCatalogTrialOffer resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name, id, state, opts) {
42
+ return new ProductCatalogTrialOffer(name, state, { ...opts, id: id });
43
+ }
44
+ /**
45
+ * Check whether an existing ProductCatalogTrialOffer resource with the given ID exists.
46
+ *
47
+ * @param id The _unique_ provider ID of the resource to check.
48
+ * @param state Any extra arguments used during the lookup.
49
+ * @param opts Optional settings to control the behavior of the CustomResource.
50
+ */
51
+ static exists(id, state, opts) {
52
+ return pulumi.runtime.existsResource("stripe:index/productCatalogTrialOffer:ProductCatalogTrialOffer", id, state || {}, { ...opts }, utilities.getPackage());
53
+ }
54
+ /** @internal */
55
+ static __pulumiType = 'stripe:index/productCatalogTrialOffer:ProductCatalogTrialOffer';
56
+ /**
57
+ * Returns true if the given object is an instance of ProductCatalogTrialOffer. This is designed to work even
58
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
+ */
60
+ static isInstance(obj) {
61
+ if (obj === undefined || obj === null) {
62
+ return false;
63
+ }
64
+ return obj['__pulumiType'] === ProductCatalogTrialOffer.__pulumiType;
65
+ }
66
+ constructor(name, argsOrState, opts) {
67
+ let resourceInputs = {};
68
+ opts = opts || {};
69
+ if (opts.id) {
70
+ const state = argsOrState;
71
+ resourceInputs["active"] = state?.active;
72
+ resourceInputs["duration"] = state?.duration;
73
+ resourceInputs["endBehavior"] = state?.endBehavior;
74
+ resourceInputs["livemode"] = state?.livemode;
75
+ resourceInputs["nickname"] = state?.nickname;
76
+ resourceInputs["object"] = state?.object;
77
+ resourceInputs["price"] = state?.price;
78
+ }
79
+ else {
80
+ const args = argsOrState;
81
+ if (args?.duration === undefined && !opts.urn) {
82
+ throw new Error("Missing required property 'duration'");
83
+ }
84
+ if (args?.endBehavior === undefined && !opts.urn) {
85
+ throw new Error("Missing required property 'endBehavior'");
86
+ }
87
+ if (args?.price === undefined && !opts.urn) {
88
+ throw new Error("Missing required property 'price'");
89
+ }
90
+ resourceInputs["active"] = args?.active;
91
+ resourceInputs["duration"] = args?.duration;
92
+ resourceInputs["endBehavior"] = args?.endBehavior;
93
+ resourceInputs["nickname"] = args?.nickname;
94
+ resourceInputs["price"] = args?.price;
95
+ resourceInputs["livemode"] = undefined /*out*/;
96
+ resourceInputs["object"] = undefined /*out*/;
97
+ }
98
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
99
+ super(ProductCatalogTrialOffer.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
100
+ }
101
+ }
102
+ exports.ProductCatalogTrialOffer = ProductCatalogTrialOffer;
103
+ //# sourceMappingURL=productCatalogTrialOffer.js.map
@@ -0,0 +1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