@chevre/domain 21.20.0-alpha.40 → 21.20.0-alpha.42
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.
|
@@ -5,6 +5,7 @@ const COA = require("@motionpicture/coa-service");
|
|
|
5
5
|
const moment = require("moment");
|
|
6
6
|
const util_1 = require("util");
|
|
7
7
|
const factory = require("../../../factory");
|
|
8
|
+
const settings_1 = require("../../../settings");
|
|
8
9
|
function createReserveTransactionStartParams(params) {
|
|
9
10
|
var _a, _b;
|
|
10
11
|
const acceptedTicketOffersWithoutDetail = (Array.isArray(params.object.acceptedOffer))
|
|
@@ -250,7 +251,8 @@ function createReservation(params) {
|
|
|
250
251
|
startDate: moment(event.startDate)
|
|
251
252
|
.toDate(),
|
|
252
253
|
// 最適化(2022-05-31~)
|
|
253
|
-
superEvent: Object.assign(Object.assign({ typeOf: event.superEvent.typeOf, id: event.superEvent.id,
|
|
254
|
+
superEvent: Object.assign(Object.assign(Object.assign({ typeOf: event.superEvent.typeOf, id: event.superEvent.id, location: event.superEvent.location, name: event.superEvent.name, soundFormat: event.superEvent.soundFormat, videoFormat: event.superEvent.videoFormat, workPerformed }, (typeof event.superEvent.duration === 'string') ? { duration: event.superEvent.duration } : undefined), (event.superEvent.headline !== undefined) ? { headline: event.superEvent.headline } : undefined), (settings_1.USE_KANA_NAME_IN_ACCEPTED_OFFER) ? { kanaName: event.superEvent.kanaName } : undefined // オプション化
|
|
255
|
+
)
|
|
254
256
|
};
|
|
255
257
|
if (params.issuedThrough.typeOf !== factory.product.ProductType.EventService) {
|
|
256
258
|
throw new factory.errors.Argument('issuedThrough', `issuedThrough.typeOf must be ${factory.product.ProductType.EventService}`);
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.responseBody2acceptedOffers4result = exports.offers2resultPrice = exports.createAuthorizeSeatReservationActionAttributes = exports.WebAPIIdentifier = void 0;
|
|
4
4
|
const moment = require("moment");
|
|
5
5
|
const factory = require("../../../factory");
|
|
6
|
+
const settings_1 = require("../../../settings");
|
|
6
7
|
exports.WebAPIIdentifier = factory.service.webAPI.Identifier;
|
|
7
8
|
function createAuthorizeSeatReservationActionAttributes(params) {
|
|
8
9
|
var _a;
|
|
@@ -112,20 +113,8 @@ function responseBody2acceptedOffers4result(params) {
|
|
|
112
113
|
branchCode: event.location.branchCode,
|
|
113
114
|
name: event.location.name
|
|
114
115
|
}, name: event.name, startDate: moment(event.startDate)
|
|
115
|
-
.toDate(), superEvent: {
|
|
116
|
-
|
|
117
|
-
id: event.superEvent.id,
|
|
118
|
-
identifier: event.superEvent.identifier,
|
|
119
|
-
name: event.superEvent.name,
|
|
120
|
-
kanaName: event.superEvent.kanaName,
|
|
121
|
-
alternativeHeadline: event.superEvent.alternativeHeadline,
|
|
122
|
-
location: event.superEvent.location,
|
|
123
|
-
videoFormat: event.superEvent.videoFormat,
|
|
124
|
-
soundFormat: event.superEvent.soundFormat,
|
|
125
|
-
workPerformed: workPerformed,
|
|
126
|
-
duration: event.superEvent.duration,
|
|
127
|
-
coaInfo: event.superEvent.coaInfo
|
|
128
|
-
}, id: event.id });
|
|
116
|
+
.toDate(), superEvent: Object.assign({ typeOf: event.superEvent.typeOf, id: event.superEvent.id, identifier: event.superEvent.identifier, name: event.superEvent.name, alternativeHeadline: event.superEvent.alternativeHeadline, location: event.superEvent.location, videoFormat: event.superEvent.videoFormat, soundFormat: event.superEvent.soundFormat, workPerformed: workPerformed, duration: event.superEvent.duration, coaInfo: event.superEvent.coaInfo }, (settings_1.USE_KANA_NAME_IN_ACCEPTED_OFFER) ? { kanaName: event.superEvent.kanaName } : undefined // オプション化
|
|
117
|
+
), id: event.id });
|
|
129
118
|
const reservedTicket = {
|
|
130
119
|
typeOf: 'Ticket',
|
|
131
120
|
coaTicketInfo: requestedOffer.ticketInfo,
|
package/lib/chevre/settings.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export declare const USE_INFORM_ACCEPTED_OFFERS_ON_ORDER_PROCESSING: boolean;
|
|
|
43
43
|
export declare const USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING: boolean;
|
|
44
44
|
export declare const USE_VERIFY_ACCEPTED_OFFERS: boolean;
|
|
45
45
|
export declare const USE_MINIMIZED_PAY_TASK: boolean;
|
|
46
|
+
export declare const USE_KANA_NAME_IN_ACCEPTED_OFFER: boolean;
|
|
46
47
|
export declare const MONGO_MAX_TIME_MS: number;
|
|
47
48
|
export declare const MONGO_READ_PREFERENCE: string;
|
|
48
49
|
export declare const MONGO_AUTO_INDEX: boolean;
|
package/lib/chevre/settings.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.settings = exports.DELIVER_ORDER_LIMIT = exports.MONGO_AUTO_INDEX = exports.MONGO_READ_PREFERENCE = exports.MONGO_MAX_TIME_MS = exports.USE_MINIMIZED_PAY_TASK = exports.USE_VERIFY_ACCEPTED_OFFERS = exports.USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING = exports.USE_INFORM_ACCEPTED_OFFERS_ON_ORDER_PROCESSING = exports.USE_INFORM_ORDER_IN_TRANSIT = exports.USE_FETCH_API = exports.USE_OPTIMIZE_TICKET_OFFER = exports.USE_DELETE_EVENT_BY_ORDER = exports.USE_ASSET_TRANSACTION_SYNC_PROCESSING = exports.DEFAULT_TASKS_EXPORT_AGENT_NAME = exports.DEFAULT_SENDER_EMAIL = exports.TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS = exports.TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS = exports.ASSET_TRANSACTION_STORAGE_PERIOD_IN_DAYS = exports.MAX_NUM_CREDIT_CARD_PAYMENT_METHOD = exports.ABORTED_TASKS_WITHOUT_REPORT = exports.TRIGGER_WEBHOOK_RETRY_INTERVAL_IN_MS = exports.TRIGGER_WEBHOOK_MAX_RETRY_COUNT = void 0;
|
|
3
|
+
exports.settings = exports.DELIVER_ORDER_LIMIT = exports.MONGO_AUTO_INDEX = exports.MONGO_READ_PREFERENCE = exports.MONGO_MAX_TIME_MS = exports.USE_KANA_NAME_IN_ACCEPTED_OFFER = exports.USE_MINIMIZED_PAY_TASK = exports.USE_VERIFY_ACCEPTED_OFFERS = exports.USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING = exports.USE_INFORM_ACCEPTED_OFFERS_ON_ORDER_PROCESSING = exports.USE_INFORM_ORDER_IN_TRANSIT = exports.USE_FETCH_API = exports.USE_OPTIMIZE_TICKET_OFFER = exports.USE_DELETE_EVENT_BY_ORDER = exports.USE_ASSET_TRANSACTION_SYNC_PROCESSING = exports.DEFAULT_TASKS_EXPORT_AGENT_NAME = exports.DEFAULT_SENDER_EMAIL = exports.TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS = exports.TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS = exports.ASSET_TRANSACTION_STORAGE_PERIOD_IN_DAYS = exports.MAX_NUM_CREDIT_CARD_PAYMENT_METHOD = exports.ABORTED_TASKS_WITHOUT_REPORT = exports.TRIGGER_WEBHOOK_RETRY_INTERVAL_IN_MS = exports.TRIGGER_WEBHOOK_MAX_RETRY_COUNT = void 0;
|
|
4
4
|
const factory = require("./factory");
|
|
5
5
|
const transactionWebhookUrls = (typeof process.env.INFORM_TRANSACTION_URL === 'string')
|
|
6
6
|
? process.env.INFORM_TRANSACTION_URL.split(' ')
|
|
@@ -67,6 +67,7 @@ exports.USE_INFORM_ACCEPTED_OFFERS_ON_ORDER_PROCESSING = process.env.USE_INFORM_
|
|
|
67
67
|
exports.USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING = process.env.USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING === '1';
|
|
68
68
|
exports.USE_VERIFY_ACCEPTED_OFFERS = process.env.USE_VERIFY_ACCEPTED_OFFERS === '1';
|
|
69
69
|
exports.USE_MINIMIZED_PAY_TASK = process.env.USE_MINIMIZED_PAY_TASK === '1';
|
|
70
|
+
exports.USE_KANA_NAME_IN_ACCEPTED_OFFER = process.env.USE_KANA_NAME_IN_ACCEPTED_OFFER === '1';
|
|
70
71
|
exports.MONGO_MAX_TIME_MS = (typeof process.env.MONGO_MAX_TIME_MS === 'string')
|
|
71
72
|
? Number(process.env.MONGO_MAX_TIME_MS)
|
|
72
73
|
// tslint:disable-next-line:no-magic-numbers
|
package/package.json
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/credential-providers": "3.433.0",
|
|
13
|
-
"@chevre/factory": "4.352.0-alpha.
|
|
13
|
+
"@chevre/factory": "4.352.0-alpha.4",
|
|
14
14
|
"@cinerino/sdk": "5.9.0-alpha.1",
|
|
15
|
-
"@motionpicture/coa-service": "9.
|
|
15
|
+
"@motionpicture/coa-service": "9.3.0-alpha.0",
|
|
16
16
|
"@motionpicture/gmo-service": "5.3.0-alpha.0",
|
|
17
17
|
"@sendgrid/mail": "6.4.0",
|
|
18
18
|
"@surfrock/sdk": "1.2.0",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"postversion": "git push origin --tags",
|
|
113
113
|
"prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
|
|
114
114
|
},
|
|
115
|
-
"version": "21.20.0-alpha.
|
|
115
|
+
"version": "21.20.0-alpha.42"
|
|
116
116
|
}
|