@chevre/factory 4.345.0 → 4.347.0-alpha.0
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.
|
@@ -148,11 +148,17 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
148
148
|
* 施設コンテンツ
|
|
149
149
|
*/
|
|
150
150
|
export type IEvent = EventFactory.IEvent<IAttributes>;
|
|
151
|
-
export type ICreateParams =
|
|
151
|
+
export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | 'endDate' | 'headline' | 'offers' | 'startDate' | 'additionalProperty' | 'subtitleLanguage' | 'dubLanguage' | 'kanaName' | 'eventStatus'> & {
|
|
152
152
|
location: {
|
|
153
|
+
/**
|
|
154
|
+
* 施設ID
|
|
155
|
+
*/
|
|
153
156
|
id: string;
|
|
154
157
|
};
|
|
155
158
|
workPerformed: {
|
|
159
|
+
/**
|
|
160
|
+
* コンテンツコード
|
|
161
|
+
*/
|
|
156
162
|
identifier: string;
|
|
157
163
|
/**
|
|
158
164
|
* 同コンテンツに対する複数施設コンテンツのバージョン
|
|
@@ -160,7 +166,12 @@ export type ICreateParams = Omit<IAttributes, 'location' | 'workPerformed' | 'co
|
|
|
160
166
|
*/
|
|
161
167
|
version?: string;
|
|
162
168
|
};
|
|
163
|
-
videoFormat:
|
|
169
|
+
videoFormat: {
|
|
170
|
+
/**
|
|
171
|
+
* 上映方式区分コード
|
|
172
|
+
*/
|
|
173
|
+
typeOf: string;
|
|
174
|
+
}[];
|
|
164
175
|
};
|
|
165
176
|
/**
|
|
166
177
|
* ソート条件
|
package/lib/order.d.ts
CHANGED
|
@@ -288,11 +288,6 @@ export interface IOrderedItem {
|
|
|
288
288
|
export interface IOrder extends Omit<ISimpleOrder, 'customer'> {
|
|
289
289
|
id?: string;
|
|
290
290
|
project: IProject;
|
|
291
|
-
/**
|
|
292
|
-
* Offer
|
|
293
|
-
* The offers included in the order.Also accepts an array of objects.
|
|
294
|
-
*/
|
|
295
|
-
acceptedOffers?: IAcceptedOffer<IItemOffered>[];
|
|
296
291
|
additionalProperty?: IPropertyValue<string>[];
|
|
297
292
|
/**
|
|
298
293
|
* An entity that arranges for an exchange between a buyer and a seller.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
|
|
2
2
|
import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
|
|
3
|
-
import { ICustomer, IOrder } from '../order';
|
|
3
|
+
import { IAcceptedOffer, ICustomer, IItemOffered, IOrder } from '../order';
|
|
4
4
|
export type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
|
|
5
5
|
export type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'purpose' | 'startDate' | 'typeOf'> & {
|
|
6
6
|
object: IPayActionObject[];
|
|
@@ -11,9 +11,10 @@ export type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDa
|
|
|
11
11
|
};
|
|
12
12
|
export type IAction = IOptimizedPayAction | IOptimizedRefundAction;
|
|
13
13
|
export type IOptimizedCustomer = Pick<ICustomer, 'additionalProperty' | 'id' | 'identifier' | 'typeOf'>;
|
|
14
|
-
export type IOrderAsMainEntity = Pick<IOrder, '
|
|
14
|
+
export type IOrderAsMainEntity = Pick<IOrder, 'broker' | 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'orderedItem' | 'paymentMethods' | 'price' | 'priceCurrency' | 'seller' | 'typeOf'> & {
|
|
15
15
|
numItems: number;
|
|
16
16
|
customer: IOptimizedCustomer;
|
|
17
|
+
acceptedOffers: IAcceptedOffer<IItemOffered>[];
|
|
17
18
|
};
|
|
18
19
|
/**
|
|
19
20
|
* 経理レポート
|
|
@@ -169,6 +169,9 @@ export interface IConfirmParams {
|
|
|
169
169
|
*/
|
|
170
170
|
result?: IResultParams;
|
|
171
171
|
}
|
|
172
|
+
export type IOrderAsResult = OrderFactory.IOrder & {
|
|
173
|
+
acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
|
|
174
|
+
};
|
|
172
175
|
/**
|
|
173
176
|
* 取引結果
|
|
174
177
|
*/
|
|
@@ -176,7 +179,7 @@ export interface IResult {
|
|
|
176
179
|
/**
|
|
177
180
|
* 注文
|
|
178
181
|
*/
|
|
179
|
-
order:
|
|
182
|
+
order: IOrderAsResult;
|
|
180
183
|
}
|
|
181
184
|
/**
|
|
182
185
|
* エラー
|