@chevre/factory 4.362.0-alpha.0 → 4.362.0-alpha.1

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.
@@ -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 import ObjectType = AuthorizePointAwardActionObjectType;
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 point_1 = require("../../authorize/award/point");
5
- exports.ObjectType = point_1.ObjectType;
4
+ var ObjectType;
5
+ (function (ObjectType) {
6
+ ObjectType["PointAward"] = "PointAward";
7
+ })(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.362.0-alpha.0",
3
+ "version": "4.362.0-alpha.1",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -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>;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectType = void 0;
4
- var ObjectType;
5
- (function (ObjectType) {
6
- ObjectType["PointAward"] = "PointAward";
7
- })(ObjectType = exports.ObjectType || (exports.ObjectType = {}));