@chevre/factory 9.5.0-alpha.5 → 9.5.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.
@@ -1,8 +1,6 @@
1
- import type { COAFactory } from '@coasystems/factory';
2
1
  import { IAction as IBaseAction } from '../../../action';
3
2
  import { ActionType } from '../../../actionType';
4
3
  import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail, IPermitIssuedThroughFaceToFace, IPermitIssuedThroughMembershipService } from '../../../assetTransaction/reserve';
5
- import { AssetTransactionType } from '../../../assetTransactionType';
6
4
  import { IEvent } from '../../../event/screeningEvent';
7
5
  import { OfferType } from '../../../offerType';
8
6
  import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
@@ -48,32 +46,24 @@ export interface IResult {
48
46
  }
49
47
  export type IAcceptedOfferWithoutDetail = IAcceptedTicketOfferWithoutDetail;
50
48
  export { IObjectWithoutDetail };
51
- export type ICOAPendingTransaction = Pick<COAFactory.reserve.IDelTmpReserveArgs, 'theaterCode' | 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'tmpReserveNum'> & {
52
- transactionNumber: string;
53
- typeOf: AssetTransactionType.COAReserveTransaction;
54
- };
55
49
  export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'>;
56
50
  /**
57
51
  * 興行オファー承認アクション対象
58
52
  */
59
53
  export interface IObject {
60
54
  typeOf: ObjectType.SeatReservation;
61
- event?: IEventInObject;
62
55
  id?: never;
56
+ event?: never;
63
57
  pendingTransaction?: never;
64
58
  }
65
59
  export interface IObject4COA {
66
60
  typeOf: ObjectType.SeatReservation;
67
- event?: IEventInObject;
68
61
  /**
69
62
  * recipe有(仮予約時)のCOA興行オファー採用アクションID(2024-06-11~)
70
63
  */
71
64
  id: string;
72
- /**
73
- * COA進行中取引(仮予約削除時に利用)
74
- * discontinue on Chevre(2024-06-22~)
75
- */
76
- pendingTransaction?: ICOAPendingTransaction;
65
+ event?: never;
66
+ pendingTransaction?: never;
77
67
  }
78
68
  export interface IAttributes extends IBaseAttributes<IObject | IObject4COA, IResult> {
79
69
  typeOf: ActionType.AuthorizeAction;
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // import type { COAFactory } from '@coasystems/factory';
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.ObjectType = void 0;
4
5
  const any_1 = require("./any");
@@ -6,7 +6,6 @@ import { AssetTransactionType } from '../../../assetTransactionType';
6
6
  import { IOrderPaymentMethodIssuedThrough, ITotalPaymentDue } from '../../../order';
7
7
  import { PaymentStatusType } from '../../../paymentStatusType';
8
8
  import { IPropertyValue } from '../../../propertyValue';
9
- import { IPermitAsServiceOutput } from '../../../service/paymentService';
10
9
  import { TransactionType } from '../../../transactionType';
11
10
  import { IAttributes as IBaseAttributes } from '../../authorize';
12
11
  export type IAgent = IParticipantAsWebApplication | IParticipantAsPerson;
@@ -158,12 +157,12 @@ export interface IResultAsInvoice {
158
157
  /**
159
158
  * The total amount due.
160
159
  */
161
- totalPaymentDue?: ITotalPaymentDue;
160
+ totalPaymentDue: ITotalPaymentDue;
162
161
  /**
163
162
  * 追加特性
164
163
  */
165
164
  additionalProperty?: IPropertyValue<string>[];
166
- typeOf: ResultType;
165
+ typeOf: ResultType.Payment;
167
166
  issuedThrough: IOrderPaymentMethodIssuedThrough;
168
167
  /**
169
168
  * 請求の関連注文
@@ -171,13 +170,9 @@ export interface IResultAsInvoice {
171
170
  */
172
171
  referencesOrder?: IInvoiceReferenceOrder;
173
172
  }
174
- export type IResultAsPermit = Pick<IPermitAsServiceOutput, 'typeOf' | 'issuedThrough'> & {
175
- /**
176
- * メンバーシップコード
177
- */
178
- identifier: string;
179
- };
180
- export type IResult = [IResultAsInvoice, IResultAsPermit?];
173
+ export type IResult = [
174
+ IResultAsInvoice
175
+ ];
181
176
  export interface IPurpose {
182
177
  typeOf: TransactionType.PlaceOrder;
183
178
  id: string;
@@ -28,10 +28,11 @@ export interface IPaymentMethod {
28
28
  */
29
29
  additionalProperty?: IPropertyValue<string>[];
30
30
  /**
31
- * The amount of money.
31
+ * 金額
32
+ * 通貨はJPY、あるいは、決済サービスのカード通貨区分が自動的に適用される
32
33
  * MonetaryAmount対応(2023-08-12~)
33
34
  */
34
- amount: number | IPaymentMethodAmount;
35
+ amount: IPaymentMethodAmount;
35
36
  /**
36
37
  * 説明
37
38
  */
@@ -42,9 +43,9 @@ export interface IPaymentMethod {
42
43
  */
43
44
  name?: string;
44
45
  /**
45
- * The total amount due.
46
+ * JPYとしての金額、あるいは、決済カードの枚数
46
47
  */
47
- totalPaymentDue?: ITotalPaymentDue;
48
+ totalPaymentDue: ITotalPaymentDue;
48
49
  /**
49
50
  * 決済方法区分
50
51
  */
@@ -125,13 +126,13 @@ export interface IPaymentServiceAsObject {
125
126
  serviceOutput?: IInvoiceAsPaymentServiceOutput;
126
127
  }
127
128
  export type IObject = IPaymentServiceAsObject;
128
- export interface IPaymentMethodWithoutDetail extends IPaymentMethod {
129
+ export interface IPaymentMethodWithoutDetail extends Pick<IPaymentMethod, 'accountId' | 'additionalProperty' | 'creditCard' | 'description' | 'identifier' | 'method' | 'movieTickets' | 'name'> {
129
130
  /**
130
131
  * 取引開始前の指定ではnumberに限定
131
132
  */
132
133
  amount: number;
133
134
  }
134
- export interface IObjectWithoutDetail extends Pick<IObject, 'serviceOutput' | 'typeOf' | 'id' | 'paymentMethod'> {
135
+ export interface IObjectWithoutDetail extends Pick<IObject, 'serviceOutput' | 'typeOf' | 'id'> {
135
136
  paymentMethod: IPaymentMethodWithoutDetail;
136
137
  }
137
138
  export type IPotentialAction = IPotentialInformAction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "9.5.0-alpha.5",
3
+ "version": "9.5.0-alpha.7",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [