@humanlayer/pulumi-stripe 0.1.0

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 (86) hide show
  1. package/README.md +4 -0
  2. package/bin/billingMeter.d.ts +130 -0
  3. package/bin/billingMeter.js +72 -0
  4. package/bin/billingMeter.js.map +1 -0
  5. package/bin/config/index.d.ts +1 -0
  6. package/bin/config/index.js +21 -0
  7. package/bin/config/index.js.map +1 -0
  8. package/bin/config/vars.d.ts +4 -0
  9. package/bin/config/vars.js +13 -0
  10. package/bin/config/vars.js.map +1 -0
  11. package/bin/coupon.d.ts +203 -0
  12. package/bin/coupon.js +77 -0
  13. package/bin/coupon.js.map +1 -0
  14. package/bin/customer.d.ts +248 -0
  15. package/bin/customer.js +93 -0
  16. package/bin/customer.js.map +1 -0
  17. package/bin/entitlementsFeature.d.ts +86 -0
  18. package/bin/entitlementsFeature.js +58 -0
  19. package/bin/entitlementsFeature.js.map +1 -0
  20. package/bin/getBillingMeter.d.ts +26 -0
  21. package/bin/getBillingMeter.js +25 -0
  22. package/bin/getBillingMeter.js.map +1 -0
  23. package/bin/index.d.ts +64 -0
  24. package/bin/index.js +145 -0
  25. package/bin/index.js.map +1 -0
  26. package/bin/price.d.ts +232 -0
  27. package/bin/price.js +82 -0
  28. package/bin/price.js.map +1 -0
  29. package/bin/product.d.ts +212 -0
  30. package/bin/product.js +75 -0
  31. package/bin/product.js.map +1 -0
  32. package/bin/promotionCode.d.ts +160 -0
  33. package/bin/promotionCode.js +70 -0
  34. package/bin/promotionCode.js.map +1 -0
  35. package/bin/provider.d.ts +49 -0
  36. package/bin/provider.js +55 -0
  37. package/bin/provider.js.map +1 -0
  38. package/bin/shippingRate.d.ts +136 -0
  39. package/bin/shippingRate.js +66 -0
  40. package/bin/shippingRate.js.map +1 -0
  41. package/bin/taxRate.d.ts +186 -0
  42. package/bin/taxRate.js +82 -0
  43. package/bin/taxRate.js.map +1 -0
  44. package/bin/types/index.d.ts +3 -0
  45. package/bin/types/index.js +11 -0
  46. package/bin/types/index.js.map +1 -0
  47. package/bin/types/input.d.ts +713 -0
  48. package/bin/types/input.js +5 -0
  49. package/bin/types/input.js.map +1 -0
  50. package/bin/types/output.d.ts +712 -0
  51. package/bin/types/output.js +5 -0
  52. package/bin/types/output.js.map +1 -0
  53. package/bin/utilities.d.ts +4 -0
  54. package/bin/utilities.js +90 -0
  55. package/bin/utilities.js.map +1 -0
  56. package/bin/v2billingLicenseFee.d.ts +200 -0
  57. package/bin/v2billingLicenseFee.js +93 -0
  58. package/bin/v2billingLicenseFee.js.map +1 -0
  59. package/bin/v2billingLicensedItem.d.ts +90 -0
  60. package/bin/v2billingLicensedItem.js +58 -0
  61. package/bin/v2billingLicensedItem.js.map +1 -0
  62. package/bin/v2billingMeteredItem.d.ts +128 -0
  63. package/bin/v2billingMeteredItem.js +67 -0
  64. package/bin/v2billingMeteredItem.js.map +1 -0
  65. package/bin/v2billingPricingPlan.d.ts +138 -0
  66. package/bin/v2billingPricingPlan.js +74 -0
  67. package/bin/v2billingPricingPlan.js.map +1 -0
  68. package/bin/v2billingPricingPlanComponent.d.ts +144 -0
  69. package/bin/v2billingPricingPlanComponent.js +71 -0
  70. package/bin/v2billingPricingPlanComponent.js.map +1 -0
  71. package/bin/v2billingRateCard.d.ts +150 -0
  72. package/bin/v2billingRateCard.js +82 -0
  73. package/bin/v2billingRateCard.js.map +1 -0
  74. package/bin/v2billingRateCardRate.d.ts +132 -0
  75. package/bin/v2billingRateCardRate.js +69 -0
  76. package/bin/v2billingRateCardRate.js.map +1 -0
  77. package/bin/v2billingServiceAction.d.ts +98 -0
  78. package/bin/v2billingServiceAction.js +66 -0
  79. package/bin/v2billingServiceAction.js.map +1 -0
  80. package/bin/v2coreEventDestination.d.ts +172 -0
  81. package/bin/v2coreEventDestination.js +78 -0
  82. package/bin/v2coreEventDestination.js.map +1 -0
  83. package/bin/webhookEndpoint.d.ts +120 -0
  84. package/bin/webhookEndpoint.js +73 -0
  85. package/bin/webhookEndpoint.js.map +1 -0
  86. package/package.json +42 -0
@@ -0,0 +1,172 @@
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 V2CoreEventDestination extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing V2CoreEventDestination 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?: V2CoreEventDestinationState, opts?: pulumi.CustomResourceOptions): V2CoreEventDestination;
15
+ /**
16
+ * Returns true if the given object is an instance of V2CoreEventDestination. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ static isInstance(obj: any): obj is V2CoreEventDestination;
20
+ /**
21
+ * Amazon EventBridge configuration.
22
+ */
23
+ readonly amazonEventbridge: pulumi.Output<outputs.V2CoreEventDestinationAmazonEventbridge | undefined>;
24
+ /**
25
+ * An optional description of what the event destination is used for.
26
+ */
27
+ readonly description: pulumi.Output<string>;
28
+ /**
29
+ * The list of events to enable for this endpoint.
30
+ */
31
+ readonly enabledEvents: pulumi.Output<string[]>;
32
+ /**
33
+ * Payload type of events being subscribed to.
34
+ */
35
+ readonly eventPayload: pulumi.Output<string>;
36
+ /**
37
+ * Where events should be routed from.
38
+ */
39
+ readonly eventsFroms: pulumi.Output<string[]>;
40
+ /**
41
+ * Metadata.
42
+ */
43
+ readonly metadata: pulumi.Output<{
44
+ [key: string]: string;
45
+ }>;
46
+ /**
47
+ * Event destination name.
48
+ */
49
+ readonly name: pulumi.Output<string>;
50
+ /**
51
+ * If using the snapshot event payload, the API version events are rendered as.
52
+ */
53
+ readonly snapshotApiVersion: pulumi.Output<string>;
54
+ /**
55
+ * Status. It can be set to either enabled or disabled.
56
+ */
57
+ readonly status: pulumi.Output<string>;
58
+ /**
59
+ * Event destination type.
60
+ */
61
+ readonly type: pulumi.Output<string>;
62
+ /**
63
+ * Webhook endpoint configuration.
64
+ */
65
+ readonly webhookEndpoint: pulumi.Output<outputs.V2CoreEventDestinationWebhookEndpoint | undefined>;
66
+ /**
67
+ * Create a V2CoreEventDestination resource with the given unique name, arguments, and options.
68
+ *
69
+ * @param name The _unique_ name of the resource.
70
+ * @param args The arguments to use to populate this resource's properties.
71
+ * @param opts A bag of options that control this resource's behavior.
72
+ */
73
+ constructor(name: string, args: V2CoreEventDestinationArgs, opts?: pulumi.CustomResourceOptions);
74
+ }
75
+ /**
76
+ * Input properties used for looking up and filtering V2CoreEventDestination resources.
77
+ */
78
+ export interface V2CoreEventDestinationState {
79
+ /**
80
+ * Amazon EventBridge configuration.
81
+ */
82
+ amazonEventbridge?: pulumi.Input<inputs.V2CoreEventDestinationAmazonEventbridge>;
83
+ /**
84
+ * An optional description of what the event destination is used for.
85
+ */
86
+ description?: pulumi.Input<string>;
87
+ /**
88
+ * The list of events to enable for this endpoint.
89
+ */
90
+ enabledEvents?: pulumi.Input<pulumi.Input<string>[]>;
91
+ /**
92
+ * Payload type of events being subscribed to.
93
+ */
94
+ eventPayload?: pulumi.Input<string>;
95
+ /**
96
+ * Where events should be routed from.
97
+ */
98
+ eventsFroms?: pulumi.Input<pulumi.Input<string>[]>;
99
+ /**
100
+ * Metadata.
101
+ */
102
+ metadata?: pulumi.Input<{
103
+ [key: string]: pulumi.Input<string>;
104
+ }>;
105
+ /**
106
+ * Event destination name.
107
+ */
108
+ name?: pulumi.Input<string>;
109
+ /**
110
+ * If using the snapshot event payload, the API version events are rendered as.
111
+ */
112
+ snapshotApiVersion?: pulumi.Input<string>;
113
+ /**
114
+ * Status. It can be set to either enabled or disabled.
115
+ */
116
+ status?: pulumi.Input<string>;
117
+ /**
118
+ * Event destination type.
119
+ */
120
+ type?: pulumi.Input<string>;
121
+ /**
122
+ * Webhook endpoint configuration.
123
+ */
124
+ webhookEndpoint?: pulumi.Input<inputs.V2CoreEventDestinationWebhookEndpoint>;
125
+ }
126
+ /**
127
+ * The set of arguments for constructing a V2CoreEventDestination resource.
128
+ */
129
+ export interface V2CoreEventDestinationArgs {
130
+ /**
131
+ * Amazon EventBridge configuration.
132
+ */
133
+ amazonEventbridge?: pulumi.Input<inputs.V2CoreEventDestinationAmazonEventbridge>;
134
+ /**
135
+ * An optional description of what the event destination is used for.
136
+ */
137
+ description?: pulumi.Input<string>;
138
+ /**
139
+ * The list of events to enable for this endpoint.
140
+ */
141
+ enabledEvents: pulumi.Input<pulumi.Input<string>[]>;
142
+ /**
143
+ * Payload type of events being subscribed to.
144
+ */
145
+ eventPayload: pulumi.Input<string>;
146
+ /**
147
+ * Where events should be routed from.
148
+ */
149
+ eventsFroms?: pulumi.Input<pulumi.Input<string>[]>;
150
+ /**
151
+ * Metadata.
152
+ */
153
+ metadata?: pulumi.Input<{
154
+ [key: string]: pulumi.Input<string>;
155
+ }>;
156
+ /**
157
+ * Event destination name.
158
+ */
159
+ name?: pulumi.Input<string>;
160
+ /**
161
+ * If using the snapshot event payload, the API version events are rendered as.
162
+ */
163
+ snapshotApiVersion?: pulumi.Input<string>;
164
+ /**
165
+ * Event destination type.
166
+ */
167
+ type: pulumi.Input<string>;
168
+ /**
169
+ * Webhook endpoint configuration.
170
+ */
171
+ webhookEndpoint?: pulumi.Input<inputs.V2CoreEventDestinationWebhookEndpoint>;
172
+ }
@@ -0,0 +1,78 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.V2CoreEventDestination = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class V2CoreEventDestination extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing V2CoreEventDestination resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new V2CoreEventDestination(name, state, { ...opts, id: id });
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of V2CoreEventDestination. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === V2CoreEventDestination.__pulumiType;
30
+ }
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["amazonEventbridge"] = state?.amazonEventbridge;
37
+ resourceInputs["description"] = state?.description;
38
+ resourceInputs["enabledEvents"] = state?.enabledEvents;
39
+ resourceInputs["eventPayload"] = state?.eventPayload;
40
+ resourceInputs["eventsFroms"] = state?.eventsFroms;
41
+ resourceInputs["metadata"] = state?.metadata;
42
+ resourceInputs["name"] = state?.name;
43
+ resourceInputs["snapshotApiVersion"] = state?.snapshotApiVersion;
44
+ resourceInputs["status"] = state?.status;
45
+ resourceInputs["type"] = state?.type;
46
+ resourceInputs["webhookEndpoint"] = state?.webhookEndpoint;
47
+ }
48
+ else {
49
+ const args = argsOrState;
50
+ if (args?.enabledEvents === undefined && !opts.urn) {
51
+ throw new Error("Missing required property 'enabledEvents'");
52
+ }
53
+ if (args?.eventPayload === undefined && !opts.urn) {
54
+ throw new Error("Missing required property 'eventPayload'");
55
+ }
56
+ if (args?.type === undefined && !opts.urn) {
57
+ throw new Error("Missing required property 'type'");
58
+ }
59
+ resourceInputs["amazonEventbridge"] = args?.amazonEventbridge;
60
+ resourceInputs["description"] = args?.description;
61
+ resourceInputs["enabledEvents"] = args?.enabledEvents;
62
+ resourceInputs["eventPayload"] = args?.eventPayload;
63
+ resourceInputs["eventsFroms"] = args?.eventsFroms;
64
+ resourceInputs["metadata"] = args?.metadata;
65
+ resourceInputs["name"] = args?.name;
66
+ resourceInputs["snapshotApiVersion"] = args?.snapshotApiVersion;
67
+ resourceInputs["type"] = args?.type;
68
+ resourceInputs["webhookEndpoint"] = args?.webhookEndpoint;
69
+ resourceInputs["status"] = undefined /*out*/;
70
+ }
71
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
72
+ super(V2CoreEventDestination.__pulumiType, name, resourceInputs, opts);
73
+ }
74
+ }
75
+ exports.V2CoreEventDestination = V2CoreEventDestination;
76
+ /** @internal */
77
+ V2CoreEventDestination.__pulumiType = 'stripe:index/v2CoreEventDestination:V2CoreEventDestination';
78
+ //# sourceMappingURL=v2coreEventDestination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2coreEventDestination.js","sourceRoot":"","sources":["../v2coreEventDestination.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,sBAAsB,CAAC,YAAY,CAAC;IACvE,CAAC;I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CAAC;YACD,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;gBACxC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;YACxD,CAAC;YACD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;QACjD,CAAC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AA1HL,wDA2HC;AA7GG,gBAAgB;AACO,mCAAY,GAAG,4DAA4D,CAAC"}
@@ -0,0 +1,120 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class WebhookEndpoint extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing WebhookEndpoint resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WebhookEndpointState, opts?: pulumi.CustomResourceOptions): WebhookEndpoint;
13
+ /**
14
+ * Returns true if the given object is an instance of WebhookEndpoint. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is WebhookEndpoint;
18
+ /**
19
+ * Events sent to this endpoint will be generated with this Stripe Version instead of your account's default Stripe Version.
20
+ */
21
+ readonly apiVersion: pulumi.Output<string>;
22
+ /**
23
+ * The ID of the associated Connect application.
24
+ */
25
+ readonly application: pulumi.Output<string>;
26
+ /**
27
+ * Whether this endpoint should receive events from connected accounts (`true`), or from your account (`false`). Defaults to `false`.
28
+ */
29
+ readonly connect: pulumi.Output<boolean | undefined>;
30
+ readonly description: pulumi.Output<string>;
31
+ /**
32
+ * The list of events to enable for this endpoint. You may specify `['*']` to enable all events, except those that require explicit selection.
33
+ */
34
+ readonly enabledEvents: pulumi.Output<string[]>;
35
+ readonly metadata: pulumi.Output<{
36
+ [key: string]: string;
37
+ }>;
38
+ /**
39
+ * The endpoint's secret, used to generate [webhook signatures](https://docs.stripe.com/webhooks/signatures). Only returned at creation.
40
+ */
41
+ readonly secret: pulumi.Output<string>;
42
+ /**
43
+ * The status of the webhook. It can be `enabled` or `disabled`.
44
+ */
45
+ readonly status: pulumi.Output<string>;
46
+ /**
47
+ * The URL of the webhook endpoint.
48
+ */
49
+ readonly url: pulumi.Output<string>;
50
+ /**
51
+ * Create a WebhookEndpoint 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: WebhookEndpointArgs, opts?: pulumi.CustomResourceOptions);
58
+ }
59
+ /**
60
+ * Input properties used for looking up and filtering WebhookEndpoint resources.
61
+ */
62
+ export interface WebhookEndpointState {
63
+ /**
64
+ * Events sent to this endpoint will be generated with this Stripe Version instead of your account's default Stripe Version.
65
+ */
66
+ apiVersion?: pulumi.Input<string>;
67
+ /**
68
+ * The ID of the associated Connect application.
69
+ */
70
+ application?: pulumi.Input<string>;
71
+ /**
72
+ * Whether this endpoint should receive events from connected accounts (`true`), or from your account (`false`). Defaults to `false`.
73
+ */
74
+ connect?: pulumi.Input<boolean>;
75
+ description?: pulumi.Input<string>;
76
+ /**
77
+ * The list of events to enable for this endpoint. You may specify `['*']` to enable all events, except those that require explicit selection.
78
+ */
79
+ enabledEvents?: pulumi.Input<pulumi.Input<string>[]>;
80
+ metadata?: pulumi.Input<{
81
+ [key: string]: pulumi.Input<string>;
82
+ }>;
83
+ /**
84
+ * The endpoint's secret, used to generate [webhook signatures](https://docs.stripe.com/webhooks/signatures). Only returned at creation.
85
+ */
86
+ secret?: pulumi.Input<string>;
87
+ /**
88
+ * The status of the webhook. It can be `enabled` or `disabled`.
89
+ */
90
+ status?: pulumi.Input<string>;
91
+ /**
92
+ * The URL of the webhook endpoint.
93
+ */
94
+ url?: pulumi.Input<string>;
95
+ }
96
+ /**
97
+ * The set of arguments for constructing a WebhookEndpoint resource.
98
+ */
99
+ export interface WebhookEndpointArgs {
100
+ /**
101
+ * Events sent to this endpoint will be generated with this Stripe Version instead of your account's default Stripe Version.
102
+ */
103
+ apiVersion?: pulumi.Input<string>;
104
+ /**
105
+ * Whether this endpoint should receive events from connected accounts (`true`), or from your account (`false`). Defaults to `false`.
106
+ */
107
+ connect?: pulumi.Input<boolean>;
108
+ description?: pulumi.Input<string>;
109
+ /**
110
+ * The list of events to enable for this endpoint. You may specify `['*']` to enable all events, except those that require explicit selection.
111
+ */
112
+ enabledEvents: pulumi.Input<pulumi.Input<string>[]>;
113
+ metadata?: pulumi.Input<{
114
+ [key: string]: pulumi.Input<string>;
115
+ }>;
116
+ /**
117
+ * The URL of the webhook endpoint.
118
+ */
119
+ url: pulumi.Input<string>;
120
+ }
@@ -0,0 +1,73 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.WebhookEndpoint = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class WebhookEndpoint extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing WebhookEndpoint resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new WebhookEndpoint(name, state, { ...opts, id: id });
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of WebhookEndpoint. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === WebhookEndpoint.__pulumiType;
30
+ }
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["apiVersion"] = state?.apiVersion;
37
+ resourceInputs["application"] = state?.application;
38
+ resourceInputs["connect"] = state?.connect;
39
+ resourceInputs["description"] = state?.description;
40
+ resourceInputs["enabledEvents"] = state?.enabledEvents;
41
+ resourceInputs["metadata"] = state?.metadata;
42
+ resourceInputs["secret"] = state?.secret;
43
+ resourceInputs["status"] = state?.status;
44
+ resourceInputs["url"] = state?.url;
45
+ }
46
+ else {
47
+ const args = argsOrState;
48
+ if (args?.enabledEvents === undefined && !opts.urn) {
49
+ throw new Error("Missing required property 'enabledEvents'");
50
+ }
51
+ if (args?.url === undefined && !opts.urn) {
52
+ throw new Error("Missing required property 'url'");
53
+ }
54
+ resourceInputs["apiVersion"] = args?.apiVersion;
55
+ resourceInputs["connect"] = args?.connect;
56
+ resourceInputs["description"] = args?.description;
57
+ resourceInputs["enabledEvents"] = args?.enabledEvents;
58
+ resourceInputs["metadata"] = args?.metadata;
59
+ resourceInputs["url"] = args?.url;
60
+ resourceInputs["application"] = undefined /*out*/;
61
+ resourceInputs["secret"] = undefined /*out*/;
62
+ resourceInputs["status"] = undefined /*out*/;
63
+ }
64
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
65
+ const secretOpts = { additionalSecretOutputs: ["secret"] };
66
+ opts = pulumi.mergeOptions(opts, secretOpts);
67
+ super(WebhookEndpoint.__pulumiType, name, resourceInputs, opts);
68
+ }
69
+ }
70
+ exports.WebhookEndpoint = WebhookEndpoint;
71
+ /** @internal */
72
+ WebhookEndpoint.__pulumiType = 'stripe:index/webhookEndpoint:WebhookEndpoint';
73
+ //# sourceMappingURL=webhookEndpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhookEndpoint.js","sourceRoot":"","sources":["../webhookEndpoint.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,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KAAK,CAAC,iCAAiC,CAAC,CAAC;YACvD,CAAC;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;QACjD,CAAC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAvGL,0CAwGC;AA1FG,gBAAgB;AACO,4BAAY,GAAG,8CAA8C,CAAC"}
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@humanlayer/pulumi-stripe",
3
+ "version": "0.1.0",
4
+ "description": "A Pulumi provider for managing Stripe resources",
5
+ "keywords": [
6
+ "pulumi",
7
+ "stripe",
8
+ "payments",
9
+ "billing",
10
+ "infrastructure-as-code"
11
+ ],
12
+ "homepage": "https://github.com/humanlayer/pulumi-stripe",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/humanlayer/pulumi-stripe.git"
16
+ },
17
+ "license": "MIT",
18
+ "main": "bin/index.js",
19
+ "types": "bin/index.d.ts",
20
+ "files": [
21
+ "bin"
22
+ ],
23
+ "scripts": {
24
+ "build": "tsc",
25
+ "prepack": "npm run build"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "dependencies": {
31
+ "@pulumi/pulumi": "^3.142.0"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "^18",
35
+ "typescript": "^5.0.0"
36
+ },
37
+ "pulumi": {
38
+ "resource": true,
39
+ "name": "stripe",
40
+ "server": "github://api.github.com/humanlayer/pulumi-stripe"
41
+ }
42
+ }