@chevre/factory 4.181.0-alpha.3 → 4.181.0-alpha.7
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/CHANGELOG.md +4 -0
- package/lib/chevre.d.ts +0 -2
- package/lib/chevre.js +0 -3
- package/lib/factory/action/authorize/paymentMethod/any.d.ts +4 -0
- package/lib/factory/action/cancel/reservation.d.ts +0 -4
- package/lib/factory/action/interact/confirm/moneyTransfer.d.ts +6 -0
- package/lib/factory/action/reserve.d.ts +0 -4
- package/lib/factory/action/trade/pay.d.ts +4 -0
- package/lib/factory/action/transfer/give/pointAward.d.ts +10 -0
- package/lib/factory/action/transfer/moneyTransfer.d.ts +7 -1
- package/lib/factory/assetTransaction/cancelReservation.d.ts +1 -6
- package/lib/factory/assetTransaction/pay.d.ts +4 -0
- package/lib/factory/assetTransaction/refund.d.ts +8 -0
- package/lib/factory/assetTransaction/reserve.d.ts +1 -6
- package/lib/factory/order.d.ts +4 -0
- package/lib/factory/ownershipInfo.d.ts +1 -1
- package/lib/factory/project.d.ts +0 -4
- package/lib/factory/service/paymentService.d.ts +3 -2
- package/lib/factory/transaction/placeOrder.d.ts +9 -0
- package/package.json +1 -1
- package/lib/factory/report/order.d.ts +0 -85
- package/lib/factory/report/order.js +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
|
16
16
|
- 予約取引の適用メンバーシップ指定に発行サービスIDを必須化
|
|
17
17
|
- 予約取引のポイント特典入金先指定に発行サービスIDを必須化
|
|
18
18
|
- サービス登録取引のポイント特典入金先指定に発行サービスIDを必須化
|
|
19
|
+
- 通貨転送アクションのペイメントカードインターフェースに発行サービスIDを必須化
|
|
20
|
+
- 決済取引オブジェクトに決済サービスIDを追加
|
|
21
|
+
- 旧売上レポートを削除
|
|
22
|
+
- 予約通知を廃止
|
|
19
23
|
|
|
20
24
|
### Deprecated
|
|
21
25
|
|
package/lib/chevre.d.ts
CHANGED
|
@@ -106,7 +106,6 @@ import * as PropertyValueFactory from './factory/propertyValue';
|
|
|
106
106
|
import * as QualitativeValueFactory from './factory/qualitativeValue';
|
|
107
107
|
import * as QuantitativeValueFactory from './factory/quantitativeValue';
|
|
108
108
|
import * as AccountingReportFactory from './factory/report/accountingReport';
|
|
109
|
-
import * as OrderReportFactory from './factory/report/order';
|
|
110
109
|
import * as ReservationFactory from './factory/reservation';
|
|
111
110
|
import * as EventReservationFactory from './factory/reservation/event';
|
|
112
111
|
import * as ReservationPackageFactory from './factory/reservation/reservationPackage';
|
|
@@ -369,7 +368,6 @@ export import qualitativeValue = QualitativeValueFactory;
|
|
|
369
368
|
export import quantitativeValue = QuantitativeValueFactory;
|
|
370
369
|
export declare namespace report {
|
|
371
370
|
export import accountingReport = AccountingReportFactory;
|
|
372
|
-
export import order = OrderReportFactory;
|
|
373
371
|
}
|
|
374
372
|
export declare namespace reservation {
|
|
375
373
|
type IBroker<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IBroker : ReservationFactory.IBroker;
|
package/lib/chevre.js
CHANGED
|
@@ -94,7 +94,6 @@ var PropertyValueFactory = require("./factory/propertyValue");
|
|
|
94
94
|
var QualitativeValueFactory = require("./factory/qualitativeValue");
|
|
95
95
|
var QuantitativeValueFactory = require("./factory/quantitativeValue");
|
|
96
96
|
var AccountingReportFactory = require("./factory/report/accountingReport");
|
|
97
|
-
var OrderReportFactory = require("./factory/report/order");
|
|
98
97
|
var reservationStatusType_1 = require("./factory/reservationStatusType");
|
|
99
98
|
var reservationType_1 = require("./factory/reservationType");
|
|
100
99
|
var SellerFactory = require("./factory/seller");
|
|
@@ -346,8 +345,6 @@ exports.quantitativeValue = QuantitativeValueFactory;
|
|
|
346
345
|
var report;
|
|
347
346
|
(function (report) {
|
|
348
347
|
report.accountingReport = AccountingReportFactory;
|
|
349
|
-
// tslint:disable-next-line:no-shadowed-variable
|
|
350
|
-
report.order = OrderReportFactory;
|
|
351
348
|
})(report = exports.report || (exports.report = {}));
|
|
352
349
|
exports.reservationStatusType = reservationStatusType_1.default;
|
|
353
350
|
exports.reservationType = reservationType_1.default;
|
|
@@ -26,10 +26,6 @@ export interface IPurpose {
|
|
|
26
26
|
}
|
|
27
27
|
export declare type IInformReservation = IInformActionAttributes<IObject, any>;
|
|
28
28
|
export interface IPotentialActions {
|
|
29
|
-
/**
|
|
30
|
-
* 予約通知アクション
|
|
31
|
-
*/
|
|
32
|
-
informReservation?: IInformReservation[];
|
|
33
29
|
}
|
|
34
30
|
/**
|
|
35
31
|
* アクション属性インターフェース
|
|
@@ -28,10 +28,6 @@ export interface IPurpose {
|
|
|
28
28
|
export declare type IInformReservation = IInformActionAttributes<IObject, any>;
|
|
29
29
|
export interface IPotentialActions {
|
|
30
30
|
moneyTransfer?: IMoneyTransferActionAttributes[];
|
|
31
|
-
/**
|
|
32
|
-
* 予約通知アクション
|
|
33
|
-
*/
|
|
34
|
-
informReservation?: IInformReservation[];
|
|
35
31
|
}
|
|
36
32
|
/**
|
|
37
33
|
* アクション属性インターフェース
|
|
@@ -12,11 +12,21 @@ export interface IObject {
|
|
|
12
12
|
*/
|
|
13
13
|
identifier?: string;
|
|
14
14
|
amount: number;
|
|
15
|
+
/**
|
|
16
|
+
* 入金先カード
|
|
17
|
+
*/
|
|
15
18
|
toLocation: {
|
|
16
19
|
/**
|
|
17
20
|
* 入金先カード番号
|
|
21
|
+
* 口座番号ではないので注意
|
|
18
22
|
*/
|
|
19
23
|
accountNumber: string;
|
|
24
|
+
issuedThrough: {
|
|
25
|
+
/**
|
|
26
|
+
* カード発行サービスID
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
};
|
|
20
30
|
};
|
|
21
31
|
description: string;
|
|
22
32
|
}
|
|
@@ -20,13 +20,19 @@ export declare type IRecipient = ActionFactory.IParticipant;
|
|
|
20
20
|
*/
|
|
21
21
|
export import IAnonymousLocation = AccountFactory.action.moneyTransfer.IAnonymousLocation;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* ペイメントカードインターフェース
|
|
24
24
|
*/
|
|
25
25
|
export interface IPaymentCard {
|
|
26
26
|
typeOf: PermitType;
|
|
27
27
|
identifier: string;
|
|
28
28
|
accessCode?: string;
|
|
29
29
|
hasNoPermit?: boolean;
|
|
30
|
+
issuedThrough: {
|
|
31
|
+
/**
|
|
32
|
+
* カード発行サービスID
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
};
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* 転送元あるいは転送先の場所インターフェース
|
|
@@ -4,7 +4,6 @@ import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve
|
|
|
4
4
|
import AssetTransactionType from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { IClientUser } from '../clientUser';
|
|
7
|
-
import { IInformParams, IOnReservationStatusChanged } from '../project';
|
|
8
7
|
import { IReservation as IEventReservation } from '../reservation/event';
|
|
9
8
|
export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
|
|
10
9
|
/**
|
|
@@ -35,7 +34,6 @@ export interface IObjectWithoutDetail {
|
|
|
35
34
|
*/
|
|
36
35
|
reservationNumber?: string;
|
|
37
36
|
};
|
|
38
|
-
onReservationStatusChanged?: IOnReservationStatusChanged;
|
|
39
37
|
}
|
|
40
38
|
/**
|
|
41
39
|
* 取引対象物インターフェース
|
|
@@ -44,13 +42,10 @@ export interface IObject {
|
|
|
44
42
|
clientUser?: IClientUser;
|
|
45
43
|
transaction?: IReserveTransaction;
|
|
46
44
|
reservations?: IEventReservation[];
|
|
47
|
-
onReservationStatusChanged?: IOnReservationStatusChanged;
|
|
48
45
|
}
|
|
49
46
|
export interface IPotentialActionsParams {
|
|
50
47
|
cancelReservation?: {
|
|
51
|
-
potentialActions?: {
|
|
52
|
-
informReservation?: IInformParams[];
|
|
53
|
-
};
|
|
48
|
+
potentialActions?: {};
|
|
54
49
|
};
|
|
55
50
|
}
|
|
56
51
|
/**
|
|
@@ -93,6 +93,10 @@ export interface IPaymentMethod {
|
|
|
93
93
|
*/
|
|
94
94
|
export interface IObject {
|
|
95
95
|
typeOf: PaymentServiceType;
|
|
96
|
+
/**
|
|
97
|
+
* 発行決済サービスID
|
|
98
|
+
*/
|
|
99
|
+
id?: string;
|
|
96
100
|
paymentMethod?: IPaymentMethod;
|
|
97
101
|
pendingTransaction?: IPendingTransaction;
|
|
98
102
|
entryTranArgs?: IEntryTranArgs;
|
|
@@ -9,6 +9,10 @@ export declare type IAgent = any;
|
|
|
9
9
|
export declare type IRecipient = IRefundRecipient;
|
|
10
10
|
export interface IObjectWithoutDetail {
|
|
11
11
|
typeOf: PaymentServiceType;
|
|
12
|
+
/**
|
|
13
|
+
* 発行決済サービスID
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
12
16
|
paymentMethod: IPaymentMethod;
|
|
13
17
|
refundFee?: number;
|
|
14
18
|
}
|
|
@@ -37,6 +41,10 @@ export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
|
|
|
37
41
|
*/
|
|
38
42
|
export interface IObject {
|
|
39
43
|
typeOf: PaymentServiceType;
|
|
44
|
+
/**
|
|
45
|
+
* 発行決済サービスID
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
40
48
|
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
41
49
|
paymentMethod: IPaymentMethod;
|
|
42
50
|
refundFee?: number;
|
|
@@ -6,7 +6,6 @@ import { IExtendId } from '../autoGenerated';
|
|
|
6
6
|
import { ITicketOffer } from '../event/screeningEvent';
|
|
7
7
|
import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
|
|
8
8
|
import { IPointAward } from '../product';
|
|
9
|
-
import { IInformParams, IOnReservationStatusChanged } from '../project';
|
|
10
9
|
import { IPropertyValue } from '../propertyValue';
|
|
11
10
|
import * as ReservationFactory from '../reservation';
|
|
12
11
|
import { IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
|
|
@@ -164,9 +163,7 @@ export interface IConfirmingReservation {
|
|
|
164
163
|
}
|
|
165
164
|
export interface IPotentialActionsParams {
|
|
166
165
|
reserve?: {
|
|
167
|
-
potentialActions?: {
|
|
168
|
-
informReservation?: IInformParams[];
|
|
169
|
-
};
|
|
166
|
+
potentialActions?: {};
|
|
170
167
|
};
|
|
171
168
|
}
|
|
172
169
|
/**
|
|
@@ -198,7 +195,6 @@ export interface IObjectWithoutDetail {
|
|
|
198
195
|
reservationFor?: {
|
|
199
196
|
id: string;
|
|
200
197
|
};
|
|
201
|
-
onReservationStatusChanged?: IOnReservationStatusChanged;
|
|
202
198
|
}
|
|
203
199
|
export declare type IReservationFor = IEventReservationReservationFor;
|
|
204
200
|
export interface IEventReservationWithAnyReservationFor extends IEventReservation {
|
|
@@ -214,7 +210,6 @@ export interface IObject extends IReservationPackage {
|
|
|
214
210
|
acceptedOffer?: IAcceptedOffer4object[];
|
|
215
211
|
reservationFor?: IReservationFor;
|
|
216
212
|
subReservation?: ISubReservation[];
|
|
217
|
-
onReservationStatusChanged?: IOnReservationStatusChanged;
|
|
218
213
|
}
|
|
219
214
|
export interface IPotentialActions {
|
|
220
215
|
reserve: ReserveActionFactory.IAttributes[];
|
package/lib/factory/order.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface IReservation {
|
|
|
30
30
|
bookingService?: IBookingService;
|
|
31
31
|
}
|
|
32
32
|
export declare type IReservationWithDetail = IReservation & IEventReservation;
|
|
33
|
-
export declare type IPermit = PermitFactory.IPermit
|
|
33
|
+
export declare type IPermit = PermitFactory.IPermit;
|
|
34
34
|
/**
|
|
35
35
|
* 所有対象物インターフェース (Product or Service)
|
|
36
36
|
*/
|
package/lib/factory/project.d.ts
CHANGED
|
@@ -21,9 +21,6 @@ export interface IOnPaymentStatusChanged {
|
|
|
21
21
|
/**
|
|
22
22
|
* 予約ステータス変更時イベントインターフェース
|
|
23
23
|
*/
|
|
24
|
-
export interface IOnReservationStatusChanged {
|
|
25
|
-
informReservation?: IInformParams[];
|
|
26
|
-
}
|
|
27
24
|
/**
|
|
28
25
|
* 予約使用時イベントインターフェース
|
|
29
26
|
*/
|
|
@@ -60,7 +57,6 @@ export interface IWebhookSettings {
|
|
|
60
57
|
export interface ISettings {
|
|
61
58
|
importEventsInWeeks?: number;
|
|
62
59
|
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
63
|
-
onReservationStatusChanged?: IOnReservationStatusChanged;
|
|
64
60
|
onReservationUsed?: IOnReservationUsed;
|
|
65
61
|
cognito?: ICognitoSettings;
|
|
66
62
|
onOrderStatusChanged?: IOnOrderStatusChanged;
|
|
@@ -43,7 +43,7 @@ export interface IProvider extends IOrganization {
|
|
|
43
43
|
credentials?: IProviderCredentials;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* 決済サービスインターフェース
|
|
47
47
|
* {@link https://schema.org/Service}
|
|
48
48
|
*/
|
|
49
49
|
export interface IService extends IThing {
|
|
@@ -53,11 +53,12 @@ export interface IService extends IThing {
|
|
|
53
53
|
availableChannel?: IAvailableChannel;
|
|
54
54
|
productID?: string;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* 決済サービス提供者(決済サービスを利用する販売者)
|
|
57
57
|
*/
|
|
58
58
|
provider?: IProvider[];
|
|
59
59
|
/**
|
|
60
60
|
* The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
|
|
61
|
+
* 決済サービスの場合、serviceType.codeValueが決済方法区分
|
|
61
62
|
*/
|
|
62
63
|
serviceType?: IServiceType;
|
|
63
64
|
}
|
|
@@ -17,9 +17,18 @@ export import ISeller = TransactionFactory.ISeller;
|
|
|
17
17
|
*/
|
|
18
18
|
export declare type IAgent = TransactionFactory.IAgent;
|
|
19
19
|
export interface IPaymentMethodByPaymentUrl {
|
|
20
|
+
/**
|
|
21
|
+
* 決済方法区分
|
|
22
|
+
*/
|
|
20
23
|
typeOf: string;
|
|
21
24
|
paymentMethodId: string;
|
|
22
25
|
paymentUrl: string;
|
|
26
|
+
issuedThrough: {
|
|
27
|
+
/**
|
|
28
|
+
* 発行決済サービスID
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
23
32
|
}
|
|
24
33
|
/**
|
|
25
34
|
* 注文特典口座インターフェース
|
package/package.json
CHANGED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import IMultilingualString from '../multilingualString';
|
|
2
|
-
import { IProject } from '../project';
|
|
3
|
-
export interface ICustomer {
|
|
4
|
-
givenName: string;
|
|
5
|
-
familyName: string;
|
|
6
|
-
email: string;
|
|
7
|
-
telephone: string;
|
|
8
|
-
group: string;
|
|
9
|
-
username: string;
|
|
10
|
-
segment: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IReservation {
|
|
13
|
-
id: string;
|
|
14
|
-
reservationFor: {
|
|
15
|
-
id: string;
|
|
16
|
-
startDate: Date;
|
|
17
|
-
};
|
|
18
|
-
reservedTicket?: {
|
|
19
|
-
/**
|
|
20
|
-
* 予約使用日時
|
|
21
|
-
*/
|
|
22
|
-
dateUsed?: Date;
|
|
23
|
-
ticketedSeat?: {
|
|
24
|
-
seatNumber?: string;
|
|
25
|
-
};
|
|
26
|
-
ticketType?: {
|
|
27
|
-
csvCode?: string;
|
|
28
|
-
name?: IMultilingualString;
|
|
29
|
-
priceSpecification?: {
|
|
30
|
-
price?: number;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* レポートにおける予約ステータス
|
|
37
|
-
*/
|
|
38
|
-
export declare enum ReportCategory {
|
|
39
|
-
Reserved = "RESERVED",
|
|
40
|
-
Cancelled = "CANCELLED",
|
|
41
|
-
/**
|
|
42
|
-
* 返品手数料
|
|
43
|
-
*/
|
|
44
|
-
CancellationFee = "CANCELLATION_FEE"
|
|
45
|
-
}
|
|
46
|
-
export interface IMainEntity {
|
|
47
|
-
confirmationNumber: string;
|
|
48
|
-
/**
|
|
49
|
-
* 購入者
|
|
50
|
-
*/
|
|
51
|
-
customer: ICustomer;
|
|
52
|
-
/**
|
|
53
|
-
* 注文日時
|
|
54
|
-
*/
|
|
55
|
-
orderDate: Date;
|
|
56
|
-
/**
|
|
57
|
-
* 注文番号
|
|
58
|
-
*/
|
|
59
|
-
orderNumber: string;
|
|
60
|
-
/**
|
|
61
|
-
* 決済方法名称
|
|
62
|
-
*/
|
|
63
|
-
paymentMethod: string;
|
|
64
|
-
/**
|
|
65
|
-
* 金額
|
|
66
|
-
*/
|
|
67
|
-
price: number;
|
|
68
|
-
typeOf: string;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* 注文レポートインターフェース
|
|
72
|
-
*/
|
|
73
|
-
export interface IReport {
|
|
74
|
-
amount: number;
|
|
75
|
-
/**
|
|
76
|
-
* レポートカテゴリー
|
|
77
|
-
*/
|
|
78
|
-
category: ReportCategory;
|
|
79
|
-
dateRecorded: Date;
|
|
80
|
-
mainEntity: IMainEntity;
|
|
81
|
-
payment_seat_index?: number;
|
|
82
|
-
project: IProject;
|
|
83
|
-
reservation: IReservation;
|
|
84
|
-
sortBy: string;
|
|
85
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReportCategory = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* レポートにおける予約ステータス
|
|
6
|
-
*/
|
|
7
|
-
var ReportCategory;
|
|
8
|
-
(function (ReportCategory) {
|
|
9
|
-
ReportCategory["Reserved"] = "RESERVED";
|
|
10
|
-
ReportCategory["Cancelled"] = "CANCELLED";
|
|
11
|
-
/**
|
|
12
|
-
* 返品手数料
|
|
13
|
-
*/
|
|
14
|
-
ReportCategory["CancellationFee"] = "CANCELLATION_FEE";
|
|
15
|
-
})(ReportCategory = exports.ReportCategory || (exports.ReportCategory = {}));
|