@chevre/factory 4.379.0 → 4.381.0-alpha.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/action/authorize/paymentMethod/any.d.ts +16 -7
- package/lib/assetTransaction/registerService.d.ts +1 -0
- package/lib/order.d.ts +1 -0
- package/lib/ownershipInfo.d.ts +1 -0
- package/lib/permit.d.ts +1 -1
- package/lib/reservation.d.ts +1 -1
- package/lib/transaction/returnOrder.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import { AssetTransactionType } from '../../../assetTransactionType';
|
|
|
7
7
|
import { IOrderPaymentMethodIssuedThrough, ITotalPaymentDue } from '../../../order';
|
|
8
8
|
import { PaymentStatusType } from '../../../paymentStatusType';
|
|
9
9
|
import { IPropertyValue } from '../../../propertyValue';
|
|
10
|
+
import { IPermitAsServiceOutput } from '../../../service/paymentService';
|
|
10
11
|
import { TransactionType } from '../../../transactionType';
|
|
11
12
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
12
13
|
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
@@ -49,7 +50,7 @@ export interface IObjectIncludingPaymentMethodDetails {
|
|
|
49
50
|
*/
|
|
50
51
|
paymentMethod: AvailablePaymentMethodType;
|
|
51
52
|
/**
|
|
52
|
-
*
|
|
53
|
+
* 決済方法ID
|
|
53
54
|
*/
|
|
54
55
|
paymentMethodId: string;
|
|
55
56
|
typeOf: ResultType;
|
|
@@ -75,8 +76,13 @@ export interface IObjectIncludingPaymentMethodDetails {
|
|
|
75
76
|
* (MovieTicket決済)
|
|
76
77
|
*/
|
|
77
78
|
movieTickets?: IMovieTicket[];
|
|
79
|
+
/**
|
|
80
|
+
* メンバーシップチケット指定の場合
|
|
81
|
+
* 2024-08-13~
|
|
82
|
+
*/
|
|
83
|
+
ticketToken?: string;
|
|
78
84
|
}
|
|
79
|
-
export type IObjectWithoutDetail = Pick<IObjectIncludingPaymentMethodDetails, 'additionalProperty' | 'amount' | 'issuedThrough' | 'paymentMethod' | 'description' | 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation'> & {
|
|
85
|
+
export type IObjectWithoutDetail = Pick<IObjectIncludingPaymentMethodDetails, 'additionalProperty' | 'amount' | 'issuedThrough' | 'paymentMethod' | 'description' | 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation' | 'ticketToken'> & {
|
|
80
86
|
/**
|
|
81
87
|
* 外部決済URL発行の場合に指定
|
|
82
88
|
* CreditCardのみ対応
|
|
@@ -108,7 +114,7 @@ export interface IResultAsInvoice {
|
|
|
108
114
|
*/
|
|
109
115
|
paymentMethodAsObject: IResultPaymentMethod;
|
|
110
116
|
/**
|
|
111
|
-
*
|
|
117
|
+
* 決済方法ID
|
|
112
118
|
*/
|
|
113
119
|
paymentMethodId: string;
|
|
114
120
|
/**
|
|
@@ -131,7 +137,13 @@ export interface IResultAsInvoice {
|
|
|
131
137
|
typeOf: ResultType;
|
|
132
138
|
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
133
139
|
}
|
|
134
|
-
export type
|
|
140
|
+
export type IResultAsPermit = Pick<IPermitAsServiceOutput, 'typeOf' | 'issuedThrough'> & {
|
|
141
|
+
/**
|
|
142
|
+
* メンバーシップコード
|
|
143
|
+
*/
|
|
144
|
+
identifier: string;
|
|
145
|
+
};
|
|
146
|
+
export type IResult = [IResultAsInvoice, IResultAsPermit?];
|
|
135
147
|
export interface IPurpose {
|
|
136
148
|
typeOf: TransactionType.PlaceOrder;
|
|
137
149
|
id: string;
|
|
@@ -150,9 +162,6 @@ export interface IInstrumentAsAssetTransaction {
|
|
|
150
162
|
identifier: ServiceIdentifier;
|
|
151
163
|
}
|
|
152
164
|
export type IInstrument = IInstrumentAsAssetTransaction | IInstrumentAsService;
|
|
153
|
-
/**
|
|
154
|
-
* 決済承認アクション属性
|
|
155
|
-
*/
|
|
156
165
|
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
157
166
|
typeOf: ActionType.AuthorizeAction;
|
|
158
167
|
object: IObject;
|
package/lib/order.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ export type IEventReservation = Pick<EventReservationFactory.IReservation, 'addi
|
|
|
111
111
|
};
|
|
112
112
|
export type IReservation = IBusReservation | IEventReservation;
|
|
113
113
|
export type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | 'name' | 'typeOf' | 'validFor'> & {
|
|
114
|
+
identifier: string;
|
|
114
115
|
issuedThrough?: IIssuedThroughAsProduct;
|
|
115
116
|
};
|
|
116
117
|
export interface IMoneyTransferPendingTransaction {
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export type IReservation = IBusReservationAsGood | IEventReservationAsGood;
|
|
|
53
53
|
export type IReservationWithDetail = (IEventReservationAsGood & IEventReservation) | (IBusReservationAsGood & IBusReservation);
|
|
54
54
|
export type IPermitIssuedThrough = Pick<PermitFactory.IIssuedThrough, 'id' | 'typeOf' | 'serviceType'>;
|
|
55
55
|
export type IPermitAsGood = Pick<PermitFactory.IPermit, 'identifier' | 'typeOf' | 'name' | 'validFor'> & {
|
|
56
|
+
identifier: string;
|
|
56
57
|
issuedThrough?: IPermitIssuedThrough;
|
|
57
58
|
};
|
|
58
59
|
/**
|
package/lib/permit.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare enum PermitType {
|
|
|
9
9
|
Permit = "Permit"
|
|
10
10
|
}
|
|
11
11
|
export type IIssuedThroughAsPaymentService = Pick<IProduct, 'id' | 'serviceType'> & {
|
|
12
|
-
typeOf: PaymentServiceType.CreditCard;
|
|
12
|
+
typeOf: PaymentServiceType.CreditCard | PaymentServiceType.FaceToFace;
|
|
13
13
|
};
|
|
14
14
|
export type IIssuedThroughAsProduct = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
|
|
15
15
|
export type IIssuedThrough = IIssuedThroughAsPaymentService | IIssuedThroughAsProduct;
|
package/lib/reservation.d.ts
CHANGED