@chevre/factory 4.201.0 → 4.204.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.
@@ -77,7 +77,7 @@ export declare type IObject<T extends WebAPIFactory.Identifier> = {
77
77
  * Chevre進行中取引
78
78
  */
79
79
  pendingTransaction?: IPendingTransaction;
80
- } & IObjectWithoutDetail<T>;
80
+ } & Omit<IObjectWithoutDetail<T>, 'acceptedOffer'>;
81
81
  export interface IPurpose {
82
82
  typeOf: TransactionType.PlaceOrder;
83
83
  id: string;
@@ -1,26 +1,35 @@
1
1
  import * as GMO from '@motionpicture/gmo-service';
2
2
  import * as AccountFactory from '../../account';
3
3
  import * as ActionFactory from '../../action';
4
+ import { IAttributes as IReturnOrderActionAttributes } from '../../action/transfer/return/order';
4
5
  import { ActionType } from '../../actionType';
6
+ import { AssetTransactionType } from '../../assetTransactionType';
5
7
  import { IMonetaryAmount } from '../../monetaryAmount';
8
+ import { OrderType } from '../../order';
6
9
  import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
7
10
  import { IPropertyValue } from '../../propertyValue';
8
11
  import { ISeller } from '../../seller';
9
12
  import { PaymentServiceType } from '../../service/paymentService';
13
+ import { TransactionType } from '../../transactionType';
10
14
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
11
15
  export declare type IAgent = ActionFactory.IParticipant;
12
16
  export declare type IRecipient = ISeller;
13
17
  export interface IOrderAsPayPurpose {
14
- typeOf: string;
18
+ typeOf: OrderType.Order;
15
19
  confirmationNumber?: string;
16
20
  orderNumber?: string;
17
21
  }
18
- export interface ITransactionAsPayPurpose {
19
- typeOf: string;
22
+ export interface IAssetTransactionAsPayPurpose {
23
+ typeOf: AssetTransactionType.Pay | AssetTransactionType.Refund;
20
24
  id?: string;
21
25
  transactionNumber?: string;
22
26
  }
23
- export declare type IPayPurpose = IOrderAsPayPurpose | ITransactionAsPayPurpose;
27
+ export interface ITransactionAsPayPurpose {
28
+ typeOf: TransactionType;
29
+ id: string;
30
+ }
31
+ export declare type IReturnActionAsPayPurpose = IReturnOrderActionAttributes;
32
+ export declare type IPayPurpose = IOrderAsPayPurpose | IAssetTransactionAsPayPurpose | IReturnActionAsPayPurpose | ITransactionAsPayPurpose;
24
33
  export declare type IPurpose = IPayPurpose;
25
34
  export declare type AvailablePaymentMethodType = string;
26
35
  export interface IPendingTransaction {
@@ -66,6 +75,22 @@ export interface IPaymentMethod {
66
75
  */
67
76
  additionalProperty: IPropertyValue<string>[];
68
77
  }
78
+ export interface IMovieTicketAsPaymentServiceOutput {
79
+ /**
80
+ * 購入管理番号
81
+ */
82
+ identifier: string;
83
+ /**
84
+ * 利用対象予約
85
+ */
86
+ serviceOutput?: {
87
+ /**
88
+ * 予約価格
89
+ */
90
+ price?: number;
91
+ };
92
+ }
93
+ export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[];
69
94
  export interface IPaymentService {
70
95
  typeOf: PaymentServiceType;
71
96
  /**
@@ -81,6 +106,10 @@ export interface IPaymentService {
81
106
  * ムビチケリスト
82
107
  */
83
108
  movieTickets?: IMovieTicket[];
109
+ /**
110
+ * 決済サービスによって発行された決済カード
111
+ */
112
+ serviceOutput?: IPaymentServiceOutput;
84
113
  }
85
114
  export declare type IObject = IPaymentService[];
86
115
  export declare type IInformPayment = IInformActionAttributes<any, any>;
@@ -124,16 +124,32 @@ export interface IAcceptedTicketOfferWithoutDetail {
124
124
  addOn?: IAcceptedAddOn[];
125
125
  paymentMethod?: IAcceptedPaymentMethod;
126
126
  additionalProperty?: IPropertyValue<string>[];
127
+ priceSpecification?: {
128
+ appliesToMovieTicket?: {
129
+ /**
130
+ * 適用MovieTicket購入番号
131
+ */
132
+ identifier?: string;
133
+ };
134
+ };
127
135
  }
128
136
  /**
129
137
  * 受け入れられたチケットオファー
130
138
  */
131
- export declare type IAcceptedTicketOffer = IAcceptedTicketOfferWithoutDetail & ITicketOffer & {
139
+ export declare type IAcceptedTicketOffer = Omit<IAcceptedTicketOfferWithoutDetail, 'priceSpecification'> & ITicketOffer & {
132
140
  itemOffered?: IAcceptedTicketOfferItemOffered;
133
141
  };
134
142
  export interface IAcceptedOffer4object {
135
143
  id: string;
136
144
  itemOffered: IAcceptedTicketOfferItemOffered4object;
145
+ priceSpecification?: {
146
+ appliesToMovieTicket?: {
147
+ /**
148
+ * 適用MovieTicket購入番号
149
+ */
150
+ identifier?: string;
151
+ };
152
+ };
137
153
  }
138
154
  /**
139
155
  * 確定時予約インターフェース
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.201.0",
3
+ "version": "4.204.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",