@distilled.cloud/adyen 0.0.0 → 1.0.0-rc.9
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/LICENSE +201 -0
- package/lib/credentials.d.ts +30 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +36 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +24 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +28 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +9 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +61 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +32 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/adyen.d.ts +5647 -0
- package/lib/services/adyen.d.ts.map +1 -0
- package/lib/services/adyen.js +3367 -0
- package/lib/services/adyen.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -6
- package/src/credentials.ts +58 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +35 -0
- package/src/pagination.ts +8 -0
- package/src/protocol.ts +86 -0
- package/src/retry.ts +54 -0
- package/src/services/adyen.ts +10715 -0
- package/src/services/index.ts +2 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,3367 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-adyen). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as C from "@distilled.cloud/core/category";
|
|
6
|
+
import * as T from "../traits.js";
|
|
7
|
+
import { AdyenProtocol, } from "../protocol.js";
|
|
8
|
+
import { UnknownAdyenError } from "../errors.js";
|
|
9
|
+
import * as Retry from "../retry.js";
|
|
10
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
11
|
+
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
12
|
+
code: S.Number,
|
|
13
|
+
message: S.String,
|
|
14
|
+
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
15
|
+
}
|
|
16
|
+
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
+
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
18
|
+
code: S.Number,
|
|
19
|
+
message: S.String,
|
|
20
|
+
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
21
|
+
}
|
|
22
|
+
export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
23
|
+
/*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
|
|
24
|
+
code: S.Number,
|
|
25
|
+
message: S.String,
|
|
26
|
+
}).pipe(C.withBadRequestError), [{ status: 422 }]) {
|
|
27
|
+
}
|
|
28
|
+
export const CreateApplePaySessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
29
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
30
|
+
displayName: S.String,
|
|
31
|
+
domainName: S.String,
|
|
32
|
+
merchantIdentifier: S.String,
|
|
33
|
+
}).pipe(T.Http({ method: "POST", uri: "/applePay/sessions", code: 200 }))).annotate({
|
|
34
|
+
identifier: "CreateApplePaySessionRequest",
|
|
35
|
+
});
|
|
36
|
+
export const ApplePaySessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
37
|
+
data: S.String,
|
|
38
|
+
})).annotate({
|
|
39
|
+
identifier: "ApplePaySessionResponse",
|
|
40
|
+
});
|
|
41
|
+
export const CommonField = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
42
|
+
name: S.optional(S.String),
|
|
43
|
+
version: S.optional(S.String),
|
|
44
|
+
})).annotate({ identifier: "CommonField" });
|
|
45
|
+
export const ExternalPlatform = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
46
|
+
integrator: S.optional(S.String),
|
|
47
|
+
name: S.optional(S.String),
|
|
48
|
+
version: S.optional(S.String),
|
|
49
|
+
})).annotate({
|
|
50
|
+
identifier: "ExternalPlatform",
|
|
51
|
+
});
|
|
52
|
+
export const MerchantDevice = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
53
|
+
os: S.optional(S.String),
|
|
54
|
+
osVersion: S.optional(S.String),
|
|
55
|
+
reference: S.optional(S.String),
|
|
56
|
+
})).annotate({ identifier: "MerchantDevice" });
|
|
57
|
+
export const ShopperInteractionDevice = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
+
locale: S.optional(S.String),
|
|
59
|
+
os: S.optional(S.String),
|
|
60
|
+
osVersion: S.optional(S.String),
|
|
61
|
+
})).annotate({
|
|
62
|
+
identifier: "ShopperInteractionDevice",
|
|
63
|
+
});
|
|
64
|
+
export const ApplicationInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
+
adyenLibrary: S.optional(CommonField),
|
|
66
|
+
adyenPaymentSource: S.optional(CommonField),
|
|
67
|
+
externalPlatform: S.optional(ExternalPlatform),
|
|
68
|
+
merchantApplication: S.optional(CommonField),
|
|
69
|
+
merchantDevice: S.optional(MerchantDevice),
|
|
70
|
+
shopperInteractionDevice: S.optional(ShopperInteractionDevice),
|
|
71
|
+
})).annotate({
|
|
72
|
+
identifier: "ApplicationInfo",
|
|
73
|
+
});
|
|
74
|
+
export const CreateCancelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
75
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
76
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
77
|
+
merchantAccount: S.String,
|
|
78
|
+
paymentReference: S.String,
|
|
79
|
+
reference: S.optional(S.String),
|
|
80
|
+
}).pipe(T.Http({ method: "POST", uri: "/cancels", code: 200 }))).annotate({
|
|
81
|
+
identifier: "CreateCancelRequest",
|
|
82
|
+
});
|
|
83
|
+
export const StandalonePaymentCancelResponseStatus = /*@__PURE__*/ S.String;
|
|
84
|
+
export const StandalonePaymentCancelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
85
|
+
merchantAccount: S.String,
|
|
86
|
+
paymentReference: S.String,
|
|
87
|
+
pspReference: S.String,
|
|
88
|
+
reference: S.optional(S.String),
|
|
89
|
+
status: StandalonePaymentCancelResponseStatus,
|
|
90
|
+
})).annotate({
|
|
91
|
+
identifier: "StandalonePaymentCancelResponse",
|
|
92
|
+
});
|
|
93
|
+
export const CreateCardDetailRequestSupportedBrandsList = /*@__PURE__*/ S.Array(S.String);
|
|
94
|
+
export const CreateCardDetailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
95
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
96
|
+
cardNumber: S.optional(S.String),
|
|
97
|
+
countryCode: S.optional(S.String),
|
|
98
|
+
encryptedCardNumber: S.optional(S.String),
|
|
99
|
+
merchantAccount: S.String,
|
|
100
|
+
supportedBrands: S.optional(CreateCardDetailRequestSupportedBrandsList),
|
|
101
|
+
}).pipe(T.Http({ method: "POST", uri: "/cardDetails", code: 200 }))).annotate({
|
|
102
|
+
identifier: "CreateCardDetailRequest",
|
|
103
|
+
});
|
|
104
|
+
export const CardBrandDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
105
|
+
healthcare: S.optional(S.Boolean),
|
|
106
|
+
supported: S.optional(S.Boolean),
|
|
107
|
+
type: S.optional(S.String),
|
|
108
|
+
})).annotate({
|
|
109
|
+
identifier: "CardBrandDetails",
|
|
110
|
+
});
|
|
111
|
+
export const CardDetailsResponseBrandsList = /*@__PURE__*/ S.Array(CardBrandDetails);
|
|
112
|
+
export const CardDetailsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
113
|
+
brands: S.optional(CardDetailsResponseBrandsList),
|
|
114
|
+
fundingSource: S.optional(S.String),
|
|
115
|
+
isCardCommercial: S.optional(S.Boolean),
|
|
116
|
+
issuingCountryCode: S.optional(S.String),
|
|
117
|
+
})).annotate({
|
|
118
|
+
identifier: "CardDetailsResponse",
|
|
119
|
+
});
|
|
120
|
+
export const AccountInfoAccountAgeIndicator = /*@__PURE__*/ S.String;
|
|
121
|
+
export const AccountInfoAccountChangeIndicator = /*@__PURE__*/ S.String;
|
|
122
|
+
export const AccountInfoAccountType = /*@__PURE__*/ S.String;
|
|
123
|
+
export const AccountInfoDeliveryAddressUsageIndicator = /*@__PURE__*/ S.String;
|
|
124
|
+
export const AccountInfoPasswordChangeIndicator = /*@__PURE__*/ S.String;
|
|
125
|
+
export const AccountInfoPaymentAccountIndicator = /*@__PURE__*/ S.String;
|
|
126
|
+
export const AccountInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
127
|
+
accountAgeIndicator: S.optional(AccountInfoAccountAgeIndicator),
|
|
128
|
+
accountChangeDate: S.optional(S.String),
|
|
129
|
+
accountChangeIndicator: S.optional(AccountInfoAccountChangeIndicator),
|
|
130
|
+
accountCreationDate: S.optional(S.String),
|
|
131
|
+
accountType: S.optional(AccountInfoAccountType),
|
|
132
|
+
addCardAttemptsDay: S.optional(S.Number),
|
|
133
|
+
deliveryAddressUsageDate: S.optional(S.String),
|
|
134
|
+
deliveryAddressUsageIndicator: S.optional(AccountInfoDeliveryAddressUsageIndicator),
|
|
135
|
+
homePhone: S.optional(S.String),
|
|
136
|
+
mobilePhone: S.optional(S.String),
|
|
137
|
+
passwordChangeDate: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
138
|
+
passwordChangeIndicator: S.optional(AccountInfoPasswordChangeIndicator),
|
|
139
|
+
pastTransactionsDay: S.optional(S.Number),
|
|
140
|
+
pastTransactionsYear: S.optional(S.Number),
|
|
141
|
+
paymentAccountAge: S.optional(S.String),
|
|
142
|
+
paymentAccountIndicator: S.optional(AccountInfoPaymentAccountIndicator),
|
|
143
|
+
purchasesLast6Months: S.optional(S.Number),
|
|
144
|
+
suspiciousActivity: S.optional(S.Boolean),
|
|
145
|
+
workPhone: S.optional(S.String),
|
|
146
|
+
})).annotate({ identifier: "AccountInfo" });
|
|
147
|
+
export const Amount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
148
|
+
currency: S.String,
|
|
149
|
+
value: S.Number,
|
|
150
|
+
})).annotate({ identifier: "Amount" });
|
|
151
|
+
export const AuthenticationDataAttemptAuthentication = /*@__PURE__*/ S.String;
|
|
152
|
+
export const ThreeDSRequestDataChallengeWindowSize = /*@__PURE__*/ S.String;
|
|
153
|
+
export const ThreeDSRequestDataDataOnly = /*@__PURE__*/ S.String;
|
|
154
|
+
export const ThreeDSRequestDataNativeThreeDS = /*@__PURE__*/ S.String;
|
|
155
|
+
export const ThreeDSRequestDataThreeDSVersion = /*@__PURE__*/ S.String;
|
|
156
|
+
export const ThreeDSRequestData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
157
|
+
challengeWindowSize: S.optional(ThreeDSRequestDataChallengeWindowSize),
|
|
158
|
+
dataOnly: S.optional(ThreeDSRequestDataDataOnly),
|
|
159
|
+
nativeThreeDS: S.optional(ThreeDSRequestDataNativeThreeDS),
|
|
160
|
+
threeDSVersion: S.optional(ThreeDSRequestDataThreeDSVersion),
|
|
161
|
+
})).annotate({
|
|
162
|
+
identifier: "ThreeDSRequestData",
|
|
163
|
+
});
|
|
164
|
+
export const AuthenticationData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
165
|
+
attemptAuthentication: S.optional(AuthenticationDataAttemptAuthentication),
|
|
166
|
+
authenticationOnly: S.optional(S.Boolean),
|
|
167
|
+
threeDSRequestData: S.optional(ThreeDSRequestData),
|
|
168
|
+
})).annotate({
|
|
169
|
+
identifier: "AuthenticationData",
|
|
170
|
+
});
|
|
171
|
+
export const BillingAddress = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
172
|
+
city: S.String,
|
|
173
|
+
country: S.String,
|
|
174
|
+
houseNumberOrName: S.String,
|
|
175
|
+
postalCode: S.String,
|
|
176
|
+
stateOrProvince: S.optional(S.String),
|
|
177
|
+
street: S.String,
|
|
178
|
+
})).annotate({ identifier: "BillingAddress" });
|
|
179
|
+
export const BrowserInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
180
|
+
acceptHeader: S.String,
|
|
181
|
+
colorDepth: S.Number,
|
|
182
|
+
javaEnabled: S.Boolean,
|
|
183
|
+
javaScriptEnabled: S.optional(S.Boolean),
|
|
184
|
+
language: S.String,
|
|
185
|
+
screenHeight: S.Number,
|
|
186
|
+
screenWidth: S.Number,
|
|
187
|
+
timeZoneOffset: S.Number,
|
|
188
|
+
userAgent: S.String,
|
|
189
|
+
})).annotate({ identifier: "BrowserInfo" });
|
|
190
|
+
export const CreateDonationRequestChannel = /*@__PURE__*/ S.String;
|
|
191
|
+
export const DeliveryAddress = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
192
|
+
city: S.String,
|
|
193
|
+
country: S.String,
|
|
194
|
+
firstName: S.optional(S.String),
|
|
195
|
+
houseNumberOrName: S.String,
|
|
196
|
+
lastName: S.optional(S.String),
|
|
197
|
+
postalCode: S.String,
|
|
198
|
+
stateOrProvince: S.optional(S.String),
|
|
199
|
+
street: S.String,
|
|
200
|
+
})).annotate({
|
|
201
|
+
identifier: "DeliveryAddress",
|
|
202
|
+
});
|
|
203
|
+
export const LineItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
204
|
+
amountExcludingTax: S.optional(S.Number),
|
|
205
|
+
amountIncludingTax: S.optional(S.Number),
|
|
206
|
+
brand: S.optional(S.String),
|
|
207
|
+
color: S.optional(S.String),
|
|
208
|
+
description: S.optional(S.String),
|
|
209
|
+
id: S.optional(S.String),
|
|
210
|
+
imageUrl: S.optional(S.String),
|
|
211
|
+
itemCategory: S.optional(S.String),
|
|
212
|
+
manufacturer: S.optional(S.String),
|
|
213
|
+
marketplaceSellerId: S.optional(S.String),
|
|
214
|
+
productUrl: S.optional(S.String),
|
|
215
|
+
quantity: S.optional(S.Number),
|
|
216
|
+
receiverEmail: S.optional(S.String),
|
|
217
|
+
returnShippingCompany: S.optional(S.String),
|
|
218
|
+
returnTrackingNumber: S.optional(S.String),
|
|
219
|
+
returnTrackingUri: S.optional(S.String),
|
|
220
|
+
shippingCompany: S.optional(S.String),
|
|
221
|
+
shippingMethod: S.optional(S.String),
|
|
222
|
+
size: S.optional(S.String),
|
|
223
|
+
sku: S.optional(S.String),
|
|
224
|
+
taxAmount: S.optional(S.Number),
|
|
225
|
+
taxPercentage: S.optional(S.Number),
|
|
226
|
+
trackingNumber: S.optional(S.String),
|
|
227
|
+
trackingUri: S.optional(S.String),
|
|
228
|
+
upc: S.optional(S.String),
|
|
229
|
+
})).annotate({ identifier: "LineItem" });
|
|
230
|
+
export const CreateDonationRequestLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
231
|
+
export const MerchantRiskIndicatorDeliveryAddressIndicator =
|
|
232
|
+
/*@__PURE__*/ S.String;
|
|
233
|
+
export const MerchantRiskIndicatorDeliveryTimeframe = /*@__PURE__*/ S.String;
|
|
234
|
+
export const MerchantRiskIndicator = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
235
|
+
addressMatch: S.optional(S.Boolean),
|
|
236
|
+
deliveryAddressIndicator: S.optional(MerchantRiskIndicatorDeliveryAddressIndicator),
|
|
237
|
+
deliveryEmail: S.optional(S.String),
|
|
238
|
+
deliveryEmailAddress: S.optional(S.String),
|
|
239
|
+
deliveryTimeframe: S.optional(MerchantRiskIndicatorDeliveryTimeframe),
|
|
240
|
+
giftCardAmount: S.optional(Amount),
|
|
241
|
+
giftCardCount: S.optional(S.Number),
|
|
242
|
+
giftCardCurr: S.optional(S.String),
|
|
243
|
+
preOrderDate: S.optional(S.String),
|
|
244
|
+
preOrderPurchase: S.optional(S.Boolean),
|
|
245
|
+
preOrderPurchaseInd: S.optional(S.String),
|
|
246
|
+
reorderItems: S.optional(S.Boolean),
|
|
247
|
+
reorderItemsInd: S.optional(S.String),
|
|
248
|
+
shipIndicator: S.optional(S.String),
|
|
249
|
+
})).annotate({
|
|
250
|
+
identifier: "MerchantRiskIndicator",
|
|
251
|
+
});
|
|
252
|
+
export const CreateDonationRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
253
|
+
export const ThreeDSecureDataAuthenticationResponse = /*@__PURE__*/ S.String;
|
|
254
|
+
export const ThreeDSecureDataChallengeCancel = /*@__PURE__*/ S.String;
|
|
255
|
+
export const ThreeDSecureDataDirectoryResponse = /*@__PURE__*/ S.String;
|
|
256
|
+
export const ThreeDSecureData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
257
|
+
authenticationResponse: S.optional(ThreeDSecureDataAuthenticationResponse),
|
|
258
|
+
cavv: S.optional(S.String),
|
|
259
|
+
cavvAlgorithm: S.optional(S.String),
|
|
260
|
+
challengeCancel: S.optional(ThreeDSecureDataChallengeCancel),
|
|
261
|
+
directoryResponse: S.optional(ThreeDSecureDataDirectoryResponse),
|
|
262
|
+
dsTransID: S.optional(S.String),
|
|
263
|
+
eci: S.optional(S.String),
|
|
264
|
+
riskScore: S.optional(S.String),
|
|
265
|
+
threeDSVersion: S.optional(S.String),
|
|
266
|
+
tokenAuthenticationVerificationValue: S.optional(S.String),
|
|
267
|
+
transStatusReason: S.optional(S.String),
|
|
268
|
+
xid: S.optional(S.String),
|
|
269
|
+
})).annotate({
|
|
270
|
+
identifier: "ThreeDSecureData",
|
|
271
|
+
});
|
|
272
|
+
export const ApplePayDonationsFundingSource = /*@__PURE__*/ S.String;
|
|
273
|
+
export const ApplePayDonationsType = /*@__PURE__*/ S.String;
|
|
274
|
+
export const ApplePayDonations = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
275
|
+
applePayToken: S.String,
|
|
276
|
+
checkoutAttemptId: S.optional(S.String),
|
|
277
|
+
fundingSource: S.optional(ApplePayDonationsFundingSource),
|
|
278
|
+
recurringDetailReference: S.optional(S.String),
|
|
279
|
+
sdkData: S.optional(S.String),
|
|
280
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
281
|
+
type: S.optional(ApplePayDonationsType),
|
|
282
|
+
})).annotate({
|
|
283
|
+
identifier: "ApplePayDonations",
|
|
284
|
+
});
|
|
285
|
+
export const CardDonationsFundingSource = /*@__PURE__*/ S.String;
|
|
286
|
+
export const CardDonationsType = /*@__PURE__*/ S.String;
|
|
287
|
+
export const CardDonations = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
288
|
+
billingSequenceNumber: S.optional(S.String),
|
|
289
|
+
brand: S.optional(S.String),
|
|
290
|
+
checkoutAttemptId: S.optional(S.String),
|
|
291
|
+
cupsecureplus_smscode: S.optional(S.String.pipe(T.Body("cupsecureplus.smscode"))),
|
|
292
|
+
cvc: S.optional(S.String),
|
|
293
|
+
encryptedCard: S.optional(S.String),
|
|
294
|
+
encryptedCardNumber: S.optional(S.String),
|
|
295
|
+
encryptedExpiryMonth: S.optional(S.String),
|
|
296
|
+
encryptedExpiryYear: S.optional(S.String),
|
|
297
|
+
encryptedPassword: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
298
|
+
encryptedSecurityCode: S.optional(S.String),
|
|
299
|
+
expiryMonth: S.optional(S.String),
|
|
300
|
+
expiryYear: S.optional(S.String),
|
|
301
|
+
fastlaneData: S.optional(S.String),
|
|
302
|
+
fundingSource: S.optional(CardDonationsFundingSource),
|
|
303
|
+
holderName: S.optional(S.String),
|
|
304
|
+
networkPaymentReference: S.optional(S.String),
|
|
305
|
+
number: S.optional(S.String),
|
|
306
|
+
recurringDetailReference: S.optional(S.String),
|
|
307
|
+
sdkData: S.optional(S.String),
|
|
308
|
+
shopperNotificationReference: S.optional(S.String),
|
|
309
|
+
srcCorrelationId: S.optional(S.String),
|
|
310
|
+
srcDigitalCardId: S.optional(S.String),
|
|
311
|
+
srcScheme: S.optional(S.String),
|
|
312
|
+
srcTokenReference: S.optional(S.String),
|
|
313
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
314
|
+
threeDS2SdkVersion: S.optional(S.String),
|
|
315
|
+
type: S.optional(CardDonationsType),
|
|
316
|
+
})).annotate({ identifier: "CardDonations" });
|
|
317
|
+
export const GooglePayDonationsFundingSource = /*@__PURE__*/ S.String;
|
|
318
|
+
export const GooglePayDonationsType = /*@__PURE__*/ S.String;
|
|
319
|
+
export const GooglePayDonations = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
320
|
+
checkoutAttemptId: S.optional(S.String),
|
|
321
|
+
fundingSource: S.optional(GooglePayDonationsFundingSource),
|
|
322
|
+
googlePayCardNetwork: S.optional(S.String),
|
|
323
|
+
googlePayToken: S.String,
|
|
324
|
+
recurringDetailReference: S.optional(S.String),
|
|
325
|
+
sdkData: S.optional(S.String),
|
|
326
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
327
|
+
threeDS2SdkVersion: S.optional(S.String),
|
|
328
|
+
type: S.optional(GooglePayDonationsType),
|
|
329
|
+
})).annotate({
|
|
330
|
+
identifier: "GooglePayDonations",
|
|
331
|
+
});
|
|
332
|
+
export const IdealDonationsType = /*@__PURE__*/ S.String;
|
|
333
|
+
export const IdealDonations = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
334
|
+
checkoutAttemptId: S.optional(S.String),
|
|
335
|
+
issuer: S.optional(S.String),
|
|
336
|
+
recurringDetailReference: S.optional(S.String),
|
|
337
|
+
sdkData: S.optional(S.String),
|
|
338
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
339
|
+
type: S.optional(IdealDonationsType),
|
|
340
|
+
})).annotate({ identifier: "IdealDonations" });
|
|
341
|
+
export const PayWithGoogleDonationsFundingSource = /*@__PURE__*/ S.String;
|
|
342
|
+
export const PayWithGoogleDonationsType = /*@__PURE__*/ S.String;
|
|
343
|
+
export const PayWithGoogleDonations = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
344
|
+
checkoutAttemptId: S.optional(S.String),
|
|
345
|
+
fundingSource: S.optional(PayWithGoogleDonationsFundingSource),
|
|
346
|
+
googlePayToken: S.String,
|
|
347
|
+
recurringDetailReference: S.optional(S.String),
|
|
348
|
+
sdkData: S.optional(S.String),
|
|
349
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
350
|
+
threeDS2SdkVersion: S.optional(S.String),
|
|
351
|
+
type: S.optional(PayWithGoogleDonationsType),
|
|
352
|
+
})).annotate({
|
|
353
|
+
identifier: "PayWithGoogleDonations",
|
|
354
|
+
});
|
|
355
|
+
export const SepaDirectDebitDonationsType = /*@__PURE__*/ S.String;
|
|
356
|
+
export const SepaDirectDebitDonations = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
357
|
+
checkoutAttemptId: S.optional(S.String),
|
|
358
|
+
recurringDetailReference: S.optional(S.String),
|
|
359
|
+
sdkData: S.optional(S.String),
|
|
360
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
361
|
+
type: S.optional(SepaDirectDebitDonationsType),
|
|
362
|
+
})).annotate({
|
|
363
|
+
identifier: "SepaDirectDebitDonations",
|
|
364
|
+
});
|
|
365
|
+
export const CreateDonationRequestPaymentMethod =
|
|
366
|
+
/*@__PURE__*/ S.Unknown;
|
|
367
|
+
export const CreateDonationRequestRecurringProcessingModel =
|
|
368
|
+
/*@__PURE__*/ S.String;
|
|
369
|
+
export const CreateDonationRequestShopperInteraction = /*@__PURE__*/ S.String;
|
|
370
|
+
export const ShopperName = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
371
|
+
firstName: S.String,
|
|
372
|
+
lastName: S.String,
|
|
373
|
+
})).annotate({ identifier: "ShopperName" });
|
|
374
|
+
export const AcctInfoChAccAgeInd = /*@__PURE__*/ S.String;
|
|
375
|
+
export const AcctInfoChAccChangeInd = /*@__PURE__*/ S.String;
|
|
376
|
+
export const AcctInfoChAccPwChangeInd = /*@__PURE__*/ S.String;
|
|
377
|
+
export const AcctInfoPaymentAccInd = /*@__PURE__*/ S.String;
|
|
378
|
+
export const AcctInfoShipAddressUsageInd = /*@__PURE__*/ S.String;
|
|
379
|
+
export const AcctInfoShipNameIndicator = /*@__PURE__*/ S.String;
|
|
380
|
+
export const AcctInfoSuspiciousAccActivity = /*@__PURE__*/ S.String;
|
|
381
|
+
export const AcctInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
382
|
+
chAccAgeInd: S.optional(AcctInfoChAccAgeInd),
|
|
383
|
+
chAccChange: S.optional(S.String),
|
|
384
|
+
chAccChangeInd: S.optional(AcctInfoChAccChangeInd),
|
|
385
|
+
chAccPwChange: S.optional(S.String),
|
|
386
|
+
chAccPwChangeInd: S.optional(AcctInfoChAccPwChangeInd),
|
|
387
|
+
chAccString: S.optional(S.String),
|
|
388
|
+
nbPurchaseAccount: S.optional(S.String),
|
|
389
|
+
paymentAccAge: S.optional(S.String),
|
|
390
|
+
paymentAccInd: S.optional(AcctInfoPaymentAccInd),
|
|
391
|
+
provisionAttemptsDay: S.optional(S.String),
|
|
392
|
+
shipAddressUsage: S.optional(S.String),
|
|
393
|
+
shipAddressUsageInd: S.optional(AcctInfoShipAddressUsageInd),
|
|
394
|
+
shipNameIndicator: S.optional(AcctInfoShipNameIndicator),
|
|
395
|
+
suspiciousAccActivity: S.optional(AcctInfoSuspiciousAccActivity),
|
|
396
|
+
txnActivityDay: S.optional(S.String),
|
|
397
|
+
txnActivityYear: S.optional(S.String),
|
|
398
|
+
})).annotate({ identifier: "AcctInfo" });
|
|
399
|
+
export const ThreeDS2RequestFieldsAcctType = /*@__PURE__*/ S.String;
|
|
400
|
+
export const ThreeDS2RequestFieldsAddrMatch = /*@__PURE__*/ S.String;
|
|
401
|
+
export const ThreeDS2RequestFieldsChallengeIndicator = /*@__PURE__*/ S.String;
|
|
402
|
+
export const DeviceRenderOptionsSdkInterface = /*@__PURE__*/ S.String;
|
|
403
|
+
export const DeviceRenderOptionsSdkUiTypeItem = /*@__PURE__*/ S.String;
|
|
404
|
+
export const DeviceRenderOptionsSdkUiTypeList = /*@__PURE__*/ S.Array(DeviceRenderOptionsSdkUiTypeItem);
|
|
405
|
+
export const DeviceRenderOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
406
|
+
sdkInterface: S.optional(DeviceRenderOptionsSdkInterface),
|
|
407
|
+
sdkUiType: S.optional(DeviceRenderOptionsSdkUiTypeList),
|
|
408
|
+
})).annotate({
|
|
409
|
+
identifier: "DeviceRenderOptions",
|
|
410
|
+
});
|
|
411
|
+
export const Phone = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
412
|
+
cc: S.optional(S.String),
|
|
413
|
+
subscriber: S.optional(S.String),
|
|
414
|
+
})).annotate({ identifier: "Phone" });
|
|
415
|
+
export const SDKEphemPubKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
416
|
+
crv: S.optional(S.String),
|
|
417
|
+
kty: S.optional(S.String),
|
|
418
|
+
x: S.optional(S.String),
|
|
419
|
+
y: S.optional(S.String),
|
|
420
|
+
})).annotate({ identifier: "SDKEphemPubKey" });
|
|
421
|
+
export const ThreeDSRequestorAuthenticationInfoThreeDSReqAuthMethod =
|
|
422
|
+
/*@__PURE__*/ S.String;
|
|
423
|
+
export const ThreeDSRequestorAuthenticationInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
424
|
+
threeDSReqAuthData: S.optional(S.String),
|
|
425
|
+
threeDSReqAuthMethod: S.optional(ThreeDSRequestorAuthenticationInfoThreeDSReqAuthMethod),
|
|
426
|
+
threeDSReqAuthTimestamp: S.optional(S.String),
|
|
427
|
+
})).annotate({
|
|
428
|
+
identifier: "ThreeDSRequestorAuthenticationInfo",
|
|
429
|
+
});
|
|
430
|
+
export const ThreeDS2RequestFieldsThreeDSRequestorChallengeInd =
|
|
431
|
+
/*@__PURE__*/ S.String;
|
|
432
|
+
export const ThreeDSRequestorPriorAuthenticationInfoThreeDSReqPriorAuthMethod =
|
|
433
|
+
/*@__PURE__*/ S.String;
|
|
434
|
+
export const ThreeDSRequestorPriorAuthenticationInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
435
|
+
threeDSReqPriorAuthData: S.optional(S.String),
|
|
436
|
+
threeDSReqPriorAuthMethod: S.optional(ThreeDSRequestorPriorAuthenticationInfoThreeDSReqPriorAuthMethod),
|
|
437
|
+
threeDSReqPriorAuthTimestamp: S.optional(S.String),
|
|
438
|
+
threeDSReqPriorRef: S.optional(S.String),
|
|
439
|
+
})).annotate({
|
|
440
|
+
identifier: "ThreeDSRequestorPriorAuthenticationInfo",
|
|
441
|
+
});
|
|
442
|
+
export const ThreeDS2RequestFieldsTransType = /*@__PURE__*/ S.String;
|
|
443
|
+
export const ThreeDS2RequestFieldsTransactionType = /*@__PURE__*/ S.String;
|
|
444
|
+
export const ThreeDS2RequestFields = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
445
|
+
acctInfo: S.optional(AcctInfo),
|
|
446
|
+
acctType: S.optional(ThreeDS2RequestFieldsAcctType),
|
|
447
|
+
acquirerBIN: S.optional(S.String),
|
|
448
|
+
acquirerMerchantID: S.optional(S.String),
|
|
449
|
+
addrMatch: S.optional(ThreeDS2RequestFieldsAddrMatch),
|
|
450
|
+
authenticationOnly: S.optional(S.Boolean),
|
|
451
|
+
challengeIndicator: S.optional(ThreeDS2RequestFieldsChallengeIndicator),
|
|
452
|
+
deviceRenderOptions: S.optional(DeviceRenderOptions),
|
|
453
|
+
homePhone: S.optional(Phone),
|
|
454
|
+
mcc: S.optional(S.String),
|
|
455
|
+
merchantName: S.optional(S.String),
|
|
456
|
+
messageVersion: S.optional(S.String),
|
|
457
|
+
mobilePhone: S.optional(Phone),
|
|
458
|
+
notificationURL: S.optional(S.String),
|
|
459
|
+
payTokenInd: S.optional(S.Boolean),
|
|
460
|
+
paymentAuthenticationUseCase: S.optional(S.String),
|
|
461
|
+
purchaseInstalData: S.optional(S.String),
|
|
462
|
+
recurringExpiry: S.optional(S.String),
|
|
463
|
+
recurringFrequency: S.optional(S.String),
|
|
464
|
+
sdkAppID: S.optional(S.String),
|
|
465
|
+
sdkEphemPubKey: S.optional(SDKEphemPubKey),
|
|
466
|
+
sdkMaxTimeout: S.optional(S.Number),
|
|
467
|
+
sdkReferenceNumber: S.optional(S.String),
|
|
468
|
+
sdkTransID: S.optional(S.String),
|
|
469
|
+
threeDSCompInd: S.optional(S.String),
|
|
470
|
+
threeDSRequestorAuthenticationInd: S.optional(S.String),
|
|
471
|
+
threeDSRequestorAuthenticationInfo: S.optional(ThreeDSRequestorAuthenticationInfo),
|
|
472
|
+
threeDSRequestorChallengeInd: S.optional(ThreeDS2RequestFieldsThreeDSRequestorChallengeInd),
|
|
473
|
+
threeDSRequestorID: S.optional(S.String),
|
|
474
|
+
threeDSRequestorName: S.optional(S.String),
|
|
475
|
+
threeDSRequestorPriorAuthenticationInfo: S.optional(ThreeDSRequestorPriorAuthenticationInfo),
|
|
476
|
+
threeDSRequestorURL: S.optional(S.String),
|
|
477
|
+
transType: S.optional(ThreeDS2RequestFieldsTransType),
|
|
478
|
+
transactionType: S.optional(ThreeDS2RequestFieldsTransactionType),
|
|
479
|
+
whiteListStatus: S.optional(S.String),
|
|
480
|
+
workPhone: S.optional(Phone),
|
|
481
|
+
})).annotate({
|
|
482
|
+
identifier: "ThreeDS2RequestFields",
|
|
483
|
+
});
|
|
484
|
+
export const CreateDonationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
485
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
486
|
+
accountInfo: S.optional(AccountInfo),
|
|
487
|
+
amount: Amount,
|
|
488
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
489
|
+
authenticationData: S.optional(AuthenticationData),
|
|
490
|
+
billingAddress: S.optional(BillingAddress),
|
|
491
|
+
browserInfo: S.optional(BrowserInfo),
|
|
492
|
+
channel: S.optional(CreateDonationRequestChannel),
|
|
493
|
+
checkoutAttemptId: S.optional(S.String),
|
|
494
|
+
countryCode: S.optional(S.String),
|
|
495
|
+
dateOfBirth: S.optional(S.String),
|
|
496
|
+
deliveryAddress: S.optional(DeliveryAddress),
|
|
497
|
+
deviceFingerprint: S.optional(S.String),
|
|
498
|
+
donationAccount: S.optional(S.String),
|
|
499
|
+
donationCampaignId: S.optional(S.String),
|
|
500
|
+
donationOriginalPspReference: S.optional(S.String),
|
|
501
|
+
donationToken: S.optional(S.String),
|
|
502
|
+
lineItems: S.optional(CreateDonationRequestLineItemsList),
|
|
503
|
+
merchantAccount: S.String,
|
|
504
|
+
merchantRiskIndicator: S.optional(MerchantRiskIndicator),
|
|
505
|
+
metadata: S.optional(CreateDonationRequestMetadataMap),
|
|
506
|
+
mpiData: S.optional(ThreeDSecureData),
|
|
507
|
+
origin: S.optional(S.String),
|
|
508
|
+
paymentMethod: S.optional(CreateDonationRequestPaymentMethod),
|
|
509
|
+
recurringProcessingModel: S.optional(CreateDonationRequestRecurringProcessingModel),
|
|
510
|
+
redirectFromIssuerMethod: S.optional(S.String),
|
|
511
|
+
redirectToIssuerMethod: S.optional(S.String),
|
|
512
|
+
reference: S.String,
|
|
513
|
+
returnUrl: S.String,
|
|
514
|
+
sessionValidity: S.optional(S.String),
|
|
515
|
+
shopperEmail: S.optional(S.String),
|
|
516
|
+
shopperIP: S.optional(S.String),
|
|
517
|
+
shopperInteraction: S.optional(CreateDonationRequestShopperInteraction),
|
|
518
|
+
shopperLocale: S.optional(S.String),
|
|
519
|
+
shopperName: S.optional(ShopperName),
|
|
520
|
+
shopperReference: S.optional(S.String),
|
|
521
|
+
socialSecurityNumber: S.optional(S.String),
|
|
522
|
+
store: S.optional(S.String),
|
|
523
|
+
telephoneNumber: S.optional(S.String),
|
|
524
|
+
threeDS2RequestData: S.optional(ThreeDS2RequestFields),
|
|
525
|
+
}).pipe(T.Http({ method: "POST", uri: "/donations", code: 200 }))).annotate({
|
|
526
|
+
identifier: "CreateDonationRequest",
|
|
527
|
+
});
|
|
528
|
+
export const CheckoutAwaitActionType = /*@__PURE__*/ S.String;
|
|
529
|
+
export const CheckoutAwaitAction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
530
|
+
paymentData: S.optional(S.String),
|
|
531
|
+
paymentMethodType: S.optional(S.String),
|
|
532
|
+
type: CheckoutAwaitActionType,
|
|
533
|
+
url: S.optional(S.String),
|
|
534
|
+
})).annotate({
|
|
535
|
+
identifier: "CheckoutAwaitAction",
|
|
536
|
+
});
|
|
537
|
+
export const CheckoutBankTransferActionType = /*@__PURE__*/ S.String;
|
|
538
|
+
export const CheckoutBankTransferAction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
539
|
+
accountNumber: S.optional(S.String),
|
|
540
|
+
bankCode: S.optional(S.String),
|
|
541
|
+
beneficiary: S.optional(S.String),
|
|
542
|
+
bic: S.optional(S.String),
|
|
543
|
+
branchCode: S.optional(S.String),
|
|
544
|
+
downloadUrl: S.optional(S.String),
|
|
545
|
+
iban: S.optional(S.String),
|
|
546
|
+
paymentMethodType: S.optional(S.String),
|
|
547
|
+
reference: S.optional(S.String),
|
|
548
|
+
routingNumber: S.optional(S.String),
|
|
549
|
+
shopperEmail: S.optional(S.String),
|
|
550
|
+
sortCode: S.optional(S.String),
|
|
551
|
+
totalAmount: S.optional(Amount),
|
|
552
|
+
type: CheckoutBankTransferActionType,
|
|
553
|
+
url: S.optional(S.String),
|
|
554
|
+
})).annotate({
|
|
555
|
+
identifier: "CheckoutBankTransferAction",
|
|
556
|
+
});
|
|
557
|
+
export const CheckoutDelegatedAuthenticationActionType = /*@__PURE__*/ S.String;
|
|
558
|
+
export const CheckoutDelegatedAuthenticationAction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
559
|
+
authorisationToken: S.optional(S.String),
|
|
560
|
+
paymentData: S.optional(S.String),
|
|
561
|
+
paymentMethodType: S.optional(S.String),
|
|
562
|
+
token: S.optional(S.String),
|
|
563
|
+
type: CheckoutDelegatedAuthenticationActionType,
|
|
564
|
+
url: S.optional(S.String),
|
|
565
|
+
})).annotate({
|
|
566
|
+
identifier: "CheckoutDelegatedAuthenticationAction",
|
|
567
|
+
});
|
|
568
|
+
export const CheckoutNativeRedirectActionDataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
569
|
+
export const CheckoutNativeRedirectActionType = /*@__PURE__*/ S.String;
|
|
570
|
+
export const CheckoutNativeRedirectAction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
571
|
+
data: S.optional(CheckoutNativeRedirectActionDataMap),
|
|
572
|
+
method: S.optional(S.String),
|
|
573
|
+
nativeRedirectData: S.optional(S.String),
|
|
574
|
+
paymentMethodType: S.optional(S.String),
|
|
575
|
+
type: CheckoutNativeRedirectActionType,
|
|
576
|
+
url: S.optional(S.String),
|
|
577
|
+
})).annotate({
|
|
578
|
+
identifier: "CheckoutNativeRedirectAction",
|
|
579
|
+
});
|
|
580
|
+
export const CheckoutQrCodeActionType = /*@__PURE__*/ S.String;
|
|
581
|
+
export const CheckoutQrCodeAction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
582
|
+
expiresAt: S.optional(S.String),
|
|
583
|
+
paymentData: S.optional(S.String),
|
|
584
|
+
paymentMethodType: S.optional(S.String),
|
|
585
|
+
qrCodeData: S.optional(S.String),
|
|
586
|
+
type: CheckoutQrCodeActionType,
|
|
587
|
+
url: S.optional(S.String),
|
|
588
|
+
})).annotate({
|
|
589
|
+
identifier: "CheckoutQrCodeAction",
|
|
590
|
+
});
|
|
591
|
+
export const CheckoutRedirectActionDataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
592
|
+
export const CheckoutRedirectActionType = /*@__PURE__*/ S.String;
|
|
593
|
+
export const CheckoutRedirectAction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
594
|
+
data: S.optional(CheckoutRedirectActionDataMap),
|
|
595
|
+
method: S.optional(S.String),
|
|
596
|
+
paymentMethodType: S.optional(S.String),
|
|
597
|
+
type: CheckoutRedirectActionType,
|
|
598
|
+
url: S.optional(S.String),
|
|
599
|
+
})).annotate({
|
|
600
|
+
identifier: "CheckoutRedirectAction",
|
|
601
|
+
});
|
|
602
|
+
export const CheckoutSDKActionSdkDataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
603
|
+
export const CheckoutSDKActionType = /*@__PURE__*/ S.String;
|
|
604
|
+
export const CheckoutSDKAction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
605
|
+
paymentData: S.optional(S.String),
|
|
606
|
+
paymentMethodType: S.optional(S.String),
|
|
607
|
+
sdkData: S.optional(CheckoutSDKActionSdkDataMap),
|
|
608
|
+
type: CheckoutSDKActionType,
|
|
609
|
+
url: S.optional(S.String),
|
|
610
|
+
})).annotate({
|
|
611
|
+
identifier: "CheckoutSDKAction",
|
|
612
|
+
});
|
|
613
|
+
export const CheckoutThreeDS2ActionType = /*@__PURE__*/ S.String;
|
|
614
|
+
export const CheckoutThreeDS2Action = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
615
|
+
authorisationToken: S.optional(S.String),
|
|
616
|
+
paymentData: S.optional(S.String),
|
|
617
|
+
paymentMethodType: S.optional(S.String),
|
|
618
|
+
subtype: S.optional(S.String),
|
|
619
|
+
token: S.optional(S.String),
|
|
620
|
+
type: CheckoutThreeDS2ActionType,
|
|
621
|
+
url: S.optional(S.String),
|
|
622
|
+
})).annotate({
|
|
623
|
+
identifier: "CheckoutThreeDS2Action",
|
|
624
|
+
});
|
|
625
|
+
export const CheckoutVoucherActionType = /*@__PURE__*/ S.String;
|
|
626
|
+
export const CheckoutVoucherAction = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
627
|
+
alternativeReference: S.optional(S.String),
|
|
628
|
+
collectionInstitutionNumber: S.optional(S.String),
|
|
629
|
+
downloadUrl: S.optional(S.String),
|
|
630
|
+
entity: S.optional(S.String),
|
|
631
|
+
expiresAt: S.optional(S.String),
|
|
632
|
+
initialAmount: S.optional(Amount),
|
|
633
|
+
instructionsUrl: S.optional(S.String),
|
|
634
|
+
issuer: S.optional(S.String),
|
|
635
|
+
maskedTelephoneNumber: S.optional(S.String),
|
|
636
|
+
merchantName: S.optional(S.String),
|
|
637
|
+
merchantReference: S.optional(S.String),
|
|
638
|
+
passCreationToken: S.optional(S.String),
|
|
639
|
+
paymentData: S.optional(S.String),
|
|
640
|
+
paymentMethodType: S.optional(S.String),
|
|
641
|
+
reference: S.optional(S.String),
|
|
642
|
+
shopperEmail: S.optional(S.String),
|
|
643
|
+
shopperName: S.optional(S.String),
|
|
644
|
+
surcharge: S.optional(Amount),
|
|
645
|
+
totalAmount: S.optional(Amount),
|
|
646
|
+
type: CheckoutVoucherActionType,
|
|
647
|
+
url: S.optional(S.String),
|
|
648
|
+
})).annotate({
|
|
649
|
+
identifier: "CheckoutVoucherAction",
|
|
650
|
+
});
|
|
651
|
+
export const PaymentResponseAction =
|
|
652
|
+
/*@__PURE__*/ S.Unknown;
|
|
653
|
+
export const PaymentResponseAdditionalDataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
654
|
+
export const FraudCheckResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
655
|
+
accountScore: S.Number,
|
|
656
|
+
checkId: S.Number,
|
|
657
|
+
name: S.String,
|
|
658
|
+
})).annotate({
|
|
659
|
+
identifier: "FraudCheckResult",
|
|
660
|
+
});
|
|
661
|
+
export const FraudResultResultsList = /*@__PURE__*/ S.Array(FraudCheckResult);
|
|
662
|
+
export const FraudResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
663
|
+
accountScore: S.Number,
|
|
664
|
+
results: S.optional(FraudResultResultsList),
|
|
665
|
+
})).annotate({ identifier: "FraudResult" });
|
|
666
|
+
export const CheckoutOrderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
667
|
+
amount: S.optional(Amount),
|
|
668
|
+
expiresAt: S.optional(S.String),
|
|
669
|
+
orderData: S.optional(S.String),
|
|
670
|
+
pspReference: S.String,
|
|
671
|
+
reference: S.optional(S.String),
|
|
672
|
+
remainingAmount: S.optional(Amount),
|
|
673
|
+
})).annotate({
|
|
674
|
+
identifier: "CheckoutOrderResponse",
|
|
675
|
+
});
|
|
676
|
+
export const ResponsePaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
677
|
+
brand: S.optional(S.String),
|
|
678
|
+
type: S.optional(S.String),
|
|
679
|
+
})).annotate({
|
|
680
|
+
identifier: "ResponsePaymentMethod",
|
|
681
|
+
});
|
|
682
|
+
export const PaymentValidationsNameResultRawResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
683
|
+
firstName: S.optional(S.String),
|
|
684
|
+
fullName: S.optional(S.String),
|
|
685
|
+
lastName: S.optional(S.String),
|
|
686
|
+
middleName: S.optional(S.String),
|
|
687
|
+
status: S.optional(S.String),
|
|
688
|
+
})).annotate({
|
|
689
|
+
identifier: "PaymentValidationsNameResultRawResponse",
|
|
690
|
+
});
|
|
691
|
+
export const PaymentValidationsNameResultResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
692
|
+
firstName: S.optional(S.String),
|
|
693
|
+
fullName: S.optional(S.String),
|
|
694
|
+
lastName: S.optional(S.String),
|
|
695
|
+
middleName: S.optional(S.String),
|
|
696
|
+
})).annotate({
|
|
697
|
+
identifier: "PaymentValidationsNameResultResponse",
|
|
698
|
+
});
|
|
699
|
+
export const PaymentValidationsNameResponseStatus = /*@__PURE__*/ S.String;
|
|
700
|
+
export const PaymentValidationsNameResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
701
|
+
rawResponse: S.optional(PaymentValidationsNameResultRawResponse),
|
|
702
|
+
result: S.optional(PaymentValidationsNameResultResponse),
|
|
703
|
+
status: S.optional(PaymentValidationsNameResponseStatus),
|
|
704
|
+
})).annotate({
|
|
705
|
+
identifier: "PaymentValidationsNameResponse",
|
|
706
|
+
});
|
|
707
|
+
export const PaymentValidationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
708
|
+
name: S.optional(PaymentValidationsNameResponse),
|
|
709
|
+
})).annotate({
|
|
710
|
+
identifier: "PaymentValidationsResponse",
|
|
711
|
+
});
|
|
712
|
+
export const PaymentResponseResultCode = /*@__PURE__*/ S.String;
|
|
713
|
+
export const ThreeDS2ResponseData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
714
|
+
acsChallengeMandated: S.optional(S.String),
|
|
715
|
+
acsOperatorID: S.optional(S.String),
|
|
716
|
+
acsReferenceNumber: S.optional(S.String),
|
|
717
|
+
acsSignedContent: S.optional(S.String),
|
|
718
|
+
acsTransID: S.optional(S.String),
|
|
719
|
+
acsURL: S.optional(S.String),
|
|
720
|
+
authenticationType: S.optional(S.String),
|
|
721
|
+
cardHolderInfo: S.optional(S.String),
|
|
722
|
+
cavvAlgorithm: S.optional(S.String),
|
|
723
|
+
challengeIndicator: S.optional(S.String),
|
|
724
|
+
dsReferenceNumber: S.optional(S.String),
|
|
725
|
+
dsTransID: S.optional(S.String),
|
|
726
|
+
exemptionIndicator: S.optional(S.String),
|
|
727
|
+
messageVersion: S.optional(S.String),
|
|
728
|
+
riskScore: S.optional(S.String),
|
|
729
|
+
sdkEphemPubKey: S.optional(S.String),
|
|
730
|
+
threeDSServerTransID: S.optional(S.String),
|
|
731
|
+
transStatus: S.optional(S.String),
|
|
732
|
+
transStatusReason: S.optional(S.String),
|
|
733
|
+
})).annotate({
|
|
734
|
+
identifier: "ThreeDS2ResponseData",
|
|
735
|
+
});
|
|
736
|
+
export const ThreeDS2ResultChallengeCancel = /*@__PURE__*/ S.String;
|
|
737
|
+
export const ThreeDS2ResultExemptionIndicator = /*@__PURE__*/ S.String;
|
|
738
|
+
export const ThreeDS2ResultThreeDSRequestorChallengeInd =
|
|
739
|
+
/*@__PURE__*/ S.String;
|
|
740
|
+
export const ThreeDS2Result = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
741
|
+
authenticationValue: S.optional(S.String),
|
|
742
|
+
cavvAlgorithm: S.optional(S.String),
|
|
743
|
+
challengeCancel: S.optional(ThreeDS2ResultChallengeCancel),
|
|
744
|
+
dsTransID: S.optional(S.String),
|
|
745
|
+
eci: S.optional(S.String),
|
|
746
|
+
exemptionIndicator: S.optional(ThreeDS2ResultExemptionIndicator),
|
|
747
|
+
messageVersion: S.optional(S.String),
|
|
748
|
+
riskScore: S.optional(S.String),
|
|
749
|
+
threeDSRequestorChallengeInd: S.optional(ThreeDS2ResultThreeDSRequestorChallengeInd),
|
|
750
|
+
threeDSServerTransID: S.optional(S.String),
|
|
751
|
+
timestamp: S.optional(S.String),
|
|
752
|
+
transStatus: S.optional(S.String),
|
|
753
|
+
transStatusReason: S.optional(S.String),
|
|
754
|
+
whiteListStatus: S.optional(S.String),
|
|
755
|
+
})).annotate({ identifier: "ThreeDS2Result" });
|
|
756
|
+
export const PaymentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
757
|
+
action: S.optional(PaymentResponseAction),
|
|
758
|
+
additionalData: S.optional(PaymentResponseAdditionalDataMap),
|
|
759
|
+
amount: S.optional(Amount),
|
|
760
|
+
donationToken: S.optional(S.String),
|
|
761
|
+
fraudResult: S.optional(FraudResult),
|
|
762
|
+
merchantReference: S.optional(S.String),
|
|
763
|
+
order: S.optional(CheckoutOrderResponse),
|
|
764
|
+
paymentMethod: S.optional(ResponsePaymentMethod),
|
|
765
|
+
paymentValidations: S.optional(PaymentValidationsResponse),
|
|
766
|
+
pspReference: S.optional(S.String),
|
|
767
|
+
refusalReason: S.optional(S.String),
|
|
768
|
+
refusalReasonCode: S.optional(S.String),
|
|
769
|
+
resultCode: S.optional(PaymentResponseResultCode),
|
|
770
|
+
threeDS2ResponseData: S.optional(ThreeDS2ResponseData),
|
|
771
|
+
threeDS2Result: S.optional(ThreeDS2Result),
|
|
772
|
+
threeDSPaymentData: S.optional(S.String),
|
|
773
|
+
})).annotate({
|
|
774
|
+
identifier: "PaymentResponse",
|
|
775
|
+
});
|
|
776
|
+
export const DonationPaymentResponseStatus = /*@__PURE__*/ S.String;
|
|
777
|
+
export const DonationPaymentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
778
|
+
amount: S.optional(Amount),
|
|
779
|
+
donationAccount: S.optional(S.String),
|
|
780
|
+
id: S.optional(S.String),
|
|
781
|
+
merchantAccount: S.optional(S.String),
|
|
782
|
+
payment: S.optional(PaymentResponse),
|
|
783
|
+
reference: S.optional(S.String),
|
|
784
|
+
status: S.optional(DonationPaymentResponseStatus),
|
|
785
|
+
})).annotate({
|
|
786
|
+
identifier: "DonationPaymentResponse",
|
|
787
|
+
});
|
|
788
|
+
export const CreateDonationCampaignRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
789
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
790
|
+
currency: S.String,
|
|
791
|
+
label: S.optional(S.String),
|
|
792
|
+
locale: S.optional(S.String),
|
|
793
|
+
merchantAccount: S.String,
|
|
794
|
+
store: S.optional(S.String),
|
|
795
|
+
}).pipe(T.Http({ method: "POST", uri: "/donationCampaigns", code: 200 }))).annotate({
|
|
796
|
+
identifier: "CreateDonationCampaignRequest",
|
|
797
|
+
});
|
|
798
|
+
export const AmountsValuesList = /*@__PURE__*/ S.Array(S.Number);
|
|
799
|
+
export const Amounts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
800
|
+
currency: S.String,
|
|
801
|
+
values: AmountsValuesList,
|
|
802
|
+
})).annotate({ identifier: "Amounts" });
|
|
803
|
+
export const DonationValuesList = /*@__PURE__*/ S.Array(S.Number);
|
|
804
|
+
export const Donation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
805
|
+
currency: S.String,
|
|
806
|
+
donationType: S.optional(S.String),
|
|
807
|
+
maxRoundupAmount: S.optional(S.Number),
|
|
808
|
+
type: S.String,
|
|
809
|
+
values: S.optional(DonationValuesList),
|
|
810
|
+
})).annotate({ identifier: "Donation" });
|
|
811
|
+
export const DonationCampaign = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
812
|
+
amounts: S.optional(Amounts),
|
|
813
|
+
bannerUrl: S.optional(S.String),
|
|
814
|
+
campaignName: S.optional(S.String),
|
|
815
|
+
causeName: S.optional(S.String),
|
|
816
|
+
donation: S.optional(Donation),
|
|
817
|
+
id: S.optional(S.String),
|
|
818
|
+
logoUrl: S.optional(S.String),
|
|
819
|
+
nonprofitDescription: S.optional(S.String),
|
|
820
|
+
nonprofitName: S.optional(S.String),
|
|
821
|
+
nonprofitUrl: S.optional(S.String),
|
|
822
|
+
termsAndConditionsUrl: S.optional(S.String),
|
|
823
|
+
})).annotate({
|
|
824
|
+
identifier: "DonationCampaign",
|
|
825
|
+
});
|
|
826
|
+
export const DonationCampaignsResponseDonationCampaignsList =
|
|
827
|
+
/*@__PURE__*/ S.Array(DonationCampaign);
|
|
828
|
+
export const DonationCampaignsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
829
|
+
donationCampaigns: S.optional(DonationCampaignsResponseDonationCampaignsList),
|
|
830
|
+
})).annotate({
|
|
831
|
+
identifier: "DonationCampaignsResponse",
|
|
832
|
+
});
|
|
833
|
+
export const CheckoutNetworkTokenOption = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
834
|
+
includeCryptogram: S.optional(S.Boolean),
|
|
835
|
+
useNetworkToken: S.optional(S.Boolean),
|
|
836
|
+
})).annotate({
|
|
837
|
+
identifier: "CheckoutNetworkTokenOption",
|
|
838
|
+
});
|
|
839
|
+
export const CheckoutForwardRequestOptionsNetworkTxReferencePathsList =
|
|
840
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
841
|
+
export const CheckoutForwardRequestOptionsTransactionLinkIdPathsList =
|
|
842
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
843
|
+
export const CheckoutForwardRequestOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
844
|
+
accountUpdate: S.optional(S.Boolean),
|
|
845
|
+
dryRun: S.optional(S.Boolean),
|
|
846
|
+
networkToken: S.optional(CheckoutNetworkTokenOption),
|
|
847
|
+
networkTxReferencePaths: S.optional(CheckoutForwardRequestOptionsNetworkTxReferencePathsList),
|
|
848
|
+
tokenize: S.optional(S.Boolean),
|
|
849
|
+
transactionLinkIdPaths: S.optional(CheckoutForwardRequestOptionsTransactionLinkIdPathsList),
|
|
850
|
+
})).annotate({
|
|
851
|
+
identifier: "CheckoutForwardRequestOptions",
|
|
852
|
+
});
|
|
853
|
+
export const CheckoutForwardRequestCardType = /*@__PURE__*/ S.String;
|
|
854
|
+
export const CheckoutForwardRequestCard = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
855
|
+
cvc: S.optional(S.String),
|
|
856
|
+
encryptedCardNumber: S.optional(S.String),
|
|
857
|
+
encryptedExpiryMonth: S.optional(S.String),
|
|
858
|
+
encryptedExpiryYear: S.optional(S.String),
|
|
859
|
+
encryptedSecurityCode: S.optional(S.String),
|
|
860
|
+
expiryMonth: S.optional(S.String),
|
|
861
|
+
expiryYear: S.optional(S.String),
|
|
862
|
+
holderName: S.optional(S.String),
|
|
863
|
+
number: S.optional(S.String),
|
|
864
|
+
type: S.optional(CheckoutForwardRequestCardType),
|
|
865
|
+
})).annotate({
|
|
866
|
+
identifier: "CheckoutForwardRequestCard",
|
|
867
|
+
});
|
|
868
|
+
export const CheckoutOutgoingForwardRequestHeadersMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
869
|
+
export const CheckoutOutgoingForwardRequestHttpMethod = /*@__PURE__*/ S.String;
|
|
870
|
+
export const CheckoutOutgoingForwardRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
871
|
+
body: S.String,
|
|
872
|
+
credentials: S.optional(S.String),
|
|
873
|
+
headers: S.optional(CheckoutOutgoingForwardRequestHeadersMap),
|
|
874
|
+
httpMethod: CheckoutOutgoingForwardRequestHttpMethod,
|
|
875
|
+
urlSuffix: S.optional(S.String),
|
|
876
|
+
})).annotate({
|
|
877
|
+
identifier: "CheckoutOutgoingForwardRequest",
|
|
878
|
+
});
|
|
879
|
+
export const CreateForwardRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
880
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
881
|
+
amount: S.optional(Amount),
|
|
882
|
+
baseUrl: S.String,
|
|
883
|
+
merchantAccount: S.String,
|
|
884
|
+
merchantReference: S.optional(S.String),
|
|
885
|
+
options: S.optional(CheckoutForwardRequestOptions),
|
|
886
|
+
paymentMethod: S.optional(CheckoutForwardRequestCard),
|
|
887
|
+
request: CheckoutOutgoingForwardRequest,
|
|
888
|
+
shopperReference: S.String,
|
|
889
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
890
|
+
}).pipe(T.Http({ method: "POST", uri: "/forward", code: 200 }))).annotate({
|
|
891
|
+
identifier: "CreateForwardRequest",
|
|
892
|
+
});
|
|
893
|
+
export const CheckoutForwardResponseFromUrlHeadersMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
894
|
+
export const CheckoutForwardResponseFromUrl = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
895
|
+
body: S.optional(S.String),
|
|
896
|
+
headers: S.optional(CheckoutForwardResponseFromUrlHeadersMap),
|
|
897
|
+
status: S.optional(S.Number),
|
|
898
|
+
})).annotate({
|
|
899
|
+
identifier: "CheckoutForwardResponseFromUrl",
|
|
900
|
+
});
|
|
901
|
+
export const CheckoutForwardResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
902
|
+
merchantReference: S.optional(S.String),
|
|
903
|
+
pspReference: S.optional(S.String),
|
|
904
|
+
response: CheckoutForwardResponseFromUrl,
|
|
905
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
906
|
+
})).annotate({
|
|
907
|
+
identifier: "CheckoutForwardResponse",
|
|
908
|
+
});
|
|
909
|
+
export const CreateOrderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
910
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
911
|
+
amount: Amount,
|
|
912
|
+
expiresAt: S.optional(S.String),
|
|
913
|
+
merchantAccount: S.String,
|
|
914
|
+
reference: S.String,
|
|
915
|
+
}).pipe(T.Http({ method: "POST", uri: "/orders", code: 200 }))).annotate({
|
|
916
|
+
identifier: "CreateOrderRequest",
|
|
917
|
+
});
|
|
918
|
+
export const CreateOrderResponseAdditionalDataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
919
|
+
export const CreateOrderResponseResultCode = /*@__PURE__*/ S.String;
|
|
920
|
+
export const CreateOrderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
921
|
+
additionalData: S.optional(CreateOrderResponseAdditionalDataMap),
|
|
922
|
+
amount: Amount,
|
|
923
|
+
expiresAt: S.String,
|
|
924
|
+
fraudResult: S.optional(FraudResult),
|
|
925
|
+
orderData: S.String,
|
|
926
|
+
pspReference: S.optional(S.String),
|
|
927
|
+
reference: S.optional(S.String),
|
|
928
|
+
refusalReason: S.optional(S.String),
|
|
929
|
+
remainingAmount: Amount,
|
|
930
|
+
resultCode: CreateOrderResponseResultCode,
|
|
931
|
+
})).annotate({
|
|
932
|
+
identifier: "CreateOrderResponse",
|
|
933
|
+
});
|
|
934
|
+
export const EncryptedOrderData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
935
|
+
orderData: S.String,
|
|
936
|
+
pspReference: S.String,
|
|
937
|
+
})).annotate({
|
|
938
|
+
identifier: "EncryptedOrderData",
|
|
939
|
+
});
|
|
940
|
+
export const CreateOrdersCancelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
941
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
942
|
+
merchantAccount: S.String,
|
|
943
|
+
order: EncryptedOrderData,
|
|
944
|
+
}).pipe(T.Http({ method: "POST", uri: "/orders/cancel", code: 200 }))).annotate({
|
|
945
|
+
identifier: "CreateOrdersCancelRequest",
|
|
946
|
+
});
|
|
947
|
+
export const CancelOrderResponseResultCode = /*@__PURE__*/ S.String;
|
|
948
|
+
export const CancelOrderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
949
|
+
pspReference: S.String,
|
|
950
|
+
resultCode: CancelOrderResponseResultCode,
|
|
951
|
+
})).annotate({
|
|
952
|
+
identifier: "CancelOrderResponse",
|
|
953
|
+
});
|
|
954
|
+
export const CreatePaymentRequestAdditionalDataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
955
|
+
export const CheckoutBankAccountAccountType = /*@__PURE__*/ S.String;
|
|
956
|
+
export const CheckoutBankAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
957
|
+
accountType: S.optional(CheckoutBankAccountAccountType),
|
|
958
|
+
bankAccountNumber: S.optional(S.String),
|
|
959
|
+
bankCity: S.optional(S.String),
|
|
960
|
+
bankLocationId: S.optional(S.String),
|
|
961
|
+
bankName: S.optional(S.String),
|
|
962
|
+
bic: S.optional(S.String),
|
|
963
|
+
countryCode: S.optional(S.String),
|
|
964
|
+
iban: S.optional(S.String),
|
|
965
|
+
ownerName: S.optional(S.String),
|
|
966
|
+
taxId: S.optional(S.String),
|
|
967
|
+
})).annotate({
|
|
968
|
+
identifier: "CheckoutBankAccount",
|
|
969
|
+
});
|
|
970
|
+
export const CreatePaymentRequestChannel = /*@__PURE__*/ S.String;
|
|
971
|
+
export const Company = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
972
|
+
homepage: S.optional(S.String),
|
|
973
|
+
name: S.optional(S.String),
|
|
974
|
+
registrationNumber: S.optional(S.String),
|
|
975
|
+
registryLocation: S.optional(S.String),
|
|
976
|
+
taxId: S.optional(S.String),
|
|
977
|
+
type: S.optional(S.String),
|
|
978
|
+
})).annotate({ identifier: "Company" });
|
|
979
|
+
export const ForexQuote = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
980
|
+
account: S.optional(S.String),
|
|
981
|
+
accountType: S.optional(S.String),
|
|
982
|
+
baseAmount: S.optional(Amount),
|
|
983
|
+
basePoints: S.Number,
|
|
984
|
+
buy: S.optional(Amount),
|
|
985
|
+
interbank: S.optional(Amount),
|
|
986
|
+
reference: S.optional(S.String),
|
|
987
|
+
sell: S.optional(Amount),
|
|
988
|
+
signature: S.optional(S.String),
|
|
989
|
+
source: S.optional(S.String),
|
|
990
|
+
type: S.optional(S.String),
|
|
991
|
+
validTill: S.String,
|
|
992
|
+
})).annotate({ identifier: "ForexQuote" });
|
|
993
|
+
export const Agency = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
994
|
+
invoiceNumber: S.optional(S.String),
|
|
995
|
+
planName: S.optional(S.String),
|
|
996
|
+
})).annotate({ identifier: "Agency" });
|
|
997
|
+
export const Leg = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
998
|
+
carrierCode: S.optional(S.String),
|
|
999
|
+
classOfTravel: S.optional(S.String),
|
|
1000
|
+
dateOfTravel: S.optional(S.String),
|
|
1001
|
+
departureAirportCode: S.optional(S.String),
|
|
1002
|
+
departureTax: S.optional(S.Number),
|
|
1003
|
+
destinationAirportCode: S.optional(S.String),
|
|
1004
|
+
fareBasisCode: S.optional(S.String),
|
|
1005
|
+
flightNumber: S.optional(S.String),
|
|
1006
|
+
stopOverCode: S.optional(S.String),
|
|
1007
|
+
})).annotate({ identifier: "Leg" });
|
|
1008
|
+
export const AirlineLegsList = /*@__PURE__*/ S.Array(Leg);
|
|
1009
|
+
export const Passenger = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1010
|
+
dateOfBirth: S.optional(S.String),
|
|
1011
|
+
firstName: S.optional(S.String),
|
|
1012
|
+
lastName: S.optional(S.String),
|
|
1013
|
+
phoneNumber: S.optional(S.String),
|
|
1014
|
+
travellerType: S.optional(S.String),
|
|
1015
|
+
})).annotate({ identifier: "Passenger" });
|
|
1016
|
+
export const AirlinePassengersList = /*@__PURE__*/ S.Array(Passenger);
|
|
1017
|
+
export const Ticket = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1018
|
+
issueAddress: S.optional(S.String),
|
|
1019
|
+
issueDate: S.optional(S.String),
|
|
1020
|
+
number: S.optional(S.String),
|
|
1021
|
+
})).annotate({ identifier: "Ticket" });
|
|
1022
|
+
export const TravelAgency = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1023
|
+
code: S.optional(S.String),
|
|
1024
|
+
name: S.optional(S.String),
|
|
1025
|
+
})).annotate({ identifier: "TravelAgency" });
|
|
1026
|
+
export const Airline = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1027
|
+
agency: S.optional(Agency),
|
|
1028
|
+
boardingFee: S.optional(S.Number),
|
|
1029
|
+
code: S.optional(S.String),
|
|
1030
|
+
computerizedReservationSystem: S.optional(S.String),
|
|
1031
|
+
customerReferenceNumber: S.optional(S.String),
|
|
1032
|
+
designatorCode: S.optional(S.String),
|
|
1033
|
+
documentType: S.optional(S.String),
|
|
1034
|
+
flightDate: S.optional(S.String),
|
|
1035
|
+
legs: S.optional(AirlineLegsList),
|
|
1036
|
+
passengerName: S.String,
|
|
1037
|
+
passengers: S.optional(AirlinePassengersList),
|
|
1038
|
+
ticket: S.optional(Ticket),
|
|
1039
|
+
travelAgency: S.optional(TravelAgency),
|
|
1040
|
+
})).annotate({ identifier: "Airline" });
|
|
1041
|
+
export const PickupInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1042
|
+
city: S.optional(S.String),
|
|
1043
|
+
countryCode: S.optional(S.String),
|
|
1044
|
+
date: S.optional(S.String),
|
|
1045
|
+
stateOrProvince: S.optional(S.String),
|
|
1046
|
+
})).annotate({ identifier: "PickupInfo" });
|
|
1047
|
+
export const CarRentalRateType = /*@__PURE__*/ S.String;
|
|
1048
|
+
export const RentalSurcharges = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1049
|
+
fuel: S.optional(S.Number),
|
|
1050
|
+
insurance: S.optional(S.Number),
|
|
1051
|
+
oneWayDropOff: S.optional(S.Number),
|
|
1052
|
+
})).annotate({
|
|
1053
|
+
identifier: "RentalSurcharges",
|
|
1054
|
+
});
|
|
1055
|
+
export const ReturnInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1056
|
+
city: S.optional(S.String),
|
|
1057
|
+
countryCode: S.optional(S.String),
|
|
1058
|
+
date: S.optional(S.String),
|
|
1059
|
+
locationId: S.optional(S.String),
|
|
1060
|
+
stateOrProvince: S.optional(S.String),
|
|
1061
|
+
})).annotate({ identifier: "ReturnInfo" });
|
|
1062
|
+
export const CarRental = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1063
|
+
customerServicePhoneNumber: S.optional(S.String),
|
|
1064
|
+
noShow: S.optional(S.Boolean),
|
|
1065
|
+
pickupInfo: S.optional(PickupInfo),
|
|
1066
|
+
rateType: S.optional(CarRentalRateType),
|
|
1067
|
+
rentalAgreementNumber: S.optional(S.String),
|
|
1068
|
+
rentalClassId: S.optional(S.String),
|
|
1069
|
+
rentalDays: S.optional(S.Number),
|
|
1070
|
+
rentalRate: S.optional(S.Number),
|
|
1071
|
+
rentalSurcharges: S.optional(RentalSurcharges),
|
|
1072
|
+
renterName: S.String,
|
|
1073
|
+
returnInfo: S.optional(ReturnInfo),
|
|
1074
|
+
taxExempt: S.optional(S.Boolean),
|
|
1075
|
+
})).annotate({ identifier: "CarRental" });
|
|
1076
|
+
export const Healthcare = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1077
|
+
dentalValue: S.optional(S.Number),
|
|
1078
|
+
otherMedicalValue: S.optional(S.Number),
|
|
1079
|
+
prescriptionValue: S.optional(S.Number),
|
|
1080
|
+
totalHealthcareValue: S.Number,
|
|
1081
|
+
visionPrescriptionValue: S.optional(S.Number),
|
|
1082
|
+
})).annotate({ identifier: "Healthcare" });
|
|
1083
|
+
export const Destination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1084
|
+
countryCode: S.optional(S.String),
|
|
1085
|
+
postalCode: S.optional(S.String),
|
|
1086
|
+
stateOrProvince: S.optional(S.String),
|
|
1087
|
+
})).annotate({ identifier: "Destination" });
|
|
1088
|
+
export const ItemDetailLine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1089
|
+
commodityCode: S.optional(S.String),
|
|
1090
|
+
description: S.optional(S.String),
|
|
1091
|
+
discountAmount: S.optional(S.Number),
|
|
1092
|
+
productCode: S.optional(S.String),
|
|
1093
|
+
quantity: S.optional(S.Number),
|
|
1094
|
+
totalAmount: S.optional(S.Number),
|
|
1095
|
+
unitOfMeasure: S.optional(S.String),
|
|
1096
|
+
unitPrice: S.optional(S.Number),
|
|
1097
|
+
})).annotate({ identifier: "ItemDetailLine" });
|
|
1098
|
+
export const LevelTwoThreeItemDetailLinesList = /*@__PURE__*/ S.Array(ItemDetailLine);
|
|
1099
|
+
export const LevelTwoThree = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1100
|
+
customerReferenceNumber: S.optional(S.String),
|
|
1101
|
+
destination: S.optional(Destination),
|
|
1102
|
+
dutyAmount: S.optional(S.Number),
|
|
1103
|
+
freightAmount: S.optional(S.Number),
|
|
1104
|
+
itemDetailLines: S.optional(LevelTwoThreeItemDetailLinesList),
|
|
1105
|
+
orderDate: S.optional(S.String),
|
|
1106
|
+
shipFromPostalCode: S.optional(S.String),
|
|
1107
|
+
totalTaxAmount: S.optional(S.Number),
|
|
1108
|
+
})).annotate({ identifier: "LevelTwoThree" });
|
|
1109
|
+
export const Folio = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1110
|
+
cashAdvances: S.optional(S.Number),
|
|
1111
|
+
number: S.optional(S.String),
|
|
1112
|
+
})).annotate({ identifier: "Folio" });
|
|
1113
|
+
export const LodgingLodgingChargeType = /*@__PURE__*/ S.String;
|
|
1114
|
+
export const Room = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1115
|
+
numberOfNights: S.optional(S.Number),
|
|
1116
|
+
rate: S.optional(S.Number),
|
|
1117
|
+
})).annotate({ identifier: "Room" });
|
|
1118
|
+
export const LodgingRoomsList = /*@__PURE__*/ S.Array(Room);
|
|
1119
|
+
export const Lodging = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1120
|
+
checkInDate: S.optional(S.String),
|
|
1121
|
+
checkOutDate: S.optional(S.String),
|
|
1122
|
+
customerServicePhoneNumber: S.optional(S.String),
|
|
1123
|
+
fireSafetyCompliance: S.optional(S.Boolean),
|
|
1124
|
+
folio: S.optional(Folio),
|
|
1125
|
+
foodBeverageCharges: S.optional(S.Number),
|
|
1126
|
+
lodgingChargeType: S.optional(LodgingLodgingChargeType),
|
|
1127
|
+
noShow: S.optional(S.Boolean),
|
|
1128
|
+
prepaidExpenses: S.optional(S.Number),
|
|
1129
|
+
propertyPhoneNumber: S.optional(S.String),
|
|
1130
|
+
renterName: S.optional(S.String),
|
|
1131
|
+
rooms: S.optional(LodgingRoomsList),
|
|
1132
|
+
totalRoomTax: S.optional(S.Number),
|
|
1133
|
+
totalTax: S.optional(S.Number),
|
|
1134
|
+
})).annotate({ identifier: "Lodging" });
|
|
1135
|
+
export const TemporaryServices = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1136
|
+
employeeName: S.optional(S.String),
|
|
1137
|
+
endDate: S.optional(S.String),
|
|
1138
|
+
hourRate: S.optional(S.Number),
|
|
1139
|
+
hoursWorked: S.optional(S.Number),
|
|
1140
|
+
jobDescription: S.optional(S.String),
|
|
1141
|
+
serviceRequestor: S.optional(S.String),
|
|
1142
|
+
startDate: S.optional(S.String),
|
|
1143
|
+
})).annotate({
|
|
1144
|
+
identifier: "TemporaryServices",
|
|
1145
|
+
});
|
|
1146
|
+
export const EnhancedSchemeData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1147
|
+
airline: S.optional(Airline),
|
|
1148
|
+
carRental: S.optional(CarRental),
|
|
1149
|
+
healthcare: S.optional(Healthcare),
|
|
1150
|
+
levelTwoThree: S.optional(LevelTwoThree),
|
|
1151
|
+
lodging: S.optional(Lodging),
|
|
1152
|
+
temporaryServices: S.optional(TemporaryServices),
|
|
1153
|
+
})).annotate({
|
|
1154
|
+
identifier: "EnhancedSchemeData",
|
|
1155
|
+
});
|
|
1156
|
+
export const CreatePaymentRequestEntityType = /*@__PURE__*/ S.String;
|
|
1157
|
+
export const Address = BillingAddress;
|
|
1158
|
+
export const Name = ShopperName;
|
|
1159
|
+
export const FundOrigin = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1160
|
+
billingAddress: S.optional(BillingAddress),
|
|
1161
|
+
shopperEmail: S.optional(S.String),
|
|
1162
|
+
shopperName: S.optional(ShopperName),
|
|
1163
|
+
telephoneNumber: S.optional(S.String),
|
|
1164
|
+
walletIdentifier: S.optional(S.String),
|
|
1165
|
+
})).annotate({ identifier: "FundOrigin" });
|
|
1166
|
+
export const CardDetailsFundingSource = /*@__PURE__*/ S.String;
|
|
1167
|
+
export const CardDetailsType = /*@__PURE__*/ S.String;
|
|
1168
|
+
export const CardDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1169
|
+
billingSequenceNumber: S.optional(S.String),
|
|
1170
|
+
brand: S.optional(S.String),
|
|
1171
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1172
|
+
cupsecureplus_smscode: S.optional(S.String.pipe(T.Body("cupsecureplus.smscode"))),
|
|
1173
|
+
cvc: S.optional(S.String),
|
|
1174
|
+
encryptedCard: S.optional(S.String),
|
|
1175
|
+
encryptedCardNumber: S.optional(S.String),
|
|
1176
|
+
encryptedExpiryMonth: S.optional(S.String),
|
|
1177
|
+
encryptedExpiryYear: S.optional(S.String),
|
|
1178
|
+
encryptedPassword: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1179
|
+
encryptedSecurityCode: S.optional(S.String),
|
|
1180
|
+
expiryMonth: S.optional(S.String),
|
|
1181
|
+
expiryYear: S.optional(S.String),
|
|
1182
|
+
fastlaneData: S.optional(S.String),
|
|
1183
|
+
fundingSource: S.optional(CardDetailsFundingSource),
|
|
1184
|
+
holderName: S.optional(S.String),
|
|
1185
|
+
networkPaymentReference: S.optional(S.String),
|
|
1186
|
+
number: S.optional(S.String),
|
|
1187
|
+
recurringDetailReference: S.optional(S.String),
|
|
1188
|
+
sdkData: S.optional(S.String),
|
|
1189
|
+
shopperNotificationReference: S.optional(S.String),
|
|
1190
|
+
srcCorrelationId: S.optional(S.String),
|
|
1191
|
+
srcDigitalCardId: S.optional(S.String),
|
|
1192
|
+
srcScheme: S.optional(S.String),
|
|
1193
|
+
srcTokenReference: S.optional(S.String),
|
|
1194
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1195
|
+
threeDS2SdkVersion: S.optional(S.String),
|
|
1196
|
+
type: S.optional(CardDetailsType),
|
|
1197
|
+
})).annotate({ identifier: "CardDetails" });
|
|
1198
|
+
export const SubMerchant = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1199
|
+
city: S.optional(S.String),
|
|
1200
|
+
country: S.optional(S.String),
|
|
1201
|
+
mcc: S.optional(S.String),
|
|
1202
|
+
name: S.optional(S.String),
|
|
1203
|
+
taxId: S.optional(S.String),
|
|
1204
|
+
})).annotate({ identifier: "SubMerchant" });
|
|
1205
|
+
export const FundRecipientWalletPurpose = /*@__PURE__*/ S.String;
|
|
1206
|
+
export const FundRecipient = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1207
|
+
IBAN: S.optional(S.String),
|
|
1208
|
+
billingAddress: S.optional(BillingAddress),
|
|
1209
|
+
paymentMethod: S.optional(CardDetails),
|
|
1210
|
+
shopperEmail: S.optional(S.String),
|
|
1211
|
+
shopperName: S.optional(ShopperName),
|
|
1212
|
+
shopperReference: S.optional(S.String),
|
|
1213
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1214
|
+
subMerchant: S.optional(SubMerchant),
|
|
1215
|
+
telephoneNumber: S.optional(S.String),
|
|
1216
|
+
walletIdentifier: S.optional(S.String),
|
|
1217
|
+
walletOwnerTaxId: S.optional(S.String),
|
|
1218
|
+
walletPurpose: S.optional(FundRecipientWalletPurpose),
|
|
1219
|
+
})).annotate({ identifier: "FundRecipient" });
|
|
1220
|
+
export const CreatePaymentRequestIndustryUsage = /*@__PURE__*/ S.String;
|
|
1221
|
+
export const InstallmentsPlan = /*@__PURE__*/ S.String;
|
|
1222
|
+
export const Installments = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1223
|
+
extra: S.optional(S.Number),
|
|
1224
|
+
plan: S.optional(InstallmentsPlan),
|
|
1225
|
+
value: S.Number,
|
|
1226
|
+
})).annotate({ identifier: "Installments" });
|
|
1227
|
+
export const CreatePaymentRequestLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
1228
|
+
export const CreatePaymentRequestLocalizedShopperStatementMap =
|
|
1229
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
1230
|
+
export const MandateAmountRule = /*@__PURE__*/ S.String;
|
|
1231
|
+
export const MandateBillingAttemptsRule = /*@__PURE__*/ S.String;
|
|
1232
|
+
export const MandateFrequency = /*@__PURE__*/ S.String;
|
|
1233
|
+
export const Mandate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1234
|
+
amount: S.String,
|
|
1235
|
+
amountRule: S.optional(MandateAmountRule),
|
|
1236
|
+
billingAttemptsRule: S.optional(MandateBillingAttemptsRule),
|
|
1237
|
+
billingDay: S.optional(S.String),
|
|
1238
|
+
count: S.optional(S.String),
|
|
1239
|
+
endsAt: S.String,
|
|
1240
|
+
frequency: MandateFrequency,
|
|
1241
|
+
remarks: S.optional(S.String),
|
|
1242
|
+
startsAt: S.optional(S.String),
|
|
1243
|
+
})).annotate({ identifier: "Mandate" });
|
|
1244
|
+
export const CreatePaymentRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1245
|
+
export const AchDetailsAccountHolderType = /*@__PURE__*/ S.String;
|
|
1246
|
+
export const AchDetailsBankAccountType = /*@__PURE__*/ S.String;
|
|
1247
|
+
export const AchDetailsType = /*@__PURE__*/ S.String;
|
|
1248
|
+
export const AchDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1249
|
+
accountHolderType: S.optional(AchDetailsAccountHolderType),
|
|
1250
|
+
bankAccountNumber: S.optional(S.String),
|
|
1251
|
+
bankAccountType: S.optional(AchDetailsBankAccountType),
|
|
1252
|
+
bankLocationId: S.optional(S.String),
|
|
1253
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1254
|
+
encryptedBankAccountNumber: S.optional(S.String),
|
|
1255
|
+
encryptedBankLocationId: S.optional(S.String),
|
|
1256
|
+
ownerName: S.optional(S.String),
|
|
1257
|
+
recurringDetailReference: S.optional(S.String),
|
|
1258
|
+
sdkData: S.optional(S.String),
|
|
1259
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1260
|
+
transferInstrumentId: S.optional(S.String),
|
|
1261
|
+
type: S.optional(AchDetailsType),
|
|
1262
|
+
})).annotate({ identifier: "AchDetails" });
|
|
1263
|
+
export const AffirmDetailsType = /*@__PURE__*/ S.String;
|
|
1264
|
+
export const AffirmDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1265
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1266
|
+
financingProgram: S.optional(S.String),
|
|
1267
|
+
sdkData: S.optional(S.String),
|
|
1268
|
+
type: S.optional(AffirmDetailsType),
|
|
1269
|
+
})).annotate({ identifier: "AffirmDetails" });
|
|
1270
|
+
export const AfterpayDetailsType = /*@__PURE__*/ S.String;
|
|
1271
|
+
export const AfterpayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1272
|
+
billingAddress: S.optional(S.String),
|
|
1273
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1274
|
+
deliveryAddress: S.optional(S.String),
|
|
1275
|
+
personalDetails: S.optional(S.String),
|
|
1276
|
+
recurringDetailReference: S.optional(S.String),
|
|
1277
|
+
sdkData: S.optional(S.String),
|
|
1278
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1279
|
+
type: AfterpayDetailsType,
|
|
1280
|
+
})).annotate({
|
|
1281
|
+
identifier: "AfterpayDetails",
|
|
1282
|
+
});
|
|
1283
|
+
export const AlmaDetailsFeeType = /*@__PURE__*/ S.String;
|
|
1284
|
+
export const AlmaDetailsType = /*@__PURE__*/ S.String;
|
|
1285
|
+
export const AlmaDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1286
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1287
|
+
feeType: S.optional(AlmaDetailsFeeType),
|
|
1288
|
+
sdkData: S.optional(S.String),
|
|
1289
|
+
type: S.optional(AlmaDetailsType),
|
|
1290
|
+
})).annotate({ identifier: "AlmaDetails" });
|
|
1291
|
+
export const AmazonPayDetailsType = /*@__PURE__*/ S.String;
|
|
1292
|
+
export const AmazonPayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1293
|
+
amazonPayToken: S.optional(S.String),
|
|
1294
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1295
|
+
checkoutSessionId: S.optional(S.String),
|
|
1296
|
+
sdkData: S.optional(S.String),
|
|
1297
|
+
type: S.optional(AmazonPayDetailsType),
|
|
1298
|
+
})).annotate({
|
|
1299
|
+
identifier: "AmazonPayDetails",
|
|
1300
|
+
});
|
|
1301
|
+
export const AncvDetailsType = /*@__PURE__*/ S.String;
|
|
1302
|
+
export const AncvDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1303
|
+
beneficiaryId: S.optional(S.String),
|
|
1304
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1305
|
+
recurringDetailReference: S.optional(S.String),
|
|
1306
|
+
sdkData: S.optional(S.String),
|
|
1307
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1308
|
+
type: S.optional(AncvDetailsType),
|
|
1309
|
+
})).annotate({ identifier: "AncvDetails" });
|
|
1310
|
+
export const AndroidPayDetailsType = /*@__PURE__*/ S.String;
|
|
1311
|
+
export const AndroidPayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1312
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1313
|
+
sdkData: S.optional(S.String),
|
|
1314
|
+
type: S.optional(AndroidPayDetailsType),
|
|
1315
|
+
})).annotate({
|
|
1316
|
+
identifier: "AndroidPayDetails",
|
|
1317
|
+
});
|
|
1318
|
+
export const ApplePayDetailsFundingSource = /*@__PURE__*/ S.String;
|
|
1319
|
+
export const ApplePayDetailsType = /*@__PURE__*/ S.String;
|
|
1320
|
+
export const ApplePayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1321
|
+
applePayToken: S.String,
|
|
1322
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1323
|
+
fundingSource: S.optional(ApplePayDetailsFundingSource),
|
|
1324
|
+
recurringDetailReference: S.optional(S.String),
|
|
1325
|
+
sdkData: S.optional(S.String),
|
|
1326
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1327
|
+
type: S.optional(ApplePayDetailsType),
|
|
1328
|
+
})).annotate({
|
|
1329
|
+
identifier: "ApplePayDetails",
|
|
1330
|
+
});
|
|
1331
|
+
export const AuPayDetailsType = /*@__PURE__*/ S.String;
|
|
1332
|
+
export const AuPayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1333
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1334
|
+
recurringDetailReference: S.optional(S.String),
|
|
1335
|
+
sdkData: S.optional(S.String),
|
|
1336
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1337
|
+
type: S.optional(AuPayDetailsType),
|
|
1338
|
+
})).annotate({ identifier: "AuPayDetails" });
|
|
1339
|
+
export const BacsDirectDebitDetailsType = /*@__PURE__*/ S.String;
|
|
1340
|
+
export const BacsDirectDebitDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1341
|
+
bankAccountNumber: S.optional(S.String),
|
|
1342
|
+
bankLocationId: S.optional(S.String),
|
|
1343
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1344
|
+
holderName: S.optional(S.String),
|
|
1345
|
+
recurringDetailReference: S.optional(S.String),
|
|
1346
|
+
sdkData: S.optional(S.String),
|
|
1347
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1348
|
+
transferInstrumentId: S.optional(S.String),
|
|
1349
|
+
type: S.optional(BacsDirectDebitDetailsType),
|
|
1350
|
+
})).annotate({
|
|
1351
|
+
identifier: "BacsDirectDebitDetails",
|
|
1352
|
+
});
|
|
1353
|
+
export const BillDeskDetailsType = /*@__PURE__*/ S.String;
|
|
1354
|
+
export const BillDeskDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1355
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1356
|
+
issuer: S.String,
|
|
1357
|
+
sdkData: S.optional(S.String),
|
|
1358
|
+
type: BillDeskDetailsType,
|
|
1359
|
+
})).annotate({
|
|
1360
|
+
identifier: "BillDeskDetails",
|
|
1361
|
+
});
|
|
1362
|
+
export const BlikDetailsType = /*@__PURE__*/ S.String;
|
|
1363
|
+
export const BlikDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1364
|
+
blikCode: S.optional(S.String),
|
|
1365
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1366
|
+
recurringDetailReference: S.optional(S.String),
|
|
1367
|
+
sdkData: S.optional(S.String),
|
|
1368
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1369
|
+
type: S.optional(BlikDetailsType),
|
|
1370
|
+
})).annotate({ identifier: "BlikDetails" });
|
|
1371
|
+
export const CashAppDetailsType = /*@__PURE__*/ S.String;
|
|
1372
|
+
export const CashAppDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1373
|
+
cashtag: S.optional(S.String),
|
|
1374
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1375
|
+
customerId: S.optional(S.String),
|
|
1376
|
+
grantId: S.optional(S.String),
|
|
1377
|
+
onFileGrantId: S.optional(S.String),
|
|
1378
|
+
recurringDetailReference: S.optional(S.String),
|
|
1379
|
+
requestId: S.optional(S.String),
|
|
1380
|
+
sdkData: S.optional(S.String),
|
|
1381
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1382
|
+
subtype: S.optional(S.String),
|
|
1383
|
+
type: S.optional(CashAppDetailsType),
|
|
1384
|
+
})).annotate({ identifier: "CashAppDetails" });
|
|
1385
|
+
export const CellulantDetailsType = /*@__PURE__*/ S.String;
|
|
1386
|
+
export const CellulantDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1387
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1388
|
+
issuer: S.optional(S.String),
|
|
1389
|
+
sdkData: S.optional(S.String),
|
|
1390
|
+
type: S.optional(CellulantDetailsType),
|
|
1391
|
+
})).annotate({
|
|
1392
|
+
identifier: "CellulantDetails",
|
|
1393
|
+
});
|
|
1394
|
+
export const DBaraiDetailsType = /*@__PURE__*/ S.String;
|
|
1395
|
+
export const DBaraiDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1396
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1397
|
+
recurringDetailReference: S.optional(S.String),
|
|
1398
|
+
sdkData: S.optional(S.String),
|
|
1399
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1400
|
+
type: S.optional(DBaraiDetailsType),
|
|
1401
|
+
})).annotate({ identifier: "DBaraiDetails" });
|
|
1402
|
+
export const DirectDebitAuDetailsType = /*@__PURE__*/ S.String;
|
|
1403
|
+
export const DirectDebitAuDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1404
|
+
bankAccountNumber: S.optional(S.String),
|
|
1405
|
+
bankBranchCode: S.optional(S.String),
|
|
1406
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1407
|
+
holderName: S.String,
|
|
1408
|
+
recurringDetailReference: S.optional(S.String),
|
|
1409
|
+
sdkData: S.optional(S.String),
|
|
1410
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1411
|
+
type: S.optional(DirectDebitAuDetailsType),
|
|
1412
|
+
})).annotate({
|
|
1413
|
+
identifier: "DirectDebitAuDetails",
|
|
1414
|
+
});
|
|
1415
|
+
export const DokuDetailsType = /*@__PURE__*/ S.String;
|
|
1416
|
+
export const DokuDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1417
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1418
|
+
firstName: S.String,
|
|
1419
|
+
lastName: S.String,
|
|
1420
|
+
sdkData: S.optional(S.String),
|
|
1421
|
+
shopperEmail: S.String,
|
|
1422
|
+
type: DokuDetailsType,
|
|
1423
|
+
})).annotate({ identifier: "DokuDetails" });
|
|
1424
|
+
export const DragonpayDetailsType = /*@__PURE__*/ S.String;
|
|
1425
|
+
export const DragonpayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1426
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1427
|
+
issuer: S.String,
|
|
1428
|
+
sdkData: S.optional(S.String),
|
|
1429
|
+
shopperEmail: S.optional(S.String),
|
|
1430
|
+
type: DragonpayDetailsType,
|
|
1431
|
+
})).annotate({
|
|
1432
|
+
identifier: "DragonpayDetails",
|
|
1433
|
+
});
|
|
1434
|
+
export const EBankingFinlandDetailsType = /*@__PURE__*/ S.String;
|
|
1435
|
+
export const EBankingFinlandDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1436
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1437
|
+
issuer: S.optional(S.String),
|
|
1438
|
+
sdkData: S.optional(S.String),
|
|
1439
|
+
type: EBankingFinlandDetailsType,
|
|
1440
|
+
})).annotate({
|
|
1441
|
+
identifier: "EBankingFinlandDetails",
|
|
1442
|
+
});
|
|
1443
|
+
export const EcontextVoucherDetailsType = /*@__PURE__*/ S.String;
|
|
1444
|
+
export const EcontextVoucherDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1445
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1446
|
+
firstName: S.String,
|
|
1447
|
+
lastName: S.String,
|
|
1448
|
+
sdkData: S.optional(S.String),
|
|
1449
|
+
shopperEmail: S.String,
|
|
1450
|
+
telephoneNumber: S.String,
|
|
1451
|
+
type: EcontextVoucherDetailsType,
|
|
1452
|
+
})).annotate({
|
|
1453
|
+
identifier: "EcontextVoucherDetails",
|
|
1454
|
+
});
|
|
1455
|
+
export const EftDetailsType = /*@__PURE__*/ S.String;
|
|
1456
|
+
export const EftDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1457
|
+
bankAccountNumber: S.optional(S.String),
|
|
1458
|
+
bankCode: S.optional(S.String),
|
|
1459
|
+
bankLocationId: S.optional(S.String),
|
|
1460
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1461
|
+
ownerName: S.optional(S.String),
|
|
1462
|
+
recurringDetailReference: S.optional(S.String),
|
|
1463
|
+
sdkData: S.optional(S.String),
|
|
1464
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1465
|
+
type: S.optional(EftDetailsType),
|
|
1466
|
+
})).annotate({ identifier: "EftDetails" });
|
|
1467
|
+
export const ExternalTokenDetailsSubtype = /*@__PURE__*/ S.String;
|
|
1468
|
+
export const ExternalTokenDetailsType = /*@__PURE__*/ S.String;
|
|
1469
|
+
export const ExternalTokenDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1470
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1471
|
+
expiryMonth: S.optional(S.String),
|
|
1472
|
+
expiryYear: S.optional(S.String),
|
|
1473
|
+
holderName: S.optional(S.String),
|
|
1474
|
+
number: S.optional(S.String),
|
|
1475
|
+
storedPaymentMethodId: S.String,
|
|
1476
|
+
subtype: ExternalTokenDetailsSubtype,
|
|
1477
|
+
type: ExternalTokenDetailsType,
|
|
1478
|
+
})).annotate({
|
|
1479
|
+
identifier: "ExternalTokenDetails",
|
|
1480
|
+
});
|
|
1481
|
+
export const FastlaneDetailsType = /*@__PURE__*/ S.String;
|
|
1482
|
+
export const FastlaneDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1483
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1484
|
+
fastlaneData: S.String,
|
|
1485
|
+
recurringDetailReference: S.optional(S.String),
|
|
1486
|
+
sdkData: S.optional(S.String),
|
|
1487
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1488
|
+
type: FastlaneDetailsType,
|
|
1489
|
+
})).annotate({
|
|
1490
|
+
identifier: "FastlaneDetails",
|
|
1491
|
+
});
|
|
1492
|
+
export const GenericIssuerPaymentMethodDetailsType = /*@__PURE__*/ S.String;
|
|
1493
|
+
export const GenericIssuerPaymentMethodDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1494
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1495
|
+
issuer: S.String,
|
|
1496
|
+
recurringDetailReference: S.optional(S.String),
|
|
1497
|
+
sdkData: S.optional(S.String),
|
|
1498
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1499
|
+
type: GenericIssuerPaymentMethodDetailsType,
|
|
1500
|
+
})).annotate({
|
|
1501
|
+
identifier: "GenericIssuerPaymentMethodDetails",
|
|
1502
|
+
});
|
|
1503
|
+
export const GooglePayDetailsFundingSource = /*@__PURE__*/ S.String;
|
|
1504
|
+
export const GooglePayDetailsType = /*@__PURE__*/ S.String;
|
|
1505
|
+
export const GooglePayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1506
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1507
|
+
fundingSource: S.optional(GooglePayDetailsFundingSource),
|
|
1508
|
+
googlePayCardNetwork: S.optional(S.String),
|
|
1509
|
+
googlePayToken: S.String,
|
|
1510
|
+
recurringDetailReference: S.optional(S.String),
|
|
1511
|
+
sdkData: S.optional(S.String),
|
|
1512
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1513
|
+
threeDS2SdkVersion: S.optional(S.String),
|
|
1514
|
+
type: S.optional(GooglePayDetailsType),
|
|
1515
|
+
})).annotate({
|
|
1516
|
+
identifier: "GooglePayDetails",
|
|
1517
|
+
});
|
|
1518
|
+
export const IdealDetailsType = /*@__PURE__*/ S.String;
|
|
1519
|
+
export const IdealDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1520
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1521
|
+
issuer: S.optional(S.String),
|
|
1522
|
+
recurringDetailReference: S.optional(S.String),
|
|
1523
|
+
sdkData: S.optional(S.String),
|
|
1524
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1525
|
+
type: S.optional(IdealDetailsType),
|
|
1526
|
+
})).annotate({ identifier: "IdealDetails" });
|
|
1527
|
+
export const KlarnaDetailsType = /*@__PURE__*/ S.String;
|
|
1528
|
+
export const KlarnaDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1529
|
+
billingAddress: S.optional(S.String),
|
|
1530
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1531
|
+
deliveryAddress: S.optional(S.String),
|
|
1532
|
+
merchantData: S.optional(S.String),
|
|
1533
|
+
personalDetails: S.optional(S.String),
|
|
1534
|
+
recurringDetailReference: S.optional(S.String),
|
|
1535
|
+
sdkData: S.optional(S.String),
|
|
1536
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1537
|
+
subtype: S.optional(S.String),
|
|
1538
|
+
type: KlarnaDetailsType,
|
|
1539
|
+
})).annotate({ identifier: "KlarnaDetails" });
|
|
1540
|
+
export const KlarnaNetworkDetailsType = /*@__PURE__*/ S.String;
|
|
1541
|
+
export const KlarnaNetworkDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1542
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1543
|
+
klarnaNetworkData: S.optional(S.String),
|
|
1544
|
+
klarnaNetworkSessionToken: S.optional(S.String),
|
|
1545
|
+
recurringDetailReference: S.optional(S.String),
|
|
1546
|
+
sdkData: S.optional(S.String),
|
|
1547
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1548
|
+
type: KlarnaNetworkDetailsType,
|
|
1549
|
+
})).annotate({
|
|
1550
|
+
identifier: "KlarnaNetworkDetails",
|
|
1551
|
+
});
|
|
1552
|
+
export const MasterpassDetailsFundingSource = /*@__PURE__*/ S.String;
|
|
1553
|
+
export const MasterpassDetailsType = /*@__PURE__*/ S.String;
|
|
1554
|
+
export const MasterpassDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1555
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1556
|
+
fundingSource: S.optional(MasterpassDetailsFundingSource),
|
|
1557
|
+
masterpassTransactionId: S.String,
|
|
1558
|
+
sdkData: S.optional(S.String),
|
|
1559
|
+
type: S.optional(MasterpassDetailsType),
|
|
1560
|
+
})).annotate({
|
|
1561
|
+
identifier: "MasterpassDetails",
|
|
1562
|
+
});
|
|
1563
|
+
export const MbwayDetailsType = /*@__PURE__*/ S.String;
|
|
1564
|
+
export const MbwayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1565
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1566
|
+
sdkData: S.optional(S.String),
|
|
1567
|
+
shopperEmail: S.String,
|
|
1568
|
+
telephoneNumber: S.String,
|
|
1569
|
+
type: S.optional(MbwayDetailsType),
|
|
1570
|
+
})).annotate({ identifier: "MbwayDetails" });
|
|
1571
|
+
export const MobilePayDetailsType = /*@__PURE__*/ S.String;
|
|
1572
|
+
export const MobilePayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1573
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1574
|
+
sdkData: S.optional(S.String),
|
|
1575
|
+
type: S.optional(MobilePayDetailsType),
|
|
1576
|
+
})).annotate({
|
|
1577
|
+
identifier: "MobilePayDetails",
|
|
1578
|
+
});
|
|
1579
|
+
export const MolPayDetailsType = /*@__PURE__*/ S.String;
|
|
1580
|
+
export const MolPayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1581
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1582
|
+
issuer: S.String,
|
|
1583
|
+
sdkData: S.optional(S.String),
|
|
1584
|
+
type: MolPayDetailsType,
|
|
1585
|
+
})).annotate({ identifier: "MolPayDetails" });
|
|
1586
|
+
export const OpenInvoiceDetailsType = /*@__PURE__*/ S.String;
|
|
1587
|
+
export const OpenInvoiceDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1588
|
+
billingAddress: S.optional(S.String),
|
|
1589
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1590
|
+
deliveryAddress: S.optional(S.String),
|
|
1591
|
+
personalDetails: S.optional(S.String),
|
|
1592
|
+
recurringDetailReference: S.optional(S.String),
|
|
1593
|
+
sdkData: S.optional(S.String),
|
|
1594
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1595
|
+
type: S.optional(OpenInvoiceDetailsType),
|
|
1596
|
+
})).annotate({
|
|
1597
|
+
identifier: "OpenInvoiceDetails",
|
|
1598
|
+
});
|
|
1599
|
+
export const PayByBankAISDirectDebitDetailsType = /*@__PURE__*/ S.String;
|
|
1600
|
+
export const PayByBankAISDirectDebitDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1601
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1602
|
+
recurringDetailReference: S.optional(S.String),
|
|
1603
|
+
sdkData: S.optional(S.String),
|
|
1604
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1605
|
+
type: PayByBankAISDirectDebitDetailsType,
|
|
1606
|
+
})).annotate({
|
|
1607
|
+
identifier: "PayByBankAISDirectDebitDetails",
|
|
1608
|
+
});
|
|
1609
|
+
export const PayByBankDetailsType = /*@__PURE__*/ S.String;
|
|
1610
|
+
export const PayByBankDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1611
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1612
|
+
issuer: S.optional(S.String),
|
|
1613
|
+
sdkData: S.optional(S.String),
|
|
1614
|
+
type: PayByBankDetailsType,
|
|
1615
|
+
})).annotate({
|
|
1616
|
+
identifier: "PayByBankDetails",
|
|
1617
|
+
});
|
|
1618
|
+
export const PayPalDetailsSubtype = /*@__PURE__*/ S.String;
|
|
1619
|
+
export const PayPalDetailsType = /*@__PURE__*/ S.String;
|
|
1620
|
+
export const PayPalDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1621
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1622
|
+
orderID: S.optional(S.String),
|
|
1623
|
+
payeePreferred: S.optional(S.String),
|
|
1624
|
+
payerID: S.optional(S.String),
|
|
1625
|
+
payerSelected: S.optional(S.String),
|
|
1626
|
+
recurringDetailReference: S.optional(S.String),
|
|
1627
|
+
sdkData: S.optional(S.String),
|
|
1628
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1629
|
+
subtype: S.optional(PayPalDetailsSubtype),
|
|
1630
|
+
type: PayPalDetailsType,
|
|
1631
|
+
})).annotate({ identifier: "PayPalDetails" });
|
|
1632
|
+
export const PayPayDetailsType = /*@__PURE__*/ S.String;
|
|
1633
|
+
export const PayPayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1634
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1635
|
+
recurringDetailReference: S.optional(S.String),
|
|
1636
|
+
sdkData: S.optional(S.String),
|
|
1637
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1638
|
+
type: S.optional(PayPayDetailsType),
|
|
1639
|
+
})).annotate({ identifier: "PayPayDetails" });
|
|
1640
|
+
export const PayToDetailsType = /*@__PURE__*/ S.String;
|
|
1641
|
+
export const PayToDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1642
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1643
|
+
recurringDetailReference: S.optional(S.String),
|
|
1644
|
+
sdkData: S.optional(S.String),
|
|
1645
|
+
shopperAccountIdentifier: S.optional(S.String),
|
|
1646
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1647
|
+
type: S.optional(PayToDetailsType),
|
|
1648
|
+
})).annotate({ identifier: "PayToDetails" });
|
|
1649
|
+
export const PayUUpiDetailsType = /*@__PURE__*/ S.String;
|
|
1650
|
+
export const PayUUpiDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1651
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1652
|
+
recurringDetailReference: S.optional(S.String),
|
|
1653
|
+
sdkData: S.optional(S.String),
|
|
1654
|
+
shopperNotificationReference: S.optional(S.String),
|
|
1655
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1656
|
+
type: PayUUpiDetailsType,
|
|
1657
|
+
virtualPaymentAddress: S.optional(S.String),
|
|
1658
|
+
})).annotate({ identifier: "PayUUpiDetails" });
|
|
1659
|
+
export const PayWithGoogleDetailsFundingSource = /*@__PURE__*/ S.String;
|
|
1660
|
+
export const PayWithGoogleDetailsType = /*@__PURE__*/ S.String;
|
|
1661
|
+
export const PayWithGoogleDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1662
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1663
|
+
fundingSource: S.optional(PayWithGoogleDetailsFundingSource),
|
|
1664
|
+
googlePayToken: S.String,
|
|
1665
|
+
recurringDetailReference: S.optional(S.String),
|
|
1666
|
+
sdkData: S.optional(S.String),
|
|
1667
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1668
|
+
threeDS2SdkVersion: S.optional(S.String),
|
|
1669
|
+
type: S.optional(PayWithGoogleDetailsType),
|
|
1670
|
+
})).annotate({
|
|
1671
|
+
identifier: "PayWithGoogleDetails",
|
|
1672
|
+
});
|
|
1673
|
+
export const PaymentDetailsType = /*@__PURE__*/ S.String;
|
|
1674
|
+
export const PaymentDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1675
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1676
|
+
sdkData: S.optional(S.String),
|
|
1677
|
+
type: S.optional(PaymentDetailsType),
|
|
1678
|
+
})).annotate({ identifier: "PaymentDetails" });
|
|
1679
|
+
export const PixRecurringFrequency = /*@__PURE__*/ S.String;
|
|
1680
|
+
export const PixRecurring = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1681
|
+
billingDate: S.optional(S.String),
|
|
1682
|
+
businessDayOnly: S.optional(S.Boolean),
|
|
1683
|
+
endsAt: S.optional(S.String),
|
|
1684
|
+
frequency: S.optional(PixRecurringFrequency),
|
|
1685
|
+
minAmount: S.optional(Amount),
|
|
1686
|
+
originalPspReference: S.optional(S.String),
|
|
1687
|
+
recurringAmount: S.optional(Amount),
|
|
1688
|
+
recurringStatement: S.optional(S.String),
|
|
1689
|
+
retryPolicy: S.optional(S.Boolean),
|
|
1690
|
+
startsAt: S.optional(S.String),
|
|
1691
|
+
})).annotate({ identifier: "PixRecurring" });
|
|
1692
|
+
export const PixDetailsType = /*@__PURE__*/ S.String;
|
|
1693
|
+
export const PixDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1694
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1695
|
+
pixRecurring: S.optional(PixRecurring),
|
|
1696
|
+
recurringDetailReference: S.optional(S.String),
|
|
1697
|
+
sdkData: S.optional(S.String),
|
|
1698
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1699
|
+
type: S.optional(PixDetailsType),
|
|
1700
|
+
})).annotate({ identifier: "PixDetails" });
|
|
1701
|
+
export const ConfidenceScoreErrorsList = /*@__PURE__*/ S.Array(S.String);
|
|
1702
|
+
export const ConfidenceScore = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1703
|
+
errors: S.optional(ConfidenceScoreErrorsList),
|
|
1704
|
+
score: S.optional(S.Number),
|
|
1705
|
+
})).annotate({
|
|
1706
|
+
identifier: "ConfidenceScore",
|
|
1707
|
+
});
|
|
1708
|
+
export const ScreenDimensions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1709
|
+
height: S.optional(S.Number),
|
|
1710
|
+
width: S.optional(S.Number),
|
|
1711
|
+
})).annotate({
|
|
1712
|
+
identifier: "ScreenDimensions",
|
|
1713
|
+
});
|
|
1714
|
+
export const PixPayByBankRiskSignals = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1715
|
+
confidenceScore: S.optional(ConfidenceScore),
|
|
1716
|
+
elapsedTimeSinceBoot: S.optional(S.Number),
|
|
1717
|
+
isRootedDevice: S.optional(S.Boolean),
|
|
1718
|
+
language: S.optional(S.String),
|
|
1719
|
+
osVersion: S.optional(S.String),
|
|
1720
|
+
screenBrightness: S.optional(S.Number),
|
|
1721
|
+
screenDimensions: S.optional(ScreenDimensions),
|
|
1722
|
+
userTimeZoneOffset: S.optional(S.Number),
|
|
1723
|
+
})).annotate({
|
|
1724
|
+
identifier: "PixPayByBankRiskSignals",
|
|
1725
|
+
});
|
|
1726
|
+
export const PixPayByBankDetailsType = /*@__PURE__*/ S.String;
|
|
1727
|
+
export const PixPayByBankDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1728
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1729
|
+
deviceId: S.optional(S.String),
|
|
1730
|
+
issuer: S.optional(S.String),
|
|
1731
|
+
recurringDetailReference: S.optional(S.String),
|
|
1732
|
+
riskSignals: S.optional(PixPayByBankRiskSignals),
|
|
1733
|
+
sdkData: S.optional(S.String),
|
|
1734
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1735
|
+
type: S.optional(PixPayByBankDetailsType),
|
|
1736
|
+
})).annotate({
|
|
1737
|
+
identifier: "PixPayByBankDetails",
|
|
1738
|
+
});
|
|
1739
|
+
export const PseDetailsType = /*@__PURE__*/ S.String;
|
|
1740
|
+
export const PseDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1741
|
+
bank: S.String,
|
|
1742
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1743
|
+
clientType: S.String,
|
|
1744
|
+
identification: S.String,
|
|
1745
|
+
identificationType: S.String,
|
|
1746
|
+
sdkData: S.optional(S.String),
|
|
1747
|
+
type: S.optional(PseDetailsType),
|
|
1748
|
+
})).annotate({ identifier: "PseDetails" });
|
|
1749
|
+
export const RakutenPayDetailsType = /*@__PURE__*/ S.String;
|
|
1750
|
+
export const RakutenPayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1751
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1752
|
+
recurringDetailReference: S.optional(S.String),
|
|
1753
|
+
sdkData: S.optional(S.String),
|
|
1754
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1755
|
+
type: S.optional(RakutenPayDetailsType),
|
|
1756
|
+
})).annotate({
|
|
1757
|
+
identifier: "RakutenPayDetails",
|
|
1758
|
+
});
|
|
1759
|
+
export const RatepayDetailsType = /*@__PURE__*/ S.String;
|
|
1760
|
+
export const RatepayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1761
|
+
billingAddress: S.optional(S.String),
|
|
1762
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1763
|
+
deliveryAddress: S.optional(S.String),
|
|
1764
|
+
personalDetails: S.optional(S.String),
|
|
1765
|
+
recurringDetailReference: S.optional(S.String),
|
|
1766
|
+
sdkData: S.optional(S.String),
|
|
1767
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1768
|
+
type: RatepayDetailsType,
|
|
1769
|
+
})).annotate({ identifier: "RatepayDetails" });
|
|
1770
|
+
export const RivertyDetailsType = /*@__PURE__*/ S.String;
|
|
1771
|
+
export const RivertyDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1772
|
+
billingAddress: S.optional(S.String),
|
|
1773
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1774
|
+
deliveryAddress: S.optional(S.String),
|
|
1775
|
+
deviceFingerprint: S.optional(S.String),
|
|
1776
|
+
iban: S.optional(S.String),
|
|
1777
|
+
merchantData: S.optional(S.String),
|
|
1778
|
+
personalDetails: S.optional(S.String),
|
|
1779
|
+
recurringDetailReference: S.optional(S.String),
|
|
1780
|
+
sdkData: S.optional(S.String),
|
|
1781
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1782
|
+
subtype: S.optional(S.String),
|
|
1783
|
+
type: RivertyDetailsType,
|
|
1784
|
+
})).annotate({ identifier: "RivertyDetails" });
|
|
1785
|
+
export const SamsungPayDetailsFundingSource = /*@__PURE__*/ S.String;
|
|
1786
|
+
export const SamsungPayDetailsType = /*@__PURE__*/ S.String;
|
|
1787
|
+
export const SamsungPayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1788
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1789
|
+
fundingSource: S.optional(SamsungPayDetailsFundingSource),
|
|
1790
|
+
recurringDetailReference: S.optional(S.String),
|
|
1791
|
+
samsungPayToken: S.String,
|
|
1792
|
+
sdkData: S.optional(S.String),
|
|
1793
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1794
|
+
type: S.optional(SamsungPayDetailsType),
|
|
1795
|
+
})).annotate({
|
|
1796
|
+
identifier: "SamsungPayDetails",
|
|
1797
|
+
});
|
|
1798
|
+
export const SepaDirectDebitDetailsType = /*@__PURE__*/ S.String;
|
|
1799
|
+
export const SepaDirectDebitDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1800
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1801
|
+
dueDate: S.optional(S.String),
|
|
1802
|
+
iban: S.optional(S.String),
|
|
1803
|
+
ownerName: S.optional(S.String),
|
|
1804
|
+
recurringDetailReference: S.optional(S.String),
|
|
1805
|
+
sdkData: S.optional(S.String),
|
|
1806
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1807
|
+
transferInstrumentId: S.optional(S.String),
|
|
1808
|
+
type: S.optional(SepaDirectDebitDetailsType),
|
|
1809
|
+
})).annotate({
|
|
1810
|
+
identifier: "SepaDirectDebitDetails",
|
|
1811
|
+
});
|
|
1812
|
+
export const StoredPaymentMethodDetailsType = /*@__PURE__*/ S.String;
|
|
1813
|
+
export const StoredPaymentMethodDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1814
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1815
|
+
recurringDetailReference: S.optional(S.String),
|
|
1816
|
+
sdkData: S.optional(S.String),
|
|
1817
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1818
|
+
type: S.optional(StoredPaymentMethodDetailsType),
|
|
1819
|
+
})).annotate({
|
|
1820
|
+
identifier: "StoredPaymentMethodDetails",
|
|
1821
|
+
});
|
|
1822
|
+
export const TwintDetailsType = /*@__PURE__*/ S.String;
|
|
1823
|
+
export const TwintDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1824
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1825
|
+
recurringDetailReference: S.optional(S.String),
|
|
1826
|
+
sdkData: S.optional(S.String),
|
|
1827
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1828
|
+
subtype: S.optional(S.String),
|
|
1829
|
+
type: S.optional(TwintDetailsType),
|
|
1830
|
+
})).annotate({ identifier: "TwintDetails" });
|
|
1831
|
+
export const UpiCollectDetailsType = /*@__PURE__*/ S.String;
|
|
1832
|
+
export const UpiCollectDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1833
|
+
billingSequenceNumber: S.optional(S.String),
|
|
1834
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1835
|
+
recurringDetailReference: S.optional(S.String),
|
|
1836
|
+
sdkData: S.optional(S.String),
|
|
1837
|
+
shopperNotificationReference: S.optional(S.String),
|
|
1838
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1839
|
+
type: UpiCollectDetailsType,
|
|
1840
|
+
virtualPaymentAddress: S.optional(S.String),
|
|
1841
|
+
})).annotate({
|
|
1842
|
+
identifier: "UpiCollectDetails",
|
|
1843
|
+
});
|
|
1844
|
+
export const UpiIntentDetailsType = /*@__PURE__*/ S.String;
|
|
1845
|
+
export const UpiIntentDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1846
|
+
appId: S.optional(S.String),
|
|
1847
|
+
billingSequenceNumber: S.optional(S.String),
|
|
1848
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1849
|
+
recurringDetailReference: S.optional(S.String),
|
|
1850
|
+
sdkData: S.optional(S.String),
|
|
1851
|
+
shopperNotificationReference: S.optional(S.String),
|
|
1852
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1853
|
+
type: UpiIntentDetailsType,
|
|
1854
|
+
})).annotate({
|
|
1855
|
+
identifier: "UpiIntentDetails",
|
|
1856
|
+
});
|
|
1857
|
+
export const UpiQrDetailsType = /*@__PURE__*/ S.String;
|
|
1858
|
+
export const UpiQrDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1859
|
+
billingSequenceNumber: S.optional(S.String),
|
|
1860
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1861
|
+
recurringDetailReference: S.optional(S.String),
|
|
1862
|
+
sdkData: S.optional(S.String),
|
|
1863
|
+
shopperNotificationReference: S.optional(S.String),
|
|
1864
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1865
|
+
type: UpiQrDetailsType,
|
|
1866
|
+
})).annotate({ identifier: "UpiQrDetails" });
|
|
1867
|
+
export const VippsDetailsType = /*@__PURE__*/ S.String;
|
|
1868
|
+
export const VippsDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1869
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1870
|
+
recurringDetailReference: S.optional(S.String),
|
|
1871
|
+
sdkData: S.optional(S.String),
|
|
1872
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1873
|
+
telephoneNumber: S.String,
|
|
1874
|
+
type: S.optional(VippsDetailsType),
|
|
1875
|
+
})).annotate({ identifier: "VippsDetails" });
|
|
1876
|
+
export const VisaCheckoutDetailsFundingSource = /*@__PURE__*/ S.String;
|
|
1877
|
+
export const VisaCheckoutDetailsType = /*@__PURE__*/ S.String;
|
|
1878
|
+
export const VisaCheckoutDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1879
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1880
|
+
fundingSource: S.optional(VisaCheckoutDetailsFundingSource),
|
|
1881
|
+
sdkData: S.optional(S.String),
|
|
1882
|
+
type: S.optional(VisaCheckoutDetailsType),
|
|
1883
|
+
visaCheckoutCallId: S.String,
|
|
1884
|
+
})).annotate({
|
|
1885
|
+
identifier: "VisaCheckoutDetails",
|
|
1886
|
+
});
|
|
1887
|
+
export const WeChatPayDetailsType = /*@__PURE__*/ S.String;
|
|
1888
|
+
export const WeChatPayDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1889
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1890
|
+
sdkData: S.optional(S.String),
|
|
1891
|
+
type: S.optional(WeChatPayDetailsType),
|
|
1892
|
+
})).annotate({
|
|
1893
|
+
identifier: "WeChatPayDetails",
|
|
1894
|
+
});
|
|
1895
|
+
export const WeChatPayMiniProgramDetailsType = /*@__PURE__*/ S.String;
|
|
1896
|
+
export const WeChatPayMiniProgramDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1897
|
+
appId: S.optional(S.String),
|
|
1898
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1899
|
+
openid: S.optional(S.String),
|
|
1900
|
+
recurringDetailReference: S.optional(S.String),
|
|
1901
|
+
sdkData: S.optional(S.String),
|
|
1902
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1903
|
+
type: S.optional(WeChatPayMiniProgramDetailsType),
|
|
1904
|
+
})).annotate({
|
|
1905
|
+
identifier: "WeChatPayMiniProgramDetails",
|
|
1906
|
+
});
|
|
1907
|
+
export const ZipDetailsType = /*@__PURE__*/ S.String;
|
|
1908
|
+
export const ZipDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1909
|
+
checkoutAttemptId: S.optional(S.String),
|
|
1910
|
+
clickAndCollect: S.optional(S.String),
|
|
1911
|
+
recurringDetailReference: S.optional(S.String),
|
|
1912
|
+
sdkData: S.optional(S.String),
|
|
1913
|
+
storedPaymentMethodId: S.optional(S.String),
|
|
1914
|
+
type: S.optional(ZipDetailsType),
|
|
1915
|
+
})).annotate({ identifier: "ZipDetails" });
|
|
1916
|
+
export const CreatePaymentRequestPaymentMethod =
|
|
1917
|
+
/*@__PURE__*/ S.Unknown;
|
|
1918
|
+
export const PaymentValidationsNameRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1919
|
+
status: S.String,
|
|
1920
|
+
})).annotate({
|
|
1921
|
+
identifier: "PaymentValidationsNameRequest",
|
|
1922
|
+
});
|
|
1923
|
+
export const PaymentValidations = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1924
|
+
name: S.optional(PaymentValidationsNameRequest),
|
|
1925
|
+
})).annotate({
|
|
1926
|
+
identifier: "PaymentValidations",
|
|
1927
|
+
});
|
|
1928
|
+
export const PlatformChargebackLogicBehavior = /*@__PURE__*/ S.String;
|
|
1929
|
+
export const PlatformChargebackLogic = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1930
|
+
behavior: S.optional(PlatformChargebackLogicBehavior),
|
|
1931
|
+
costAllocationAccount: S.optional(S.String),
|
|
1932
|
+
targetAccount: S.optional(S.String),
|
|
1933
|
+
})).annotate({
|
|
1934
|
+
identifier: "PlatformChargebackLogic",
|
|
1935
|
+
});
|
|
1936
|
+
export const CreatePaymentRequestRecurringProcessingModel =
|
|
1937
|
+
/*@__PURE__*/ S.String;
|
|
1938
|
+
export const RiskDataCustomFieldsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1939
|
+
export const RiskData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1940
|
+
clientData: S.optional(S.String),
|
|
1941
|
+
customFields: S.optional(RiskDataCustomFieldsMap),
|
|
1942
|
+
fraudOffset: S.optional(S.Number),
|
|
1943
|
+
profileReference: S.optional(S.String),
|
|
1944
|
+
})).annotate({ identifier: "RiskData" });
|
|
1945
|
+
export const CreatePaymentRequestShopperInteraction = /*@__PURE__*/ S.String;
|
|
1946
|
+
export const ShopperTaxInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1947
|
+
taxCountryCode: S.String,
|
|
1948
|
+
taxIdentificationNumber: S.String,
|
|
1949
|
+
})).annotate({ identifier: "ShopperTaxInfo" });
|
|
1950
|
+
export const SplitAmount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1951
|
+
currency: S.optional(S.String),
|
|
1952
|
+
value: S.Number,
|
|
1953
|
+
})).annotate({ identifier: "SplitAmount" });
|
|
1954
|
+
export const SplitType = /*@__PURE__*/ S.String;
|
|
1955
|
+
export const Split = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1956
|
+
account: S.optional(S.String),
|
|
1957
|
+
amount: S.optional(SplitAmount),
|
|
1958
|
+
description: S.optional(S.String),
|
|
1959
|
+
reference: S.optional(S.String),
|
|
1960
|
+
type: SplitType,
|
|
1961
|
+
})).annotate({ identifier: "Split" });
|
|
1962
|
+
export const CreatePaymentRequestSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
1963
|
+
export const SubMerchantInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1964
|
+
address: S.optional(BillingAddress),
|
|
1965
|
+
amount: S.optional(Amount),
|
|
1966
|
+
email: S.optional(S.String),
|
|
1967
|
+
id: S.optional(S.String),
|
|
1968
|
+
mcc: S.optional(S.String),
|
|
1969
|
+
name: S.optional(S.String),
|
|
1970
|
+
phoneNumber: S.optional(S.String),
|
|
1971
|
+
registeredSince: S.optional(S.String),
|
|
1972
|
+
taxId: S.optional(S.String),
|
|
1973
|
+
url: S.optional(S.String),
|
|
1974
|
+
})).annotate({
|
|
1975
|
+
identifier: "SubMerchantInfo",
|
|
1976
|
+
});
|
|
1977
|
+
export const CreatePaymentRequestSubMerchantsList = /*@__PURE__*/ S.Array(SubMerchantInfo);
|
|
1978
|
+
export const Surcharge = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1979
|
+
value: S.Number,
|
|
1980
|
+
})).annotate({ identifier: "Surcharge" });
|
|
1981
|
+
export const ThirdPartyTokenRedundancyInfoRequestParametersMap =
|
|
1982
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
1983
|
+
export const ThirdPartyTokenRedundancyInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1984
|
+
requestParameters: S.optional(ThirdPartyTokenRedundancyInfoRequestParametersMap),
|
|
1985
|
+
requestTemplateCode: S.String,
|
|
1986
|
+
})).annotate({
|
|
1987
|
+
identifier: "ThirdPartyTokenRedundancyInfo",
|
|
1988
|
+
});
|
|
1989
|
+
export const CreatePaymentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1990
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
1991
|
+
accountInfo: S.optional(AccountInfo),
|
|
1992
|
+
additionalAmount: S.optional(Amount),
|
|
1993
|
+
additionalData: S.optional(CreatePaymentRequestAdditionalDataMap),
|
|
1994
|
+
amount: Amount,
|
|
1995
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
1996
|
+
authenticationData: S.optional(AuthenticationData),
|
|
1997
|
+
bankAccount: S.optional(CheckoutBankAccount),
|
|
1998
|
+
billingAddress: S.optional(BillingAddress),
|
|
1999
|
+
browserInfo: S.optional(BrowserInfo),
|
|
2000
|
+
captureDelayHours: S.optional(S.Number),
|
|
2001
|
+
channel: S.optional(CreatePaymentRequestChannel),
|
|
2002
|
+
checkoutAttemptId: S.optional(S.String),
|
|
2003
|
+
company: S.optional(Company),
|
|
2004
|
+
countryCode: S.optional(S.String),
|
|
2005
|
+
dateOfBirth: S.optional(S.String),
|
|
2006
|
+
dccQuote: S.optional(ForexQuote),
|
|
2007
|
+
deliverAt: S.optional(S.String),
|
|
2008
|
+
deliveryAddress: S.optional(DeliveryAddress),
|
|
2009
|
+
deliveryDate: S.optional(S.String),
|
|
2010
|
+
deviceFingerprint: S.optional(S.String),
|
|
2011
|
+
enableOneClick: S.optional(S.Boolean),
|
|
2012
|
+
enablePayOut: S.optional(S.Boolean),
|
|
2013
|
+
enableRecurring: S.optional(S.Boolean),
|
|
2014
|
+
enhancedSchemeData: S.optional(EnhancedSchemeData),
|
|
2015
|
+
entityType: S.optional(CreatePaymentRequestEntityType),
|
|
2016
|
+
fraudOffset: S.optional(S.Number),
|
|
2017
|
+
fundOrigin: S.optional(FundOrigin),
|
|
2018
|
+
fundRecipient: S.optional(FundRecipient),
|
|
2019
|
+
industryUsage: S.optional(CreatePaymentRequestIndustryUsage),
|
|
2020
|
+
installments: S.optional(Installments),
|
|
2021
|
+
lineItems: S.optional(CreatePaymentRequestLineItemsList),
|
|
2022
|
+
localizedShopperStatement: S.optional(CreatePaymentRequestLocalizedShopperStatementMap),
|
|
2023
|
+
mandate: S.optional(Mandate),
|
|
2024
|
+
mcc: S.optional(S.String),
|
|
2025
|
+
merchantAccount: S.String,
|
|
2026
|
+
merchantOrderReference: S.optional(S.String),
|
|
2027
|
+
merchantRiskIndicator: S.optional(MerchantRiskIndicator),
|
|
2028
|
+
metadata: S.optional(CreatePaymentRequestMetadataMap),
|
|
2029
|
+
mpiData: S.optional(ThreeDSecureData),
|
|
2030
|
+
order: S.optional(EncryptedOrderData),
|
|
2031
|
+
orderReference: S.optional(S.String),
|
|
2032
|
+
origin: S.optional(S.String),
|
|
2033
|
+
paymentMethod: CreatePaymentRequestPaymentMethod,
|
|
2034
|
+
paymentValidations: S.optional(PaymentValidations),
|
|
2035
|
+
platformChargebackLogic: S.optional(PlatformChargebackLogic),
|
|
2036
|
+
recurringExpiry: S.optional(S.String),
|
|
2037
|
+
recurringFrequency: S.optional(S.String),
|
|
2038
|
+
recurringProcessingModel: S.optional(CreatePaymentRequestRecurringProcessingModel),
|
|
2039
|
+
redirectFromIssuerMethod: S.optional(S.String),
|
|
2040
|
+
redirectToIssuerMethod: S.optional(S.String),
|
|
2041
|
+
reference: S.String,
|
|
2042
|
+
returnUrl: S.String,
|
|
2043
|
+
riskData: S.optional(RiskData),
|
|
2044
|
+
sessionValidity: S.optional(S.String),
|
|
2045
|
+
shopperConversionId: S.optional(S.String),
|
|
2046
|
+
shopperEmail: S.optional(S.String),
|
|
2047
|
+
shopperIP: S.optional(S.String),
|
|
2048
|
+
shopperInteraction: S.optional(CreatePaymentRequestShopperInteraction),
|
|
2049
|
+
shopperLocale: S.optional(S.String),
|
|
2050
|
+
shopperName: S.optional(ShopperName),
|
|
2051
|
+
shopperReference: S.optional(S.String),
|
|
2052
|
+
shopperStatement: S.optional(S.String),
|
|
2053
|
+
shopperTaxInfo: S.optional(ShopperTaxInfo),
|
|
2054
|
+
socialSecurityNumber: S.optional(S.String),
|
|
2055
|
+
splits: S.optional(CreatePaymentRequestSplitsList),
|
|
2056
|
+
store: S.optional(S.String),
|
|
2057
|
+
storePaymentMethod: S.optional(S.Boolean),
|
|
2058
|
+
subMerchants: S.optional(CreatePaymentRequestSubMerchantsList),
|
|
2059
|
+
surcharge: S.optional(Surcharge),
|
|
2060
|
+
telephoneNumber: S.optional(S.String),
|
|
2061
|
+
thirdPartyTokenRedundancyInfo: S.optional(ThirdPartyTokenRedundancyInfo),
|
|
2062
|
+
threeDS2RequestData: S.optional(ThreeDS2RequestFields),
|
|
2063
|
+
threeDSAuthenticationOnly: S.optional(S.Boolean),
|
|
2064
|
+
trustedShopper: S.optional(S.Boolean),
|
|
2065
|
+
}).pipe(T.Http({ method: "POST", uri: "/payments", code: 200 }))).annotate({
|
|
2066
|
+
identifier: "CreatePaymentRequest",
|
|
2067
|
+
});
|
|
2068
|
+
export const CreatePaymentAmountUpdateRequestAdjustAuthType =
|
|
2069
|
+
/*@__PURE__*/ S.String;
|
|
2070
|
+
export const CreatePaymentAmountUpdateRequestIndustryUsage =
|
|
2071
|
+
/*@__PURE__*/ S.String;
|
|
2072
|
+
export const CreatePaymentAmountUpdateRequestLineItemsList =
|
|
2073
|
+
/*@__PURE__*/ S.Array(LineItem);
|
|
2074
|
+
export const CreatePaymentAmountUpdateRequestSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
2075
|
+
export const CreatePaymentAmountUpdateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2076
|
+
paymentPspReference: S.String.pipe(T.Label()),
|
|
2077
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2078
|
+
adjustAuthType: S.optional(CreatePaymentAmountUpdateRequestAdjustAuthType),
|
|
2079
|
+
adjustAuthorisationData: S.optional(S.String),
|
|
2080
|
+
amount: Amount,
|
|
2081
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
2082
|
+
industryUsage: S.optional(CreatePaymentAmountUpdateRequestIndustryUsage),
|
|
2083
|
+
lineItems: S.optional(CreatePaymentAmountUpdateRequestLineItemsList),
|
|
2084
|
+
merchantAccount: S.String,
|
|
2085
|
+
mpiData: S.optional(ThreeDSecureData),
|
|
2086
|
+
reference: S.optional(S.String),
|
|
2087
|
+
splits: S.optional(CreatePaymentAmountUpdateRequestSplitsList),
|
|
2088
|
+
}).pipe(T.Http({
|
|
2089
|
+
method: "POST",
|
|
2090
|
+
uri: "/payments/{paymentPspReference}/amountUpdates",
|
|
2091
|
+
code: 200,
|
|
2092
|
+
}))).annotate({
|
|
2093
|
+
identifier: "CreatePaymentAmountUpdateRequest",
|
|
2094
|
+
});
|
|
2095
|
+
export const PaymentAmountUpdateResponseIndustryUsage = /*@__PURE__*/ S.String;
|
|
2096
|
+
export const PaymentAmountUpdateResponseLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
2097
|
+
export const PaymentAmountUpdateResponseSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
2098
|
+
export const PaymentAmountUpdateResponseStatus = /*@__PURE__*/ S.String;
|
|
2099
|
+
export const PaymentAmountUpdateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2100
|
+
adjustAuthorisationData: S.optional(S.String),
|
|
2101
|
+
amount: Amount,
|
|
2102
|
+
industryUsage: S.optional(PaymentAmountUpdateResponseIndustryUsage),
|
|
2103
|
+
lineItems: S.optional(PaymentAmountUpdateResponseLineItemsList),
|
|
2104
|
+
merchantAccount: S.String,
|
|
2105
|
+
paymentPspReference: S.String,
|
|
2106
|
+
pspReference: S.String,
|
|
2107
|
+
reference: S.String,
|
|
2108
|
+
splits: S.optional(PaymentAmountUpdateResponseSplitsList),
|
|
2109
|
+
status: PaymentAmountUpdateResponseStatus,
|
|
2110
|
+
})).annotate({
|
|
2111
|
+
identifier: "PaymentAmountUpdateResponse",
|
|
2112
|
+
});
|
|
2113
|
+
export const CreatePaymentCancelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2114
|
+
paymentPspReference: S.String.pipe(T.Label()),
|
|
2115
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2116
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
2117
|
+
merchantAccount: S.String,
|
|
2118
|
+
reference: S.optional(S.String),
|
|
2119
|
+
}).pipe(T.Http({
|
|
2120
|
+
method: "POST",
|
|
2121
|
+
uri: "/payments/{paymentPspReference}/cancels",
|
|
2122
|
+
code: 200,
|
|
2123
|
+
}))).annotate({
|
|
2124
|
+
identifier: "CreatePaymentCancelRequest",
|
|
2125
|
+
});
|
|
2126
|
+
export const PaymentCancelResponseStatus = /*@__PURE__*/ S.String;
|
|
2127
|
+
export const PaymentCancelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2128
|
+
merchantAccount: S.String,
|
|
2129
|
+
paymentPspReference: S.String,
|
|
2130
|
+
pspReference: S.String,
|
|
2131
|
+
reference: S.optional(S.String),
|
|
2132
|
+
status: PaymentCancelResponseStatus,
|
|
2133
|
+
})).annotate({
|
|
2134
|
+
identifier: "PaymentCancelResponse",
|
|
2135
|
+
});
|
|
2136
|
+
export const CreatePaymentCaptureRequestLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
2137
|
+
export const CreatePaymentCaptureRequestSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
2138
|
+
export const CreatePaymentCaptureRequestSubMerchantsList =
|
|
2139
|
+
/*@__PURE__*/ S.Array(SubMerchantInfo);
|
|
2140
|
+
export const CreatePaymentCaptureRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2141
|
+
paymentPspReference: S.String.pipe(T.Label()),
|
|
2142
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2143
|
+
amount: Amount,
|
|
2144
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
2145
|
+
enhancedSchemeData: S.optional(EnhancedSchemeData),
|
|
2146
|
+
lineItems: S.optional(CreatePaymentCaptureRequestLineItemsList),
|
|
2147
|
+
merchantAccount: S.String,
|
|
2148
|
+
platformChargebackLogic: S.optional(PlatformChargebackLogic),
|
|
2149
|
+
reference: S.optional(S.String),
|
|
2150
|
+
splits: S.optional(CreatePaymentCaptureRequestSplitsList),
|
|
2151
|
+
subMerchants: S.optional(CreatePaymentCaptureRequestSubMerchantsList),
|
|
2152
|
+
}).pipe(T.Http({
|
|
2153
|
+
method: "POST",
|
|
2154
|
+
uri: "/payments/{paymentPspReference}/captures",
|
|
2155
|
+
code: 200,
|
|
2156
|
+
}))).annotate({
|
|
2157
|
+
identifier: "CreatePaymentCaptureRequest",
|
|
2158
|
+
});
|
|
2159
|
+
export const PaymentCaptureResponseLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
2160
|
+
export const PaymentCaptureResponseSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
2161
|
+
export const PaymentCaptureResponseStatus = /*@__PURE__*/ S.String;
|
|
2162
|
+
export const PaymentCaptureResponseSubMerchantsList = /*@__PURE__*/ S.Array(SubMerchantInfo);
|
|
2163
|
+
export const PaymentCaptureResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2164
|
+
amount: Amount,
|
|
2165
|
+
lineItems: S.optional(PaymentCaptureResponseLineItemsList),
|
|
2166
|
+
merchantAccount: S.String,
|
|
2167
|
+
paymentPspReference: S.String,
|
|
2168
|
+
platformChargebackLogic: S.optional(PlatformChargebackLogic),
|
|
2169
|
+
pspReference: S.String,
|
|
2170
|
+
reference: S.optional(S.String),
|
|
2171
|
+
splits: S.optional(PaymentCaptureResponseSplitsList),
|
|
2172
|
+
status: PaymentCaptureResponseStatus,
|
|
2173
|
+
subMerchants: S.optional(PaymentCaptureResponseSubMerchantsList),
|
|
2174
|
+
})).annotate({
|
|
2175
|
+
identifier: "PaymentCaptureResponse",
|
|
2176
|
+
});
|
|
2177
|
+
export const CreatePaymentLinkRequestAllowedPaymentMethodsList =
|
|
2178
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2179
|
+
export const CreatePaymentLinkRequestBlockedPaymentMethodsList =
|
|
2180
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2181
|
+
export const InstallmentOptionPlansItem = /*@__PURE__*/ S.String;
|
|
2182
|
+
export const InstallmentOptionPlansList = /*@__PURE__*/ S.Array(InstallmentOptionPlansItem);
|
|
2183
|
+
export const InstallmentOptionValuesList = /*@__PURE__*/ S.Array(S.Number);
|
|
2184
|
+
export const InstallmentOption = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2185
|
+
maxValue: S.optional(S.Number),
|
|
2186
|
+
plans: S.optional(InstallmentOptionPlansList),
|
|
2187
|
+
preselectedValue: S.optional(S.Number),
|
|
2188
|
+
values: S.optional(InstallmentOptionValuesList),
|
|
2189
|
+
})).annotate({
|
|
2190
|
+
identifier: "InstallmentOption",
|
|
2191
|
+
});
|
|
2192
|
+
export const CreatePaymentLinkRequestInstallmentOptionsMap =
|
|
2193
|
+
/*@__PURE__*/ S.Record(S.String, InstallmentOption);
|
|
2194
|
+
export const CreatePaymentLinkRequestLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
2195
|
+
export const CreatePaymentLinkRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2196
|
+
export const CreatePaymentLinkRequestRecurringProcessingModel =
|
|
2197
|
+
/*@__PURE__*/ S.String;
|
|
2198
|
+
export const CreatePaymentLinkRequestRequiredShopperFieldsItem =
|
|
2199
|
+
/*@__PURE__*/ S.String;
|
|
2200
|
+
export const CreatePaymentLinkRequestRequiredShopperFieldsList =
|
|
2201
|
+
/*@__PURE__*/ S.Array(CreatePaymentLinkRequestRequiredShopperFieldsItem);
|
|
2202
|
+
export const CreatePaymentLinkRequestSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
2203
|
+
export const CreatePaymentLinkRequestStorePaymentMethodMode =
|
|
2204
|
+
/*@__PURE__*/ S.String;
|
|
2205
|
+
export const CheckoutSessionThreeDS2RequestDataThreeDSRequestorChallengeInd =
|
|
2206
|
+
/*@__PURE__*/ S.String;
|
|
2207
|
+
export const CheckoutSessionThreeDS2RequestData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2208
|
+
homePhone: S.optional(Phone),
|
|
2209
|
+
mobilePhone: S.optional(Phone),
|
|
2210
|
+
threeDSRequestorChallengeInd: S.optional(CheckoutSessionThreeDS2RequestDataThreeDSRequestorChallengeInd),
|
|
2211
|
+
workPhone: S.optional(Phone),
|
|
2212
|
+
})).annotate({
|
|
2213
|
+
identifier: "CheckoutSessionThreeDS2RequestData",
|
|
2214
|
+
});
|
|
2215
|
+
export const CreatePaymentLinkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2216
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2217
|
+
allowedPaymentMethods: S.optional(CreatePaymentLinkRequestAllowedPaymentMethodsList),
|
|
2218
|
+
amount: Amount,
|
|
2219
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
2220
|
+
billingAddress: S.optional(BillingAddress),
|
|
2221
|
+
blockedPaymentMethods: S.optional(CreatePaymentLinkRequestBlockedPaymentMethodsList),
|
|
2222
|
+
captureDelayHours: S.optional(S.Number),
|
|
2223
|
+
countryCode: S.optional(S.String),
|
|
2224
|
+
dateOfBirth: S.optional(S.String),
|
|
2225
|
+
deliverAt: S.optional(S.String),
|
|
2226
|
+
deliveryAddress: S.optional(BillingAddress),
|
|
2227
|
+
description: S.optional(S.String),
|
|
2228
|
+
expiresAt: S.optional(S.String),
|
|
2229
|
+
fundOrigin: S.optional(FundOrigin),
|
|
2230
|
+
fundRecipient: S.optional(FundRecipient),
|
|
2231
|
+
installmentOptions: S.optional(CreatePaymentLinkRequestInstallmentOptionsMap),
|
|
2232
|
+
lineItems: S.optional(CreatePaymentLinkRequestLineItemsList),
|
|
2233
|
+
manualCapture: S.optional(S.Boolean),
|
|
2234
|
+
mcc: S.optional(S.String),
|
|
2235
|
+
merchantAccount: S.String,
|
|
2236
|
+
merchantOrderReference: S.optional(S.String),
|
|
2237
|
+
metadata: S.optional(CreatePaymentLinkRequestMetadataMap),
|
|
2238
|
+
platformChargebackLogic: S.optional(PlatformChargebackLogic),
|
|
2239
|
+
recurringProcessingModel: S.optional(CreatePaymentLinkRequestRecurringProcessingModel),
|
|
2240
|
+
reference: S.String,
|
|
2241
|
+
requiredShopperFields: S.optional(CreatePaymentLinkRequestRequiredShopperFieldsList),
|
|
2242
|
+
returnUrl: S.optional(S.String),
|
|
2243
|
+
reusable: S.optional(S.Boolean),
|
|
2244
|
+
riskData: S.optional(RiskData),
|
|
2245
|
+
shopperEmail: S.optional(S.String),
|
|
2246
|
+
shopperLocale: S.optional(S.String),
|
|
2247
|
+
shopperName: S.optional(ShopperName),
|
|
2248
|
+
shopperReference: S.optional(S.String),
|
|
2249
|
+
shopperStatement: S.optional(S.String),
|
|
2250
|
+
showRemovePaymentMethodButton: S.optional(S.Boolean),
|
|
2251
|
+
socialSecurityNumber: S.optional(S.String),
|
|
2252
|
+
splitCardFundingSources: S.optional(S.Boolean),
|
|
2253
|
+
splits: S.optional(CreatePaymentLinkRequestSplitsList),
|
|
2254
|
+
store: S.optional(S.String),
|
|
2255
|
+
storePaymentMethodMode: S.optional(CreatePaymentLinkRequestStorePaymentMethodMode),
|
|
2256
|
+
telephoneNumber: S.optional(S.String),
|
|
2257
|
+
themeId: S.optional(S.String),
|
|
2258
|
+
threeDS2RequestData: S.optional(CheckoutSessionThreeDS2RequestData),
|
|
2259
|
+
}).pipe(T.Http({ method: "POST", uri: "/paymentLinks", code: 200 }))).annotate({
|
|
2260
|
+
identifier: "CreatePaymentLinkRequest",
|
|
2261
|
+
});
|
|
2262
|
+
export const PaymentLinkResponseAllowedPaymentMethodsList =
|
|
2263
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2264
|
+
export const PaymentLinkResponseBlockedPaymentMethodsList =
|
|
2265
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2266
|
+
export const PaymentLinkResponseInstallmentOptionsMap = /*@__PURE__*/ S.Record(S.String, InstallmentOption);
|
|
2267
|
+
export const PaymentLinkResponseLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
2268
|
+
export const PaymentLinkResponseMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2269
|
+
export const PaymentLinkResponseRecurringProcessingModel =
|
|
2270
|
+
/*@__PURE__*/ S.String;
|
|
2271
|
+
export const PaymentLinkResponseRequiredShopperFieldsItem =
|
|
2272
|
+
/*@__PURE__*/ S.String;
|
|
2273
|
+
export const PaymentLinkResponseRequiredShopperFieldsList =
|
|
2274
|
+
/*@__PURE__*/ S.Array(PaymentLinkResponseRequiredShopperFieldsItem);
|
|
2275
|
+
export const PaymentLinkResponseSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
2276
|
+
export const PaymentLinkResponseStatus = /*@__PURE__*/ S.String;
|
|
2277
|
+
export const PaymentLinkResponseStorePaymentMethodMode = /*@__PURE__*/ S.String;
|
|
2278
|
+
export const PaymentLinkResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2279
|
+
allowedPaymentMethods: S.optional(PaymentLinkResponseAllowedPaymentMethodsList),
|
|
2280
|
+
amount: Amount,
|
|
2281
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
2282
|
+
billingAddress: S.optional(BillingAddress),
|
|
2283
|
+
blockedPaymentMethods: S.optional(PaymentLinkResponseBlockedPaymentMethodsList),
|
|
2284
|
+
captureDelayHours: S.optional(S.Number),
|
|
2285
|
+
countryCode: S.optional(S.String),
|
|
2286
|
+
dateOfBirth: S.optional(S.String),
|
|
2287
|
+
deliverAt: S.optional(S.String),
|
|
2288
|
+
deliveryAddress: S.optional(BillingAddress),
|
|
2289
|
+
description: S.optional(S.String),
|
|
2290
|
+
expiresAt: S.optional(S.String),
|
|
2291
|
+
fundOrigin: S.optional(FundOrigin),
|
|
2292
|
+
fundRecipient: S.optional(FundRecipient),
|
|
2293
|
+
id: S.String,
|
|
2294
|
+
installmentOptions: S.optional(PaymentLinkResponseInstallmentOptionsMap),
|
|
2295
|
+
lineItems: S.optional(PaymentLinkResponseLineItemsList),
|
|
2296
|
+
manualCapture: S.optional(S.Boolean),
|
|
2297
|
+
mcc: S.optional(S.String),
|
|
2298
|
+
merchantAccount: S.String,
|
|
2299
|
+
merchantOrderReference: S.optional(S.String),
|
|
2300
|
+
metadata: S.optional(PaymentLinkResponseMetadataMap),
|
|
2301
|
+
platformChargebackLogic: S.optional(PlatformChargebackLogic),
|
|
2302
|
+
recurringProcessingModel: S.optional(PaymentLinkResponseRecurringProcessingModel),
|
|
2303
|
+
reference: S.String,
|
|
2304
|
+
requiredShopperFields: S.optional(PaymentLinkResponseRequiredShopperFieldsList),
|
|
2305
|
+
returnUrl: S.optional(S.String),
|
|
2306
|
+
reusable: S.optional(S.Boolean),
|
|
2307
|
+
riskData: S.optional(RiskData),
|
|
2308
|
+
shopperEmail: S.optional(S.String),
|
|
2309
|
+
shopperLocale: S.optional(S.String),
|
|
2310
|
+
shopperName: S.optional(ShopperName),
|
|
2311
|
+
shopperReference: S.optional(S.String),
|
|
2312
|
+
shopperStatement: S.optional(S.String),
|
|
2313
|
+
showRemovePaymentMethodButton: S.optional(S.Boolean),
|
|
2314
|
+
socialSecurityNumber: S.optional(S.String),
|
|
2315
|
+
splitCardFundingSources: S.optional(S.Boolean),
|
|
2316
|
+
splits: S.optional(PaymentLinkResponseSplitsList),
|
|
2317
|
+
status: PaymentLinkResponseStatus,
|
|
2318
|
+
store: S.optional(S.String),
|
|
2319
|
+
storePaymentMethodMode: S.optional(PaymentLinkResponseStorePaymentMethodMode),
|
|
2320
|
+
telephoneNumber: S.optional(S.String),
|
|
2321
|
+
themeId: S.optional(S.String),
|
|
2322
|
+
threeDS2RequestData: S.optional(CheckoutSessionThreeDS2RequestData),
|
|
2323
|
+
updatedAt: S.optional(S.String),
|
|
2324
|
+
url: S.String,
|
|
2325
|
+
})).annotate({
|
|
2326
|
+
identifier: "PaymentLinkResponse",
|
|
2327
|
+
});
|
|
2328
|
+
export const CreatePaymentMethodRequestAdditionalDataMap =
|
|
2329
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
2330
|
+
export const CreatePaymentMethodRequestAllowedPaymentMethodsList =
|
|
2331
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2332
|
+
export const CreatePaymentMethodRequestBlockedPaymentMethodsList =
|
|
2333
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2334
|
+
export const CreatePaymentMethodRequestChannel = /*@__PURE__*/ S.String;
|
|
2335
|
+
export const CreatePaymentMethodRequestStoreFiltrationMode =
|
|
2336
|
+
/*@__PURE__*/ S.String;
|
|
2337
|
+
export const CreatePaymentMethodRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2338
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2339
|
+
additionalData: S.optional(CreatePaymentMethodRequestAdditionalDataMap),
|
|
2340
|
+
allowedPaymentMethods: S.optional(CreatePaymentMethodRequestAllowedPaymentMethodsList),
|
|
2341
|
+
amount: S.optional(Amount),
|
|
2342
|
+
blockedPaymentMethods: S.optional(CreatePaymentMethodRequestBlockedPaymentMethodsList),
|
|
2343
|
+
browserInfo: S.optional(BrowserInfo),
|
|
2344
|
+
channel: S.optional(CreatePaymentMethodRequestChannel),
|
|
2345
|
+
countryCode: S.optional(S.String),
|
|
2346
|
+
merchantAccount: S.String,
|
|
2347
|
+
order: S.optional(EncryptedOrderData),
|
|
2348
|
+
shopperConversionId: S.optional(S.String),
|
|
2349
|
+
shopperEmail: S.optional(S.String),
|
|
2350
|
+
shopperIP: S.optional(S.String),
|
|
2351
|
+
shopperLocale: S.optional(S.String),
|
|
2352
|
+
shopperReference: S.optional(S.String),
|
|
2353
|
+
splitCardFundingSources: S.optional(S.Boolean),
|
|
2354
|
+
store: S.optional(S.String),
|
|
2355
|
+
storeFiltrationMode: S.optional(CreatePaymentMethodRequestStoreFiltrationMode),
|
|
2356
|
+
telephoneNumber: S.optional(S.String),
|
|
2357
|
+
}).pipe(T.Http({ method: "POST", uri: "/paymentMethods", code: 200 }))).annotate({
|
|
2358
|
+
identifier: "CreatePaymentMethodRequest",
|
|
2359
|
+
});
|
|
2360
|
+
export const AppIdentifierInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2361
|
+
androidPackageId: S.optional(S.String),
|
|
2362
|
+
iosScheme: S.optional(S.String),
|
|
2363
|
+
})).annotate({
|
|
2364
|
+
identifier: "AppIdentifierInfo",
|
|
2365
|
+
});
|
|
2366
|
+
export const PaymentMethodUPIApps = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2367
|
+
appIdentifierInfo: S.optional(AppIdentifierInfo),
|
|
2368
|
+
id: S.String,
|
|
2369
|
+
name: S.String,
|
|
2370
|
+
})).annotate({
|
|
2371
|
+
identifier: "PaymentMethodUPIApps",
|
|
2372
|
+
});
|
|
2373
|
+
export const PaymentMethodAppsList = /*@__PURE__*/ S.Array(PaymentMethodUPIApps);
|
|
2374
|
+
export const PaymentMethodBrandsList = /*@__PURE__*/ S.Array(S.String);
|
|
2375
|
+
export const PaymentMethodConfigurationMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2376
|
+
export const PaymentMethodFundingSource = /*@__PURE__*/ S.String;
|
|
2377
|
+
export const PaymentMethodGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2378
|
+
name: S.optional(S.String),
|
|
2379
|
+
paymentMethodData: S.optional(S.String),
|
|
2380
|
+
type: S.optional(S.String),
|
|
2381
|
+
})).annotate({
|
|
2382
|
+
identifier: "PaymentMethodGroup",
|
|
2383
|
+
});
|
|
2384
|
+
export const InputDetailConfigurationMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2385
|
+
export const SubInputDetailConfigurationMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2386
|
+
export const Item = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2387
|
+
id: S.optional(S.String),
|
|
2388
|
+
name: S.optional(S.String),
|
|
2389
|
+
})).annotate({ identifier: "Item" });
|
|
2390
|
+
export const SubInputDetailItemsList = /*@__PURE__*/ S.Array(Item);
|
|
2391
|
+
export const SubInputDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2392
|
+
configuration: S.optional(SubInputDetailConfigurationMap),
|
|
2393
|
+
items: S.optional(SubInputDetailItemsList),
|
|
2394
|
+
key: S.optional(S.String),
|
|
2395
|
+
optional: S.optional(S.Boolean),
|
|
2396
|
+
type: S.optional(S.String),
|
|
2397
|
+
value: S.optional(S.String),
|
|
2398
|
+
})).annotate({ identifier: "SubInputDetail" });
|
|
2399
|
+
export const InputDetailDetailsList = /*@__PURE__*/ S.Array(SubInputDetail);
|
|
2400
|
+
export const InputDetailInputDetailsList = /*@__PURE__*/ S.Array(SubInputDetail);
|
|
2401
|
+
export const InputDetailItemsList = /*@__PURE__*/ S.Array(Item);
|
|
2402
|
+
export const InputDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2403
|
+
configuration: S.optional(InputDetailConfigurationMap),
|
|
2404
|
+
details: S.optional(InputDetailDetailsList),
|
|
2405
|
+
inputDetails: S.optional(InputDetailInputDetailsList),
|
|
2406
|
+
itemSearchUrl: S.optional(S.String),
|
|
2407
|
+
items: S.optional(InputDetailItemsList),
|
|
2408
|
+
key: S.optional(S.String),
|
|
2409
|
+
optional: S.optional(S.Boolean),
|
|
2410
|
+
type: S.optional(S.String),
|
|
2411
|
+
value: S.optional(S.String),
|
|
2412
|
+
})).annotate({ identifier: "InputDetail" });
|
|
2413
|
+
export const PaymentMethodInputDetailsList = /*@__PURE__*/ S.Array(InputDetail);
|
|
2414
|
+
export const PaymentMethodIssuer = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2415
|
+
disabled: S.optional(S.Boolean),
|
|
2416
|
+
id: S.String,
|
|
2417
|
+
name: S.String,
|
|
2418
|
+
})).annotate({
|
|
2419
|
+
identifier: "PaymentMethodIssuer",
|
|
2420
|
+
});
|
|
2421
|
+
export const PaymentMethodIssuersList = /*@__PURE__*/ S.Array(PaymentMethodIssuer);
|
|
2422
|
+
export const PaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2423
|
+
apps: S.optional(PaymentMethodAppsList),
|
|
2424
|
+
brand: S.optional(S.String),
|
|
2425
|
+
brands: S.optional(PaymentMethodBrandsList),
|
|
2426
|
+
configuration: S.optional(PaymentMethodConfigurationMap),
|
|
2427
|
+
fundingSource: S.optional(PaymentMethodFundingSource),
|
|
2428
|
+
group: S.optional(PaymentMethodGroup),
|
|
2429
|
+
inputDetails: S.optional(PaymentMethodInputDetailsList),
|
|
2430
|
+
issuers: S.optional(PaymentMethodIssuersList),
|
|
2431
|
+
name: S.optional(S.String),
|
|
2432
|
+
promoted: S.optional(S.Boolean),
|
|
2433
|
+
type: S.optional(S.String),
|
|
2434
|
+
})).annotate({ identifier: "PaymentMethod" });
|
|
2435
|
+
export const PaymentMethodsResponsePaymentMethodsList = /*@__PURE__*/ S.Array(PaymentMethod);
|
|
2436
|
+
export const StoredPaymentMethodSupportedRecurringProcessingModelsList =
|
|
2437
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2438
|
+
export const StoredPaymentMethodSupportedShopperInteractionsList =
|
|
2439
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2440
|
+
export const StoredPaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2441
|
+
bankAccountNumber: S.optional(S.String),
|
|
2442
|
+
bankLocationId: S.optional(S.String),
|
|
2443
|
+
brand: S.optional(S.String),
|
|
2444
|
+
cashtag: S.optional(S.String),
|
|
2445
|
+
expiryMonth: S.optional(S.String),
|
|
2446
|
+
expiryYear: S.optional(S.String),
|
|
2447
|
+
externalToken: S.optional(S.String),
|
|
2448
|
+
holderName: S.optional(S.String),
|
|
2449
|
+
iban: S.optional(S.String),
|
|
2450
|
+
id: S.optional(S.String),
|
|
2451
|
+
label: S.optional(S.String),
|
|
2452
|
+
lastFour: S.optional(S.String),
|
|
2453
|
+
name: S.optional(S.String),
|
|
2454
|
+
networkTxReference: S.optional(S.String),
|
|
2455
|
+
ownerName: S.optional(S.String),
|
|
2456
|
+
shopperEmail: S.optional(S.String),
|
|
2457
|
+
supportedRecurringProcessingModels: S.optional(StoredPaymentMethodSupportedRecurringProcessingModelsList),
|
|
2458
|
+
supportedShopperInteractions: S.optional(StoredPaymentMethodSupportedShopperInteractionsList),
|
|
2459
|
+
type: S.optional(S.String),
|
|
2460
|
+
})).annotate({
|
|
2461
|
+
identifier: "StoredPaymentMethod",
|
|
2462
|
+
});
|
|
2463
|
+
export const PaymentMethodsResponseStoredPaymentMethodsList =
|
|
2464
|
+
/*@__PURE__*/ S.Array(StoredPaymentMethod);
|
|
2465
|
+
export const PaymentMethodsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2466
|
+
paymentMethods: S.optional(PaymentMethodsResponsePaymentMethodsList),
|
|
2467
|
+
storedPaymentMethods: S.optional(PaymentMethodsResponseStoredPaymentMethodsList),
|
|
2468
|
+
})).annotate({
|
|
2469
|
+
identifier: "PaymentMethodsResponse",
|
|
2470
|
+
});
|
|
2471
|
+
export const CreatePaymentMethodsBalanceRequestAdditionalDataMap =
|
|
2472
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
2473
|
+
export const CreatePaymentMethodsBalanceRequestLocalizedShopperStatementMap =
|
|
2474
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
2475
|
+
export const CreatePaymentMethodsBalanceRequestMetadataMap =
|
|
2476
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
2477
|
+
export const CreatePaymentMethodsBalanceRequestPaymentMethodMap =
|
|
2478
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
2479
|
+
export const RecurringContract = /*@__PURE__*/ S.String;
|
|
2480
|
+
export const RecurringTokenService = /*@__PURE__*/ S.String;
|
|
2481
|
+
export const Recurring = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2482
|
+
contract: S.optional(RecurringContract),
|
|
2483
|
+
recurringDetailName: S.optional(S.String),
|
|
2484
|
+
recurringExpiry: S.optional(S.String),
|
|
2485
|
+
recurringFrequency: S.optional(S.String),
|
|
2486
|
+
tokenService: S.optional(RecurringTokenService),
|
|
2487
|
+
})).annotate({ identifier: "Recurring" });
|
|
2488
|
+
export const CreatePaymentMethodsBalanceRequestRecurringProcessingModel =
|
|
2489
|
+
/*@__PURE__*/ S.String;
|
|
2490
|
+
export const CreatePaymentMethodsBalanceRequestShopperInteraction =
|
|
2491
|
+
/*@__PURE__*/ S.String;
|
|
2492
|
+
export const CreatePaymentMethodsBalanceRequestSplitsList =
|
|
2493
|
+
/*@__PURE__*/ S.Array(Split);
|
|
2494
|
+
export const ThreeDS2RequestDataAcctType = /*@__PURE__*/ S.String;
|
|
2495
|
+
export const ThreeDS2RequestDataAddrMatch = /*@__PURE__*/ S.String;
|
|
2496
|
+
export const ThreeDS2RequestDataChallengeIndicator = /*@__PURE__*/ S.String;
|
|
2497
|
+
export const ThreeDS2RequestDataThreeDSRequestorChallengeInd =
|
|
2498
|
+
/*@__PURE__*/ S.String;
|
|
2499
|
+
export const ThreeDS2RequestDataTransType = /*@__PURE__*/ S.String;
|
|
2500
|
+
export const ThreeDS2RequestDataTransactionType = /*@__PURE__*/ S.String;
|
|
2501
|
+
export const ThreeDS2RequestData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2502
|
+
acctInfo: S.optional(AcctInfo),
|
|
2503
|
+
acctType: S.optional(ThreeDS2RequestDataAcctType),
|
|
2504
|
+
acquirerBIN: S.optional(S.String),
|
|
2505
|
+
acquirerMerchantID: S.optional(S.String),
|
|
2506
|
+
addrMatch: S.optional(ThreeDS2RequestDataAddrMatch),
|
|
2507
|
+
authenticationOnly: S.optional(S.Boolean),
|
|
2508
|
+
challengeIndicator: S.optional(ThreeDS2RequestDataChallengeIndicator),
|
|
2509
|
+
deviceChannel: S.String,
|
|
2510
|
+
deviceRenderOptions: S.optional(DeviceRenderOptions),
|
|
2511
|
+
homePhone: S.optional(Phone),
|
|
2512
|
+
mcc: S.optional(S.String),
|
|
2513
|
+
merchantName: S.optional(S.String),
|
|
2514
|
+
messageVersion: S.optional(S.String),
|
|
2515
|
+
mobilePhone: S.optional(Phone),
|
|
2516
|
+
notificationURL: S.optional(S.String),
|
|
2517
|
+
payTokenInd: S.optional(S.Boolean),
|
|
2518
|
+
paymentAuthenticationUseCase: S.optional(S.String),
|
|
2519
|
+
purchaseInstalData: S.optional(S.String),
|
|
2520
|
+
recurringExpiry: S.optional(S.String),
|
|
2521
|
+
recurringFrequency: S.optional(S.String),
|
|
2522
|
+
sdkAppID: S.optional(S.String),
|
|
2523
|
+
sdkEncData: S.optional(S.String),
|
|
2524
|
+
sdkEphemPubKey: S.optional(SDKEphemPubKey),
|
|
2525
|
+
sdkMaxTimeout: S.optional(S.Number),
|
|
2526
|
+
sdkReferenceNumber: S.optional(S.String),
|
|
2527
|
+
sdkTransID: S.optional(S.String),
|
|
2528
|
+
sdkVersion: S.optional(S.String),
|
|
2529
|
+
threeDSCompInd: S.optional(S.String),
|
|
2530
|
+
threeDSRequestorAuthenticationInd: S.optional(S.String),
|
|
2531
|
+
threeDSRequestorAuthenticationInfo: S.optional(ThreeDSRequestorAuthenticationInfo),
|
|
2532
|
+
threeDSRequestorChallengeInd: S.optional(ThreeDS2RequestDataThreeDSRequestorChallengeInd),
|
|
2533
|
+
threeDSRequestorID: S.optional(S.String),
|
|
2534
|
+
threeDSRequestorName: S.optional(S.String),
|
|
2535
|
+
threeDSRequestorPriorAuthenticationInfo: S.optional(ThreeDSRequestorPriorAuthenticationInfo),
|
|
2536
|
+
threeDSRequestorURL: S.optional(S.String),
|
|
2537
|
+
transType: S.optional(ThreeDS2RequestDataTransType),
|
|
2538
|
+
transactionType: S.optional(ThreeDS2RequestDataTransactionType),
|
|
2539
|
+
whiteListStatus: S.optional(S.String),
|
|
2540
|
+
workPhone: S.optional(Phone),
|
|
2541
|
+
})).annotate({
|
|
2542
|
+
identifier: "ThreeDS2RequestData",
|
|
2543
|
+
});
|
|
2544
|
+
export const CreatePaymentMethodsBalanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2545
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2546
|
+
accountInfo: S.optional(AccountInfo),
|
|
2547
|
+
additionalAmount: S.optional(Amount),
|
|
2548
|
+
additionalData: S.optional(CreatePaymentMethodsBalanceRequestAdditionalDataMap),
|
|
2549
|
+
amount: Amount,
|
|
2550
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
2551
|
+
billingAddress: S.optional(BillingAddress),
|
|
2552
|
+
browserInfo: S.optional(BrowserInfo),
|
|
2553
|
+
captureDelayHours: S.optional(S.Number),
|
|
2554
|
+
dateOfBirth: S.optional(S.String),
|
|
2555
|
+
dccQuote: S.optional(ForexQuote),
|
|
2556
|
+
deliveryAddress: S.optional(BillingAddress),
|
|
2557
|
+
deliveryDate: S.optional(S.String),
|
|
2558
|
+
deviceFingerprint: S.optional(S.String),
|
|
2559
|
+
fraudOffset: S.optional(S.Number),
|
|
2560
|
+
installments: S.optional(Installments),
|
|
2561
|
+
localizedShopperStatement: S.optional(CreatePaymentMethodsBalanceRequestLocalizedShopperStatementMap),
|
|
2562
|
+
mcc: S.optional(S.String),
|
|
2563
|
+
merchantAccount: S.String,
|
|
2564
|
+
merchantOrderReference: S.optional(S.String),
|
|
2565
|
+
merchantRiskIndicator: S.optional(MerchantRiskIndicator),
|
|
2566
|
+
metadata: S.optional(CreatePaymentMethodsBalanceRequestMetadataMap),
|
|
2567
|
+
orderReference: S.optional(S.String),
|
|
2568
|
+
paymentMethod: CreatePaymentMethodsBalanceRequestPaymentMethodMap,
|
|
2569
|
+
recurring: S.optional(Recurring),
|
|
2570
|
+
recurringProcessingModel: S.optional(CreatePaymentMethodsBalanceRequestRecurringProcessingModel),
|
|
2571
|
+
reference: S.optional(S.String),
|
|
2572
|
+
selectedBrand: S.optional(S.String),
|
|
2573
|
+
selectedRecurringDetailReference: S.optional(S.String),
|
|
2574
|
+
sessionId: S.optional(S.String),
|
|
2575
|
+
shopperEmail: S.optional(S.String),
|
|
2576
|
+
shopperIP: S.optional(S.String),
|
|
2577
|
+
shopperInteraction: S.optional(CreatePaymentMethodsBalanceRequestShopperInteraction),
|
|
2578
|
+
shopperLocale: S.optional(S.String),
|
|
2579
|
+
shopperName: S.optional(ShopperName),
|
|
2580
|
+
shopperReference: S.optional(S.String),
|
|
2581
|
+
shopperStatement: S.optional(S.String),
|
|
2582
|
+
socialSecurityNumber: S.optional(S.String),
|
|
2583
|
+
splits: S.optional(CreatePaymentMethodsBalanceRequestSplitsList),
|
|
2584
|
+
store: S.optional(S.String),
|
|
2585
|
+
telephoneNumber: S.optional(S.String),
|
|
2586
|
+
threeDS2RequestData: S.optional(ThreeDS2RequestData),
|
|
2587
|
+
threeDSAuthenticationOnly: S.optional(S.Boolean),
|
|
2588
|
+
totalsGroup: S.optional(S.String),
|
|
2589
|
+
trustedShopper: S.optional(S.Boolean),
|
|
2590
|
+
}).pipe(T.Http({ method: "POST", uri: "/paymentMethods/balance", code: 200 }))).annotate({
|
|
2591
|
+
identifier: "CreatePaymentMethodsBalanceRequest",
|
|
2592
|
+
});
|
|
2593
|
+
export const BalanceCheckResponseAdditionalDataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2594
|
+
export const BalanceCheckResponseResultCode = /*@__PURE__*/ S.String;
|
|
2595
|
+
export const BalanceCheckResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2596
|
+
additionalData: S.optional(BalanceCheckResponseAdditionalDataMap),
|
|
2597
|
+
balance: Amount,
|
|
2598
|
+
fraudResult: S.optional(FraudResult),
|
|
2599
|
+
pspReference: S.optional(S.String),
|
|
2600
|
+
refusalReason: S.optional(S.String),
|
|
2601
|
+
resultCode: BalanceCheckResponseResultCode,
|
|
2602
|
+
transactionLimit: S.optional(Amount),
|
|
2603
|
+
})).annotate({
|
|
2604
|
+
identifier: "BalanceCheckResponse",
|
|
2605
|
+
});
|
|
2606
|
+
export const CreatePaymentRefundRequestLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
2607
|
+
export const CreatePaymentRefundRequestMerchantRefundReason =
|
|
2608
|
+
/*@__PURE__*/ S.String;
|
|
2609
|
+
export const CreatePaymentRefundRequestSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
2610
|
+
export const CreatePaymentRefundRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2611
|
+
paymentPspReference: S.String.pipe(T.Label()),
|
|
2612
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2613
|
+
amount: Amount,
|
|
2614
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
2615
|
+
capturePspReference: S.optional(S.String),
|
|
2616
|
+
enhancedSchemeData: S.optional(EnhancedSchemeData),
|
|
2617
|
+
lineItems: S.optional(CreatePaymentRefundRequestLineItemsList),
|
|
2618
|
+
merchantAccount: S.String,
|
|
2619
|
+
merchantRefundReason: S.optional(S.NullOr(CreatePaymentRefundRequestMerchantRefundReason)),
|
|
2620
|
+
reference: S.optional(S.String),
|
|
2621
|
+
splits: S.optional(CreatePaymentRefundRequestSplitsList),
|
|
2622
|
+
store: S.optional(S.String),
|
|
2623
|
+
}).pipe(T.Http({
|
|
2624
|
+
method: "POST",
|
|
2625
|
+
uri: "/payments/{paymentPspReference}/refunds",
|
|
2626
|
+
code: 200,
|
|
2627
|
+
}))).annotate({
|
|
2628
|
+
identifier: "CreatePaymentRefundRequest",
|
|
2629
|
+
});
|
|
2630
|
+
export const PaymentRefundResponseLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
2631
|
+
export const PaymentRefundResponseMerchantRefundReason = /*@__PURE__*/ S.String;
|
|
2632
|
+
export const PaymentRefundResponseSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
2633
|
+
export const PaymentRefundResponseStatus = /*@__PURE__*/ S.String;
|
|
2634
|
+
export const PaymentRefundResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2635
|
+
amount: Amount,
|
|
2636
|
+
capturePspReference: S.optional(S.String),
|
|
2637
|
+
lineItems: S.optional(PaymentRefundResponseLineItemsList),
|
|
2638
|
+
merchantAccount: S.String,
|
|
2639
|
+
merchantRefundReason: S.optional(S.NullOr(PaymentRefundResponseMerchantRefundReason)),
|
|
2640
|
+
paymentPspReference: S.String,
|
|
2641
|
+
pspReference: S.String,
|
|
2642
|
+
reference: S.optional(S.String),
|
|
2643
|
+
splits: S.optional(PaymentRefundResponseSplitsList),
|
|
2644
|
+
status: PaymentRefundResponseStatus,
|
|
2645
|
+
store: S.optional(S.String),
|
|
2646
|
+
})).annotate({
|
|
2647
|
+
identifier: "PaymentRefundResponse",
|
|
2648
|
+
});
|
|
2649
|
+
export const CreatePaymentReversalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2650
|
+
paymentPspReference: S.String.pipe(T.Label()),
|
|
2651
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2652
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
2653
|
+
merchantAccount: S.String,
|
|
2654
|
+
reference: S.optional(S.String),
|
|
2655
|
+
}).pipe(T.Http({
|
|
2656
|
+
method: "POST",
|
|
2657
|
+
uri: "/payments/{paymentPspReference}/reversals",
|
|
2658
|
+
code: 200,
|
|
2659
|
+
}))).annotate({
|
|
2660
|
+
identifier: "CreatePaymentReversalRequest",
|
|
2661
|
+
});
|
|
2662
|
+
export const PaymentReversalResponseStatus = /*@__PURE__*/ S.String;
|
|
2663
|
+
export const PaymentReversalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2664
|
+
merchantAccount: S.String,
|
|
2665
|
+
paymentPspReference: S.String,
|
|
2666
|
+
pspReference: S.String,
|
|
2667
|
+
reference: S.optional(S.String),
|
|
2668
|
+
status: PaymentReversalResponseStatus,
|
|
2669
|
+
})).annotate({
|
|
2670
|
+
identifier: "PaymentReversalResponse",
|
|
2671
|
+
});
|
|
2672
|
+
export const DetailsRequestAuthenticationData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2673
|
+
authenticationOnly: S.optional(S.Boolean),
|
|
2674
|
+
})).annotate({
|
|
2675
|
+
identifier: "DetailsRequestAuthenticationData",
|
|
2676
|
+
});
|
|
2677
|
+
export const PaymentCompletionDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2678
|
+
MD: S.optional(S.String),
|
|
2679
|
+
PaReq: S.optional(S.String),
|
|
2680
|
+
PaRes: S.optional(S.String),
|
|
2681
|
+
authorization_token: S.optional(S.String),
|
|
2682
|
+
billingToken: S.optional(S.String),
|
|
2683
|
+
cupsecureplus_smscode: S.optional(S.String.pipe(T.Body("cupsecureplus.smscode"))),
|
|
2684
|
+
facilitatorAccessToken: S.optional(S.String),
|
|
2685
|
+
oneTimePasscode: S.optional(S.String),
|
|
2686
|
+
orderID: S.optional(S.String),
|
|
2687
|
+
payerID: S.optional(S.String),
|
|
2688
|
+
payload: S.optional(S.String),
|
|
2689
|
+
paymentID: S.optional(S.String),
|
|
2690
|
+
paymentStatus: S.optional(S.String),
|
|
2691
|
+
redirectResult: S.optional(S.String),
|
|
2692
|
+
resultCode: S.optional(S.String),
|
|
2693
|
+
returnUrlQueryString: S.optional(S.String),
|
|
2694
|
+
threeDSResult: S.optional(S.String),
|
|
2695
|
+
threeds2_challengeResult: S.optional(S.String.pipe(T.Body("threeds2.challengeResult"))),
|
|
2696
|
+
threeds2_fingerprint: S.optional(S.String.pipe(T.Body("threeds2.fingerprint"))),
|
|
2697
|
+
vaultToken: S.optional(S.String),
|
|
2698
|
+
})).annotate({
|
|
2699
|
+
identifier: "PaymentCompletionDetails",
|
|
2700
|
+
});
|
|
2701
|
+
export const CreatePaymentsDetailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2702
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2703
|
+
authenticationData: S.optional(DetailsRequestAuthenticationData),
|
|
2704
|
+
details: PaymentCompletionDetails,
|
|
2705
|
+
paymentData: S.optional(S.String),
|
|
2706
|
+
threeDSAuthenticationOnly: S.optional(S.Boolean),
|
|
2707
|
+
}).pipe(T.Http({ method: "POST", uri: "/payments/details", code: 200 }))).annotate({
|
|
2708
|
+
identifier: "CreatePaymentsDetailRequest",
|
|
2709
|
+
});
|
|
2710
|
+
export const PaymentDetailsResponseAdditionalDataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2711
|
+
export const PaymentDetailsResponseResultCode = /*@__PURE__*/ S.String;
|
|
2712
|
+
export const PaymentDetailsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2713
|
+
action: S.optional(CheckoutThreeDS2Action),
|
|
2714
|
+
additionalData: S.optional(PaymentDetailsResponseAdditionalDataMap),
|
|
2715
|
+
amount: S.optional(Amount),
|
|
2716
|
+
donationToken: S.optional(S.String),
|
|
2717
|
+
fraudResult: S.optional(FraudResult),
|
|
2718
|
+
merchantReference: S.optional(S.String),
|
|
2719
|
+
order: S.optional(CheckoutOrderResponse),
|
|
2720
|
+
paymentMethod: S.optional(ResponsePaymentMethod),
|
|
2721
|
+
paymentValidations: S.optional(PaymentValidationsResponse),
|
|
2722
|
+
pspReference: S.optional(S.String),
|
|
2723
|
+
refusalReason: S.optional(S.String),
|
|
2724
|
+
refusalReasonCode: S.optional(S.String),
|
|
2725
|
+
resultCode: S.optional(PaymentDetailsResponseResultCode),
|
|
2726
|
+
shopperLocale: S.optional(S.String),
|
|
2727
|
+
threeDS2ResponseData: S.optional(ThreeDS2ResponseData),
|
|
2728
|
+
threeDS2Result: S.optional(ThreeDS2Result),
|
|
2729
|
+
threeDSPaymentData: S.optional(S.String),
|
|
2730
|
+
})).annotate({
|
|
2731
|
+
identifier: "PaymentDetailsResponse",
|
|
2732
|
+
});
|
|
2733
|
+
export const DeliveryMethodType = /*@__PURE__*/ S.String;
|
|
2734
|
+
export const DeliveryMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2735
|
+
amount: S.optional(Amount),
|
|
2736
|
+
description: S.optional(S.String),
|
|
2737
|
+
reference: S.optional(S.String),
|
|
2738
|
+
selected: S.optional(S.Boolean),
|
|
2739
|
+
type: S.optional(DeliveryMethodType),
|
|
2740
|
+
})).annotate({ identifier: "DeliveryMethod" });
|
|
2741
|
+
export const CreatePaypalUpdateOrderRequestDeliveryMethodsList =
|
|
2742
|
+
/*@__PURE__*/ S.Array(DeliveryMethod);
|
|
2743
|
+
export const TaxTotal = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2744
|
+
amount: S.optional(Amount),
|
|
2745
|
+
})).annotate({ identifier: "TaxTotal" });
|
|
2746
|
+
export const CreatePaypalUpdateOrderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2747
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2748
|
+
amount: S.optional(Amount),
|
|
2749
|
+
deliveryAddress: S.optional(DeliveryAddress),
|
|
2750
|
+
deliveryMethods: S.optional(CreatePaypalUpdateOrderRequestDeliveryMethodsList),
|
|
2751
|
+
discountAmount: S.optional(Amount),
|
|
2752
|
+
paymentData: S.optional(S.String),
|
|
2753
|
+
pspReference: S.optional(S.String),
|
|
2754
|
+
sessionId: S.optional(S.String),
|
|
2755
|
+
shippingAmount: S.optional(Amount),
|
|
2756
|
+
taxTotal: S.optional(TaxTotal),
|
|
2757
|
+
}).pipe(T.Http({ method: "POST", uri: "/paypal/updateOrder", code: 200 }))).annotate({
|
|
2758
|
+
identifier: "CreatePaypalUpdateOrderRequest",
|
|
2759
|
+
});
|
|
2760
|
+
export const PaypalUpdateOrderResponseStatus = /*@__PURE__*/ S.String;
|
|
2761
|
+
export const PaypalUpdateOrderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2762
|
+
paymentData: S.String,
|
|
2763
|
+
status: PaypalUpdateOrderResponseStatus,
|
|
2764
|
+
})).annotate({
|
|
2765
|
+
identifier: "PaypalUpdateOrderResponse",
|
|
2766
|
+
});
|
|
2767
|
+
export const CreateSessionRequestAdditionalDataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2768
|
+
export const CreateSessionRequestAllowedPaymentMethodsList =
|
|
2769
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2770
|
+
export const CreateSessionRequestBlockedPaymentMethodsList =
|
|
2771
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2772
|
+
export const CreateSessionRequestChannel = /*@__PURE__*/ S.String;
|
|
2773
|
+
export const CheckoutSessionInstallmentOptionPlansItem = /*@__PURE__*/ S.String;
|
|
2774
|
+
export const CheckoutSessionInstallmentOptionPlansList = /*@__PURE__*/ S.Array(CheckoutSessionInstallmentOptionPlansItem);
|
|
2775
|
+
export const CheckoutSessionInstallmentOptionValuesList = /*@__PURE__*/ S.Array(S.Number);
|
|
2776
|
+
export const CheckoutSessionInstallmentOption = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2777
|
+
plans: S.optional(CheckoutSessionInstallmentOptionPlansList),
|
|
2778
|
+
preselectedValue: S.optional(S.Number),
|
|
2779
|
+
values: S.optional(CheckoutSessionInstallmentOptionValuesList),
|
|
2780
|
+
})).annotate({
|
|
2781
|
+
identifier: "CheckoutSessionInstallmentOption",
|
|
2782
|
+
});
|
|
2783
|
+
export const CreateSessionRequestInstallmentOptionsMap = /*@__PURE__*/ S.Record(S.String, CheckoutSessionInstallmentOption);
|
|
2784
|
+
export const CreateSessionRequestLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
2785
|
+
export const CreateSessionRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2786
|
+
export const CreateSessionRequestMode = /*@__PURE__*/ S.String;
|
|
2787
|
+
export const CreateSessionRequestRecurringProcessingModel =
|
|
2788
|
+
/*@__PURE__*/ S.String;
|
|
2789
|
+
export const CreateSessionRequestShopperInteraction = /*@__PURE__*/ S.String;
|
|
2790
|
+
export const CreateSessionRequestSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
2791
|
+
export const CreateSessionRequestStoreFiltrationMode = /*@__PURE__*/ S.String;
|
|
2792
|
+
export const CreateSessionRequestStorePaymentMethodMode =
|
|
2793
|
+
/*@__PURE__*/ S.String;
|
|
2794
|
+
export const CreateSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2795
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2796
|
+
accountInfo: S.optional(AccountInfo),
|
|
2797
|
+
additionalAmount: S.optional(Amount),
|
|
2798
|
+
additionalData: S.optional(CreateSessionRequestAdditionalDataMap),
|
|
2799
|
+
allowedPaymentMethods: S.optional(CreateSessionRequestAllowedPaymentMethodsList),
|
|
2800
|
+
amount: Amount,
|
|
2801
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
2802
|
+
authenticationData: S.optional(AuthenticationData),
|
|
2803
|
+
billingAddress: S.optional(BillingAddress),
|
|
2804
|
+
blockedPaymentMethods: S.optional(CreateSessionRequestBlockedPaymentMethodsList),
|
|
2805
|
+
captureDelayHours: S.optional(S.Number),
|
|
2806
|
+
channel: S.optional(CreateSessionRequestChannel),
|
|
2807
|
+
company: S.optional(Company),
|
|
2808
|
+
countryCode: S.optional(S.String),
|
|
2809
|
+
dateOfBirth: S.optional(S.String),
|
|
2810
|
+
deliverAt: S.optional(S.String),
|
|
2811
|
+
deliveryAddress: S.optional(DeliveryAddress),
|
|
2812
|
+
enableOneClick: S.optional(S.Boolean),
|
|
2813
|
+
enablePayOut: S.optional(S.Boolean),
|
|
2814
|
+
enableRecurring: S.optional(S.Boolean),
|
|
2815
|
+
expiresAt: S.optional(S.String),
|
|
2816
|
+
fundOrigin: S.optional(FundOrigin),
|
|
2817
|
+
fundRecipient: S.optional(FundRecipient),
|
|
2818
|
+
installmentOptions: S.optional(CreateSessionRequestInstallmentOptionsMap),
|
|
2819
|
+
lineItems: S.optional(CreateSessionRequestLineItemsList),
|
|
2820
|
+
mandate: S.optional(Mandate),
|
|
2821
|
+
mcc: S.optional(S.String),
|
|
2822
|
+
merchantAccount: S.String,
|
|
2823
|
+
merchantOrderReference: S.optional(S.String),
|
|
2824
|
+
metadata: S.optional(CreateSessionRequestMetadataMap),
|
|
2825
|
+
mode: S.optional(CreateSessionRequestMode),
|
|
2826
|
+
mpiData: S.optional(ThreeDSecureData),
|
|
2827
|
+
platformChargebackLogic: S.optional(PlatformChargebackLogic),
|
|
2828
|
+
recurringExpiry: S.optional(S.String),
|
|
2829
|
+
recurringFrequency: S.optional(S.String),
|
|
2830
|
+
recurringProcessingModel: S.optional(CreateSessionRequestRecurringProcessingModel),
|
|
2831
|
+
redirectFromIssuerMethod: S.optional(S.String),
|
|
2832
|
+
redirectToIssuerMethod: S.optional(S.String),
|
|
2833
|
+
reference: S.String,
|
|
2834
|
+
returnUrl: S.String,
|
|
2835
|
+
riskData: S.optional(RiskData),
|
|
2836
|
+
shopperConversionId: S.optional(S.String),
|
|
2837
|
+
shopperEmail: S.optional(S.String),
|
|
2838
|
+
shopperIP: S.optional(S.String),
|
|
2839
|
+
shopperInteraction: S.optional(CreateSessionRequestShopperInteraction),
|
|
2840
|
+
shopperLocale: S.optional(S.String),
|
|
2841
|
+
shopperName: S.optional(ShopperName),
|
|
2842
|
+
shopperReference: S.optional(S.String),
|
|
2843
|
+
shopperStatement: S.optional(S.String),
|
|
2844
|
+
showInstallmentAmount: S.optional(S.Boolean),
|
|
2845
|
+
showRemovePaymentMethodButton: S.optional(S.Boolean),
|
|
2846
|
+
socialSecurityNumber: S.optional(S.String),
|
|
2847
|
+
splitCardFundingSources: S.optional(S.Boolean),
|
|
2848
|
+
splits: S.optional(CreateSessionRequestSplitsList),
|
|
2849
|
+
store: S.optional(S.String),
|
|
2850
|
+
storeFiltrationMode: S.optional(CreateSessionRequestStoreFiltrationMode),
|
|
2851
|
+
storePaymentMethod: S.optional(S.Boolean),
|
|
2852
|
+
storePaymentMethodMode: S.optional(CreateSessionRequestStorePaymentMethodMode),
|
|
2853
|
+
telephoneNumber: S.optional(S.String),
|
|
2854
|
+
themeId: S.optional(S.String),
|
|
2855
|
+
thirdPartyTokenRedundancyInfo: S.optional(ThirdPartyTokenRedundancyInfo),
|
|
2856
|
+
threeDS2RequestData: S.optional(CheckoutSessionThreeDS2RequestData),
|
|
2857
|
+
threeDSAuthenticationOnly: S.optional(S.Boolean),
|
|
2858
|
+
trustedShopper: S.optional(S.Boolean),
|
|
2859
|
+
}).pipe(T.Http({ method: "POST", uri: "/sessions", code: 200 }))).annotate({
|
|
2860
|
+
identifier: "CreateSessionRequest",
|
|
2861
|
+
});
|
|
2862
|
+
export const CreateCheckoutSessionResponseAdditionalDataMap =
|
|
2863
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
2864
|
+
export const CreateCheckoutSessionResponseAllowedPaymentMethodsList =
|
|
2865
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2866
|
+
export const CreateCheckoutSessionResponseBlockedPaymentMethodsList =
|
|
2867
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2868
|
+
export const CreateCheckoutSessionResponseChannel = /*@__PURE__*/ S.String;
|
|
2869
|
+
export const CreateCheckoutSessionResponseInstallmentOptionsMap =
|
|
2870
|
+
/*@__PURE__*/ S.Record(S.String, CheckoutSessionInstallmentOption);
|
|
2871
|
+
export const CreateCheckoutSessionResponseLineItemsList = /*@__PURE__*/ S.Array(LineItem);
|
|
2872
|
+
export const CreateCheckoutSessionResponseMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2873
|
+
export const CreateCheckoutSessionResponseMode = /*@__PURE__*/ S.String;
|
|
2874
|
+
export const CreateCheckoutSessionResponseRecurringProcessingModel =
|
|
2875
|
+
/*@__PURE__*/ S.String;
|
|
2876
|
+
export const CreateCheckoutSessionResponseShopperInteraction =
|
|
2877
|
+
/*@__PURE__*/ S.String;
|
|
2878
|
+
export const CreateCheckoutSessionResponseSplitsList = /*@__PURE__*/ S.Array(Split);
|
|
2879
|
+
export const CreateCheckoutSessionResponseStoreFiltrationMode =
|
|
2880
|
+
/*@__PURE__*/ S.String;
|
|
2881
|
+
export const CreateCheckoutSessionResponseStorePaymentMethodMode =
|
|
2882
|
+
/*@__PURE__*/ S.String;
|
|
2883
|
+
export const CreateCheckoutSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2884
|
+
accountInfo: S.optional(AccountInfo),
|
|
2885
|
+
additionalAmount: S.optional(Amount),
|
|
2886
|
+
additionalData: S.optional(CreateCheckoutSessionResponseAdditionalDataMap),
|
|
2887
|
+
allowedPaymentMethods: S.optional(CreateCheckoutSessionResponseAllowedPaymentMethodsList),
|
|
2888
|
+
amount: Amount,
|
|
2889
|
+
applicationInfo: S.optional(ApplicationInfo),
|
|
2890
|
+
authenticationData: S.optional(AuthenticationData),
|
|
2891
|
+
billingAddress: S.optional(BillingAddress),
|
|
2892
|
+
blockedPaymentMethods: S.optional(CreateCheckoutSessionResponseBlockedPaymentMethodsList),
|
|
2893
|
+
captureDelayHours: S.optional(S.Number),
|
|
2894
|
+
channel: S.optional(CreateCheckoutSessionResponseChannel),
|
|
2895
|
+
company: S.optional(Company),
|
|
2896
|
+
countryCode: S.optional(S.String),
|
|
2897
|
+
dateOfBirth: S.optional(S.String),
|
|
2898
|
+
deliverAt: S.optional(S.String),
|
|
2899
|
+
deliveryAddress: S.optional(DeliveryAddress),
|
|
2900
|
+
enableOneClick: S.optional(S.Boolean),
|
|
2901
|
+
enablePayOut: S.optional(S.Boolean),
|
|
2902
|
+
enableRecurring: S.optional(S.Boolean),
|
|
2903
|
+
expiresAt: S.String,
|
|
2904
|
+
fundOrigin: S.optional(FundOrigin),
|
|
2905
|
+
fundRecipient: S.optional(FundRecipient),
|
|
2906
|
+
id: S.String,
|
|
2907
|
+
installmentOptions: S.optional(CreateCheckoutSessionResponseInstallmentOptionsMap),
|
|
2908
|
+
lineItems: S.optional(CreateCheckoutSessionResponseLineItemsList),
|
|
2909
|
+
mandate: S.optional(Mandate),
|
|
2910
|
+
mcc: S.optional(S.String),
|
|
2911
|
+
merchantAccount: S.String,
|
|
2912
|
+
merchantOrderReference: S.optional(S.String),
|
|
2913
|
+
metadata: S.optional(CreateCheckoutSessionResponseMetadataMap),
|
|
2914
|
+
mode: S.optional(CreateCheckoutSessionResponseMode),
|
|
2915
|
+
mpiData: S.optional(ThreeDSecureData),
|
|
2916
|
+
platformChargebackLogic: S.optional(PlatformChargebackLogic),
|
|
2917
|
+
recurringExpiry: S.optional(S.String),
|
|
2918
|
+
recurringFrequency: S.optional(S.String),
|
|
2919
|
+
recurringProcessingModel: S.optional(CreateCheckoutSessionResponseRecurringProcessingModel),
|
|
2920
|
+
redirectFromIssuerMethod: S.optional(S.String),
|
|
2921
|
+
redirectToIssuerMethod: S.optional(S.String),
|
|
2922
|
+
reference: S.String,
|
|
2923
|
+
returnUrl: S.String,
|
|
2924
|
+
riskData: S.optional(RiskData),
|
|
2925
|
+
sessionData: S.optional(S.String),
|
|
2926
|
+
shopperEmail: S.optional(S.String),
|
|
2927
|
+
shopperIP: S.optional(S.String),
|
|
2928
|
+
shopperInteraction: S.optional(CreateCheckoutSessionResponseShopperInteraction),
|
|
2929
|
+
shopperLocale: S.optional(S.String),
|
|
2930
|
+
shopperName: S.optional(ShopperName),
|
|
2931
|
+
shopperReference: S.optional(S.String),
|
|
2932
|
+
shopperStatement: S.optional(S.String),
|
|
2933
|
+
showInstallmentAmount: S.optional(S.Boolean),
|
|
2934
|
+
showRemovePaymentMethodButton: S.optional(S.Boolean),
|
|
2935
|
+
socialSecurityNumber: S.optional(S.String),
|
|
2936
|
+
splitCardFundingSources: S.optional(S.Boolean),
|
|
2937
|
+
splits: S.optional(CreateCheckoutSessionResponseSplitsList),
|
|
2938
|
+
store: S.optional(S.String),
|
|
2939
|
+
storeFiltrationMode: S.optional(CreateCheckoutSessionResponseStoreFiltrationMode),
|
|
2940
|
+
storePaymentMethod: S.optional(S.Boolean),
|
|
2941
|
+
storePaymentMethodMode: S.optional(CreateCheckoutSessionResponseStorePaymentMethodMode),
|
|
2942
|
+
telephoneNumber: S.optional(S.String),
|
|
2943
|
+
themeId: S.optional(S.String),
|
|
2944
|
+
thirdPartyTokenRedundancyInfo: S.optional(ThirdPartyTokenRedundancyInfo),
|
|
2945
|
+
threeDS2RequestData: S.optional(CheckoutSessionThreeDS2RequestData),
|
|
2946
|
+
threeDSAuthenticationOnly: S.optional(S.Boolean),
|
|
2947
|
+
trustedShopper: S.optional(S.Boolean),
|
|
2948
|
+
url: S.optional(S.String),
|
|
2949
|
+
})).annotate({
|
|
2950
|
+
identifier: "CreateCheckoutSessionResponse",
|
|
2951
|
+
});
|
|
2952
|
+
export const PaymentMethodToStore = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2953
|
+
brand: S.optional(S.String),
|
|
2954
|
+
cvc: S.optional(S.String),
|
|
2955
|
+
encryptedCard: S.optional(S.String),
|
|
2956
|
+
encryptedCardNumber: S.optional(S.String),
|
|
2957
|
+
encryptedExpiryMonth: S.optional(S.String),
|
|
2958
|
+
encryptedExpiryYear: S.optional(S.String),
|
|
2959
|
+
encryptedSecurityCode: S.optional(S.String),
|
|
2960
|
+
expiryMonth: S.optional(S.String),
|
|
2961
|
+
expiryYear: S.optional(S.String),
|
|
2962
|
+
holderName: S.optional(S.String),
|
|
2963
|
+
number: S.optional(S.String),
|
|
2964
|
+
type: S.optional(S.String),
|
|
2965
|
+
})).annotate({
|
|
2966
|
+
identifier: "PaymentMethodToStore",
|
|
2967
|
+
});
|
|
2968
|
+
export const CreateStoredPaymentMethodRequestRecurringProcessingModel =
|
|
2969
|
+
/*@__PURE__*/ S.String;
|
|
2970
|
+
export const CreateStoredPaymentMethodRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2971
|
+
idempotencyKey: S.optional(S.String.pipe(T.Header("Idempotency-Key"))),
|
|
2972
|
+
merchantAccount: S.String,
|
|
2973
|
+
paymentMethod: PaymentMethodToStore,
|
|
2974
|
+
recurringProcessingModel: CreateStoredPaymentMethodRequestRecurringProcessingModel,
|
|
2975
|
+
shopperEmail: S.optional(S.String),
|
|
2976
|
+
shopperIP: S.optional(S.String),
|
|
2977
|
+
shopperReference: S.String,
|
|
2978
|
+
}).pipe(T.Http({ method: "POST", uri: "/storedPaymentMethods", code: 200 }))).annotate({
|
|
2979
|
+
identifier: "CreateStoredPaymentMethodRequest",
|
|
2980
|
+
});
|
|
2981
|
+
export const TokenMandateAmountRule = /*@__PURE__*/ S.String;
|
|
2982
|
+
export const TokenMandateBillingAttemptsRule = /*@__PURE__*/ S.String;
|
|
2983
|
+
export const TokenMandateFrequency = /*@__PURE__*/ S.String;
|
|
2984
|
+
export const TokenMandateRetryPolicy = /*@__PURE__*/ S.String;
|
|
2985
|
+
export const TokenMandate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2986
|
+
accountIdType: S.optional(S.String),
|
|
2987
|
+
amount: S.String,
|
|
2988
|
+
amountRule: S.optional(TokenMandateAmountRule),
|
|
2989
|
+
billingAttemptsRule: S.optional(TokenMandateBillingAttemptsRule),
|
|
2990
|
+
billingDay: S.optional(S.String),
|
|
2991
|
+
count: S.optional(S.String),
|
|
2992
|
+
currency: S.String,
|
|
2993
|
+
endsAt: S.String,
|
|
2994
|
+
frequency: TokenMandateFrequency,
|
|
2995
|
+
mandateId: S.String,
|
|
2996
|
+
maskedAccountId: S.optional(S.String),
|
|
2997
|
+
minAmount: S.optional(S.String),
|
|
2998
|
+
providerId: S.String,
|
|
2999
|
+
recurringAmount: S.optional(S.String),
|
|
3000
|
+
recurringStatement: S.optional(S.String),
|
|
3001
|
+
remarks: S.optional(S.String),
|
|
3002
|
+
retryPolicy: S.optional(TokenMandateRetryPolicy),
|
|
3003
|
+
startsAt: S.optional(S.String),
|
|
3004
|
+
status: S.String,
|
|
3005
|
+
txVariant: S.String,
|
|
3006
|
+
})).annotate({ identifier: "TokenMandate" });
|
|
3007
|
+
export const StoredPaymentMethodResourceSupportedRecurringProcessingModelsList =
|
|
3008
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
3009
|
+
export const StoredPaymentMethodResource = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3010
|
+
alias: S.optional(S.String),
|
|
3011
|
+
aliasType: S.optional(S.String),
|
|
3012
|
+
billingAddress: S.optional(BillingAddress),
|
|
3013
|
+
brand: S.optional(S.String),
|
|
3014
|
+
cardBin: S.optional(S.String),
|
|
3015
|
+
createdAt: S.optional(S.String),
|
|
3016
|
+
expiryMonth: S.optional(S.String),
|
|
3017
|
+
expiryYear: S.optional(S.String),
|
|
3018
|
+
externalResponseCode: S.optional(S.String),
|
|
3019
|
+
externalTokenReference: S.optional(S.String),
|
|
3020
|
+
firstPspReference: S.optional(S.String),
|
|
3021
|
+
holderName: S.optional(S.String),
|
|
3022
|
+
iban: S.optional(S.String),
|
|
3023
|
+
id: S.optional(S.String),
|
|
3024
|
+
issuerName: S.optional(S.String),
|
|
3025
|
+
lastFour: S.optional(S.String),
|
|
3026
|
+
mandate: S.optional(TokenMandate),
|
|
3027
|
+
name: S.optional(S.String),
|
|
3028
|
+
networkTxReference: S.optional(S.String),
|
|
3029
|
+
ownerName: S.optional(S.String),
|
|
3030
|
+
shopperEmail: S.optional(S.String),
|
|
3031
|
+
shopperReference: S.optional(S.String),
|
|
3032
|
+
supportedRecurringProcessingModels: S.optional(StoredPaymentMethodResourceSupportedRecurringProcessingModelsList),
|
|
3033
|
+
type: S.optional(S.String),
|
|
3034
|
+
})).annotate({
|
|
3035
|
+
identifier: "StoredPaymentMethodResource",
|
|
3036
|
+
});
|
|
3037
|
+
export const ShopperIdPaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3038
|
+
type: S.String,
|
|
3039
|
+
})).annotate({
|
|
3040
|
+
identifier: "ShopperIdPaymentMethod",
|
|
3041
|
+
});
|
|
3042
|
+
export const CreateValidateShopperIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3043
|
+
merchantAccount: S.String,
|
|
3044
|
+
paymentMethod: ShopperIdPaymentMethod,
|
|
3045
|
+
shopperEmail: S.optional(S.String),
|
|
3046
|
+
shopperIP: S.optional(S.String),
|
|
3047
|
+
shopperReference: S.optional(S.String),
|
|
3048
|
+
}).pipe(T.Http({ method: "POST", uri: "/validateShopperId", code: 200 }))).annotate({
|
|
3049
|
+
identifier: "CreateValidateShopperIdRequest",
|
|
3050
|
+
});
|
|
3051
|
+
export const Result = /*@__PURE__*/ S.String;
|
|
3052
|
+
export const ValidateShopperIdResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3053
|
+
reason: S.optional(S.String),
|
|
3054
|
+
result: S.optional(Result),
|
|
3055
|
+
})).annotate({
|
|
3056
|
+
identifier: "ValidateShopperIdResponse",
|
|
3057
|
+
});
|
|
3058
|
+
export const DeleteStoredPaymentMethodRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3059
|
+
storedPaymentMethodId: S.String.pipe(T.Label()),
|
|
3060
|
+
shopperReference: S.String.pipe(T.Query()),
|
|
3061
|
+
merchantAccount: S.String.pipe(T.Query()),
|
|
3062
|
+
}).pipe(T.Http({
|
|
3063
|
+
method: "DELETE",
|
|
3064
|
+
uri: "/storedPaymentMethods/{storedPaymentMethodId}",
|
|
3065
|
+
code: 200,
|
|
3066
|
+
}))).annotate({
|
|
3067
|
+
identifier: "DeleteStoredPaymentMethodRequest",
|
|
3068
|
+
});
|
|
3069
|
+
export const DeleteStoredPaymentMethodResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
3070
|
+
identifier: "DeleteStoredPaymentMethodResponse",
|
|
3071
|
+
});
|
|
3072
|
+
export const GetPaymentLinkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3073
|
+
linkId: S.String.pipe(T.Label()),
|
|
3074
|
+
}).pipe(T.Http({ method: "GET", uri: "/paymentLinks/{linkId}", code: 200 }))).annotate({
|
|
3075
|
+
identifier: "GetPaymentLinkRequest",
|
|
3076
|
+
});
|
|
3077
|
+
export const GetSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3078
|
+
sessionId: S.String.pipe(T.Label()),
|
|
3079
|
+
sessionResult: S.String.pipe(T.Query()),
|
|
3080
|
+
}).pipe(T.Http({ method: "GET", uri: "/sessions/{sessionId}", code: 200 }))).annotate({
|
|
3081
|
+
identifier: "GetSessionRequest",
|
|
3082
|
+
});
|
|
3083
|
+
export const SessionResultResponseAdditionalDataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
3084
|
+
export const PaymentResultCode = /*@__PURE__*/ S.String;
|
|
3085
|
+
export const Payment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3086
|
+
amount: S.optional(Amount),
|
|
3087
|
+
paymentMethod: S.optional(ResponsePaymentMethod),
|
|
3088
|
+
pspReference: S.optional(S.String),
|
|
3089
|
+
resultCode: S.optional(PaymentResultCode),
|
|
3090
|
+
})).annotate({ identifier: "Payment" });
|
|
3091
|
+
export const SessionResultResponsePaymentsList = /*@__PURE__*/ S.Array(Payment);
|
|
3092
|
+
export const SessionResultResponseStatus = /*@__PURE__*/ S.String;
|
|
3093
|
+
export const SessionResultResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3094
|
+
additionalData: S.optional(SessionResultResponseAdditionalDataMap),
|
|
3095
|
+
id: S.optional(S.String),
|
|
3096
|
+
payments: S.optional(SessionResultResponsePaymentsList),
|
|
3097
|
+
reference: S.optional(S.String),
|
|
3098
|
+
status: S.optional(SessionResultResponseStatus),
|
|
3099
|
+
})).annotate({
|
|
3100
|
+
identifier: "SessionResultResponse",
|
|
3101
|
+
});
|
|
3102
|
+
export const GetStoredPaymentMethodsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3103
|
+
shopperReference: S.optional(S.String.pipe(T.Query())),
|
|
3104
|
+
merchantAccount: S.optional(S.String.pipe(T.Query())),
|
|
3105
|
+
}).pipe(T.Http({ method: "GET", uri: "/storedPaymentMethods", code: 200 }))).annotate({
|
|
3106
|
+
identifier: "GetStoredPaymentMethodsRequest",
|
|
3107
|
+
});
|
|
3108
|
+
export const ListStoredPaymentMethodsResponseStoredPaymentMethodsList =
|
|
3109
|
+
/*@__PURE__*/ S.Array(StoredPaymentMethodResource);
|
|
3110
|
+
export const ListStoredPaymentMethodsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3111
|
+
merchantAccount: S.optional(S.String),
|
|
3112
|
+
shopperReference: S.optional(S.String),
|
|
3113
|
+
storedPaymentMethods: S.optional(ListStoredPaymentMethodsResponseStoredPaymentMethodsList),
|
|
3114
|
+
})).annotate({
|
|
3115
|
+
identifier: "ListStoredPaymentMethodsResponse",
|
|
3116
|
+
});
|
|
3117
|
+
export const UpdatePaymentLinkRequestStatus = /*@__PURE__*/ S.String;
|
|
3118
|
+
export const UpdatePaymentLinkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3119
|
+
linkId: S.String.pipe(T.Label()),
|
|
3120
|
+
status: UpdatePaymentLinkRequestStatus,
|
|
3121
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/paymentLinks/{linkId}", code: 200 }))).annotate({
|
|
3122
|
+
identifier: "UpdatePaymentLinkRequest",
|
|
3123
|
+
});
|
|
3124
|
+
export const SessionAmountUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3125
|
+
currency: S.String,
|
|
3126
|
+
value: S.Number,
|
|
3127
|
+
})).annotate({
|
|
3128
|
+
identifier: "SessionAmountUpdate",
|
|
3129
|
+
});
|
|
3130
|
+
export const UpdateSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3131
|
+
sessionId: S.String.pipe(T.Label()),
|
|
3132
|
+
amount: SessionAmountUpdate,
|
|
3133
|
+
payable: S.optional(S.Boolean),
|
|
3134
|
+
sessionData: S.String,
|
|
3135
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/sessions/{sessionId}", code: 200 }))).annotate({
|
|
3136
|
+
identifier: "UpdateSessionRequest",
|
|
3137
|
+
});
|
|
3138
|
+
export const CheckoutSessionPatchSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
3139
|
+
sessionData: S.optional(S.String),
|
|
3140
|
+
})).annotate({
|
|
3141
|
+
identifier: "CheckoutSessionPatchSessionResponse",
|
|
3142
|
+
});
|
|
3143
|
+
/** Get an Apple Pay session You need to use this endpoint if you have an API-only integration with Apple Pay which uses Adyen's Apple Pay certificate. The endpoint returns the Apple Pay session data which you need to complete the [Apple Pay session validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). */
|
|
3144
|
+
export const createApplePaySession = /*@__PURE__*/ API.make(() => ({
|
|
3145
|
+
input: CreateApplePaySessionRequest,
|
|
3146
|
+
output: ApplePaySessionResponse,
|
|
3147
|
+
errors: [UnknownAdyenError],
|
|
3148
|
+
protocol: AdyenProtocol,
|
|
3149
|
+
retry: Retry.Retry,
|
|
3150
|
+
}));
|
|
3151
|
+
/** Cancel an authorised payment Cancels the authorisation on a payment that has not yet been [captured](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/captures), and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**TECHNICAL_CANCEL** webhook](https://docs.adyen.com/online-payments/cancel#cancellation-webhook). If you want to cancel a payment using the [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference), use the [`/payments/{paymentPspReference}/cancels`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/cancels) endpoint instead. If you want to cancel a payment but are not sure whether it has been captured, use the [`/payments/{paymentPspReference}/reversals`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/reversals) endpoint instead. For more information, refer to [Cancel](https://docs.adyen.com/online-payments/cancel). */
|
|
3152
|
+
export const createCancel = /*@__PURE__*/ API.make(() => ({
|
|
3153
|
+
input: CreateCancelRequest,
|
|
3154
|
+
output: StandalonePaymentCancelResponse,
|
|
3155
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3156
|
+
protocol: AdyenProtocol,
|
|
3157
|
+
retry: Retry.Retry,
|
|
3158
|
+
}));
|
|
3159
|
+
/** Get the brands and other details of a card Use this endpoint to get information about the card or network token that enables you to decide on the routing of the transaction and the eligibility of the card for the type of transaction. If you include [your supported brands](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cardDetails__reqParam_supportedBrands) in the request, the response also tells you if you support each [brand that was identified on the card](https://docs.adyen.com/api-explorer/Checkout/latest/post/cardDetails#responses-200-brands). If you have an API-only integration and collect card data, use this endpoint to find out if the shopper's card is co-bad. For co-badged cards, you must let the shopper choose the brand to pay with if you support both brands. ## Server-side API libraries We provide open-source [server-side API libraries](https://docs.adyen.com/development-resources/libraries/) in several languages: - PHP - Java - Node.js - .NET - Go - Python - Ruby - Apex (beta) See our [integration examples](https://github.com/adyen-examples#%EF%B8%8F-official-integration-examples) for example uses of the libraries. ## Developer resources BIN Lookup API is available through a Postman collection. Click the button below to create a fork, then set the environment variables at **Environments** > **Adyen APIs**. [](https://god.gw.postman.com/run-collection/25716737-677c7679-a695-4ebb-91da-68b4e7c9228a?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D25716737-677c7679-a695-4ebb-91da-68b4e7c9228a%26entityType%3Dcollection%26workspaceId%3Da8d63f9f-cfc7-4810-90c5-9e0c60030d3e#?env%5BAdyen%20APIs%5D=W3sia2V5IjoiWC1BUEktS2V5IiwidmFsdWUiOiIiLCJlbmFibGVkIjp0cnVlLCJ0eXBlIjoic2VjcmV0In0seyJrZXkiOiJZT1VSX01FUkNIQU5UX0FDQ09VTlQiLCJ2YWx1ZSI6IiIsImVuYWJsZWQiOnRydWUsInR5cGUiOiJkZWZhdWx0In0seyJrZXkiOiJZT1VSX0NPTVBBTllfQUNDT1VOVCIsInZhbHVlIjoiIiwiZW5hYmxlZCI6dHJ1ZSwidHlwZSI6ImRlZmF1bHQifSx7ImtleSI6IllPVVJfQkFMQU5DRV9QTEFURk9STSIsInZhbHVlIjoiIiwiZW5hYmxlZCI6dHJ1ZSwidHlwZSI6ImRlZmF1bHQifV0=) */
|
|
3160
|
+
export const createCardDetail = /*@__PURE__*/ API.make(() => ({
|
|
3161
|
+
input: CreateCardDetailRequest,
|
|
3162
|
+
output: CardDetailsResponse,
|
|
3163
|
+
errors: [UnknownAdyenError],
|
|
3164
|
+
protocol: AdyenProtocol,
|
|
3165
|
+
retry: Retry.Retry,
|
|
3166
|
+
}));
|
|
3167
|
+
/** Make a donation Takes in the donation token generated by the `/payments` request and uses it to make the donation. For more information, see [Donations](https://docs.adyen.com/online-payments/donations). */
|
|
3168
|
+
export const createDonation = /*@__PURE__*/ API.make(() => ({
|
|
3169
|
+
input: CreateDonationRequest,
|
|
3170
|
+
output: DonationPaymentResponse,
|
|
3171
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3172
|
+
protocol: AdyenProtocol,
|
|
3173
|
+
retry: Retry.Retry,
|
|
3174
|
+
}));
|
|
3175
|
+
/** Get a list of donation campaigns. Queries the available donation campaigns for a donation based on the donation context (like merchant account, currency, and locale). The response contains active donation campaigns. */
|
|
3176
|
+
export const createDonationCampaign = /*@__PURE__*/ API.make(() => ({
|
|
3177
|
+
input: CreateDonationCampaignRequest,
|
|
3178
|
+
output: DonationCampaignsResponse,
|
|
3179
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3180
|
+
protocol: AdyenProtocol,
|
|
3181
|
+
retry: Retry.Retry,
|
|
3182
|
+
}));
|
|
3183
|
+
/** Forward stored payment details Forwards the payment details you stored with Adyen to a third-party that you specify and returns the response from the third-party. Supports forwarding stored card details or [network tokens](https://docs.adyen.com/online-payments/network-tokenization). For more information, see [Forward stored payment details](https://docs.adyen.com/online-payments/tokenization/forward-payment-details). */
|
|
3184
|
+
export const createForward = /*@__PURE__*/ API.make(() => ({
|
|
3185
|
+
input: CreateForwardRequest,
|
|
3186
|
+
output: CheckoutForwardResponse,
|
|
3187
|
+
errors: [UnknownAdyenError],
|
|
3188
|
+
protocol: AdyenProtocol,
|
|
3189
|
+
retry: Retry.Retry,
|
|
3190
|
+
}));
|
|
3191
|
+
/** Create an order Creates an order to be used for partial payments. Make a POST `/orders` call before making a `/payments` call when processing payments with different payment methods. */
|
|
3192
|
+
export const createOrder = /*@__PURE__*/ API.make(() => ({
|
|
3193
|
+
input: CreateOrderRequest,
|
|
3194
|
+
output: CreateOrderResponse,
|
|
3195
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3196
|
+
protocol: AdyenProtocol,
|
|
3197
|
+
retry: Retry.Retry,
|
|
3198
|
+
}));
|
|
3199
|
+
/** Cancel an order Cancels an order. Cancellation of an order results in an automatic rollback of all payments made in the order, either by canceling or refunding the payment, depending on the type of payment method. */
|
|
3200
|
+
export const createOrdersCancel = /*@__PURE__*/ API.make(() => ({
|
|
3201
|
+
input: CreateOrdersCancelRequest,
|
|
3202
|
+
output: CancelOrderResponse,
|
|
3203
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3204
|
+
protocol: AdyenProtocol,
|
|
3205
|
+
retry: Retry.Retry,
|
|
3206
|
+
}));
|
|
3207
|
+
/** Start a transaction Sends payment parameters (like amount, country, and currency) together with other required input details collected from the shopper. To know more about required parameters for specific payment methods, refer to our [payment method guides](https://docs.adyen.com/payment-methods). The response depends on the [payment flow](https://docs.adyen.com/payment-methods#payment-flow): * For a direct flow, the response includes a `pspReference` and a `resultCode` with the payment result, for example **Authorised** or **Refused**. * For a redirect or additional action, the response contains an `action` object. */
|
|
3208
|
+
export const createPayment = /*@__PURE__*/ API.make(() => ({
|
|
3209
|
+
input: CreatePaymentRequest,
|
|
3210
|
+
output: PaymentResponse,
|
|
3211
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3212
|
+
protocol: AdyenProtocol,
|
|
3213
|
+
retry: Retry.Retry,
|
|
3214
|
+
}));
|
|
3215
|
+
/** Update an authorised amount Increases or decreases the authorised payment amount and returns a unique reference for this request. You get the outcome of the request asynchronously, in an [**AUTHORISATION_ADJUSTMENT** webhook](https://docs.adyen.com/development-resources/webhooks/webhook-types/#event-codes). You can only update authorised amounts that have not yet been [captured](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/captures). The amount you specify in the request is the updated amount, which is larger or smaller than the initial authorised amount. For more information, refer to [Authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#use-cases). */
|
|
3216
|
+
export const createPaymentAmountUpdate = /*@__PURE__*/ API.make(() => ({
|
|
3217
|
+
input: CreatePaymentAmountUpdateRequest,
|
|
3218
|
+
output: PaymentAmountUpdateResponse,
|
|
3219
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3220
|
+
protocol: AdyenProtocol,
|
|
3221
|
+
retry: Retry.Retry,
|
|
3222
|
+
}));
|
|
3223
|
+
/** Cancel an authorised payment Cancels the authorisation on a payment that has not yet been [captured](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/captures), and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CANCELLATION** webhook](https://docs.adyen.com/online-payments/cancel#cancellation-webhook). If you want to cancel a payment but don't have the [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference), use the [`/cancels`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cancels) endpoint instead. If you want to cancel a payment but are not sure whether it has been captured, use the [`/payments/{paymentPspReference}/reversals`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/reversals) endpoint instead. For more information, refer to [Cancel](https://docs.adyen.com/online-payments/cancel). */
|
|
3224
|
+
export const createPaymentCancel = /*@__PURE__*/ API.make(() => ({
|
|
3225
|
+
input: CreatePaymentCancelRequest,
|
|
3226
|
+
output: PaymentCancelResponse,
|
|
3227
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3228
|
+
protocol: AdyenProtocol,
|
|
3229
|
+
retry: Retry.Retry,
|
|
3230
|
+
}));
|
|
3231
|
+
/** Capture an authorised payment Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification). You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures. [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges. For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture). */
|
|
3232
|
+
export const createPaymentCapture = /*@__PURE__*/ API.make(() => ({
|
|
3233
|
+
input: CreatePaymentCaptureRequest,
|
|
3234
|
+
output: PaymentCaptureResponse,
|
|
3235
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3236
|
+
protocol: AdyenProtocol,
|
|
3237
|
+
retry: Retry.Retry,
|
|
3238
|
+
}));
|
|
3239
|
+
/** Create a payment link Creates a payment link to a [Pay by Link](https://docs.adyen.com/unified-commerce/pay-by-link/) page where the shopper can pay. The list of payment methods presented to the shopper depends on the `currency` and `country` parameters sent in the request. For more information, refer to [Pay by Link documentation](https://docs.adyen.com/online-payments/pay-by-link#create-payment-links-through-api). */
|
|
3240
|
+
export const createPaymentLink = /*@__PURE__*/ API.make(() => ({
|
|
3241
|
+
input: CreatePaymentLinkRequest,
|
|
3242
|
+
output: PaymentLinkResponse,
|
|
3243
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3244
|
+
protocol: AdyenProtocol,
|
|
3245
|
+
retry: Retry.Retry,
|
|
3246
|
+
}));
|
|
3247
|
+
/** Get a list of available payment methods Retrieves the list of available payment methods for the transaction, based on the transaction information like amount, country, and currency. */
|
|
3248
|
+
export const createPaymentMethod = /*@__PURE__*/ API.make(() => ({
|
|
3249
|
+
input: CreatePaymentMethodRequest,
|
|
3250
|
+
output: PaymentMethodsResponse,
|
|
3251
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3252
|
+
protocol: AdyenProtocol,
|
|
3253
|
+
retry: Retry.Retry,
|
|
3254
|
+
}));
|
|
3255
|
+
/** Get the balance of a gift card Retrieves the balance remaining on a shopper's gift card. To check a gift card's balance, make a POST `/paymentMethods/balance` call and include the gift card's details inside a `paymentMethod` object. */
|
|
3256
|
+
export const createPaymentMethodsBalance = /*@__PURE__*/ API.make(() => ({
|
|
3257
|
+
input: CreatePaymentMethodsBalanceRequest,
|
|
3258
|
+
output: BalanceCheckResponse,
|
|
3259
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3260
|
+
protocol: AdyenProtocol,
|
|
3261
|
+
retry: Retry.Retry,
|
|
3262
|
+
}));
|
|
3263
|
+
/** Refund a captured payment Refunds a payment that has been [captured](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/captures), and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**REFUND** webhook](https://docs.adyen.com/online-payments/refund#refund-webhook). You can refund either the full captured amount or a part of the captured amount. You can also perform multiple partial refunds, as long as their sum doesn't exceed the captured amount. > Some payment methods do not support partial refunds. To learn if a payment method supports partial refunds, refer to the payment method page such as [cards](https://docs.adyen.com/payment-methods/cards#supported-cards), [iDEAL](https://docs.adyen.com/payment-methods/ideal), or [Klarna](https://docs.adyen.com/payment-methods/klarna). If you want to refund a payment but are not sure whether it has been captured, use the [`/payments/{paymentPspReference}/reversals`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/reversals) endpoint instead. For more information, refer to [Refund](https://docs.adyen.com/online-payments/refund). */
|
|
3264
|
+
export const createPaymentRefund = /*@__PURE__*/ API.make(() => ({
|
|
3265
|
+
input: CreatePaymentRefundRequest,
|
|
3266
|
+
output: PaymentRefundResponse,
|
|
3267
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3268
|
+
protocol: AdyenProtocol,
|
|
3269
|
+
retry: Retry.Retry,
|
|
3270
|
+
}));
|
|
3271
|
+
/** Refund or cancel a payment [Refunds](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/refunds) a payment if it has already been captured, and [cancels](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/cancels) a payment if it has not yet been captured. Returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CANCEL_OR_REFUND** webhook](https://docs.adyen.com/online-payments/reversal/#cancel-or-refund-webhook). The reversed amount is always the full payment amount. > Do not use this request for payments that involve multiple partial captures. For more information, refer to [Reversal](https://docs.adyen.com/online-payments/reversal). */
|
|
3272
|
+
export const createPaymentReversal = /*@__PURE__*/ API.make(() => ({
|
|
3273
|
+
input: CreatePaymentReversalRequest,
|
|
3274
|
+
output: PaymentReversalResponse,
|
|
3275
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3276
|
+
protocol: AdyenProtocol,
|
|
3277
|
+
retry: Retry.Retry,
|
|
3278
|
+
}));
|
|
3279
|
+
/** Submit details for a payment Submits details for a payment created using `/payments`. This step is only needed when no final state has been reached on the `/payments` request, for example when the shopper was redirected to another page to complete the payment. */
|
|
3280
|
+
export const createPaymentsDetail = /*@__PURE__*/ API.make(() => ({
|
|
3281
|
+
input: CreatePaymentsDetailRequest,
|
|
3282
|
+
output: PaymentDetailsResponse,
|
|
3283
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3284
|
+
protocol: AdyenProtocol,
|
|
3285
|
+
retry: Retry.Retry,
|
|
3286
|
+
}));
|
|
3287
|
+
/** Updates the order for PayPal Express Checkout Updates the order for PayPal Express Checkout. This can be used to update the PayPal lightbox with an updated amount and delivery methods based on the delivery address. */
|
|
3288
|
+
export const createPaypalUpdateOrder = /*@__PURE__*/ API.make(() => ({
|
|
3289
|
+
input: CreatePaypalUpdateOrderRequest,
|
|
3290
|
+
output: PaypalUpdateOrderResponse,
|
|
3291
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3292
|
+
protocol: AdyenProtocol,
|
|
3293
|
+
retry: Retry.Retry,
|
|
3294
|
+
}));
|
|
3295
|
+
/** Create a payment session Creates a payment session for [Drop-in](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow/?platform=Web&integration=Drop-in), [Components](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow/?platform=Web&integration=Components), and [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow/?platform=Web&integration=Hosted+Checkout) integrations. The response contains encrypted payment session data. The front end then uses the session data to make any required server-side calls for the payment flow. You get the payment outcome asynchronously, in an [AUTHORISATION](https://docs.adyen.com/api-explorer/#/Webhooks/latest/post/AUTHORISATION) webhook. */
|
|
3296
|
+
export const createSession = /*@__PURE__*/ API.make(() => ({
|
|
3297
|
+
input: CreateSessionRequest,
|
|
3298
|
+
output: CreateCheckoutSessionResponse,
|
|
3299
|
+
errors: [UnknownAdyenError],
|
|
3300
|
+
protocol: AdyenProtocol,
|
|
3301
|
+
retry: Retry.Retry,
|
|
3302
|
+
}));
|
|
3303
|
+
/** Create a token to store payment details Creates a token to store the shopper's payment details. This token can be used for the shopper's future payments. */
|
|
3304
|
+
export const createStoredPaymentMethod = /*@__PURE__*/ API.make(() => ({
|
|
3305
|
+
input: CreateStoredPaymentMethodRequest,
|
|
3306
|
+
output: StoredPaymentMethodResource,
|
|
3307
|
+
errors: [UnknownAdyenError],
|
|
3308
|
+
protocol: AdyenProtocol,
|
|
3309
|
+
retry: Retry.Retry,
|
|
3310
|
+
}));
|
|
3311
|
+
/** Validates shopper Id Validates the shopperId. */
|
|
3312
|
+
export const createValidateShopperId = /*@__PURE__*/ API.make(() => ({
|
|
3313
|
+
input: CreateValidateShopperIdRequest,
|
|
3314
|
+
output: ValidateShopperIdResponse,
|
|
3315
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3316
|
+
protocol: AdyenProtocol,
|
|
3317
|
+
retry: Retry.Retry,
|
|
3318
|
+
}));
|
|
3319
|
+
/** Delete a token for stored payment details Deletes the token identified in the path. The token can no longer be used with payment requests. */
|
|
3320
|
+
export const deleteStoredPaymentMethod = /*@__PURE__*/ API.make(() => ({
|
|
3321
|
+
input: DeleteStoredPaymentMethodRequest,
|
|
3322
|
+
output: DeleteStoredPaymentMethodResponse,
|
|
3323
|
+
errors: [UnknownAdyenError],
|
|
3324
|
+
protocol: AdyenProtocol,
|
|
3325
|
+
retry: Retry.Retry,
|
|
3326
|
+
}));
|
|
3327
|
+
/** Get a payment link Retrieves the payment link details using the payment link `id`. */
|
|
3328
|
+
export const getPaymentLink = /*@__PURE__*/ API.make(() => ({
|
|
3329
|
+
input: GetPaymentLinkRequest,
|
|
3330
|
+
output: PaymentLinkResponse,
|
|
3331
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3332
|
+
protocol: AdyenProtocol,
|
|
3333
|
+
retry: Retry.Retry,
|
|
3334
|
+
}));
|
|
3335
|
+
/** Get the result of a payment session Returns the status of the payment session with the `sessionId` and `sessionResult` specified in the path. */
|
|
3336
|
+
export const getSession = /*@__PURE__*/ API.make(() => ({
|
|
3337
|
+
input: GetSessionRequest,
|
|
3338
|
+
output: SessionResultResponse,
|
|
3339
|
+
errors: [UnknownAdyenError],
|
|
3340
|
+
protocol: AdyenProtocol,
|
|
3341
|
+
retry: Retry.Retry,
|
|
3342
|
+
}));
|
|
3343
|
+
/** Get tokens for stored payment details Lists the tokens for stored payment details for the shopper identified in the path, if there are any available. The token ID can be used with payment requests for the shopper's payment. A summary of the stored details is included. */
|
|
3344
|
+
export const getStoredPaymentMethods = /*@__PURE__*/ API.make(() => ({
|
|
3345
|
+
input: GetStoredPaymentMethodsRequest,
|
|
3346
|
+
output: ListStoredPaymentMethodsResponse,
|
|
3347
|
+
errors: [UnknownAdyenError],
|
|
3348
|
+
protocol: AdyenProtocol,
|
|
3349
|
+
retry: Retry.Retry,
|
|
3350
|
+
}));
|
|
3351
|
+
/** Update the status of a payment link Updates the status of a payment link. Use this endpoint to [force the expiry of a payment link](https://docs.adyen.com/online-payments/pay-by-link#update-payment-link-status). */
|
|
3352
|
+
export const updatePaymentLink = /*@__PURE__*/ API.make(() => ({
|
|
3353
|
+
input: UpdatePaymentLinkRequest,
|
|
3354
|
+
output: PaymentLinkResponse,
|
|
3355
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownAdyenError],
|
|
3356
|
+
protocol: AdyenProtocol,
|
|
3357
|
+
retry: Retry.Retry,
|
|
3358
|
+
}));
|
|
3359
|
+
/** Update a payment session Updates an existing payment session with the `sessionId` specified in the path. You can update the session's `amount` and `payable` fields. The session can only be updated if it is not yet payable. */
|
|
3360
|
+
export const updateSession = /*@__PURE__*/ API.make(() => ({
|
|
3361
|
+
input: UpdateSessionRequest,
|
|
3362
|
+
output: CheckoutSessionPatchSessionResponse,
|
|
3363
|
+
errors: [UnknownAdyenError],
|
|
3364
|
+
protocol: AdyenProtocol,
|
|
3365
|
+
retry: Retry.Retry,
|
|
3366
|
+
}));
|
|
3367
|
+
//# sourceMappingURL=adyen.js.map
|