@chevre/factory 9.5.0-alpha.2 → 9.5.0-alpha.3
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.
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { IParticipantAsSeller, IParticipantAsWebApplication, IParticipantAsPerson } from '../../../action';
|
|
2
|
-
import { IPermitIssuedThroughFaceToFace, IPermitIssuedThroughMembershipService } from '../../../assetTransaction/reserve';
|
|
3
2
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
|
-
import { OfferType } from '../../../offerType';
|
|
5
|
-
import { PriceCurrency } from '../../../priceCurrency';
|
|
6
|
-
import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
|
|
7
|
-
import { ITicketOffer } from '../../../product';
|
|
8
3
|
import { TransactionType } from '../../../transactionType';
|
|
9
4
|
export type IAgent = IParticipantAsSeller;
|
|
10
5
|
export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson;
|
|
@@ -33,39 +28,3 @@ export interface IPurpose {
|
|
|
33
28
|
id: string;
|
|
34
29
|
}
|
|
35
30
|
export type IError = any;
|
|
36
|
-
export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
|
|
37
|
-
typeOf: OfferType.Offer;
|
|
38
|
-
id: string;
|
|
39
|
-
includesObject: {
|
|
40
|
-
amountOfThisGood: number;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* 取引確定時の検証に必要な情報のみ保管する
|
|
44
|
-
*/
|
|
45
|
-
priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity'>;
|
|
46
|
-
}
|
|
47
|
-
export type IAggregateProgramMembershipUsed = (IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService)[];
|
|
48
|
-
/**
|
|
49
|
-
* オファー承認結果としての集計オファー
|
|
50
|
-
*/
|
|
51
|
-
export interface IResultAsAggregateOffer {
|
|
52
|
-
typeOf: OfferType.AggregateOffer;
|
|
53
|
-
/**
|
|
54
|
-
* オファーIDごとの集計
|
|
55
|
-
*/
|
|
56
|
-
offers?: IAcceptedOfferInResult[];
|
|
57
|
-
itemOffered?: {
|
|
58
|
-
serviceOutput: {
|
|
59
|
-
/**
|
|
60
|
-
* programMembershipUsed required(2024-08-15~)
|
|
61
|
-
*/
|
|
62
|
-
programMembershipUsed: IAggregateProgramMembershipUsed;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* 決済金額
|
|
67
|
-
* オファー未指定の場合、金額非確定なので、この属性は存在しない
|
|
68
|
-
*/
|
|
69
|
-
price?: number;
|
|
70
|
-
priceCurrency: PriceCurrency;
|
|
71
|
-
}
|
|
@@ -1,20 +1,50 @@
|
|
|
1
1
|
import type { COAFactory } from '@coasystems/factory';
|
|
2
2
|
import { IAction as IBaseAction } from '../../../action';
|
|
3
3
|
import { ActionType } from '../../../actionType';
|
|
4
|
-
import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail } from '../../../assetTransaction/reserve';
|
|
4
|
+
import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail, IPermitIssuedThroughFaceToFace, IPermitIssuedThroughMembershipService } from '../../../assetTransaction/reserve';
|
|
5
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
6
|
import { IEvent } from '../../../event/screeningEvent';
|
|
7
|
-
import {
|
|
7
|
+
import { OfferType } from '../../../offerType';
|
|
8
|
+
import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
|
|
9
|
+
import { ITicketOffer } from '../../../product';
|
|
8
10
|
import { IAttributes as IBaseAttributes } from '../../authorize';
|
|
9
|
-
import {
|
|
10
|
-
export {
|
|
11
|
+
import { IAgent, IError, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IPurpose, IRecipient, ObjectType } from './any';
|
|
12
|
+
export { IAgent, IRecipient, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IError, IPurpose, ObjectType, };
|
|
11
13
|
export type IInstrumentAsAssetTransaction = IInstrumentAsCOAReserveTransaction | IInstrumentAsReserveTransaction;
|
|
12
|
-
export interface
|
|
14
|
+
export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
|
|
15
|
+
typeOf: OfferType.Offer;
|
|
16
|
+
id: string;
|
|
17
|
+
includesObject: {
|
|
18
|
+
amountOfThisGood: number;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 取引確定時の検証に必要な情報のみ保管する
|
|
22
|
+
*/
|
|
23
|
+
priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity'>;
|
|
24
|
+
}
|
|
25
|
+
export type IAggregateProgramMembershipUsed = (IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService)[];
|
|
26
|
+
/**
|
|
27
|
+
* オファー承認結果としての集計オファー
|
|
28
|
+
*/
|
|
29
|
+
export interface IResult {
|
|
30
|
+
typeOf: OfferType.AggregateOffer;
|
|
31
|
+
/**
|
|
32
|
+
* オファーIDごとの集計
|
|
33
|
+
*/
|
|
34
|
+
offers?: IAcceptedOfferInResult[];
|
|
35
|
+
itemOffered?: {
|
|
36
|
+
serviceOutput: {
|
|
37
|
+
/**
|
|
38
|
+
* programMembershipUsed required(2024-08-15~)
|
|
39
|
+
*/
|
|
40
|
+
programMembershipUsed: IAggregateProgramMembershipUsed;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
13
43
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
44
|
+
* 決済金額
|
|
45
|
+
* オファー未指定の場合、金額非確定なので、この属性は存在しない
|
|
16
46
|
*/
|
|
17
|
-
|
|
47
|
+
price?: number;
|
|
18
48
|
}
|
|
19
49
|
export type IAcceptedOfferWithoutDetail = IAcceptedTicketOfferWithoutDetail;
|
|
20
50
|
export { IObjectWithoutDetail };
|