@chevre/factory 4.336.0 → 4.338.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/README.md +0 -5
- package/lib/account/action/moneyTransfer.d.ts +5 -5
- package/lib/account/transaction/deposit.d.ts +3 -3
- package/lib/account/transaction/transfer.d.ts +3 -3
- package/lib/account/transaction/withdraw.d.ts +3 -3
- package/lib/account/transaction.d.ts +2 -2
- package/lib/action/authorize/award/point.d.ts +4 -4
- package/lib/action/authorize/offer/moneyTransfer.d.ts +8 -8
- package/lib/action/authorize/offer/product.d.ts +11 -11
- package/lib/action/authorize/offer/seatReservation/coa.d.ts +1 -1
- package/lib/action/authorize/offer/seatReservation.d.ts +22 -22
- package/lib/action/authorize/paymentMethod/any.d.ts +6 -6
- package/lib/action/authorize.d.ts +4 -4
- package/lib/action/cancel/reservation.d.ts +4 -4
- package/lib/action/check/paymentMethod/movieTicket.d.ts +7 -7
- package/lib/action/check/token.d.ts +4 -4
- package/lib/action/check.d.ts +3 -3
- package/lib/action/consume/use/reservation.d.ts +5 -5
- package/lib/action/consume/use.d.ts +4 -4
- package/lib/action/interact/confirm/moneyTransfer.d.ts +3 -3
- package/lib/action/interact/confirm/pay.d.ts +4 -4
- package/lib/action/interact/confirm/registerService.d.ts +4 -4
- package/lib/action/interact/confirm/reservation.d.ts +7 -7
- package/lib/action/interact/confirm.d.ts +6 -6
- package/lib/action/interact/inform.d.ts +6 -6
- package/lib/action/interact/register/service.d.ts +4 -4
- package/lib/action/interact/register.d.ts +5 -5
- package/lib/action/reserve.d.ts +5 -5
- package/lib/action/trade/order.d.ts +5 -5
- package/lib/action/trade/pay.d.ts +7 -7
- package/lib/action/trade/refund.d.ts +8 -8
- package/lib/action/transfer/give/pointAward.d.ts +5 -5
- package/lib/action/transfer/give.d.ts +6 -6
- package/lib/action/transfer/moneyTransfer.d.ts +9 -9
- package/lib/action/transfer/return/moneyTransfer.d.ts +5 -5
- package/lib/action/transfer/return/order.d.ts +5 -5
- package/lib/action/transfer/return/paymentMethod.d.ts +6 -6
- package/lib/action/transfer/return/pointAward.d.ts +6 -6
- package/lib/action/transfer/return/reserveTransaction.d.ts +8 -8
- package/lib/action/transfer/return.d.ts +3 -3
- package/lib/action/transfer/send/message/email.d.ts +6 -6
- package/lib/action/transfer/send/order.d.ts +5 -5
- package/lib/action/transfer/send.d.ts +7 -7
- package/lib/action/update/delete/member.d.ts +3 -3
- package/lib/action/update/delete.d.ts +5 -5
- package/lib/action.d.ts +7 -7
- package/lib/additionalProperty.d.ts +5 -4
- package/lib/assetTransaction/cancelReservation.d.ts +7 -7
- package/lib/assetTransaction/moneyTransfer.d.ts +10 -10
- package/lib/assetTransaction/pay.d.ts +7 -7
- package/lib/assetTransaction/refund.d.ts +7 -7
- package/lib/assetTransaction/registerService.d.ts +7 -7
- package/lib/assetTransaction/reserve.d.ts +16 -16
- package/lib/assetTransaction.d.ts +3 -3
- package/lib/authorization.d.ts +7 -7
- package/lib/autoGenerated.d.ts +1 -1
- package/lib/cognito.d.ts +2 -4
- package/lib/creativeWork/comment.d.ts +2 -2
- package/lib/creativeWork/movie.d.ts +1 -1
- package/lib/creativeWork.d.ts +1 -1
- package/lib/error/alreadyInUse.js +1 -1
- package/lib/error/argument.js +1 -1
- package/lib/error/argumentNull.js +1 -1
- package/lib/error/notFound.js +1 -1
- package/lib/event/anyEvent.d.ts +14 -14
- package/lib/event/screeningEvent.d.ts +12 -12
- package/lib/event/screeningEventSeries.d.ts +4 -4
- package/lib/event.d.ts +2 -2
- package/lib/iam.d.ts +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/invoice.d.ts +11 -11
- package/lib/merchantReturnPolicy.d.ts +4 -4
- package/lib/offer/aggregateOffer.d.ts +1 -1
- package/lib/offer.d.ts +6 -6
- package/lib/offerCatalog.d.ts +2 -2
- package/lib/offerItemCondition.d.ts +1 -1
- package/lib/order.d.ts +30 -35
- package/lib/orderExternal.d.ts +1 -1
- package/lib/organization.d.ts +2 -2
- package/lib/ownershipInfo.d.ts +9 -9
- package/lib/paymentMethod/paymentCard.d.ts +1 -1
- package/lib/permit.d.ts +9 -9
- package/lib/person.d.ts +3 -3
- package/lib/place/movieTheater.d.ts +5 -15
- package/lib/place/screeningRoom.d.ts +2 -2
- package/lib/place/seat.d.ts +8 -6
- package/lib/place.d.ts +2 -3
- package/lib/priceSpecification/categoryCodeChargeSpecification.d.ts +1 -1
- package/lib/priceSpecification/compoundPriceSpecification.d.ts +2 -2
- package/lib/priceSpecification/unitPriceSpecification.d.ts +3 -3
- package/lib/priceSpecification.d.ts +2 -2
- package/lib/product.d.ts +10 -10
- package/lib/quantitativeValue.d.ts +1 -1
- package/lib/report/accountingReport.d.ts +7 -7
- package/lib/reservation/busReservation.d.ts +3 -3
- package/lib/reservation/event.d.ts +4 -4
- package/lib/reservation/reservationPackage.d.ts +2 -2
- package/lib/reservation.d.ts +12 -12
- package/lib/seller.d.ts +4 -4
- package/lib/service/paymentService.d.ts +3 -3
- package/lib/task/accountMoneyTransfer.d.ts +1 -1
- package/lib/task/aggregateScreeningEvent.d.ts +1 -1
- package/lib/task/aggregateUseActionsOnEvent.d.ts +1 -1
- package/lib/task/cancelAccountMoneyTransfer.d.ts +1 -1
- package/lib/task/cancelMoneyTransfer.d.ts +1 -1
- package/lib/task/cancelPendingReservation.d.ts +1 -1
- package/lib/task/cancelReservation.d.ts +1 -1
- package/lib/task/confirmMoneyTransfer.d.ts +2 -2
- package/lib/task/confirmPayTransaction.d.ts +2 -2
- package/lib/task/confirmRegisterService.d.ts +2 -2
- package/lib/task/confirmRegisterServiceTransaction.d.ts +2 -2
- package/lib/task/confirmReserveTransaction.d.ts +2 -2
- package/lib/task/createEvent.d.ts +3 -3
- package/lib/task/deleteTransaction.d.ts +5 -5
- package/lib/task/givePointAward.d.ts +2 -2
- package/lib/task/importEventCapacitiesFromCOA.d.ts +1 -1
- package/lib/task/importEventsFromCOA.d.ts +1 -1
- package/lib/task/importOffersFromCOA.d.ts +1 -1
- package/lib/task/moneyTransfer.d.ts +2 -2
- package/lib/task/onAssetTransactionStatusChanged.d.ts +1 -1
- package/lib/task/onAuthorizationCreated.d.ts +1 -1
- package/lib/task/onEventChanged.d.ts +1 -1
- package/lib/task/onOrderPaymentCompleted.d.ts +1 -1
- package/lib/task/onResourceUpdated.d.ts +6 -6
- package/lib/task/pay.d.ts +2 -2
- package/lib/task/placeOrder.d.ts +1 -1
- package/lib/task/refund.d.ts +2 -2
- package/lib/task/registerService.d.ts +2 -2
- package/lib/task/reserve.d.ts +1 -1
- package/lib/task/returnMoneyTransfer.d.ts +2 -2
- package/lib/task/returnOrder.d.ts +2 -2
- package/lib/task/returnPayTransaction.d.ts +2 -2
- package/lib/task/returnPointAward.d.ts +2 -2
- package/lib/task/returnReserveTransaction.d.ts +2 -2
- package/lib/task/sendEmailMessage.d.ts +1 -1
- package/lib/task/sendOrder.d.ts +2 -2
- package/lib/task/syncScreeningRooms.d.ts +1 -1
- package/lib/task/triggerWebhook.d.ts +2 -2
- package/lib/task/useReservation.d.ts +3 -3
- package/lib/task/voidMoneyTransferTransaction.d.ts +1 -1
- package/lib/task/voidPayTransaction.d.ts +2 -2
- package/lib/task/voidPayment.d.ts +2 -2
- package/lib/task/voidRegisterServiceTransaction.d.ts +1 -1
- package/lib/task/voidReserveTransaction.d.ts +2 -2
- package/lib/task.d.ts +3 -3
- package/lib/thing.d.ts +1 -1
- package/lib/transaction/moneyTransfer.d.ts +7 -7
- package/lib/transaction/placeOrder.d.ts +7 -7
- package/lib/transaction/returnOrder.d.ts +8 -8
- package/lib/transaction.d.ts +3 -3
- package/lib/trip/busTrip.d.ts +3 -3
- package/lib/unitPriceOffer/merchantReturnPolicy.d.ts +1 -1
- package/lib/unitPriceOffer.d.ts +4 -4
- package/package.json +9 -14
package/README.md
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
## Table of contents
|
|
11
11
|
|
|
12
12
|
* [Usage](#usage)
|
|
13
|
-
* [License](#license)
|
|
14
13
|
|
|
15
14
|
## Usage
|
|
16
15
|
|
|
@@ -22,7 +21,3 @@ npm install @chevre/factory
|
|
|
22
21
|
|
|
23
22
|
| Name | Required | Value | Purpose |
|
|
24
23
|
| ---- | -------- | ----- | ------- |
|
|
25
|
-
|
|
26
|
-
## License
|
|
27
|
-
|
|
28
|
-
ISC
|
|
@@ -3,8 +3,8 @@ import * as ActionFactory from '../../action';
|
|
|
3
3
|
import { ActionType } from '../../actionType';
|
|
4
4
|
import { IMonetaryAmount } from '../../monetaryAmount';
|
|
5
5
|
import { AccountTransactionType } from '../transactionType';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type IAgent = Pick<ActionFactory.IParticipant, 'name' | 'typeOf'>;
|
|
7
|
+
export type IRecipient = Pick<ActionFactory.IParticipant, 'name' | 'typeOf'>;
|
|
8
8
|
/**
|
|
9
9
|
* 口座以外の匿名ロケーション
|
|
10
10
|
*/
|
|
@@ -36,7 +36,7 @@ export interface IAccount {
|
|
|
36
36
|
/**
|
|
37
37
|
* 転送元あるいは転送先
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type ILocation = IAnonymousLocation | IAccount;
|
|
40
40
|
/**
|
|
41
41
|
* アクションの目的
|
|
42
42
|
* ここでは、取引が目的となる
|
|
@@ -55,7 +55,7 @@ export interface IPurpose {
|
|
|
55
55
|
*/
|
|
56
56
|
transactionNumber: string;
|
|
57
57
|
}
|
|
58
|
-
export
|
|
58
|
+
export type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'value'>;
|
|
59
59
|
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.MoneyTransfer, never, never>, 'project' | 'description'> {
|
|
60
60
|
agent: IAgent;
|
|
61
61
|
recipient?: IRecipient;
|
|
@@ -77,7 +77,7 @@ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.M
|
|
|
77
77
|
*/
|
|
78
78
|
toLocation: ILocation;
|
|
79
79
|
}
|
|
80
|
-
export
|
|
80
|
+
export type IAction = Pick<ActionFactory.IAction<Omit<IAttributes, 'agent' | 'recipient'> & {
|
|
81
81
|
agent: ActionFactory.IParticipant;
|
|
82
82
|
object: never;
|
|
83
83
|
}>, 'actionStatus' | 'amount' | 'description' | 'endDate' | 'fromLocation' | 'project' | 'purpose' | 'startDate' | 'toLocation' | 'typeOf' | 'id'> & {
|
|
@@ -2,11 +2,11 @@ import { IExtendId } from '../../autoGenerated';
|
|
|
2
2
|
import { IAccount } from '../action/moneyTransfer';
|
|
3
3
|
import * as TransactionFactory from '../transaction';
|
|
4
4
|
import { AccountTransactionType } from '../transactionType';
|
|
5
|
-
export
|
|
5
|
+
export type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AccountTransactionType.Deposit, IObjectWithoutDetail>;
|
|
6
6
|
/**
|
|
7
7
|
* 取引開始パラメーター
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type IStartParams = TransactionFactory.IStartParams<AccountTransactionType.Deposit, IObject>;
|
|
10
10
|
export interface IObjectWithoutDetail extends TransactionFactory.IObjectWithoutDetail {
|
|
11
11
|
toLocation: TransactionFactory.ISimpleAccount;
|
|
12
12
|
}
|
|
@@ -24,4 +24,4 @@ export interface IObject extends TransactionFactory.IObject {
|
|
|
24
24
|
*/
|
|
25
25
|
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams> {
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type ITransaction = IExtendId<IAttributes>;
|
|
@@ -2,11 +2,11 @@ import { IExtendId } from '../../autoGenerated';
|
|
|
2
2
|
import { IAccount } from '../action/moneyTransfer';
|
|
3
3
|
import * as TransactionFactory from '../transaction';
|
|
4
4
|
import { AccountTransactionType } from '../transactionType';
|
|
5
|
-
export
|
|
5
|
+
export type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AccountTransactionType.Transfer, IObjectWithoutDetail>;
|
|
6
6
|
/**
|
|
7
7
|
* 取引開始パラメーター
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type IStartParams = TransactionFactory.IStartParams<AccountTransactionType.Transfer, IObject>;
|
|
10
10
|
export interface IObjectWithoutDetail extends TransactionFactory.IObjectWithoutDetail {
|
|
11
11
|
fromLocation: TransactionFactory.ISimpleAccount;
|
|
12
12
|
toLocation: TransactionFactory.ISimpleAccount;
|
|
@@ -29,4 +29,4 @@ export interface IObject extends TransactionFactory.IObject {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams> {
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export type ITransaction = IExtendId<IAttributes>;
|
|
@@ -2,11 +2,11 @@ import { IExtendId } from '../../autoGenerated';
|
|
|
2
2
|
import { IAccount } from '../action/moneyTransfer';
|
|
3
3
|
import * as TransactionFactory from '../transaction';
|
|
4
4
|
import { AccountTransactionType } from '../transactionType';
|
|
5
|
-
export
|
|
5
|
+
export type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AccountTransactionType.Withdraw, IObjectWithoutDetail>;
|
|
6
6
|
/**
|
|
7
7
|
* 取引開始パラメーター
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type IStartParams = TransactionFactory.IStartParams<AccountTransactionType.Withdraw, IObject>;
|
|
10
10
|
export interface IObjectWithoutDetail extends TransactionFactory.IObjectWithoutDetail {
|
|
11
11
|
fromLocation: TransactionFactory.ISimpleAccount;
|
|
12
12
|
/**
|
|
@@ -28,4 +28,4 @@ export interface IObject extends TransactionFactory.IObject {
|
|
|
28
28
|
*/
|
|
29
29
|
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams> {
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type ITransaction = IExtendId<IAttributes>;
|
|
@@ -71,7 +71,7 @@ export interface IPotentialActions {
|
|
|
71
71
|
/**
|
|
72
72
|
* 口座取引属性
|
|
73
73
|
*/
|
|
74
|
-
export
|
|
74
|
+
export type IAttributes<TStartParams> = TStartParams & {
|
|
75
75
|
/**
|
|
76
76
|
* 取引状態
|
|
77
77
|
*/
|
|
@@ -92,7 +92,7 @@ export declare type IAttributes<TStartParams> = TStartParams & {
|
|
|
92
92
|
/**
|
|
93
93
|
* 口座取引
|
|
94
94
|
*/
|
|
95
|
-
export
|
|
95
|
+
export type ITransaction<TStartParams> = IExtendId<IAttributes<TStartParams>>;
|
|
96
96
|
export interface ISortOrder {
|
|
97
97
|
startDate?: SortType;
|
|
98
98
|
}
|
|
@@ -2,8 +2,8 @@ import * as ActionFactory from '../../../action';
|
|
|
2
2
|
import { ActionType } from '../../../actionType';
|
|
3
3
|
import { TransactionType } from '../../../transactionType';
|
|
4
4
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
6
|
+
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
7
7
|
export declare enum ObjectType {
|
|
8
8
|
PointAward = "PointAward"
|
|
9
9
|
}
|
|
@@ -33,7 +33,7 @@ export interface IPurpose {
|
|
|
33
33
|
typeOf: TransactionType;
|
|
34
34
|
id: string;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type IError = any;
|
|
37
37
|
/**
|
|
38
38
|
* ポイントインセンティブ承認アクション属性
|
|
39
39
|
*/
|
|
@@ -48,4 +48,4 @@ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject,
|
|
|
48
48
|
* ポイントインセンティブ承認アクション
|
|
49
49
|
* 注文取引のインセンティブとしてポイントを付与する場合に使用されます。
|
|
50
50
|
*/
|
|
51
|
-
export
|
|
51
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -6,10 +6,10 @@ import * as OrderFactory from '../../../order';
|
|
|
6
6
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
7
7
|
import { TransactionType } from '../../../transactionType';
|
|
8
8
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
9
|
+
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsSeller;
|
|
10
|
+
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
11
|
+
export type IRequestBody = any;
|
|
12
|
+
export type IResponseBody = MoneyTransferTransactionFactory.ITransaction;
|
|
13
13
|
export import IPendingTransaction = OrderFactory.IMoneyTransferPendingTransaction;
|
|
14
14
|
export interface IResult {
|
|
15
15
|
price: number;
|
|
@@ -22,13 +22,13 @@ export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' |
|
|
|
22
22
|
itemOffered: IItemOffered;
|
|
23
23
|
seller: ActionFactory.IParticipantAsSeller;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type IObject = IAcceptedOffer;
|
|
26
26
|
export interface ITransactionPurpose {
|
|
27
27
|
typeOf: TransactionType;
|
|
28
28
|
id: string;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
31
|
-
export
|
|
30
|
+
export type IPurpose = ITransactionPurpose;
|
|
31
|
+
export type IError = any;
|
|
32
32
|
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
33
33
|
typeOf: ActionType.AuthorizeAction;
|
|
34
34
|
agent: IAgent;
|
|
@@ -36,4 +36,4 @@ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject,
|
|
|
36
36
|
object: IObject;
|
|
37
37
|
purpose: IPurpose;
|
|
38
38
|
}
|
|
39
|
-
export
|
|
39
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -11,17 +11,17 @@ import { ISeller } from '../../../seller';
|
|
|
11
11
|
import { TransactionType } from '../../../transactionType';
|
|
12
12
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
13
13
|
import { IPointAward } from '../../transfer/moneyTransfer';
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
14
|
+
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
15
|
+
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
16
|
+
export type IPermitIssuedByProduct = Omit<IPermit, 'issuedThrough'> & {
|
|
17
17
|
issuedThrough?: IIssuedThroughAsProduct;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type IItemOffered = Pick<IProduct, 'typeOf' | 'id' | 'name'> & {
|
|
20
20
|
serviceOutput: IProductServiceOutput & IPermitIssuedByProduct;
|
|
21
21
|
pointAward?: IPointAward;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
export
|
|
23
|
+
export type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
|
|
24
|
+
export type ISellerMakesOffer = Pick<ISeller, 'id' | 'name' | 'typeOf'>;
|
|
25
25
|
export interface IAcceptedOffer extends Pick<IOffer, 'typeOf' | 'id' | 'identifier' | 'itemOffered' | 'name' | 'priceCurrency' | 'seller'> {
|
|
26
26
|
/**
|
|
27
27
|
* オファーコード
|
|
@@ -37,9 +37,9 @@ export interface IAcceptedOffer extends Pick<IOffer, 'typeOf' | 'id' | 'identifi
|
|
|
37
37
|
seller: ISellerMakesOffer;
|
|
38
38
|
priceSpecification?: ITicketPriceSpecification;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
40
|
+
export type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
|
|
41
|
+
export type IObject = IAcceptedOffer[];
|
|
42
|
+
export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IPermit>[];
|
|
43
43
|
export interface IResult {
|
|
44
44
|
price: number;
|
|
45
45
|
priceCurrency: PriceCurrency;
|
|
@@ -51,7 +51,7 @@ export interface IPurpose {
|
|
|
51
51
|
typeOf: TransactionType.PlaceOrder;
|
|
52
52
|
id: string;
|
|
53
53
|
}
|
|
54
|
-
export
|
|
54
|
+
export type IError = any;
|
|
55
55
|
export interface IInstrument {
|
|
56
56
|
typeOf: AssetTransactionType.RegisterService;
|
|
57
57
|
transactionNumber: string;
|
|
@@ -67,4 +67,4 @@ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject,
|
|
|
67
67
|
/**
|
|
68
68
|
* プロダクトオファー承認アクション
|
|
69
69
|
*/
|
|
70
|
-
export
|
|
70
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -67,7 +67,7 @@ export interface ICOATicketInfo {
|
|
|
67
67
|
/**
|
|
68
68
|
* COA券種情報
|
|
69
69
|
*/
|
|
70
|
-
export
|
|
70
|
+
export type ICOATicketInfoWithDetails = COA.factory.reserve.IUpdReserveTicket & {
|
|
71
71
|
/**
|
|
72
72
|
* チケット名
|
|
73
73
|
*/
|
|
@@ -12,15 +12,15 @@ import * as WebAPIFactory from '../../../service/webAPI';
|
|
|
12
12
|
import { TransactionType } from '../../../transactionType';
|
|
13
13
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
14
14
|
import * as COAReservationOfferFactory from './seatReservation/coa';
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
16
|
+
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
17
17
|
export declare enum ObjectType {
|
|
18
18
|
SeatReservation = "SeatReservation"
|
|
19
19
|
}
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
20
|
+
export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
|
|
21
|
+
export type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
|
|
22
|
+
export type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
|
|
23
|
+
export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IReservation>;
|
|
24
24
|
/**
|
|
25
25
|
* 承認アクション結果
|
|
26
26
|
*/
|
|
@@ -51,7 +51,7 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
|
|
|
51
51
|
responseBody: IResponseBody<T>;
|
|
52
52
|
acceptedOffers?: IResultAcceptedOffer[];
|
|
53
53
|
}
|
|
54
|
-
export
|
|
54
|
+
export type IAcceptedOfferPriceSpecification = ITicketPriceSpecification & {
|
|
55
55
|
/**
|
|
56
56
|
* 複合価格仕様に、指定された適用決済カード情報を付加できるように
|
|
57
57
|
*/
|
|
@@ -60,19 +60,19 @@ export declare type IAcceptedOfferPriceSpecification = ITicketPriceSpecification
|
|
|
60
60
|
/**
|
|
61
61
|
* 受け入れられたチケットオファー
|
|
62
62
|
*/
|
|
63
|
-
export
|
|
63
|
+
export type IAcceptedOffer4chevre = Pick<ITicketOffer, 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty'> & {
|
|
64
64
|
addOn?: ReserveTransactionFactory.IAcceptedAddOn[];
|
|
65
65
|
itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
66
66
|
priceSpecification: IAcceptedOfferPriceSpecification;
|
|
67
67
|
};
|
|
68
|
-
export
|
|
69
|
-
export
|
|
68
|
+
export type IAcceptedOfferWithoutDetail4chevre = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail;
|
|
69
|
+
export type IObjectWithoutDetail4chevre = ReserveTransactionFactory.IObjectWithoutDetail;
|
|
70
70
|
export import ICOATicketInfo = COAReservationOfferFactory.ICOATicketInfo;
|
|
71
71
|
export import ICOATicketInfoWithDetails = COAReservationOfferFactory.ICOATicketInfoWithDetails;
|
|
72
72
|
/**
|
|
73
73
|
* 受入COA興行オファー
|
|
74
74
|
*/
|
|
75
|
-
export
|
|
75
|
+
export type IAcceptedOffer4COA = Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'itemOffered' | 'additionalProperty'> & Pick<OfferFactory.IOffer, 'typeOf' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'additionalProperty' | 'eligibleMonetaryAmount'> & {
|
|
76
76
|
itemOffered: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
77
77
|
ticketInfo: ICOATicketInfoWithDetails;
|
|
78
78
|
/**
|
|
@@ -96,12 +96,12 @@ export interface IAppliesToSurfrock {
|
|
|
96
96
|
export interface IPriceSpecification4COA {
|
|
97
97
|
appliesToSurfrock?: IAppliesToSurfrock;
|
|
98
98
|
}
|
|
99
|
-
export
|
|
99
|
+
export type IAcceptedOfferBeforeAuthorize4COA = Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'itemOffered' | 'additionalProperty'> & Pick<OfferFactory.IOffer, 'name' | 'additionalProperty'> & {
|
|
100
100
|
itemOffered: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
101
101
|
ticketInfo: Omit<ICOATicketInfoWithDetails, 'salePrice' | 'usePoint'>;
|
|
102
102
|
priceSpecification: IPriceSpecification4COA;
|
|
103
103
|
};
|
|
104
|
-
export
|
|
104
|
+
export type IAcceptedOfferWithoutDetail4COA = COAReservationOfferFactory.IOffer & {
|
|
105
105
|
priceSpecification?: IPriceSpecification4COA;
|
|
106
106
|
};
|
|
107
107
|
export interface IObjectWithoutDetail4COA {
|
|
@@ -110,10 +110,10 @@ export interface IObjectWithoutDetail4COA {
|
|
|
110
110
|
id: string;
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
export
|
|
114
|
-
export
|
|
115
|
-
export
|
|
116
|
-
export
|
|
113
|
+
export type IAcceptedOffer<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOffer4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOffer4chevre : never;
|
|
114
|
+
export type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOfferWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOfferWithoutDetail4chevre : never;
|
|
115
|
+
export type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : never;
|
|
116
|
+
export type ICOAPendingTransaction = Pick<COA.factory.reserve.IDelTmpReserveArgs, 'theaterCode' | 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'tmpReserveNum'> & {
|
|
117
117
|
transactionNumber: string;
|
|
118
118
|
typeOf: 'COAReserveTransaction';
|
|
119
119
|
};
|
|
@@ -121,8 +121,8 @@ export interface IChevrePendingTransaction {
|
|
|
121
121
|
transactionNumber: string;
|
|
122
122
|
typeOf: AssetTransactionType.Reserve;
|
|
123
123
|
}
|
|
124
|
-
export
|
|
125
|
-
export
|
|
124
|
+
export type IPendingTransaction<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? ICOAPendingTransaction : T extends WebAPIFactory.Identifier.Chevre ? IChevrePendingTransaction : never;
|
|
125
|
+
export type IEvent = Pick<ScreeningEventFactory.IEvent, 'id' | 'typeOf'> & {
|
|
126
126
|
offers: {
|
|
127
127
|
offeredThrough: ScreeningEventFactory.IOfferedThrough;
|
|
128
128
|
};
|
|
@@ -130,7 +130,7 @@ export declare type IEvent = Pick<ScreeningEventFactory.IEvent, 'id' | 'typeOf'>
|
|
|
130
130
|
/**
|
|
131
131
|
* 承認アクション対象
|
|
132
132
|
*/
|
|
133
|
-
export
|
|
133
|
+
export type IObject<T extends WebAPIFactory.Identifier> = {
|
|
134
134
|
typeOf: ObjectType;
|
|
135
135
|
event?: IEvent;
|
|
136
136
|
acceptedOffer: IAcceptedOffer<T>[];
|
|
@@ -146,7 +146,7 @@ export interface IPurpose {
|
|
|
146
146
|
/**
|
|
147
147
|
* authorize action error interface
|
|
148
148
|
*/
|
|
149
|
-
export
|
|
149
|
+
export type IError = any;
|
|
150
150
|
export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject<T>, IResult<T>> {
|
|
151
151
|
typeOf: ActionType.AuthorizeAction;
|
|
152
152
|
agent: IAgent;
|
|
@@ -158,4 +158,4 @@ export interface IAttributes<T extends WebAPIFactory.Identifier> extends Authori
|
|
|
158
158
|
/**
|
|
159
159
|
* 興行オファー承認アクション
|
|
160
160
|
*/
|
|
161
|
-
export
|
|
161
|
+
export type IAction<T extends WebAPIFactory.Identifier> = ActionFactory.IAction<IAttributes<T>>;
|
|
@@ -10,8 +10,8 @@ import { PaymentStatusType } from '../../../paymentStatusType';
|
|
|
10
10
|
import { IPropertyValue } from '../../../propertyValue';
|
|
11
11
|
import { TransactionType } from '../../../transactionType';
|
|
12
12
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
13
|
-
export
|
|
14
|
-
export
|
|
13
|
+
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
14
|
+
export type IRecipient = ActionFactory.IParticipantAsSeller;
|
|
15
15
|
export declare enum ResultType {
|
|
16
16
|
Payment = "Payment"
|
|
17
17
|
}
|
|
@@ -32,7 +32,7 @@ export import IUncheckedCardTokenized = CreditCardFactory.IUncheckedCardTokenize
|
|
|
32
32
|
/**
|
|
33
33
|
* クレジットカード決済承認アクションに必要なクレジットカード情報
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export type ICreditCard = IUncheckedCardRaw | IUncheckedCardTokenized | IUnauthorizedCardOfMember;
|
|
36
36
|
/**
|
|
37
37
|
* 承認対象
|
|
38
38
|
*/
|
|
@@ -141,7 +141,7 @@ export interface IResultAsInvoice {
|
|
|
141
141
|
typeOf: ResultType;
|
|
142
142
|
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
143
143
|
}
|
|
144
|
-
export
|
|
144
|
+
export type IResult = IResultAsInvoice | IResultAsInvoice[];
|
|
145
145
|
export interface IPurpose {
|
|
146
146
|
typeOf: TransactionType;
|
|
147
147
|
id: string;
|
|
@@ -153,7 +153,7 @@ export interface IService {
|
|
|
153
153
|
typeOf: 'WebAPI';
|
|
154
154
|
identifier: ServiceIdentifier;
|
|
155
155
|
}
|
|
156
|
-
export
|
|
156
|
+
export type IInstrument = IService;
|
|
157
157
|
/**
|
|
158
158
|
* 決済承認アクション属性
|
|
159
159
|
*/
|
|
@@ -168,4 +168,4 @@ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject,
|
|
|
168
168
|
/**
|
|
169
169
|
* 決済承認アクション
|
|
170
170
|
*/
|
|
171
|
-
export
|
|
171
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -3,15 +3,15 @@ import { ActionType } from '../actionType';
|
|
|
3
3
|
/**
|
|
4
4
|
* 承認対象インターフェース
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type IObject = any;
|
|
7
7
|
/**
|
|
8
8
|
* 承認結果インターフェース
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type IResult = any;
|
|
11
11
|
/**
|
|
12
12
|
* 承認目的インターフェース
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type IPurpose = any;
|
|
15
15
|
/**
|
|
16
16
|
* アクション属性インターフェース
|
|
17
17
|
*/
|
|
@@ -22,4 +22,4 @@ export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes
|
|
|
22
22
|
/**
|
|
23
23
|
* 承認アクションインターフェース
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
25
|
+
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -6,7 +6,7 @@ import { ProductType } from '../../product';
|
|
|
6
6
|
import { IAvailableReservationStatusType } from '../../reservation';
|
|
7
7
|
import { ReservationType } from '../../reservationType';
|
|
8
8
|
import { TripType } from '../../tripType';
|
|
9
|
-
export
|
|
9
|
+
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
10
10
|
export interface IReservationPackageAsObject {
|
|
11
11
|
reservationFor: {
|
|
12
12
|
typeOf: EventType.ScreeningEvent | TripType.BusTrip;
|
|
@@ -54,11 +54,11 @@ export interface IEventReservationAsObject {
|
|
|
54
54
|
reservationStatus: IAvailableReservationStatusType;
|
|
55
55
|
typeOf: ReservationType.EventReservation;
|
|
56
56
|
}
|
|
57
|
-
export
|
|
57
|
+
export type IObject = IBusReservationAsObject | IEventReservationAsObject | IReservationPackageAsObject;
|
|
58
58
|
/**
|
|
59
59
|
* 予約取消結果
|
|
60
60
|
*/
|
|
61
|
-
export
|
|
61
|
+
export type IResult = any;
|
|
62
62
|
/**
|
|
63
63
|
* 予約取消目的
|
|
64
64
|
*/
|
|
@@ -82,4 +82,4 @@ export interface IAttributes extends ActionFactory.IAttributes<ActionType.Cancel
|
|
|
82
82
|
/**
|
|
83
83
|
* 予約取消アクション
|
|
84
84
|
*/
|
|
85
|
-
export
|
|
85
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -5,10 +5,10 @@ import { IMovieTicket as IMovieTicketPaymentCard, IServiceOutput as IMovieTicket
|
|
|
5
5
|
import { TransactionType } from '../../../transactionType';
|
|
6
6
|
import * as CheckActionFactory from '../../check';
|
|
7
7
|
import * as PayActionFactory from '../../trade/pay';
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
8
|
+
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
9
|
+
export type IPurchaseNumberAuthIn = surfrock.service.auth.factory.IPurchaseNumberAuthIn;
|
|
10
|
+
export type IPurchaseNumberAuthResult = surfrock.service.auth.factory.IPurchaseNumberAuthResult;
|
|
11
|
+
export type IMovieTicket = Omit<IMovieTicketPaymentCard, 'project' | 'serviceOutput'> & {
|
|
12
12
|
serviceOutput: Pick<IMovieTicketServiceOutput, 'reservationFor'>;
|
|
13
13
|
};
|
|
14
14
|
export interface IPaymentService extends Pick<PayActionFactory.IPaymentService, 'id' | 'typeOf' | 'paymentMethod'> {
|
|
@@ -21,12 +21,12 @@ export interface IPaymentService extends Pick<PayActionFactory.IPaymentService,
|
|
|
21
21
|
};
|
|
22
22
|
movieTickets?: IMovieTicket[];
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export type IObject = IPaymentService[];
|
|
25
25
|
export interface IResult {
|
|
26
26
|
purchaseNumberAuthIn: IPurchaseNumberAuthIn;
|
|
27
27
|
purchaseNumberAuthResult: IPurchaseNumberAuthResult;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type IError = any;
|
|
30
30
|
export interface IPurpose {
|
|
31
31
|
typeOf: TransactionType;
|
|
32
32
|
id: string;
|
|
@@ -39,4 +39,4 @@ export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IRe
|
|
|
39
39
|
/**
|
|
40
40
|
* MovieTicket認証アクション
|
|
41
41
|
*/
|
|
42
|
-
export
|
|
42
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -3,13 +3,13 @@ import * as CheckActionFactory from '../check';
|
|
|
3
3
|
export declare enum ObjectType {
|
|
4
4
|
Ticket = "Ticket"
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsProject;
|
|
7
7
|
export interface IObject {
|
|
8
8
|
token: string;
|
|
9
9
|
typeOf: ObjectType;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type IResult = any;
|
|
12
|
+
export type IError = any;
|
|
13
13
|
/**
|
|
14
14
|
* トークン検証アクション属性
|
|
15
15
|
*/
|
|
@@ -20,4 +20,4 @@ export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IRe
|
|
|
20
20
|
/**
|
|
21
21
|
* トークン検証アクション
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
package/lib/action/check.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as ActionFactory from '../action';
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type IObject = any;
|
|
4
|
+
export type IResult = any;
|
|
5
5
|
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.CheckAction, TObject, TResult> {
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* 確認アクション
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -3,9 +3,9 @@ import { PlaceType } from '../../../placeType';
|
|
|
3
3
|
import { IReservation } from '../../../reservation/event';
|
|
4
4
|
import { ObjectType } from '../../check/token';
|
|
5
5
|
import * as UseActionFactory from '../use';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
6
|
+
export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
|
|
7
|
+
export type IReservationAsObject = Pick<IReservation, 'id' | 'issuedThrough' | 'reservationFor' | 'reservationNumber' | 'reservedTicket' | 'typeOf'>;
|
|
8
|
+
export type IObject = IReservationAsObject[];
|
|
9
9
|
export interface IResult {
|
|
10
10
|
}
|
|
11
11
|
export interface ILocation {
|
|
@@ -15,7 +15,7 @@ export interface ILocation {
|
|
|
15
15
|
*/
|
|
16
16
|
identifier: string;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type IPotentialActions = any;
|
|
19
19
|
export interface IInstrument {
|
|
20
20
|
token?: string;
|
|
21
21
|
typeOf: ObjectType.Ticket;
|
|
@@ -29,4 +29,4 @@ export interface IAttributes extends UseActionFactory.IAttributes<IObject, IResu
|
|
|
29
29
|
/**
|
|
30
30
|
* 予約使用アクション
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export type IAction = UseActionFactory.IAction<IAttributes>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type IObject = any;
|
|
4
|
+
export type IResult = any;
|
|
5
|
+
export type IPurpose = any;
|
|
6
6
|
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.UseAction, TObject, TResult> {
|
|
7
7
|
purpose?: IPurpose;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* 使用アクション
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -15,16 +15,16 @@ export interface IObject {
|
|
|
15
15
|
transactionNumber: string;
|
|
16
16
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type IResult = any;
|
|
19
19
|
export interface ITransactionPurpose {
|
|
20
20
|
typeOf: TransactionType;
|
|
21
21
|
id: string;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type IPurpose = ITransactionPurpose | ISimpleOrder;
|
|
24
24
|
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
25
25
|
purpose: IPurpose;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* 通貨転送確定アクション
|
|
29
29
|
*/
|
|
30
|
-
export
|
|
30
|
+
export type IAction = ConfirmActionFactory.IAction<IAttributes>;
|