@chevre/factory 4.381.0-alpha.6 → 4.381.0-alpha.7
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.
package/lib/offer.d.ts
CHANGED
|
@@ -21,7 +21,9 @@ export interface ICategory {
|
|
|
21
21
|
id?: string;
|
|
22
22
|
codeValue?: string;
|
|
23
23
|
}
|
|
24
|
-
export type IEligibleCategoryCode = Pick<ICategoryCode, 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'
|
|
24
|
+
export type IEligibleCategoryCode = Pick<ICategoryCode, 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'> & {
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
25
27
|
export type IEligibleMonetaryAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> & {
|
|
26
28
|
value: number;
|
|
27
29
|
};
|
|
@@ -105,7 +107,7 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
105
107
|
* The payment method(s) accepted by seller for this offer.
|
|
106
108
|
* 対応決済方法区分
|
|
107
109
|
*/
|
|
108
|
-
acceptedPaymentMethod?: IAcceptedPaymentMethod
|
|
110
|
+
acceptedPaymentMethod?: [IAcceptedPaymentMethod];
|
|
109
111
|
/**
|
|
110
112
|
* An additional offer that can only be obtained in combination with the first base offer
|
|
111
113
|
* (e.g. supplements and extensions that are available for a surcharge).
|
|
@@ -136,20 +138,20 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
136
138
|
/**
|
|
137
139
|
* 有効なメンバーシップタイプ
|
|
138
140
|
*/
|
|
139
|
-
eligibleMembershipType?: IEligibleCategoryCode
|
|
141
|
+
eligibleMembershipType?: [IEligibleCategoryCode];
|
|
140
142
|
/**
|
|
141
143
|
* 有効な座席タイプ
|
|
142
144
|
*/
|
|
143
|
-
eligibleSeatingType?: IEligibleCategoryCode
|
|
145
|
+
eligibleSeatingType?: [IEligibleCategoryCode];
|
|
144
146
|
/**
|
|
145
147
|
* 有効な金額
|
|
146
148
|
* 6ポイントで無料、などの設定に使用
|
|
147
149
|
*/
|
|
148
|
-
eligibleMonetaryAmount?: IEligibleMonetaryAmount
|
|
150
|
+
eligibleMonetaryAmount?: [IEligibleMonetaryAmount];
|
|
149
151
|
/**
|
|
150
152
|
* 適用サブ予約条件
|
|
151
153
|
*/
|
|
152
|
-
eligibleSubReservation?: IEligibleSubReservation
|
|
154
|
+
eligibleSubReservation?: [IEligibleSubReservation];
|
|
153
155
|
/**
|
|
154
156
|
* オファーが有効となる期間
|
|
155
157
|
*/
|
package/lib/reservation.d.ts
CHANGED
|
@@ -160,32 +160,32 @@ export interface ITicket {
|
|
|
160
160
|
export interface IBroker {
|
|
161
161
|
typeOf: PersonType.Person;
|
|
162
162
|
id: string;
|
|
163
|
-
identifier?: IPropertyValue<string>[];
|
|
164
163
|
name?: string;
|
|
165
164
|
}
|
|
166
|
-
export type
|
|
165
|
+
export type IProgramMembershipIssuedThroughFaceToFace = Pick<IPermit, 'typeOf'> & {
|
|
167
166
|
identifier: string;
|
|
168
167
|
issuedThrough: {
|
|
168
|
+
serviceType: Pick<IServiceType, 'codeValue'>;
|
|
169
169
|
typeOf: PaymentServiceType.FaceToFace;
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
-
export type
|
|
172
|
+
export type IProgramMembershipIssuedThroughCreditCard = Pick<IPermit, 'typeOf'> & {
|
|
173
173
|
identifier: string;
|
|
174
174
|
issuedThrough: {
|
|
175
175
|
id: string;
|
|
176
|
-
serviceType: Pick<IServiceType, 'codeValue'
|
|
176
|
+
serviceType: Pick<IServiceType, 'codeValue'>;
|
|
177
177
|
typeOf: PaymentServiceType.CreditCard;
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
|
-
export type
|
|
180
|
+
export type IProgramMembershipIssuedThroughMembershipService = Pick<IPermit, 'typeOf'> & {
|
|
181
181
|
identifier: string;
|
|
182
182
|
issuedThrough: {
|
|
183
183
|
id: string;
|
|
184
|
-
serviceType: Pick<IServiceType, 'codeValue'
|
|
184
|
+
serviceType: Pick<IServiceType, 'codeValue'>;
|
|
185
185
|
typeOf: ProductType.MembershipService;
|
|
186
186
|
};
|
|
187
187
|
};
|
|
188
|
-
export type IProgramMembershipUsed =
|
|
188
|
+
export type IProgramMembershipUsed = IProgramMembershipIssuedThroughFaceToFace | IProgramMembershipIssuedThroughCreditCard | IProgramMembershipIssuedThroughMembershipService;
|
|
189
189
|
export type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
|
|
190
190
|
export type IServiceLocationContainedInPlace = Pick<MovieTheaterFactory.IPlace, 'typeOf' | 'id' | 'branchCode'> & {
|
|
191
191
|
name?: IMultilingualString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IInvoice } from '../invoice';
|
|
2
2
|
import { IMultilingualString } from '../multilingualString';
|
|
3
|
-
import {
|
|
3
|
+
import { IPermit } from '../permit';
|
|
4
4
|
import { IAvailableChannel as IProductAvailableChannel, ISearchConditions as ISearchProductConditions, IServiceType } from '../product';
|
|
5
5
|
import { IProject } from '../project';
|
|
6
6
|
import { IPropertyValue } from '../propertyValue';
|
|
@@ -84,7 +84,7 @@ export interface IPaymentMethodAsServiceOutput {
|
|
|
84
84
|
/**
|
|
85
85
|
* 出力されるインボイス
|
|
86
86
|
*/
|
|
87
|
-
export interface IInvoiceAsServiceOutput extends Pick<IInvoice, '
|
|
87
|
+
export interface IInvoiceAsServiceOutput extends Pick<IInvoice, 'typeOf'> {
|
|
88
88
|
/**
|
|
89
89
|
* 発行される決済方法
|
|
90
90
|
*/
|
|
@@ -98,9 +98,11 @@ export type IPermitAsServiceOutput = Pick<IPermit, 'typeOf'> & {
|
|
|
98
98
|
* メンバーシップサービス
|
|
99
99
|
* メンバーシップ区分が含まれる
|
|
100
100
|
*/
|
|
101
|
-
issuedThrough:
|
|
101
|
+
issuedThrough: {
|
|
102
|
+
serviceType: Pick<IServiceType, 'codeValue'>;
|
|
103
|
+
};
|
|
102
104
|
};
|
|
103
|
-
export type IServiceOutput = IInvoiceAsServiceOutput | IPermitAsServiceOutput;
|
|
105
|
+
export type IServiceOutput = (IInvoiceAsServiceOutput | IPermitAsServiceOutput)[];
|
|
104
106
|
/**
|
|
105
107
|
* 決済サービス
|
|
106
108
|
* {@link https://schema.org/Service}
|
|
@@ -121,7 +123,7 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
|
121
123
|
* The tangible thing generated by the service, e.g. a passport, permit, etc.
|
|
122
124
|
* (InvoiceやPermit)
|
|
123
125
|
*/
|
|
124
|
-
serviceOutput?: IServiceOutput
|
|
126
|
+
serviceOutput?: IServiceOutput;
|
|
125
127
|
/**
|
|
126
128
|
* The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
|
|
127
129
|
* 決済サービスの場合、serviceType.codeValueが決済方法区分
|