@chevre/factory 4.371.0-alpha.0 → 4.371.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/accept/coaOffer.d.ts +61 -0
- package/lib/action/accept/coaOffer.js +2 -0
- 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 +10 -2
- package/lib/index.js +12 -2
- package/lib/task/acceptCOAOffer.d.ts +38 -0
- package/lib/task/acceptCOAOffer.js +2 -0
- package/lib/task/publishPaymentUrl.d.ts +26 -0
- package/lib/task/publishPaymentUrl.js +2 -0
- package/lib/taskName.d.ts +5 -0
- package/lib/taskName.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
2
|
+
import * as ActionFactory from '../../action';
|
|
3
|
+
import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeAction, IObjectWithoutDetail } from '../../action/authorize/offer/eventService';
|
|
4
|
+
import { ActionType } from '../../actionType';
|
|
5
|
+
import { Identifier } from '../../service/webAPI';
|
|
6
|
+
import { TransactionType } from '../../transactionType';
|
|
7
|
+
import * as AcceptActionFactory from '../accept';
|
|
8
|
+
export interface IAppliesToSurfrock {
|
|
9
|
+
identifier: string;
|
|
10
|
+
serviceOutput: {
|
|
11
|
+
typeOf: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication;
|
|
15
|
+
export interface IObject {
|
|
16
|
+
/**
|
|
17
|
+
* 承認アクションID
|
|
18
|
+
* 仮予約済の場合に指定
|
|
19
|
+
*/
|
|
20
|
+
id?: string;
|
|
21
|
+
object: IObjectWithoutDetail<Identifier.COA>;
|
|
22
|
+
appliesToSurfrock: IAppliesToSurfrock;
|
|
23
|
+
flgMember: COA.factory.reserve.FlgMember;
|
|
24
|
+
typeOf: IAuthorizeAction<Identifier.COA>['typeOf'];
|
|
25
|
+
}
|
|
26
|
+
export interface IResult {
|
|
27
|
+
object: {
|
|
28
|
+
acceptedOffer: IAcceptedOfferBeforeAuthorize4COA[];
|
|
29
|
+
event: {
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
result: {
|
|
34
|
+
/**
|
|
35
|
+
* 仮予約実行時は存在する
|
|
36
|
+
*/
|
|
37
|
+
requestBody?: COA.factory.reserve.IUpdTmpReserveSeatArgs;
|
|
38
|
+
/**
|
|
39
|
+
* 仮予約実行時は存在する
|
|
40
|
+
*/
|
|
41
|
+
responseBody?: COA.factory.reserve.IUpdTmpReserveSeatResult;
|
|
42
|
+
};
|
|
43
|
+
typeOf: IAuthorizeAction<Identifier.COA>['typeOf'];
|
|
44
|
+
}
|
|
45
|
+
export interface IPurpose {
|
|
46
|
+
typeOf: TransactionType.PlaceOrder;
|
|
47
|
+
id: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* COA興行オファー採用アクション属性
|
|
51
|
+
*/
|
|
52
|
+
export interface IAttributes extends AcceptActionFactory.IAttributes<IObject, IResult> {
|
|
53
|
+
typeOf: ActionType.AcceptAction;
|
|
54
|
+
object: IObject;
|
|
55
|
+
agent: IAgent;
|
|
56
|
+
purpose: IPurpose;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* COA興行オファー採用アクション
|
|
60
|
+
*/
|
|
61
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -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,8 @@ 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 AcceptCOAOfferActionFactory from './action/accept/coaOffer';
|
|
11
|
+
import * as AcceptPayActionFactory from './action/accept/pay';
|
|
11
12
|
import * as AuthorizeActionFactory from './action/authorize';
|
|
12
13
|
import * as AuthorizeEventServiceOfferActionFactory from './action/authorize/offer/eventService';
|
|
13
14
|
import * as AuthorizeMoneyTransferOfferActionFactory from './action/authorize/offer/moneyTransfer';
|
|
@@ -125,6 +126,7 @@ import { TripType } from './tripType';
|
|
|
125
126
|
import { UnitCode } from './unitCode';
|
|
126
127
|
import * as UnitPriceOfferFactory from './unitPriceOffer';
|
|
127
128
|
import * as TaskFactory from './task';
|
|
129
|
+
import * as AcceptCOAOfferTaskFactory from './task/acceptCOAOffer';
|
|
128
130
|
import * as AccountMoneyTransferTaskFactory from './task/accountMoneyTransfer';
|
|
129
131
|
import * as AggregateOffersTaskFactory from './task/aggregateOffers';
|
|
130
132
|
import * as AggregateScreeningEventTaskFactory from './task/aggregateScreeningEvent';
|
|
@@ -156,6 +158,7 @@ import * as OnOrderPaymentCompletedTaskFactory from './task/onOrderPaymentComple
|
|
|
156
158
|
import * as OnResourceUpdatedTaskFactory from './task/onResourceUpdated';
|
|
157
159
|
import * as PayTaskFactory from './task/pay';
|
|
158
160
|
import * as PlaceOrderTaskFactory from './task/placeOrder';
|
|
161
|
+
import * as PublishPaymentUrlTaskFactory from './task/publishPaymentUrl';
|
|
159
162
|
import * as RefundTaskFactory from './task/refund';
|
|
160
163
|
import * as RegisterServiceTaskFactory from './task/registerService';
|
|
161
164
|
import * as ReserveTaskFactory from './task/reserve';
|
|
@@ -210,7 +213,10 @@ export declare namespace action {
|
|
|
210
213
|
export import IPurpose = ActionFactory.IPurpose;
|
|
211
214
|
export import ISortOrder = ActionFactory.ISortOrder;
|
|
212
215
|
export import ISearchConditions = ActionFactory.ISearchConditions;
|
|
213
|
-
|
|
216
|
+
namespace accept {
|
|
217
|
+
export import coaOffer = AcceptCOAOfferActionFactory;
|
|
218
|
+
export import pay = AcceptPayActionFactory;
|
|
219
|
+
}
|
|
214
220
|
namespace authorize {
|
|
215
221
|
export import IAction = AuthorizeActionFactory.IAction;
|
|
216
222
|
export import IAttributes = AuthorizeActionFactory.IAttributes;
|
|
@@ -422,6 +428,7 @@ export declare namespace task {
|
|
|
422
428
|
type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.CreateEvent ? CreateEventTaskFactory.ITask : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.ITask : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.ITask : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.ITask : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.ITask : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.ITask : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.ITask : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.ITask : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.UseReservation ? UseReservationTaskFactory.ITask : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.ITask : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.ITask : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask : TaskFactory.ITask;
|
|
423
429
|
export import ISearchConditions = TaskFactory.ISearchConditions;
|
|
424
430
|
export import IExecutionResult = TaskFactory.IExecutionResult;
|
|
431
|
+
export import acceptCOAOffer = AcceptCOAOfferTaskFactory;
|
|
425
432
|
export import aggregateOffers = AggregateOffersTaskFactory;
|
|
426
433
|
export import aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
|
427
434
|
export import aggregateUseActionsOnEvent = AggregateUseActionsOnEventTaskFactory;
|
|
@@ -440,6 +447,7 @@ export declare namespace task {
|
|
|
440
447
|
export import importOffersFromCOA = ImportOffersFromCOATaskFactory;
|
|
441
448
|
export import moneyTransfer = MoneyTransferTaskFactory;
|
|
442
449
|
export import pay = PayTaskFactory;
|
|
450
|
+
export import publishPaymentUrl = PublishPaymentUrlTaskFactory;
|
|
443
451
|
export import refund = RefundTaskFactory;
|
|
444
452
|
export import registerService = RegisterServiceTaskFactory;
|
|
445
453
|
export import reserve = ReserveTaskFactory;
|
package/lib/index.js
CHANGED
|
@@ -10,7 +10,8 @@ var cognito = require("./cognito");
|
|
|
10
10
|
exports.cognito = cognito;
|
|
11
11
|
exports.waiter = waiter;
|
|
12
12
|
var AccountFactory = require("./account");
|
|
13
|
-
var
|
|
13
|
+
var AcceptCOAOfferActionFactory = require("./action/accept/coaOffer");
|
|
14
|
+
var AcceptPayActionFactory = require("./action/accept/pay");
|
|
14
15
|
var AuthorizeEventServiceOfferActionFactory = require("./action/authorize/offer/eventService");
|
|
15
16
|
var AuthorizeMoneyTransferOfferActionFactory = require("./action/authorize/offer/moneyTransfer");
|
|
16
17
|
var AuthorizeProductOfferActionFactory = require("./action/authorize/offer/product");
|
|
@@ -113,6 +114,7 @@ var BusTripFactory = require("./trip/busTrip");
|
|
|
113
114
|
var tripType_1 = require("./tripType");
|
|
114
115
|
var unitCode_1 = require("./unitCode");
|
|
115
116
|
var UnitPriceOfferFactory = require("./unitPriceOffer");
|
|
117
|
+
var AcceptCOAOfferTaskFactory = require("./task/acceptCOAOffer");
|
|
116
118
|
var AccountMoneyTransferTaskFactory = require("./task/accountMoneyTransfer");
|
|
117
119
|
var AggregateOffersTaskFactory = require("./task/aggregateOffers");
|
|
118
120
|
var AggregateScreeningEventTaskFactory = require("./task/aggregateScreeningEvent");
|
|
@@ -136,6 +138,7 @@ var OnAuthorizationCreatedTaskFactory = require("./task/onAuthorizationCreated")
|
|
|
136
138
|
var OnEventChangedTaskFactory = require("./task/onEventChanged");
|
|
137
139
|
var OnResourceUpdatedTaskFactory = require("./task/onResourceUpdated");
|
|
138
140
|
var PayTaskFactory = require("./task/pay");
|
|
141
|
+
var PublishPaymentUrlTaskFactory = require("./task/publishPaymentUrl");
|
|
139
142
|
var RefundTaskFactory = require("./task/refund");
|
|
140
143
|
var RegisterServiceTaskFactory = require("./task/registerService");
|
|
141
144
|
var ReserveTaskFactory = require("./task/reserve");
|
|
@@ -167,7 +170,12 @@ exports.actionStatusType = actionStatusType_1.ActionStatusType;
|
|
|
167
170
|
exports.actionType = actionType_1.ActionType;
|
|
168
171
|
var action;
|
|
169
172
|
(function (action) {
|
|
170
|
-
|
|
173
|
+
// export import accept = AcceptActionFactory;
|
|
174
|
+
var accept;
|
|
175
|
+
(function (accept) {
|
|
176
|
+
accept.coaOffer = AcceptCOAOfferActionFactory;
|
|
177
|
+
accept.pay = AcceptPayActionFactory;
|
|
178
|
+
})(accept = action.accept || (action.accept = {}));
|
|
171
179
|
var authorize;
|
|
172
180
|
(function (authorize) {
|
|
173
181
|
// tslint:disable-next-line:no-shadowed-variable
|
|
@@ -373,6 +381,7 @@ exports.reservationType = reservationType_1.ReservationType;
|
|
|
373
381
|
exports.seller = SellerFactory;
|
|
374
382
|
var task;
|
|
375
383
|
(function (task) {
|
|
384
|
+
task.acceptCOAOffer = AcceptCOAOfferTaskFactory;
|
|
376
385
|
task.aggregateOffers = AggregateOffersTaskFactory;
|
|
377
386
|
task.aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
|
378
387
|
task.aggregateUseActionsOnEvent = AggregateUseActionsOnEventTaskFactory;
|
|
@@ -391,6 +400,7 @@ var task;
|
|
|
391
400
|
task.importOffersFromCOA = ImportOffersFromCOATaskFactory;
|
|
392
401
|
task.moneyTransfer = MoneyTransferTaskFactory;
|
|
393
402
|
task.pay = PayTaskFactory;
|
|
403
|
+
task.publishPaymentUrl = PublishPaymentUrlTaskFactory;
|
|
394
404
|
task.refund = RefundTaskFactory;
|
|
395
405
|
task.registerService = RegisterServiceTaskFactory;
|
|
396
406
|
task.reserve = ReserveTaskFactory;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type * as COA from '@motionpicture/coa-service';
|
|
2
|
+
import { IObjectWithoutDetail } from '../action/authorize/offer/eventService';
|
|
3
|
+
import { IExtendId } from '../autoGenerated';
|
|
4
|
+
import { CreativeWorkType } from '../creativeWorkType';
|
|
5
|
+
import { PersonType } from '../personType';
|
|
6
|
+
import { Identifier } from '../service/webAPI';
|
|
7
|
+
import * as TaskFactory from '../task';
|
|
8
|
+
import { TaskName } from '../taskName';
|
|
9
|
+
export interface IAppliesToSurfrock {
|
|
10
|
+
identifier: string;
|
|
11
|
+
serviceOutput: {
|
|
12
|
+
typeOf: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface IData {
|
|
16
|
+
/**
|
|
17
|
+
* 承認アクションID
|
|
18
|
+
* 仮予約済の場合に指定
|
|
19
|
+
*/
|
|
20
|
+
id?: string;
|
|
21
|
+
object: IObjectWithoutDetail<Identifier.COA>;
|
|
22
|
+
agent: {
|
|
23
|
+
typeOf: PersonType.Person | CreativeWorkType.WebApplication;
|
|
24
|
+
};
|
|
25
|
+
purpose: {
|
|
26
|
+
id: string;
|
|
27
|
+
};
|
|
28
|
+
appliesToSurfrock: IAppliesToSurfrock;
|
|
29
|
+
flgMember: COA.factory.reserve.FlgMember;
|
|
30
|
+
}
|
|
31
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
32
|
+
name: TaskName.AcceptCOAOffer;
|
|
33
|
+
data: IData;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* COA興行オファー採用タスク
|
|
37
|
+
*/
|
|
38
|
+
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
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* タスク名
|
|
3
3
|
*/
|
|
4
4
|
export declare enum TaskName {
|
|
5
|
+
AcceptCOAOffer = "acceptCOAOffer",
|
|
5
6
|
/**
|
|
6
7
|
* 口座転送
|
|
7
8
|
*/
|
|
@@ -75,6 +76,10 @@ export declare enum TaskName {
|
|
|
75
76
|
* 注文受付
|
|
76
77
|
*/
|
|
77
78
|
PlaceOrder = "placeOrder",
|
|
79
|
+
/**
|
|
80
|
+
* 決済URL発行(2024-05-22~)
|
|
81
|
+
*/
|
|
82
|
+
PublishPaymentUrl = "publishPaymentUrl",
|
|
78
83
|
Refund = "refund",
|
|
79
84
|
RegisterService = "registerService",
|
|
80
85
|
/**
|
package/lib/taskName.js
CHANGED
|
@@ -6,6 +6,7 @@ exports.TaskName = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var TaskName;
|
|
8
8
|
(function (TaskName) {
|
|
9
|
+
TaskName["AcceptCOAOffer"] = "acceptCOAOffer";
|
|
9
10
|
/**
|
|
10
11
|
* 口座転送
|
|
11
12
|
*/
|
|
@@ -80,6 +81,10 @@ var TaskName;
|
|
|
80
81
|
* 注文受付
|
|
81
82
|
*/
|
|
82
83
|
TaskName["PlaceOrder"] = "placeOrder";
|
|
84
|
+
/**
|
|
85
|
+
* 決済URL発行(2024-05-22~)
|
|
86
|
+
*/
|
|
87
|
+
TaskName["PublishPaymentUrl"] = "publishPaymentUrl";
|
|
83
88
|
TaskName["Refund"] = "refund";
|
|
84
89
|
TaskName["RegisterService"] = "registerService";
|
|
85
90
|
/**
|