@chevre/factory 4.276.0 → 4.277.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.
- package/lib/order.d.ts +7 -4
- package/package.json +1 -1
package/lib/order.d.ts
CHANGED
|
@@ -177,21 +177,23 @@ export interface ISeller {
|
|
|
177
177
|
/**
|
|
178
178
|
* ウェブアプリケーションとしてのカスタマー
|
|
179
179
|
*/
|
|
180
|
-
export declare type IWebApplicationCustomer = IWebApplication & IProfile;
|
|
180
|
+
export declare type IWebApplicationCustomer = Pick<IWebApplication, 'id' | 'typeOf'> & IProfile;
|
|
181
181
|
/**
|
|
182
182
|
* 顧客組織としてのカスタマー
|
|
183
183
|
*/
|
|
184
|
-
export declare type IOrganizationCustomer = ICustomerOrganization & IProfile;
|
|
184
|
+
export declare type IOrganizationCustomer = Pick<ICustomerOrganization, 'id' | 'typeOf' | 'project'> & IProfile;
|
|
185
|
+
export declare type IPersonCustomer = Pick<IPerson, 'id' | 'typeOf' | 'memberOf'> & IProfile;
|
|
185
186
|
/**
|
|
186
187
|
* カスタマー
|
|
187
188
|
*/
|
|
188
|
-
export declare type ICustomer =
|
|
189
|
+
export declare type ICustomer = IPersonCustomer | IWebApplicationCustomer | IOrganizationCustomer;
|
|
189
190
|
export declare type IBroker = IPerson;
|
|
190
191
|
/**
|
|
191
192
|
* 返品者
|
|
192
193
|
*/
|
|
193
194
|
export declare type IReturner = IParticipant;
|
|
194
195
|
export declare type IIdentifier = IPropertyValue<string>[];
|
|
196
|
+
export declare type ISimpleCustomer = Pick<ICustomer, 'id' | 'typeOf' | 'name'>;
|
|
195
197
|
export interface ISimpleOrder extends Pick<IThing, 'name'> {
|
|
196
198
|
/**
|
|
197
199
|
* object type
|
|
@@ -204,7 +206,7 @@ export interface ISimpleOrder extends Pick<IThing, 'name'> {
|
|
|
204
206
|
/**
|
|
205
207
|
* Party placing the order.
|
|
206
208
|
*/
|
|
207
|
-
customer:
|
|
209
|
+
customer: ISimpleCustomer;
|
|
208
210
|
/**
|
|
209
211
|
* A number that confirms the given order or payment has been received.
|
|
210
212
|
*/
|
|
@@ -274,6 +276,7 @@ export interface IOrder extends ISimpleOrder {
|
|
|
274
276
|
* In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
|
|
275
277
|
*/
|
|
276
278
|
broker?: IBroker;
|
|
279
|
+
customer: ICustomer;
|
|
277
280
|
/**
|
|
278
281
|
* Date order was returned.
|
|
279
282
|
*/
|