@activepieces/piece-stripe 0.3.0 → 0.4.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.
- package/package.json +9 -6
- package/src/index.js +7 -4
- package/src/index.js.map +1 -1
- package/src/lib/actions/create-customer.d.ts +11 -0
- package/src/lib/actions/create-customer.js +86 -0
- package/src/lib/actions/create-customer.js.map +1 -0
- package/src/lib/actions/create-invoice.d.ts +5 -0
- package/src/lib/actions/create-invoice.js +54 -0
- package/src/lib/actions/create-invoice.js.map +1 -0
- package/src/lib/actions/search-customer.d.ts +3 -0
- package/src/lib/actions/search-customer.js +40 -0
- package/src/lib/actions/search-customer.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-stripe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@sinclair/typebox": "^0.26.3",
|
|
6
|
-
"axios": "1.
|
|
6
|
+
"axios": "1.4.0",
|
|
7
|
+
"dayjs": "^1.11.8",
|
|
8
|
+
"is-base64": "^1.1.0",
|
|
7
9
|
"nanoid": "^3.3.4",
|
|
8
|
-
"
|
|
9
|
-
"@activepieces/pieces-
|
|
10
|
-
"@activepieces/
|
|
11
|
-
"
|
|
10
|
+
"semver": "7.5.4",
|
|
11
|
+
"@activepieces/pieces-common": "0.2.2",
|
|
12
|
+
"@activepieces/pieces-framework": "0.6.15",
|
|
13
|
+
"@activepieces/shared": "0.7.4",
|
|
14
|
+
"tslib": "2.6.1"
|
|
12
15
|
},
|
|
13
16
|
"main": "./src/index.js",
|
|
14
17
|
"types": "./src/index.d.ts"
|
package/src/index.js
CHANGED
|
@@ -6,18 +6,21 @@ const new_payment_1 = require("./lib/trigger/new-payment");
|
|
|
6
6
|
const new_customer_1 = require("./lib/trigger/new-customer");
|
|
7
7
|
const payment_failed_1 = require("./lib/trigger/payment-failed");
|
|
8
8
|
const new_subscription_1 = require("./lib/trigger/new-subscription");
|
|
9
|
+
const create_customer_1 = require("./lib/actions/create-customer");
|
|
10
|
+
const create_invoice_1 = require("./lib/actions/create-invoice");
|
|
11
|
+
const search_customer_1 = require("./lib/actions/search-customer");
|
|
9
12
|
exports.stripeAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
10
|
-
displayName: "API Key",
|
|
13
|
+
displayName: "Secret API Key",
|
|
11
14
|
required: true,
|
|
12
|
-
description: "
|
|
15
|
+
description: "Secret key acquired from your Stripe dashboard"
|
|
13
16
|
});
|
|
14
17
|
exports.stripe = (0, pieces_framework_1.createPiece)({
|
|
15
18
|
displayName: "Stripe",
|
|
16
19
|
minimumSupportedRelease: '0.5.0',
|
|
17
20
|
logoUrl: 'https://cdn.activepieces.com/pieces/stripe.png',
|
|
18
|
-
authors: ['ashrafsamhouri'],
|
|
21
|
+
authors: ['ashrafsamhouri', 'lldiegon'],
|
|
19
22
|
auth: exports.stripeAuth,
|
|
20
|
-
actions: [],
|
|
23
|
+
actions: [create_customer_1.stripeCreateCustomer, create_invoice_1.stripeCreateInvoice, search_customer_1.stripeSearchCustomer],
|
|
21
24
|
triggers: [new_payment_1.stripeNewPayment, new_customer_1.stripeNewCustomer, payment_failed_1.stripePaymentFailed, new_subscription_1.stripeNewSubscription],
|
|
22
25
|
});
|
|
23
26
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/pieces/stripe/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,2DAA2D;AAC3D,6DAA6D;AAC7D,iEAAiE;AACjE,qEAAuE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/pieces/stripe/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,2DAA2D;AAC3D,6DAA6D;AAC7D,iEAAiE;AACjE,qEAAuE;AACvE,mEAAqE;AACrE,iEAAmE;AACnE,mEAAqE;AAGxD,QAAA,UAAU,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC3C,WAAW,EAAC,gBAAgB;IAC5B,QAAQ,EAAC,IAAI;IACb,WAAW,EAAC,gDAAgD;CAC/D,CAAC,CAAA;AAEW,QAAA,MAAM,GAAG,IAAA,8BAAW,EAAC;IACjC,WAAW,EAAE,QAAQ;IACjB,uBAAuB,EAAE,OAAO;IACjC,OAAO,EAAE,gDAAgD;IAC5D,OAAO,EAAE,CAAC,gBAAgB,EAAE,UAAU,CAAC;IACpC,IAAI,EAAE,kBAAU;IACnB,OAAO,EAAE,CAAC,sCAAoB,EAAE,oCAAmB,EAAE,sCAAoB,CAAC;IAC1E,QAAQ,EAAE,CAAC,8BAAgB,EAAE,gCAAiB,EAAE,oCAAmB,EAAE,wCAAqB,CAAC;CAC3F,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const stripeCreateCustomer: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
description: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
5
|
+
phone: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
+
line1: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
+
postal_code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
+
city: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
+
state: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
+
country: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stripeCreateCustomer = 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.stripeCreateCustomer = (0, pieces_framework_1.createAction)({
|
|
9
|
+
name: 'create_customer',
|
|
10
|
+
auth: __1.stripeAuth,
|
|
11
|
+
displayName: 'Create Customer',
|
|
12
|
+
description: 'Create a customer in stripe',
|
|
13
|
+
props: {
|
|
14
|
+
email: pieces_framework_1.Property.ShortText({
|
|
15
|
+
displayName: 'Email',
|
|
16
|
+
description: undefined,
|
|
17
|
+
required: true,
|
|
18
|
+
}),
|
|
19
|
+
name: pieces_framework_1.Property.ShortText({
|
|
20
|
+
displayName: 'Name',
|
|
21
|
+
required: true,
|
|
22
|
+
}),
|
|
23
|
+
description: pieces_framework_1.Property.LongText({
|
|
24
|
+
displayName: 'Description',
|
|
25
|
+
required: false,
|
|
26
|
+
}),
|
|
27
|
+
phone: pieces_framework_1.Property.ShortText({
|
|
28
|
+
displayName: 'Phone',
|
|
29
|
+
required: false,
|
|
30
|
+
}),
|
|
31
|
+
line1: pieces_framework_1.Property.ShortText({
|
|
32
|
+
displayName: 'Address Line 1',
|
|
33
|
+
required: false,
|
|
34
|
+
}),
|
|
35
|
+
postal_code: pieces_framework_1.Property.ShortText({
|
|
36
|
+
displayName: 'Postal Code',
|
|
37
|
+
required: false,
|
|
38
|
+
}),
|
|
39
|
+
city: pieces_framework_1.Property.ShortText({
|
|
40
|
+
displayName: 'City',
|
|
41
|
+
required: false,
|
|
42
|
+
}),
|
|
43
|
+
state: pieces_framework_1.Property.ShortText({
|
|
44
|
+
displayName: 'State',
|
|
45
|
+
required: false,
|
|
46
|
+
}),
|
|
47
|
+
country: pieces_framework_1.Property.ShortText({
|
|
48
|
+
displayName: 'Country',
|
|
49
|
+
required: false,
|
|
50
|
+
}),
|
|
51
|
+
},
|
|
52
|
+
run(context) {
|
|
53
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const customer = {
|
|
55
|
+
email: context.propsValue.email,
|
|
56
|
+
name: context.propsValue.name,
|
|
57
|
+
description: context.propsValue.description,
|
|
58
|
+
phone: context.propsValue.phone,
|
|
59
|
+
address: {
|
|
60
|
+
line1: context.propsValue.line1,
|
|
61
|
+
postal_code: context.propsValue.postal_code,
|
|
62
|
+
city: context.propsValue.city,
|
|
63
|
+
state: context.propsValue.state,
|
|
64
|
+
country: context.propsValue.country
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
68
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
69
|
+
url: 'https://api.stripe.com/v1/customers',
|
|
70
|
+
headers: {
|
|
71
|
+
"Authorization": 'Bearer ' + context.auth,
|
|
72
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
73
|
+
},
|
|
74
|
+
body: {
|
|
75
|
+
"email": customer.email,
|
|
76
|
+
"name": customer.name,
|
|
77
|
+
"description": customer.description,
|
|
78
|
+
"phone": customer.phone,
|
|
79
|
+
"address": customer.address,
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
return response.body;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
//# sourceMappingURL=create-customer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/stripe/src/lib/actions/create-customer.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,6BAAmC;AAEtB,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,cAAU;IAChB,WAAW,EAAC,iBAAiB;IAC7B,WAAW,EAAE,6BAA6B;IACtC,KAAK,EAAE;QACH,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC3B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,KAAK;SAClB,CAAC;KACL;IACK,GAAG,CAAC,OAAO;;YACb,MAAM,QAAQ,GAAG;gBACb,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;gBAC/B,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;gBAC7B,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;gBAC3C,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;gBAC/B,OAAO,EAAE;oBACL,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;oBAC/B,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;oBAC3C,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;oBAC7B,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;oBAC/B,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO;iBACtC;aACJ,CAAA;YACD,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,qCAAqC;gBAC1C,OAAO,EAAE;oBACL,eAAe,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI;oBACzC,cAAc,EAAE,mCAAmC;iBACtD;gBACD,IAAI,EAAE;oBACF,OAAO,EAAE,QAAQ,CAAC,KAAK;oBACvB,MAAM,EAAE,QAAQ,CAAC,IAAI;oBACrB,aAAa,EAAE,QAAQ,CAAC,WAAW;oBACnC,OAAO,EAAE,QAAQ,CAAC,KAAK;oBACvB,SAAS,EAAE,QAAQ,CAAC,OAAO;iBAC9B;aACJ,CAAC,CAAA;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;KAAA;CACR,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const stripeCreateInvoice: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
customer_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
currency: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
description: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
5
|
+
}>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stripeCreateInvoice = 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.stripeCreateInvoice = (0, pieces_framework_1.createAction)({
|
|
9
|
+
name: 'create_invoice',
|
|
10
|
+
auth: __1.stripeAuth,
|
|
11
|
+
displayName: 'Create Invoice',
|
|
12
|
+
description: 'Create an Invoice in stripe',
|
|
13
|
+
props: {
|
|
14
|
+
customer_id: pieces_framework_1.Property.ShortText({
|
|
15
|
+
displayName: 'Customer ID',
|
|
16
|
+
description: 'Stripe Customer ID',
|
|
17
|
+
required: true,
|
|
18
|
+
}),
|
|
19
|
+
currency: pieces_framework_1.Property.ShortText({
|
|
20
|
+
displayName: 'Currency',
|
|
21
|
+
description: 'Currency for the invoice (e.g., USD)',
|
|
22
|
+
required: true,
|
|
23
|
+
}),
|
|
24
|
+
description: pieces_framework_1.Property.LongText({
|
|
25
|
+
displayName: 'Description',
|
|
26
|
+
description: 'Description for the invoice',
|
|
27
|
+
required: false,
|
|
28
|
+
}),
|
|
29
|
+
},
|
|
30
|
+
run(context) {
|
|
31
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
const invoice = {
|
|
33
|
+
customer: context.propsValue.customer_id,
|
|
34
|
+
currency: context.propsValue.currency,
|
|
35
|
+
description: context.propsValue.description,
|
|
36
|
+
};
|
|
37
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
38
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
39
|
+
url: 'https://api.stripe.com/v1/invoices',
|
|
40
|
+
headers: {
|
|
41
|
+
"Authorization": 'Bearer ' + context.auth,
|
|
42
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
43
|
+
},
|
|
44
|
+
body: {
|
|
45
|
+
"customer": invoice.customer,
|
|
46
|
+
"currency": invoice.currency,
|
|
47
|
+
"description": invoice.description,
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return response.body;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=create-invoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-invoice.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/stripe/src/lib/actions/create-invoice.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,6BAAmC;AAEtB,QAAA,mBAAmB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,cAAU;IAChB,WAAW,EAAC,gBAAgB;IAC5B,WAAW,EAAE,6BAA6B;IACtC,KAAK,EAAE;QACH,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC3B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,KAAK;SAClB,CAAC;KACL;IACK,GAAG,CAAC,OAAO;;YACb,MAAM,OAAO,GAAG;gBACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;gBACxC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ;gBACrC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;aAC9C,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,oCAAoC;gBACzC,OAAO,EAAE;oBACL,eAAe,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI;oBACzC,cAAc,EAAE,mCAAmC;iBACtD;gBACD,IAAI,EAAE;oBACF,UAAU,EAAE,OAAO,CAAC,QAAQ;oBAC5B,UAAU,EAAE,OAAO,CAAC,QAAQ;oBAC5B,aAAa,EAAE,OAAO,CAAC,WAAW;iBACrC;aACJ,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;KAAA;CACR,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stripeSearchCustomer = 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.stripeSearchCustomer = (0, pieces_framework_1.createAction)({
|
|
9
|
+
name: 'search_customer',
|
|
10
|
+
auth: __1.stripeAuth,
|
|
11
|
+
displayName: 'Search Customer',
|
|
12
|
+
description: 'Search for a customer in stripe by email',
|
|
13
|
+
props: {
|
|
14
|
+
email: pieces_framework_1.Property.ShortText({
|
|
15
|
+
displayName: 'Email',
|
|
16
|
+
description: undefined,
|
|
17
|
+
required: true,
|
|
18
|
+
}),
|
|
19
|
+
},
|
|
20
|
+
run(context) {
|
|
21
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const customer = {
|
|
23
|
+
email: context.propsValue.email,
|
|
24
|
+
};
|
|
25
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
26
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
+
url: 'https://api.stripe.com/v1/customers/search',
|
|
28
|
+
headers: {
|
|
29
|
+
"Authorization": 'Bearer ' + context.auth,
|
|
30
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
31
|
+
},
|
|
32
|
+
body: {
|
|
33
|
+
"query": "email:" + "'" + customer.email + "'",
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
return response.body;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=search-customer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-customer.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/stripe/src/lib/actions/search-customer.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,6BAAmC;AAEtB,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,cAAU;IAChB,WAAW,EAAC,iBAAiB;IAC7B,WAAW,EAAE,0CAA0C;IACnD,KAAK,EAAE;QACH,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,IAAI;SACjB,CAAC;KACL;IACK,GAAG,CAAC,OAAO;;YACb,MAAM,QAAQ,GAAG;gBACb,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;aAClC,CAAA;YACD,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,4CAA4C;gBACjD,OAAO,EAAE;oBACL,eAAe,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI;oBACzC,cAAc,EAAE,mCAAmC;iBACtD;gBACD,IAAI,EAAE;oBACF,OAAO,EAAE,QAAQ,GAAG,GAAG,GAAG,QAAQ,CAAC,KAAK,GAAG,GAAG;iBACjD;aACJ,CAAC,CAAA;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;KAAA;CACR,CAAC,CAAA"}
|