@chevre/factory 4.379.0 → 4.381.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.
@@ -7,6 +7,7 @@ import { AssetTransactionType } from '../../../assetTransactionType';
7
7
  import { IOrderPaymentMethodIssuedThrough, ITotalPaymentDue } from '../../../order';
8
8
  import { PaymentStatusType } from '../../../paymentStatusType';
9
9
  import { IPropertyValue } from '../../../propertyValue';
10
+ import { IPermitAsServiceOutput } from '../../../service/paymentService';
10
11
  import { TransactionType } from '../../../transactionType';
11
12
  import * as AuthorizeActionFactory from '../../authorize';
12
13
  export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
@@ -49,7 +50,7 @@ export interface IObjectIncludingPaymentMethodDetails {
49
50
  */
50
51
  paymentMethod: AvailablePaymentMethodType;
51
52
  /**
52
- * 決済ID
53
+ * 決済方法ID
53
54
  */
54
55
  paymentMethodId: string;
55
56
  typeOf: ResultType;
@@ -75,8 +76,13 @@ export interface IObjectIncludingPaymentMethodDetails {
75
76
  * (MovieTicket決済)
76
77
  */
77
78
  movieTickets?: IMovieTicket[];
79
+ /**
80
+ * メンバーシップチケット指定の場合
81
+ * 2024-08-13~
82
+ */
83
+ ticketToken?: string;
78
84
  }
79
- export type IObjectWithoutDetail = Pick<IObjectIncludingPaymentMethodDetails, 'additionalProperty' | 'amount' | 'issuedThrough' | 'paymentMethod' | 'description' | 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation'> & {
85
+ export type IObjectWithoutDetail = Pick<IObjectIncludingPaymentMethodDetails, 'additionalProperty' | 'amount' | 'issuedThrough' | 'paymentMethod' | 'description' | 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation' | 'ticketToken'> & {
80
86
  /**
81
87
  * 外部決済URL発行の場合に指定
82
88
  * CreditCardのみ対応
@@ -108,7 +114,7 @@ export interface IResultAsInvoice {
108
114
  */
109
115
  paymentMethodAsObject: IResultPaymentMethod;
110
116
  /**
111
- * 決済ID
117
+ * 決済方法ID
112
118
  */
113
119
  paymentMethodId: string;
114
120
  /**
@@ -131,7 +137,13 @@ export interface IResultAsInvoice {
131
137
  typeOf: ResultType;
132
138
  issuedThrough: IOrderPaymentMethodIssuedThrough;
133
139
  }
134
- export type IResult = IResultAsInvoice | IResultAsInvoice[];
140
+ export type IResultAsPermit = Pick<IPermitAsServiceOutput, 'typeOf' | 'issuedThrough'> & {
141
+ /**
142
+ * メンバーシップコード
143
+ */
144
+ identifier: string;
145
+ };
146
+ export type IResult = [IResultAsInvoice, IResultAsPermit?];
135
147
  export interface IPurpose {
136
148
  typeOf: TransactionType.PlaceOrder;
137
149
  id: string;
@@ -150,9 +162,6 @@ export interface IInstrumentAsAssetTransaction {
150
162
  identifier: ServiceIdentifier;
151
163
  }
152
164
  export type IInstrument = IInstrumentAsAssetTransaction | IInstrumentAsService;
153
- /**
154
- * 決済承認アクション属性
155
- */
156
165
  export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
157
166
  typeOf: ActionType.AuthorizeAction;
158
167
  object: IObject;
@@ -53,6 +53,7 @@ export interface IAcceptedPointAward {
53
53
  };
54
54
  }
55
55
  export type IServiceOutput = Omit<IPermit, 'issuedThrough'> & {
56
+ identifier: string;
56
57
  issuedThrough?: IIssuedThroughAsProduct;
57
58
  };
58
59
  export interface IAcceptedItemOffered {
package/lib/order.d.ts CHANGED
@@ -111,6 +111,7 @@ export type IEventReservation = Pick<EventReservationFactory.IReservation, 'addi
111
111
  };
112
112
  export type IReservation = IBusReservation | IEventReservation;
113
113
  export type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | 'name' | 'typeOf' | 'validFor'> & {
114
+ identifier: string;
114
115
  issuedThrough?: IIssuedThroughAsProduct;
115
116
  };
116
117
  export interface IMoneyTransferPendingTransaction {
@@ -53,6 +53,7 @@ export type IReservation = IBusReservationAsGood | IEventReservationAsGood;
53
53
  export type IReservationWithDetail = (IEventReservationAsGood & IEventReservation) | (IBusReservationAsGood & IBusReservation);
54
54
  export type IPermitIssuedThrough = Pick<PermitFactory.IIssuedThrough, 'id' | 'typeOf' | 'serviceType'>;
55
55
  export type IPermitAsGood = Pick<PermitFactory.IPermit, 'identifier' | 'typeOf' | 'name' | 'validFor'> & {
56
+ identifier: string;
56
57
  issuedThrough?: IPermitIssuedThrough;
57
58
  };
58
59
  /**
package/lib/permit.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare enum PermitType {
9
9
  Permit = "Permit"
10
10
  }
11
11
  export type IIssuedThroughAsPaymentService = Pick<IProduct, 'id' | 'serviceType'> & {
12
- typeOf: PaymentServiceType.CreditCard;
12
+ typeOf: PaymentServiceType.CreditCard | PaymentServiceType.FaceToFace;
13
13
  };
14
14
  export type IIssuedThroughAsProduct = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
15
15
  export type IIssuedThrough = IIssuedThroughAsPaymentService | IIssuedThroughAsProduct;
@@ -368,7 +368,7 @@ export interface IStringSearchConditions {
368
368
  * ソート条件
369
369
  */
370
370
  export interface ISortOrder {
371
- modifiedTime?: SortType;
371
+ bookingTime?: SortType;
372
372
  }
373
373
  export interface IProgramMembershipUsedSearchConditions {
374
374
  identifier?: {
@@ -64,7 +64,7 @@ export interface IRefundParams {
64
64
  object: {
65
65
  paymentMethod: {
66
66
  /**
67
- * 返金対象決済ID
67
+ * 返金対象決済方法ID
68
68
  */
69
69
  paymentMethodId: string;
70
70
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.379.0",
3
+ "version": "4.381.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",