@jugarhoy/api 1.1.52 → 1.1.55
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/apis/AdminPaymentConfigsApi.ts +58 -0
- package/apis/AdminPaymentsApi.ts +263 -0
- package/apis/PublicPaymentsApi.ts +93 -0
- package/apis/ReservesApi.ts +13 -0
- package/apis/UserPaymentApi.ts +188 -0
- package/apis/index.ts +2 -0
- package/models/AdminCreatePaymentMethodRequest.ts +115 -0
- package/models/AdminUpdatePaymentMethodRequest.ts +105 -0
- package/models/CalculateServiceFee200Response.ts +22 -4
- package/models/CoachPaymentsDto.ts +32 -0
- package/models/CoachProfileDto.ts +13 -2
- package/models/CreateCustomerPaymentConfigDto.ts +24 -0
- package/models/CustomerPaymentConfig.ts +8 -0
- package/models/CustomerPaymentConfigDto.ts +8 -0
- package/models/PaymentDetail.ts +32 -0
- package/models/PaymentMethod.ts +2 -1
- package/models/PaymentMethodInfoDto.ts +121 -0
- package/models/SetCucuruCredentialsRequest.ts +75 -0
- package/models/SetUserPaymentSurchargePctRequest.ts +75 -0
- package/models/TransferCucuruDetails.ts +101 -0
- package/models/UserPaymentMethodDto.ts +8 -0
- package/models/index.ts +6 -0
- package/package.json +1 -1
- package/runtime.ts +1 -1
|
@@ -51,6 +51,12 @@ export interface CreateCustomerPaymentConfigDto {
|
|
|
51
51
|
* @memberof CreateCustomerPaymentConfigDto
|
|
52
52
|
*/
|
|
53
53
|
discount?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Extra % charged to customer for selecting this payment method
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof CreateCustomerPaymentConfigDto
|
|
58
|
+
*/
|
|
59
|
+
surchargePct?: number;
|
|
54
60
|
/**
|
|
55
61
|
* ID of the associated bank card (for TARJETA payment method)
|
|
56
62
|
* @type {string}
|
|
@@ -63,6 +69,18 @@ export interface CreateCustomerPaymentConfigDto {
|
|
|
63
69
|
* @memberof CreateCustomerPaymentConfigDto
|
|
64
70
|
*/
|
|
65
71
|
enabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Cucuru API Key (write-only, only for TRANSFER_CUCURU — never returned)
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CreateCustomerPaymentConfigDto
|
|
76
|
+
*/
|
|
77
|
+
apiKey?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Cucuru Collector ID (write-only, only for TRANSFER_CUCURU — never returned)
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CreateCustomerPaymentConfigDto
|
|
82
|
+
*/
|
|
83
|
+
collectorId?: string;
|
|
66
84
|
}
|
|
67
85
|
|
|
68
86
|
|
|
@@ -91,8 +109,11 @@ export function CreateCustomerPaymentConfigDtoFromJSONTyped(json: any, ignoreDis
|
|
|
91
109
|
'name': json['name'],
|
|
92
110
|
'code': json['code'],
|
|
93
111
|
'discount': json['discount'] == null ? undefined : json['discount'],
|
|
112
|
+
'surchargePct': json['surchargePct'] == null ? undefined : json['surchargePct'],
|
|
94
113
|
'bankCardId': json['bankCardId'] == null ? undefined : json['bankCardId'],
|
|
95
114
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
115
|
+
'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
|
|
116
|
+
'collectorId': json['collectorId'] == null ? undefined : json['collectorId'],
|
|
96
117
|
};
|
|
97
118
|
}
|
|
98
119
|
|
|
@@ -111,8 +132,11 @@ export function CreateCustomerPaymentConfigDtoToJSONTyped(value?: CreateCustomer
|
|
|
111
132
|
'name': value['name'],
|
|
112
133
|
'code': value['code'],
|
|
113
134
|
'discount': value['discount'],
|
|
135
|
+
'surchargePct': value['surchargePct'],
|
|
114
136
|
'bankCardId': value['bankCardId'],
|
|
115
137
|
'enabled': value['enabled'],
|
|
138
|
+
'apiKey': value['apiKey'],
|
|
139
|
+
'collectorId': value['collectorId'],
|
|
116
140
|
};
|
|
117
141
|
}
|
|
118
142
|
|
|
@@ -63,6 +63,12 @@ export interface CustomerPaymentConfig {
|
|
|
63
63
|
* @memberof CustomerPaymentConfig
|
|
64
64
|
*/
|
|
65
65
|
discount: number;
|
|
66
|
+
/**
|
|
67
|
+
* Extra % charged to customer for selecting this payment method
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof CustomerPaymentConfig
|
|
70
|
+
*/
|
|
71
|
+
surchargePct?: number;
|
|
66
72
|
/**
|
|
67
73
|
* ID of the associated bank card (for TARJETA payment method)
|
|
68
74
|
* @type {string}
|
|
@@ -128,6 +134,7 @@ export function CustomerPaymentConfigFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
128
134
|
'name': json['name'],
|
|
129
135
|
'code': json['code'],
|
|
130
136
|
'discount': json['discount'],
|
|
137
|
+
'surchargePct': json['surchargePct'] == null ? undefined : json['surchargePct'],
|
|
131
138
|
'bankCardId': json['bankCardId'] == null ? undefined : json['bankCardId'],
|
|
132
139
|
'linked': json['linked'] == null ? undefined : json['linked'],
|
|
133
140
|
'enabled': json['enabled'],
|
|
@@ -153,6 +160,7 @@ export function CustomerPaymentConfigToJSONTyped(value?: CustomerPaymentConfig |
|
|
|
153
160
|
'name': value['name'],
|
|
154
161
|
'code': value['code'],
|
|
155
162
|
'discount': value['discount'],
|
|
163
|
+
'surchargePct': value['surchargePct'],
|
|
156
164
|
'bankCardId': value['bankCardId'],
|
|
157
165
|
'linked': value['linked'],
|
|
158
166
|
'enabled': value['enabled'],
|
|
@@ -51,6 +51,12 @@ export interface CustomerPaymentConfigDto {
|
|
|
51
51
|
* @memberof CustomerPaymentConfigDto
|
|
52
52
|
*/
|
|
53
53
|
discount: number;
|
|
54
|
+
/**
|
|
55
|
+
* Extra % charged to customer for selecting this payment method
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof CustomerPaymentConfigDto
|
|
58
|
+
*/
|
|
59
|
+
surchargePct?: number;
|
|
54
60
|
/**
|
|
55
61
|
* ID of the associated bank card (for TARJETA payment method)
|
|
56
62
|
* @type {string}
|
|
@@ -93,6 +99,7 @@ export function CustomerPaymentConfigDtoFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
93
99
|
'name': json['name'],
|
|
94
100
|
'code': json['code'],
|
|
95
101
|
'discount': json['discount'],
|
|
102
|
+
'surchargePct': json['surchargePct'] == null ? undefined : json['surchargePct'],
|
|
96
103
|
'bankCardId': json['bankCardId'] == null ? undefined : json['bankCardId'],
|
|
97
104
|
'enabled': json['enabled'],
|
|
98
105
|
};
|
|
@@ -113,6 +120,7 @@ export function CustomerPaymentConfigDtoToJSONTyped(value?: CustomerPaymentConfi
|
|
|
113
120
|
'name': value['name'],
|
|
114
121
|
'code': value['code'],
|
|
115
122
|
'discount': value['discount'],
|
|
123
|
+
'surchargePct': value['surchargePct'],
|
|
116
124
|
'bankCardId': value['bankCardId'],
|
|
117
125
|
'enabled': value['enabled'],
|
|
118
126
|
};
|
package/models/PaymentDetail.ts
CHANGED
|
@@ -125,12 +125,36 @@ export interface PaymentDetail {
|
|
|
125
125
|
* @memberof PaymentDetail
|
|
126
126
|
*/
|
|
127
127
|
mobile?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Provider surcharge applied on top of base price
|
|
130
|
+
* @type {number}
|
|
131
|
+
* @memberof PaymentDetail
|
|
132
|
+
*/
|
|
133
|
+
surcharge?: number;
|
|
128
134
|
/**
|
|
129
135
|
* MercadoPago checkout URL
|
|
130
136
|
* @type {string}
|
|
131
137
|
* @memberof PaymentDetail
|
|
132
138
|
*/
|
|
133
139
|
initPoint?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* Cucuru unique alias generated per transaction
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof PaymentDetail
|
|
144
|
+
*/
|
|
145
|
+
transferAlias?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* Cucuru CVU (account_number) for the collection account
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof PaymentDetail
|
|
150
|
+
*/
|
|
151
|
+
transferCvu?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* Cumulative amount received via Cucuru transfers (may differ from total if underpaid/overpaid)
|
|
154
|
+
* @type {number}
|
|
155
|
+
* @memberof PaymentDetail
|
|
156
|
+
*/
|
|
157
|
+
paidAmount?: number | null;
|
|
134
158
|
}
|
|
135
159
|
|
|
136
160
|
|
|
@@ -175,7 +199,11 @@ export function PaymentDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
175
199
|
'total': json['total'],
|
|
176
200
|
'currency': json['currency'],
|
|
177
201
|
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
202
|
+
'surcharge': json['surcharge'] == null ? undefined : json['surcharge'],
|
|
178
203
|
'initPoint': json['initPoint'] == null ? undefined : json['initPoint'],
|
|
204
|
+
'transferAlias': json['transferAlias'] == null ? undefined : json['transferAlias'],
|
|
205
|
+
'transferCvu': json['transferCvu'] == null ? undefined : json['transferCvu'],
|
|
206
|
+
'paidAmount': json['paidAmount'] == null ? undefined : json['paidAmount'],
|
|
179
207
|
};
|
|
180
208
|
}
|
|
181
209
|
|
|
@@ -204,7 +232,11 @@ export function PaymentDetailToJSONTyped(value?: PaymentDetail | null, ignoreDis
|
|
|
204
232
|
'total': value['total'],
|
|
205
233
|
'currency': value['currency'],
|
|
206
234
|
'mobile': value['mobile'],
|
|
235
|
+
'surcharge': value['surcharge'],
|
|
207
236
|
'initPoint': value['initPoint'],
|
|
237
|
+
'transferAlias': value['transferAlias'],
|
|
238
|
+
'transferCvu': value['transferCvu'],
|
|
239
|
+
'paidAmount': value['paidAmount'],
|
|
208
240
|
};
|
|
209
241
|
}
|
|
210
242
|
|
package/models/PaymentMethod.ts
CHANGED
|
@@ -23,7 +23,8 @@ export const PaymentMethod = {
|
|
|
23
23
|
Qr: 'QR',
|
|
24
24
|
BankTransfer: 'BANK_TRANSFER',
|
|
25
25
|
Subscription: 'SUBSCRIPTION',
|
|
26
|
-
Tarjeta: 'TARJETA'
|
|
26
|
+
Tarjeta: 'TARJETA',
|
|
27
|
+
TransferCucuru: 'TRANSFER_CUCURU'
|
|
27
28
|
} as const;
|
|
28
29
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
29
30
|
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PaymentMethodInfoDto
|
|
20
|
+
*/
|
|
21
|
+
export interface PaymentMethodInfoDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PaymentMethodInfoDto
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Matches the PaymentMethod enum value (CASH, MERCADOPAGO, etc.)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PaymentMethodInfoDto
|
|
32
|
+
*/
|
|
33
|
+
code?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PaymentMethodInfoDto
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PaymentMethodInfoDto
|
|
44
|
+
*/
|
|
45
|
+
notes?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PaymentMethodInfoDto
|
|
50
|
+
*/
|
|
51
|
+
instructions?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof PaymentMethodInfoDto
|
|
56
|
+
*/
|
|
57
|
+
conditions?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof PaymentMethodInfoDto
|
|
62
|
+
*/
|
|
63
|
+
imageUrl?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof PaymentMethodInfoDto
|
|
68
|
+
*/
|
|
69
|
+
enabled?: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the PaymentMethodInfoDto interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfPaymentMethodInfoDto(value: object): value is PaymentMethodInfoDto {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaymentMethodInfoDtoFromJSON(json: any): PaymentMethodInfoDto {
|
|
80
|
+
return PaymentMethodInfoDtoFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PaymentMethodInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodInfoDto {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
90
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
91
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
92
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
93
|
+
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
94
|
+
'conditions': json['conditions'] == null ? undefined : json['conditions'],
|
|
95
|
+
'imageUrl': json['imageUrl'] == null ? undefined : json['imageUrl'],
|
|
96
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PaymentMethodInfoDtoToJSON(json: any): PaymentMethodInfoDto {
|
|
101
|
+
return PaymentMethodInfoDtoToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function PaymentMethodInfoDtoToJSONTyped(value?: PaymentMethodInfoDto | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'code': value['code'],
|
|
113
|
+
'name': value['name'],
|
|
114
|
+
'notes': value['notes'],
|
|
115
|
+
'instructions': value['instructions'],
|
|
116
|
+
'conditions': value['conditions'],
|
|
117
|
+
'imageUrl': value['imageUrl'],
|
|
118
|
+
'enabled': value['enabled'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SetCucuruCredentialsRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SetCucuruCredentialsRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Cucuru API Key (write-only, never returned)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SetCucuruCredentialsRequest
|
|
26
|
+
*/
|
|
27
|
+
apiKey: string;
|
|
28
|
+
/**
|
|
29
|
+
* Cucuru Collector ID (write-only, never returned)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SetCucuruCredentialsRequest
|
|
32
|
+
*/
|
|
33
|
+
collectorId: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SetCucuruCredentialsRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSetCucuruCredentialsRequest(value: object): value is SetCucuruCredentialsRequest {
|
|
40
|
+
if (!('apiKey' in value) || value['apiKey'] === undefined) return false;
|
|
41
|
+
if (!('collectorId' in value) || value['collectorId'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SetCucuruCredentialsRequestFromJSON(json: any): SetCucuruCredentialsRequest {
|
|
46
|
+
return SetCucuruCredentialsRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SetCucuruCredentialsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetCucuruCredentialsRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'apiKey': json['apiKey'],
|
|
56
|
+
'collectorId': json['collectorId'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SetCucuruCredentialsRequestToJSON(json: any): SetCucuruCredentialsRequest {
|
|
61
|
+
return SetCucuruCredentialsRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SetCucuruCredentialsRequestToJSONTyped(value?: SetCucuruCredentialsRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'apiKey': value['apiKey'],
|
|
72
|
+
'collectorId': value['collectorId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SetUserPaymentSurchargePctRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SetUserPaymentSurchargePctRequest {
|
|
22
|
+
/**
|
|
23
|
+
* MERCADOPAGO, CASH, or TRANSFER_CUCURU
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SetUserPaymentSurchargePctRequest
|
|
26
|
+
*/
|
|
27
|
+
paymentMethod: string;
|
|
28
|
+
/**
|
|
29
|
+
* Surcharge percentage (0-100)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SetUserPaymentSurchargePctRequest
|
|
32
|
+
*/
|
|
33
|
+
surchargePct: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SetUserPaymentSurchargePctRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSetUserPaymentSurchargePctRequest(value: object): value is SetUserPaymentSurchargePctRequest {
|
|
40
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
41
|
+
if (!('surchargePct' in value) || value['surchargePct'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SetUserPaymentSurchargePctRequestFromJSON(json: any): SetUserPaymentSurchargePctRequest {
|
|
46
|
+
return SetUserPaymentSurchargePctRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SetUserPaymentSurchargePctRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetUserPaymentSurchargePctRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'paymentMethod': json['paymentMethod'],
|
|
56
|
+
'surchargePct': json['surchargePct'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SetUserPaymentSurchargePctRequestToJSON(json: any): SetUserPaymentSurchargePctRequest {
|
|
61
|
+
return SetUserPaymentSurchargePctRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SetUserPaymentSurchargePctRequestToJSONTyped(value?: SetUserPaymentSurchargePctRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'paymentMethod': value['paymentMethod'],
|
|
72
|
+
'surchargePct': value['surchargePct'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TransferCucuruDetails
|
|
20
|
+
*/
|
|
21
|
+
export interface TransferCucuruDetails {
|
|
22
|
+
/**
|
|
23
|
+
* Unique per-transaction alias generated by Cucuru
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TransferCucuruDetails
|
|
26
|
+
*/
|
|
27
|
+
transferAlias: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof TransferCucuruDetails
|
|
32
|
+
*/
|
|
33
|
+
amount: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof TransferCucuruDetails
|
|
38
|
+
*/
|
|
39
|
+
surcharge?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof TransferCucuruDetails
|
|
44
|
+
*/
|
|
45
|
+
platformFee: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof TransferCucuruDetails
|
|
50
|
+
*/
|
|
51
|
+
total: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the TransferCucuruDetails interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfTransferCucuruDetails(value: object): value is TransferCucuruDetails {
|
|
58
|
+
if (!('transferAlias' in value) || value['transferAlias'] === undefined) return false;
|
|
59
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
60
|
+
if (!('platformFee' in value) || value['platformFee'] === undefined) return false;
|
|
61
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function TransferCucuruDetailsFromJSON(json: any): TransferCucuruDetails {
|
|
66
|
+
return TransferCucuruDetailsFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function TransferCucuruDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransferCucuruDetails {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'transferAlias': json['transferAlias'],
|
|
76
|
+
'amount': json['amount'],
|
|
77
|
+
'surcharge': json['surcharge'] == null ? undefined : json['surcharge'],
|
|
78
|
+
'platformFee': json['platformFee'],
|
|
79
|
+
'total': json['total'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function TransferCucuruDetailsToJSON(json: any): TransferCucuruDetails {
|
|
84
|
+
return TransferCucuruDetailsToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function TransferCucuruDetailsToJSONTyped(value?: TransferCucuruDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'transferAlias': value['transferAlias'],
|
|
95
|
+
'amount': value['amount'],
|
|
96
|
+
'surcharge': value['surcharge'],
|
|
97
|
+
'platformFee': value['platformFee'],
|
|
98
|
+
'total': value['total'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -37,6 +37,12 @@ export interface UserPaymentMethodDto {
|
|
|
37
37
|
* @memberof UserPaymentMethodDto
|
|
38
38
|
*/
|
|
39
39
|
enabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Surcharge % applied to the customer when using this method
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof UserPaymentMethodDto
|
|
44
|
+
*/
|
|
45
|
+
surchargePct?: number;
|
|
40
46
|
/**
|
|
41
47
|
* MercadoPago account ID (only for MERCADOPAGO)
|
|
42
48
|
* @type {string}
|
|
@@ -95,6 +101,7 @@ export function UserPaymentMethodDtoFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
95
101
|
'type': json['type'] == null ? undefined : json['type'],
|
|
96
102
|
'paymentMethod': json['paymentMethod'] == null ? undefined : json['paymentMethod'],
|
|
97
103
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
104
|
+
'surchargePct': json['surchargePct'] == null ? undefined : json['surchargePct'],
|
|
98
105
|
'providerId': json['providerId'] == null ? undefined : json['providerId'],
|
|
99
106
|
'titular': json['titular'] == null ? undefined : json['titular'],
|
|
100
107
|
'cuitCuil': json['cuitCuil'] == null ? undefined : json['cuitCuil'],
|
|
@@ -118,6 +125,7 @@ export function UserPaymentMethodDtoToJSONTyped(value?: UserPaymentMethodDto | n
|
|
|
118
125
|
'type': value['type'],
|
|
119
126
|
'paymentMethod': value['paymentMethod'],
|
|
120
127
|
'enabled': value['enabled'],
|
|
128
|
+
'surchargePct': value['surchargePct'],
|
|
121
129
|
'providerId': value['providerId'],
|
|
122
130
|
'titular': value['titular'],
|
|
123
131
|
'cuitCuil': value['cuitCuil'],
|
package/models/index.ts
CHANGED
|
@@ -8,6 +8,8 @@ export * from './AddCoachToSubscriptionRequest';
|
|
|
8
8
|
export * from './AddMemberToSubscriptionRequest';
|
|
9
9
|
export * from './AddPlayerToSubscriptionRequest';
|
|
10
10
|
export * from './AddShiftWithLocationDto';
|
|
11
|
+
export * from './AdminCreatePaymentMethodRequest';
|
|
12
|
+
export * from './AdminUpdatePaymentMethodRequest';
|
|
11
13
|
export * from './AgendaSlotDto';
|
|
12
14
|
export * from './ApiAdminInvitationsPost200Response';
|
|
13
15
|
export * from './ApiAdminPlayPricesIdPutRequest';
|
|
@@ -207,6 +209,7 @@ export * from './ParameterMapping';
|
|
|
207
209
|
export * from './ParameterValueType';
|
|
208
210
|
export * from './PaymentDetail';
|
|
209
211
|
export * from './PaymentMethod';
|
|
212
|
+
export * from './PaymentMethodInfoDto';
|
|
210
213
|
export * from './PaymentRefund';
|
|
211
214
|
export * from './PaymentStatus';
|
|
212
215
|
export * from './PaymentTerms';
|
|
@@ -302,6 +305,8 @@ export * from './SendEmailVerificationRequest';
|
|
|
302
305
|
export * from './ServiceType';
|
|
303
306
|
export * from './ServiceTypeDto';
|
|
304
307
|
export * from './SetAuthCodeDto';
|
|
308
|
+
export * from './SetCucuruCredentialsRequest';
|
|
309
|
+
export * from './SetUserPaymentSurchargePctRequest';
|
|
305
310
|
export * from './Shift';
|
|
306
311
|
export * from './Sport';
|
|
307
312
|
export * from './SportEventData';
|
|
@@ -338,6 +343,7 @@ export * from './ToggleUserCashPaymentRequest';
|
|
|
338
343
|
export * from './TrainerFeedDto';
|
|
339
344
|
export * from './TrainerFeedDtoStats';
|
|
340
345
|
export * from './TrainingSubscriptionDto';
|
|
346
|
+
export * from './TransferCucuruDetails';
|
|
341
347
|
export * from './TriggerDeviceAction200Response';
|
|
342
348
|
export * from './TriggerDeviceActionRequest';
|
|
343
349
|
export * from './UnreadCountResponseDto';
|
package/package.json
CHANGED
package/runtime.ts
CHANGED