@flink-app/s3-plugin 0.3.5
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/.flink/generated-schemas.json +311 -0
- package/.flink/generatedHandlers.ts +7 -0
- package/.flink/generatedRepos.ts +5 -0
- package/.flink/schemas/schemas.json +5 -0
- package/.flink/schemas/schemas.ts +1 -0
- package/.flink/start.ts +4 -0
- package/dist/.flink/generatedHandlers.d.ts +1 -0
- package/dist/.flink/generatedHandlers.js +7 -0
- package/dist/.flink/generatedRepos.d.ts +1 -0
- package/dist/.flink/generatedRepos.js +7 -0
- package/dist/.flink/schemas/schemas.d.ts +0 -0
- package/dist/.flink/schemas/schemas.js +2 -0
- package/dist/.flink/schemas/schemas.json +5 -0
- package/dist/.flink/start.d.ts +3 -0
- package/dist/.flink/start.js +6 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +172 -0
- package/dist/s3Client.d.ts +36 -0
- package/dist/s3Client.js +233 -0
- package/dist/s3PluginContext.d.ts +6 -0
- package/dist/s3PluginContext.js +2 -0
- package/dist/schemas/ListObjectsResponse.d.ts +5 -0
- package/dist/schemas/ListObjectsResponse.js +2 -0
- package/dist/schemas/s3ClientOptions.d.ts +7 -0
- package/dist/schemas/s3ClientOptions.js +2 -0
- package/dist/schemas/s3PluginOptions.d.ts +11 -0
- package/dist/schemas/s3PluginOptions.js +2 -0
- package/dist/src/Ctx.d.ts +19 -0
- package/dist/src/Ctx.js +2 -0
- package/dist/src/handlers/HandlebarsTemplateHandler.d.ts +5 -0
- package/dist/src/handlers/HandlebarsTemplateHandler.js +63 -0
- package/dist/src/handlers/Management/Get.d.ts +7 -0
- package/dist/src/handlers/Management/Get.js +53 -0
- package/dist/src/handlers/Management/GetManagement.d.ts +8 -0
- package/dist/src/handlers/Management/GetManagement.js +53 -0
- package/dist/src/handlers/User/DeleteByUserid.d.ts +9 -0
- package/dist/src/handlers/User/DeleteByUserid.js +70 -0
- package/dist/src/handlers/User/GetByUserid.d.ts +9 -0
- package/dist/src/handlers/User/GetByUserid.js +71 -0
- package/dist/src/handlers/User/GetList.d.ts +9 -0
- package/dist/src/handlers/User/GetList.js +64 -0
- package/dist/src/handlers/User/GetMe.d.ts +8 -0
- package/dist/src/handlers/User/GetMe.js +81 -0
- package/dist/src/handlers/User/Post.d.ts +10 -0
- package/dist/src/handlers/User/Post.js +87 -0
- package/dist/src/handlers/User/PostLogin.d.ts +10 -0
- package/dist/src/handlers/User/PostLogin.js +86 -0
- package/dist/src/handlers/User/PutByUserid.d.ts +9 -0
- package/dist/src/handlers/User/PutByUserid.js +97 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +380 -0
- package/dist/src/lib/customer.d.ts +6 -0
- package/dist/src/lib/customer.js +121 -0
- package/dist/src/lib/payment.d.ts +6 -0
- package/dist/src/lib/payment.js +113 -0
- package/dist/src/managementApiContext.d.ts +7 -0
- package/dist/src/managementApiContext.js +2 -0
- package/dist/src/models/ManagementApi.d.ts +28 -0
- package/dist/src/models/ManagementApi.js +8 -0
- package/dist/src/repos/ConnectSessionRepo.d.ts +5 -0
- package/dist/src/repos/ConnectSessionRepo.js +26 -0
- package/dist/src/repos/ManagementUserRepo.d.ts +5 -0
- package/dist/src/repos/ManagementUserRepo.js +26 -0
- package/dist/src/reposx/ConnectSessionRepo.d.ts +5 -0
- package/dist/src/reposx/ConnectSessionRepo.js +26 -0
- package/dist/src/schemas/ConnectSession.d.ts +4 -0
- package/dist/src/schemas/ConnectSession.js +2 -0
- package/dist/src/schemas/Management/GetReq.d.ts +2 -0
- package/dist/src/schemas/Management/GetReq.js +2 -0
- package/dist/src/schemas/Management/GetRes.d.ts +3 -0
- package/dist/src/schemas/Management/GetRes.js +2 -0
- package/dist/src/schemas/ManagementUser.d.ts +6 -0
- package/dist/src/schemas/ManagementUser.js +2 -0
- package/dist/src/schemas/ManagementUserViewModel.d.ts +4 -0
- package/dist/src/schemas/ManagementUserViewModel.js +19 -0
- package/dist/src/schemas/ModuleList.d.ts +18 -0
- package/dist/src/schemas/ModuleList.js +2 -0
- package/dist/src/schemas/User/DeleteByUseridReq.d.ts +2 -0
- package/dist/src/schemas/User/DeleteByUseridReq.js +2 -0
- package/dist/src/schemas/User/DeleteByUseridRes.d.ts +2 -0
- package/dist/src/schemas/User/DeleteByUseridRes.js +2 -0
- package/dist/src/schemas/User/GetByUseridReq.d.ts +2 -0
- package/dist/src/schemas/User/GetByUseridReq.js +2 -0
- package/dist/src/schemas/User/GetByUseridRes.d.ts +3 -0
- package/dist/src/schemas/User/GetByUseridRes.js +2 -0
- package/dist/src/schemas/User/GetListReq.d.ts +2 -0
- package/dist/src/schemas/User/GetListReq.js +2 -0
- package/dist/src/schemas/User/GetListRes.d.ts +4 -0
- package/dist/src/schemas/User/GetListRes.js +2 -0
- package/dist/src/schemas/User/GetMeReq.d.ts +2 -0
- package/dist/src/schemas/User/GetMeReq.js +2 -0
- package/dist/src/schemas/User/GetMeRes.d.ts +3 -0
- package/dist/src/schemas/User/GetMeRes.js +2 -0
- package/dist/src/schemas/User/PostLoginReq.d.ts +4 -0
- package/dist/src/schemas/User/PostLoginReq.js +2 -0
- package/dist/src/schemas/User/PostLoginRes.d.ts +5 -0
- package/dist/src/schemas/User/PostLoginRes.js +2 -0
- package/dist/src/schemas/User/PostReq.d.ts +3 -0
- package/dist/src/schemas/User/PostReq.js +2 -0
- package/dist/src/schemas/User/PostRes.d.ts +3 -0
- package/dist/src/schemas/User/PostRes.js +2 -0
- package/dist/src/schemas/User/PutByUseridReq.d.ts +3 -0
- package/dist/src/schemas/User/PutByUseridReq.js +2 -0
- package/dist/src/schemas/User/PutByUseridRes.d.ts +3 -0
- package/dist/src/schemas/User/PutByUseridRes.js +2 -0
- package/dist/src/schemas/createStripeCustomerOptions.d.ts +11 -0
- package/dist/src/schemas/createStripeCustomerOptions.js +2 -0
- package/dist/src/schemas/customer/connectToStripeConnectOptions.d.ts +3 -0
- package/dist/src/schemas/customer/connectToStripeConnectOptions.js +2 -0
- package/dist/src/schemas/customer/hasPaymentMethodOptions.d.ts +3 -0
- package/dist/src/schemas/customer/hasPaymentMethodOptions.js +2 -0
- package/dist/src/schemas/customer/setupCardOptions.d.ts +3 -0
- package/dist/src/schemas/customer/setupCardOptions.js +2 -0
- package/dist/src/schemas/customer/setupCardResponse.d.ts +4 -0
- package/dist/src/schemas/customer/setupCardResponse.js +2 -0
- package/dist/src/schemas/customer/setupCardTokenOptions.d.ts +4 -0
- package/dist/src/schemas/customer/setupCardTokenOptions.js +2 -0
- package/dist/src/schemas/payment/capturePaymentOptions.d.ts +4 -0
- package/dist/src/schemas/payment/capturePaymentOptions.js +2 -0
- package/dist/src/schemas/payment/confirmPaymentOptions.d.ts +4 -0
- package/dist/src/schemas/payment/confirmPaymentOptions.js +2 -0
- package/dist/src/schemas/payment/confirmPaymentResponse.d.ts +7 -0
- package/dist/src/schemas/payment/confirmPaymentResponse.js +2 -0
- package/dist/src/schemas/payment/confirmPaymentTokenOptions.d.ts +4 -0
- package/dist/src/schemas/payment/confirmPaymentTokenOptions.js +2 -0
- package/dist/src/schemas/payment/createPaymentResponse.d.ts +5 -0
- package/dist/src/schemas/payment/createPaymentResponse.js +2 -0
- package/dist/src/schemas/stripeAPIToken.d.ts +4 -0
- package/dist/src/schemas/stripeAPIToken.js +2 -0
- package/dist/src/schemas/stripePluginOptions.d.ts +31 -0
- package/dist/src/schemas/stripePluginOptions.js +2 -0
- package/dist/src/stripeAPI.d.ts +32 -0
- package/dist/src/stripeAPI.js +163 -0
- package/dist/src/stripePlguinContext.d.ts +5 -0
- package/dist/src/stripePlguinContext.js +2 -0
- package/dist/src/stripePluginContext.d.ts +6 -0
- package/dist/src/stripePluginContext.js +2 -0
- package/dist/src/templates/connect-done.d.ts +1 -0
- package/dist/src/templates/connect-done.js +4 -0
- package/dist/src/templates/error.d.ts +1 -0
- package/dist/src/templates/error.js +4 -0
- package/dist/src/templates/master.d.ts +1 -0
- package/dist/src/templates/master.js +4 -0
- package/dist/src/templates/pay-enter-card.d.ts +1 -0
- package/dist/src/templates/pay-enter-card.js +4 -0
- package/dist/src/templates/pay-select-card.d.ts +1 -0
- package/dist/src/templates/pay-select-card.js +4 -0
- package/dist/src/templates/setup-card.d.ts +1 -0
- package/dist/src/templates/setup-card.js +4 -0
- package/dist/src/templates/setup-done.d.ts +1 -0
- package/dist/src/templates/setup-done.js +4 -0
- package/dist/src/templates/style.d.ts +1 -0
- package/dist/src/templates/style.js +4 -0
- package/dist/src/utils/bcrypt.d.ts +2 -0
- package/dist/src/utils/bcrypt.js +28 -0
- package/nodemon.json +7 -0
- package/package.json +34 -0
- package/readme.md +57 -0
- package/src/index.ts +100 -0
- package/src/s3Client.ts +150 -0
- package/src/s3PluginContext.ts +8 -0
- package/src/schemas/ListObjectsResponse.ts +3 -0
- package/src/schemas/s3ClientOptions.ts +7 -0
- package/src/schemas/s3PluginOptions.ts +11 -0
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HandlerFile, RouteProps } from "@flink-app/flink";
|
|
2
|
+
export interface ManagementApiModule {
|
|
3
|
+
id: string;
|
|
4
|
+
type: ManagementApiType;
|
|
5
|
+
endpoints: {
|
|
6
|
+
handler: HandlerFile;
|
|
7
|
+
routeProps: Partial<RouteProps>;
|
|
8
|
+
}[];
|
|
9
|
+
ui: boolean;
|
|
10
|
+
uiSettings?: {
|
|
11
|
+
title: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
features: string[];
|
|
14
|
+
};
|
|
15
|
+
data: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface ManagementApiOptions {
|
|
20
|
+
token: string;
|
|
21
|
+
baseUrl?: string;
|
|
22
|
+
jwtSecret: string;
|
|
23
|
+
modules: ManagementApiModule[];
|
|
24
|
+
}
|
|
25
|
+
export declare enum ManagementApiType {
|
|
26
|
+
user = "USER",
|
|
27
|
+
managementUser = "MANAGEMENT_USER"
|
|
28
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ManagementApiType = void 0;
|
|
4
|
+
var ManagementApiType;
|
|
5
|
+
(function (ManagementApiType) {
|
|
6
|
+
ManagementApiType["user"] = "USER";
|
|
7
|
+
ManagementApiType["managementUser"] = "MANAGEMENT_USER";
|
|
8
|
+
})(ManagementApiType = exports.ManagementApiType || (exports.ManagementApiType = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var flink_1 = require("@flink-app/flink");
|
|
19
|
+
var ConnectSessionRepo = /** @class */ (function (_super) {
|
|
20
|
+
__extends(ConnectSessionRepo, _super);
|
|
21
|
+
function ConnectSessionRepo() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
return ConnectSessionRepo;
|
|
25
|
+
}(flink_1.FlinkRepo));
|
|
26
|
+
exports.default = ConnectSessionRepo;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var flink_1 = require("@flink-app/flink");
|
|
19
|
+
var ManagementUserRepo = /** @class */ (function (_super) {
|
|
20
|
+
__extends(ManagementUserRepo, _super);
|
|
21
|
+
function ManagementUserRepo() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
return ManagementUserRepo;
|
|
25
|
+
}(flink_1.FlinkRepo));
|
|
26
|
+
exports.default = ManagementUserRepo;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var flink_1 = require("@flink-app/flink");
|
|
19
|
+
var ConnectSessionRepo = /** @class */ (function (_super) {
|
|
20
|
+
__extends(ConnectSessionRepo, _super);
|
|
21
|
+
function ConnectSessionRepo() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
return ConnectSessionRepo;
|
|
25
|
+
}(flink_1.FlinkRepo));
|
|
26
|
+
exports.default = ConnectSessionRepo;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.GetManagementUserViewModel = void 0;
|
|
15
|
+
var GetManagementUserViewModel = function (user) {
|
|
16
|
+
var password = user.password, salt = user.salt, resp = __rest(user, ["password", "salt"]);
|
|
17
|
+
return resp;
|
|
18
|
+
};
|
|
19
|
+
exports.GetManagementUserViewModel = GetManagementUserViewModel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ModuleList {
|
|
2
|
+
modules: Module[];
|
|
3
|
+
}
|
|
4
|
+
export interface Module {
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
features: string[];
|
|
8
|
+
title: string;
|
|
9
|
+
ui: string;
|
|
10
|
+
data: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
endpoints: ModuleEndpoint[];
|
|
14
|
+
}
|
|
15
|
+
export interface ModuleEndpoint {
|
|
16
|
+
method: string;
|
|
17
|
+
url: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface createStripeCustomerOptions {
|
|
2
|
+
userId: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
email?: string;
|
|
5
|
+
metaData?: createStripeCustomerMetaData;
|
|
6
|
+
name?: string;
|
|
7
|
+
phone?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface createStripeCustomerMetaData {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface stripePluginOptions {
|
|
2
|
+
baseUrl?: string;
|
|
3
|
+
stripeSecreteKey: string;
|
|
4
|
+
stripePublishableKey: string;
|
|
5
|
+
JTW_TOKEN: string;
|
|
6
|
+
logo?: string;
|
|
7
|
+
redirectUrl?: string;
|
|
8
|
+
stripeConnectClientID?: string;
|
|
9
|
+
phrases?: {
|
|
10
|
+
setupDescription?: string;
|
|
11
|
+
setupButtonText?: string;
|
|
12
|
+
setupDoneMessage: string;
|
|
13
|
+
paymentSelectCardPayButtonText?: string;
|
|
14
|
+
paymentSelectCardChangeCardButtonText?: string;
|
|
15
|
+
paymentDoneMessage?: string;
|
|
16
|
+
paymentEnterCardPayButtonText?: string;
|
|
17
|
+
connectDoneMessage: string;
|
|
18
|
+
};
|
|
19
|
+
templates?: {
|
|
20
|
+
master?: string;
|
|
21
|
+
style?: string;
|
|
22
|
+
setupCard?: string;
|
|
23
|
+
setupDone?: string;
|
|
24
|
+
error?: string;
|
|
25
|
+
paySelectCard?: string;
|
|
26
|
+
payEnterCard?: string;
|
|
27
|
+
connectDone?: string;
|
|
28
|
+
};
|
|
29
|
+
paymentCallback?(paymentIntentId: string, status: string): void;
|
|
30
|
+
stripeConnectCallback?(userId: string, stripeConnectUserId: string): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Stripe } from "stripe";
|
|
2
|
+
import { hasPaymentMethodOptions } from "./schemas/customer/hasPaymentMethodOptions";
|
|
3
|
+
import { setupCardOptions } from "./schemas/customer/setupCardOptions";
|
|
4
|
+
import { setupCardResponse } from "./schemas/customer/setupCardResponse";
|
|
5
|
+
import { stripePluginOptions } from "./schemas/stripePluginOptions";
|
|
6
|
+
import { confirmPaymentOptions } from "./schemas/payment/confirmPaymentOptions";
|
|
7
|
+
import { confirmPaymentResponse } from "./schemas/payment/confirmPaymentResponse";
|
|
8
|
+
import { createPaymentResponse } from "./schemas/payment/createPaymentResponse";
|
|
9
|
+
import ConnectSessionRepo from "./reposx/ConnectSessionRepo";
|
|
10
|
+
import { connectToStripeConnectOptions } from "./schemas/customer/connectToStripeConnectOptions";
|
|
11
|
+
import { capturePaymentOptions } from "./schemas/payment/capturePaymentOptions";
|
|
12
|
+
export declare class StripeAPI {
|
|
13
|
+
stripe: Stripe;
|
|
14
|
+
pluginOptions: stripePluginOptions;
|
|
15
|
+
repo?: ConnectSessionRepo;
|
|
16
|
+
constructor(options: stripePluginOptions);
|
|
17
|
+
config: {
|
|
18
|
+
setRepo: (repo: ConnectSessionRepo) => void;
|
|
19
|
+
};
|
|
20
|
+
payment: {
|
|
21
|
+
create: (options: Stripe.PaymentIntentCreateParams) => Promise<createPaymentResponse>;
|
|
22
|
+
confirm: (options: confirmPaymentOptions) => Promise<confirmPaymentResponse>;
|
|
23
|
+
createAndConfirm: (options: Stripe.PaymentIntentCreateParams) => Promise<confirmPaymentResponse>;
|
|
24
|
+
capture: (options: capturePaymentOptions) => Promise<boolean>;
|
|
25
|
+
};
|
|
26
|
+
customer: {
|
|
27
|
+
create: (options: Stripe.CustomerCreateParams) => Promise<string>;
|
|
28
|
+
hasPaymentMethod: (options: hasPaymentMethodOptions) => Promise<boolean>;
|
|
29
|
+
setupCard: (options: setupCardOptions) => Promise<setupCardResponse>;
|
|
30
|
+
connectToStripeConnect: (options: connectToStripeConnectOptions) => Promise<string>;
|
|
31
|
+
};
|
|
32
|
+
}
|