@chevre/factory 4.381.0-alpha.0 → 4.381.0-alpha.10
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/action/authorize/offer/eventService.d.ts +13 -1
- package/lib/action/transfer/send/order.d.ts +1 -1
- package/lib/assetTransaction/reserve.d.ts +25 -3
- package/lib/authorization.d.ts +12 -3
- package/lib/categoryCode.d.ts +1 -1
- package/lib/categoryCode.js +1 -1
- package/lib/offer.d.ts +15 -13
- package/lib/ownershipInfo.d.ts +4 -2
- package/lib/permit.d.ts +15 -5
- package/lib/priceSpecification.d.ts +3 -3
- package/lib/project.d.ts +1 -1
- package/lib/reservation.d.ts +26 -3
- package/lib/seller.d.ts +2 -2
- package/lib/service/paymentService.d.ts +76 -9
- package/lib/unitPriceOffer.d.ts +9 -6
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as ActionFactory from '../../../action';
|
|
3
3
|
import { ActionType } from '../../../actionType';
|
|
4
|
-
import { IAcceptedTicketOfferItemOffered, IAcceptedTicketOfferWithoutDetail as IAcceptedOfferWithoutDetail4chevre, IObjectWithoutDetail as IObjectWithoutDetail4chevre } from '../../../assetTransaction/reserve';
|
|
4
|
+
import { IAcceptedTicketOfferItemOffered, IAcceptedTicketOfferWithoutDetail as IAcceptedOfferWithoutDetail4chevre, IObjectWithoutDetail as IObjectWithoutDetail4chevre, IPermitIssuedThroughFaceToFace, IPermitIssuedThroughMembershipService } from '../../../assetTransaction/reserve';
|
|
5
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
6
|
import { IEvent } from '../../../event/screeningEvent';
|
|
7
7
|
import { IOffer } from '../../../offer';
|
|
@@ -49,12 +49,24 @@ export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaym
|
|
|
49
49
|
*/
|
|
50
50
|
priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity' | 'eligibleTransactionVolume'>;
|
|
51
51
|
}
|
|
52
|
+
export type IAggregateProgramMembershipUsed = (IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService)[];
|
|
53
|
+
/**
|
|
54
|
+
* 興行オファー承認結果としての集計オファー
|
|
55
|
+
*/
|
|
52
56
|
export interface IResultAsAggregateOffer {
|
|
53
57
|
typeOf?: OfferType.AggregateOffer;
|
|
54
58
|
/**
|
|
55
59
|
* オファーIDごとの集計
|
|
56
60
|
*/
|
|
57
61
|
offers?: IAcceptedOfferInResult[];
|
|
62
|
+
itemOffered?: {
|
|
63
|
+
serviceOutput: {
|
|
64
|
+
/**
|
|
65
|
+
* programMembershipUsed required(2024-08-15~)
|
|
66
|
+
*/
|
|
67
|
+
programMembershipUsed: IAggregateProgramMembershipUsed;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
58
70
|
}
|
|
59
71
|
export interface IResult extends IResultAsAggregateOffer {
|
|
60
72
|
/**
|
|
@@ -16,7 +16,7 @@ export type IObject = OrderFactory.ISimpleOrder & {
|
|
|
16
16
|
/**
|
|
17
17
|
* 注文配送結果としての所有権
|
|
18
18
|
*/
|
|
19
|
-
export type IResult = IOwnershipInfo<IGood>[];
|
|
19
|
+
export type IResult = Pick<IOwnershipInfo<IGood>, 'id' | 'identifier'>[];
|
|
20
20
|
export interface IAttributes extends Pick<SendActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'result' | 'recipient' | 'project' | 'object' | 'error' | 'agent'> {
|
|
21
21
|
agent: IAgent;
|
|
22
22
|
recipient: IRecipient;
|
|
@@ -4,6 +4,8 @@ import * as AssetTransactionFactory from '../assetTransaction';
|
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { IOrder } from '../order';
|
|
7
|
+
import { PermitType } from '../permit';
|
|
8
|
+
import { ProductType } from '../product';
|
|
7
9
|
import { IPropertyValue } from '../propertyValue';
|
|
8
10
|
import * as ReservationFactory from '../reservation';
|
|
9
11
|
import { IIssuedThrough as IBusReservationIssuedThrough, IReservation as IBusReservation, IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
|
|
@@ -11,6 +13,7 @@ import { IIssuedThrough as IEventReservationIssuedThrough, IReservation as IEven
|
|
|
11
13
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
12
14
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
13
15
|
import { ReservationType } from '../reservationType';
|
|
16
|
+
import { PaymentServiceType } from '../service/paymentService';
|
|
14
17
|
import { IUnitPriceOffer } from '../unitPriceOffer';
|
|
15
18
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
16
19
|
export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
|
|
@@ -18,7 +21,17 @@ export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<Ass
|
|
|
18
21
|
* 取引開始パラメータ
|
|
19
22
|
*/
|
|
20
23
|
export type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject>;
|
|
21
|
-
export interface
|
|
24
|
+
export interface IPermitIssuedThroughFaceToFace {
|
|
25
|
+
/**
|
|
26
|
+
* メンバーシップコード
|
|
27
|
+
*/
|
|
28
|
+
identifier: string;
|
|
29
|
+
issuedThrough: {
|
|
30
|
+
typeOf: PaymentServiceType.FaceToFace;
|
|
31
|
+
};
|
|
32
|
+
typeOf: PermitType.Permit;
|
|
33
|
+
}
|
|
34
|
+
export interface IPermitIssuedThroughMembershipService {
|
|
22
35
|
accessCode?: string;
|
|
23
36
|
/**
|
|
24
37
|
* メンバーシップコード
|
|
@@ -29,16 +42,25 @@ export interface IAcceptedProgramMembershipUsedAsObject {
|
|
|
29
42
|
* メンバーシップ発行サービスID
|
|
30
43
|
*/
|
|
31
44
|
id: string;
|
|
45
|
+
typeOf: ProductType.MembershipService | PaymentServiceType.CreditCard;
|
|
32
46
|
};
|
|
47
|
+
typeOf: PermitType.Permit;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* チケット化された適用メンバーシップ
|
|
51
|
+
*/
|
|
52
|
+
export interface IProgramMembershipUsedAsTicket {
|
|
53
|
+
ticketToken: string;
|
|
54
|
+
typeOf: 'Ticket';
|
|
33
55
|
}
|
|
34
56
|
/**
|
|
35
57
|
* トークン化された適用メンバーシップ
|
|
36
58
|
*/
|
|
37
|
-
export type
|
|
59
|
+
export type ITokenizedProgramMembershipUsed = string;
|
|
38
60
|
/**
|
|
39
61
|
* 適用メンバーシップ
|
|
40
62
|
*/
|
|
41
|
-
export type IAcceptedProgramMembershipUsed =
|
|
63
|
+
export type IAcceptedProgramMembershipUsed = IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService | IProgramMembershipUsedAsTicket | ITokenizedProgramMembershipUsed;
|
|
42
64
|
export type IAcceptedSubReservation = ISubReservation4eventReservation;
|
|
43
65
|
export interface IAcceptedPointAward {
|
|
44
66
|
typeOf: ActionType.MoneyTransfer;
|
package/lib/authorization.d.ts
CHANGED
|
@@ -2,12 +2,13 @@ import { CreativeWorkType } from './creativeWorkType';
|
|
|
2
2
|
import { IMember, IMemberOfRole } from './iam';
|
|
3
3
|
import { IOrder } from './order';
|
|
4
4
|
import { OrganizationType } from './organizationType';
|
|
5
|
-
import { IOwnershipInfo, IPermitAsGood,
|
|
5
|
+
import { IOwnershipInfo, IPermitAsGood, IPermitIssuedThroughAsFaceToFace, IPermitIssuedThroughAsProduct, IReservation } from './ownershipInfo';
|
|
6
6
|
import { PersonType } from './personType';
|
|
7
7
|
import { IProject } from './project';
|
|
8
8
|
import { SortType } from './sortType';
|
|
9
|
+
import { TransactionType } from './transactionType';
|
|
9
10
|
export type IOrderAsObject = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
10
|
-
export type IPermitIssuedThroughOfObjectTypeOfGood = Pick<
|
|
11
|
+
export type IPermitIssuedThroughOfObjectTypeOfGood = Pick<IPermitIssuedThroughAsFaceToFace, 'typeOf'> | Pick<IPermitIssuedThroughAsProduct, 'id' | 'typeOf'>;
|
|
11
12
|
export type IPermitAsObjectTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'typeOf'> & {
|
|
12
13
|
issuedThrough?: IPermitIssuedThroughOfObjectTypeOfGood;
|
|
13
14
|
};
|
|
@@ -21,13 +22,21 @@ export type IRoleAsObject = Pick<IMember, 'member' | 'typeOf'> & {
|
|
|
21
22
|
member: Pick<IMemberOfRole, 'hasRole' | 'id' | 'memberOf' | 'typeOf'>;
|
|
22
23
|
};
|
|
23
24
|
export type IObject = IOrderAsObject | IOwnershipInfoAsObject | IRoleAsObject;
|
|
24
|
-
export interface
|
|
25
|
+
export interface IAudienceAsPlaceOrder {
|
|
26
|
+
/**
|
|
27
|
+
* 取引ID
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
typeOf: TransactionType.PlaceOrder;
|
|
31
|
+
}
|
|
32
|
+
export interface IAudienceAsApplication {
|
|
25
33
|
/**
|
|
26
34
|
* クライアントID
|
|
27
35
|
*/
|
|
28
36
|
id: string;
|
|
29
37
|
typeOf: CreativeWorkType.SoftwareApplication | CreativeWorkType.WebApplication;
|
|
30
38
|
}
|
|
39
|
+
export type IAudience = IAudienceAsApplication | IAudienceAsPlaceOrder;
|
|
31
40
|
export interface IAuthor {
|
|
32
41
|
id: string;
|
|
33
42
|
typeOf: PersonType.Person | CreativeWorkType.WebApplication;
|
package/lib/categoryCode.d.ts
CHANGED
package/lib/categoryCode.js
CHANGED
package/lib/offer.d.ts
CHANGED
|
@@ -21,12 +21,14 @@ 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
|
};
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* 対象サブ予約条件
|
|
30
32
|
*/
|
|
31
33
|
export interface IEligibleSubReservation {
|
|
32
34
|
/**
|
|
@@ -35,7 +37,7 @@ export interface IEligibleSubReservation {
|
|
|
35
37
|
amountOfThisGood: number;
|
|
36
38
|
typeOfGood: {
|
|
37
39
|
/**
|
|
38
|
-
*
|
|
40
|
+
* 座席タイプ
|
|
39
41
|
*/
|
|
40
42
|
seatingType: string;
|
|
41
43
|
};
|
|
@@ -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).
|
|
@@ -134,28 +136,28 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
134
136
|
*/
|
|
135
137
|
category?: ICategory;
|
|
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
|
*/
|
|
156
158
|
eligibleDuration?: IQuantitativeValue<UnitCode.Sec>;
|
|
157
159
|
/**
|
|
158
|
-
*
|
|
160
|
+
* 対象数量
|
|
159
161
|
*/
|
|
160
162
|
eligibleQuantity?: IEligibleQuantity;
|
|
161
163
|
/**
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -51,7 +51,9 @@ export interface IEventReservationAsGood {
|
|
|
51
51
|
*/
|
|
52
52
|
export type IReservation = IBusReservationAsGood | IEventReservationAsGood;
|
|
53
53
|
export type IReservationWithDetail = (IEventReservationAsGood & IEventReservation) | (IBusReservationAsGood & IBusReservation);
|
|
54
|
-
export type
|
|
54
|
+
export type IPermitIssuedThroughAsFaceToFace = Pick<PermitFactory.IIssuedThroughAsFaceToFace, 'typeOf'>;
|
|
55
|
+
export type IPermitIssuedThroughAsProduct = Pick<PermitFactory.IIssuedThroughAsProduct, 'id' | 'typeOf' | 'serviceType'> | Pick<PermitFactory.IIssuedThroughAsCreditCard, 'id' | 'typeOf' | 'serviceType'>;
|
|
56
|
+
export type IPermitIssuedThrough = IPermitIssuedThroughAsFaceToFace | IPermitIssuedThroughAsProduct;
|
|
55
57
|
export type IPermitAsGood = Pick<PermitFactory.IPermit, 'identifier' | 'typeOf' | 'name' | 'validFor'> & {
|
|
56
58
|
identifier: string;
|
|
57
59
|
issuedThrough?: IPermitIssuedThrough;
|
|
@@ -99,7 +101,7 @@ export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
|
|
|
99
101
|
/**
|
|
100
102
|
* 所有権ID
|
|
101
103
|
*/
|
|
102
|
-
id
|
|
104
|
+
id?: string;
|
|
103
105
|
/**
|
|
104
106
|
* 識別子
|
|
105
107
|
*/
|
package/lib/permit.d.ts
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import { IAccount } from './account';
|
|
2
2
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
3
3
|
import { IOrganization } from './organization';
|
|
4
|
-
import { IProduct } from './product';
|
|
4
|
+
import { IProduct, ProductType } from './product';
|
|
5
5
|
import { IProject } from './project';
|
|
6
6
|
import { IPropertyValue } from './propertyValue';
|
|
7
7
|
import { PaymentServiceType } from './service/paymentService';
|
|
8
8
|
export declare enum PermitType {
|
|
9
9
|
Permit = "Permit"
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
typeOf: PaymentServiceType.
|
|
11
|
+
export interface IIssuedThroughAsFaceToFace {
|
|
12
|
+
typeOf: PaymentServiceType.FaceToFace;
|
|
13
|
+
}
|
|
14
|
+
export type IIssuedThroughAsCreditCard = Pick<IProduct, 'id' | 'serviceType'> & {
|
|
15
|
+
/**
|
|
16
|
+
* 決済サービスID
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
typeOf: PaymentServiceType.CreditCard;
|
|
20
|
+
};
|
|
21
|
+
export type IIssuedThroughAsProduct = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'> & {
|
|
22
|
+
id: string;
|
|
23
|
+
typeOf: ProductType.MembershipService | ProductType.PaymentCard;
|
|
13
24
|
};
|
|
14
|
-
export type
|
|
15
|
-
export type IIssuedThrough = IIssuedThroughAsPaymentService | IIssuedThroughAsProduct;
|
|
25
|
+
export type IIssuedThrough = IIssuedThroughAsFaceToFace | IIssuedThroughAsCreditCard | IIssuedThroughAsProduct;
|
|
16
26
|
export type IPaymentAccount = Pick<IAccount, 'accountNumber' | 'typeOf'>;
|
|
17
27
|
export type IPaymentAccountWithDetail = Pick<IAccount, 'accountNumber' | 'availableBalance' | 'balance' | 'typeOf'>;
|
|
18
28
|
export type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
|
@@ -21,8 +21,8 @@ export interface IAccounting {
|
|
|
21
21
|
accountsReceivable?: number;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
* n以上n
|
|
24
|
+
* 対象数量
|
|
25
|
+
* n以上n以下のアイテム数に対象する設定
|
|
26
26
|
*/
|
|
27
27
|
export type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode>, 'maxValue' | 'minValue' | 'typeOf' | 'unitCode'>;
|
|
28
28
|
export type IEligibleTransactionVolume = Pick<IPriceSpecification<PriceSpecificationType>, 'typeOf' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded'>;
|
|
@@ -35,7 +35,7 @@ export interface IPriceSpecification<T extends PriceSpecificationType> {
|
|
|
35
35
|
typeOf: T;
|
|
36
36
|
name?: string | IMultilingualString;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* 対象数量
|
|
39
39
|
*/
|
|
40
40
|
eligibleQuantity?: IEligibleQuantity;
|
|
41
41
|
eligibleTransactionVolume?: IEligibleTransactionVolume;
|
package/lib/project.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export type IHasMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'sameAs' | 't
|
|
|
82
82
|
export interface IMakesOffer extends Pick<IOffer, 'typeOf' | 'availableAtOrFrom'> {
|
|
83
83
|
availableAtOrFrom: IAvailableAtOrFrom[];
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* 対象カスタマータイプ
|
|
86
86
|
*/
|
|
87
87
|
eligibleCustomerType?: IBusinessEntityType[];
|
|
88
88
|
}
|
package/lib/reservation.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { IMultilingualString } from './multilingualString';
|
|
|
4
4
|
import * as OfferFactory from './offer';
|
|
5
5
|
import { OfferType } from './offerType';
|
|
6
6
|
import { OrganizationType } from './organizationType';
|
|
7
|
-
import { IPermit } from './permit';
|
|
8
7
|
import { PersonType } from './personType';
|
|
9
8
|
import * as MovieTheaterFactory from './place/movieTheater';
|
|
10
9
|
import * as ScreeningRoomFactory from './place/screeningRoom';
|
|
@@ -14,10 +13,12 @@ import { PriceCurrency } from './priceCurrency';
|
|
|
14
13
|
import { IPriceSpecification as IGenericPriceSpecification } from './priceSpecification';
|
|
15
14
|
import { PriceSpecificationType } from './priceSpecificationType';
|
|
16
15
|
import { IServiceType, ProductType } from './product';
|
|
16
|
+
import { IProgramMembership } from './programMembership';
|
|
17
17
|
import { IProject } from './project';
|
|
18
18
|
import { IPropertyValue } from './propertyValue';
|
|
19
19
|
import { ReservationStatusType } from './reservationStatusType';
|
|
20
20
|
import { ReservationType } from './reservationType';
|
|
21
|
+
import { PaymentServiceType } from './service/paymentService';
|
|
21
22
|
import { SortType } from './sortType';
|
|
22
23
|
export type TicketType = 'Ticket';
|
|
23
24
|
export interface ITicketType {
|
|
@@ -159,10 +160,32 @@ export interface ITicket {
|
|
|
159
160
|
export interface IBroker {
|
|
160
161
|
typeOf: PersonType.Person;
|
|
161
162
|
id: string;
|
|
162
|
-
identifier?: IPropertyValue<string>[];
|
|
163
163
|
name?: string;
|
|
164
164
|
}
|
|
165
|
-
export type
|
|
165
|
+
export type IProgramMembershipIssuedThroughFaceToFace = Pick<IProgramMembership, 'typeOf'> & {
|
|
166
|
+
identifier: string;
|
|
167
|
+
issuedThrough: {
|
|
168
|
+
serviceType: Pick<IServiceType, 'codeValue'>;
|
|
169
|
+
typeOf: PaymentServiceType.FaceToFace;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export type IProgramMembershipIssuedThroughCreditCard = Pick<IProgramMembership, 'typeOf'> & {
|
|
173
|
+
identifier: string;
|
|
174
|
+
issuedThrough: {
|
|
175
|
+
id: string;
|
|
176
|
+
serviceType: Pick<IServiceType, 'codeValue'>;
|
|
177
|
+
typeOf: PaymentServiceType.CreditCard;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
export type IProgramMembershipIssuedThroughMembershipService = Pick<IProgramMembership, 'typeOf'> & {
|
|
181
|
+
identifier: string;
|
|
182
|
+
issuedThrough: {
|
|
183
|
+
id: string;
|
|
184
|
+
serviceType: Pick<IServiceType, 'codeValue'>;
|
|
185
|
+
typeOf: ProductType.MembershipService;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
export type IProgramMembershipUsed = IProgramMembershipIssuedThroughFaceToFace | IProgramMembershipIssuedThroughCreditCard | IProgramMembershipIssuedThroughMembershipService;
|
|
166
189
|
export type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
|
|
167
190
|
export type IServiceLocationContainedInPlace = Pick<MovieTheaterFactory.IPlace, 'typeOf' | 'id' | 'branchCode'> & {
|
|
168
191
|
name?: IMultilingualString;
|
package/lib/seller.d.ts
CHANGED
|
@@ -30,11 +30,11 @@ export type IEligibleTransactionDuration = Pick<IQuantitativeValue<UnitCode.Sec>
|
|
|
30
30
|
export interface IMakesOffer extends Pick<IOffer, 'typeOf' | 'availableAtOrFrom'> {
|
|
31
31
|
availableAtOrFrom: IAvailableAtOrFrom[];
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* 対象カスタマータイプ
|
|
34
34
|
*/
|
|
35
35
|
eligibleCustomerType?: IBusinessEntityType[];
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* 対象取引期間
|
|
38
38
|
*/
|
|
39
39
|
eligibleTransactionDuration: IEligibleTransactionDuration;
|
|
40
40
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IInvoice } from '../invoice';
|
|
2
2
|
import { IMultilingualString } from '../multilingualString';
|
|
3
|
-
import {
|
|
4
|
-
import { IAvailableChannel as IProductAvailableChannel,
|
|
3
|
+
import { IPermit } from '../permit';
|
|
4
|
+
import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
|
|
5
5
|
import { IProject } from '../project';
|
|
6
6
|
import { IPropertyValue } from '../propertyValue';
|
|
7
7
|
import { ISeller } from '../seller';
|
|
8
|
+
import { SortType } from '../sortType';
|
|
8
9
|
import { IThing } from '../thing';
|
|
9
10
|
export declare enum PaymentServiceType {
|
|
10
11
|
CreditCard = "CreditCard",
|
|
@@ -84,23 +85,25 @@ export interface IPaymentMethodAsServiceOutput {
|
|
|
84
85
|
/**
|
|
85
86
|
* 出力されるインボイス
|
|
86
87
|
*/
|
|
87
|
-
export interface IInvoiceAsServiceOutput extends Pick<IInvoice, '
|
|
88
|
+
export interface IInvoiceAsServiceOutput extends Pick<IInvoice, 'typeOf'> {
|
|
88
89
|
/**
|
|
89
90
|
* 発行される決済方法
|
|
90
91
|
*/
|
|
91
92
|
paymentMethod?: IPaymentMethodAsServiceOutput;
|
|
92
93
|
}
|
|
93
94
|
/**
|
|
94
|
-
*
|
|
95
|
+
* 出力メンバーシップ
|
|
95
96
|
*/
|
|
96
97
|
export type IPermitAsServiceOutput = Pick<IPermit, 'typeOf'> & {
|
|
97
98
|
/**
|
|
98
99
|
* メンバーシップサービス
|
|
99
100
|
* メンバーシップ区分が含まれる
|
|
100
101
|
*/
|
|
101
|
-
issuedThrough:
|
|
102
|
+
issuedThrough: {
|
|
103
|
+
serviceType: Pick<IServiceType, 'codeValue'>;
|
|
104
|
+
};
|
|
102
105
|
};
|
|
103
|
-
export type IServiceOutput = IInvoiceAsServiceOutput | IPermitAsServiceOutput;
|
|
106
|
+
export type IServiceOutput = (IInvoiceAsServiceOutput | IPermitAsServiceOutput)[];
|
|
104
107
|
/**
|
|
105
108
|
* 決済サービス
|
|
106
109
|
* {@link https://schema.org/Service}
|
|
@@ -121,7 +124,7 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
|
121
124
|
* The tangible thing generated by the service, e.g. a passport, permit, etc.
|
|
122
125
|
* (InvoiceやPermit)
|
|
123
126
|
*/
|
|
124
|
-
serviceOutput?: IServiceOutput
|
|
127
|
+
serviceOutput?: IServiceOutput;
|
|
125
128
|
/**
|
|
126
129
|
* The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
|
|
127
130
|
* 決済サービスの場合、serviceType.codeValueが決済方法区分
|
|
@@ -129,9 +132,73 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
|
129
132
|
serviceType: IServiceType;
|
|
130
133
|
additionalProperty?: IPropertyValue<string>[];
|
|
131
134
|
}
|
|
132
|
-
export
|
|
135
|
+
export interface ISortOrder {
|
|
136
|
+
productID?: SortType;
|
|
137
|
+
}
|
|
138
|
+
export interface ISearchConditions {
|
|
139
|
+
limit?: number;
|
|
140
|
+
page?: number;
|
|
141
|
+
sort?: ISortOrder;
|
|
142
|
+
project?: {
|
|
143
|
+
id?: {
|
|
144
|
+
$eq?: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
id?: {
|
|
148
|
+
$eq?: string;
|
|
149
|
+
$in?: string[];
|
|
150
|
+
};
|
|
151
|
+
name?: {
|
|
152
|
+
$regex?: string;
|
|
153
|
+
};
|
|
154
|
+
productID?: {
|
|
155
|
+
$eq?: string;
|
|
156
|
+
$in?: string[];
|
|
157
|
+
$regex?: string;
|
|
158
|
+
};
|
|
159
|
+
provider?: {
|
|
160
|
+
id?: {
|
|
161
|
+
/**
|
|
162
|
+
* プロバイダーに指定IDの販売者が含まれる
|
|
163
|
+
*/
|
|
164
|
+
$eq?: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
133
167
|
typeOf?: {
|
|
134
168
|
$eq?: PaymentServiceType;
|
|
135
169
|
$in?: PaymentServiceType[];
|
|
136
170
|
};
|
|
137
|
-
|
|
171
|
+
serviceOutput?: {
|
|
172
|
+
typeOf?: {
|
|
173
|
+
/**
|
|
174
|
+
* Invoice or Permit
|
|
175
|
+
*/
|
|
176
|
+
$eq?: string;
|
|
177
|
+
};
|
|
178
|
+
paymentMethod?: {
|
|
179
|
+
amount?: {
|
|
180
|
+
/**
|
|
181
|
+
* 出力通貨区分コード
|
|
182
|
+
*/
|
|
183
|
+
currency?: {
|
|
184
|
+
$eq?: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
issuedThrough?: {
|
|
189
|
+
serviceType?: {
|
|
190
|
+
/**
|
|
191
|
+
* 出力メンバーシップ区分コード
|
|
192
|
+
*/
|
|
193
|
+
codeValue?: {
|
|
194
|
+
$eq?: string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
serviceType?: {
|
|
200
|
+
codeValue?: {
|
|
201
|
+
$eq?: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
}
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -116,9 +116,12 @@ export type ICreateParams = Pick<IUnitPriceOffer, 'acceptedPaymentMethod' | 'eli
|
|
|
116
116
|
* カテゴリー
|
|
117
117
|
*/
|
|
118
118
|
category?: Pick<ICategory, 'codeValue'>;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
/**
|
|
120
|
+
* 対象メンバーシップ
|
|
121
|
+
*/
|
|
122
|
+
eligibleMembershipType?: [Pick<IEligibleCategoryCode, 'codeValue'>];
|
|
123
|
+
eligibleMonetaryAmount?: [Pick<IEligibleMonetaryAmount, 'currency' | 'value'>];
|
|
124
|
+
eligibleSeatingType?: [Pick<IEligibleCategoryCode, 'codeValue'>];
|
|
122
125
|
/**
|
|
123
126
|
* 返品ポリシー
|
|
124
127
|
*/
|
|
@@ -236,7 +239,7 @@ export interface ISearchConditions {
|
|
|
236
239
|
};
|
|
237
240
|
eligibleMembershipType?: {
|
|
238
241
|
/**
|
|
239
|
-
*
|
|
242
|
+
* 対象メンバーシップ区分
|
|
240
243
|
*/
|
|
241
244
|
codeValue?: {
|
|
242
245
|
$eq?: string;
|
|
@@ -244,7 +247,7 @@ export interface ISearchConditions {
|
|
|
244
247
|
};
|
|
245
248
|
eligibleMonetaryAmount?: {
|
|
246
249
|
/**
|
|
247
|
-
*
|
|
250
|
+
* 対象通貨区分
|
|
248
251
|
*/
|
|
249
252
|
currency?: {
|
|
250
253
|
$eq?: string;
|
|
@@ -252,7 +255,7 @@ export interface ISearchConditions {
|
|
|
252
255
|
};
|
|
253
256
|
eligibleSeatingType?: {
|
|
254
257
|
/**
|
|
255
|
-
*
|
|
258
|
+
* 対象座席区分
|
|
256
259
|
*/
|
|
257
260
|
codeValue?: {
|
|
258
261
|
$eq?: string;
|