@chevre/domain 20.1.0-alpha.50 → 20.1.0-alpha.51
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.
|
@@ -124,33 +124,35 @@ function createInformTasks(order) {
|
|
|
124
124
|
}
|
|
125
125
|
exports.createInformTasks = createInformTasks;
|
|
126
126
|
function creteOrder4inform(order) {
|
|
127
|
-
//
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
//
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
127
|
+
// 返品注文通知内容を最適化(2022-12-28~)
|
|
128
|
+
if (order.orderStatus === factory.orderStatus.OrderReturned) {
|
|
129
|
+
return Object.assign(Object.assign({ project: order.project, typeOf: order.typeOf, orderNumber: order.orderNumber, orderStatus: order.orderStatus }, (order.dateReturned !== undefined) ? { dateReturned: order.dateReturned } : undefined), (typeof order.id === 'string') ? { id: order.id } : undefined);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
// 冗長な個人情報をmask
|
|
133
|
+
return Object.assign(Object.assign({
|
|
134
|
+
// whitelistで作成する(2022-07-19~)
|
|
135
|
+
project: order.project, typeOf: order.typeOf, seller: order.seller, price: order.price, priceCurrency: order.priceCurrency,
|
|
136
|
+
// discounts: order.discounts,
|
|
137
|
+
confirmationNumber: order.confirmationNumber, orderNumber: order.orderNumber, acceptedOffers: order.acceptedOffers, orderStatus: order.orderStatus, orderDate: order.orderDate,
|
|
138
|
+
// mask
|
|
139
|
+
customer: Object.assign(Object.assign({}, (0, order_1.createMaskedCustomer)(order)), { additionalProperty: (Array.isArray(order.customer.additionalProperty)) ? order.customer.additionalProperty : [],
|
|
140
|
+
// identifierは必要
|
|
141
|
+
// 予約後を隠蔽(2022-12-24~)
|
|
142
|
+
identifier: (Array.isArray(order.customer.identifier))
|
|
143
|
+
? order.customer.identifier.filter((p) => {
|
|
144
|
+
return !reservedAgentIdentifireNames_1.RESERVED_AGENT_IDENTIFIER_NAMES.includes(p.name);
|
|
145
|
+
})
|
|
146
|
+
: [] }),
|
|
147
|
+
// paymentMethodsに関してもmask(2022-05-30~)
|
|
148
|
+
paymentMethods: order.paymentMethods.map((p) => {
|
|
149
|
+
return Object.assign(Object.assign({}, p), (typeof p.accountId === 'string' && p.accountId.length > 0)
|
|
150
|
+
? { accountId: ASTERISK_CHARACTER.repeat(p.accountId.length) }
|
|
151
|
+
: undefined);
|
|
152
|
+
}) }, (typeof order.token === 'string')
|
|
153
|
+
? { token: order.token }
|
|
154
|
+
: undefined), (typeof order.id === 'string') ? { id: order.id } : undefined);
|
|
155
|
+
}
|
|
154
156
|
}
|
|
155
157
|
/**
|
|
156
158
|
* 注文保管期間
|
package/package.json
CHANGED