@chevre/factory 5.4.0-alpha.0 → 5.4.0-alpha.10
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 +2 -2
- package/lib/action/authorize/paymentMethod/any.d.ts +9 -1
- package/lib/action/trade/pay.d.ts +13 -2
- package/lib/creativeWork/movie.d.ts +1 -0
- package/lib/event/screeningEventSeries.d.ts +39 -5
- package/lib/index.d.ts +4 -0
- package/lib/index.js +6 -2
- package/lib/offer/acceptedPaymentMethod.d.ts +111 -0
- package/lib/offer/acceptedPaymentMethod.js +2 -0
- package/lib/offer/eventOffer.d.ts +1 -1
- package/lib/task/authorizePayment.d.ts +6 -1
- package/lib/task/publishPaymentUrl.d.ts +6 -1
- package/lib/task/syncResourcesFromCOA.d.ts +35 -0
- package/lib/task/syncResourcesFromCOA.js +2 -0
- package/lib/taskName.d.ts +1 -0
- package/lib/taskName.js +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
|
-
import { IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
|
|
2
|
+
import { IAcceptedPaymentMethodOfferAsInstrument, IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
|
|
3
3
|
import { ActionType } from '../../actionType';
|
|
4
4
|
import { IAgent, IObjectWithoutDetail, IPaymentMethodWithoutDetail } from '../../assetTransaction/pay';
|
|
5
5
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
@@ -30,7 +30,7 @@ export interface IPurpose {
|
|
|
30
30
|
typeOf: TransactionType.PlaceOrder;
|
|
31
31
|
id: string;
|
|
32
32
|
}
|
|
33
|
-
export type IInstrument = IPaymentMethodTicketAsInstrument;
|
|
33
|
+
export type IInstrument = IPaymentMethodTicketAsInstrument | IAcceptedPaymentMethodOfferAsInstrument;
|
|
34
34
|
/**
|
|
35
35
|
* 決済採用アクション属性
|
|
36
36
|
*/
|
|
@@ -132,6 +132,10 @@ export type IAuthorizePaymentCardObject = Pick<IObjectIncludingPaymentMethodDeta
|
|
|
132
132
|
* 決済承認リクエストの承認対象オブジェクト
|
|
133
133
|
*/
|
|
134
134
|
export type IObjectWithoutDetail = IAuthorizeAnyPaymentObject | IAuthorizeCreditCardObject | IAuthorizeMovieTicketObject | IAuthorizePaymentCardObject;
|
|
135
|
+
/**
|
|
136
|
+
* 決済承認アクションオブジェクト
|
|
137
|
+
* paymentMethodIdが決済取引の取引番号に等しい
|
|
138
|
+
*/
|
|
135
139
|
export type IObject = Pick<IObjectIncludingPaymentMethodDetails, 'typeOf' | 'paymentMethodId' | 'accountId'>;
|
|
136
140
|
export interface IResultPaymentMethod {
|
|
137
141
|
/**
|
|
@@ -205,10 +209,14 @@ export interface IInstrumentAsAssetTransaction {
|
|
|
205
209
|
identifier: ServiceIdentifier;
|
|
206
210
|
}
|
|
207
211
|
export type IInstrument = IInstrumentAsAssetTransaction;
|
|
208
|
-
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
212
|
+
export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'identifier' | 'error' | 'agent'> {
|
|
209
213
|
typeOf: ActionType.AuthorizeAction;
|
|
210
214
|
object: IObject;
|
|
211
215
|
agent: IAgent;
|
|
216
|
+
/**
|
|
217
|
+
* 決済取引としてのinstrument
|
|
218
|
+
* @deprecated object.paymentMethodIdに依存すること
|
|
219
|
+
*/
|
|
212
220
|
instrument: IInstrument;
|
|
213
221
|
recipient: IRecipient;
|
|
214
222
|
purpose: IPurpose;
|
|
@@ -5,6 +5,7 @@ import { ActionType } from '../../actionType';
|
|
|
5
5
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
6
6
|
import { CreativeWorkType } from '../../creativeWorkType';
|
|
7
7
|
import { IPaymentServiceOutput } from '../../invoice';
|
|
8
|
+
import { OfferType } from '../../offerType';
|
|
8
9
|
import { IOrder, ITotalPaymentDue, OrderType } from '../../order';
|
|
9
10
|
import { IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
|
|
10
11
|
import { IPropertyValue } from '../../propertyValue';
|
|
@@ -118,16 +119,26 @@ export interface IPayTransactionAsInstrument {
|
|
|
118
119
|
}
|
|
119
120
|
export type IRefundActionAsInstrument = Pick<IRefundAction, 'id' | 'typeOf'>;
|
|
120
121
|
/**
|
|
121
|
-
*
|
|
122
|
+
* ツールとしての決済方法チケット
|
|
122
123
|
*/
|
|
123
124
|
export interface IPaymentMethodTicketAsInstrument {
|
|
124
125
|
ticketToken: string;
|
|
125
126
|
typeOf: 'Ticket';
|
|
126
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* ツールとしての対応決済方法オファー
|
|
130
|
+
*/
|
|
131
|
+
export interface IAcceptedPaymentMethodOfferAsInstrument {
|
|
132
|
+
/**
|
|
133
|
+
* 対応決済方法オファーID
|
|
134
|
+
*/
|
|
135
|
+
id: string;
|
|
136
|
+
typeOf: OfferType.Offer;
|
|
137
|
+
}
|
|
127
138
|
/**
|
|
128
139
|
* 注文時の決済アクションツール
|
|
129
140
|
*/
|
|
130
|
-
export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument | IOrderAsInstrument | IAuthorizeActionAsInstrument | IPaymentMethodTicketAsInstrument;
|
|
141
|
+
export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument | IOrderAsInstrument | IAuthorizeActionAsInstrument | IPaymentMethodTicketAsInstrument | IAcceptedPaymentMethodOfferAsInstrument;
|
|
131
142
|
/**
|
|
132
143
|
* 注文返品時の決済アクションツール
|
|
133
144
|
*/
|
|
@@ -8,15 +8,23 @@ import { OfferType } from '../offerType';
|
|
|
8
8
|
import { PlaceType } from '../placeType';
|
|
9
9
|
export type IUnacceptedPaymentMethodType = 'MovieTicket';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 施設コンテンツに対する単一オファー
|
|
12
12
|
*/
|
|
13
|
-
export interface
|
|
13
|
+
export interface ISingleOffer {
|
|
14
14
|
typeOf: OfferType.Offer;
|
|
15
15
|
/**
|
|
16
16
|
* 利用不可決済方法区分
|
|
17
17
|
*/
|
|
18
18
|
unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* 施設コンテンツに対する集約オファー
|
|
22
|
+
* 対応決済方法は別リポジトリで管理される
|
|
23
|
+
*/
|
|
24
|
+
export interface IAggregateOffer {
|
|
25
|
+
typeOf: OfferType.AggregateOffer;
|
|
26
|
+
unacceptedPaymentMethod?: never;
|
|
27
|
+
}
|
|
20
28
|
export interface IVideoFormat {
|
|
21
29
|
typeOf: string;
|
|
22
30
|
name: string;
|
|
@@ -25,6 +33,23 @@ export interface ISoundFormat {
|
|
|
25
33
|
typeOf: string;
|
|
26
34
|
name: string;
|
|
27
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* サブイベント
|
|
38
|
+
* 施設コンテンツに所属するScreeningEventの属性など
|
|
39
|
+
*/
|
|
40
|
+
export interface ISubEvent {
|
|
41
|
+
typeOf: EventType.ScreeningEvent;
|
|
42
|
+
/**
|
|
43
|
+
* 上映方式区分コードリスト
|
|
44
|
+
*/
|
|
45
|
+
videoFormat?: string[];
|
|
46
|
+
}
|
|
47
|
+
export interface IOrganizer {
|
|
48
|
+
/**
|
|
49
|
+
* 販売者ID
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
}
|
|
28
53
|
/**
|
|
29
54
|
* コンテンツ
|
|
30
55
|
* contentRatingはCOAのみ存在
|
|
@@ -101,7 +126,8 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
101
126
|
/**
|
|
102
127
|
* 音響方式
|
|
103
128
|
*/
|
|
104
|
-
soundFormat
|
|
129
|
+
soundFormat?: ISoundFormat[];
|
|
130
|
+
subEvent?: ISubEvent;
|
|
105
131
|
/**
|
|
106
132
|
* コンテンツ
|
|
107
133
|
*/
|
|
@@ -132,7 +158,7 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
132
158
|
/**
|
|
133
159
|
* 販売情報
|
|
134
160
|
*/
|
|
135
|
-
offers?:
|
|
161
|
+
offers?: ISingleOffer | IAggregateOffer;
|
|
136
162
|
/**
|
|
137
163
|
* その他COA情報
|
|
138
164
|
*/
|
|
@@ -142,6 +168,14 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
142
168
|
* 施設コンテンツ
|
|
143
169
|
*/
|
|
144
170
|
export type IEvent = EventFactory.IEvent<IAttributes>;
|
|
171
|
+
export type IOffers4create = Pick<ISingleOffer, 'unacceptedPaymentMethod'> & {
|
|
172
|
+
typeOf?: never;
|
|
173
|
+
} | Pick<IAggregateOffer, 'typeOf'> & {
|
|
174
|
+
unacceptedPaymentMethod?: never;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* 施設コンテンツ作成パラメータ
|
|
178
|
+
*/
|
|
145
179
|
export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | 'endDate' | 'headline' | 'startDate' | 'additionalProperty' | 'kanaName' | 'eventStatus' | 'description'> & {
|
|
146
180
|
subtitleLanguage?: Pick<ILanguage, 'name'>;
|
|
147
181
|
dubLanguage?: Pick<ILanguage, 'name'>;
|
|
@@ -151,7 +185,7 @@ export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | '
|
|
|
151
185
|
*/
|
|
152
186
|
id: string;
|
|
153
187
|
};
|
|
154
|
-
offers?:
|
|
188
|
+
offers?: IOffers4create;
|
|
155
189
|
workPerformed: {
|
|
156
190
|
/**
|
|
157
191
|
* コンテンツコード
|
package/lib/index.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ import * as MonetaryAmountFactory from './monetaryAmount';
|
|
|
86
86
|
import * as MovieTicketTypeFactory from './movieTicketType';
|
|
87
87
|
import { IMultilingualString } from './multilingualString';
|
|
88
88
|
import * as OfferFactory from './offer';
|
|
89
|
+
import * as AcceptedPaymentMethodOfferFactory from './offer/acceptedPaymentMethod';
|
|
89
90
|
import * as AggregateOfferFactory from './offer/aggregateOffer';
|
|
90
91
|
import * as EventOfferFactory from './offer/eventOffer';
|
|
91
92
|
import * as ProductOfferFactory from './offer/productOffer';
|
|
@@ -211,6 +212,7 @@ import * as ReturnPointAwardTaskFactory from './task/returnPointAward';
|
|
|
211
212
|
import * as ReturnReserveTransactionTaskFactory from './task/returnReserveTransaction';
|
|
212
213
|
import * as SendEmailMessageTaskFactory from './task/sendEmailMessage';
|
|
213
214
|
import * as SendOrderTaskFactory from './task/sendOrder';
|
|
215
|
+
import * as SyncResourcesFromCOATaskFactory from './task/syncResourcesFromCOA';
|
|
214
216
|
import * as TriggerWebhookTaskFactory from './task/triggerWebhook';
|
|
215
217
|
import * as UseReservationTaskFactory from './task/useReservation';
|
|
216
218
|
import * as VoidMoneyTransferTransactionTaskFactory from './task/voidMoneyTransferTransaction';
|
|
@@ -238,6 +240,7 @@ import { ErrorCode } from './errorCode';
|
|
|
238
240
|
import * as errors from './errors';
|
|
239
241
|
export import errors = errors;
|
|
240
242
|
export import errorCode = ErrorCode;
|
|
243
|
+
export import acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
|
|
241
244
|
export import account = AccountFactory;
|
|
242
245
|
export import actionStatusType = ActionStatusType;
|
|
243
246
|
export import actionType = ActionType;
|
|
@@ -549,6 +552,7 @@ export declare namespace task {
|
|
|
549
552
|
export import registerService = RegisterServiceTaskFactory;
|
|
550
553
|
export import reserve = ReserveTaskFactory;
|
|
551
554
|
export import sendEmailMessage = SendEmailMessageTaskFactory;
|
|
555
|
+
export import syncResourcesFromCOA = SyncResourcesFromCOATaskFactory;
|
|
552
556
|
export import triggerWebhook = TriggerWebhookTaskFactory;
|
|
553
557
|
export import useReservation = UseReservationTaskFactory;
|
|
554
558
|
export import voidPayment = VoidPaymentTaskFactory;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = void 0;
|
|
3
|
+
exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.eventOffer = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.acceptedPaymentMethodOffer = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -86,6 +86,7 @@ var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
|
|
|
86
86
|
var MonetaryAmountFactory = require("./monetaryAmount");
|
|
87
87
|
var MovieTicketTypeFactory = require("./movieTicketType");
|
|
88
88
|
var OfferFactory = require("./offer");
|
|
89
|
+
var AcceptedPaymentMethodOfferFactory = require("./offer/acceptedPaymentMethod");
|
|
89
90
|
var AggregateOfferFactory = require("./offer/aggregateOffer");
|
|
90
91
|
var EventOfferFactory = require("./offer/eventOffer");
|
|
91
92
|
var ProductOfferFactory = require("./offer/productOffer");
|
|
@@ -191,6 +192,7 @@ var RefundTaskFactory = require("./task/refund");
|
|
|
191
192
|
var RegisterServiceTaskFactory = require("./task/registerService");
|
|
192
193
|
var ReserveTaskFactory = require("./task/reserve");
|
|
193
194
|
var SendEmailMessageTaskFactory = require("./task/sendEmailMessage");
|
|
195
|
+
var SyncResourcesFromCOATaskFactory = require("./task/syncResourcesFromCOA");
|
|
194
196
|
var TriggerWebhookTaskFactory = require("./task/triggerWebhook");
|
|
195
197
|
var UseReservationTaskFactory = require("./task/useReservation");
|
|
196
198
|
var VoidPaymentTaskFactory = require("./task/voidPayment");
|
|
@@ -212,6 +214,7 @@ var errorCode_1 = require("./errorCode");
|
|
|
212
214
|
var errors = require("./errors");
|
|
213
215
|
exports.errors = errors;
|
|
214
216
|
exports.errorCode = errorCode_1.ErrorCode;
|
|
217
|
+
exports.acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
|
|
215
218
|
exports.account = AccountFactory;
|
|
216
219
|
exports.actionStatusType = actionStatusType_1.ActionStatusType;
|
|
217
220
|
exports.actionType = actionType_1.ActionType;
|
|
@@ -548,6 +551,7 @@ var task;
|
|
|
548
551
|
task.registerService = RegisterServiceTaskFactory;
|
|
549
552
|
task.reserve = ReserveTaskFactory;
|
|
550
553
|
task.sendEmailMessage = SendEmailMessageTaskFactory;
|
|
554
|
+
task.syncResourcesFromCOA = SyncResourcesFromCOATaskFactory;
|
|
551
555
|
task.triggerWebhook = TriggerWebhookTaskFactory;
|
|
552
556
|
task.useReservation = UseReservationTaskFactory;
|
|
553
557
|
task.voidPayment = VoidPaymentTaskFactory;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { EventType } from '../eventType';
|
|
2
|
+
import { IOffer } from '../offer';
|
|
3
|
+
import { OfferType } from '../offerType';
|
|
4
|
+
import { OrganizationType } from '../organizationType';
|
|
5
|
+
import { PaymentServiceType } from '../service/paymentService';
|
|
6
|
+
import { SortType } from '../sortType';
|
|
7
|
+
interface ISeller {
|
|
8
|
+
id: string;
|
|
9
|
+
typeOf: OrganizationType.Corporation;
|
|
10
|
+
}
|
|
11
|
+
interface IAcceptedPaymentMethod {
|
|
12
|
+
typeOf: PaymentServiceType.CreditCard | PaymentServiceType.MovieTicket;
|
|
13
|
+
/**
|
|
14
|
+
* 決済サービスID
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 対応決済方法オファー
|
|
20
|
+
*/
|
|
21
|
+
interface IAcceptedPaymentMethodOffer extends Pick<IOffer, 'typeOf' | 'validFrom' | 'validThrough'> {
|
|
22
|
+
project: {
|
|
23
|
+
id: string;
|
|
24
|
+
typeOf: OrganizationType.Project;
|
|
25
|
+
};
|
|
26
|
+
seller: ISeller;
|
|
27
|
+
typeOf: OfferType.Offer;
|
|
28
|
+
/**
|
|
29
|
+
* いつから承認可能か
|
|
30
|
+
*/
|
|
31
|
+
validFrom: Date;
|
|
32
|
+
/**
|
|
33
|
+
* いつまで承認可能か
|
|
34
|
+
*/
|
|
35
|
+
validThrough: Date;
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* オファーコード
|
|
39
|
+
* 提供リソースID内でユニーク必須
|
|
40
|
+
*/
|
|
41
|
+
identifier: string;
|
|
42
|
+
/**
|
|
43
|
+
* オファーの提供リソース
|
|
44
|
+
*/
|
|
45
|
+
itemOffered: {
|
|
46
|
+
/**
|
|
47
|
+
* リソースID
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
typeOf: EventType.ScreeningEventSeries;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* 対応決済方法
|
|
54
|
+
*/
|
|
55
|
+
acceptedPaymentMethod: IAcceptedPaymentMethod;
|
|
56
|
+
}
|
|
57
|
+
interface ISearchConditions {
|
|
58
|
+
limit?: number;
|
|
59
|
+
page?: number;
|
|
60
|
+
sort?: {
|
|
61
|
+
validFrom?: SortType;
|
|
62
|
+
};
|
|
63
|
+
project?: {
|
|
64
|
+
id?: {
|
|
65
|
+
$eq?: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
id?: {
|
|
69
|
+
$eq?: string;
|
|
70
|
+
$in?: string[];
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* オファーコード
|
|
74
|
+
*/
|
|
75
|
+
identifier?: {
|
|
76
|
+
$eq?: string;
|
|
77
|
+
$in?: string[];
|
|
78
|
+
};
|
|
79
|
+
itemOffered?: {
|
|
80
|
+
/**
|
|
81
|
+
* 提供リソースID
|
|
82
|
+
*/
|
|
83
|
+
id?: {
|
|
84
|
+
$eq?: string;
|
|
85
|
+
$in?: string[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
acceptedPaymentMethod?: {
|
|
89
|
+
/**
|
|
90
|
+
* 決済サービスID
|
|
91
|
+
*/
|
|
92
|
+
id?: {
|
|
93
|
+
$eq?: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
seller?: {
|
|
97
|
+
/**
|
|
98
|
+
* 提供販売者ID
|
|
99
|
+
*/
|
|
100
|
+
id?: {
|
|
101
|
+
$eq?: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
validFrom?: {
|
|
105
|
+
$lte?: Date;
|
|
106
|
+
};
|
|
107
|
+
validThrough?: {
|
|
108
|
+
$gte?: Date;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
export { IAcceptedPaymentMethodOffer, ISearchConditions };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { IObjectWithoutDetail, IPurpose } from '../action/authorize/paymentMethod/any';
|
|
2
|
-
import { ILocation } from '../action/trade/pay';
|
|
2
|
+
import { IAcceptedPaymentMethodOfferAsInstrument, ILocation } from '../action/trade/pay';
|
|
3
3
|
import { IExtendId } from '../autoGenerated';
|
|
4
4
|
import { PaymentServiceType } from '../service/paymentService';
|
|
5
5
|
import * as TaskFactory from '../task';
|
|
6
6
|
import { TaskName } from '../taskName';
|
|
7
|
+
export type IInstrument = IAcceptedPaymentMethodOfferAsInstrument;
|
|
7
8
|
export interface IData {
|
|
8
9
|
project: {
|
|
9
10
|
id: string;
|
|
@@ -28,6 +29,10 @@ export interface IData {
|
|
|
28
29
|
id: string;
|
|
29
30
|
};
|
|
30
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* クレジットカードIFあるいは決済カードIFの場合に対応決済方法オファーを指定する
|
|
34
|
+
*/
|
|
35
|
+
instrument?: IInstrument[];
|
|
31
36
|
}
|
|
32
37
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
33
38
|
name: TaskName.AuthorizePayment;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { IAuthorizeCreditCardObject, IPurpose } from '../action/authorize/paymentMethod/any';
|
|
2
|
-
import { ILocation } from '../action/trade/pay';
|
|
2
|
+
import { IAcceptedPaymentMethodOfferAsInstrument, ILocation } from '../action/trade/pay';
|
|
3
3
|
import { IExtendId } from '../autoGenerated';
|
|
4
4
|
import { PaymentServiceType } from '../service/paymentService';
|
|
5
5
|
import * as TaskFactory from '../task';
|
|
6
6
|
import { TaskName } from '../taskName';
|
|
7
|
+
export type IInstrument = IAcceptedPaymentMethodOfferAsInstrument;
|
|
7
8
|
export interface IData {
|
|
8
9
|
project: {
|
|
9
10
|
id: string;
|
|
@@ -20,6 +21,10 @@ export interface IData {
|
|
|
20
21
|
* authorize payment action identifier
|
|
21
22
|
*/
|
|
22
23
|
identifier?: string;
|
|
24
|
+
/**
|
|
25
|
+
* クレジットカードIFあるいは決済カードIFの場合に対応決済方法オファーを指定する
|
|
26
|
+
*/
|
|
27
|
+
instrument?: IInstrument[];
|
|
23
28
|
}
|
|
24
29
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
25
30
|
name: TaskName.PublishPaymentUrl;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IParticipantAsPerson, IParticipantAsSoftwareApplication, IParticipantAsWebApplication } from '../action';
|
|
2
|
+
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import { EventType } from '../eventType';
|
|
4
|
+
import * as TaskFactory from '../task';
|
|
5
|
+
import { TaskName } from '../taskName';
|
|
6
|
+
export type IAgent = IParticipantAsPerson | IParticipantAsSoftwareApplication | IParticipantAsWebApplication;
|
|
7
|
+
export interface IReplaceEventSeriesAction {
|
|
8
|
+
agent: IAgent;
|
|
9
|
+
object: {
|
|
10
|
+
locationBranchCode: string;
|
|
11
|
+
titleCode: string;
|
|
12
|
+
titleBranchNum: string;
|
|
13
|
+
typeOf: EventType.ScreeningEventSeries;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface IReplaceEventsAction {
|
|
17
|
+
agent: IAgent;
|
|
18
|
+
object: {
|
|
19
|
+
locationBranchCode: string;
|
|
20
|
+
roomCode: string;
|
|
21
|
+
titleCode: string;
|
|
22
|
+
titleBranchNum: string;
|
|
23
|
+
startDate: Date;
|
|
24
|
+
typeOf: EventType.ScreeningEvent;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export type IData = IReplaceEventSeriesAction | IReplaceEventsAction;
|
|
28
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
29
|
+
name: TaskName.SyncResourcesFromCOA;
|
|
30
|
+
data: IData;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* リソース同期タスク
|
|
34
|
+
*/
|
|
35
|
+
export type ITask = IExtendId<IAttributes>;
|
package/lib/taskName.d.ts
CHANGED
package/lib/taskName.js
CHANGED