@chevre/factory 4.277.0-alpha.1 → 4.278.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.
|
@@ -5,7 +5,7 @@ import * as ReturnActionFactory from '../return';
|
|
|
5
5
|
import { IAttributes as ISendEmailMessageActionAttributes } from '../send/message/email';
|
|
6
6
|
import * as ReturnMoneyTransferActionFactory from './moneyTransfer';
|
|
7
7
|
import * as ReturnPointAwardActionFactory from './pointAward';
|
|
8
|
-
export declare type IAgent =
|
|
8
|
+
export declare type IAgent = OrderFactory.IParticipantAsReturner;
|
|
9
9
|
export declare type IRecipient = ActionFactory.IParticipantAsSeller;
|
|
10
10
|
/**
|
|
11
11
|
* 返却対象は注文
|
package/lib/order.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from './action';
|
|
2
2
|
import { IPaymentService, ITotalPaymentDue } from './action/trade/pay';
|
|
3
3
|
import { IAmount as IMoneyTransferAmount, IPaymentCard as IPaymentCardAsMoneyTransferToLocation } from './action/transfer/moneyTransfer';
|
|
4
4
|
import { ActionType } from './actionType';
|
|
@@ -166,10 +166,6 @@ export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4
|
|
|
166
166
|
* 販売者
|
|
167
167
|
*/
|
|
168
168
|
export interface ISeller {
|
|
169
|
-
project: {
|
|
170
|
-
id: string;
|
|
171
|
-
typeOf: OrganizationType.Project;
|
|
172
|
-
};
|
|
173
169
|
id: string;
|
|
174
170
|
typeOf: OrganizationType.Corporation;
|
|
175
171
|
name: string;
|
|
@@ -181,17 +177,18 @@ export declare type IWebApplicationCustomer = Pick<IWebApplication, 'id' | 'type
|
|
|
181
177
|
/**
|
|
182
178
|
* 顧客組織としてのカスタマー
|
|
183
179
|
*/
|
|
184
|
-
export declare type IOrganizationCustomer = Pick<ICustomerOrganization, 'id' | 'typeOf'
|
|
180
|
+
export declare type IOrganizationCustomer = Pick<ICustomerOrganization, 'id' | 'typeOf'> & IProfile;
|
|
185
181
|
export declare type IPersonCustomer = Pick<IPerson, 'id' | 'typeOf' | 'memberOf'> & IProfile;
|
|
186
182
|
/**
|
|
187
183
|
* カスタマー
|
|
188
184
|
*/
|
|
189
185
|
export declare type ICustomer = IPersonCustomer | IWebApplicationCustomer | IOrganizationCustomer;
|
|
190
|
-
export declare type IBroker = IPerson
|
|
186
|
+
export declare type IBroker = Pick<IPerson, 'id' | 'identifier' | 'typeOf'>;
|
|
191
187
|
/**
|
|
192
188
|
* 返品者
|
|
193
189
|
*/
|
|
194
|
-
export declare type
|
|
190
|
+
export declare type IParticipantAsReturner = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
|
|
191
|
+
export declare type IReturner = Pick<IParticipantAsReturner, 'id' | 'typeOf'>;
|
|
195
192
|
export declare type IIdentifier = IPropertyValue<string>[];
|
|
196
193
|
export declare type ISimpleCustomer = Pick<ICustomer, 'id' | 'typeOf' | 'name'>;
|
|
197
194
|
export interface ISimpleOrder extends Pick<IThing, 'name'> {
|
|
@@ -207,10 +204,6 @@ export interface ISimpleOrder extends Pick<IThing, 'name'> {
|
|
|
207
204
|
* Party placing the order.
|
|
208
205
|
*/
|
|
209
206
|
customer: ISimpleCustomer;
|
|
210
|
-
/**
|
|
211
|
-
* A number that confirms the given order or payment has been received.
|
|
212
|
-
*/
|
|
213
|
-
confirmationNumber: string;
|
|
214
207
|
/**
|
|
215
208
|
* The merchant- specific identifier for the transaction.
|
|
216
209
|
*/
|
|
@@ -276,6 +269,10 @@ export interface IOrder extends ISimpleOrder {
|
|
|
276
269
|
* In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
|
|
277
270
|
*/
|
|
278
271
|
broker?: IBroker;
|
|
272
|
+
/**
|
|
273
|
+
* A number that confirms the given order or payment has been received.
|
|
274
|
+
*/
|
|
275
|
+
confirmationNumber: string;
|
|
279
276
|
customer: ICustomer;
|
|
280
277
|
/**
|
|
281
278
|
* Date order was returned.
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -61,10 +61,6 @@ export interface IOwnerAsWebApplication {
|
|
|
61
61
|
}
|
|
62
62
|
export declare type IOwner = IOwnerAsOrganization | IOwnerAsPerson | IOwnerAsWebApplication;
|
|
63
63
|
export interface IAcquiredFrom {
|
|
64
|
-
project: {
|
|
65
|
-
id: string;
|
|
66
|
-
typeOf: OrganizationType.Project;
|
|
67
|
-
};
|
|
68
64
|
id: string;
|
|
69
65
|
typeOf: OrganizationType.Corporation;
|
|
70
66
|
name: string;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { IAttributes as IConfirmPayActionAttributes } from '../action/interact/confirm/pay';
|
|
1
|
+
import { IAttributes as IConfirmPayActionAttributes, IPurpose as IConfirmPayPurpose } from '../action/interact/confirm/pay';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export declare type
|
|
5
|
+
export declare type IPurpose = IConfirmPayPurpose & {
|
|
6
|
+
confirmationNumber: string;
|
|
7
|
+
};
|
|
8
|
+
export interface IData extends IConfirmPayActionAttributes {
|
|
9
|
+
purpose: IPurpose;
|
|
10
|
+
}
|
|
6
11
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
12
|
name: TaskName.ConfirmPayTransaction;
|
|
8
13
|
data: IData;
|
package/lib/task/sendOrder.d.ts
CHANGED
|
@@ -3,9 +3,12 @@ import { IExtendId } from '../autoGenerated';
|
|
|
3
3
|
import { IProject } from '../project';
|
|
4
4
|
import * as TaskFactory from '../task';
|
|
5
5
|
import { TaskName } from '../taskName';
|
|
6
|
+
export declare type IObject = SendOrderActionFactory.IObject & {
|
|
7
|
+
confirmationNumber: string;
|
|
8
|
+
};
|
|
6
9
|
export interface IData {
|
|
7
10
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
8
|
-
object:
|
|
11
|
+
object: IObject;
|
|
9
12
|
potentialActions?: SendOrderActionFactory.IPotentialActions;
|
|
10
13
|
}
|
|
11
14
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
@@ -13,6 +16,6 @@ export interface IAttributes extends TaskFactory.IAttributes {
|
|
|
13
16
|
data: IData;
|
|
14
17
|
}
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
19
|
+
* 注文配送タスク
|
|
17
20
|
*/
|
|
18
21
|
export declare type ITask = IExtendId<IAttributes>;
|
package/lib/transaction.d.ts
CHANGED
|
@@ -10,10 +10,10 @@ import { SortType } from './sortType';
|
|
|
10
10
|
import { TransactionStatusType } from './transactionStatusType';
|
|
11
11
|
import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
|
|
12
12
|
import { TransactionType } from './transactionType';
|
|
13
|
-
export interface IAgentAsWebApplication extends IWebApplicationAttributes {
|
|
13
|
+
export interface IAgentAsWebApplication extends Pick<IWebApplicationAttributes, 'id' | 'identifier' | 'typeOf'> {
|
|
14
14
|
name?: string;
|
|
15
15
|
}
|
|
16
|
-
export interface IAgentAsPerson extends IPersonAttributes {
|
|
16
|
+
export interface IAgentAsPerson extends Pick<IPersonAttributes, 'id' | 'identifier' | 'memberOf' | 'typeOf'> {
|
|
17
17
|
name?: string;
|
|
18
18
|
}
|
|
19
19
|
export declare type IAgent = IAgentAsWebApplication | IAgentAsPerson;
|