@chevre/factory 5.3.0 → 5.4.0-alpha.1
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.
|
@@ -8,15 +8,23 @@ import { OfferType } from '../offerType';
|
|
|
8
8
|
import { PlaceType } from '../placeType';
|
|
9
9
|
export type IUnacceptedPaymentMethodType = 'MovieTicket';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 施設コンテンツに対する単一オファー
|
|
12
12
|
*/
|
|
13
|
-
export interface
|
|
13
|
+
export interface ISingleOffer {
|
|
14
14
|
typeOf: OfferType.Offer;
|
|
15
15
|
/**
|
|
16
16
|
* 利用不可決済方法区分
|
|
17
17
|
*/
|
|
18
18
|
unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* 施設コンテンツに対する集約オファー
|
|
22
|
+
* 対応決済方法は別リポジトリで管理される
|
|
23
|
+
*/
|
|
24
|
+
export interface IAggregateOffer {
|
|
25
|
+
typeOf: OfferType.AggregateOffer;
|
|
26
|
+
unacceptedPaymentMethod?: never;
|
|
27
|
+
}
|
|
20
28
|
export interface IVideoFormat {
|
|
21
29
|
typeOf: string;
|
|
22
30
|
name: string;
|
|
@@ -132,7 +140,7 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
132
140
|
/**
|
|
133
141
|
* 販売情報
|
|
134
142
|
*/
|
|
135
|
-
offers?:
|
|
143
|
+
offers?: ISingleOffer | IAggregateOffer;
|
|
136
144
|
/**
|
|
137
145
|
* その他COA情報
|
|
138
146
|
*/
|
|
@@ -142,6 +150,9 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
142
150
|
* 施設コンテンツ
|
|
143
151
|
*/
|
|
144
152
|
export type IEvent = EventFactory.IEvent<IAttributes>;
|
|
153
|
+
export type IOffers4create = Pick<ISingleOffer, 'unacceptedPaymentMethod'> & {
|
|
154
|
+
typeOf?: never;
|
|
155
|
+
} | Pick<IAggregateOffer, 'typeOf'>;
|
|
145
156
|
export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | 'endDate' | 'headline' | 'startDate' | 'additionalProperty' | 'kanaName' | 'eventStatus' | 'description'> & {
|
|
146
157
|
subtitleLanguage?: Pick<ILanguage, 'name'>;
|
|
147
158
|
dubLanguage?: Pick<ILanguage, 'name'>;
|
|
@@ -151,7 +162,7 @@ export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | '
|
|
|
151
162
|
*/
|
|
152
163
|
id: string;
|
|
153
164
|
};
|
|
154
|
-
offers?:
|
|
165
|
+
offers?: IOffers4create;
|
|
155
166
|
workPerformed: {
|
|
156
167
|
/**
|
|
157
168
|
* コンテンツコード
|
|
@@ -53,7 +53,7 @@ interface IEventOffer extends Pick<IOffer, 'typeOf' | 'validFrom' | 'validThroug
|
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
55
|
* A pointer to the organization or person making the offer.
|
|
56
|
-
*
|
|
56
|
+
* オファー提供者(外部組織)が定義された場合、オファー承認時にオファー提供者によって署名されたオファートークンが必須
|
|
57
57
|
* その場合、有効期間、適用数量、対応アプリケーションはオファートークンのpayloadに従う
|
|
58
58
|
*/
|
|
59
59
|
offeredBy?: {
|
|
@@ -103,9 +103,9 @@ interface ISearchConditions {
|
|
|
103
103
|
};
|
|
104
104
|
offeredBy?: {
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* オファー提供者コード
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
identifier?: {
|
|
109
109
|
$eq?: string;
|
|
110
110
|
};
|
|
111
111
|
};
|