@revenexx/sdk 0.0.2 → 0.0.4

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.
@@ -0,0 +1,266 @@
1
+ import { Client } from '../client';
2
+ import type { Models } from '../models';
3
+ export declare class Payments {
4
+ client: Client;
5
+ constructor(client: Client);
6
+ /**
7
+ *
8
+ * @throws {RevenexxException}
9
+ * @returns {Promise<{}>}
10
+ */
11
+ paymentsList(): Promise<{}>;
12
+ /**
13
+ *
14
+ * @throws {RevenexxException}
15
+ * @returns {Promise<Models.Payment>}
16
+ */
17
+ paymentsCreate(): Promise<Models.Payment>;
18
+ /**
19
+ *
20
+ * @throws {RevenexxException}
21
+ * @returns {Promise<{}>}
22
+ */
23
+ paymentsMethodsList(): Promise<{}>;
24
+ /**
25
+ *
26
+ * @throws {RevenexxException}
27
+ * @returns {Promise<Models.PaymentMethod>}
28
+ */
29
+ paymentsMethodsCreate(): Promise<Models.PaymentMethod>;
30
+ /**
31
+ *
32
+ * @throws {RevenexxException}
33
+ * @returns {Promise<{}>}
34
+ */
35
+ paymentsMethodsDefaults(): Promise<{}>;
36
+ /**
37
+ *
38
+ * @throws {RevenexxException}
39
+ * @returns {Promise<{}>}
40
+ */
41
+ paymentsMethodsEligible(): Promise<{}>;
42
+ /**
43
+ *
44
+ * @param {string} params.id -
45
+ * @throws {RevenexxException}
46
+ * @returns {Promise<{}>}
47
+ */
48
+ paymentsMethodsDelete(params: {
49
+ id: string;
50
+ }): Promise<{}>;
51
+ /**
52
+ *
53
+ * @param {string} id -
54
+ * @throws {RevenexxException}
55
+ * @returns {Promise<{}>}
56
+ * @deprecated Use the object parameter style method for a better developer experience.
57
+ */
58
+ paymentsMethodsDelete(id: string): Promise<{}>;
59
+ /**
60
+ *
61
+ * @param {string} params.id -
62
+ * @throws {RevenexxException}
63
+ * @returns {Promise<Models.PaymentMethod>}
64
+ */
65
+ paymentsMethodsGet(params: {
66
+ id: string;
67
+ }): Promise<Models.PaymentMethod>;
68
+ /**
69
+ *
70
+ * @param {string} id -
71
+ * @throws {RevenexxException}
72
+ * @returns {Promise<Models.PaymentMethod>}
73
+ * @deprecated Use the object parameter style method for a better developer experience.
74
+ */
75
+ paymentsMethodsGet(id: string): Promise<Models.PaymentMethod>;
76
+ /**
77
+ *
78
+ * @param {string} params.id -
79
+ * @throws {RevenexxException}
80
+ * @returns {Promise<Models.PaymentMethod>}
81
+ */
82
+ paymentsMethodsUpdate(params: {
83
+ id: string;
84
+ }): Promise<Models.PaymentMethod>;
85
+ /**
86
+ *
87
+ * @param {string} id -
88
+ * @throws {RevenexxException}
89
+ * @returns {Promise<Models.PaymentMethod>}
90
+ * @deprecated Use the object parameter style method for a better developer experience.
91
+ */
92
+ paymentsMethodsUpdate(id: string): Promise<Models.PaymentMethod>;
93
+ /**
94
+ *
95
+ * @throws {RevenexxException}
96
+ * @returns {Promise<{}>}
97
+ */
98
+ paymentsProvidersList(): Promise<{}>;
99
+ /**
100
+ *
101
+ * @throws {RevenexxException}
102
+ * @returns {Promise<Models.PaymentProvider>}
103
+ */
104
+ paymentsProvidersCreate(): Promise<Models.PaymentProvider>;
105
+ /**
106
+ *
107
+ * @throws {RevenexxException}
108
+ * @returns {Promise<{}>}
109
+ */
110
+ paymentsProvidersCatalog(): Promise<{}>;
111
+ /**
112
+ *
113
+ * @param {string} params.id -
114
+ * @throws {RevenexxException}
115
+ * @returns {Promise<{}>}
116
+ */
117
+ paymentsProvidersDelete(params: {
118
+ id: string;
119
+ }): Promise<{}>;
120
+ /**
121
+ *
122
+ * @param {string} id -
123
+ * @throws {RevenexxException}
124
+ * @returns {Promise<{}>}
125
+ * @deprecated Use the object parameter style method for a better developer experience.
126
+ */
127
+ paymentsProvidersDelete(id: string): Promise<{}>;
128
+ /**
129
+ *
130
+ * @param {string} params.id -
131
+ * @throws {RevenexxException}
132
+ * @returns {Promise<Models.PaymentProvider>}
133
+ */
134
+ paymentsProvidersGet(params: {
135
+ id: string;
136
+ }): Promise<Models.PaymentProvider>;
137
+ /**
138
+ *
139
+ * @param {string} id -
140
+ * @throws {RevenexxException}
141
+ * @returns {Promise<Models.PaymentProvider>}
142
+ * @deprecated Use the object parameter style method for a better developer experience.
143
+ */
144
+ paymentsProvidersGet(id: string): Promise<Models.PaymentProvider>;
145
+ /**
146
+ *
147
+ * @param {string} params.id -
148
+ * @throws {RevenexxException}
149
+ * @returns {Promise<Models.PaymentProvider>}
150
+ */
151
+ paymentsProvidersUpdate(params: {
152
+ id: string;
153
+ }): Promise<Models.PaymentProvider>;
154
+ /**
155
+ *
156
+ * @param {string} id -
157
+ * @throws {RevenexxException}
158
+ * @returns {Promise<Models.PaymentProvider>}
159
+ * @deprecated Use the object parameter style method for a better developer experience.
160
+ */
161
+ paymentsProvidersUpdate(id: string): Promise<Models.PaymentProvider>;
162
+ /**
163
+ * Consumes the dispatch envelope from webhooks.revenexx.com: normalizes the provider callback (stripe payment intents + a generic shape), resolves the payment by psp_payment_id or order_ref and moves the ledger. Facts only move forward — provider retries and redeliveries are idempotent no-ops; unverified envelopes are refused.
164
+ *
165
+ * @param {string} params.provider -
166
+ * @throws {RevenexxException}
167
+ * @returns {Promise<{}>}
168
+ */
169
+ paymentsWebhooksIngest(params: {
170
+ provider: string;
171
+ }): Promise<{}>;
172
+ /**
173
+ * Consumes the dispatch envelope from webhooks.revenexx.com: normalizes the provider callback (stripe payment intents + a generic shape), resolves the payment by psp_payment_id or order_ref and moves the ledger. Facts only move forward — provider retries and redeliveries are idempotent no-ops; unverified envelopes are refused.
174
+ *
175
+ * @param {string} provider -
176
+ * @throws {RevenexxException}
177
+ * @returns {Promise<{}>}
178
+ * @deprecated Use the object parameter style method for a better developer experience.
179
+ */
180
+ paymentsWebhooksIngest(provider: string): Promise<{}>;
181
+ /**
182
+ *
183
+ * @param {string} params.id -
184
+ * @throws {RevenexxException}
185
+ * @returns {Promise<Models.Payment>}
186
+ */
187
+ paymentsGet(params: {
188
+ id: string;
189
+ }): Promise<Models.Payment>;
190
+ /**
191
+ *
192
+ * @param {string} id -
193
+ * @throws {RevenexxException}
194
+ * @returns {Promise<Models.Payment>}
195
+ * @deprecated Use the object parameter style method for a better developer experience.
196
+ */
197
+ paymentsGet(id: string): Promise<Models.Payment>;
198
+ /**
199
+ *
200
+ * @param {string} params.id -
201
+ * @throws {RevenexxException}
202
+ * @returns {Promise<Models.Payment>}
203
+ */
204
+ paymentsCancel(params: {
205
+ id: string;
206
+ }): Promise<Models.Payment>;
207
+ /**
208
+ *
209
+ * @param {string} id -
210
+ * @throws {RevenexxException}
211
+ * @returns {Promise<Models.Payment>}
212
+ * @deprecated Use the object parameter style method for a better developer experience.
213
+ */
214
+ paymentsCancel(id: string): Promise<Models.Payment>;
215
+ /**
216
+ *
217
+ * @param {string} params.id -
218
+ * @throws {RevenexxException}
219
+ * @returns {Promise<Models.Payment>}
220
+ */
221
+ paymentsCapture(params: {
222
+ id: string;
223
+ }): Promise<Models.Payment>;
224
+ /**
225
+ *
226
+ * @param {string} id -
227
+ * @throws {RevenexxException}
228
+ * @returns {Promise<Models.Payment>}
229
+ * @deprecated Use the object parameter style method for a better developer experience.
230
+ */
231
+ paymentsCapture(id: string): Promise<Models.Payment>;
232
+ /**
233
+ *
234
+ * @param {string} params.id -
235
+ * @throws {RevenexxException}
236
+ * @returns {Promise<Models.Payment>}
237
+ */
238
+ paymentsConfirm(params: {
239
+ id: string;
240
+ }): Promise<Models.Payment>;
241
+ /**
242
+ *
243
+ * @param {string} id -
244
+ * @throws {RevenexxException}
245
+ * @returns {Promise<Models.Payment>}
246
+ * @deprecated Use the object parameter style method for a better developer experience.
247
+ */
248
+ paymentsConfirm(id: string): Promise<Models.Payment>;
249
+ /**
250
+ *
251
+ * @param {string} params.id -
252
+ * @throws {RevenexxException}
253
+ * @returns {Promise<Models.Payment>}
254
+ */
255
+ paymentsRefund(params: {
256
+ id: string;
257
+ }): Promise<Models.Payment>;
258
+ /**
259
+ *
260
+ * @param {string} id -
261
+ * @throws {RevenexxException}
262
+ * @returns {Promise<Models.Payment>}
263
+ * @deprecated Use the object parameter style method for a better developer experience.
264
+ */
265
+ paymentsRefund(id: string): Promise<Models.Payment>;
266
+ }
@@ -0,0 +1,192 @@
1
+ import { Client } from '../client';
2
+ import type { Models } from '../models';
3
+ export declare class Prices {
4
+ client: Client;
5
+ constructor(client: Client);
6
+ /**
7
+ *
8
+ * @throws {RevenexxException}
9
+ * @returns {Promise<{}>}
10
+ */
11
+ pricesListsList(): Promise<{}>;
12
+ /**
13
+ *
14
+ * @throws {RevenexxException}
15
+ * @returns {Promise<Models.PriceList>}
16
+ */
17
+ pricesListsCreate(): Promise<Models.PriceList>;
18
+ /**
19
+ *
20
+ * @throws {RevenexxException}
21
+ * @returns {Promise<{}>}
22
+ */
23
+ pricesListsDefaults(): Promise<{}>;
24
+ /**
25
+ *
26
+ * @param {string} params.id -
27
+ * @throws {RevenexxException}
28
+ * @returns {Promise<{}>}
29
+ */
30
+ pricesListsDelete(params: {
31
+ id: string;
32
+ }): Promise<{}>;
33
+ /**
34
+ *
35
+ * @param {string} id -
36
+ * @throws {RevenexxException}
37
+ * @returns {Promise<{}>}
38
+ * @deprecated Use the object parameter style method for a better developer experience.
39
+ */
40
+ pricesListsDelete(id: string): Promise<{}>;
41
+ /**
42
+ *
43
+ * @param {string} params.id -
44
+ * @throws {RevenexxException}
45
+ * @returns {Promise<Models.PriceList>}
46
+ */
47
+ pricesListsGet(params: {
48
+ id: string;
49
+ }): Promise<Models.PriceList>;
50
+ /**
51
+ *
52
+ * @param {string} id -
53
+ * @throws {RevenexxException}
54
+ * @returns {Promise<Models.PriceList>}
55
+ * @deprecated Use the object parameter style method for a better developer experience.
56
+ */
57
+ pricesListsGet(id: string): Promise<Models.PriceList>;
58
+ /**
59
+ *
60
+ * @param {string} params.id -
61
+ * @throws {RevenexxException}
62
+ * @returns {Promise<Models.PriceList>}
63
+ */
64
+ pricesListsUpdate(params: {
65
+ id: string;
66
+ }): Promise<Models.PriceList>;
67
+ /**
68
+ *
69
+ * @param {string} id -
70
+ * @throws {RevenexxException}
71
+ * @returns {Promise<Models.PriceList>}
72
+ * @deprecated Use the object parameter style method for a better developer experience.
73
+ */
74
+ pricesListsUpdate(id: string): Promise<Models.PriceList>;
75
+ /**
76
+ *
77
+ * @param {string} params.listId -
78
+ * @throws {RevenexxException}
79
+ * @returns {Promise<{}>}
80
+ */
81
+ pricesEntriesList(params: {
82
+ listId: string;
83
+ }): Promise<{}>;
84
+ /**
85
+ *
86
+ * @param {string} listId -
87
+ * @throws {RevenexxException}
88
+ * @returns {Promise<{}>}
89
+ * @deprecated Use the object parameter style method for a better developer experience.
90
+ */
91
+ pricesEntriesList(listId: string): Promise<{}>;
92
+ /**
93
+ *
94
+ * @param {string} params.listId -
95
+ * @throws {RevenexxException}
96
+ * @returns {Promise<Models.PriceEntry>}
97
+ */
98
+ pricesEntriesCreate(params: {
99
+ listId: string;
100
+ }): Promise<Models.PriceEntry>;
101
+ /**
102
+ *
103
+ * @param {string} listId -
104
+ * @throws {RevenexxException}
105
+ * @returns {Promise<Models.PriceEntry>}
106
+ * @deprecated Use the object parameter style method for a better developer experience.
107
+ */
108
+ pricesEntriesCreate(listId: string): Promise<Models.PriceEntry>;
109
+ /**
110
+ *
111
+ * @param {string} params.listId -
112
+ * @throws {RevenexxException}
113
+ * @returns {Promise<{}>}
114
+ */
115
+ pricesEntriesReplace(params: {
116
+ listId: string;
117
+ }): Promise<{}>;
118
+ /**
119
+ *
120
+ * @param {string} listId -
121
+ * @throws {RevenexxException}
122
+ * @returns {Promise<{}>}
123
+ * @deprecated Use the object parameter style method for a better developer experience.
124
+ */
125
+ pricesEntriesReplace(listId: string): Promise<{}>;
126
+ /**
127
+ *
128
+ * @param {string} params.listId -
129
+ * @param {string} params.id -
130
+ * @throws {RevenexxException}
131
+ * @returns {Promise<{}>}
132
+ */
133
+ pricesEntriesDelete(params: {
134
+ listId: string;
135
+ id: string;
136
+ }): Promise<{}>;
137
+ /**
138
+ *
139
+ * @param {string} listId -
140
+ * @param {string} id -
141
+ * @throws {RevenexxException}
142
+ * @returns {Promise<{}>}
143
+ * @deprecated Use the object parameter style method for a better developer experience.
144
+ */
145
+ pricesEntriesDelete(listId: string, id: string): Promise<{}>;
146
+ /**
147
+ *
148
+ * @param {string} params.listId -
149
+ * @param {string} params.id -
150
+ * @throws {RevenexxException}
151
+ * @returns {Promise<Models.PriceEntry>}
152
+ */
153
+ pricesEntriesGet(params: {
154
+ listId: string;
155
+ id: string;
156
+ }): Promise<Models.PriceEntry>;
157
+ /**
158
+ *
159
+ * @param {string} listId -
160
+ * @param {string} id -
161
+ * @throws {RevenexxException}
162
+ * @returns {Promise<Models.PriceEntry>}
163
+ * @deprecated Use the object parameter style method for a better developer experience.
164
+ */
165
+ pricesEntriesGet(listId: string, id: string): Promise<Models.PriceEntry>;
166
+ /**
167
+ *
168
+ * @param {string} params.listId -
169
+ * @param {string} params.id -
170
+ * @throws {RevenexxException}
171
+ * @returns {Promise<Models.PriceEntry>}
172
+ */
173
+ pricesEntriesUpdate(params: {
174
+ listId: string;
175
+ id: string;
176
+ }): Promise<Models.PriceEntry>;
177
+ /**
178
+ *
179
+ * @param {string} listId -
180
+ * @param {string} id -
181
+ * @throws {RevenexxException}
182
+ * @returns {Promise<Models.PriceEntry>}
183
+ * @deprecated Use the object parameter style method for a better developer experience.
184
+ */
185
+ pricesEntriesUpdate(listId: string, id: string): Promise<Models.PriceEntry>;
186
+ /**
187
+ *
188
+ * @throws {RevenexxException}
189
+ * @returns {Promise<{}>}
190
+ */
191
+ pricesResolve(): Promise<{}>;
192
+ }
@@ -0,0 +1,192 @@
1
+ import { Client } from '../client';
2
+ import type { Models } from '../models';
3
+ export declare class Shipping {
4
+ client: Client;
5
+ constructor(client: Client);
6
+ /**
7
+ *
8
+ * @throws {RevenexxException}
9
+ * @returns {Promise<{}>}
10
+ */
11
+ shippingMethodsList(): Promise<{}>;
12
+ /**
13
+ *
14
+ * @throws {RevenexxException}
15
+ * @returns {Promise<Models.ShippingMethod>}
16
+ */
17
+ shippingMethodsCreate(): Promise<Models.ShippingMethod>;
18
+ /**
19
+ *
20
+ * @throws {RevenexxException}
21
+ * @returns {Promise<{}>}
22
+ */
23
+ shippingMethodsDefaults(): Promise<{}>;
24
+ /**
25
+ *
26
+ * @param {string} params.id -
27
+ * @throws {RevenexxException}
28
+ * @returns {Promise<{}>}
29
+ */
30
+ shippingMethodsDelete(params: {
31
+ id: string;
32
+ }): Promise<{}>;
33
+ /**
34
+ *
35
+ * @param {string} id -
36
+ * @throws {RevenexxException}
37
+ * @returns {Promise<{}>}
38
+ * @deprecated Use the object parameter style method for a better developer experience.
39
+ */
40
+ shippingMethodsDelete(id: string): Promise<{}>;
41
+ /**
42
+ *
43
+ * @param {string} params.id -
44
+ * @throws {RevenexxException}
45
+ * @returns {Promise<Models.ShippingMethod>}
46
+ */
47
+ shippingMethodsGet(params: {
48
+ id: string;
49
+ }): Promise<Models.ShippingMethod>;
50
+ /**
51
+ *
52
+ * @param {string} id -
53
+ * @throws {RevenexxException}
54
+ * @returns {Promise<Models.ShippingMethod>}
55
+ * @deprecated Use the object parameter style method for a better developer experience.
56
+ */
57
+ shippingMethodsGet(id: string): Promise<Models.ShippingMethod>;
58
+ /**
59
+ *
60
+ * @param {string} params.id -
61
+ * @throws {RevenexxException}
62
+ * @returns {Promise<Models.ShippingMethod>}
63
+ */
64
+ shippingMethodsUpdate(params: {
65
+ id: string;
66
+ }): Promise<Models.ShippingMethod>;
67
+ /**
68
+ *
69
+ * @param {string} id -
70
+ * @throws {RevenexxException}
71
+ * @returns {Promise<Models.ShippingMethod>}
72
+ * @deprecated Use the object parameter style method for a better developer experience.
73
+ */
74
+ shippingMethodsUpdate(id: string): Promise<Models.ShippingMethod>;
75
+ /**
76
+ *
77
+ * @param {string} params.methodId -
78
+ * @throws {RevenexxException}
79
+ * @returns {Promise<{}>}
80
+ */
81
+ shippingTiersList(params: {
82
+ methodId: string;
83
+ }): Promise<{}>;
84
+ /**
85
+ *
86
+ * @param {string} methodId -
87
+ * @throws {RevenexxException}
88
+ * @returns {Promise<{}>}
89
+ * @deprecated Use the object parameter style method for a better developer experience.
90
+ */
91
+ shippingTiersList(methodId: string): Promise<{}>;
92
+ /**
93
+ *
94
+ * @param {string} params.methodId -
95
+ * @throws {RevenexxException}
96
+ * @returns {Promise<Models.ShippingRateTier>}
97
+ */
98
+ shippingTiersCreate(params: {
99
+ methodId: string;
100
+ }): Promise<Models.ShippingRateTier>;
101
+ /**
102
+ *
103
+ * @param {string} methodId -
104
+ * @throws {RevenexxException}
105
+ * @returns {Promise<Models.ShippingRateTier>}
106
+ * @deprecated Use the object parameter style method for a better developer experience.
107
+ */
108
+ shippingTiersCreate(methodId: string): Promise<Models.ShippingRateTier>;
109
+ /**
110
+ *
111
+ * @param {string} params.methodId -
112
+ * @throws {RevenexxException}
113
+ * @returns {Promise<{}>}
114
+ */
115
+ shippingTiersReplace(params: {
116
+ methodId: string;
117
+ }): Promise<{}>;
118
+ /**
119
+ *
120
+ * @param {string} methodId -
121
+ * @throws {RevenexxException}
122
+ * @returns {Promise<{}>}
123
+ * @deprecated Use the object parameter style method for a better developer experience.
124
+ */
125
+ shippingTiersReplace(methodId: string): Promise<{}>;
126
+ /**
127
+ *
128
+ * @param {string} params.methodId -
129
+ * @param {string} params.id -
130
+ * @throws {RevenexxException}
131
+ * @returns {Promise<{}>}
132
+ */
133
+ shippingTiersDelete(params: {
134
+ methodId: string;
135
+ id: string;
136
+ }): Promise<{}>;
137
+ /**
138
+ *
139
+ * @param {string} methodId -
140
+ * @param {string} id -
141
+ * @throws {RevenexxException}
142
+ * @returns {Promise<{}>}
143
+ * @deprecated Use the object parameter style method for a better developer experience.
144
+ */
145
+ shippingTiersDelete(methodId: string, id: string): Promise<{}>;
146
+ /**
147
+ *
148
+ * @param {string} params.methodId -
149
+ * @param {string} params.id -
150
+ * @throws {RevenexxException}
151
+ * @returns {Promise<Models.ShippingRateTier>}
152
+ */
153
+ shippingTiersGet(params: {
154
+ methodId: string;
155
+ id: string;
156
+ }): Promise<Models.ShippingRateTier>;
157
+ /**
158
+ *
159
+ * @param {string} methodId -
160
+ * @param {string} id -
161
+ * @throws {RevenexxException}
162
+ * @returns {Promise<Models.ShippingRateTier>}
163
+ * @deprecated Use the object parameter style method for a better developer experience.
164
+ */
165
+ shippingTiersGet(methodId: string, id: string): Promise<Models.ShippingRateTier>;
166
+ /**
167
+ *
168
+ * @param {string} params.methodId -
169
+ * @param {string} params.id -
170
+ * @throws {RevenexxException}
171
+ * @returns {Promise<Models.ShippingRateTier>}
172
+ */
173
+ shippingTiersUpdate(params: {
174
+ methodId: string;
175
+ id: string;
176
+ }): Promise<Models.ShippingRateTier>;
177
+ /**
178
+ *
179
+ * @param {string} methodId -
180
+ * @param {string} id -
181
+ * @throws {RevenexxException}
182
+ * @returns {Promise<Models.ShippingRateTier>}
183
+ * @deprecated Use the object parameter style method for a better developer experience.
184
+ */
185
+ shippingTiersUpdate(methodId: string, id: string): Promise<Models.ShippingRateTier>;
186
+ /**
187
+ *
188
+ * @throws {RevenexxException}
189
+ * @returns {Promise<{}>}
190
+ */
191
+ shippingRates(): Promise<{}>;
192
+ }