@activepieces/piece-stripe 0.6.9 → 0.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -13
- package/src/index.js +26 -127
- package/src/index.d.ts +0 -3
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/cancel-subscription.d.ts +0 -5
- package/src/lib/actions/cancel-subscription.d.ts.map +0 -1
- package/src/lib/actions/cancel-subscription.js +0 -42
- package/src/lib/actions/cancel-subscription.js.map +0 -1
- package/src/lib/actions/create-customer.d.ts +0 -12
- package/src/lib/actions/create-customer.d.ts.map +0 -1
- package/src/lib/actions/create-customer.js +0 -91
- package/src/lib/actions/create-customer.js.map +0 -1
- package/src/lib/actions/create-invoice.d.ts +0 -6
- package/src/lib/actions/create-invoice.d.ts.map +0 -1
- package/src/lib/actions/create-invoice.js +0 -59
- package/src/lib/actions/create-invoice.js.map +0 -1
- package/src/lib/actions/create-payment-intent.d.ts +0 -11
- package/src/lib/actions/create-payment-intent.d.ts.map +0 -1
- package/src/lib/actions/create-payment-intent.js +0 -113
- package/src/lib/actions/create-payment-intent.js.map +0 -1
- package/src/lib/actions/create-payment-link.d.ts +0 -9
- package/src/lib/actions/create-payment-link.d.ts.map +0 -1
- package/src/lib/actions/create-payment-link.js +0 -97
- package/src/lib/actions/create-payment-link.js.map +0 -1
- package/src/lib/actions/create-price.d.ts +0 -8
- package/src/lib/actions/create-price.d.ts.map +0 -1
- package/src/lib/actions/create-price.js +0 -97
- package/src/lib/actions/create-price.js.map +0 -1
- package/src/lib/actions/create-product.d.ts +0 -9
- package/src/lib/actions/create-product.d.ts.map +0 -1
- package/src/lib/actions/create-product.js +0 -89
- package/src/lib/actions/create-product.js.map +0 -1
- package/src/lib/actions/create-refund.d.ts +0 -7
- package/src/lib/actions/create-refund.d.ts.map +0 -1
- package/src/lib/actions/create-refund.js +0 -77
- package/src/lib/actions/create-refund.js.map +0 -1
- package/src/lib/actions/create-subscription.d.ts +0 -10
- package/src/lib/actions/create-subscription.d.ts.map +0 -1
- package/src/lib/actions/create-subscription.js +0 -110
- package/src/lib/actions/create-subscription.js.map +0 -1
- package/src/lib/actions/deactivate-payment-link.d.ts +0 -4
- package/src/lib/actions/deactivate-payment-link.d.ts.map +0 -1
- package/src/lib/actions/deactivate-payment-link.js +0 -31
- package/src/lib/actions/deactivate-payment-link.js.map +0 -1
- package/src/lib/actions/find-invoice.d.ts +0 -4
- package/src/lib/actions/find-invoice.d.ts.map +0 -1
- package/src/lib/actions/find-invoice.js +0 -37
- package/src/lib/actions/find-invoice.js.map +0 -1
- package/src/lib/actions/retrieve-customer.d.ts +0 -4
- package/src/lib/actions/retrieve-customer.d.ts.map +0 -1
- package/src/lib/actions/retrieve-customer.js +0 -42
- package/src/lib/actions/retrieve-customer.js.map +0 -1
- package/src/lib/actions/retrieve-invoice.d.ts +0 -4
- package/src/lib/actions/retrieve-invoice.d.ts.map +0 -1
- package/src/lib/actions/retrieve-invoice.js +0 -37
- package/src/lib/actions/retrieve-invoice.js.map +0 -1
- package/src/lib/actions/retrieve-payment-intent.d.ts +0 -4
- package/src/lib/actions/retrieve-payment-intent.d.ts.map +0 -1
- package/src/lib/actions/retrieve-payment-intent.js +0 -37
- package/src/lib/actions/retrieve-payment-intent.js.map +0 -1
- package/src/lib/actions/retrieve-payout.d.ts +0 -4
- package/src/lib/actions/retrieve-payout.d.ts.map +0 -1
- package/src/lib/actions/retrieve-payout.js +0 -37
- package/src/lib/actions/retrieve-payout.js.map +0 -1
- package/src/lib/actions/search-customer.d.ts +0 -4
- package/src/lib/actions/search-customer.d.ts.map +0 -1
- package/src/lib/actions/search-customer.js +0 -47
- package/src/lib/actions/search-customer.js.map +0 -1
- package/src/lib/actions/search-subscriptions.d.ts +0 -11
- package/src/lib/actions/search-subscriptions.d.ts.map +0 -1
- package/src/lib/actions/search-subscriptions.js +0 -199
- package/src/lib/actions/search-subscriptions.js.map +0 -1
- package/src/lib/actions/update-customer.d.ts +0 -13
- package/src/lib/actions/update-customer.d.ts.map +0 -1
- package/src/lib/actions/update-customer.js +0 -100
- package/src/lib/actions/update-customer.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -18
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -405
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/common/types.d.ts +0 -59
- package/src/lib/common/types.d.ts.map +0 -1
- package/src/lib/common/types.js +0 -3
- package/src/lib/common/types.js.map +0 -1
- package/src/lib/trigger/canceled-subscription.d.ts +0 -11
- package/src/lib/trigger/canceled-subscription.d.ts.map +0 -1
- package/src/lib/trigger/canceled-subscription.js +0 -116
- package/src/lib/trigger/canceled-subscription.js.map +0 -1
- package/src/lib/trigger/checkout-session-completed.d.ts +0 -11
- package/src/lib/trigger/checkout-session-completed.d.ts.map +0 -1
- package/src/lib/trigger/checkout-session-completed.js +0 -94
- package/src/lib/trigger/checkout-session-completed.js.map +0 -1
- package/src/lib/trigger/invoice-payment-failed.d.ts +0 -11
- package/src/lib/trigger/invoice-payment-failed.d.ts.map +0 -1
- package/src/lib/trigger/invoice-payment-failed.js +0 -104
- package/src/lib/trigger/invoice-payment-failed.js.map +0 -1
- package/src/lib/trigger/new-charge.d.ts +0 -3
- package/src/lib/trigger/new-charge.d.ts.map +0 -1
- package/src/lib/trigger/new-charge.js +0 -99
- package/src/lib/trigger/new-charge.js.map +0 -1
- package/src/lib/trigger/new-customer.d.ts +0 -3
- package/src/lib/trigger/new-customer.d.ts.map +0 -1
- package/src/lib/trigger/new-customer.js +0 -94
- package/src/lib/trigger/new-customer.js.map +0 -1
- package/src/lib/trigger/new-dispute.d.ts +0 -15
- package/src/lib/trigger/new-dispute.d.ts.map +0 -1
- package/src/lib/trigger/new-dispute.js +0 -102
- package/src/lib/trigger/new-dispute.js.map +0 -1
- package/src/lib/trigger/new-invoice.d.ts +0 -19
- package/src/lib/trigger/new-invoice.d.ts.map +0 -1
- package/src/lib/trigger/new-invoice.js +0 -117
- package/src/lib/trigger/new-invoice.js.map +0 -1
- package/src/lib/trigger/new-payment-link.d.ts +0 -3
- package/src/lib/trigger/new-payment-link.d.ts.map +0 -1
- package/src/lib/trigger/new-payment-link.js +0 -79
- package/src/lib/trigger/new-payment-link.js.map +0 -1
- package/src/lib/trigger/new-payment.d.ts +0 -3
- package/src/lib/trigger/new-payment.d.ts.map +0 -1
- package/src/lib/trigger/new-payment.js +0 -161
- package/src/lib/trigger/new-payment.js.map +0 -1
- package/src/lib/trigger/new-refund.d.ts +0 -15
- package/src/lib/trigger/new-refund.d.ts.map +0 -1
- package/src/lib/trigger/new-refund.js +0 -94
- package/src/lib/trigger/new-refund.js.map +0 -1
- package/src/lib/trigger/new-subscription.d.ts +0 -3
- package/src/lib/trigger/new-subscription.d.ts.map +0 -1
- package/src/lib/trigger/new-subscription.js +0 -200
- package/src/lib/trigger/new-subscription.js.map +0 -1
- package/src/lib/trigger/payment-failed.d.ts +0 -3
- package/src/lib/trigger/payment-failed.d.ts.map +0 -1
- package/src/lib/trigger/payment-failed.js +0 -207
- package/src/lib/trigger/payment-failed.js.map +0 -1
- package/src/lib/trigger/updated-subscription.d.ts +0 -15
- package/src/lib/trigger/updated-subscription.d.ts.map +0 -1
- package/src/lib/trigger/updated-subscription.js +0 -130
- package/src/lib/trigger/updated-subscription.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-price.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-price.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AACrC,6BAAmC;AACnC,sCAAyC;AAE5B,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,cAAU;IAChB,WAAW,EAAE,cAAc;IAC3B,WAAW,EACT,oEAAoE;IACtE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,mTAAmT;QACrT,UA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,WAAW;iBAChC;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,mCAAmC;iBACpD;gBACD,IAAI,EAAE,IAAI;aACX,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const stripeCreateProduct: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
description: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
4
|
-
active: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
5
|
-
images: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
6
|
-
url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
metadata: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=create-product.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-product.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mBAAmB;;;;;;;EAqF9B,CAAC"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stripeCreateProduct = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.stripeCreateProduct = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'create_product',
|
|
11
|
-
auth: __1.stripeAuth,
|
|
12
|
-
displayName: 'Create Product',
|
|
13
|
-
description: 'Create a new product object in Stripe.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Creates a new product object in Stripe (the catalog item that prices attach to), with optional description, images, URL, and metadata. Use before creating a price or when adding a sellable item. Not idempotent: each call creates a distinct product.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
name: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Product Name',
|
|
22
|
-
description: 'The product’s name, meant to be displayable to the customer.',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
description: pieces_framework_1.Property.LongText({
|
|
26
|
-
displayName: 'Description',
|
|
27
|
-
description: 'The product’s description, meant to be displayable to the customer.',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
active: pieces_framework_1.Property.Checkbox({
|
|
31
|
-
displayName: 'Active',
|
|
32
|
-
description: 'Whether the product is currently available for purchase. Defaults to true.',
|
|
33
|
-
required: false,
|
|
34
|
-
}),
|
|
35
|
-
images: pieces_framework_1.Property.Array({
|
|
36
|
-
displayName: 'Image URLs',
|
|
37
|
-
description: 'A list of up to 8 URLs of images for this product.',
|
|
38
|
-
required: false,
|
|
39
|
-
}),
|
|
40
|
-
url: pieces_framework_1.Property.ShortText({
|
|
41
|
-
displayName: 'Product URL',
|
|
42
|
-
description: 'A publicly-accessible online page for this product.',
|
|
43
|
-
required: false,
|
|
44
|
-
}),
|
|
45
|
-
metadata: pieces_framework_1.Property.Json({
|
|
46
|
-
displayName: 'Metadata',
|
|
47
|
-
description: 'A set of key-value pairs to store additional information about the product.',
|
|
48
|
-
required: false,
|
|
49
|
-
}),
|
|
50
|
-
},
|
|
51
|
-
run(context) {
|
|
52
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
const { name, description, active, images, url, metadata } = context.propsValue;
|
|
54
|
-
const body = {
|
|
55
|
-
name: name,
|
|
56
|
-
};
|
|
57
|
-
if (description)
|
|
58
|
-
body.description = description;
|
|
59
|
-
if (active !== undefined)
|
|
60
|
-
body.active = active;
|
|
61
|
-
if (url)
|
|
62
|
-
body.url = url;
|
|
63
|
-
if (images && Array.isArray(images)) {
|
|
64
|
-
images.forEach((image, index) => {
|
|
65
|
-
body[`images[${index}]`] = image;
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
if (metadata && typeof metadata === 'object') {
|
|
69
|
-
Object.keys(metadata).forEach((key) => {
|
|
70
|
-
body[`metadata[${key}]`] = metadata[key];
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
74
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
75
|
-
url: `${common_1.stripeCommon.baseUrl}/products`,
|
|
76
|
-
authentication: {
|
|
77
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
78
|
-
token: context.auth.secret_text,
|
|
79
|
-
},
|
|
80
|
-
headers: {
|
|
81
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
82
|
-
},
|
|
83
|
-
body: body,
|
|
84
|
-
});
|
|
85
|
-
return response.body;
|
|
86
|
-
});
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
//# sourceMappingURL=create-product.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-product.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AACrC,6BAAmC;AACnC,sCAAyC;AAE5B,QAAA,mBAAmB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,cAAU;IAChB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,wCAAwC;IACrD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,0PAA0P;QAC5P,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,IA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AO,CAAC,MAAM,CAAC,EAAE,CAAC;gBACpC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;oBAC9B,IAAI,CAAC,UAAU,KAAK,GAAG,CAAC,GAAG,KAAK,CAAC;gBACnC,CAAC,CAAC,CAAC;YACL,CAAC;YACD,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;gBAC7C,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;oBACpC,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC,GAAI,QAAmC,CAAC,GAAG,CAAC,CAAC;gBACvE,CAAC,CAAC,CAAC;YACL,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,qBAAY,CAAC,OAAO,WAAW;gBACvC,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;iBAChC;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,mCAAmC;iBACpD;gBACD,IAAI,EAAE,IAAI;aACX,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const stripeCreateRefund: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
payment_intent: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
amount: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
4
|
-
reason: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
5
|
-
metadata: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=create-refund.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-refund.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-refund.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,kBAAkB;;;;;EAwE7B,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stripeCreateRefund = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.stripeCreateRefund = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'create_refund',
|
|
11
|
-
auth: __1.stripeAuth,
|
|
12
|
-
displayName: 'Create a Refund',
|
|
13
|
-
description: 'Create a full or partial refund for a payment.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Issues a refund against a payment identified by its PaymentIntent ID; refunds the full amount by default, or a partial amount if one is given, with an optional reason. Use to return funds to a customer for a captured payment. Not idempotent: each call creates a new refund and moves money again.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
payment_intent: common_1.stripeCommon.paymentIntent,
|
|
21
|
-
amount: pieces_framework_1.Property.Number({
|
|
22
|
-
displayName: 'Amount',
|
|
23
|
-
description: 'The amount to refund (e.g., 12.99). If left blank, a full refund will be issued.',
|
|
24
|
-
required: false,
|
|
25
|
-
}),
|
|
26
|
-
reason: pieces_framework_1.Property.StaticDropdown({
|
|
27
|
-
displayName: 'Reason',
|
|
28
|
-
description: 'An optional reason for the refund.',
|
|
29
|
-
required: false,
|
|
30
|
-
options: {
|
|
31
|
-
options: [
|
|
32
|
-
{ label: 'Duplicate', value: 'duplicate' },
|
|
33
|
-
{ label: 'Fraudulent', value: 'fraudulent' },
|
|
34
|
-
{ label: 'Requested by Customer', value: 'requested_by_customer' },
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
}),
|
|
38
|
-
metadata: pieces_framework_1.Property.Json({
|
|
39
|
-
displayName: 'Metadata',
|
|
40
|
-
description: 'A set of key-value pairs to store additional information about the refund.',
|
|
41
|
-
required: false,
|
|
42
|
-
}),
|
|
43
|
-
},
|
|
44
|
-
run(context) {
|
|
45
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
const { payment_intent, amount, reason, metadata } = context.propsValue;
|
|
47
|
-
const body = {
|
|
48
|
-
payment_intent: payment_intent,
|
|
49
|
-
};
|
|
50
|
-
if (amount !== undefined && amount !== null) {
|
|
51
|
-
body.amount = Math.round(amount * 100);
|
|
52
|
-
}
|
|
53
|
-
if (reason) {
|
|
54
|
-
body.reason = reason;
|
|
55
|
-
}
|
|
56
|
-
if (metadata && typeof metadata === 'object') {
|
|
57
|
-
Object.keys(metadata).forEach((key) => {
|
|
58
|
-
body[`metadata[${key}]`] = metadata[key];
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
62
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
63
|
-
url: `${common_1.stripeCommon.baseUrl}/refunds`,
|
|
64
|
-
authentication: {
|
|
65
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
66
|
-
token: context.auth.secret_text,
|
|
67
|
-
},
|
|
68
|
-
headers: {
|
|
69
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
70
|
-
},
|
|
71
|
-
body: body,
|
|
72
|
-
});
|
|
73
|
-
return response.body;
|
|
74
|
-
});
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
//# sourceMappingURL=create-refund.js.map
|
|
@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ExE,MAAM,IAAI,GAA+B;gBACvC,cAAc,EAAE,cAAc;aAC/B,CAAC;YAEF,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;gBAC5C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC;YACzC,CAAC;YACD,IAAI,MAAM,EAAE,CAAC;gBACX,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACvB,CAAC;YACD,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;gBAC7C,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;oBACpC,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC,GAAI,QAAmC,CAAC,GAAG,CAAC,CAAC;gBACvE,CAAC,CAAC,CAAC;YACL,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,qBAAY,CAAC,OAAO,UAAU;gBACtC,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;iBAChC;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,mCAAmC;iBACpD;gBACD,IAAI,EAAE,IAAI;aACX,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const stripeCreateSubscription: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
customer: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
items: import("@activepieces/pieces-framework").ArrayProperty<true> | import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
4
|
-
collection_method: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
5
|
-
days_until_due: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
6
|
-
trial_period_days: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
7
|
-
default_payment_method: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
-
metadata: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
9
|
-
}>;
|
|
10
|
-
//# sourceMappingURL=create-subscription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-subscription.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-subscription.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,wBAAwB;;;;;;;;EAuHnC,CAAC"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stripeCreateSubscription = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.stripeCreateSubscription = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'create_subscription',
|
|
11
|
-
auth: __1.stripeAuth,
|
|
12
|
-
displayName: 'Create Subscription',
|
|
13
|
-
description: 'Start a subscription for a customer with specified items/prices.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Starts a recurring subscription for an existing customer against one or more price IDs, with optional collection method, trial period, and default payment method. Use to enroll a customer in recurring billing. Requires a customer ID and at least one price; not idempotent, as each call creates a separate subscription.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
customer: common_1.stripeCommon.customer,
|
|
21
|
-
items: pieces_framework_1.Property.Array({
|
|
22
|
-
displayName: 'Subscription Items',
|
|
23
|
-
description: 'A list of prices to subscribe the customer to.',
|
|
24
|
-
required: true,
|
|
25
|
-
properties: {
|
|
26
|
-
price: pieces_framework_1.Property.ShortText({
|
|
27
|
-
displayName: 'Price ID',
|
|
28
|
-
description: 'The ID of the price object (e.g., price_...). You can find this in your Stripe Dashboard under Products.',
|
|
29
|
-
required: true,
|
|
30
|
-
}),
|
|
31
|
-
quantity: pieces_framework_1.Property.Number({
|
|
32
|
-
displayName: 'Quantity',
|
|
33
|
-
description: 'The number of units of this price to subscribe to. Defaults to 1.',
|
|
34
|
-
required: false,
|
|
35
|
-
}),
|
|
36
|
-
},
|
|
37
|
-
}),
|
|
38
|
-
collection_method: pieces_framework_1.Property.StaticDropdown({
|
|
39
|
-
displayName: 'Collection Method',
|
|
40
|
-
description: "How to collect payment. 'charge_automatically' will try to bill the default payment method. 'send_invoice' will email an invoice.",
|
|
41
|
-
required: false,
|
|
42
|
-
options: {
|
|
43
|
-
options: [
|
|
44
|
-
{ label: 'Charge Automatically', value: 'charge_automatically' },
|
|
45
|
-
{ label: 'Send Invoice', value: 'send_invoice' },
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
}),
|
|
49
|
-
days_until_due: pieces_framework_1.Property.Number({
|
|
50
|
-
displayName: 'Days Until Due',
|
|
51
|
-
description: "Number of days before an invoice is due. Required if Collection Method is 'Send Invoice'.",
|
|
52
|
-
required: false,
|
|
53
|
-
}),
|
|
54
|
-
trial_period_days: pieces_framework_1.Property.Number({
|
|
55
|
-
displayName: 'Trial Period (Days)',
|
|
56
|
-
description: 'Integer representing the number of trial days the customer receives before the subscription bills for the first time.',
|
|
57
|
-
required: false,
|
|
58
|
-
}),
|
|
59
|
-
default_payment_method: pieces_framework_1.Property.ShortText({
|
|
60
|
-
displayName: 'Default Payment Method ID',
|
|
61
|
-
description: 'ID of the default payment method for the subscription (e.g., `pm_...`).',
|
|
62
|
-
required: false,
|
|
63
|
-
}),
|
|
64
|
-
metadata: pieces_framework_1.Property.Json({
|
|
65
|
-
displayName: 'Metadata',
|
|
66
|
-
required: false,
|
|
67
|
-
}),
|
|
68
|
-
},
|
|
69
|
-
run(context) {
|
|
70
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
const { customer, items, collection_method, days_until_due, trial_period_days, default_payment_method, metadata, } = context.propsValue;
|
|
72
|
-
const body = {
|
|
73
|
-
customer,
|
|
74
|
-
collection_method,
|
|
75
|
-
days_until_due,
|
|
76
|
-
trial_period_days,
|
|
77
|
-
default_payment_method,
|
|
78
|
-
metadata,
|
|
79
|
-
};
|
|
80
|
-
Object.keys(body).forEach((key) => {
|
|
81
|
-
if (body[key] === undefined || body[key] === null) {
|
|
82
|
-
delete body[key];
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
if (items && Array.isArray(items)) {
|
|
86
|
-
items.forEach((item, index) => {
|
|
87
|
-
const typedItem = item;
|
|
88
|
-
body[`items[${index}][price]`] = typedItem.price;
|
|
89
|
-
if (typedItem.quantity) {
|
|
90
|
-
body[`items[${index}][quantity]`] = typedItem.quantity;
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
95
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
96
|
-
url: `${common_1.stripeCommon.baseUrl}/subscriptions`,
|
|
97
|
-
authentication: {
|
|
98
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
99
|
-
token: context.auth.secret_text,
|
|
100
|
-
},
|
|
101
|
-
headers: {
|
|
102
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
103
|
-
},
|
|
104
|
-
body: body,
|
|
105
|
-
});
|
|
106
|
-
return response.body;
|
|
107
|
-
});
|
|
108
|
-
},
|
|
109
|
-
});
|
|
110
|
-
//# sourceMappingURL=create-subscription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-subscription.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-subscription.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AACrC,6BAAmC;AACnC,sCAAyC;AAE5B,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,cAAU;IAChB,WAAW,EAAE,qBAAqB;IAClC,WAAW,EACT,kEAAkE;IACpE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,gUAAgU;QAClU,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,qBAAY,CAAC,QAAQ;QAC/B,KAAK,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACpB,WAAW,EAAE,oBAAoB;YACjC,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;oBACxB,WAAW,EAAE,UAAU;oBACvB,WAAW,EACT,0GAA0G;oBAC5G,QAAQ,EAAE,IAAI;iBACf,CAAC;gBACF,QAAQ,EAAE,2BAAQ,CAAC,MAAM,CAAC;oBACxB,WAAW,EAAE,UAAU;oBACvB,WAAW,EACT,mEAAmE;oBACrE,QAAQ,EAAE,KAAK;iBAChB,CAAC;aACH;SACF,CAAC;QACF,iBAAiB,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACzC,WAAW,EAAE,mBAAmB;YAChC,WAAW,EACT,mIAAmI;YACrI,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,sBAAsB,EAAE;oBAChE,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;iBACjD;aACF;SACF,CAAC;QACF,cA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C,CAAC;oBAC/D,IAAI,CAAC,SAAS,KAAK,UAAU,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC;oBACjD,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;wBACvB,IAAI,CAAC,SAAS,KAAK,aAAa,CAAC,GAAG,SAAS,CAAC,QAAQ,CAAC;oBACzD,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,qBAAY,CAAC,OAAO,gBAAgB;gBAC5C,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;iBAChC;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,mCAAmC;iBACpD;gBACD,IAAI,EAAE,IAAI;aACX,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const stripeDeactivatePaymentLink: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
payment_link_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=deactivate-payment-link.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deactivate-payment-link.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/deactivate-payment-link.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B;;EAsBtC,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stripeDeactivatePaymentLink = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
exports.stripeDeactivatePaymentLink = (0, pieces_framework_1.createAction)({
|
|
9
|
-
name: 'deactivate_payment_link',
|
|
10
|
-
auth: __1.stripeAuth,
|
|
11
|
-
displayName: 'Deactivate Payment Link',
|
|
12
|
-
description: 'Disable or deactivate a Payment Link so it can no longer be used.',
|
|
13
|
-
audience: 'both',
|
|
14
|
-
aiMetadata: {
|
|
15
|
-
description: 'Deactivates an existing Stripe payment link by its ID so it can no longer accept payments. Use to retire a shared checkout URL. Idempotent in effect: re-running on an already-inactive link leaves it inactive.',
|
|
16
|
-
idempotent: true,
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
payment_link_id: common_1.stripeCommon.paymentLink,
|
|
20
|
-
},
|
|
21
|
-
run(context) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const { payment_link_id } = context.propsValue;
|
|
24
|
-
const client = (0, common_1.getClient)(context.auth.secret_text);
|
|
25
|
-
return yield client.paymentLinks.update(payment_link_id, {
|
|
26
|
-
active: false,
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=deactivate-payment-link.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deactivate-payment-link.js","sourceRoot":"","sources":["../../../../src/lib/actions/deactivate-payment-link.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,6BAAmC;AACnC,sCAAoD;AAEvC,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,cAAU;IAChB,WAAW,EAAE,yBAAyB;IACtC,WAAW,EACT,mEAAmE;IACrE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,kNAAkN;QACpN,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,eAAe,EAAE,qBAAY,CAAC,WAAW;KAC1C;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC/C,MAAM,MAAM,GAAG,IAAA,kBAAS,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACnD,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,eAAe,EAAE;gBACvD,MAAM,EAAE,KAAK;aACd,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const stripeFindInvoice: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
invoice_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=find-invoice.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-invoice.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-invoice.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,iBAAiB;;EA4B5B,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stripeFindInvoice = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.stripeFindInvoice = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'find_invoice',
|
|
11
|
-
auth: __1.stripeAuth,
|
|
12
|
-
displayName: 'Find Invoice',
|
|
13
|
-
description: 'Finds an invoice by its unique ID.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Fetches a single Stripe invoice by its unique invoice ID (e.g., in_...). Use when you already have the exact invoice ID and need its current details. Read-only and idempotent.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
invoice_id: common_1.stripeCommon.invoice,
|
|
21
|
-
},
|
|
22
|
-
run(context) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const { invoice_id } = context.propsValue;
|
|
25
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
26
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
-
url: `${common_1.stripeCommon.baseUrl}/invoices/${invoice_id}`,
|
|
28
|
-
authentication: {
|
|
29
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
30
|
-
token: context.auth.secret_text,
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
return response.body;
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=find-invoice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-invoice.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-invoice.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,+DAIqC;AACrC,6BAAmC;AACnC,sCAAyC;AAE5B,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,cAAU;IAChB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,oCAAoC;IACjD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,iLAAiL;QACnL,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,OAAO;KACjC;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE1C,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,qBAAY,CAAC,OAAO,aAAa,UAAU,EAAE;gBACrD,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;iBAChC;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const stripeRetrieveCustomer: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=retrieve-customer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-customer.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/retrieve-customer.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB;;EAkCjC,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stripeRetrieveCustomer = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
exports.stripeRetrieveCustomer = (0, pieces_framework_1.createAction)({
|
|
9
|
-
name: 'retrieve_customer',
|
|
10
|
-
auth: __1.stripeAuth,
|
|
11
|
-
displayName: 'Retrieve Customer',
|
|
12
|
-
description: 'Retrieve a customer in stripe by id',
|
|
13
|
-
audience: 'both',
|
|
14
|
-
aiMetadata: {
|
|
15
|
-
description: 'Fetches the full details of a single Stripe customer by its customer ID (e.g., cus_...). Use when you already have the exact ID and need the current record; for lookup by email use Search Customer instead. Read-only and idempotent.',
|
|
16
|
-
idempotent: true,
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
id: pieces_framework_1.Property.ShortText({
|
|
20
|
-
displayName: 'ID',
|
|
21
|
-
description: undefined,
|
|
22
|
-
required: true,
|
|
23
|
-
}),
|
|
24
|
-
},
|
|
25
|
-
run(context) {
|
|
26
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
const customer = {
|
|
28
|
-
id: context.propsValue.id,
|
|
29
|
-
};
|
|
30
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
31
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
32
|
-
url: `https://api.stripe.com/v1/customers/${customer.id}`,
|
|
33
|
-
authentication: {
|
|
34
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
35
|
-
token: context.auth.secret_text,
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
return response.body;
|
|
39
|
-
});
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
//# sourceMappingURL=retrieve-customer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-customer.js","sourceRoot":"","sources":["../../../../src/lib/actions/retrieve-customer.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AACrC,6BAAmC;AAEtB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,cAAU;IAChB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,qCAAqC;IAClD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,yOAAyO;QAC3O,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,QAAQ,GAAG;gBACf,EAAE,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE;aAC1B,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,uCAAuC,QAAQ,CAAC,EAAE,EAAE;gBACzD,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;iBAChC;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const stripeRetrieveInvoice: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
invoice_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=retrieve-invoice.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-invoice.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/retrieve-invoice.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,qBAAqB;;EA4BhC,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stripeRetrieveInvoice = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.stripeRetrieveInvoice = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'retrieve_invoice',
|
|
11
|
-
auth: __1.stripeAuth,
|
|
12
|
-
displayName: 'Retrieve an Invoice',
|
|
13
|
-
description: 'Retrieves the details of an existing invoice by its ID.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Fetches the full details of a single Stripe invoice by its invoice ID (e.g., in_...). Use when you have the exact invoice ID and need its current status, amounts, or hosted/PDF links. Read-only and idempotent.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
invoice_id: common_1.stripeCommon.invoice,
|
|
21
|
-
},
|
|
22
|
-
run(context) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const { invoice_id } = context.propsValue;
|
|
25
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
26
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
-
url: `${common_1.stripeCommon.baseUrl}/invoices/${invoice_id}`,
|
|
28
|
-
authentication: {
|
|
29
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
30
|
-
token: context.auth.secret_text,
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
return response.body;
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=retrieve-invoice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-invoice.js","sourceRoot":"","sources":["../../../../src/lib/actions/retrieve-invoice.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,+DAIqC;AACrC,6BAAmC;AACnC,sCAAyC;AAE5B,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,cAAU;IAChB,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,yDAAyD;IACtE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,mNAAmN;QACrN,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,OAAO;KACjC;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE1C,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,qBAAY,CAAC,OAAO,aAAa,UAAU,EAAE;gBACrD,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;iBAChC;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const stripeRetrievePaymentIntent: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
payment_intent_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=retrieve-payment-intent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-payment-intent.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/retrieve-payment-intent.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,2BAA2B;;EA6BtC,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stripeRetrievePaymentIntent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.stripeRetrievePaymentIntent = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'retrieve_payment_intent',
|
|
11
|
-
auth: __1.stripeAuth,
|
|
12
|
-
displayName: 'Find Payment (by Payment Intent ID)',
|
|
13
|
-
description: 'Retrieves the details of a payment by its unique Payment Intent ID.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Fetches the full details of a single payment by its PaymentIntent ID (e.g., pi_...). Use when you have the exact ID and need the payment\'s current status, amount, or associated charge. Read-only and idempotent.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
payment_intent_id: common_1.stripeCommon.paymentIntent,
|
|
21
|
-
},
|
|
22
|
-
run(context) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const { payment_intent_id } = context.propsValue;
|
|
25
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
26
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
-
url: `${common_1.stripeCommon.baseUrl}/payment_intents/${payment_intent_id}`,
|
|
28
|
-
authentication: {
|
|
29
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
30
|
-
token: context.auth.secret_text,
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
return response.body;
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=retrieve-payment-intent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-payment-intent.js","sourceRoot":"","sources":["../../../../src/lib/actions/retrieve-payment-intent.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,+DAIqC;AACrC,6BAAmC;AACnC,sCAAyC;AAE5B,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,cAAU;IAChB,WAAW,EAAE,qCAAqC;IAClD,WAAW,EACT,qEAAqE;IACvE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,qNAAqN;QACvN,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,iBAAiB,EAAE,qBAAY,CAAC,aAAa;KAC9C;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEjD,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,qBAAY,CAAC,OAAO,oBAAoB,iBAAiB,EAAE;gBACnE,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;iBAChC;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const stripeRetrievePayout: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
payout_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=retrieve-payout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-payout.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/retrieve-payout.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,oBAAoB;;EA4B/B,CAAC"}
|