@chevre/factory 4.181.0-alpha.4 → 4.181.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/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
  */
@@ -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
  }
@@ -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";
@@ -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
  * 注文特典口座インターフェース
@@ -112,9 +121,6 @@ export interface IConfirmReservationParams {
112
121
  */
113
122
  object?: IConfirmReservationObject<WebAPIFactory.Identifier>;
114
123
  }
115
- /**
116
- * メンバーシップ登録パラメータ
117
- */
118
124
  declare type ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
119
125
  /**
120
126
  * インセンティブ付与パラメータ
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.181.0-alpha.4",
3
+ "version": "4.181.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",