@zeniai/client-epic-state 4.19.8-betaRR2 → 4.19.8-betaRR3
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/lib/entity/chargeCardRepayment/chargeCardRepayment.d.ts +3 -0
- package/lib/entity/chargeCardRepayment/chargeCardRepayment.js +4 -1
- package/lib/entity/chargeCardRepayment/chargeCardRepaymentPayload.d.ts +1 -0
- package/lib/entity/chargeCardRepayment/chargeCardRepaymentPayload.js +1 -0
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export interface ChargeCardRepayment {
|
|
|
16
16
|
providerPaymentId: ID;
|
|
17
17
|
providerRepaymentId: ID;
|
|
18
18
|
repaymentDate: ZeniDate;
|
|
19
|
+
repaymentType: ChargeCardRepaymentType;
|
|
19
20
|
status: ChargeCardRepaymentStatusCodeType;
|
|
20
21
|
statusDescription: string;
|
|
21
22
|
updateTime: ZeniDate;
|
|
@@ -30,3 +31,5 @@ export interface ChargeCardRepaymentState {
|
|
|
30
31
|
}
|
|
31
32
|
export declare const toChargeCardRepaymentStatusCodeType: (v: string) => "PendingReview" | "Pending" | "Sent" | "Clear" | "Rejected" | "Returned";
|
|
32
33
|
export type ChargeCardRepaymentStatusCodeType = ReturnType<typeof toChargeCardRepaymentStatusCodeType>;
|
|
34
|
+
export declare const toChargeCardRepaymentType: (v: string) => "scheduled" | "onDemand";
|
|
35
|
+
export type ChargeCardRepaymentType = ReturnType<typeof toChargeCardRepaymentType>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toChargeCardRepaymentStatusCodeType = void 0;
|
|
3
|
+
exports.toChargeCardRepaymentType = exports.toChargeCardRepaymentStatusCodeType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
const ALL_CHARGE_CARD_REPAYMENT_STATUS_CODE = [
|
|
6
6
|
'PendingReview',
|
|
@@ -12,3 +12,6 @@ const ALL_CHARGE_CARD_REPAYMENT_STATUS_CODE = [
|
|
|
12
12
|
];
|
|
13
13
|
const toChargeCardRepaymentStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_CHARGE_CARD_REPAYMENT_STATUS_CODE);
|
|
14
14
|
exports.toChargeCardRepaymentStatusCodeType = toChargeCardRepaymentStatusCodeType;
|
|
15
|
+
const ALL_CHARGE_CARD_REPAYMENT_TYPE = ['scheduled', 'onDemand'];
|
|
16
|
+
const toChargeCardRepaymentType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_CHARGE_CARD_REPAYMENT_TYPE);
|
|
17
|
+
exports.toChargeCardRepaymentType = toChargeCardRepaymentType;
|
|
@@ -27,6 +27,7 @@ const mapChargeCardRepaymentPayloadToChargeCardRepayment = (payload) => {
|
|
|
27
27
|
statusDescription: payload.status_description,
|
|
28
28
|
updateTime: (0, zeniDayJS_1.date)(payload.update_time),
|
|
29
29
|
zeniCreditAccountId: payload.zeni_credit_account_id,
|
|
30
|
+
repaymentType: (0, chargeCardRepayment_1.toChargeCardRepaymentType)(payload.repayment_type),
|
|
30
31
|
providerCounterpartyAccountId: (_c = payload.provider_counterparty_account_id) !== null && _c !== void 0 ? _c : undefined,
|
|
31
32
|
thirdPartyTransactionId: (_d = payload.third_party_transaction_id) !== null && _d !== void 0 ? _d : undefined,
|
|
32
33
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.19.8-
|
|
3
|
+
"version": "4.19.8-betaRR3",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|