@chevre/factory 4.370.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/action/check/paymentMethod/movieTicket.d.ts +3 -3
- package/lib/index.d.ts +8 -2
- package/lib/index.js +10 -2
- package/lib/task/checkMovieTicket.d.ts +13 -0
- package/lib/task/checkMovieTicket.js +2 -0
- package/lib/task/publishPaymentUrl.d.ts +26 -0
- package/lib/task/publishPaymentUrl.js +2 -0
- package/lib/taskName.d.ts +8 -0
- package/lib/taskName.js +8 -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
|
}
|
|
@@ -9,7 +9,7 @@ export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.
|
|
|
9
9
|
export type IPurchaseNumberAuthIn = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthIn;
|
|
10
10
|
export type IPurchaseNumberAuthResult = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthResult;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* 認証対象の決済カード
|
|
13
13
|
*/
|
|
14
14
|
export type IMovieTicket = Pick<IMovieTicketPaymentCard, 'accessCode' | 'category' | 'identifier'> & {
|
|
15
15
|
serviceOutput: Pick<IMovieTicketServiceOutput, 'reservationFor'>;
|
|
@@ -37,7 +37,7 @@ export interface IResult {
|
|
|
37
37
|
}
|
|
38
38
|
export type IError = any;
|
|
39
39
|
export interface IPurpose {
|
|
40
|
-
typeOf: TransactionType;
|
|
40
|
+
typeOf: TransactionType.PlaceOrder;
|
|
41
41
|
id: string;
|
|
42
42
|
}
|
|
43
43
|
export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IResult> {
|
|
@@ -46,6 +46,6 @@ export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IRe
|
|
|
46
46
|
purpose?: IPurpose;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* 決済カード認証アクション
|
|
50
50
|
*/
|
|
51
51
|
export type IAction = ActionFactory.IAction<IAttributes>;
|
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';
|
|
@@ -134,6 +134,7 @@ import * as CancelAccountMoneyTransferTaskFactory from './task/cancelAccountMone
|
|
|
134
134
|
import * as CancelMoneyTransferTaskFactory from './task/cancelMoneyTransfer';
|
|
135
135
|
import * as CancelPendingReservationTaskFactory from './task/cancelPendingReservation';
|
|
136
136
|
import * as CancelReservationTaskFactory from './task/cancelReservation';
|
|
137
|
+
import * as CheckMovieTicketTaskFactory from './task/checkMovieTicket';
|
|
137
138
|
import * as CheckResourceTaskFactory from './task/checkResource';
|
|
138
139
|
import * as ConfirmMoneyTransferTaskFactory from './task/confirmMoneyTransfer';
|
|
139
140
|
import * as ConfirmPayTransactionTaskFactory from './task/confirmPayTransaction';
|
|
@@ -155,6 +156,7 @@ import * as OnOrderPaymentCompletedTaskFactory from './task/onOrderPaymentComple
|
|
|
155
156
|
import * as OnResourceUpdatedTaskFactory from './task/onResourceUpdated';
|
|
156
157
|
import * as PayTaskFactory from './task/pay';
|
|
157
158
|
import * as PlaceOrderTaskFactory from './task/placeOrder';
|
|
159
|
+
import * as PublishPaymentUrlTaskFactory from './task/publishPaymentUrl';
|
|
158
160
|
import * as RefundTaskFactory from './task/refund';
|
|
159
161
|
import * as RegisterServiceTaskFactory from './task/registerService';
|
|
160
162
|
import * as ReserveTaskFactory from './task/reserve';
|
|
@@ -209,7 +211,9 @@ export declare namespace action {
|
|
|
209
211
|
export import IPurpose = ActionFactory.IPurpose;
|
|
210
212
|
export import ISortOrder = ActionFactory.ISortOrder;
|
|
211
213
|
export import ISearchConditions = ActionFactory.ISearchConditions;
|
|
212
|
-
|
|
214
|
+
namespace accept {
|
|
215
|
+
export import pay = AcceptPayActionFactory;
|
|
216
|
+
}
|
|
213
217
|
namespace authorize {
|
|
214
218
|
export import IAction = AuthorizeActionFactory.IAction;
|
|
215
219
|
export import IAttributes = AuthorizeActionFactory.IAttributes;
|
|
@@ -428,6 +432,7 @@ export declare namespace task {
|
|
|
428
432
|
export import cancelMoneyTransfer = CancelMoneyTransferTaskFactory;
|
|
429
433
|
export import cancelPendingReservation = CancelPendingReservationTaskFactory;
|
|
430
434
|
export import cancelReservation = CancelReservationTaskFactory;
|
|
435
|
+
export import checkMovieTicket = CheckMovieTicketTaskFactory;
|
|
431
436
|
export import checkResource = CheckResourceTaskFactory;
|
|
432
437
|
export import createEvent = CreateEventTaskFactory;
|
|
433
438
|
export import CreateAccountingReport = CreateAccountingReportTaskFactory;
|
|
@@ -438,6 +443,7 @@ export declare namespace task {
|
|
|
438
443
|
export import importOffersFromCOA = ImportOffersFromCOATaskFactory;
|
|
439
444
|
export import moneyTransfer = MoneyTransferTaskFactory;
|
|
440
445
|
export import pay = PayTaskFactory;
|
|
446
|
+
export import publishPaymentUrl = PublishPaymentUrlTaskFactory;
|
|
441
447
|
export import refund = RefundTaskFactory;
|
|
442
448
|
export import registerService = RegisterServiceTaskFactory;
|
|
443
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");
|
|
@@ -122,6 +122,7 @@ var CancelAccountMoneyTransferTaskFactory = require("./task/cancelAccountMoneyTr
|
|
|
122
122
|
var CancelMoneyTransferTaskFactory = require("./task/cancelMoneyTransfer");
|
|
123
123
|
var CancelPendingReservationTaskFactory = require("./task/cancelPendingReservation");
|
|
124
124
|
var CancelReservationTaskFactory = require("./task/cancelReservation");
|
|
125
|
+
var CheckMovieTicketTaskFactory = require("./task/checkMovieTicket");
|
|
125
126
|
var CheckResourceTaskFactory = require("./task/checkResource");
|
|
126
127
|
var ConfirmReserveTransactionTaskFactory = require("./task/confirmReserveTransaction");
|
|
127
128
|
var CreateAccountingReportTaskFactory = require("./task/createAccountingReport");
|
|
@@ -135,6 +136,7 @@ var OnAuthorizationCreatedTaskFactory = require("./task/onAuthorizationCreated")
|
|
|
135
136
|
var OnEventChangedTaskFactory = require("./task/onEventChanged");
|
|
136
137
|
var OnResourceUpdatedTaskFactory = require("./task/onResourceUpdated");
|
|
137
138
|
var PayTaskFactory = require("./task/pay");
|
|
139
|
+
var PublishPaymentUrlTaskFactory = require("./task/publishPaymentUrl");
|
|
138
140
|
var RefundTaskFactory = require("./task/refund");
|
|
139
141
|
var RegisterServiceTaskFactory = require("./task/registerService");
|
|
140
142
|
var ReserveTaskFactory = require("./task/reserve");
|
|
@@ -166,7 +168,11 @@ exports.actionStatusType = actionStatusType_1.ActionStatusType;
|
|
|
166
168
|
exports.actionType = actionType_1.ActionType;
|
|
167
169
|
var action;
|
|
168
170
|
(function (action) {
|
|
169
|
-
|
|
171
|
+
// export import accept = AcceptActionFactory;
|
|
172
|
+
var accept;
|
|
173
|
+
(function (accept) {
|
|
174
|
+
accept.pay = AcceptPayActionFactory;
|
|
175
|
+
})(accept = action.accept || (action.accept = {}));
|
|
170
176
|
var authorize;
|
|
171
177
|
(function (authorize) {
|
|
172
178
|
// tslint:disable-next-line:no-shadowed-variable
|
|
@@ -379,6 +385,7 @@ var task;
|
|
|
379
385
|
task.cancelMoneyTransfer = CancelMoneyTransferTaskFactory;
|
|
380
386
|
task.cancelPendingReservation = CancelPendingReservationTaskFactory;
|
|
381
387
|
task.cancelReservation = CancelReservationTaskFactory;
|
|
388
|
+
task.checkMovieTicket = CheckMovieTicketTaskFactory;
|
|
382
389
|
task.checkResource = CheckResourceTaskFactory;
|
|
383
390
|
task.createEvent = CreateEventTaskFactory;
|
|
384
391
|
task.CreateAccountingReport = CreateAccountingReportTaskFactory;
|
|
@@ -389,6 +396,7 @@ var task;
|
|
|
389
396
|
task.importOffersFromCOA = ImportOffersFromCOATaskFactory;
|
|
390
397
|
task.moneyTransfer = MoneyTransferTaskFactory;
|
|
391
398
|
task.pay = PayTaskFactory;
|
|
399
|
+
task.publishPaymentUrl = PublishPaymentUrlTaskFactory;
|
|
392
400
|
task.refund = RefundTaskFactory;
|
|
393
401
|
task.registerService = RegisterServiceTaskFactory;
|
|
394
402
|
task.reserve = ReserveTaskFactory;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IAttributes as ICheckMovieTicketActionAttributes } from '../action/check/paymentMethod/movieTicket';
|
|
2
|
+
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import * as TaskFactory from '../task';
|
|
4
|
+
import { TaskName } from '../taskName';
|
|
5
|
+
export type IData = ICheckMovieTicketActionAttributes;
|
|
6
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
|
+
name: TaskName.CheckMovieTicket;
|
|
8
|
+
data: IData;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 決済カード認証タスク
|
|
12
|
+
*/
|
|
13
|
+
export type ITask = IExtendId<IAttributes>;
|
|
@@ -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
|
@@ -20,6 +20,10 @@ export declare enum TaskName {
|
|
|
20
20
|
CancelMoneyTransfer = "cancelMoneyTransfer",
|
|
21
21
|
CancelReservation = "cancelReservation",
|
|
22
22
|
CancelPendingReservation = "cancelPendingReservation",
|
|
23
|
+
/**
|
|
24
|
+
* 決済カード認証(2024-05-21~)
|
|
25
|
+
*/
|
|
26
|
+
CheckMovieTicket = "checkMovieTicket",
|
|
23
27
|
/**
|
|
24
28
|
* リソース検証
|
|
25
29
|
*/
|
|
@@ -71,6 +75,10 @@ export declare enum TaskName {
|
|
|
71
75
|
* 注文受付
|
|
72
76
|
*/
|
|
73
77
|
PlaceOrder = "placeOrder",
|
|
78
|
+
/**
|
|
79
|
+
* 決済URL発行(2024-05-22~)
|
|
80
|
+
*/
|
|
81
|
+
PublishPaymentUrl = "publishPaymentUrl",
|
|
74
82
|
Refund = "refund",
|
|
75
83
|
RegisterService = "registerService",
|
|
76
84
|
/**
|
package/lib/taskName.js
CHANGED
|
@@ -24,6 +24,10 @@ var TaskName;
|
|
|
24
24
|
TaskName["CancelMoneyTransfer"] = "cancelMoneyTransfer";
|
|
25
25
|
TaskName["CancelReservation"] = "cancelReservation";
|
|
26
26
|
TaskName["CancelPendingReservation"] = "cancelPendingReservation";
|
|
27
|
+
/**
|
|
28
|
+
* 決済カード認証(2024-05-21~)
|
|
29
|
+
*/
|
|
30
|
+
TaskName["CheckMovieTicket"] = "checkMovieTicket";
|
|
27
31
|
/**
|
|
28
32
|
* リソース検証
|
|
29
33
|
*/
|
|
@@ -76,6 +80,10 @@ var TaskName;
|
|
|
76
80
|
* 注文受付
|
|
77
81
|
*/
|
|
78
82
|
TaskName["PlaceOrder"] = "placeOrder";
|
|
83
|
+
/**
|
|
84
|
+
* 決済URL発行(2024-05-22~)
|
|
85
|
+
*/
|
|
86
|
+
TaskName["PublishPaymentUrl"] = "publishPaymentUrl";
|
|
79
87
|
TaskName["Refund"] = "refund";
|
|
80
88
|
TaskName["RegisterService"] = "registerService";
|
|
81
89
|
/**
|