@ranwhenparked/trustap-sdk 0.1.0
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/README.md +251 -0
- package/deno.json +9 -0
- package/eslint.config.js +21 -0
- package/package.json +47 -0
- package/scripts/build-node.mjs +75 -0
- package/scripts/generate-operations-map.mjs +57 -0
- package/scripts/generate-security-map.mjs +92 -0
- package/src/__tests__/auth-middleware.test.ts +171 -0
- package/src/__tests__/client-factory.test.ts +105 -0
- package/src/__tests__/error-handling.test.ts +302 -0
- package/src/__tests__/helpers/mock-http-client.ts +193 -0
- package/src/__tests__/helpers/run-guard.ts +24 -0
- package/src/__tests__/helpers/test-fixtures.ts +82 -0
- package/src/__tests__/node-client.test.ts +244 -0
- package/src/__tests__/operation-proxy.test.ts +268 -0
- package/src/__tests__/query-params.test.ts +232 -0
- package/src/__tests__/setup.ts +44 -0
- package/src/__tests__/types.test.ts +169 -0
- package/src/client-deno.ts +219 -0
- package/src/client-factory.ts +45 -0
- package/src/core.ts +619 -0
- package/src/index.deno.ts +28 -0
- package/src/index.ts +36 -0
- package/src/operations-map.ts +667 -0
- package/src/schema.d.ts +12046 -0
- package/src/security-map.ts +770 -0
- package/src/state-machine.ts +79 -0
- package/src/webhook-schemas.ts +400 -0
- package/tsconfig.build.json +27 -0
- package/tsconfig.json +22 -0
- package/vitest.config.ts +31 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
// generated by scripts/generate-operations-map.mjs
|
|
2
|
+
export const operationIdToPath = {
|
|
3
|
+
"basic.getTransactionsByIds": {
|
|
4
|
+
"path": "/batch/transactions",
|
|
5
|
+
"method": "GET"
|
|
6
|
+
},
|
|
7
|
+
"basic.getCharge": {
|
|
8
|
+
"path": "/charge",
|
|
9
|
+
"method": "GET"
|
|
10
|
+
},
|
|
11
|
+
"client.getSupportedRegistrationCountries": {
|
|
12
|
+
"path": "/client/supported_registration_countries",
|
|
13
|
+
"method": "GET"
|
|
14
|
+
},
|
|
15
|
+
"basic_client.getTransactions": {
|
|
16
|
+
"path": "/clients/{client_id}/transactions",
|
|
17
|
+
"method": "POST"
|
|
18
|
+
},
|
|
19
|
+
"basic_client.getTransaction": {
|
|
20
|
+
"path": "/clients/{client_id}/transactions/{transaction_id}",
|
|
21
|
+
"method": "GET"
|
|
22
|
+
},
|
|
23
|
+
"users.createGuestUser": {
|
|
24
|
+
"path": "/guest_users",
|
|
25
|
+
"method": "POST"
|
|
26
|
+
},
|
|
27
|
+
"personal.getAccountSession": {
|
|
28
|
+
"path": "/me/account_session",
|
|
29
|
+
"method": "GET"
|
|
30
|
+
},
|
|
31
|
+
"users.getBalances": {
|
|
32
|
+
"path": "/me/balances",
|
|
33
|
+
"method": "GET"
|
|
34
|
+
},
|
|
35
|
+
"basic.getCarrierFacilityOptions": {
|
|
36
|
+
"path": "/me/carriers/{carrier_id}/facilities",
|
|
37
|
+
"method": "GET"
|
|
38
|
+
},
|
|
39
|
+
"personal.getDebitAccount": {
|
|
40
|
+
"path": "/me/debit_account",
|
|
41
|
+
"method": "GET"
|
|
42
|
+
},
|
|
43
|
+
"personal.setDebitAccount": {
|
|
44
|
+
"path": "/me/debit_account",
|
|
45
|
+
"method": "POST"
|
|
46
|
+
},
|
|
47
|
+
"users.getUserFeatures": {
|
|
48
|
+
"path": "/me/features",
|
|
49
|
+
"method": "GET"
|
|
50
|
+
},
|
|
51
|
+
"users.setInstantPayouts": {
|
|
52
|
+
"path": "/me/features/instant_payouts",
|
|
53
|
+
"method": "POST"
|
|
54
|
+
},
|
|
55
|
+
"personal.getInstantPayoutBalance": {
|
|
56
|
+
"path": "/me/instant_payout_balance",
|
|
57
|
+
"method": "GET"
|
|
58
|
+
},
|
|
59
|
+
"basic.createMultiUseListing": {
|
|
60
|
+
"path": "/me/multi_use_listings/create",
|
|
61
|
+
"method": "POST"
|
|
62
|
+
},
|
|
63
|
+
"app_notifs.getNotifications": {
|
|
64
|
+
"path": "/me/notifications",
|
|
65
|
+
"method": "GET"
|
|
66
|
+
},
|
|
67
|
+
"personal.getPayoutAttempts": {
|
|
68
|
+
"path": "/me/payout_attempts",
|
|
69
|
+
"method": "GET"
|
|
70
|
+
},
|
|
71
|
+
"getAdditionalIdentityDocumentVerificationStatus": {
|
|
72
|
+
"path": "/me/personal/additional_identity_document/verification_status",
|
|
73
|
+
"method": "GET"
|
|
74
|
+
},
|
|
75
|
+
"getAdditionalIdentityDocumentBackVerificationStatus": {
|
|
76
|
+
"path": "/me/personal/additional_identity_document_back/verification_status",
|
|
77
|
+
"method": "GET"
|
|
78
|
+
},
|
|
79
|
+
"personal.getDetails": {
|
|
80
|
+
"path": "/me/personal/details",
|
|
81
|
+
"method": "GET"
|
|
82
|
+
},
|
|
83
|
+
"personal.setDetails": {
|
|
84
|
+
"path": "/me/personal/details",
|
|
85
|
+
"method": "PATCH"
|
|
86
|
+
},
|
|
87
|
+
"getIdentityDocumentVerificationStatus": {
|
|
88
|
+
"path": "/me/personal/identity_document/verification_status",
|
|
89
|
+
"method": "GET"
|
|
90
|
+
},
|
|
91
|
+
"getIdentityDocumentBackVerificationStatus": {
|
|
92
|
+
"path": "/me/personal/identity_document_back/verification_status",
|
|
93
|
+
"method": "GET"
|
|
94
|
+
},
|
|
95
|
+
"getStripePublishableKeyForUser": {
|
|
96
|
+
"path": "/me/personal/stripe_publishable_key",
|
|
97
|
+
"method": "GET"
|
|
98
|
+
},
|
|
99
|
+
"getProfilePayoutStatus": {
|
|
100
|
+
"path": "/me/profile/payout_status",
|
|
101
|
+
"method": "GET"
|
|
102
|
+
},
|
|
103
|
+
"basic.createSingleUseListing": {
|
|
104
|
+
"path": "/me/single_use_listings/create",
|
|
105
|
+
"method": "POST"
|
|
106
|
+
},
|
|
107
|
+
"personal.addStripeFinancialConnectionsAccount": {
|
|
108
|
+
"path": "/me/stripe_financial_connections/add_account",
|
|
109
|
+
"method": "POST"
|
|
110
|
+
},
|
|
111
|
+
"personal.getStripeFinancialConnectionsOwnership": {
|
|
112
|
+
"path": "/me/stripe_financial_connections/ownership",
|
|
113
|
+
"method": "GET"
|
|
114
|
+
},
|
|
115
|
+
"personal.prepareStripeFinancialConnectionsAccount": {
|
|
116
|
+
"path": "/me/stripe_financial_connections/prepare_account",
|
|
117
|
+
"method": "POST"
|
|
118
|
+
},
|
|
119
|
+
"basic.getTransactions": {
|
|
120
|
+
"path": "/transactions",
|
|
121
|
+
"method": "GET"
|
|
122
|
+
},
|
|
123
|
+
"basic.createTransaction": {
|
|
124
|
+
"path": "/transactions",
|
|
125
|
+
"method": "POST"
|
|
126
|
+
},
|
|
127
|
+
"basic.createAndJoinTransaction": {
|
|
128
|
+
"path": "/me/transactions/create_and_join",
|
|
129
|
+
"method": "POST"
|
|
130
|
+
},
|
|
131
|
+
"basic.createTransactionWithGuestUser": {
|
|
132
|
+
"path": "/me/transactions/create_with_guest_user",
|
|
133
|
+
"method": "POST"
|
|
134
|
+
},
|
|
135
|
+
"personal.getVerificationMethod": {
|
|
136
|
+
"path": "/me/verification_method",
|
|
137
|
+
"method": "GET"
|
|
138
|
+
},
|
|
139
|
+
"personal.getVerificationSession": {
|
|
140
|
+
"path": "/me/verification_session",
|
|
141
|
+
"method": "GET"
|
|
142
|
+
},
|
|
143
|
+
"personal.getVerificationSessionNative": {
|
|
144
|
+
"path": "/me/verification_session_native",
|
|
145
|
+
"method": "GET"
|
|
146
|
+
},
|
|
147
|
+
"personal.getVerificationStatus": {
|
|
148
|
+
"path": "/me/verification_status",
|
|
149
|
+
"method": "GET"
|
|
150
|
+
},
|
|
151
|
+
"basic.deleteMultiUseListing": {
|
|
152
|
+
"path": "/multi_use_listings/{listing_id}",
|
|
153
|
+
"method": "DELETE"
|
|
154
|
+
},
|
|
155
|
+
"basic.getMultiUseListing": {
|
|
156
|
+
"path": "/multi_use_listings/{listing_id}",
|
|
157
|
+
"method": "GET"
|
|
158
|
+
},
|
|
159
|
+
"basic.updateMultiUseListing": {
|
|
160
|
+
"path": "/multi_use_listings/{listing_id}",
|
|
161
|
+
"method": "PATCH"
|
|
162
|
+
},
|
|
163
|
+
"basic.createTransactionFromMultiUseListing": {
|
|
164
|
+
"path": "/multi_use_listings/{listing_id}/create_transaction",
|
|
165
|
+
"method": "POST"
|
|
166
|
+
},
|
|
167
|
+
"basic.createTransactionWithGuestBuyerFromMultiUseListing": {
|
|
168
|
+
"path": "/multi_use_listings/{listing_id}/create_transaction_with_guest_buyer",
|
|
169
|
+
"method": "POST"
|
|
170
|
+
},
|
|
171
|
+
"basic.disableMultiUseListing": {
|
|
172
|
+
"path": "/multi_use_listings/{listing_id}/disable",
|
|
173
|
+
"method": "POST"
|
|
174
|
+
},
|
|
175
|
+
"basic.enableMultiUseListing": {
|
|
176
|
+
"path": "/multi_use_listings/{listing_id}/enable",
|
|
177
|
+
"method": "POST"
|
|
178
|
+
},
|
|
179
|
+
"basic.setMultiUseListingDescription": {
|
|
180
|
+
"path": "/multi_use_listings/{listing_id}/set_description",
|
|
181
|
+
"method": "POST"
|
|
182
|
+
},
|
|
183
|
+
"basic.setMultiUseListingPricing": {
|
|
184
|
+
"path": "/multi_use_listings/{listing_id}/set_pricing",
|
|
185
|
+
"method": "POST"
|
|
186
|
+
},
|
|
187
|
+
"app_notifs.getNotification": {
|
|
188
|
+
"path": "/notifications/{notification_id}",
|
|
189
|
+
"method": "GET"
|
|
190
|
+
},
|
|
191
|
+
"app_notifs.markNotificationAsRead": {
|
|
192
|
+
"path": "/notifications/{notification_id}/mark_as_read",
|
|
193
|
+
"method": "POST"
|
|
194
|
+
},
|
|
195
|
+
"getP2pTransactionsByIds": {
|
|
196
|
+
"path": "/p2p/batch/transactions",
|
|
197
|
+
"method": "GET"
|
|
198
|
+
},
|
|
199
|
+
"p2p.getCharge": {
|
|
200
|
+
"path": "/p2p/charge",
|
|
201
|
+
"method": "GET"
|
|
202
|
+
},
|
|
203
|
+
"p2p_client.getTransactions": {
|
|
204
|
+
"path": "/p2p/clients/{client_id}/transactions",
|
|
205
|
+
"method": "POST"
|
|
206
|
+
},
|
|
207
|
+
"p2p_client.getTransaction": {
|
|
208
|
+
"path": "/p2p/clients/{client_id}/transactions/{transaction_id}",
|
|
209
|
+
"method": "GET"
|
|
210
|
+
},
|
|
211
|
+
"p2p.createWithSeller": {
|
|
212
|
+
"path": "/p2p/listings/create_with_seller",
|
|
213
|
+
"method": "POST"
|
|
214
|
+
},
|
|
215
|
+
"createP2PMultiUseListingWithDetails": {
|
|
216
|
+
"path": "/p2p/me/multi_use_listings/create",
|
|
217
|
+
"method": "POST"
|
|
218
|
+
},
|
|
219
|
+
"createP2PSingleUseListingWithDetails": {
|
|
220
|
+
"path": "/p2p/me/single_use_listings/create",
|
|
221
|
+
"method": "POST"
|
|
222
|
+
},
|
|
223
|
+
"p2p.getTransactions": {
|
|
224
|
+
"path": "/p2p/me/transactions",
|
|
225
|
+
"method": "GET"
|
|
226
|
+
},
|
|
227
|
+
"p2p.createTransaction": {
|
|
228
|
+
"path": "/p2p/me/transactions",
|
|
229
|
+
"method": "POST"
|
|
230
|
+
},
|
|
231
|
+
"p2p.createAndJoinTransaction": {
|
|
232
|
+
"path": "/p2p/me/transactions/create_and_join",
|
|
233
|
+
"method": "POST"
|
|
234
|
+
},
|
|
235
|
+
"p2p.createTransactionWithGuestUser": {
|
|
236
|
+
"path": "/p2p/me/transactions/create_with_guest_user",
|
|
237
|
+
"method": "POST"
|
|
238
|
+
},
|
|
239
|
+
"deleteP2PMultiUseListing": {
|
|
240
|
+
"path": "/p2p/multi_use_listings/{listingId}",
|
|
241
|
+
"method": "DELETE"
|
|
242
|
+
},
|
|
243
|
+
"getP2PMultiUseListing": {
|
|
244
|
+
"path": "/p2p/multi_use_listings/{listingId}",
|
|
245
|
+
"method": "GET"
|
|
246
|
+
},
|
|
247
|
+
"patchP2PMultiUseListing": {
|
|
248
|
+
"path": "/p2p/multi_use_listings/{listingId}",
|
|
249
|
+
"method": "PATCH"
|
|
250
|
+
},
|
|
251
|
+
"createTransactionFromP2PMultiUseListing": {
|
|
252
|
+
"path": "/p2p/multi_use_listings/{listingId}/create_transaction",
|
|
253
|
+
"method": "POST"
|
|
254
|
+
},
|
|
255
|
+
"disableP2PMultiUseListing": {
|
|
256
|
+
"path": "/p2p/multi_use_listings/{listingId}/disable",
|
|
257
|
+
"method": "POST"
|
|
258
|
+
},
|
|
259
|
+
"enableP2PMultiUseListing": {
|
|
260
|
+
"path": "/p2p/multi_use_listings/{listingId}/enable",
|
|
261
|
+
"method": "POST"
|
|
262
|
+
},
|
|
263
|
+
"setP2PMultiUseListingPricing": {
|
|
264
|
+
"path": "/p2p/multi_use_listings/{listingId}/set_deposit_pricing",
|
|
265
|
+
"method": "POST"
|
|
266
|
+
},
|
|
267
|
+
"setP2PMultiUseListingDescription": {
|
|
268
|
+
"path": "/p2p/multi_use_listings/{listingId}/set_description",
|
|
269
|
+
"method": "POST"
|
|
270
|
+
},
|
|
271
|
+
"setP2PMultiUseListingSkipRemainder": {
|
|
272
|
+
"path": "/p2p/multi_use_listings/{listingId}/set_skip_remainder",
|
|
273
|
+
"method": "POST"
|
|
274
|
+
},
|
|
275
|
+
"deleteP2PSingleUseListing": {
|
|
276
|
+
"path": "/p2p/single_use_listings/{listingId}",
|
|
277
|
+
"method": "DELETE"
|
|
278
|
+
},
|
|
279
|
+
"getP2PSingleUseListing": {
|
|
280
|
+
"path": "/p2p/single_use_listings/{listingId}",
|
|
281
|
+
"method": "GET"
|
|
282
|
+
},
|
|
283
|
+
"patchP2PSingleUseListing": {
|
|
284
|
+
"path": "/p2p/single_use_listings/{listingId}",
|
|
285
|
+
"method": "PATCH"
|
|
286
|
+
},
|
|
287
|
+
"createTransactionFromP2PSingleUseListing": {
|
|
288
|
+
"path": "/p2p/single_use_listings/{listingId}/create_transaction",
|
|
289
|
+
"method": "POST"
|
|
290
|
+
},
|
|
291
|
+
"disableP2PSingleUseListing": {
|
|
292
|
+
"path": "/p2p/single_use_listings/{listingId}/disable",
|
|
293
|
+
"method": "POST"
|
|
294
|
+
},
|
|
295
|
+
"enableP2PSingleUseListing": {
|
|
296
|
+
"path": "/p2p/single_use_listings/{listingId}/enable",
|
|
297
|
+
"method": "POST"
|
|
298
|
+
},
|
|
299
|
+
"setP2PSingleUseListingPricing": {
|
|
300
|
+
"path": "/p2p/single_use_listings/{listingId}/set_deposit_pricing",
|
|
301
|
+
"method": "POST"
|
|
302
|
+
},
|
|
303
|
+
"setP2PSingleUseListingDescription": {
|
|
304
|
+
"path": "/p2p/single_use_listings/{listingId}/set_description",
|
|
305
|
+
"method": "POST"
|
|
306
|
+
},
|
|
307
|
+
"p2p.getTransaction": {
|
|
308
|
+
"path": "/p2p/transactions/{transaction_id}",
|
|
309
|
+
"method": "GET"
|
|
310
|
+
},
|
|
311
|
+
"updateF2fTransaction": {
|
|
312
|
+
"path": "/p2p/transactions/{transaction_id}",
|
|
313
|
+
"method": "PATCH"
|
|
314
|
+
},
|
|
315
|
+
"p2p.acceptComplaint": {
|
|
316
|
+
"path": "/p2p/transactions/{transaction_id}/accept_complaint",
|
|
317
|
+
"method": "POST"
|
|
318
|
+
},
|
|
319
|
+
"p2p.acceptDeposit": {
|
|
320
|
+
"path": "/p2p/transactions/{transaction_id}/accept_deposit",
|
|
321
|
+
"method": "POST"
|
|
322
|
+
},
|
|
323
|
+
"p2p.acceptDepositWithGuestSeller": {
|
|
324
|
+
"path": "/p2p/transactions/{transaction_id}/accept_deposit_with_guest_seller",
|
|
325
|
+
"method": "POST"
|
|
326
|
+
},
|
|
327
|
+
"p2p.getBankTransferDetails": {
|
|
328
|
+
"path": "/p2p/transactions/{transaction_id}/bank_transfer_details",
|
|
329
|
+
"method": "GET"
|
|
330
|
+
},
|
|
331
|
+
"p2p.getBillingDetails": {
|
|
332
|
+
"path": "/p2p/transactions/{transaction_id}/billing_details",
|
|
333
|
+
"method": "GET"
|
|
334
|
+
},
|
|
335
|
+
"p2p.cancelWithDescription": {
|
|
336
|
+
"path": "/p2p/transactions/{transaction_id}/cancel_with_description",
|
|
337
|
+
"method": "POST"
|
|
338
|
+
},
|
|
339
|
+
"p2p.cancelP2PTransactionWithDescriptionAsGuest": {
|
|
340
|
+
"path": "/p2p/transactions/{transaction_id}/cancel_with_description_with_guest_user",
|
|
341
|
+
"method": "POST"
|
|
342
|
+
},
|
|
343
|
+
"p2p.claimForBuyer": {
|
|
344
|
+
"path": "/p2p/transactions/{transaction_id}/claim_for_buyer",
|
|
345
|
+
"method": "POST"
|
|
346
|
+
},
|
|
347
|
+
"p2p.claimTransactionForSeller": {
|
|
348
|
+
"path": "/p2p/transactions/{transaction_id}/claim_for_seller",
|
|
349
|
+
"method": "POST"
|
|
350
|
+
},
|
|
351
|
+
"p2p.submitComplaint": {
|
|
352
|
+
"path": "/p2p/transactions/{transaction_id}/complain",
|
|
353
|
+
"method": "POST"
|
|
354
|
+
},
|
|
355
|
+
"p2p.submitComplaintWithGuestBuyer": {
|
|
356
|
+
"path": "/p2p/transactions/{transaction_id}/complain_with_guest_buyer",
|
|
357
|
+
"method": "POST"
|
|
358
|
+
},
|
|
359
|
+
"p2p.confirmHandover": {
|
|
360
|
+
"path": "/p2p/transactions/{transaction_id}/confirm_handover",
|
|
361
|
+
"method": "POST"
|
|
362
|
+
},
|
|
363
|
+
"p2p.confirmHandoverWithGuestUserForTransaction": {
|
|
364
|
+
"path": "/p2p/transactions/{transaction_id}/confirm_handover_with_guest_user",
|
|
365
|
+
"method": "POST"
|
|
366
|
+
},
|
|
367
|
+
"p2p.getDepositStripeClientSecretForTransaction": {
|
|
368
|
+
"path": "/p2p/transactions/{transaction_id}/deposit_stripe_client_secret",
|
|
369
|
+
"method": "GET"
|
|
370
|
+
},
|
|
371
|
+
"p2p.endComplaintPeriodWithGuestBuyer": {
|
|
372
|
+
"path": "/p2p/transactions/{transaction_id}/end_complaint_period_with_guest_buyer",
|
|
373
|
+
"method": "POST"
|
|
374
|
+
},
|
|
375
|
+
"p2p.joinWithGuest": {
|
|
376
|
+
"path": "/p2p/transactions/{transaction_id}/join_with_guest",
|
|
377
|
+
"method": "POST"
|
|
378
|
+
},
|
|
379
|
+
"p2p.getTransactionMetadata": {
|
|
380
|
+
"path": "/p2p/transactions/{transaction_id}/metadata",
|
|
381
|
+
"method": "GET"
|
|
382
|
+
},
|
|
383
|
+
"p2p.setTransactionMetadata": {
|
|
384
|
+
"path": "/p2p/transactions/{transaction_id}/metadata",
|
|
385
|
+
"method": "POST"
|
|
386
|
+
},
|
|
387
|
+
"p2p.getRemainderStripeClientSecretForTransaction": {
|
|
388
|
+
"path": "/p2p/transactions/{transaction_id}/remainder_stripe_client_secret",
|
|
389
|
+
"method": "GET"
|
|
390
|
+
},
|
|
391
|
+
"p2p.setDepositPaymentMethod": {
|
|
392
|
+
"path": "/p2p/transactions/{transaction_id}/set_deposit_payment_method",
|
|
393
|
+
"method": "POST"
|
|
394
|
+
},
|
|
395
|
+
"p2p.getStripePublishableKeyForTransaction": {
|
|
396
|
+
"path": "/p2p/transactions/{transaction_id}/stripe_publishable_key",
|
|
397
|
+
"method": "GET"
|
|
398
|
+
},
|
|
399
|
+
"getBuyerDetailsFromP2PTransaction": {
|
|
400
|
+
"path": "/p2p/transactions/{transactionId}/buyer_details",
|
|
401
|
+
"method": "GET"
|
|
402
|
+
},
|
|
403
|
+
"getSellerDetailsFromP2PTransaction": {
|
|
404
|
+
"path": "/p2p/transactions/{transactionId}/seller_details",
|
|
405
|
+
"method": "GET"
|
|
406
|
+
},
|
|
407
|
+
"setPriceForP2PTransaction": {
|
|
408
|
+
"path": "/p2p/transactions/{transactionId}/set_price",
|
|
409
|
+
"method": "POST"
|
|
410
|
+
},
|
|
411
|
+
"skipRemainderForP2PTransaction": {
|
|
412
|
+
"path": "/p2p/transactions/{transactionId}/skip_remainder",
|
|
413
|
+
"method": "POST"
|
|
414
|
+
},
|
|
415
|
+
"p2p.claimAsBuyer": {
|
|
416
|
+
"path": "/p2p/transactions_by_claim_secret/{secret}/claim_as_buyer",
|
|
417
|
+
"method": "POST"
|
|
418
|
+
},
|
|
419
|
+
"p2p.claimTransactionAsSeller": {
|
|
420
|
+
"path": "/p2p/transactions_by_claim_secret/{secret}/claim_as_seller",
|
|
421
|
+
"method": "POST"
|
|
422
|
+
},
|
|
423
|
+
"p2p.joinTransactionByJoinCode": {
|
|
424
|
+
"path": "/p2p/transactions_by_join_code/{join_code}/join",
|
|
425
|
+
"method": "POST"
|
|
426
|
+
},
|
|
427
|
+
"p2p.rejectTransactionByJoinCode": {
|
|
428
|
+
"path": "/p2p/transactions_by_join_code/{join_code}/reject",
|
|
429
|
+
"method": "POST"
|
|
430
|
+
},
|
|
431
|
+
"getP2PTransactionByJoinCode": {
|
|
432
|
+
"path": "/p2p/transactions_by_join_code/{joinCode}",
|
|
433
|
+
"method": "GET"
|
|
434
|
+
},
|
|
435
|
+
"basic.getShippoShippingRates": {
|
|
436
|
+
"path": "/shippo_shipping_rates",
|
|
437
|
+
"method": "POST"
|
|
438
|
+
},
|
|
439
|
+
"basic.deleteSingleUseListing": {
|
|
440
|
+
"path": "/single_use_listings/{listing_id}",
|
|
441
|
+
"method": "DELETE"
|
|
442
|
+
},
|
|
443
|
+
"basic.getSingleUseListing": {
|
|
444
|
+
"path": "/single_use_listings/{listing_id}",
|
|
445
|
+
"method": "GET"
|
|
446
|
+
},
|
|
447
|
+
"basic.updateSingleUseListing": {
|
|
448
|
+
"path": "/single_use_listings/{listing_id}",
|
|
449
|
+
"method": "PATCH"
|
|
450
|
+
},
|
|
451
|
+
"basic.createTransactionFromSingleUseListing": {
|
|
452
|
+
"path": "/single_use_listings/{listing_id}/create_transaction",
|
|
453
|
+
"method": "POST"
|
|
454
|
+
},
|
|
455
|
+
"basic.createTransactionWithGuestBuyerFromSingleUseListing": {
|
|
456
|
+
"path": "/single_use_listings/{listing_id}/create_transaction_with_guest_buyer",
|
|
457
|
+
"method": "POST"
|
|
458
|
+
},
|
|
459
|
+
"basic.disableSingleUseListing": {
|
|
460
|
+
"path": "/single_use_listings/{listing_id}/disable",
|
|
461
|
+
"method": "POST"
|
|
462
|
+
},
|
|
463
|
+
"basic.enableSingleUseListing": {
|
|
464
|
+
"path": "/single_use_listings/{listing_id}/enable",
|
|
465
|
+
"method": "POST"
|
|
466
|
+
},
|
|
467
|
+
"basic.setSingleUseListingDescription": {
|
|
468
|
+
"path": "/single_use_listings/{listing_id}/set_description",
|
|
469
|
+
"method": "POST"
|
|
470
|
+
},
|
|
471
|
+
"basic.setSingleUseListingPricing": {
|
|
472
|
+
"path": "/single_use_listings/{listing_id}/set_pricing",
|
|
473
|
+
"method": "POST"
|
|
474
|
+
},
|
|
475
|
+
"getSupportedCarriers": {
|
|
476
|
+
"path": "/supported_carriers",
|
|
477
|
+
"method": "GET"
|
|
478
|
+
},
|
|
479
|
+
"basic.getTransactionByJoinCode": {
|
|
480
|
+
"path": "/transactions",
|
|
481
|
+
"method": "GET"
|
|
482
|
+
},
|
|
483
|
+
"basic.joinTransaction": {
|
|
484
|
+
"path": "/transactions",
|
|
485
|
+
"method": "PUT"
|
|
486
|
+
},
|
|
487
|
+
"basic.rejectTransactionByJoinCode": {
|
|
488
|
+
"path": "/transactions-by-join-code/{join_code}/reject",
|
|
489
|
+
"method": "POST"
|
|
490
|
+
},
|
|
491
|
+
"basic.getTransaction": {
|
|
492
|
+
"path": "/transactions/{transaction_id}",
|
|
493
|
+
"method": "GET"
|
|
494
|
+
},
|
|
495
|
+
"updateTransaction": {
|
|
496
|
+
"path": "/transactions/{transaction_id}",
|
|
497
|
+
"method": "PATCH"
|
|
498
|
+
},
|
|
499
|
+
"basic.acceptComplaint": {
|
|
500
|
+
"path": "/transactions/{transaction_id}/accept_complaint",
|
|
501
|
+
"method": "POST"
|
|
502
|
+
},
|
|
503
|
+
"basic.acceptListingTransaction": {
|
|
504
|
+
"path": "/transactions/{transaction_id}/accept_listing_transaction",
|
|
505
|
+
"method": "POST"
|
|
506
|
+
},
|
|
507
|
+
"basic.acceptPayment": {
|
|
508
|
+
"path": "/transactions/{transaction_id}/accept_payment",
|
|
509
|
+
"method": "POST"
|
|
510
|
+
},
|
|
511
|
+
"basic.acceptPaymentWithGuestSeller": {
|
|
512
|
+
"path": "/transactions/{transaction_id}/accept_payment_with_guest_seller",
|
|
513
|
+
"method": "POST"
|
|
514
|
+
},
|
|
515
|
+
"basic.getBankTransferDetails": {
|
|
516
|
+
"path": "/transactions/{transaction_id}/bank_transfer_details",
|
|
517
|
+
"method": "GET"
|
|
518
|
+
},
|
|
519
|
+
"basic.getBillingDetails": {
|
|
520
|
+
"path": "/transactions/{transaction_id}/billing_details",
|
|
521
|
+
"method": "GET"
|
|
522
|
+
},
|
|
523
|
+
"basic.getBuyerDetails": {
|
|
524
|
+
"path": "/transactions/{transaction_id}/buyer_details",
|
|
525
|
+
"method": "GET"
|
|
526
|
+
},
|
|
527
|
+
"basic.cancelTransaction": {
|
|
528
|
+
"path": "/transactions/{transaction_id}/cancel",
|
|
529
|
+
"method": "POST"
|
|
530
|
+
},
|
|
531
|
+
"basic.cancelTransactionWithGuestUser": {
|
|
532
|
+
"path": "/transactions/{transaction_id}/cancel_with_guest_user",
|
|
533
|
+
"method": "POST"
|
|
534
|
+
},
|
|
535
|
+
"basic.getChargeForTransaction": {
|
|
536
|
+
"path": "/transactions/{transaction_id}/charge",
|
|
537
|
+
"method": "GET"
|
|
538
|
+
},
|
|
539
|
+
"basic.claimTransactionForBuyer": {
|
|
540
|
+
"path": "/transactions/{transaction_id}/claim_for_buyer",
|
|
541
|
+
"method": "POST"
|
|
542
|
+
},
|
|
543
|
+
"basic.claimTransactionForSeller": {
|
|
544
|
+
"path": "/transactions/{transaction_id}/claim_for_seller",
|
|
545
|
+
"method": "POST"
|
|
546
|
+
},
|
|
547
|
+
"basic.submitComplaintWithDescription": {
|
|
548
|
+
"path": "/transactions/{transaction_id}/complain_with_description",
|
|
549
|
+
"method": "POST"
|
|
550
|
+
},
|
|
551
|
+
"basic.submitComplaintWithGuestBuyer": {
|
|
552
|
+
"path": "/transactions/{transaction_id}/complain_with_guest_buyer",
|
|
553
|
+
"method": "POST"
|
|
554
|
+
},
|
|
555
|
+
"basic.confirmDelivery": {
|
|
556
|
+
"path": "/transactions/{transaction_id}/confirm_delivery",
|
|
557
|
+
"method": "POST"
|
|
558
|
+
},
|
|
559
|
+
"basic.confirmDeliveryWithGuestBuyer": {
|
|
560
|
+
"path": "/transactions/{transaction_id}/confirm_delivery_with_guest_buyer",
|
|
561
|
+
"method": "POST"
|
|
562
|
+
},
|
|
563
|
+
"basic.setDeliveryPoint": {
|
|
564
|
+
"path": "/transactions/{transaction_id}/delivery_point",
|
|
565
|
+
"method": "POST"
|
|
566
|
+
},
|
|
567
|
+
"basic.endComplaintPeriod": {
|
|
568
|
+
"path": "/transactions/{transaction_id}/end_complaint_period",
|
|
569
|
+
"method": "POST"
|
|
570
|
+
},
|
|
571
|
+
"basic.extendTrackingDeadlineForTransaction": {
|
|
572
|
+
"path": "/transactions/{transaction_id}/extend_tracking_deadline",
|
|
573
|
+
"method": "POST"
|
|
574
|
+
},
|
|
575
|
+
"basic.generateShipmentLabel": {
|
|
576
|
+
"path": "/transactions/{transaction_id}/generate_shipment_label",
|
|
577
|
+
"method": "POST"
|
|
578
|
+
},
|
|
579
|
+
"basic.setPickUpPoint": {
|
|
580
|
+
"path": "/transactions/{transaction_id}/pick_up_point",
|
|
581
|
+
"method": "POST"
|
|
582
|
+
},
|
|
583
|
+
"basic.rejectListingTransaction": {
|
|
584
|
+
"path": "/transactions/{transaction_id}/reject_listing_transaction",
|
|
585
|
+
"method": "POST"
|
|
586
|
+
},
|
|
587
|
+
"basic.getSellerDetails": {
|
|
588
|
+
"path": "/transactions/{transaction_id}/seller_details",
|
|
589
|
+
"method": "GET"
|
|
590
|
+
},
|
|
591
|
+
"basic.setPaymentMethodForTransaction": {
|
|
592
|
+
"path": "/transactions/{transaction_id}/set_payment_method",
|
|
593
|
+
"method": "POST"
|
|
594
|
+
},
|
|
595
|
+
"basic.getShippingDetailsFromTransaction": {
|
|
596
|
+
"path": "/transactions/{transaction_id}/shipping_details",
|
|
597
|
+
"method": "GET"
|
|
598
|
+
},
|
|
599
|
+
"basic.setShippingDetails": {
|
|
600
|
+
"path": "/transactions/{transaction_id}/shipping_details",
|
|
601
|
+
"method": "POST"
|
|
602
|
+
},
|
|
603
|
+
"basic.setShippoAddress": {
|
|
604
|
+
"path": "/transactions/{transaction_id}/shippo_address",
|
|
605
|
+
"method": "POST"
|
|
606
|
+
},
|
|
607
|
+
"basic.setShippoCustomsDeclaration": {
|
|
608
|
+
"path": "/transactions/{transaction_id}/shippo_customs_declaration",
|
|
609
|
+
"method": "POST"
|
|
610
|
+
},
|
|
611
|
+
"basic.setShippoParcelDetails": {
|
|
612
|
+
"path": "/transactions/{transaction_id}/shippo_parcel_details",
|
|
613
|
+
"method": "POST"
|
|
614
|
+
},
|
|
615
|
+
"basic.getShippoShippingLabel": {
|
|
616
|
+
"path": "/transactions/{transaction_id}/shippo_shipping_label",
|
|
617
|
+
"method": "GET"
|
|
618
|
+
},
|
|
619
|
+
"basic.setShippoShippingRate": {
|
|
620
|
+
"path": "/transactions/{transaction_id}/shippo_shipping_rate",
|
|
621
|
+
"method": "POST"
|
|
622
|
+
},
|
|
623
|
+
"basic.getShippoShippingRatesForTransaction": {
|
|
624
|
+
"path": "/transactions/{transaction_id}/shippo_shipping_rates",
|
|
625
|
+
"method": "GET"
|
|
626
|
+
},
|
|
627
|
+
"getStripeClientSecretForTransaction": {
|
|
628
|
+
"path": "/transactions/{transaction_id}/stripe_client_secret",
|
|
629
|
+
"method": "GET"
|
|
630
|
+
},
|
|
631
|
+
"basic.getStripePublishableKeyForTransaction": {
|
|
632
|
+
"path": "/transactions/{transaction_id}/stripe_publishable_key",
|
|
633
|
+
"method": "GET"
|
|
634
|
+
},
|
|
635
|
+
"basic.submitOrderIssue": {
|
|
636
|
+
"path": "/transactions/{transaction_id}/submit_order_issue",
|
|
637
|
+
"method": "POST"
|
|
638
|
+
},
|
|
639
|
+
"basic.trackTransaction": {
|
|
640
|
+
"path": "/transactions/{transaction_id}/track",
|
|
641
|
+
"method": "POST"
|
|
642
|
+
},
|
|
643
|
+
"basic.trackTransactionWithGuestSeller": {
|
|
644
|
+
"path": "/transactions/{transaction_id}/track_with_guest_seller",
|
|
645
|
+
"method": "POST"
|
|
646
|
+
},
|
|
647
|
+
"basic.claimAsBuyer": {
|
|
648
|
+
"path": "/transactions_by_claim_secret/{secret}/claim_as_buyer",
|
|
649
|
+
"method": "POST"
|
|
650
|
+
},
|
|
651
|
+
"basic.claimTransactionAsSeller": {
|
|
652
|
+
"path": "/transactions_by_claim_secret/{secret}/claim_as_seller",
|
|
653
|
+
"method": "POST"
|
|
654
|
+
},
|
|
655
|
+
"users_client.getUserByClientID": {
|
|
656
|
+
"path": "/users/clients/{client_id}/users/{user_id}",
|
|
657
|
+
"method": "GET"
|
|
658
|
+
},
|
|
659
|
+
"oauth.getUser": {
|
|
660
|
+
"path": "/users/{userId}",
|
|
661
|
+
"method": "GET"
|
|
662
|
+
},
|
|
663
|
+
"oauth.updateUser": {
|
|
664
|
+
"path": "/users/{userId}",
|
|
665
|
+
"method": "PUT"
|
|
666
|
+
}
|
|
667
|
+
} as const;
|