@chevre/factory 9.5.0-alpha.5 → 9.5.0-alpha.6

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.
@@ -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.6",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [