@chevre/factory 4.362.0-alpha.0 → 4.362.0-alpha.2
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/action/interact/confirm/pay.d.ts +0 -2
- package/lib/action/interact/confirm.d.ts +1 -1
- package/lib/action/trade/order.d.ts +0 -6
- package/lib/action/transfer/give/pointAward.d.ts +3 -2
- package/lib/action/transfer/give/pointAward.js +4 -2
- package/lib/action.d.ts +4 -3
- package/lib/index.d.ts +0 -6
- package/lib/index.js +0 -5
- package/lib/transaction/placeOrder.d.ts +0 -10
- package/package.json +1 -1
- package/lib/action/authorize/award/point.d.ts +0 -44
- package/lib/action/authorize/award/point.js +0 -7
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
2
2
|
import { ISimpleOrder } from '../../../order';
|
|
3
|
-
import { IInstrument } from '../../authorize/paymentMethod/any';
|
|
4
3
|
import * as ConfirmActionFactory from '../confirm';
|
|
5
4
|
export type IPurpose = ISimpleOrder;
|
|
6
5
|
export interface IPayAssetTransaction {
|
|
@@ -21,7 +20,6 @@ export interface IPayAssetTransaction {
|
|
|
21
20
|
export type IObject = IPayAssetTransaction[];
|
|
22
21
|
export type IResult = any;
|
|
23
22
|
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
24
|
-
instrument: IInstrument;
|
|
25
23
|
purpose: IPurpose;
|
|
26
24
|
}
|
|
27
25
|
/**
|
|
@@ -16,7 +16,7 @@ export interface ITransactionPurpose {
|
|
|
16
16
|
export type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
|
|
17
17
|
export type IResult = any;
|
|
18
18
|
export type IPotentialActions = any;
|
|
19
|
-
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | '
|
|
19
|
+
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf'> {
|
|
20
20
|
agent: IAgent;
|
|
21
21
|
purpose: IPurpose;
|
|
22
22
|
}
|
|
@@ -2,7 +2,6 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { ISimpleOrder } from '../../order';
|
|
4
4
|
import { TransactionType } from '../../transactionType';
|
|
5
|
-
import { IAttributes as IGivePointAwardActionAttributes } from '../transfer/give/pointAward';
|
|
6
5
|
import { IAttributes as ISendOrderActionAttributes } from '../transfer/send/order';
|
|
7
6
|
export type IAgent = ActionFactory.IParticipant;
|
|
8
7
|
export type IRecipient = ActionFactory.IParticipant;
|
|
@@ -10,11 +9,6 @@ export type IObject = ISimpleOrder;
|
|
|
10
9
|
export type IResult = any;
|
|
11
10
|
export type ISendOrderPotentialAction = Pick<ISendOrderActionAttributes, 'potentialActions'>;
|
|
12
11
|
export interface IPotentialActions {
|
|
13
|
-
/**
|
|
14
|
-
* ポイント付与アクション
|
|
15
|
-
* 現時点で複数口座にポイントを付与することはないが、可能性もこめてリストで持っておく
|
|
16
|
-
*/
|
|
17
|
-
givePointAward?: IGivePointAwardActionAttributes[];
|
|
18
12
|
sendOrder?: ISendOrderPotentialAction;
|
|
19
13
|
}
|
|
20
14
|
export interface IPurpose {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import * as OrderFactory from '../../../order';
|
|
3
|
-
import { ObjectType as AuthorizePointAwardActionObjectType } from '../../authorize/award/point';
|
|
4
3
|
import * as GiveActionFactory from '../give';
|
|
5
4
|
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
6
|
-
export
|
|
5
|
+
export declare enum ObjectType {
|
|
6
|
+
PointAward = "PointAward"
|
|
7
|
+
}
|
|
7
8
|
/**
|
|
8
9
|
* ポイント特典付与対象
|
|
9
10
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ObjectType = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
4
|
+
var ObjectType;
|
|
5
|
+
(function (ObjectType) {
|
|
6
|
+
ObjectType["PointAward"] = "PointAward";
|
|
7
|
+
})(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
|
package/lib/action.d.ts
CHANGED
|
@@ -13,19 +13,23 @@ export interface IParticipantOptionalAttributes {
|
|
|
13
13
|
export type IParticipantAsWebApplication = IParticipantOptionalAttributes & {
|
|
14
14
|
typeOf: CreativeWorkType.WebApplication;
|
|
15
15
|
id: string;
|
|
16
|
+
identifier?: never;
|
|
16
17
|
};
|
|
17
18
|
export type IParticipantAsPerson = IParticipantOptionalAttributes & Pick<IPersonAttributes, 'id' | 'typeOf'>;
|
|
18
19
|
export type IParticipantAsSeller = IParticipantOptionalAttributes & {
|
|
19
20
|
typeOf: OrganizationType.Corporation;
|
|
20
21
|
id: string;
|
|
22
|
+
identifier?: never;
|
|
21
23
|
};
|
|
22
24
|
export type IParticipantAsProject = IParticipantOptionalAttributes & {
|
|
23
25
|
typeOf: OrganizationType.Project;
|
|
24
26
|
id: string;
|
|
27
|
+
identifier?: never;
|
|
25
28
|
};
|
|
26
29
|
export type IParticipantAsCustomer = IParticipantOptionalAttributes & {
|
|
27
30
|
typeOf: OrganizationType.Organization;
|
|
28
31
|
id: string;
|
|
32
|
+
identifier?: never;
|
|
29
33
|
};
|
|
30
34
|
/**
|
|
31
35
|
* アクションへの関係者
|
|
@@ -37,9 +41,6 @@ export type IParticipant = IParticipantAsWebApplication | IParticipantAsPerson |
|
|
|
37
41
|
export interface IPurpose {
|
|
38
42
|
typeOf: string;
|
|
39
43
|
}
|
|
40
|
-
/**
|
|
41
|
-
* 追加属性
|
|
42
|
-
*/
|
|
43
44
|
/**
|
|
44
45
|
* アクション属性
|
|
45
46
|
*/
|
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export import waiter = waiter;
|
|
|
8
8
|
import * as AccountFactory from './account';
|
|
9
9
|
import * as ActionFactory from './action';
|
|
10
10
|
import * as AuthorizeActionFactory from './action/authorize';
|
|
11
|
-
import * as PointAwardAuthorizeActionFactory from './action/authorize/award/point';
|
|
12
11
|
import * as AuthorizeEventServiceOfferActionFactory from './action/authorize/offer/eventService';
|
|
13
12
|
import * as AuthorizeMoneyTransferOfferActionFactory from './action/authorize/offer/moneyTransfer';
|
|
14
13
|
import * as AuthorizeProductOfferActionFactory from './action/authorize/offer/product';
|
|
@@ -207,14 +206,9 @@ export declare namespace action {
|
|
|
207
206
|
namespace authorize {
|
|
208
207
|
export import IAction = AuthorizeActionFactory.IAction;
|
|
209
208
|
export import IAttributes = AuthorizeActionFactory.IAttributes;
|
|
210
|
-
namespace award {
|
|
211
|
-
export import point = PointAwardAuthorizeActionFactory;
|
|
212
|
-
}
|
|
213
209
|
namespace paymentMethod {
|
|
214
210
|
export import any = AuthorizeAnyPaymentActionFactory;
|
|
215
211
|
}
|
|
216
|
-
namespace discount {
|
|
217
|
-
}
|
|
218
212
|
namespace offer {
|
|
219
213
|
export import eventService = AuthorizeEventServiceOfferActionFactory;
|
|
220
214
|
export import moneyTransfer = AuthorizeMoneyTransferOfferActionFactory;
|
package/lib/index.js
CHANGED
|
@@ -10,7 +10,6 @@ var cognito = require("./cognito");
|
|
|
10
10
|
exports.cognito = cognito;
|
|
11
11
|
exports.waiter = waiter;
|
|
12
12
|
var AccountFactory = require("./account");
|
|
13
|
-
var PointAwardAuthorizeActionFactory = require("./action/authorize/award/point");
|
|
14
13
|
var AuthorizeEventServiceOfferActionFactory = require("./action/authorize/offer/eventService");
|
|
15
14
|
var AuthorizeMoneyTransferOfferActionFactory = require("./action/authorize/offer/moneyTransfer");
|
|
16
15
|
var AuthorizeProductOfferActionFactory = require("./action/authorize/offer/product");
|
|
@@ -164,10 +163,6 @@ var action;
|
|
|
164
163
|
(function (action) {
|
|
165
164
|
var authorize;
|
|
166
165
|
(function (authorize) {
|
|
167
|
-
var award;
|
|
168
|
-
(function (award) {
|
|
169
|
-
award.point = PointAwardAuthorizeActionFactory;
|
|
170
|
-
})(award = authorize.award || (authorize.award = {}));
|
|
171
166
|
// tslint:disable-next-line:no-shadowed-variable
|
|
172
167
|
var paymentMethod;
|
|
173
168
|
(function (paymentMethod) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as waiter from '@waiter/factory';
|
|
2
2
|
import { AccountType } from '../accountType';
|
|
3
3
|
import { IAttributes as IOrderActionAttributes } from '../action/trade/order';
|
|
4
|
-
import { IObject as IGivePointAwardObject } from '../action/transfer/give/pointAward';
|
|
5
4
|
import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult, IPaymentMethodWithoutDetail } from '../assetTransaction/pay';
|
|
6
5
|
import { IExtendId } from '../autoGenerated';
|
|
7
6
|
import { IClientUser } from '../clientUser';
|
|
@@ -79,9 +78,6 @@ export interface IObject {
|
|
|
79
78
|
* WAITER許可証
|
|
80
79
|
*/
|
|
81
80
|
passport?: waiter.passport.IPassport;
|
|
82
|
-
potentialActions?: {
|
|
83
|
-
givePointAward?: IGivePointAwardParams[];
|
|
84
|
-
};
|
|
85
81
|
}
|
|
86
82
|
export interface IStartParamsWithoutDetail {
|
|
87
83
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
@@ -111,12 +107,6 @@ export interface IStartParams extends Pick<TransactionFactory.IStartParams<Trans
|
|
|
111
107
|
expiresInSeconds: number;
|
|
112
108
|
}
|
|
113
109
|
type ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
|
|
114
|
-
/**
|
|
115
|
-
* インセンティブ付与パラメータ
|
|
116
|
-
*/
|
|
117
|
-
export interface IGivePointAwardParams {
|
|
118
|
-
object?: IGivePointAwardObject;
|
|
119
|
-
}
|
|
120
110
|
/**
|
|
121
111
|
* 取引確定後アクションパラメータ
|
|
122
112
|
*/
|
package/package.json
CHANGED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as ActionFactory from '../../../action';
|
|
2
|
-
import { ActionType } from '../../../actionType';
|
|
3
|
-
import { TransactionType } from '../../../transactionType';
|
|
4
|
-
import * as AuthorizeActionFactory from '../../authorize';
|
|
5
|
-
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
6
|
-
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
7
|
-
export declare enum ObjectType {
|
|
8
|
-
PointAward = "PointAward"
|
|
9
|
-
}
|
|
10
|
-
export interface IObject {
|
|
11
|
-
typeOf: ObjectType;
|
|
12
|
-
/**
|
|
13
|
-
* 金額
|
|
14
|
-
*/
|
|
15
|
-
amount: number;
|
|
16
|
-
/**
|
|
17
|
-
* 入金先カード番号
|
|
18
|
-
*/
|
|
19
|
-
toAccountNumber: string;
|
|
20
|
-
/**
|
|
21
|
-
* 説明
|
|
22
|
-
*/
|
|
23
|
-
notes?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface IResult {
|
|
26
|
-
amount: number;
|
|
27
|
-
}
|
|
28
|
-
export interface IPurpose {
|
|
29
|
-
typeOf: TransactionType;
|
|
30
|
-
id: string;
|
|
31
|
-
}
|
|
32
|
-
export type IError = any;
|
|
33
|
-
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
34
|
-
typeOf: ActionType.AuthorizeAction;
|
|
35
|
-
object: IObject;
|
|
36
|
-
agent: IAgent;
|
|
37
|
-
recipient: IRecipient;
|
|
38
|
-
purpose: IPurpose;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* ポイントインセンティブ承認アクション
|
|
42
|
-
* 注文取引のインセンティブとしてポイントを付与する場合に使用されます。
|
|
43
|
-
*/
|
|
44
|
-
export type IAction = ActionFactory.IAction<IAttributes>;
|