@chevre/factory 6.2.0-alpha.0 → 6.2.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/service/paymentService.d.ts +50 -15
- package/package.json +1 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { IInvoice } from '../invoice';
|
|
2
2
|
import { IMultilingualString } from '../multilingualString';
|
|
3
|
+
import { OrganizationType } from '../organizationType';
|
|
3
4
|
import { IPermit } from '../permit';
|
|
4
5
|
import { IPotentialInformAction as IPotentialInformActionTemplate } from '../potentialAction';
|
|
5
6
|
import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
|
|
6
7
|
import { IProject } from '../project';
|
|
7
8
|
import { IPropertyValue } from '../propertyValue';
|
|
8
|
-
import { ISeller } from '../seller';
|
|
9
9
|
import { SortType } from '../sortType';
|
|
10
|
-
import { IThing } from '../thing';
|
|
11
10
|
export declare enum PaymentServiceType {
|
|
12
11
|
CreditCard = "CreditCard",
|
|
13
12
|
FaceToFace = "FaceToFace",
|
|
@@ -25,7 +24,7 @@ export interface IPaymentUrlSettings {
|
|
|
25
24
|
use3DS?: boolean;
|
|
26
25
|
}
|
|
27
26
|
export type ICallbackType3ds = 'GET' | 'POST';
|
|
28
|
-
export interface
|
|
27
|
+
export interface IProviderCredentialsCreditCard {
|
|
29
28
|
/**
|
|
30
29
|
* ショップID
|
|
31
30
|
*/
|
|
@@ -46,7 +45,14 @@ export interface IProviderCredentials {
|
|
|
46
45
|
* 3Dセキュアコールバック方法
|
|
47
46
|
*/
|
|
48
47
|
callbackType3ds?: ICallbackType3ds;
|
|
48
|
+
/**
|
|
49
|
+
* 外部決済URL設定
|
|
50
|
+
*/
|
|
49
51
|
paymentUrl?: IPaymentUrlSettings;
|
|
52
|
+
kgygishCd?: never;
|
|
53
|
+
stCd?: never;
|
|
54
|
+
}
|
|
55
|
+
export interface IProviderCredentialsMovieTicket {
|
|
50
56
|
/**
|
|
51
57
|
* 決済カード興行会社コード
|
|
52
58
|
*/
|
|
@@ -55,8 +61,19 @@ export interface IProviderCredentials {
|
|
|
55
61
|
* 決済カードサイトコード
|
|
56
62
|
*/
|
|
57
63
|
stCd?: string;
|
|
64
|
+
shopId?: never;
|
|
65
|
+
shopPass?: never;
|
|
66
|
+
tokenizationCode?: never;
|
|
67
|
+
returnUrls3ds?: never;
|
|
68
|
+
callbackType3ds?: never;
|
|
69
|
+
paymentUrl?: never;
|
|
58
70
|
}
|
|
59
|
-
export
|
|
71
|
+
export type IProviderCredentials = IProviderCredentialsCreditCard | IProviderCredentialsMovieTicket;
|
|
72
|
+
/**
|
|
73
|
+
* 決済方法提供者
|
|
74
|
+
*/
|
|
75
|
+
export interface IProvider {
|
|
76
|
+
typeOf: OrganizationType.Corporation;
|
|
60
77
|
/**
|
|
61
78
|
* 販売者ID
|
|
62
79
|
*/
|
|
@@ -66,16 +83,26 @@ export interface IProvider extends Pick<ISeller, 'typeOf'> {
|
|
|
66
83
|
*/
|
|
67
84
|
credentials?: IProviderCredentials;
|
|
68
85
|
}
|
|
69
|
-
export
|
|
86
|
+
export interface IAvailableChannelCreditCard {
|
|
87
|
+
typeOf: IProductAvailableChannel['typeOf'];
|
|
70
88
|
/**
|
|
71
89
|
* add paymentServiceChannel ID(2025-02-21~)
|
|
72
90
|
*/
|
|
73
|
-
id
|
|
91
|
+
id: string;
|
|
92
|
+
credentials?: never;
|
|
93
|
+
totalPaymentDue?: never;
|
|
94
|
+
}
|
|
95
|
+
export interface IAvailableChannelMovieTicket {
|
|
96
|
+
typeOf: IProductAvailableChannel['typeOf'];
|
|
97
|
+
/**
|
|
98
|
+
* add paymentServiceChannel ID(2025-02-21~)
|
|
99
|
+
*/
|
|
100
|
+
id: string;
|
|
74
101
|
credentials?: never;
|
|
75
102
|
totalPaymentDue?: {
|
|
76
103
|
maxValue?: number;
|
|
77
104
|
};
|
|
78
|
-
}
|
|
105
|
+
}
|
|
79
106
|
/**
|
|
80
107
|
* CreditCardIF決済サービスのカード属性
|
|
81
108
|
* ポイントカード情報など
|
|
@@ -112,15 +139,9 @@ export type IPermitAsServiceOutput = Pick<IPermit, 'typeOf'> & {
|
|
|
112
139
|
export type IServiceOutput = (IInvoiceAsServiceOutput | IPermitAsServiceOutput)[];
|
|
113
140
|
export type IPotentialInformAction = Pick<IPotentialInformActionTemplate, 'id' | 'typeOf'>;
|
|
114
141
|
export type IPotentialAction = IPotentialInformAction;
|
|
115
|
-
|
|
116
|
-
* 決済サービス
|
|
117
|
-
* {@link https://schema.org/Service}
|
|
118
|
-
*/
|
|
119
|
-
export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
142
|
+
export interface ICommonAttributes {
|
|
120
143
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
121
|
-
typeOf: PaymentServiceType;
|
|
122
144
|
id?: string;
|
|
123
|
-
availableChannel?: IAvailableChannel;
|
|
124
145
|
description?: Pick<IMultilingualString, 'en' | 'ja'>;
|
|
125
146
|
name?: Pick<IMultilingualString, 'en' | 'ja'>;
|
|
126
147
|
/**
|
|
@@ -139,8 +160,22 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
|
139
160
|
*/
|
|
140
161
|
serviceType: IServiceType;
|
|
141
162
|
additionalProperty?: IPropertyValue<string>[];
|
|
142
|
-
potentialAction?: IPotentialAction[];
|
|
143
163
|
}
|
|
164
|
+
export type ICreditCardPaymentMethod = ICommonAttributes & {
|
|
165
|
+
typeOf: PaymentServiceType.CreditCard;
|
|
166
|
+
availableChannel?: IAvailableChannelCreditCard;
|
|
167
|
+
potentialAction?: IPotentialAction[];
|
|
168
|
+
};
|
|
169
|
+
export type IMovieTicketPaymentMethod = ICommonAttributes & {
|
|
170
|
+
typeOf: PaymentServiceType.MovieTicket;
|
|
171
|
+
availableChannel?: IAvailableChannelMovieTicket;
|
|
172
|
+
potentialAction?: IPotentialAction[];
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* 決済サービス
|
|
176
|
+
* {@link https://schema.org/PaymentService}
|
|
177
|
+
*/
|
|
178
|
+
export type IService = ICreditCardPaymentMethod | IMovieTicketPaymentMethod;
|
|
144
179
|
export interface ISortOrder {
|
|
145
180
|
productID?: SortType;
|
|
146
181
|
}
|