@chevre/factory 4.197.0-alpha.2 → 4.199.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/factory/action/authorize/paymentMethod/any.d.ts +19 -7
- package/lib/factory/errors.d.ts +12 -12
- package/lib/factory/errors.js +1 -1
- package/lib/factory/order.d.ts +4 -10
- package/lib/factory/paymentMethod/paymentCard/movieTicket.d.ts +22 -20
- package/lib/factory/task/placeOrder.d.ts +10 -2
- package/lib/factory/task/sendOrder.d.ts +7 -2
- package/package.json +1 -1
|
@@ -110,6 +110,24 @@ export interface IObject {
|
|
|
110
110
|
*/
|
|
111
111
|
movieTickets?: IMovieTicket[];
|
|
112
112
|
}
|
|
113
|
+
export declare type IPaymentServiceOutput = IMovieTicket[];
|
|
114
|
+
/**
|
|
115
|
+
* 決済方法の発行サービス
|
|
116
|
+
*/
|
|
117
|
+
export interface IPaymentMethodIssuedThrough {
|
|
118
|
+
/**
|
|
119
|
+
* 決済サービスタイプ
|
|
120
|
+
*/
|
|
121
|
+
typeOf: PaymentServiceType;
|
|
122
|
+
/**
|
|
123
|
+
* サービスID
|
|
124
|
+
*/
|
|
125
|
+
id: string;
|
|
126
|
+
/**
|
|
127
|
+
* 決済サービスによって発行された決済カード
|
|
128
|
+
*/
|
|
129
|
+
serviceOutput?: IPaymentServiceOutput;
|
|
130
|
+
}
|
|
113
131
|
export interface IResult {
|
|
114
132
|
/**
|
|
115
133
|
* The identifier for the account the payment will be applied to.
|
|
@@ -144,13 +162,7 @@ export interface IResult {
|
|
|
144
162
|
*/
|
|
145
163
|
additionalProperty?: IPropertyValue<string>[];
|
|
146
164
|
typeOf: ResultType;
|
|
147
|
-
issuedThrough:
|
|
148
|
-
typeOf: PaymentServiceType;
|
|
149
|
-
/**
|
|
150
|
-
* 発行決済サービスID
|
|
151
|
-
*/
|
|
152
|
-
id: string;
|
|
153
|
-
};
|
|
165
|
+
issuedThrough: IPaymentMethodIssuedThrough;
|
|
154
166
|
/**
|
|
155
167
|
* 転送元(PaymentCard決済)
|
|
156
168
|
*/
|
package/lib/factory/errors.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* errors
|
|
3
3
|
*/
|
|
4
|
-
import { AlreadyInUseError } from './error/alreadyInUse';
|
|
5
|
-
import { ArgumentError } from './error/argument';
|
|
6
|
-
import { ArgumentNullError } from './error/argumentNull';
|
|
7
|
-
import { ChevreError } from './error/chevre';
|
|
8
|
-
import { ForbiddenError } from './error/forbidden';
|
|
9
|
-
import { GatewayTimeoutError } from './error/gatewayTimeout';
|
|
10
|
-
import { NotFoundError } from './error/notFound';
|
|
11
|
-
import { NotImplementedError } from './error/notImplemented';
|
|
12
|
-
import { RateLimitExceededError } from './error/rateLimitExceeded';
|
|
13
|
-
import { ServiceUnavailableError } from './error/serviceUnavailable';
|
|
14
|
-
import { UnauthorizedError } from './error/unauthorized';
|
|
15
|
-
export {
|
|
4
|
+
import { AlreadyInUseError as AlreadyInUse } from './error/alreadyInUse';
|
|
5
|
+
import { ArgumentError as Argument } from './error/argument';
|
|
6
|
+
import { ArgumentNullError as ArgumentNull } from './error/argumentNull';
|
|
7
|
+
import { ChevreError as Chevre } from './error/chevre';
|
|
8
|
+
import { ForbiddenError as Forbidden } from './error/forbidden';
|
|
9
|
+
import { GatewayTimeoutError as GatewayTimeout } from './error/gatewayTimeout';
|
|
10
|
+
import { NotFoundError as NotFound } from './error/notFound';
|
|
11
|
+
import { NotImplementedError as NotImplemented } from './error/notImplemented';
|
|
12
|
+
import { RateLimitExceededError as RateLimitExceeded } from './error/rateLimitExceeded';
|
|
13
|
+
import { ServiceUnavailableError as ServiceUnavailable } from './error/serviceUnavailable';
|
|
14
|
+
import { UnauthorizedError as Unauthorized } from './error/unauthorized';
|
|
15
|
+
export { AlreadyInUse, Argument, ArgumentNull, Chevre, Forbidden, GatewayTimeout, NotFound, NotImplemented, RateLimitExceeded, ServiceUnavailable, Unauthorized };
|
package/lib/factory/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Unauthorized = exports.
|
|
3
|
+
exports.Unauthorized = exports.ServiceUnavailable = exports.RateLimitExceeded = exports.NotImplemented = exports.NotFound = exports.GatewayTimeout = exports.Forbidden = exports.Chevre = exports.ArgumentNull = exports.Argument = exports.AlreadyInUse = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* errors
|
|
6
6
|
*/
|
package/lib/factory/order.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IParticipant } from './action';
|
|
2
|
+
import { IPaymentMethodIssuedThrough } from './action/authorize/paymentMethod/any';
|
|
2
3
|
import { IPaymentCard } from './action/interact/confirm/moneyTransfer';
|
|
3
4
|
import { ActionType } from './actionType';
|
|
4
5
|
import { AssetTransactionType } from './assetTransactionType';
|
|
@@ -21,7 +22,6 @@ import { IProgramMembershipUsedSearchConditions } from './reservation';
|
|
|
21
22
|
import * as EventReservationFactory from './reservation/event';
|
|
22
23
|
import { ReservationType } from './reservationType';
|
|
23
24
|
import { ISeller as ISellerOrganization } from './seller';
|
|
24
|
-
import { PaymentServiceType } from './service/paymentService';
|
|
25
25
|
import { IServiceType } from './serviceType';
|
|
26
26
|
import { SortType } from './sortType';
|
|
27
27
|
import { IThing } from './thing';
|
|
@@ -61,13 +61,7 @@ export interface IPaymentMethod {
|
|
|
61
61
|
* 追加特性
|
|
62
62
|
*/
|
|
63
63
|
additionalProperty: IPropertyValue<string>[];
|
|
64
|
-
issuedThrough:
|
|
65
|
-
typeOf: PaymentServiceType;
|
|
66
|
-
/**
|
|
67
|
-
* 発行決済サービスID
|
|
68
|
-
*/
|
|
69
|
-
id: string;
|
|
70
|
-
};
|
|
64
|
+
issuedThrough: IPaymentMethodIssuedThrough;
|
|
71
65
|
}
|
|
72
66
|
/**
|
|
73
67
|
* 割引インターフェース
|
|
@@ -205,7 +199,7 @@ export interface IEventServiceAsOrderedItem {
|
|
|
205
199
|
project: IProject;
|
|
206
200
|
typeOf: ProductType.EventService;
|
|
207
201
|
serviceOutput: {
|
|
208
|
-
typeOf: ReservationType.EventReservation;
|
|
202
|
+
typeOf: ReservationType.EventReservation | ReservationType.ReservationPackage;
|
|
209
203
|
reservationFor: IReservationFor4OrderedItem;
|
|
210
204
|
};
|
|
211
205
|
serviceType?: IServiceType;
|
|
@@ -227,7 +221,7 @@ export interface IOrder extends ISimpleOrder {
|
|
|
227
221
|
* Offer
|
|
228
222
|
* The offers included in the order.Also accepts an array of objects.
|
|
229
223
|
*/
|
|
230
|
-
acceptedOffers
|
|
224
|
+
acceptedOffers?: IAcceptedOffer<IItemOffered>[];
|
|
231
225
|
/**
|
|
232
226
|
* An entity that arranges for an exchange between a buyer and a seller.
|
|
233
227
|
* In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
|
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
import { EventType } from '../../eventType';
|
|
2
2
|
import { ISeat } from '../../reservation';
|
|
3
3
|
import { IPaymentCard } from '../paymentCard';
|
|
4
|
+
export interface IReservationFor {
|
|
5
|
+
typeOf: EventType.ScreeningEvent;
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IServiceOutput {
|
|
9
|
+
/**
|
|
10
|
+
* 予約対象イベント
|
|
11
|
+
*/
|
|
12
|
+
reservationFor: IReservationFor;
|
|
13
|
+
/**
|
|
14
|
+
* 予約チケット
|
|
15
|
+
*/
|
|
16
|
+
reservedTicket: {
|
|
17
|
+
ticketedSeat: ISeat;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
4
20
|
export interface IAttributes extends IPaymentCard {
|
|
5
21
|
/**
|
|
6
|
-
* 購入管理番号
|
|
22
|
+
* 購入管理番号
|
|
7
23
|
*/
|
|
8
24
|
identifier: string;
|
|
9
25
|
/**
|
|
10
|
-
* pinコード
|
|
26
|
+
* pinコード
|
|
11
27
|
*/
|
|
12
|
-
accessCode
|
|
28
|
+
accessCode?: string;
|
|
13
29
|
/**
|
|
14
30
|
* 券種区分
|
|
15
31
|
*/
|
|
16
32
|
serviceType: string;
|
|
17
33
|
/**
|
|
18
|
-
*
|
|
34
|
+
* 利用対象予約
|
|
19
35
|
*/
|
|
20
|
-
serviceOutput:
|
|
21
|
-
/**
|
|
22
|
-
* 予約対象イベント
|
|
23
|
-
*/
|
|
24
|
-
reservationFor: {
|
|
25
|
-
typeOf: EventType.ScreeningEvent;
|
|
26
|
-
id: string;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* 予約チケット
|
|
30
|
-
*/
|
|
31
|
-
reservedTicket: {
|
|
32
|
-
ticketedSeat: ISeat;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
36
|
+
serviceOutput: IServiceOutput;
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
39
|
+
* MovieTicket決済カードインターフェース
|
|
38
40
|
*/
|
|
39
41
|
export interface IMovieTicket extends IAttributes {
|
|
40
42
|
typeOf: string;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IPotentialActions as IOrderActionPotentialActions } from '../action/trade/order';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import { IProject } from '../project';
|
|
3
4
|
import * as TaskFactory from '../task';
|
|
4
5
|
import { TaskName } from '../taskName';
|
|
5
|
-
export
|
|
6
|
+
export interface IData {
|
|
7
|
+
project: IProject;
|
|
8
|
+
object: {
|
|
9
|
+
confirmationNumber: string;
|
|
10
|
+
orderNumber: string;
|
|
11
|
+
};
|
|
12
|
+
potentialActions?: IOrderActionPotentialActions;
|
|
13
|
+
}
|
|
6
14
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
15
|
name: TaskName.PlaceOrder;
|
|
8
16
|
data: IData;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as SendOrderActionFactory from '../action/transfer/send/order';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import { IProject } from '../project';
|
|
3
4
|
import * as TaskFactory from '../task';
|
|
4
5
|
import { TaskName } from '../taskName';
|
|
5
|
-
export
|
|
6
|
+
export interface IData {
|
|
7
|
+
project: IProject;
|
|
8
|
+
object: SendOrderActionFactory.IObject;
|
|
9
|
+
potentialActions?: SendOrderActionFactory.IPotentialActions;
|
|
10
|
+
}
|
|
6
11
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
12
|
name: TaskName.SendOrder;
|
|
8
13
|
data: IData;
|