@chevre/factory 4.202.0 → 4.205.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,36 @@
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';
7
+ import { IPaymentServiceOutput } from '../../invoice';
5
8
  import { IMonetaryAmount } from '../../monetaryAmount';
9
+ import { OrderType } from '../../order';
6
10
  import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
7
11
  import { IPropertyValue } from '../../propertyValue';
8
12
  import { ISeller } from '../../seller';
9
13
  import { PaymentServiceType } from '../../service/paymentService';
14
+ import { TransactionType } from '../../transactionType';
10
15
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
11
16
  export declare type IAgent = ActionFactory.IParticipant;
12
17
  export declare type IRecipient = ISeller;
13
18
  export interface IOrderAsPayPurpose {
14
- typeOf: string;
19
+ typeOf: OrderType.Order;
15
20
  confirmationNumber?: string;
16
21
  orderNumber?: string;
17
22
  }
18
- export interface ITransactionAsPayPurpose {
19
- typeOf: string;
23
+ export interface IAssetTransactionAsPayPurpose {
24
+ typeOf: AssetTransactionType.Pay | AssetTransactionType.Refund;
20
25
  id?: string;
21
26
  transactionNumber?: string;
22
27
  }
23
- export declare type IPayPurpose = IOrderAsPayPurpose | ITransactionAsPayPurpose;
28
+ export interface ITransactionAsPayPurpose {
29
+ typeOf: TransactionType;
30
+ id: string;
31
+ }
32
+ export declare type IReturnActionAsPayPurpose = IReturnOrderActionAttributes;
33
+ export declare type IPayPurpose = IOrderAsPayPurpose | IAssetTransactionAsPayPurpose | IReturnActionAsPayPurpose | ITransactionAsPayPurpose;
24
34
  export declare type IPurpose = IPayPurpose;
25
35
  export declare type AvailablePaymentMethodType = string;
26
36
  export interface IPendingTransaction {
@@ -81,6 +91,10 @@ export interface IPaymentService {
81
91
  * ムビチケリスト
82
92
  */
83
93
  movieTickets?: IMovieTicket[];
94
+ /**
95
+ * 決済サービスによって発行された決済カード
96
+ */
97
+ serviceOutput?: IPaymentServiceOutput;
84
98
  }
85
99
  export declare type IObject = IPaymentService[];
86
100
  export declare type IInformPayment = IInformActionAttributes<any, any>;
@@ -136,12 +136,20 @@ export interface IAcceptedTicketOfferWithoutDetail {
136
136
  /**
137
137
  * 受け入れられたチケットオファー
138
138
  */
139
- export declare type IAcceptedTicketOffer = IAcceptedTicketOfferWithoutDetail & ITicketOffer & {
139
+ export declare type IAcceptedTicketOffer = Omit<IAcceptedTicketOfferWithoutDetail, 'priceSpecification'> & ITicketOffer & {
140
140
  itemOffered?: IAcceptedTicketOfferItemOffered;
141
141
  };
142
142
  export interface IAcceptedOffer4object {
143
143
  id: string;
144
144
  itemOffered: IAcceptedTicketOfferItemOffered4object;
145
+ priceSpecification?: {
146
+ appliesToMovieTicket?: {
147
+ /**
148
+ * 適用MovieTicket購入番号
149
+ */
150
+ identifier?: string;
151
+ };
152
+ };
145
153
  }
146
154
  /**
147
155
  * 確定時予約インターフェース
@@ -2,26 +2,47 @@ import { IMonetaryAmount } from './monetaryAmount';
2
2
  import * as OrderFactory from './order';
3
3
  import { PaymentStatusType } from './paymentStatusType';
4
4
  import * as PersonFactory from './person';
5
- import { PersonType } from './personType';
6
- import { IProject } from './project';
7
5
  import * as SellerFactory from './seller';
8
- import { SortType } from './sortType';
6
+ import { PaymentServiceType } from './service/paymentService';
9
7
  export declare type IBroker = SellerFactory.ISeller | PersonFactory.IPerson;
10
8
  export declare type IProvider = SellerFactory.ISeller | PersonFactory.IPerson;
11
9
  export interface IReferenceOrder extends OrderFactory.IOrder {
12
10
  acceptedOffers: OrderFactory.IAcceptedOffer<any>[];
13
11
  }
12
+ export interface IMovieTicketAsPaymentServiceOutput {
13
+ /**
14
+ * 購入管理番号
15
+ */
16
+ identifier: string;
17
+ /**
18
+ * 利用対象予約
19
+ */
20
+ serviceOutput?: {
21
+ /**
22
+ * 予約価格
23
+ */
24
+ price?: number;
25
+ };
26
+ }
27
+ export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[];
28
+ /**
29
+ * 決済方法(サービス)
30
+ */
31
+ export interface IPaymentMethod {
32
+ id: string;
33
+ typeOf: PaymentServiceType;
34
+ serviceOutput?: IPaymentServiceOutput;
35
+ }
14
36
  /**
15
37
  * インボイスインターフェース
16
38
  * {@link https://schema.org/Invoice}
17
39
  */
18
40
  export interface IInvoice {
19
- project: IProject;
20
41
  typeOf: 'Invoice';
21
42
  /**
22
43
  * The identifier for the account the payment will be applied to.
23
44
  */
24
- accountId: string;
45
+ accountId?: string;
25
46
  /**
26
47
  * The time interval used to compute the invoice.
27
48
  */
@@ -54,7 +75,7 @@ export interface IInvoice {
54
75
  /**
55
76
  * The name of the credit card or other method of payment for the order.
56
77
  */
57
- paymentMethod: string;
78
+ paymentMethod: IPaymentMethod;
58
79
  /**
59
80
  * An identifier for the method of payment used (e.g. the last 4 digits of the credit card).
60
81
  */
@@ -62,7 +83,7 @@ export interface IInvoice {
62
83
  /**
63
84
  * The status of payment; whether the invoice has been paid or not.
64
85
  */
65
- paymentStatus: PaymentStatusType;
86
+ paymentStatus?: PaymentStatusType;
66
87
  /**
67
88
  * The service provider, service operator, or service performer; the goods producer.
68
89
  * Another party (a seller) may offer those services or goods on behalf of the provider.
@@ -72,7 +93,7 @@ export interface IInvoice {
72
93
  /**
73
94
  * The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
74
95
  */
75
- referencesOrder: IReferenceOrder;
96
+ referencesOrder?: IReferenceOrder;
76
97
  /**
77
98
  * The date the invoice is scheduled to be paid.
78
99
  */
@@ -85,50 +106,6 @@ export interface IInvoice {
85
106
  /**
86
107
  * ソート条件インターフェース
87
108
  */
88
- export interface ISortOrder {
89
- createdAt?: SortType;
90
- }
91
- export interface ICustomerSearchConditions {
92
- typeOf?: PersonType;
93
- ids?: string[];
94
- identifiers?: PersonFactory.IIdentifier;
95
- /**
96
- * メールアドレス
97
- */
98
- email?: string;
99
- /**
100
- * 電話番号
101
- */
102
- telephone?: string;
103
- memberOf?: {
104
- /**
105
- * 会員番号
106
- */
107
- membershipNumbers?: string[];
108
- };
109
- }
110
- export interface IReferencesOrderSearchConditions {
111
- orderNumbers?: string[];
112
- }
113
109
  /**
114
110
  * インボイス検索条件インターフェース
115
111
  */
116
- export interface ISearchConditions {
117
- limit?: number;
118
- page?: number;
119
- sort?: ISortOrder;
120
- project?: {
121
- id?: {
122
- $eq?: string;
123
- };
124
- };
125
- createdFrom?: Date;
126
- createdThrough?: Date;
127
- accountIds?: string[];
128
- confirmationNumbers?: string[];
129
- customer?: ICustomerSearchConditions;
130
- paymentMethods?: string[];
131
- paymentMethodIds?: string[];
132
- paymentStatuses?: PaymentStatusType[];
133
- referencesOrder?: IReferencesOrderSearchConditions;
134
- }
@@ -1,2 +1,50 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * ソート条件インターフェース
5
+ */
6
+ // export interface ISortOrder {
7
+ // createdAt?: SortType;
8
+ // }
9
+ // export interface ICustomerSearchConditions {
10
+ // typeOf?: PersonType;
11
+ // ids?: string[];
12
+ // identifiers?: PersonFactory.IIdentifier;
13
+ // /**
14
+ // * メールアドレス
15
+ // */
16
+ // email?: string;
17
+ // /**
18
+ // * 電話番号
19
+ // */
20
+ // telephone?: string;
21
+ // memberOf?: {
22
+ // /**
23
+ // * 会員番号
24
+ // */
25
+ // membershipNumbers?: string[];
26
+ // };
27
+ // }
28
+ // export interface IReferencesOrderSearchConditions {
29
+ // orderNumbers?: string[];
30
+ // }
31
+ /**
32
+ * インボイス検索条件インターフェース
33
+ */
34
+ // export interface ISearchConditions {
35
+ // limit?: number;
36
+ // page?: number;
37
+ // sort?: ISortOrder;
38
+ // project?: {
39
+ // id?: { $eq?: string };
40
+ // };
41
+ // createdFrom?: Date;
42
+ // createdThrough?: Date;
43
+ // accountIds?: string[];
44
+ // confirmationNumbers?: string[];
45
+ // customer?: ICustomerSearchConditions;
46
+ // paymentMethods?: string[];
47
+ // paymentMethodIds?: string[];
48
+ // paymentStatuses?: PaymentStatusType[];
49
+ // referencesOrder?: IReferencesOrderSearchConditions;
50
+ // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.202.0",
3
+ "version": "4.205.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",