@bondsports/types 1.17.0 → 1.18.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/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/payment/interfaces/payment.d.ts +1 -2
- package/dist/types/payment/interfaces/payment.js +1 -7
- package/dist/types/payment/interfaces/payment.js.map +1 -1
- package/dist/types/purchase/interfaces/purchase.d.ts +1 -0
- package/dist/types/purchase/interfaces/purchase.js +2 -1
- package/dist/types/purchase/interfaces/purchase.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Stripe } from 'stripe';
|
|
2
2
|
import { LineItems } from '../../entity/LineItems';
|
|
3
3
|
import { FeeDto } from '../../fee/dto/fee.dto';
|
|
4
|
-
import { PaymentMethodTypeEnum, PlatformsEnum,
|
|
4
|
+
import { PaymentMethodTypeEnum, PlatformsEnum, SubPaymentMethodTypeEnum } from '../../services/enums.service';
|
|
5
5
|
export declare const MIN_ACH_PAYMENT_AMOUNT = 0.5;
|
|
6
|
-
export declare const ALLOWED_PAYMENT_STATUS: PaymentStatusEnum[];
|
|
7
6
|
export interface PaymentResult {
|
|
8
7
|
paymentMethodId: string;
|
|
9
8
|
paymentMethodType: PaymentMethodTypeEnum;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentMethodOption = exports.
|
|
4
|
-
const enums_service_1 = require("../../services/enums.service");
|
|
3
|
+
exports.PaymentMethodOption = exports.MIN_ACH_PAYMENT_AMOUNT = void 0;
|
|
5
4
|
exports.MIN_ACH_PAYMENT_AMOUNT = 0.5;
|
|
6
|
-
exports.ALLOWED_PAYMENT_STATUS = [
|
|
7
|
-
null,
|
|
8
|
-
enums_service_1.PaymentStatusEnum.FULLY_PAID,
|
|
9
|
-
enums_service_1.PaymentStatusEnum.REFUNDED,
|
|
10
|
-
];
|
|
11
5
|
class PaymentMethodOption {
|
|
12
6
|
}
|
|
13
7
|
exports.PaymentMethodOption = PaymentMethodOption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../../src/types/payment/interfaces/payment.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../../src/types/payment/interfaces/payment.ts"],"names":[],"mappings":";;;AAKa,QAAA,sBAAsB,GAAG,GAAG,CAAC;AAoC1C,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
|
|
@@ -5,6 +5,7 @@ import { Product } from '../../entity/Product';
|
|
|
5
5
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
6
6
|
import { Payment } from '../../payment/entities/Payment';
|
|
7
7
|
import { CurrencyEnum, LineItemsStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../services/enums.service';
|
|
8
|
+
export declare const ALLOWED_PAYMENT_INTENT_STATUSES: string[];
|
|
8
9
|
export type UserCount = {
|
|
9
10
|
male: number;
|
|
10
11
|
female: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PurchaseResult = exports.CONSUMER_ALLOWED_PAYMENT_METHODS = exports.USER_COUNT_BY_GENDER_DEFAULT = void 0;
|
|
3
|
+
exports.PurchaseResult = exports.CONSUMER_ALLOWED_PAYMENT_METHODS = exports.USER_COUNT_BY_GENDER_DEFAULT = exports.ALLOWED_PAYMENT_INTENT_STATUSES = void 0;
|
|
4
4
|
const enums_service_1 = require("../../services/enums.service");
|
|
5
|
+
exports.ALLOWED_PAYMENT_INTENT_STATUSES = ['processing', 'succeeded'];
|
|
5
6
|
exports.USER_COUNT_BY_GENDER_DEFAULT = { male: 0, female: 0, other: 1 };
|
|
6
7
|
exports.CONSUMER_ALLOWED_PAYMENT_METHODS = [
|
|
7
8
|
enums_service_1.PaymentMethodTypeEnum.ACH,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.js","sourceRoot":"","sources":["../../../../src/types/purchase/interfaces/purchase.ts"],"names":[],"mappings":";;;AAMA,gEAOsC;
|
|
1
|
+
{"version":3,"file":"purchase.js","sourceRoot":"","sources":["../../../../src/types/purchase/interfaces/purchase.ts"],"names":[],"mappings":";;;AAMA,gEAOsC;AAEzB,QAAA,+BAA+B,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AAQ9D,QAAA,4BAA4B,GAAc,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAE3E,QAAA,gCAAgC,GAAG;IAC/C,qCAAqB,CAAC,GAAG;IACzB,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,OAAO;CAC7B,CAAC;AAEF,MAAa,cAAc;CAU1B;AAVD,wCAUC"}
|