-
Notifications
You must be signed in to change notification settings - Fork 395
/
Copy pathopf-base.model.ts
73 lines (64 loc) · 1.59 KB
/
opf-base.model.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* SPDX-FileCopyrightText: 2025 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/
export interface OpfActiveConfigurationsResponse {
value?: OpfActiveConfiguration[];
page?: OpfActiveConfigurationsPagination;
}
export interface OpfActiveConfiguration {
description?: string;
id?: number;
merchantId?: string;
providerType?: OpfPaymentProviderType;
displayName?: string;
acquirerCountryCode?: string;
logoUrl?: string;
code?: string;
}
export interface OpfActiveConfigurationsPagination {
number?: number;
size?: number;
totalElements?: number;
totalPages?: number;
}
export interface OpfActiveConfigurationsQuery {
/**
* The page number to be retrieved based on the total number of pages.
*/
pageNumber?: number;
/**
* The number of records retrieved at one time.
*/
pageSize?: number;
}
export interface OpfDynamicScript {
cssUrls?: OpfDynamicScriptResource[];
jsUrls?: OpfDynamicScriptResource[];
html?: string;
}
export interface OpfKeyValueMap {
key: string;
value: string;
}
export interface OpfDynamicScriptResource {
url?: string;
sri?: string;
attributes?: OpfKeyValueMap[];
type?: OpfDynamicScriptResourceType;
}
export enum OpfPage {
CHECKOUT_REVIEW_PAGE = 'opfCheckoutPaymentAndReview',
CONFIRMATION_PAGE = 'orderConfirmation',
RESULT_PAGE = 'paymentVerificationResult',
CART_PAGE = 'cart',
}
export enum OpfDynamicScriptResourceType {
SCRIPT = 'SCRIPT',
STYLES = 'STYLES',
}
export enum OpfPaymentProviderType {
PAYMENT_GATEWAY = 'PAYMENT_GATEWAY',
PAYMENT_METHOD = 'PAYMENT_METHOD',
}