@chevre/factory 4.181.0-alpha.5 → 4.182.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/CHANGELOG.md CHANGED
@@ -10,13 +10,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
10
10
 
11
11
  ### Changed
12
12
 
13
- - 決済取引のIPendingTransactionに出金元の口座番号情報を追加
14
- - プロダクトにavailableChannelを追加
15
- - サービス登録アクションのIObjectを定義
16
- - 予約取引の適用メンバーシップ指定に発行サービスIDを必須化
17
- - 予約取引のポイント特典入金先指定に発行サービスIDを必須化
18
- - サービス登録取引のポイント特典入金先指定に発行サービスIDを必須化
19
- - 通貨転送アクションのペイメントカードインターフェースに発行サービスIDを必須化
13
+ - 返金後注文通知を廃止
14
+ - 取引のonOrderStatusChanged属性を廃止
20
15
 
21
16
  ### Deprecated
22
17
 
@@ -26,6 +21,21 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
26
21
 
27
22
  ### Security
28
23
 
24
+ ## v4.181.0 - 2021-12-27
25
+
26
+ ### Changed
27
+
28
+ - 決済取引のIPendingTransactionに出金元の口座番号情報を追加
29
+ - プロダクトにavailableChannelを追加
30
+ - サービス登録アクションのIObjectを定義
31
+ - 予約取引の適用メンバーシップ指定に発行サービスIDを必須化
32
+ - 予約取引のポイント特典入金先指定に発行サービスIDを必須化
33
+ - サービス登録取引のポイント特典入金先指定に発行サービスIDを必須化
34
+ - 通貨転送アクションのペイメントカードインターフェースに発行サービスIDを必須化
35
+ - 決済取引オブジェクトに決済サービスIDを追加
36
+ - 旧売上レポートを削除
37
+ - 予約通知を廃止
38
+
29
39
  ## v4.180.0 - 2021-12-13
30
40
 
31
41
  ### Changed
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;
@@ -8,10 +8,6 @@ var TransferTransactionFactory = require("./account/transaction/transfer");
8
8
  var WithdrawTransactionFactory = require("./account/transaction/withdraw");
9
9
  var action;
10
10
  (function (action) {
11
- // export import IAction = ActionFactory.IAction;
12
- // export import IAttributes = ActionFactory.IAttributes;
13
- // export import IParticipant = ActionFactory.IParticipant;
14
- // export import IPurpose = ActionFactory.IPurpose;
15
11
  action.moneyTransfer = MoneyTransferActionFactory;
16
12
  })(action = exports.action || (exports.action = {}));
17
13
  var transaction;
@@ -85,17 +85,6 @@ export interface IObject {
85
85
  */
86
86
  paymentMethodId?: string;
87
87
  typeOf: ResultType;
88
- /**
89
- * 転送元口座(Account決済)
90
- * 出金取引、転送取引の場合指定
91
- */
92
- /**
93
- * 転送先口座(Account決済)
94
- * 入金取引、転送取引の場合指定
95
- */
96
- /**
97
- * 取引説明(Account決済)
98
- */
99
88
  notes?: string;
100
89
  /**
101
90
  * 進行中取引(Account決済)
@@ -158,16 +147,11 @@ export interface IResult {
158
147
  typeOf: ResultType;
159
148
  issuedThrough: {
160
149
  typeOf: PaymentServiceType;
150
+ /**
151
+ * 発行決済サービスID
152
+ */
153
+ id: string;
161
154
  };
162
- /**
163
- * 転送元口座(Account決済)
164
- */
165
- /**
166
- * 転送先口座(Account決済)
167
- */
168
- /**
169
- * 進行中取引(Account決済)
170
- */
171
155
  /**
172
156
  * 転送元(PaymentCard決済)
173
157
  */
@@ -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
  * アクション属性インターフェース
@@ -68,6 +68,10 @@ export interface IPaymentMethod {
68
68
  }
69
69
  export interface IPaymentService {
70
70
  typeOf: PaymentServiceType;
71
+ /**
72
+ * 発行決済サービスID
73
+ */
74
+ id: string;
71
75
  /**
72
76
  * 決済方法
73
77
  */
@@ -1,7 +1,6 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import ActionType from '../../../actionType';
3
3
  import * as OrderFactory from '../../../order';
4
- import { IAttributes as IInformActionAttributes } from '../../interact/inform';
5
4
  import { IAttributes as ISendEmailMessageActionAttributes } from '../../transfer/send/message/email';
6
5
  export declare type IRecipient = ActionFactory.IParticipant;
7
6
  export declare type IObject = OrderFactory.IPaymentMethod;
@@ -10,7 +9,6 @@ export interface IPotentialActions {
10
9
  /**
11
10
  * 注文通知アクション
12
11
  */
13
- informOrder?: IInformActionAttributes<any, any>[];
14
12
  /**
15
13
  * 返金処理完了を通知するEメール送信アクション
16
14
  */
@@ -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[];
@@ -58,6 +58,10 @@ export interface IPaymentMethod {
58
58
  additionalProperty: IPropertyValue<string>[];
59
59
  issuedThrough: {
60
60
  typeOf: PaymentServiceType;
61
+ /**
62
+ * 発行決済サービスID
63
+ */
64
+ id: string;
61
65
  };
62
66
  }
63
67
  /**
@@ -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
  */
@@ -13,4 +13,3 @@ var PlaceType;
13
13
  PlaceType["ScreeningRoomSection"] = "ScreeningRoomSection";
14
14
  PlaceType["Seat"] = "Seat";
15
15
  })(PlaceType = exports.PlaceType || (exports.PlaceType = {}));
16
- // export default PlaceType;
@@ -12,19 +12,10 @@ export declare enum ProgramMembershipType {
12
12
  export interface IProgramMembership extends IThing {
13
13
  project?: IProject;
14
14
  typeOf: string;
15
- /**
16
- * The organization (airline, travelers' club, etc.) the membership is made with.
17
- */
18
- /**
19
- * target program
20
- */
21
15
  /**
22
16
  * The service through with the permit was granted.
23
17
  */
24
18
  issuedThrough?: IProduct;
25
- /**
26
- * A member of an Organization or a ProgramMembership.
27
- */
28
19
  /**
29
20
  * A unique identifier for the membership.
30
21
  */
@@ -18,12 +18,6 @@ export interface IInformParams {
18
18
  export interface IOnPaymentStatusChanged {
19
19
  informPayment?: IInformParams[];
20
20
  }
21
- /**
22
- * 予約ステータス変更時イベントインターフェース
23
- */
24
- export interface IOnReservationStatusChanged {
25
- informReservation?: IInformParams[];
26
- }
27
21
  /**
28
22
  * 予約使用時イベントインターフェース
29
23
  */
@@ -60,7 +54,6 @@ export interface IWebhookSettings {
60
54
  export interface ISettings {
61
55
  importEventsInWeeks?: number;
62
56
  onPaymentStatusChanged?: IOnPaymentStatusChanged;
63
- onReservationStatusChanged?: IOnReservationStatusChanged;
64
57
  onReservationUsed?: IOnReservationUsed;
65
58
  cognito?: ICognitoSettings;
66
59
  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
  }
@@ -1,12 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PaymentServiceType = void 0;
4
- // export interface IServiceOutput {
5
- // /**
6
- // * 決済方法タイプ
7
- // */
8
- // typeOf: string;
9
- // }
10
4
  var PaymentServiceType;
11
5
  (function (PaymentServiceType) {
12
6
  PaymentServiceType["CreditCard"] = "CreditCard";
@@ -7,7 +7,7 @@ import { IObject as IGivePointAwardObject } from '../action/transfer/give/pointA
7
7
  import { IExtendId } from '../autoGenerated';
8
8
  import { IClientUser } from '../clientUser';
9
9
  import * as OrderFactory from '../order';
10
- import { IInformParams, IOnOrderStatusChanged, IProject } from '../project';
10
+ import { IInformParams, IProject } from '../project';
11
11
  import * as WebAPIFactory from '../service/webAPI';
12
12
  import * as TransactionFactory from '../transaction';
13
13
  import TransactionType from '../transactionType';
@@ -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
  * 注文特典口座インターフェース
@@ -64,7 +73,6 @@ export interface IObject {
64
73
  /**
65
74
  * 注文ステータス変更時イベント
66
75
  */
67
- onOrderStatusChanged?: IOnOrderStatusChanged;
68
76
  potentialActions?: {
69
77
  givePointAward?: IGivePointAwardParams[];
70
78
  };
@@ -83,7 +91,6 @@ export interface IStartParamsWithoutDetail {
83
91
  /**
84
92
  * 注文ステータス変更時イベント
85
93
  */
86
- onOrderStatusChanged?: IOnOrderStatusChanged;
87
94
  /**
88
95
  * 注文名称
89
96
  */
@@ -112,9 +119,6 @@ export interface IConfirmReservationParams {
112
119
  */
113
120
  object?: IConfirmReservationObject<WebAPIFactory.Identifier>;
114
121
  }
115
- /**
116
- * メンバーシップ登録パラメータ
117
- */
118
122
  declare type ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
119
123
  /**
120
124
  * インセンティブ付与パラメータ
@@ -2,7 +2,7 @@ import { IAttributes as IReturnOrderActionAttributes } from '../action/transfer/
2
2
  import * as ReturnReservationActionFactory from '../action/transfer/return/reservation';
3
3
  import { IExtendId } from '../autoGenerated';
4
4
  import { IMerchantReturnPolicy } from '../merchantReturnPolicy';
5
- import { IInformParams, IOnOrderStatusChanged, IProject } from '../project';
5
+ import { IInformParams, IProject } from '../project';
6
6
  import * as WebAPIFactory from '../service/webAPI';
7
7
  import * as TransactionFactory from '../transaction';
8
8
  import TransactionType from '../transactionType';
@@ -40,10 +40,6 @@ export interface IStartParamsWithoutDetail {
40
40
  object: {
41
41
  order: IReturnableOrder | IReturnableOrder[];
42
42
  reason: Reason;
43
- /**
44
- * 注文ステータス変更時イベント
45
- */
46
- onOrderStatusChanged?: IOnOrderStatusChanged;
47
43
  };
48
44
  seller: {
49
45
  id: string;
@@ -151,10 +147,6 @@ export interface IObject {
151
147
  order: IReturnableOrder[];
152
148
  reason: Reason;
153
149
  returnPolicy: IMerchantReturnPolicy;
154
- /**
155
- * 注文ステータス変更時イベント
156
- */
157
- onOrderStatusChanged?: IOnOrderStatusChanged;
158
150
  }
159
151
  export interface IPotentialActions {
160
152
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.181.0-alpha.5",
3
+ "version": "4.182.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -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 = {}));