@zeniai/client-epic-state 4.9.72 → 4.9.73
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.
|
@@ -85,7 +85,7 @@ export declare const toBillTransaction: (payload: BillTransactionPayload) => Bil
|
|
|
85
85
|
export declare const toBillPayInfo: (payload: BillPayInfoPayload) => BillPayInfo;
|
|
86
86
|
export declare const toBillStage: (payload: BillStagePayload) => BillStage;
|
|
87
87
|
export declare const toBillPaymentMethod: (payload: BillPaymentMethodPayload) => BillPaymentMethod;
|
|
88
|
-
export declare const toBillAccount: (payload: BillAccountPayload) => BillAccount;
|
|
88
|
+
export declare const toBillAccount: (payload: BillAccountPayload, billPaymentMethod: BillPaymentMethod) => BillAccount;
|
|
89
89
|
export declare const toFromBillAccount: (payload: BillAccountPayload) => FromBillAccount;
|
|
90
90
|
export declare const toBillPaymentStatus: (payload: BillPaymentStatusPayload) => BillPaymentStatus;
|
|
91
91
|
export declare const toBillStatus: (payload: BillStatusPayload) => BillStatus;
|
|
@@ -29,7 +29,7 @@ const toBillPayInfo = (payload) => {
|
|
|
29
29
|
: undefined,
|
|
30
30
|
billPaymentMethodType: (0, exports.toBillPaymentMethod)(payload.bill_payment_method_type),
|
|
31
31
|
fromAccount: (0, exports.toFromBillAccount)(payload.from_account),
|
|
32
|
-
toAccount: (0, exports.toBillAccount)(payload.to_account),
|
|
32
|
+
toAccount: (0, exports.toBillAccount)(payload.to_account, (0, exports.toBillPaymentMethod)(payload.bill_payment_method_type)),
|
|
33
33
|
isCancelled: payload.is_cancelled,
|
|
34
34
|
billStatus: (0, exports.toBillStatus)(payload.bill_status),
|
|
35
35
|
actualDepositDate: payload.actual_deposit_date != null
|
|
@@ -63,11 +63,14 @@ const toBillPaymentMethod = (payload) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
exports.toBillPaymentMethod = toBillPaymentMethod;
|
|
66
|
-
const toBillAccount = (payload) => ({
|
|
67
|
-
billAccountId:
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
const toBillAccount = (payload, billPaymentMethod) => ({
|
|
67
|
+
billAccountId: billPaymentMethod.code === 'wire' &&
|
|
68
|
+
billPaymentMethod.subCode === 'international'
|
|
69
|
+
? payload.payment_instrument_id != null
|
|
70
70
|
? payload.payment_instrument_id
|
|
71
|
+
: undefined
|
|
72
|
+
: payload.account_id != null
|
|
73
|
+
? payload.account_id
|
|
71
74
|
: undefined,
|
|
72
75
|
billAccountType: payload.account_type != null
|
|
73
76
|
? (0, billTransactionState_1.toBillAccountType)(payload.account_type)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.73",
|
|
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",
|