@chevre/domain 25.0.0-alpha.7 → 25.0.0-alpha.8
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.
|
@@ -10,7 +10,7 @@ type IOrderInTransaction = Pick<factory.order.IOrder, 'orderNumber' | 'project'>
|
|
|
10
10
|
/**
|
|
11
11
|
* typeOf: Orderへドキュメント変換時の編集フィールド
|
|
12
12
|
*/
|
|
13
|
-
export type IPlacingOrder = Pick<factory.order.IOrder, '
|
|
13
|
+
export type IPlacingOrder = Pick<factory.order.IOrder, 'confirmationNumber' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'orderedItem' | 'paymentMethods' | 'price' | 'priceCurrency' | 'seller' | 'typeOf'> & {
|
|
14
14
|
url?: never;
|
|
15
15
|
identifier?: never;
|
|
16
16
|
name?: never;
|
|
@@ -22,6 +22,10 @@ export type IPlacingOrder = Pick<factory.order.IOrder, 'broker' | 'confirmationN
|
|
|
22
22
|
* 上書きしてはいけない
|
|
23
23
|
*/
|
|
24
24
|
customer?: never;
|
|
25
|
+
/**
|
|
26
|
+
* 上書きしてはいけない
|
|
27
|
+
*/
|
|
28
|
+
broker?: never;
|
|
25
29
|
};
|
|
26
30
|
export type IMinimizedReservationFor = Pick<factory.order.IEventAsReservationFor, 'endDate' | 'id' | 'startDate' | 'typeOf'> & {
|
|
27
31
|
location: Pick<factory.order.IEventAsReservationFor['location'], 'branchCode' | 'typeOf'>;
|
|
@@ -95,7 +95,9 @@ function createPlacingOrder(params) {
|
|
|
95
95
|
// discontinue(2026-06-11~)
|
|
96
96
|
// const name: string | undefined =
|
|
97
97
|
// (typeof transaction.object.name === 'string') ? transaction.object.name : undefined;
|
|
98
|
-
|
|
98
|
+
// discontinue(2026-06-22~)
|
|
99
|
+
// const broker: factory.order.IBroker | undefined =
|
|
100
|
+
// (typeof transaction.object.broker?.typeOf === 'string') ? transaction.object.broker : undefined;
|
|
99
101
|
const { paymentMethods, price } = createPaymentMethods({ authorizePaymentActions });
|
|
100
102
|
const eventReservationAcceptedOffers = [];
|
|
101
103
|
params.acceptedOffers.forEach((acceptedOffer) => {
|
|
@@ -125,6 +127,6 @@ function createPlacingOrder(params) {
|
|
|
125
127
|
.toDate(),
|
|
126
128
|
orderedItem, // 2024-06-18~
|
|
127
129
|
// ...(typeof name === 'string') ? { name } : undefined, // discontinue(2026-06-11~)
|
|
128
|
-
...(typeof broker?.typeOf === 'string') ? { broker } : undefined //
|
|
130
|
+
// ...(typeof broker?.typeOf === 'string') ? { broker } : undefined // discontinue(2026-06-22~)
|
|
129
131
|
};
|
|
130
132
|
}
|
|
@@ -13,7 +13,6 @@ type IStartPlaceOrderParams = factory.transaction.placeOrder.IStartParamsWithout
|
|
|
13
13
|
*/
|
|
14
14
|
clientUser: factory.transaction.placeOrder.IClientUserBeforeStart;
|
|
15
15
|
};
|
|
16
|
-
broker?: factory.order.IBroker;
|
|
17
16
|
};
|
|
18
17
|
declare function createStartParams(params: IStartPlaceOrderParams, expiresInSeconds: number, passport: IVerifiedPassport | undefined, seller: Pick<factory.seller.ISeller, 'id' | 'name' | 'typeOf' | 'project' | 'additionalProperty'>, customerType?: string): factory.transaction.placeOrder.IStartParams;
|
|
19
18
|
export { AGENT_IDENTIFIER_NAME_PASSPORT, createStartParams, IStartPlaceOrderParams };
|
|
@@ -5,10 +5,8 @@ exports.createStartParams = createStartParams;
|
|
|
5
5
|
const factory_1 = require("../../../../factory");
|
|
6
6
|
const AGENT_IDENTIFIER_NAME_PASSPORT = 'passport';
|
|
7
7
|
exports.AGENT_IDENTIFIER_NAME_PASSPORT = AGENT_IDENTIFIER_NAME_PASSPORT;
|
|
8
|
-
function createStartParams(params, expiresInSeconds, passport, seller,
|
|
9
|
-
// broker
|
|
10
|
-
customerType) {
|
|
11
|
-
const { broker } = params;
|
|
8
|
+
function createStartParams(params, expiresInSeconds, passport, seller, customerType) {
|
|
9
|
+
// const { broker } = params;
|
|
12
10
|
// let clientUser: Omit<factory.clientUser.IClientUser, 'scope' | 'scopes'> | undefined;
|
|
13
11
|
let instrument;
|
|
14
12
|
if (typeof params.object.clientUser?.client_id === 'string') {
|
|
@@ -21,7 +19,7 @@ customerType) {
|
|
|
21
19
|
// ...(typeof passport?.scope === 'string') ? { passport } : undefined, // discontinue(2026-06-10~)
|
|
22
20
|
// ...(typeof clientUser?.client_id === 'string') ? { clientUser } : undefined, // discontinue(2026-06-10~)
|
|
23
21
|
// ...(typeof params.object?.name === 'string') ? { name: params.object?.name } : undefined, // discontinue(2026-06-11~)
|
|
24
|
-
...(typeof broker?.typeOf === 'string') ? { broker: broker } : undefined,
|
|
22
|
+
// ...(typeof broker?.typeOf === 'string') ? { broker: broker } : undefined, // discontinue(2026-06-22~)
|
|
25
23
|
...(typeof params.object.customer?.typeOf === 'string') ? { customer: params.object.customer } : undefined,
|
|
26
24
|
...(typeof customerType === 'string') ? { customerType } : undefined
|
|
27
25
|
};
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cognito-identity-provider": "3.600.0",
|
|
13
13
|
"@aws-sdk/credential-providers": "3.600.0",
|
|
14
|
-
"@chevre/factory": "9.0.0-alpha.
|
|
14
|
+
"@chevre/factory": "9.0.0-alpha.3",
|
|
15
15
|
"@motionpicture/coa-service": "10.0.0",
|
|
16
16
|
"@motionpicture/gmo-service": "6.1.0-alpha.0",
|
|
17
17
|
"@sendgrid/client": "8.1.4",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"postversion": "git push origin --tags",
|
|
92
92
|
"prepublishOnly": "npm run clean && npm run build"
|
|
93
93
|
},
|
|
94
|
-
"version": "25.0.0-alpha.
|
|
94
|
+
"version": "25.0.0-alpha.8"
|
|
95
95
|
}
|