@tapsilat/tapsilat-js 2026.4.2 → 2026.6.17
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 +27 -0
- package/dist/TapsilatSDK.d.ts +132 -73
- package/dist/TapsilatSDK.d.ts.map +1 -1
- package/dist/index.cjs +451 -163
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +750 -111
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +452 -164
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +620 -37
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -107,6 +107,8 @@ This JavaScript SDK provides full feature parity with Tapsilat's Python and .NET
|
|
|
107
107
|
|-----------------|------------|--------|------|
|
|
108
108
|
| Order Management | Yes | Yes | Yes |
|
|
109
109
|
| Payment Terms | Yes | Yes | Yes |
|
|
110
|
+
| System Utilities | Yes | Yes | Yes |
|
|
111
|
+
| Organization | Yes | Yes | Yes |
|
|
110
112
|
| GSM Validation | Yes | Yes | Yes |
|
|
111
113
|
| Installment Validation | Yes | Yes | Yes |
|
|
112
114
|
| Webhook Verification | Yes | No | No |
|
|
@@ -428,6 +430,31 @@ const settings = await tapsilat.getOrganizationSettings();
|
|
|
428
430
|
console.log('Organization Settings:', settings);
|
|
429
431
|
```
|
|
430
432
|
|
|
433
|
+
#### Get Currency Presets
|
|
434
|
+
```typescript
|
|
435
|
+
const presets = await tapsilat.getOrganizationCurrencyPresets();
|
|
436
|
+
console.log('Available currencies:', presets);
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
#### Get Suborganization Details
|
|
440
|
+
```typescript
|
|
441
|
+
const suborg = await tapsilat.getOrganizationSuborganizationDetails('suborg-id');
|
|
442
|
+
console.log('Suborganization Name:', suborg.name);
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
### System Utilities
|
|
446
|
+
|
|
447
|
+
#### Get System Endpoints
|
|
448
|
+
```typescript
|
|
449
|
+
// Fetch various system configurations
|
|
450
|
+
const errorCodes = await tapsilat.getSystemErrorCodes();
|
|
451
|
+
const productTypes = await tapsilat.getSystemProductTypes();
|
|
452
|
+
const transactionStatuses = await tapsilat.getSystemTransactionStatuses();
|
|
453
|
+
const basketItemTypes = await tapsilat.getSystemBasketItemTypes();
|
|
454
|
+
|
|
455
|
+
console.log('Available Error Codes:', errorCodes.rows);
|
|
456
|
+
```
|
|
457
|
+
|
|
431
458
|
### Manual Operations
|
|
432
459
|
|
|
433
460
|
#### Trigger Manual Callback
|
package/dist/TapsilatSDK.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigManager } from "./config/ConfigManager";
|
|
2
|
-
import { TapsilatConfig,
|
|
2
|
+
import { TapsilatConfig, GetOrderResponse, GetOrdersRequest, GetOrdersResponse, CancelOrderResponse, OrderRefundRequest, OrderRefundResponse, OrderStatusResponse, GetSystemOrderStatusesResponse, GetOrderPaymentDetailsResponse, OrderPaymentDetailDTO, OrderCreateRequest, OrderCreateResponse, OrderPaymentTermCreateDTO, OrderPaymentTermUpdateDTO, OrderTermRefundRequest, PaymentTermResponse, GetOrderTermResponse, PaymentTermDeleteRequest, PaymentTermRefundResponse, PaymentTermTerminateRequest, OrderTerminateRequest, OrderTerminateResponse, OrderPaymentTermActionResponse, SubscriptionGetRequest, SubscriptionCancelRequest, SubscriptionCreateRequest, SubscriptionRedirectRequest, ListSubscriptionsRequest, SubscriptionDetail, ListSubscriptionsResponse, SubscriptionCreateResponse, SubscriptionRedirectResponse, OrganizationSettings, GetOrderTransactionsResponse, GetOrderSubmerchantsRequest, GetOrderSubmerchantsResponse, OrderAccountingRequest, OrderAccountingResponse, OrderPostAuthRequest, OrderPostAuthResponse, AddBasketItemRequest, AddBasketItemResponse, RemoveBasketItemRequest, RemoveBasketItemResponse, UpdateBasketItemRequest, UpdateBasketItemResponse, OrderManualCallbackResponse, OrderRelatedUpdateResponse, CallbackURLDTO, OrgCreateBusinessRequest, OrgCreateBusinessResponse, OrganizationResponse, GetOrganizationCurrenciesResponse, GetUserLimitRequest, GetUserLimitResponse, SetLimitUserRequest, SetLimitUserResponse, GetOrganizationLimitsResponse, GetMetaResponse, GetOrganizationScopesResponse, GetSuborganizationsRequest, GetSubOrganizationListResponse, GetVposRequest, GetVposResponse, OrgCreateUserRequest, OrgCreateUserResponse, OrgUserVerifyRequest, OrgUserVerifyResponse, OrgUserMobileVerifyRequest, OrgUserMobileVerifyResponse, CancelSubscriptionResponse, OrderPaymentOptionsUpdateDTO, SplitOrderItemPaymentDTO, OrderCallbackResponse, OrderVposQueryResponse, GetOrganizationCurrencyPresetsResponse, GetSuborganizationDetailsResponse, GetSuborganizationSubmerchantsResponse, GetSystemBasketItemTypesResponse, GetSystemErrorCodesResponse, GetSystemPaymentTermStatusesResponse, GetSystemProductTypesResponse, GetSystemShortcutTypesResponse, GetSystemTransactionPaymentTypesResponse, GetSystemTransactionPurposesResponse, GetSystemTransactionStatusesResponse } from "./types/index";
|
|
3
3
|
/**
|
|
4
4
|
* Main SDK class for Tapsilat payment operations
|
|
5
5
|
*
|
|
@@ -57,6 +57,10 @@ export declare class TapsilatSDK {
|
|
|
57
57
|
* Access to organization operations
|
|
58
58
|
*/
|
|
59
59
|
get organization(): any;
|
|
60
|
+
/**
|
|
61
|
+
* Access to system operations
|
|
62
|
+
*/
|
|
63
|
+
get system(): any;
|
|
60
64
|
/**
|
|
61
65
|
* Access to webhook operations
|
|
62
66
|
*/
|
|
@@ -92,10 +96,10 @@ export declare class TapsilatSDK {
|
|
|
92
96
|
* @param {string} [orderRequest.payment_success_url] - URL to redirect after successful payment
|
|
93
97
|
* @param {string} [orderRequest.payment_failure_url] - URL to redirect after failed payment
|
|
94
98
|
* @param {number[]} [orderRequest.enabled_installments] - Allowed installment counts
|
|
95
|
-
* @param {
|
|
99
|
+
* @param {OrderMetadata[]} [orderRequest.metadata] - Additional custom key/value data
|
|
96
100
|
*
|
|
97
101
|
* @returns {Promise<OrderCreateResponse>} Promise resolving to order creation response
|
|
98
|
-
* @returns {string} OrderCreateResponse.
|
|
102
|
+
* @returns {string} [OrderCreateResponse.id] - Internal order identifier
|
|
99
103
|
* @returns {string} OrderCreateResponse.reference_id - Unique order reference for tracking
|
|
100
104
|
* @returns {string} [OrderCreateResponse.checkout_url] - Payment page URL for customer
|
|
101
105
|
* @returns {string} [OrderCreateResponse.conversation_id] - Echo of provided conversation ID
|
|
@@ -120,11 +124,11 @@ export declare class TapsilatSDK {
|
|
|
120
124
|
* @description Handles accounting operations for a specific order using its reference ID.
|
|
121
125
|
*
|
|
122
126
|
* @param {OrderAccountingRequest} request - Accounting request details
|
|
123
|
-
* @returns {Promise<
|
|
127
|
+
* @returns {Promise<OrderAccountingResponse>} Promise resolving to the accounting response
|
|
124
128
|
* @throws {TapsilatValidationError} When input validation fails
|
|
125
129
|
* @throws {TapsilatError} When API returns an error response
|
|
126
130
|
*/
|
|
127
|
-
orderAccounting(request: OrderAccountingRequest): Promise<
|
|
131
|
+
orderAccounting(request: OrderAccountingRequest): Promise<OrderAccountingResponse>;
|
|
128
132
|
/**
|
|
129
133
|
* Process post-authorization for an order
|
|
130
134
|
*
|
|
@@ -132,21 +136,61 @@ export declare class TapsilatSDK {
|
|
|
132
136
|
* @description Handles post-authorization operations for a specific order.
|
|
133
137
|
*
|
|
134
138
|
* @param {OrderPostAuthRequest} request - Post-authorization request details
|
|
135
|
-
* @returns {Promise<
|
|
139
|
+
* @returns {Promise<OrderPostAuthResponse>} Promise resolving to the post-auth response
|
|
136
140
|
* @throws {TapsilatValidationError} When input validation fails
|
|
137
141
|
* @throws {TapsilatError} When API returns an error response
|
|
138
142
|
*/
|
|
139
|
-
orderPostAuth(request: OrderPostAuthRequest): Promise<
|
|
143
|
+
orderPostAuth(request: OrderPostAuthRequest): Promise<OrderPostAuthResponse>;
|
|
140
144
|
/**
|
|
141
145
|
* Retrieve system order statuses
|
|
142
146
|
*
|
|
143
147
|
* @summary Retrieve system order statuses
|
|
144
148
|
* @description Gets a list of all possible order statuses in the system.
|
|
145
149
|
*
|
|
146
|
-
* @returns {Promise<
|
|
150
|
+
* @returns {Promise<GetSystemOrderStatusesResponse>} Promise resolving to system order statuses
|
|
147
151
|
* @throws {TapsilatError} When API returns an error response
|
|
148
152
|
*/
|
|
149
|
-
getSystemOrderStatuses(): Promise<
|
|
153
|
+
getSystemOrderStatuses(): Promise<GetSystemOrderStatusesResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* Retrieves system basket item types.
|
|
156
|
+
* Based on `get_system_basket_item_types` from Python SDK.
|
|
157
|
+
*/
|
|
158
|
+
getSystemBasketItemTypes(): Promise<GetSystemBasketItemTypesResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* Retrieves system error codes.
|
|
161
|
+
* Based on `get_system_error_codes` from Python SDK.
|
|
162
|
+
*/
|
|
163
|
+
getSystemErrorCodes(): Promise<GetSystemErrorCodesResponse>;
|
|
164
|
+
/**
|
|
165
|
+
* Retrieves system payment term statuses.
|
|
166
|
+
* Based on `get_system_payment_term_statuses` from Python SDK.
|
|
167
|
+
*/
|
|
168
|
+
getSystemPaymentTermStatuses(): Promise<GetSystemPaymentTermStatusesResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* Retrieves system product types.
|
|
171
|
+
* Based on `get_system_product_types` from Python SDK.
|
|
172
|
+
*/
|
|
173
|
+
getSystemProductTypes(): Promise<GetSystemProductTypesResponse>;
|
|
174
|
+
/**
|
|
175
|
+
* Retrieves system shortcut types.
|
|
176
|
+
* Based on `get_system_shortcut_types` from Python SDK.
|
|
177
|
+
*/
|
|
178
|
+
getSystemShortcutTypes(): Promise<GetSystemShortcutTypesResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* Retrieves system transaction payment types.
|
|
181
|
+
* Based on `get_system_transaction_payment_types` from Python SDK.
|
|
182
|
+
*/
|
|
183
|
+
getSystemTransactionPaymentTypes(): Promise<GetSystemTransactionPaymentTypesResponse>;
|
|
184
|
+
/**
|
|
185
|
+
* Retrieves system transaction purposes.
|
|
186
|
+
* Based on `get_system_transaction_purposes` from Python SDK.
|
|
187
|
+
*/
|
|
188
|
+
getSystemTransactionPurposes(): Promise<GetSystemTransactionPurposesResponse>;
|
|
189
|
+
/**
|
|
190
|
+
* Retrieves system transaction statuses.
|
|
191
|
+
* Based on `get_system_transaction_statuses` from Python SDK.
|
|
192
|
+
*/
|
|
193
|
+
getSystemTransactionStatuses(): Promise<GetSystemTransactionStatusesResponse>;
|
|
150
194
|
/**
|
|
151
195
|
* Gets an order by reference ID.
|
|
152
196
|
*
|
|
@@ -159,7 +203,7 @@ export declare class TapsilatSDK {
|
|
|
159
203
|
* @throws {TapsilatNetworkError} When API request fails due to network issues
|
|
160
204
|
* @throws {TapsilatError} When API returns an error response
|
|
161
205
|
*/
|
|
162
|
-
getOrder(referenceId: string): Promise<
|
|
206
|
+
getOrder(referenceId: string): Promise<GetOrderResponse>;
|
|
163
207
|
/**
|
|
164
208
|
* Lists orders with pagination support.
|
|
165
209
|
*
|
|
@@ -171,15 +215,7 @@ export declare class TapsilatSDK {
|
|
|
171
215
|
* @throws {TapsilatNetworkError} When API request fails due to network issues
|
|
172
216
|
* @throws {TapsilatError} When API returns an error response
|
|
173
217
|
*/
|
|
174
|
-
getOrders(params?:
|
|
175
|
-
page?: number;
|
|
176
|
-
per_page?: number;
|
|
177
|
-
start_date?: string;
|
|
178
|
-
end_date?: string;
|
|
179
|
-
status?: string;
|
|
180
|
-
organization_id?: string;
|
|
181
|
-
related_reference_id?: string;
|
|
182
|
-
}): Promise<PaginatedResponse<Order>>;
|
|
218
|
+
getOrders(params?: GetOrdersRequest): Promise<GetOrdersResponse>;
|
|
183
219
|
/**
|
|
184
220
|
* Cancels an order by reference_id.
|
|
185
221
|
*
|
|
@@ -191,19 +227,19 @@ export declare class TapsilatSDK {
|
|
|
191
227
|
* @throws {TapsilatValidationError} When referenceId is invalid
|
|
192
228
|
* @throws {TapsilatError} When API returns an error response or order cannot be canceled
|
|
193
229
|
*/
|
|
194
|
-
cancelOrder(referenceId: string): Promise<
|
|
230
|
+
cancelOrder(referenceId: string): Promise<CancelOrderResponse>;
|
|
195
231
|
/**
|
|
196
232
|
* Gets the current status of an order by reference ID
|
|
197
233
|
*
|
|
198
234
|
* @summary Retrieves real-time payment status and tracking information for a specific order
|
|
199
235
|
* @description
|
|
200
236
|
* Queries the Tapsilat payment platform to retrieve the current status of an order using its
|
|
201
|
-
* unique reference ID. This method provides real-time information about payment
|
|
202
|
-
*
|
|
237
|
+
* unique reference ID. This method provides real-time information about payment processing
|
|
238
|
+
* status and error code (if returned by the API). It's essential for tracking payment flow
|
|
203
239
|
* and implementing proper order state management in your application.
|
|
204
240
|
*
|
|
205
|
-
* The status information includes payment state
|
|
206
|
-
*
|
|
241
|
+
* The status information includes payment state and API-level error code metadata.
|
|
242
|
+
* This method should be used to:
|
|
207
243
|
* - Check if a payment has been completed after redirecting from checkout
|
|
208
244
|
* - Monitor payment status for pending transactions
|
|
209
245
|
* - Verify order state before fulfilling goods/services
|
|
@@ -212,13 +248,11 @@ export declare class TapsilatSDK {
|
|
|
212
248
|
* @param {string} referenceId - Unique order reference identifier from order creation
|
|
213
249
|
*
|
|
214
250
|
* @returns {Promise<OrderStatusResponse>} Promise resolving to current order status information
|
|
215
|
-
* @returns {string} OrderStatusResponse.
|
|
216
|
-
* @returns {string} OrderStatusResponse.status - Current payment status
|
|
217
|
-
* @returns {string} OrderStatusResponse.lastUpdatedAt - ISO 8601 timestamp of last status change
|
|
251
|
+
* @returns {string} [OrderStatusResponse.error_code] - API-level error code when present
|
|
252
|
+
* @returns {string} [OrderStatusResponse.status] - Current payment processing status
|
|
218
253
|
*
|
|
219
254
|
* @throws {TapsilatValidationError} When input validation fails:
|
|
220
255
|
* - Reference ID is null, undefined, or empty string
|
|
221
|
-
* - Reference ID format is invalid (should match order ID pattern)
|
|
222
256
|
* @throws {TapsilatNetworkError} When network request fails:
|
|
223
257
|
* - Connection timeout during status check
|
|
224
258
|
* - DNS resolution failure
|
|
@@ -254,19 +288,35 @@ export declare class TapsilatSDK {
|
|
|
254
288
|
*/
|
|
255
289
|
refundAllOrder(referenceId: string): Promise<OrderRefundResponse>;
|
|
256
290
|
/**
|
|
257
|
-
* Retrieves the payment details for an order.
|
|
291
|
+
* Retrieves the payment details for an order via POST request.
|
|
258
292
|
* Based on `get_order_payment_details` from the Python SDK.
|
|
259
|
-
*
|
|
260
|
-
* @summary Retrieve detailed payment transaction information for an order
|
|
261
|
-
* @description Gets payment method, amount, status, and card info for order transactions.
|
|
262
|
-
*
|
|
263
|
-
* @param referenceId - The unique identifier of the order.
|
|
264
|
-
* @param conversationId - Optional conversation ID for more specific querying.
|
|
265
|
-
* @returns Promise resolving to a list of payment details.
|
|
266
|
-
* @throws {TapsilatValidationError} When referenceId is invalid
|
|
267
|
-
* @throws {TapsilatError} When API returns an error response or payment details are missing
|
|
268
293
|
*/
|
|
269
|
-
getOrderPaymentDetails(
|
|
294
|
+
getOrderPaymentDetails(request: OrderPaymentDetailDTO): Promise<GetOrderPaymentDetailsResponse>;
|
|
295
|
+
/**
|
|
296
|
+
* Retrieves the payment details for an order by ID.
|
|
297
|
+
* Based on `get_order_payment_details_by_id` from the Python SDK.
|
|
298
|
+
*/
|
|
299
|
+
getOrderPaymentDetailsById(referenceId: string): Promise<GetOrderPaymentDetailsResponse>;
|
|
300
|
+
/**
|
|
301
|
+
* Retrieves the order callback via GET request.
|
|
302
|
+
* Based on `order_callback` from the Python SDK.
|
|
303
|
+
*/
|
|
304
|
+
orderCallback(id: string): Promise<OrderCallbackResponse>;
|
|
305
|
+
/**
|
|
306
|
+
* Updates payment options for an order.
|
|
307
|
+
* Based on `update_payment_options` from the Python SDK.
|
|
308
|
+
*/
|
|
309
|
+
updatePaymentOptions(request: OrderPaymentOptionsUpdateDTO): Promise<OrderRelatedUpdateResponse>;
|
|
310
|
+
/**
|
|
311
|
+
* Splits order item payment.
|
|
312
|
+
* Based on `split_order_item_payment` from the Python SDK.
|
|
313
|
+
*/
|
|
314
|
+
splitOrderItemPayment(request: SplitOrderItemPaymentDTO): Promise<OrderRelatedUpdateResponse>;
|
|
315
|
+
/**
|
|
316
|
+
* Queries vpos for an order.
|
|
317
|
+
* Based on `order_vpos_query` from the Python SDK.
|
|
318
|
+
*/
|
|
319
|
+
orderVposQuery(id: string): Promise<OrderVposQueryResponse>;
|
|
270
320
|
/**
|
|
271
321
|
* Gets an order by conversation_id.
|
|
272
322
|
* Based on `get_order_by_conversation_id` from the Python SDK.
|
|
@@ -279,7 +329,7 @@ export declare class TapsilatSDK {
|
|
|
279
329
|
* @throws {TapsilatValidationError} When conversationId is invalid
|
|
280
330
|
* @throws {TapsilatError} When API returns an error response
|
|
281
331
|
*/
|
|
282
|
-
getOrderByConversationId(conversationId: string): Promise<
|
|
332
|
+
getOrderByConversationId(conversationId: string): Promise<GetOrderResponse>;
|
|
283
333
|
/**
|
|
284
334
|
* Gets order transactions by reference_id.
|
|
285
335
|
* Based on `get_order_transactions` from the Python SDK.
|
|
@@ -292,7 +342,7 @@ export declare class TapsilatSDK {
|
|
|
292
342
|
* @throws {TapsilatValidationError} When referenceId is invalid
|
|
293
343
|
* @throws {TapsilatError} When API returns an error response
|
|
294
344
|
*/
|
|
295
|
-
getOrderTransactions(referenceId: string): Promise<
|
|
345
|
+
getOrderTransactions(referenceId: string): Promise<GetOrderTransactionsResponse>;
|
|
296
346
|
/**
|
|
297
347
|
* Gets order submerchants with pagination.
|
|
298
348
|
* Based on `get_order_submerchants` from the Python SDK.
|
|
@@ -304,10 +354,7 @@ export declare class TapsilatSDK {
|
|
|
304
354
|
* @returns Promise resolving to paginated list of submerchants
|
|
305
355
|
* @throws {TapsilatError} When API returns an error response
|
|
306
356
|
*/
|
|
307
|
-
getOrderSubmerchants(params?:
|
|
308
|
-
page?: number;
|
|
309
|
-
per_page?: number;
|
|
310
|
-
}): Promise<PaginatedResponse<OrderSubmerchant>>;
|
|
357
|
+
getOrderSubmerchants(params?: GetOrderSubmerchantsRequest): Promise<GetOrderSubmerchantsResponse>;
|
|
311
358
|
/**
|
|
312
359
|
* Gets checkout URL for an order.
|
|
313
360
|
* Based on `get_checkout_url` from the Python SDK.
|
|
@@ -393,7 +440,7 @@ export declare class TapsilatSDK {
|
|
|
393
440
|
* @throws {TapsilatValidationError} When input validation fails
|
|
394
441
|
* @throws {TapsilatError} When API returns an error response
|
|
395
442
|
*/
|
|
396
|
-
createOrderTerm(termData: OrderPaymentTermCreateDTO): Promise<
|
|
443
|
+
createOrderTerm(termData: OrderPaymentTermCreateDTO): Promise<OrderPaymentTermActionResponse>;
|
|
397
444
|
/**
|
|
398
445
|
* Updates an existing payment term
|
|
399
446
|
*
|
|
@@ -416,7 +463,7 @@ export declare class TapsilatSDK {
|
|
|
416
463
|
* @throws {TapsilatValidationError} When input validation fails
|
|
417
464
|
* @throws {TapsilatError} When API returns an error response
|
|
418
465
|
*/
|
|
419
|
-
updateOrderTerm(updateData: OrderPaymentTermUpdateDTO): Promise<
|
|
466
|
+
updateOrderTerm(updateData: OrderPaymentTermUpdateDTO): Promise<OrderPaymentTermActionResponse>;
|
|
420
467
|
/**
|
|
421
468
|
* Deletes a payment term
|
|
422
469
|
*
|
|
@@ -432,7 +479,7 @@ export declare class TapsilatSDK {
|
|
|
432
479
|
* @throws {TapsilatValidationError} When input validation fails
|
|
433
480
|
* @throws {TapsilatError} When API returns an error response
|
|
434
481
|
*/
|
|
435
|
-
deleteOrderTerm(deleteData: PaymentTermDeleteRequest): Promise<
|
|
482
|
+
deleteOrderTerm(deleteData: PaymentTermDeleteRequest): Promise<OrderPaymentTermActionResponse>;
|
|
436
483
|
/**
|
|
437
484
|
* Refunds a specific payment term
|
|
438
485
|
*
|
|
@@ -487,85 +534,97 @@ export declare class TapsilatSDK {
|
|
|
487
534
|
* @throws {TapsilatError} When API returns an error response
|
|
488
535
|
*/
|
|
489
536
|
terminateOrder(terminateData: OrderTerminateRequest): Promise<OrderTerminateResponse>;
|
|
490
|
-
orderManualCallback(referenceId: string, conversationId?: string): Promise<
|
|
491
|
-
orderRelatedUpdate(referenceId: string, relatedReferenceId: string): Promise<
|
|
537
|
+
orderManualCallback(referenceId: string, conversationId?: string): Promise<OrderManualCallbackResponse>;
|
|
538
|
+
orderRelatedUpdate(referenceId: string, relatedReferenceId: string): Promise<OrderRelatedUpdateResponse>;
|
|
492
539
|
getOrganizationSettings(): Promise<OrganizationSettings>;
|
|
493
|
-
getOrderTerm(termReferenceId: string): Promise<
|
|
540
|
+
getOrderTerm(termReferenceId: string): Promise<GetOrderTermResponse>;
|
|
494
541
|
/**
|
|
495
542
|
* Add a new item to an existing order basket
|
|
496
543
|
*/
|
|
497
|
-
addBasketItem(request: AddBasketItemRequest): Promise<
|
|
544
|
+
addBasketItem(request: AddBasketItemRequest): Promise<AddBasketItemResponse>;
|
|
498
545
|
/**
|
|
499
546
|
* Remove an item from an existing order basket
|
|
500
547
|
*/
|
|
501
|
-
removeBasketItem(request: RemoveBasketItemRequest): Promise<
|
|
548
|
+
removeBasketItem(request: RemoveBasketItemRequest): Promise<RemoveBasketItemResponse>;
|
|
502
549
|
/**
|
|
503
550
|
* Update an existing item in an order basket
|
|
504
551
|
*/
|
|
505
|
-
updateBasketItem(request: UpdateBasketItemRequest): Promise<
|
|
552
|
+
updateBasketItem(request: UpdateBasketItemRequest): Promise<UpdateBasketItemResponse>;
|
|
506
553
|
/**
|
|
507
554
|
* Retrieve organization callback (webhook) settings
|
|
508
555
|
*/
|
|
509
|
-
getOrganizationCallback(): Promise<
|
|
556
|
+
getOrganizationCallback(): Promise<CallbackURLDTO>;
|
|
510
557
|
/**
|
|
511
558
|
* Update organization callback (webhook) settings
|
|
512
559
|
*/
|
|
513
|
-
updateOrganizationCallback(request: CallbackURLDTO): Promise<
|
|
560
|
+
updateOrganizationCallback(request: CallbackURLDTO): Promise<OrganizationResponse>;
|
|
514
561
|
/**
|
|
515
562
|
* Create a new business entity within the organization
|
|
516
563
|
*/
|
|
517
|
-
createOrganizationBusiness(request: OrgCreateBusinessRequest): Promise<
|
|
564
|
+
createOrganizationBusiness(request: OrgCreateBusinessRequest): Promise<OrgCreateBusinessResponse>;
|
|
518
565
|
/**
|
|
519
566
|
* Retrieve supported currencies for the organization
|
|
520
567
|
*/
|
|
521
|
-
getOrganizationCurrencies(): Promise<
|
|
568
|
+
getOrganizationCurrencies(): Promise<GetOrganizationCurrenciesResponse>;
|
|
569
|
+
/**
|
|
570
|
+
* Retrieves organization currency presets.
|
|
571
|
+
* Based on `get_organization_currency_presets` from Python SDK.
|
|
572
|
+
*/
|
|
573
|
+
getOrganizationCurrencyPresets(): Promise<GetOrganizationCurrencyPresetsResponse>;
|
|
574
|
+
/**
|
|
575
|
+
* Retrieves organization suborganization details.
|
|
576
|
+
* Based on `get_organization_suborganization_details` from Python SDK.
|
|
577
|
+
*/
|
|
578
|
+
getOrganizationSuborganizationDetails(id: string): Promise<GetSuborganizationDetailsResponse>;
|
|
579
|
+
/**
|
|
580
|
+
* Retrieves organization suborganization submerchants.
|
|
581
|
+
* Based on `get_organization_suborganization_submerchants` from Python SDK.
|
|
582
|
+
*/
|
|
583
|
+
getOrganizationSuborganizationSubmerchants(id: string): Promise<GetSuborganizationSubmerchantsResponse>;
|
|
522
584
|
/**
|
|
523
585
|
* Retrieve limit information for a specific organization user
|
|
524
586
|
*/
|
|
525
|
-
getOrganizationLimitUser(request: GetUserLimitRequest): Promise<
|
|
587
|
+
getOrganizationLimitUser(request: GetUserLimitRequest): Promise<GetUserLimitResponse>;
|
|
526
588
|
/**
|
|
527
589
|
* Set limit for a specific organization user
|
|
528
590
|
*/
|
|
529
|
-
setOrganizationLimitUser(request: SetLimitUserRequest): Promise<
|
|
591
|
+
setOrganizationLimitUser(request: SetLimitUserRequest): Promise<SetLimitUserResponse>;
|
|
530
592
|
/**
|
|
531
593
|
* Retrieve organization overall limits
|
|
532
594
|
*/
|
|
533
|
-
getOrganizationLimits(): Promise<
|
|
595
|
+
getOrganizationLimits(): Promise<GetOrganizationLimitsResponse>;
|
|
534
596
|
/**
|
|
535
597
|
* Retrieve meta information for the organization
|
|
536
598
|
*/
|
|
537
|
-
getOrganizationMeta(): Promise<
|
|
599
|
+
getOrganizationMeta(name: string): Promise<GetMetaResponse>;
|
|
538
600
|
/**
|
|
539
601
|
* Retrieve supported scopes for the organization
|
|
540
602
|
*/
|
|
541
|
-
getOrganizationScopes(): Promise<
|
|
603
|
+
getOrganizationScopes(): Promise<GetOrganizationScopesResponse>;
|
|
542
604
|
/**
|
|
543
605
|
* Retrieve list of sub-organizations
|
|
544
606
|
*/
|
|
545
|
-
getOrganizationSuborganizations(): Promise<
|
|
607
|
+
getOrganizationSuborganizations(params?: GetSuborganizationsRequest): Promise<GetSubOrganizationListResponse>;
|
|
546
608
|
/**
|
|
547
609
|
* Create a new user within the organization
|
|
548
610
|
*/
|
|
549
|
-
createOrganizationUser(request:
|
|
611
|
+
createOrganizationUser(request: OrgCreateUserRequest): Promise<OrgCreateUserResponse>;
|
|
550
612
|
/**
|
|
551
613
|
* Verify an organization user
|
|
552
614
|
*/
|
|
553
|
-
verifyOrganizationUser(request:
|
|
615
|
+
verifyOrganizationUser(request: OrgUserVerifyRequest): Promise<OrgUserVerifyResponse>;
|
|
554
616
|
/**
|
|
555
617
|
* Verify an organization user via mobile
|
|
556
618
|
*/
|
|
557
|
-
verifyOrganizationUserMobile(request:
|
|
619
|
+
verifyOrganizationUserMobile(request: OrgUserMobileVerifyRequest): Promise<OrgUserMobileVerifyResponse>;
|
|
558
620
|
/**
|
|
559
621
|
* List virtual POS terminals for the organization
|
|
560
622
|
*/
|
|
561
|
-
listOrganizationVpos(request: GetVposRequest): Promise<
|
|
623
|
+
listOrganizationVpos(request: GetVposRequest): Promise<GetVposResponse>;
|
|
562
624
|
createSubscription(request: SubscriptionCreateRequest): Promise<SubscriptionCreateResponse>;
|
|
563
625
|
getSubscription(request: SubscriptionGetRequest): Promise<SubscriptionDetail>;
|
|
564
|
-
listSubscriptions(params?:
|
|
565
|
-
|
|
566
|
-
per_page?: number;
|
|
567
|
-
}): Promise<PaginatedResponse<SubscriptionDetail>>;
|
|
568
|
-
cancelSubscription(request: SubscriptionCancelRequest): Promise<APIResponse<unknown>>;
|
|
626
|
+
listSubscriptions(params?: ListSubscriptionsRequest): Promise<ListSubscriptionsResponse>;
|
|
627
|
+
cancelSubscription(request: SubscriptionCancelRequest): Promise<CancelSubscriptionResponse>;
|
|
569
628
|
redirectSubscription(request: SubscriptionRedirectRequest): Promise<SubscriptionRedirectResponse>;
|
|
570
629
|
}
|
|
571
630
|
//# sourceMappingURL=TapsilatSDK.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TapsilatSDK.d.ts","sourceRoot":"","sources":["../src/TapsilatSDK.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AASvD,OAAO,EACL,cAAc,EACd,iBAAiB,
|
|
1
|
+
{"version":3,"file":"TapsilatSDK.d.ts","sourceRoot":"","sources":["../src/TapsilatSDK.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AASvD,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EAEjB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EAEnB,mBAAmB,EACnB,8BAA8B,EAC9B,8BAA8B,EAC9B,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EAEnB,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,kBAAkB,EAClB,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAo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