@chevre/factory 4.259.0-alpha.8 → 4.260.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.
- package/lib/chevre.d.ts +0 -7
- package/lib/chevre.js +3 -5
- package/lib/factory/account/action/moneyTransfer.d.ts +1 -1
- package/lib/factory/account.d.ts +1 -1
- package/lib/factory/accountTitle.d.ts +1 -1
- package/lib/factory/action/authorize/offer/product.d.ts +7 -3
- package/lib/factory/action/authorize/offer/seatReservation.d.ts +16 -5
- package/lib/factory/action/interact/confirm/registerService.d.ts +1 -1
- package/lib/factory/action/interact/confirm/reservation.d.ts +1 -1
- package/lib/factory/action/trade/pay.d.ts +1 -0
- package/lib/factory/action/trade/refund.d.ts +1 -0
- package/lib/factory/action.d.ts +2 -2
- package/lib/factory/assetTransaction/pay.d.ts +1 -1
- package/lib/factory/assetTransaction/refund.d.ts +1 -1
- package/lib/factory/assetTransaction/registerService.d.ts +4 -2
- package/lib/factory/authorization.d.ts +1 -1
- package/lib/factory/categoryCode.d.ts +6 -4
- package/lib/factory/creativeWork/message/email.d.ts +2 -2
- package/lib/factory/creativeWork/movie.d.ts +1 -1
- package/lib/factory/creativeWork.d.ts +1 -1
- package/lib/factory/customer.d.ts +1 -1
- package/lib/factory/event/screeningEvent.d.ts +10 -6
- package/lib/factory/event/screeningEventSeries.d.ts +3 -3
- package/lib/factory/event.d.ts +3 -3
- package/lib/factory/merchantReturnPolicy.d.ts +1 -1
- package/lib/factory/monetaryAmount.d.ts +1 -1
- package/lib/factory/offer.d.ts +7 -24
- package/lib/factory/offerCatalog.d.ts +9 -6
- package/lib/factory/order.d.ts +5 -5
- package/lib/factory/organization.d.ts +1 -1
- package/lib/factory/ownershipInfo.d.ts +3 -3
- package/lib/factory/paymentMethod.d.ts +2 -2
- package/lib/factory/permit.d.ts +4 -3
- package/lib/factory/place.d.ts +2 -2
- package/lib/factory/priceSpecification/categoryCodeChargeSpecification.d.ts +2 -1
- package/lib/factory/priceSpecification/movieTicketTypeChargeSpecification.d.ts +0 -3
- package/lib/factory/priceSpecification/unitPriceSpecification.d.ts +2 -2
- package/lib/factory/priceSpecification.d.ts +1 -1
- package/lib/factory/product.d.ts +5 -4
- package/lib/factory/programMembership.d.ts +1 -1
- package/lib/factory/quantitativeValue.d.ts +1 -1
- package/lib/factory/report/accountingReport.d.ts +14 -8
- package/lib/factory/reservation/event.d.ts +1 -1
- package/lib/factory/reservation.d.ts +4 -5
- package/lib/factory/seller.d.ts +2 -2
- package/lib/factory/service/paymentService.d.ts +9 -7
- package/lib/factory/task/importEventCapacitiesFromCOA.d.ts +1 -1
- package/lib/factory/task/importEventsFromCOA.d.ts +1 -1
- package/lib/factory/task/importOffersFromCOA.d.ts +1 -1
- package/lib/factory/task/orderProgramMembership.d.ts +1 -1
- package/lib/factory/task/placeOrder.d.ts +1 -1
- package/lib/factory/task/sendOrder.d.ts +1 -1
- package/lib/factory/task/voidMoneyTransferTransaction.d.ts +1 -1
- package/lib/factory/task/voidPayTransaction.d.ts +1 -1
- package/lib/factory/task/voidRegisterServiceTransaction.d.ts +1 -1
- package/lib/factory/task/voidReserveTransaction.d.ts +1 -1
- package/lib/factory/task.d.ts +1 -1
- package/lib/factory/transaction/moneyTransfer.d.ts +1 -1
- package/lib/factory/transaction/placeOrder.d.ts +1 -1
- package/lib/factory/transaction/returnOrder.d.ts +1 -1
- package/package.json +1 -1
- package/lib/factory/service.d.ts +0 -4
- package/lib/factory/service.js +0 -16
- package/lib/factory/serviceType.d.ts +0 -9
- package/lib/factory/serviceType.js +0 -2
package/lib/factory/order.d.ts
CHANGED
|
@@ -16,12 +16,11 @@ import { IPerson, IProfile } from './person';
|
|
|
16
16
|
import { PersonType } from './personType';
|
|
17
17
|
import { PlaceType } from './placeType';
|
|
18
18
|
import { PriceCurrency } from './priceCurrency';
|
|
19
|
-
import { IProduct, ProductType } from './product';
|
|
19
|
+
import { IProduct, IServiceType, ProductType } from './product';
|
|
20
20
|
import { IPropertyValue } from './propertyValue';
|
|
21
21
|
import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
|
|
22
22
|
import * as EventReservationFactory from './reservation/event';
|
|
23
23
|
import { ReservationType } from './reservationType';
|
|
24
|
-
import { IServiceType } from './serviceType';
|
|
25
24
|
import { SortType } from './sortType';
|
|
26
25
|
import { IThing } from './thing';
|
|
27
26
|
export interface IProject {
|
|
@@ -98,7 +97,7 @@ export declare type IReservation = Pick<EventReservationFactory.IReservation, 'a
|
|
|
98
97
|
reservationFor: IReservationFor;
|
|
99
98
|
reservedTicket: IReservedTicket;
|
|
100
99
|
};
|
|
101
|
-
export declare type IPermit =
|
|
100
|
+
export declare type IPermit = Pick<PermitFactory.IPermit, 'amount' | 'identifier' | 'issuedThrough' | 'name' | 'project' | 'typeOf' | 'validFor'>;
|
|
102
101
|
export interface IMoneyTransferPendingTransaction {
|
|
103
102
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
104
103
|
/**
|
|
@@ -181,7 +180,7 @@ export declare type IBroker = IPerson;
|
|
|
181
180
|
*/
|
|
182
181
|
export declare type IReturner = IParticipant;
|
|
183
182
|
export declare type IIdentifier = IPropertyValue<string>[];
|
|
184
|
-
export interface ISimpleOrder extends IThing {
|
|
183
|
+
export interface ISimpleOrder extends Pick<IThing, 'name'> {
|
|
185
184
|
project: IProject;
|
|
186
185
|
/**
|
|
187
186
|
* object type
|
|
@@ -239,13 +238,14 @@ export interface IEventServiceAsOrderedItem {
|
|
|
239
238
|
};
|
|
240
239
|
serviceType?: IServiceType;
|
|
241
240
|
}
|
|
241
|
+
export declare type IProductAsOrderedItem = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
|
|
242
242
|
/**
|
|
243
243
|
* 注文アイテム
|
|
244
244
|
* {@link https://schema.org/OrderItem}
|
|
245
245
|
*/
|
|
246
246
|
export interface IOrderedItem {
|
|
247
247
|
typeOf: 'OrderItem';
|
|
248
|
-
orderedItem:
|
|
248
|
+
orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem;
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
251
|
* 注文
|
|
@@ -32,7 +32,7 @@ export interface IReservation {
|
|
|
32
32
|
bookingService?: IBookingService;
|
|
33
33
|
}
|
|
34
34
|
export declare type IReservationWithDetail = IReservation & IEventReservation;
|
|
35
|
-
export declare type IPermit = PermitFactory.IPermit
|
|
35
|
+
export declare type IPermit = Pick<PermitFactory.IPermit, 'identifier' | 'issuedThrough' | 'name' | 'project' | 'typeOf' | 'validFor'>;
|
|
36
36
|
/**
|
|
37
37
|
* 所有対象物 (Product or Service)
|
|
38
38
|
*/
|
|
@@ -40,7 +40,7 @@ export declare type IGood = IReservation | IPermit;
|
|
|
40
40
|
/**
|
|
41
41
|
* 所有対象物(対象物詳細有)
|
|
42
42
|
*/
|
|
43
|
-
export declare type IGoodWithDetail = IReservationWithDetail | IPermit;
|
|
43
|
+
export declare type IGoodWithDetail = IReservationWithDetail | PermitFactory.IPermit;
|
|
44
44
|
/**
|
|
45
45
|
* 所有者
|
|
46
46
|
*/
|
|
@@ -74,7 +74,7 @@ export declare type OwnershipInfoType = 'OwnershipInfo';
|
|
|
74
74
|
* 所有権
|
|
75
75
|
*/
|
|
76
76
|
export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
|
|
77
|
-
project: IProject
|
|
77
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
78
78
|
/**
|
|
79
79
|
* object type
|
|
80
80
|
*/
|
|
@@ -3,8 +3,8 @@ import { IThing } from './thing';
|
|
|
3
3
|
/**
|
|
4
4
|
* payment method interface
|
|
5
5
|
*/
|
|
6
|
-
export interface IPaymentMethod extends IThing {
|
|
7
|
-
project: IProject
|
|
6
|
+
export interface IPaymentMethod extends Pick<IThing, 'name'> {
|
|
7
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
8
8
|
typeOf: string;
|
|
9
9
|
identifier: string;
|
|
10
10
|
}
|
package/lib/factory/permit.d.ts
CHANGED
|
@@ -8,12 +8,13 @@ import { IThing } from './thing';
|
|
|
8
8
|
export declare enum PermitType {
|
|
9
9
|
Permit = "Permit"
|
|
10
10
|
}
|
|
11
|
+
export declare type IIssuedThrough = Pick<IProduct, 'id' | 'project' | 'serviceType' | 'typeOf'>;
|
|
11
12
|
/**
|
|
12
13
|
* A permit issued by an organization, e.g. a parking pass.
|
|
13
14
|
* {@link https://schema.org/Permit}
|
|
14
15
|
*/
|
|
15
|
-
export interface IPermit extends IThing {
|
|
16
|
-
project: IProject
|
|
16
|
+
export interface IPermit extends Pick<IThing, 'name'> {
|
|
17
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
17
18
|
typeOf: PermitType;
|
|
18
19
|
identifier?: string;
|
|
19
20
|
accessCode?: string;
|
|
@@ -30,7 +31,7 @@ export interface IPermit extends IThing {
|
|
|
30
31
|
/**
|
|
31
32
|
* The service through with the permit was granted.
|
|
32
33
|
*/
|
|
33
|
-
issuedThrough?:
|
|
34
|
+
issuedThrough?: IIssuedThrough;
|
|
34
35
|
/**
|
|
35
36
|
* The target audience for this permit.
|
|
36
37
|
*/
|
package/lib/factory/place.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ import { IThing } from './thing';
|
|
|
6
6
|
/**
|
|
7
7
|
* 場所インターフェース
|
|
8
8
|
*/
|
|
9
|
-
export interface IPlace extends IThing {
|
|
10
|
-
project: IProject
|
|
9
|
+
export interface IPlace extends Pick<IThing, 'identifier' | 'name'> {
|
|
10
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
11
11
|
typeOf: PlaceType;
|
|
12
12
|
id?: string;
|
|
13
13
|
address?: IMultilingualString;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ICategoryCode } from '../categoryCode';
|
|
2
2
|
import { IPriceSpecification as BaseSpecification } from '../priceSpecification';
|
|
3
3
|
import { PriceSpecificationType } from '../priceSpecificationType';
|
|
4
|
+
export declare type IAppliesToCategoryCode = Pick<ICategoryCode, 'project' | 'typeOf' | 'codeValue' | 'inCodeSet'>;
|
|
4
5
|
/**
|
|
5
6
|
* 区分加算料金
|
|
6
7
|
*/
|
|
@@ -10,5 +11,5 @@ export declare type IPriceSpecification = BaseSpecification<PriceSpecificationTy
|
|
|
10
11
|
* 適用カテゴリーコード
|
|
11
12
|
* AND適用条件
|
|
12
13
|
*/
|
|
13
|
-
appliesToCategoryCode:
|
|
14
|
+
appliesToCategoryCode: IAppliesToCategoryCode[];
|
|
14
15
|
};
|
|
@@ -3,8 +3,8 @@ import { IPriceSpecification as BaseSpecification } from '../priceSpecification'
|
|
|
3
3
|
import { PriceSpecificationType } from '../priceSpecificationType';
|
|
4
4
|
import { IQuantitativeValue } from '../quantitativeValue';
|
|
5
5
|
import { UnitCode } from '../unitCode';
|
|
6
|
-
import { IAppliesToMovieTicket as
|
|
7
|
-
export declare type IAppliesToMovieTicket =
|
|
6
|
+
import { IAppliesToMovieTicket as IMovieTicketTypeChargeSpecAppliesToMovieTicket } from './movieTicketTypeChargeSpecification';
|
|
7
|
+
export declare type IAppliesToMovieTicket = Pick<IMovieTicketTypeChargeSpecAppliesToMovieTicket, 'typeOf' | 'serviceType' | 'serviceOutput'> & {
|
|
8
8
|
/**
|
|
9
9
|
* 単価オファー設定としては存在しないが、予約あるいは注文の価格仕様としては必須
|
|
10
10
|
*/
|
|
@@ -28,7 +28,7 @@ export interface IAccounting {
|
|
|
28
28
|
* 価格仕様インターフェース
|
|
29
29
|
*/
|
|
30
30
|
export interface IPriceSpecification<T extends PriceSpecificationType> {
|
|
31
|
-
project: IProject
|
|
31
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
32
32
|
id?: string;
|
|
33
33
|
typeOf: T;
|
|
34
34
|
name?: string | IMultilingualString;
|
package/lib/factory/product.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ActionType } from './actionType';
|
|
2
|
+
import { ICategoryCode } from './categoryCode';
|
|
2
3
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
3
4
|
import { IOffer } from './offer';
|
|
4
5
|
import { IPermit } from './permit';
|
|
5
6
|
import { IProject } from './project';
|
|
6
7
|
import { IPropertyValue } from './propertyValue';
|
|
7
8
|
import { IQuantitativeValue } from './quantitativeValue';
|
|
8
|
-
import { IServiceType } from './serviceType';
|
|
9
9
|
import { SortType } from './sortType';
|
|
10
10
|
import { IThing } from './thing';
|
|
11
11
|
/**
|
|
@@ -83,12 +83,13 @@ export interface IAvailableChannel {
|
|
|
83
83
|
serviceUrl?: string;
|
|
84
84
|
credentials?: ICredentials;
|
|
85
85
|
}
|
|
86
|
+
export declare type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'project' | 'typeOf'>;
|
|
86
87
|
/**
|
|
87
88
|
* プロダクトインターフェース
|
|
88
89
|
* {@link https://schema.org/Product}
|
|
89
90
|
*/
|
|
90
|
-
export interface IProduct extends IThing {
|
|
91
|
-
project: IProject
|
|
91
|
+
export interface IProduct extends Pick<IThing, 'name' | 'description'> {
|
|
92
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
92
93
|
typeOf: ProductType;
|
|
93
94
|
id?: string;
|
|
94
95
|
availableChannel?: IAvailableChannel;
|
|
@@ -104,7 +105,7 @@ export interface IProduct extends IThing {
|
|
|
104
105
|
/**
|
|
105
106
|
* The product identifier, such as ISBN. For example: meta itemprop="productID" content="isbn:123-456-789".
|
|
106
107
|
*/
|
|
107
|
-
productID
|
|
108
|
+
productID: string;
|
|
108
109
|
/**
|
|
109
110
|
* The tangible thing generated by the service, e.g. a passport, permit, etc.
|
|
110
111
|
*/
|
|
@@ -7,7 +7,7 @@ export declare enum ProgramMembershipType {
|
|
|
7
7
|
* (e.g. "StarAliance"), traveler clubs (e.g. "AAA"), purchase clubs ("Safeway Club"), etc.
|
|
8
8
|
* {@link https://schema.org/ProgramMembership}
|
|
9
9
|
*/
|
|
10
|
-
export interface IProgramMembership extends IThing {
|
|
10
|
+
export interface IProgramMembership extends Pick<IThing, 'name'> {
|
|
11
11
|
typeOf: ProgramMembershipType;
|
|
12
12
|
/**
|
|
13
13
|
* A unique identifier for the membership.
|
|
@@ -8,7 +8,7 @@ export declare enum StringValue {
|
|
|
8
8
|
* A point value or interval for product characteristics and other purposes.
|
|
9
9
|
* {@link https://schema.org/QuantitativeValue}
|
|
10
10
|
*/
|
|
11
|
-
export interface IQuantitativeValue<T extends UnitCode> extends IThing {
|
|
11
|
+
export interface IQuantitativeValue<T extends UnitCode> extends Pick<IThing, 'name'> {
|
|
12
12
|
/**
|
|
13
13
|
* The upper value of some characteristic or property.
|
|
14
14
|
*/
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { IAction as IPayAction } from '../action/trade/pay';
|
|
2
|
-
import { IAction as IRefundAction } from '../action/trade/refund';
|
|
1
|
+
import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
|
|
2
|
+
import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
|
|
3
3
|
import { IOrder } from '../order';
|
|
4
|
-
export declare type
|
|
5
|
-
export declare type IOptimizedPayAction =
|
|
6
|
-
|
|
4
|
+
export declare type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
|
|
5
|
+
export declare type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'project' | 'purpose' | 'startDate' | 'typeOf'> & {
|
|
6
|
+
object: IPayActionObject[];
|
|
7
|
+
};
|
|
8
|
+
export declare type IRefundActionObject = Pick<IRefundObject, 'id' | 'paymentMethod' | 'typeOf'>;
|
|
9
|
+
export declare type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDate' | 'id' | 'project' | 'purpose' | 'startDate' | 'typeOf'> & {
|
|
10
|
+
object: IRefundActionObject[];
|
|
11
|
+
};
|
|
7
12
|
export declare type IAction = IOptimizedPayAction | IOptimizedRefundAction;
|
|
13
|
+
export declare type IOrderAsMainEntity = IOrder;
|
|
8
14
|
/**
|
|
9
|
-
*
|
|
15
|
+
* 経理レポート
|
|
10
16
|
*/
|
|
11
17
|
export interface IReport {
|
|
12
18
|
mainEntity: IAction;
|
|
13
19
|
isPartOf: {
|
|
14
|
-
mainEntity:
|
|
20
|
+
mainEntity: IOrderAsMainEntity;
|
|
15
21
|
};
|
|
16
22
|
}
|
|
17
23
|
/**
|
|
18
|
-
*
|
|
24
|
+
* 検索条件
|
|
19
25
|
*/
|
|
20
26
|
export interface ISearchConditions {
|
|
21
27
|
limit?: number;
|
|
@@ -31,7 +31,7 @@ export interface IReservationFor {
|
|
|
31
31
|
coaInfo?: ICOAInfo;
|
|
32
32
|
location: IEventLocation;
|
|
33
33
|
name: IEventName;
|
|
34
|
-
project: IProject
|
|
34
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
35
35
|
startDate: Date;
|
|
36
36
|
superEvent: IOptimizedSuperEvent;
|
|
37
37
|
typeOf: EventType.ScreeningEvent;
|
|
@@ -11,12 +11,11 @@ import { PlaceType } from './placeType';
|
|
|
11
11
|
import { PriceCurrency } from './priceCurrency';
|
|
12
12
|
import { IPriceSpecification as IGenericPriceSpecification } from './priceSpecification';
|
|
13
13
|
import { PriceSpecificationType } from './priceSpecificationType';
|
|
14
|
-
import { ProductType } from './product';
|
|
14
|
+
import { IServiceType, ProductType } from './product';
|
|
15
15
|
import { IProject } from './project';
|
|
16
16
|
import { IPropertyValue } from './propertyValue';
|
|
17
17
|
import { ReservationStatusType } from './reservationStatusType';
|
|
18
18
|
import { ReservationType } from './reservationType';
|
|
19
|
-
import { IServiceType } from './serviceType';
|
|
20
19
|
import { SortType } from './sortType';
|
|
21
20
|
import { IThing } from './thing';
|
|
22
21
|
export declare type TicketType = 'Ticket';
|
|
@@ -29,7 +28,7 @@ export interface ITicketType {
|
|
|
29
28
|
identifier: string;
|
|
30
29
|
name?: string | IMultilingualString;
|
|
31
30
|
priceCurrency: PriceCurrency;
|
|
32
|
-
project: IProject
|
|
31
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
33
32
|
typeOf: OfferType;
|
|
34
33
|
validRateLimit?: OfferFactory.IValidRateLimit;
|
|
35
34
|
}
|
|
@@ -179,8 +178,8 @@ export interface IIssuedThrough {
|
|
|
179
178
|
* For offers of tickets, restaurant reservations, flights, or rental cars, use Offer.
|
|
180
179
|
* {@link https://schema.org/Reservation}
|
|
181
180
|
*/
|
|
182
|
-
export interface IReservation<T extends IPriceSpecification> extends IThing {
|
|
183
|
-
project: IProject
|
|
181
|
+
export interface IReservation<T extends IPriceSpecification> extends Pick<IThing, 'identifier' | 'name'> {
|
|
182
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
184
183
|
/**
|
|
185
184
|
* type of object
|
|
186
185
|
*/
|
package/lib/factory/seller.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { OrganizationType } from './organizationType';
|
|
|
5
5
|
import { IProject } from './project';
|
|
6
6
|
import { IPropertyValue } from './propertyValue';
|
|
7
7
|
import { SortType } from './sortType';
|
|
8
|
-
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee'>;
|
|
8
|
+
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'>;
|
|
9
9
|
export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
|
|
10
10
|
/**
|
|
11
11
|
* 利用可能決済インターフェース
|
|
@@ -17,7 +17,7 @@ export interface IPaymentAccepted {
|
|
|
17
17
|
paymentMethodType: string;
|
|
18
18
|
}
|
|
19
19
|
export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location' | 'telephone' | 'additionalProperty' | 'name' | 'url'> {
|
|
20
|
-
project: IProject
|
|
20
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
21
21
|
/**
|
|
22
22
|
* The geographic area where a service or offered item is provided.
|
|
23
23
|
*/
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { IOrganization } from '../organization';
|
|
2
|
-
import { IAvailableChannel } from '../product';
|
|
3
|
-
import { IProject } from '../project';
|
|
2
|
+
import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
|
|
3
|
+
import { IOnPaymentStatusChanged, IProject } from '../project';
|
|
4
4
|
import { IPropertyValue } from '../propertyValue';
|
|
5
|
-
import { IServiceType } from '../serviceType';
|
|
6
5
|
import { IThing } from '../thing';
|
|
7
6
|
export declare enum PaymentServiceType {
|
|
8
7
|
CreditCard = "CreditCard",
|
|
@@ -37,22 +36,25 @@ export interface IProviderCredentials {
|
|
|
37
36
|
*/
|
|
38
37
|
stCd?: string;
|
|
39
38
|
}
|
|
40
|
-
export interface IProvider extends IOrganization {
|
|
39
|
+
export interface IProvider extends Pick<IOrganization, 'id' | 'name' | 'typeOf'> {
|
|
41
40
|
/**
|
|
42
41
|
* 販売者の決済サービス利用時資格情報
|
|
43
42
|
*/
|
|
44
43
|
credentials?: IProviderCredentials;
|
|
45
44
|
}
|
|
45
|
+
export declare type IAvailableChannel = IProductAvailableChannel & {
|
|
46
|
+
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
47
|
+
};
|
|
46
48
|
/**
|
|
47
49
|
* 決済サービスインターフェース
|
|
48
50
|
* {@link https://schema.org/Service}
|
|
49
51
|
*/
|
|
50
|
-
export interface IService extends IThing {
|
|
51
|
-
project: IProject
|
|
52
|
+
export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
53
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
52
54
|
typeOf: PaymentServiceType;
|
|
53
55
|
id?: string;
|
|
54
56
|
availableChannel?: IAvailableChannel;
|
|
55
|
-
productID
|
|
57
|
+
productID: string;
|
|
56
58
|
/**
|
|
57
59
|
* 決済サービス提供者(決済サービスを利用する販売者)
|
|
58
60
|
*/
|
|
@@ -3,7 +3,7 @@ import { IProject } from '../project';
|
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
5
|
export interface IData {
|
|
6
|
-
project: IProject
|
|
6
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
7
7
|
theaterCode: string;
|
|
8
8
|
}
|
|
9
9
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
@@ -41,7 +41,7 @@ export interface IData {
|
|
|
41
41
|
* 注文取引確定後アクション
|
|
42
42
|
*/
|
|
43
43
|
potentialActions?: IPotentialActions;
|
|
44
|
-
project: IProject
|
|
44
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
45
45
|
typeOf: ActionType.OrderAction;
|
|
46
46
|
}
|
|
47
47
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
@@ -4,7 +4,7 @@ import { IProject } from '../project';
|
|
|
4
4
|
import * as TaskFactory from '../task';
|
|
5
5
|
import { TaskName } from '../taskName';
|
|
6
6
|
export interface IData {
|
|
7
|
-
project: IProject
|
|
7
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
8
8
|
object: {
|
|
9
9
|
confirmationNumber: string;
|
|
10
10
|
orderNumber: string;
|
|
@@ -4,7 +4,7 @@ import { IProject } from '../project';
|
|
|
4
4
|
import * as TaskFactory from '../task';
|
|
5
5
|
import { TaskName } from '../taskName';
|
|
6
6
|
export interface IData {
|
|
7
|
-
project: IProject
|
|
7
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
8
8
|
object: SendOrderActionFactory.IObject;
|
|
9
9
|
potentialActions?: SendOrderActionFactory.IPotentialActions;
|
|
10
10
|
}
|
package/lib/factory/task.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface IReturnableOrder {
|
|
|
32
32
|
* 注文返品開始パラメータ
|
|
33
33
|
*/
|
|
34
34
|
export interface IStartParamsWithoutDetail {
|
|
35
|
-
project:
|
|
35
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
36
36
|
expires: Date;
|
|
37
37
|
agent: IAgent;
|
|
38
38
|
object: {
|
package/package.json
CHANGED
package/lib/factory/service.d.ts
DELETED
package/lib/factory/service.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
/**
|
|
14
|
-
* サービスファクトリー
|
|
15
|
-
*/
|
|
16
|
-
__exportStar(require("./product"), exports);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ICategoryCode, ISearchConditions as ICategoryCodeSearchConditions } from './categoryCode';
|
|
2
|
-
/**
|
|
3
|
-
* サービスタイプインターフェース
|
|
4
|
-
*/
|
|
5
|
-
export declare type IServiceType = ICategoryCode;
|
|
6
|
-
/**
|
|
7
|
-
* 検索条件インターフェース
|
|
8
|
-
*/
|
|
9
|
-
export declare type ISearchConditions = ICategoryCodeSearchConditions;
|