@chevre/factory 5.3.0-alpha.1 → 5.3.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.
|
@@ -23,6 +23,14 @@ export interface IPurpose {
|
|
|
23
23
|
typeOf: TransactionType.PlaceOrder;
|
|
24
24
|
id: string;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* 決済方法チケット
|
|
28
|
+
*/
|
|
29
|
+
export interface ITicketAsInstrument {
|
|
30
|
+
ticketToken: string;
|
|
31
|
+
typeOf: 'Ticket';
|
|
32
|
+
}
|
|
33
|
+
export type IInstrument = ITicketAsInstrument;
|
|
26
34
|
/**
|
|
27
35
|
* 決済採用アクション属性
|
|
28
36
|
*/
|
|
@@ -36,6 +44,11 @@ export interface IAttributes extends Pick<AcceptActionFactory.IAttributes<IObjec
|
|
|
36
44
|
* authorize payment action identifier
|
|
37
45
|
*/
|
|
38
46
|
identifier?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 決済採用に使用されるチケット
|
|
49
|
+
* 2025-11-22まではinstrument自体存在しない
|
|
50
|
+
*/
|
|
51
|
+
instrument?: IInstrument[];
|
|
39
52
|
}
|
|
40
53
|
/**
|
|
41
54
|
* 決済採用アクション
|
|
@@ -4,7 +4,7 @@ import { AvailablePaymentMethodType, IMovieTicket } from '../../../action/trade/
|
|
|
4
4
|
import { ActionType } from '../../../actionType';
|
|
5
5
|
import { ICreditCard, IFromLocation, ITokenizedPaymentCard } from '../../../assetTransaction/pay';
|
|
6
6
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
7
|
-
import { IOrderPaymentMethodIssuedThrough, ITotalPaymentDue } from '../../../order';
|
|
7
|
+
import { IEventServiceAsOrderedItem, IOrder, IOrderPaymentMethodIssuedThrough, IReservationFor4EventServiceOrderedItem, ITotalPaymentDue } from '../../../order';
|
|
8
8
|
import { PaymentStatusType } from '../../../paymentStatusType';
|
|
9
9
|
import { IPropertyValue } from '../../../propertyValue';
|
|
10
10
|
import { IPermitAsServiceOutput } from '../../../service/paymentService';
|
|
@@ -77,8 +77,9 @@ export interface IObjectIncludingPaymentMethodDetails {
|
|
|
77
77
|
*/
|
|
78
78
|
movieTickets?: IMovieTicket[];
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
|
-
* 2024-08-13~
|
|
80
|
+
* 決済方法チケット
|
|
81
|
+
* 当初はメンバーシップチケットとして使用(2024-08-13~)
|
|
82
|
+
* メンバーシップチケットに限らず、承認前に発行された決済方法チケットを指定すると、paymentMethodIdはチケットに依存する
|
|
82
83
|
*/
|
|
83
84
|
ticketToken?: string;
|
|
84
85
|
}
|
|
@@ -132,6 +133,34 @@ export interface IResultPaymentMethod {
|
|
|
132
133
|
currency?: string;
|
|
133
134
|
};
|
|
134
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* 決済承認結果としての請求書に関連する注文アイテムとしての興行
|
|
138
|
+
*/
|
|
139
|
+
export type IEventServiceAsInvoiceOrderedItem = Pick<IEventServiceAsOrderedItem, 'typeOf'> & {
|
|
140
|
+
serviceOutput: {
|
|
141
|
+
/**
|
|
142
|
+
* 請求書に関連するイベント
|
|
143
|
+
* 興行オファー承認のイベントリストと完全に一致する必要がある
|
|
144
|
+
*/
|
|
145
|
+
reservationFor: Pick<IReservationFor4EventServiceOrderedItem, 'id' | 'typeOf'>;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* 決済承認結果としての請求書に関連する注文アイテム
|
|
150
|
+
*/
|
|
151
|
+
export interface IInvoiceOrderedItem {
|
|
152
|
+
typeOf: 'OrderItem';
|
|
153
|
+
orderedItem: IEventServiceAsInvoiceOrderedItem;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* 決済承認結果としての請求書に関連する注文
|
|
157
|
+
*/
|
|
158
|
+
export interface IInvoiceReferenceOrder extends Pick<IOrder, 'typeOf'> {
|
|
159
|
+
/**
|
|
160
|
+
* 決済承認プロセスにおいて注文アイテムを指定された場合のみ定義される
|
|
161
|
+
*/
|
|
162
|
+
orderedItem?: IInvoiceOrderedItem[];
|
|
163
|
+
}
|
|
135
164
|
export interface IResultAsInvoice {
|
|
136
165
|
/**
|
|
137
166
|
* The identifier for the account the payment will be applied to.
|
|
@@ -166,6 +195,11 @@ export interface IResultAsInvoice {
|
|
|
166
195
|
additionalProperty?: IPropertyValue<string>[];
|
|
167
196
|
typeOf: ResultType;
|
|
168
197
|
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
198
|
+
/**
|
|
199
|
+
* 請求の関連注文
|
|
200
|
+
* support(2025-11-23~)
|
|
201
|
+
*/
|
|
202
|
+
referencesOrder?: IInvoiceReferenceOrder;
|
|
169
203
|
}
|
|
170
204
|
export type IResultAsPermit = Pick<IPermitAsServiceOutput, 'typeOf' | 'issuedThrough'> & {
|
|
171
205
|
/**
|
|
@@ -181,17 +215,12 @@ export interface IPurpose {
|
|
|
181
215
|
export declare enum ServiceIdentifier {
|
|
182
216
|
Chevre = "Chevre"
|
|
183
217
|
}
|
|
184
|
-
export interface IInstrumentAsService {
|
|
185
|
-
typeOf: 'WebAPI';
|
|
186
|
-
transactionNumber: never;
|
|
187
|
-
identifier: ServiceIdentifier;
|
|
188
|
-
}
|
|
189
218
|
export interface IInstrumentAsAssetTransaction {
|
|
190
219
|
typeOf: AssetTransactionType.Pay;
|
|
191
220
|
transactionNumber: string;
|
|
192
221
|
identifier: ServiceIdentifier;
|
|
193
222
|
}
|
|
194
|
-
export type IInstrument = IInstrumentAsAssetTransaction
|
|
223
|
+
export type IInstrument = IInstrumentAsAssetTransaction;
|
|
195
224
|
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
196
225
|
typeOf: ActionType.AuthorizeAction;
|
|
197
226
|
object: IObject;
|
package/lib/authorization.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IResultAsInvoice } from './action/authorize/paymentMethod/any';
|
|
1
2
|
import { IEventOfferToken } from './assetTransaction/reserve';
|
|
2
3
|
import { CreativeWorkType } from './creativeWorkType';
|
|
3
4
|
import { IInvoice } from './invoice';
|
|
@@ -20,6 +21,12 @@ export type IPermitIssuedThroughOfObjectTypeOfGood = Pick<IPermitIssuedThroughAs
|
|
|
20
21
|
export type IPermitAsTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'typeOf'> & {
|
|
21
22
|
issuedThrough?: IPermitIssuedThroughOfObjectTypeOfGood;
|
|
22
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* 決済方法チケットの請求情報
|
|
26
|
+
*/
|
|
27
|
+
export interface IInvoiceAsPaymentMethodServiceOutput extends Pick<IResultAsInvoice, 'paymentMethodId' | 'referencesOrder'> {
|
|
28
|
+
typeOf: IInvoice['typeOf'];
|
|
29
|
+
}
|
|
23
30
|
/**
|
|
24
31
|
* 決済サービス発行のチケット
|
|
25
32
|
* new(2025-11-11~)
|
|
@@ -27,7 +34,7 @@ export type IPermitAsTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'typeOf'> &
|
|
|
27
34
|
export interface IPaymentMethodAsTypeOfGood {
|
|
28
35
|
id: string;
|
|
29
36
|
typeOf: PaymentServiceType.CreditCard | PaymentServiceType.MovieTicket;
|
|
30
|
-
serviceOutput:
|
|
37
|
+
serviceOutput: IInvoiceAsPaymentMethodServiceOutput;
|
|
31
38
|
issuedThrough?: never;
|
|
32
39
|
}
|
|
33
40
|
/**
|
|
@@ -39,7 +46,7 @@ export interface IFaceToFacePaymentMethodAsTypeOfGood {
|
|
|
39
46
|
*/
|
|
40
47
|
id?: never;
|
|
41
48
|
typeOf: PaymentServiceType.FaceToFace;
|
|
42
|
-
serviceOutput:
|
|
49
|
+
serviceOutput: IInvoiceAsPaymentMethodServiceOutput;
|
|
43
50
|
issuedThrough?: never;
|
|
44
51
|
}
|
|
45
52
|
export type IPermitOwnershipInfo = Pick<IOwnershipInfo<IPermitAsTypeOfGood>, 'typeOf' | 'typeOfGood'>;
|
package/lib/invoice.d.ts
CHANGED
|
@@ -11,9 +11,6 @@ import { ISeller } from './seller';
|
|
|
11
11
|
import { PaymentServiceType } from './service/paymentService';
|
|
12
12
|
export type IBroker = Pick<ISeller, 'id' | 'typeOf'> | IPerson;
|
|
13
13
|
export type IProvider = Pick<ISeller, 'id' | 'typeOf'> | IPerson;
|
|
14
|
-
export interface IReferenceOrder extends OrderFactory.IOrder {
|
|
15
|
-
acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
|
|
16
|
-
}
|
|
17
14
|
export type IReservationPriceAccounting = Pick<IAccounting, 'accountsReceivable'>;
|
|
18
15
|
export type IAppliesToAddOn = Pick<IUnitPriceSpecAppliesToAddOn, 'typeOf'>;
|
|
19
16
|
export type IMinimizedCategoryCodeChargeSpecification = Pick<ICategoryCodeChargeSpecification, 'typeOf' | 'price'>;
|
|
@@ -126,7 +123,6 @@ export interface IInvoice {
|
|
|
126
123
|
/**
|
|
127
124
|
* The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
|
|
128
125
|
*/
|
|
129
|
-
referencesOrder?: IReferenceOrder;
|
|
130
126
|
/**
|
|
131
127
|
* The date the invoice is scheduled to be paid.
|
|
132
128
|
*/
|
package/lib/order.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export interface IReferencedInvoice {
|
|
|
85
85
|
*/
|
|
86
86
|
additionalProperty: IPropertyValue<string>[];
|
|
87
87
|
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
88
|
+
referencesOrder?: never;
|
|
88
89
|
}
|
|
89
90
|
export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
|
|
90
91
|
export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|