wabe 0.5.14 → 0.5.16
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/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1135,6 +1135,7 @@ export type CreatePaymentOptions = {
|
|
|
1135
1135
|
recurringInterval?: "month" | "year";
|
|
1136
1136
|
createInvoice?: boolean;
|
|
1137
1137
|
allowPromotionCode?: boolean;
|
|
1138
|
+
promotionCodeId?: string;
|
|
1138
1139
|
};
|
|
1139
1140
|
export type InitWebhookOptions = {
|
|
1140
1141
|
webhookUrl: string;
|
|
@@ -1283,7 +1284,7 @@ export interface PaymentAdapter {
|
|
|
1283
1284
|
validateWebhook: (options: ValidateWebhookOptions) => Promise<ValidateWebhookOutput>;
|
|
1284
1285
|
}
|
|
1285
1286
|
declare class PaymentController implements PaymentAdapter {
|
|
1286
|
-
|
|
1287
|
+
adapter: PaymentAdapter;
|
|
1287
1288
|
private config;
|
|
1288
1289
|
constructor(paymentConfig: PaymentConfig);
|
|
1289
1290
|
deleteCoupon(options: DeleteCouponOptions): Promise<void>;
|
|
@@ -1435,6 +1436,7 @@ export declare class Google implements OAuth2ProviderWithPKCE {
|
|
|
1435
1436
|
}>;
|
|
1436
1437
|
}
|
|
1437
1438
|
export declare class PaymentDevAdapter implements PaymentAdapter {
|
|
1439
|
+
adapter: {};
|
|
1438
1440
|
getCustomerById(): Promise<{
|
|
1439
1441
|
email: string;
|
|
1440
1442
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -61367,6 +61367,7 @@ var DatabaseEnum;
|
|
|
61367
61367
|
|
|
61368
61368
|
// src/payment/DevAdapter.ts
|
|
61369
61369
|
class PaymentDevAdapter {
|
|
61370
|
+
adapter = {};
|
|
61370
61371
|
async getCustomerById() {
|
|
61371
61372
|
return {
|
|
61372
61373
|
email: "customer@test.com"
|