@chevre/factory 4.328.0 → 4.329.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.
- package/lib/action/authorize/offer/product.d.ts +5 -2
- package/lib/assetTransaction/registerService.d.ts +4 -2
- package/lib/order.d.ts +5 -3
- package/lib/permit.d.ts +6 -1
- package/lib/priceSpecification/unitPriceSpecification.d.ts +3 -1
- package/lib/reservation.d.ts +1 -1
- package/lib/service/paymentService.d.ts +23 -4
- package/lib/unitPriceOffer.d.ts +20 -4
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import * as RegisterServiceTransactionFactory from '../../../assetTransaction/re
|
|
|
4
4
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
5
5
|
import { IOffer } from '../../../offer';
|
|
6
6
|
import * as OrderFactory from '../../../order';
|
|
7
|
-
import { IPermit } from '../../../permit';
|
|
7
|
+
import { IIssuedThroughAsProduct, IPermit } from '../../../permit';
|
|
8
8
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
9
9
|
import { IProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
|
|
10
10
|
import { ISeller } from '../../../seller';
|
|
@@ -13,8 +13,11 @@ import * as AuthorizeActionFactory from '../../authorize';
|
|
|
13
13
|
import { IPointAward } from '../../transfer/moneyTransfer';
|
|
14
14
|
export declare type IAgent = ActionFactory.IParticipantAsSeller;
|
|
15
15
|
export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
16
|
+
export declare type IPermitIssuedByProduct = Omit<IPermit, 'issuedThrough'> & {
|
|
17
|
+
issuedThrough?: IIssuedThroughAsProduct;
|
|
18
|
+
};
|
|
16
19
|
export declare type IItemOffered = Pick<IProduct, 'typeOf' | 'id' | 'name'> & {
|
|
17
|
-
serviceOutput: IProductServiceOutput &
|
|
20
|
+
serviceOutput: IProductServiceOutput & IPermitIssuedByProduct;
|
|
18
21
|
pointAward?: IPointAward;
|
|
19
22
|
};
|
|
20
23
|
export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
|
|
@@ -4,7 +4,7 @@ import * as AssetTransactionFactory from '../assetTransaction';
|
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { OfferType } from '../offerType';
|
|
7
|
-
import { IPermit } from '../permit';
|
|
7
|
+
import { IIssuedThroughAsProduct, IPermit } from '../permit';
|
|
8
8
|
import { IProduct } from '../product';
|
|
9
9
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
10
10
|
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
|
|
@@ -52,7 +52,9 @@ export interface IAcceptedPointAward {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
export declare type IServiceOutput = IPermit
|
|
55
|
+
export declare type IServiceOutput = Omit<IPermit, 'issuedThrough'> & {
|
|
56
|
+
issuedThrough?: IIssuedThroughAsProduct;
|
|
57
|
+
};
|
|
56
58
|
export interface IAcceptedItemOffered {
|
|
57
59
|
id?: string;
|
|
58
60
|
pointAward?: IAcceptedPointAward;
|
package/lib/order.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { IOffer } from './offer';
|
|
|
11
11
|
import { OrderStatus } from './orderStatus';
|
|
12
12
|
import { OrganizationType } from './organizationType';
|
|
13
13
|
import { PaymentStatusType } from './paymentStatusType';
|
|
14
|
-
import { IPermit as IBasePermit } from './permit';
|
|
14
|
+
import { IIssuedThroughAsProduct, IPermit as IBasePermit } from './permit';
|
|
15
15
|
import { IPerson, IProfile } from './person';
|
|
16
16
|
import { PersonType } from './personType';
|
|
17
17
|
import { PlaceType } from './placeType';
|
|
@@ -19,6 +19,7 @@ import { PriceCurrency } from './priceCurrency';
|
|
|
19
19
|
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
20
20
|
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
21
21
|
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
22
|
+
import { IPriceSpecification as IUnitPriceOfferPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
22
23
|
import { IProduct, ProductType } from './product';
|
|
23
24
|
import { IPropertyValue } from './propertyValue';
|
|
24
25
|
import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
|
|
@@ -28,7 +29,6 @@ import { ReservationType } from './reservationType';
|
|
|
28
29
|
import { ISeller as IBaseSeller } from './seller';
|
|
29
30
|
import { IPaymentMethodAsServiceOutput, PaymentServiceType } from './service/paymentService';
|
|
30
31
|
import { SortType } from './sortType';
|
|
31
|
-
import { IUnitPriceOfferPriceSpecification } from './unitPriceOffer';
|
|
32
32
|
export interface IProject {
|
|
33
33
|
typeOf: OrganizationType.Project;
|
|
34
34
|
id: string;
|
|
@@ -136,7 +136,9 @@ export declare type IEventReservation = Pick<EventReservationFactory.IReservatio
|
|
|
136
136
|
reservedTicket: IReservedTicket;
|
|
137
137
|
};
|
|
138
138
|
export declare type IReservation = IBusReservation | IEventReservation;
|
|
139
|
-
export declare type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | '
|
|
139
|
+
export declare type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | 'name' | 'typeOf' | 'validFor'> & {
|
|
140
|
+
issuedThrough?: IIssuedThroughAsProduct;
|
|
141
|
+
};
|
|
140
142
|
export interface IMoneyTransferPendingTransaction {
|
|
141
143
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
142
144
|
/**
|
package/lib/permit.d.ts
CHANGED
|
@@ -4,10 +4,15 @@ import { IOrganization } from './organization';
|
|
|
4
4
|
import { IProduct } from './product';
|
|
5
5
|
import { IProject } from './project';
|
|
6
6
|
import { IPropertyValue } from './propertyValue';
|
|
7
|
+
import { PaymentServiceType } from './service/paymentService';
|
|
7
8
|
export declare enum PermitType {
|
|
8
9
|
Permit = "Permit"
|
|
9
10
|
}
|
|
10
|
-
export declare type
|
|
11
|
+
export declare type IIssuedThroughAsPaymentService = Pick<IProduct, 'id' | 'serviceType'> & {
|
|
12
|
+
typeOf: PaymentServiceType.CreditCard;
|
|
13
|
+
};
|
|
14
|
+
export declare type IIssuedThroughAsProduct = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
|
|
15
|
+
export declare type IIssuedThrough = IIssuedThroughAsPaymentService | IIssuedThroughAsProduct;
|
|
11
16
|
export declare type IPaymentAccount = Pick<IAccount, 'accountNumber' | 'typeOf'>;
|
|
12
17
|
export declare type IPaymentAccountWithDetail = Pick<IAccount, 'accountNumber' | 'availableBalance' | 'balance' | 'typeOf'>;
|
|
13
18
|
export declare type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
|
@@ -30,8 +30,10 @@ export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecifi
|
|
|
30
30
|
referenceQuantity: IReferenceQuantity;
|
|
31
31
|
/**
|
|
32
32
|
* 適用MovieTicket
|
|
33
|
+
* 複数決済カード対応(2022-07-11~)
|
|
34
|
+
* Arrayに完全限定(2023-09-01~)
|
|
33
35
|
*/
|
|
34
|
-
appliesToMovieTicket?: IAppliesToMovieTicket
|
|
36
|
+
appliesToMovieTicket?: IAppliesToMovieTicket[];
|
|
35
37
|
/**
|
|
36
38
|
* 適用アドオン
|
|
37
39
|
* アドオンを指定された場合に適用される
|
package/lib/reservation.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export interface IBroker {
|
|
|
166
166
|
identifier?: IPropertyValue<string>[];
|
|
167
167
|
name?: string;
|
|
168
168
|
}
|
|
169
|
-
export declare type IProgramMembershipUsed = IPermit
|
|
169
|
+
export declare type IProgramMembershipUsed = Pick<IPermit, 'identifier' | 'issuedThrough' | 'project' | 'typeOf'>;
|
|
170
170
|
export declare type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
|
|
171
171
|
export declare type IServiceLocationContainedInPlace = Pick<MovieTheaterFactory.IPlaceWithoutScreeningRoom, 'typeOf' | 'id' | 'branchCode'> & {
|
|
172
172
|
name?: IMultilingualString;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IInvoice } from '../invoice';
|
|
2
|
+
import { IIssuedThrough, IPermit } from '../permit';
|
|
2
3
|
import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
|
|
3
4
|
import { IOnPaymentStatusChanged, IProject } from '../project';
|
|
4
5
|
import { IPropertyValue } from '../propertyValue';
|
|
@@ -70,13 +71,26 @@ export interface IPaymentMethodAsServiceOutput {
|
|
|
70
71
|
currency: string;
|
|
71
72
|
};
|
|
72
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* 出力されるインボイス
|
|
76
|
+
*/
|
|
73
77
|
export interface IInvoiceAsServiceOutput extends Pick<IInvoice, 'paymentStatus' | 'typeOf'> {
|
|
74
78
|
/**
|
|
75
79
|
* 発行される決済方法
|
|
76
80
|
*/
|
|
77
81
|
paymentMethod?: IPaymentMethodAsServiceOutput;
|
|
78
82
|
}
|
|
79
|
-
|
|
83
|
+
/**
|
|
84
|
+
* 出力されるメンバーシップ
|
|
85
|
+
*/
|
|
86
|
+
export declare type IPermitAsServiceOutput = Pick<IPermit, 'typeOf'> & {
|
|
87
|
+
/**
|
|
88
|
+
* メンバーシップサービス
|
|
89
|
+
* メンバーシップ区分が含まれる
|
|
90
|
+
*/
|
|
91
|
+
issuedThrough: Pick<IIssuedThrough, 'serviceType'>;
|
|
92
|
+
};
|
|
93
|
+
export declare type IServiceOutput = IInvoiceAsServiceOutput | IPermitAsServiceOutput;
|
|
80
94
|
/**
|
|
81
95
|
* 決済サービス
|
|
82
96
|
* {@link https://schema.org/Service}
|
|
@@ -86,19 +100,24 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
|
86
100
|
typeOf: PaymentServiceType;
|
|
87
101
|
id?: string;
|
|
88
102
|
availableChannel?: IAvailableChannel;
|
|
103
|
+
/**
|
|
104
|
+
* The product identifier, such as ISBN.
|
|
105
|
+
* プロジェクト内でユニークな想定
|
|
106
|
+
*/
|
|
89
107
|
productID: string;
|
|
90
108
|
/**
|
|
91
109
|
* 決済サービス提供者(決済サービスを利用する販売者)
|
|
92
110
|
*/
|
|
93
111
|
provider?: IProvider[];
|
|
94
112
|
/**
|
|
95
|
-
*
|
|
113
|
+
* The tangible thing generated by the service, e.g. a passport, permit, etc.
|
|
114
|
+
* (InvoiceやPermit)
|
|
96
115
|
*/
|
|
97
|
-
serviceOutput?: IServiceOutput;
|
|
116
|
+
serviceOutput?: IServiceOutput | IServiceOutput[];
|
|
98
117
|
/**
|
|
99
118
|
* The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
|
|
100
119
|
* 決済サービスの場合、serviceType.codeValueが決済方法区分
|
|
101
120
|
*/
|
|
102
|
-
serviceType
|
|
121
|
+
serviceType: IServiceType;
|
|
103
122
|
additionalProperty?: IPropertyValue<string>[];
|
|
104
123
|
}
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ItemAvailability } from './itemAvailability';
|
|
|
3
3
|
import { IAddOn, IName, IOffer } from './offer';
|
|
4
4
|
import { OfferType } from './offerType';
|
|
5
5
|
import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
|
|
6
|
-
import {
|
|
6
|
+
import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
7
7
|
import { IProduct, ProductType } from './product';
|
|
8
8
|
import { IQuantitativeValue } from './quantitativeValue';
|
|
9
9
|
import { SortType } from './sortType';
|
|
@@ -40,10 +40,9 @@ export interface IItemOffered {
|
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* 単価オファーの価格仕様
|
|
43
|
+
* 最適化(Pickで表現)(2023-09-01~)
|
|
43
44
|
*/
|
|
44
|
-
export declare type IUnitPriceOfferPriceSpecification =
|
|
45
|
-
appliesToMovieTicket?: IAppliesToMovieTicket[];
|
|
46
|
-
};
|
|
45
|
+
export declare type IUnitPriceOfferPriceSpecification = Pick<IUnitPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
47
46
|
export declare type IAddOnItemOffered = Pick<IProduct, 'typeOf' | 'id' | 'name'>;
|
|
48
47
|
export interface IAddOn4unitPriceOffer extends Pick<IAddOn, 'typeOf' | 'priceCurrency'> {
|
|
49
48
|
itemOffered: IAddOnItemOffered;
|
|
@@ -54,6 +53,17 @@ export interface ISettings {
|
|
|
54
53
|
export interface IAdvanceBookingRequirement extends Pick<IQuantitativeValue<UnitCode.Sec>, 'typeOf' | 'minValue' | 'unitCode' | 'description'> {
|
|
55
54
|
}
|
|
56
55
|
export declare type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfStock;
|
|
56
|
+
export declare type ISubOfferPriceSpecification = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'price' | 'typeOf'>;
|
|
57
|
+
export interface ISubOffer extends Pick<IOffer, 'typeOf' | 'identifier' | 'name'> {
|
|
58
|
+
/**
|
|
59
|
+
* コード
|
|
60
|
+
*/
|
|
61
|
+
identifier: string;
|
|
62
|
+
/**
|
|
63
|
+
* 単価仕様
|
|
64
|
+
*/
|
|
65
|
+
priceSpecification: ISubOfferPriceSpecification;
|
|
66
|
+
}
|
|
57
67
|
/**
|
|
58
68
|
* 単価オファー
|
|
59
69
|
*/
|
|
@@ -69,6 +79,12 @@ export interface IUnitPriceOffer extends Pick<IOffer, 'project' | 'typeOf' | 'pr
|
|
|
69
79
|
*/
|
|
70
80
|
identifier: string;
|
|
71
81
|
name: IName;
|
|
82
|
+
/**
|
|
83
|
+
* サブオファー
|
|
84
|
+
* 基本的に1つの基本オファーが含まれる
|
|
85
|
+
* 条件によるバリエーションが存在する場合、2つ以上のオファーが含まれる
|
|
86
|
+
*/
|
|
87
|
+
offers: ISubOffer[];
|
|
72
88
|
/**
|
|
73
89
|
* 単価仕様
|
|
74
90
|
*/
|