@chevre/factory 4.371.0-alpha.0 → 4.371.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.
- package/lib/action/accept/pay.d.ts +33 -0
- package/lib/action/accept/pay.js +2 -0
- package/lib/action/accept.d.ts +1 -8
- package/lib/index.d.ts +6 -2
- package/lib/index.js +8 -2
- package/lib/task/publishPaymentUrl.d.ts +26 -0
- package/lib/task/publishPaymentUrl.js +2 -0
- package/lib/taskName.d.ts +4 -0
- package/lib/taskName.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as ActionFactory from '../../action';
|
|
2
|
+
import { ActionType } from '../../actionType';
|
|
3
|
+
import { IAgent, IObjectWithoutDetail } from '../../assetTransaction/pay';
|
|
4
|
+
import { AssetTransactionType } from '../../assetTransactionType';
|
|
5
|
+
import { TransactionType } from '../../transactionType';
|
|
6
|
+
import * as AcceptActionFactory from '../accept';
|
|
7
|
+
export { IAgent };
|
|
8
|
+
export interface IObject {
|
|
9
|
+
object: IObjectWithoutDetail;
|
|
10
|
+
transactionNumber: string;
|
|
11
|
+
typeOf: AssetTransactionType.Pay;
|
|
12
|
+
}
|
|
13
|
+
export interface IResult {
|
|
14
|
+
paymentMethodId: string;
|
|
15
|
+
paymentUrl: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IPurpose {
|
|
18
|
+
typeOf: TransactionType.PlaceOrder;
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 決済採用アクション属性
|
|
23
|
+
*/
|
|
24
|
+
export interface IAttributes extends AcceptActionFactory.IAttributes<IObject, IResult> {
|
|
25
|
+
typeOf: ActionType.AcceptAction;
|
|
26
|
+
object: IObject;
|
|
27
|
+
agent: IAgent;
|
|
28
|
+
purpose: IPurpose;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 決済採用アクション
|
|
32
|
+
*/
|
|
33
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
package/lib/action/accept.d.ts
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import * as ActionFactory from '../action';
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
|
-
import { TransactionType } from '../transactionType';
|
|
4
3
|
export type IObject = any;
|
|
5
4
|
export type IResult = any;
|
|
6
|
-
export
|
|
7
|
-
/**
|
|
8
|
-
* 注文取引ID
|
|
9
|
-
*/
|
|
10
|
-
id: string;
|
|
11
|
-
typeOf: TransactionType.PlaceOrder;
|
|
12
|
-
}
|
|
5
|
+
export type IPurpose = any;
|
|
13
6
|
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.AcceptAction, TObject, TResult> {
|
|
14
7
|
purpose?: IPurpose;
|
|
15
8
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export import cognito = cognito;
|
|
|
7
7
|
export import waiter = waiter;
|
|
8
8
|
import * as AccountFactory from './account';
|
|
9
9
|
import * as ActionFactory from './action';
|
|
10
|
-
import * as
|
|
10
|
+
import * as AcceptPayActionFactory from './action/accept/pay';
|
|
11
11
|
import * as AuthorizeActionFactory from './action/authorize';
|
|
12
12
|
import * as AuthorizeEventServiceOfferActionFactory from './action/authorize/offer/eventService';
|
|
13
13
|
import * as AuthorizeMoneyTransferOfferActionFactory from './action/authorize/offer/moneyTransfer';
|
|
@@ -156,6 +156,7 @@ import * as OnOrderPaymentCompletedTaskFactory from './task/onOrderPaymentComple
|
|
|
156
156
|
import * as OnResourceUpdatedTaskFactory from './task/onResourceUpdated';
|
|
157
157
|
import * as PayTaskFactory from './task/pay';
|
|
158
158
|
import * as PlaceOrderTaskFactory from './task/placeOrder';
|
|
159
|
+
import * as PublishPaymentUrlTaskFactory from './task/publishPaymentUrl';
|
|
159
160
|
import * as RefundTaskFactory from './task/refund';
|
|
160
161
|
import * as RegisterServiceTaskFactory from './task/registerService';
|
|
161
162
|
import * as ReserveTaskFactory from './task/reserve';
|
|
@@ -210,7 +211,9 @@ export declare namespace action {
|
|
|
210
211
|
export import IPurpose = ActionFactory.IPurpose;
|
|
211
212
|
export import ISortOrder = ActionFactory.ISortOrder;
|
|
212
213
|
export import ISearchConditions = ActionFactory.ISearchConditions;
|
|
213
|
-
|
|
214
|
+
namespace accept {
|
|
215
|
+
export import pay = AcceptPayActionFactory;
|
|
216
|
+
}
|
|
214
217
|
namespace authorize {
|
|
215
218
|
export import IAction = AuthorizeActionFactory.IAction;
|
|
216
219
|
export import IAttributes = AuthorizeActionFactory.IAttributes;
|
|
@@ -440,6 +443,7 @@ export declare namespace task {
|
|
|
440
443
|
export import importOffersFromCOA = ImportOffersFromCOATaskFactory;
|
|
441
444
|
export import moneyTransfer = MoneyTransferTaskFactory;
|
|
442
445
|
export import pay = PayTaskFactory;
|
|
446
|
+
export import publishPaymentUrl = PublishPaymentUrlTaskFactory;
|
|
443
447
|
export import refund = RefundTaskFactory;
|
|
444
448
|
export import registerService = RegisterServiceTaskFactory;
|
|
445
449
|
export import reserve = ReserveTaskFactory;
|
package/lib/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var cognito = require("./cognito");
|
|
|
10
10
|
exports.cognito = cognito;
|
|
11
11
|
exports.waiter = waiter;
|
|
12
12
|
var AccountFactory = require("./account");
|
|
13
|
-
var
|
|
13
|
+
var AcceptPayActionFactory = require("./action/accept/pay");
|
|
14
14
|
var AuthorizeEventServiceOfferActionFactory = require("./action/authorize/offer/eventService");
|
|
15
15
|
var AuthorizeMoneyTransferOfferActionFactory = require("./action/authorize/offer/moneyTransfer");
|
|
16
16
|
var AuthorizeProductOfferActionFactory = require("./action/authorize/offer/product");
|
|
@@ -136,6 +136,7 @@ var OnAuthorizationCreatedTaskFactory = require("./task/onAuthorizationCreated")
|
|
|
136
136
|
var OnEventChangedTaskFactory = require("./task/onEventChanged");
|
|
137
137
|
var OnResourceUpdatedTaskFactory = require("./task/onResourceUpdated");
|
|
138
138
|
var PayTaskFactory = require("./task/pay");
|
|
139
|
+
var PublishPaymentUrlTaskFactory = require("./task/publishPaymentUrl");
|
|
139
140
|
var RefundTaskFactory = require("./task/refund");
|
|
140
141
|
var RegisterServiceTaskFactory = require("./task/registerService");
|
|
141
142
|
var ReserveTaskFactory = require("./task/reserve");
|
|
@@ -167,7 +168,11 @@ exports.actionStatusType = actionStatusType_1.ActionStatusType;
|
|
|
167
168
|
exports.actionType = actionType_1.ActionType;
|
|
168
169
|
var action;
|
|
169
170
|
(function (action) {
|
|
170
|
-
|
|
171
|
+
// export import accept = AcceptActionFactory;
|
|
172
|
+
var accept;
|
|
173
|
+
(function (accept) {
|
|
174
|
+
accept.pay = AcceptPayActionFactory;
|
|
175
|
+
})(accept = action.accept || (action.accept = {}));
|
|
171
176
|
var authorize;
|
|
172
177
|
(function (authorize) {
|
|
173
178
|
// tslint:disable-next-line:no-shadowed-variable
|
|
@@ -391,6 +396,7 @@ var task;
|
|
|
391
396
|
task.importOffersFromCOA = ImportOffersFromCOATaskFactory;
|
|
392
397
|
task.moneyTransfer = MoneyTransferTaskFactory;
|
|
393
398
|
task.pay = PayTaskFactory;
|
|
399
|
+
task.publishPaymentUrl = PublishPaymentUrlTaskFactory;
|
|
394
400
|
task.refund = RefundTaskFactory;
|
|
395
401
|
task.registerService = RegisterServiceTaskFactory;
|
|
396
402
|
task.reserve = ReserveTaskFactory;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IObjectWithoutDetail, IPurpose } from '../action/authorize/paymentMethod/any';
|
|
2
|
+
import { ILocation } from '../action/trade/pay';
|
|
3
|
+
import { IExtendId } from '../autoGenerated';
|
|
4
|
+
import { PaymentServiceType } from '../service/paymentService';
|
|
5
|
+
import * as TaskFactory from '../task';
|
|
6
|
+
import { TaskName } from '../taskName';
|
|
7
|
+
export interface IData {
|
|
8
|
+
project: {
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
agent: {
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
object: Pick<IObjectWithoutDetail, 'amount' | 'creditCard' | 'issuedThrough' | 'method' | 'paymentMethod'>;
|
|
15
|
+
purpose: IPurpose;
|
|
16
|
+
paymentServiceType: PaymentServiceType;
|
|
17
|
+
location: ILocation;
|
|
18
|
+
}
|
|
19
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
20
|
+
name: TaskName.PublishPaymentUrl;
|
|
21
|
+
data: IData;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 決済URL発行タスク
|
|
25
|
+
*/
|
|
26
|
+
export type ITask = IExtendId<IAttributes>;
|
package/lib/taskName.d.ts
CHANGED
package/lib/taskName.js
CHANGED
|
@@ -80,6 +80,10 @@ var TaskName;
|
|
|
80
80
|
* 注文受付
|
|
81
81
|
*/
|
|
82
82
|
TaskName["PlaceOrder"] = "placeOrder";
|
|
83
|
+
/**
|
|
84
|
+
* 決済URL発行(2024-05-22~)
|
|
85
|
+
*/
|
|
86
|
+
TaskName["PublishPaymentUrl"] = "publishPaymentUrl";
|
|
83
87
|
TaskName["Refund"] = "refund";
|
|
84
88
|
TaskName["RegisterService"] = "registerService";
|
|
85
89
|
/**
|