@tapsilat/tapsilat-js 2026.1.14 → 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 +28 -1
- package/dist/TapsilatSDK.d.ts +199 -56
- package/dist/TapsilatSDK.d.ts.map +1 -1
- package/dist/index.cjs +699 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +977 -102
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +700 -138
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +780 -45
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +12 -10
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
[](https://tapsilat.dev)
|
|
6
6
|
|
|
7
7
|
**Enterprise-grade TypeScript SDK for Tapsilat Payment Processing Platform**
|
|
8
8
|
|
|
@@ -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
|
*
|
|
@@ -45,6 +45,26 @@ export declare class TapsilatSDK {
|
|
|
45
45
|
* @throws {TypeError} When config parameter is not an object or missing required fields
|
|
46
46
|
*/
|
|
47
47
|
constructor(config: TapsilatConfig);
|
|
48
|
+
/**
|
|
49
|
+
* Access to order operations
|
|
50
|
+
*/
|
|
51
|
+
get orders(): any;
|
|
52
|
+
/**
|
|
53
|
+
* Access to subscription operations
|
|
54
|
+
*/
|
|
55
|
+
get subscriptions(): any;
|
|
56
|
+
/**
|
|
57
|
+
* Access to organization operations
|
|
58
|
+
*/
|
|
59
|
+
get organization(): any;
|
|
60
|
+
/**
|
|
61
|
+
* Access to system operations
|
|
62
|
+
*/
|
|
63
|
+
get system(): any;
|
|
64
|
+
/**
|
|
65
|
+
* Access to webhook operations
|
|
66
|
+
*/
|
|
67
|
+
get webhooks(): any;
|
|
48
68
|
/**
|
|
49
69
|
* Creates a new order and returns a checkout URL
|
|
50
70
|
*
|
|
@@ -76,10 +96,10 @@ export declare class TapsilatSDK {
|
|
|
76
96
|
* @param {string} [orderRequest.payment_success_url] - URL to redirect after successful payment
|
|
77
97
|
* @param {string} [orderRequest.payment_failure_url] - URL to redirect after failed payment
|
|
78
98
|
* @param {number[]} [orderRequest.enabled_installments] - Allowed installment counts
|
|
79
|
-
* @param {
|
|
99
|
+
* @param {OrderMetadata[]} [orderRequest.metadata] - Additional custom key/value data
|
|
80
100
|
*
|
|
81
101
|
* @returns {Promise<OrderCreateResponse>} Promise resolving to order creation response
|
|
82
|
-
* @returns {string} OrderCreateResponse.
|
|
102
|
+
* @returns {string} [OrderCreateResponse.id] - Internal order identifier
|
|
83
103
|
* @returns {string} OrderCreateResponse.reference_id - Unique order reference for tracking
|
|
84
104
|
* @returns {string} [OrderCreateResponse.checkout_url] - Payment page URL for customer
|
|
85
105
|
* @returns {string} [OrderCreateResponse.conversation_id] - Echo of provided conversation ID
|
|
@@ -104,11 +124,11 @@ export declare class TapsilatSDK {
|
|
|
104
124
|
* @description Handles accounting operations for a specific order using its reference ID.
|
|
105
125
|
*
|
|
106
126
|
* @param {OrderAccountingRequest} request - Accounting request details
|
|
107
|
-
* @returns {Promise<
|
|
127
|
+
* @returns {Promise<OrderAccountingResponse>} Promise resolving to the accounting response
|
|
108
128
|
* @throws {TapsilatValidationError} When input validation fails
|
|
109
129
|
* @throws {TapsilatError} When API returns an error response
|
|
110
130
|
*/
|
|
111
|
-
orderAccounting(request: OrderAccountingRequest): Promise<
|
|
131
|
+
orderAccounting(request: OrderAccountingRequest): Promise<OrderAccountingResponse>;
|
|
112
132
|
/**
|
|
113
133
|
* Process post-authorization for an order
|
|
114
134
|
*
|
|
@@ -116,21 +136,61 @@ export declare class TapsilatSDK {
|
|
|
116
136
|
* @description Handles post-authorization operations for a specific order.
|
|
117
137
|
*
|
|
118
138
|
* @param {OrderPostAuthRequest} request - Post-authorization request details
|
|
119
|
-
* @returns {Promise<
|
|
139
|
+
* @returns {Promise<OrderPostAuthResponse>} Promise resolving to the post-auth response
|
|
120
140
|
* @throws {TapsilatValidationError} When input validation fails
|
|
121
141
|
* @throws {TapsilatError} When API returns an error response
|
|
122
142
|
*/
|
|
123
|
-
orderPostAuth(request: OrderPostAuthRequest): Promise<
|
|
143
|
+
orderPostAuth(request: OrderPostAuthRequest): Promise<OrderPostAuthResponse>;
|
|
124
144
|
/**
|
|
125
145
|
* Retrieve system order statuses
|
|
126
146
|
*
|
|
127
147
|
* @summary Retrieve system order statuses
|
|
128
148
|
* @description Gets a list of all possible order statuses in the system.
|
|
129
149
|
*
|
|
130
|
-
* @returns {Promise<
|
|
150
|
+
* @returns {Promise<GetSystemOrderStatusesResponse>} Promise resolving to system order statuses
|
|
131
151
|
* @throws {TapsilatError} When API returns an error response
|
|
132
152
|
*/
|
|
133
|
-
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>;
|
|
134
194
|
/**
|
|
135
195
|
* Gets an order by reference ID.
|
|
136
196
|
*
|
|
@@ -143,7 +203,7 @@ export declare class TapsilatSDK {
|
|
|
143
203
|
* @throws {TapsilatNetworkError} When API request fails due to network issues
|
|
144
204
|
* @throws {TapsilatError} When API returns an error response
|
|
145
205
|
*/
|
|
146
|
-
getOrder(referenceId: string): Promise<
|
|
206
|
+
getOrder(referenceId: string): Promise<GetOrderResponse>;
|
|
147
207
|
/**
|
|
148
208
|
* Lists orders with pagination support.
|
|
149
209
|
*
|
|
@@ -155,15 +215,7 @@ export declare class TapsilatSDK {
|
|
|
155
215
|
* @throws {TapsilatNetworkError} When API request fails due to network issues
|
|
156
216
|
* @throws {TapsilatError} When API returns an error response
|
|
157
217
|
*/
|
|
158
|
-
getOrders(params?:
|
|
159
|
-
page?: number;
|
|
160
|
-
per_page?: number;
|
|
161
|
-
start_date?: string;
|
|
162
|
-
end_date?: string;
|
|
163
|
-
status?: string;
|
|
164
|
-
organization_id?: string;
|
|
165
|
-
related_reference_id?: string;
|
|
166
|
-
}): Promise<PaginatedResponse<Order>>;
|
|
218
|
+
getOrders(params?: GetOrdersRequest): Promise<GetOrdersResponse>;
|
|
167
219
|
/**
|
|
168
220
|
* Cancels an order by reference_id.
|
|
169
221
|
*
|
|
@@ -175,19 +227,19 @@ export declare class TapsilatSDK {
|
|
|
175
227
|
* @throws {TapsilatValidationError} When referenceId is invalid
|
|
176
228
|
* @throws {TapsilatError} When API returns an error response or order cannot be canceled
|
|
177
229
|
*/
|
|
178
|
-
cancelOrder(referenceId: string): Promise<
|
|
230
|
+
cancelOrder(referenceId: string): Promise<CancelOrderResponse>;
|
|
179
231
|
/**
|
|
180
232
|
* Gets the current status of an order by reference ID
|
|
181
233
|
*
|
|
182
234
|
* @summary Retrieves real-time payment status and tracking information for a specific order
|
|
183
235
|
* @description
|
|
184
236
|
* Queries the Tapsilat payment platform to retrieve the current status of an order using its
|
|
185
|
-
* unique reference ID. This method provides real-time information about payment
|
|
186
|
-
*
|
|
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
|
|
187
239
|
* and implementing proper order state management in your application.
|
|
188
240
|
*
|
|
189
|
-
* The status information includes payment state
|
|
190
|
-
*
|
|
241
|
+
* The status information includes payment state and API-level error code metadata.
|
|
242
|
+
* This method should be used to:
|
|
191
243
|
* - Check if a payment has been completed after redirecting from checkout
|
|
192
244
|
* - Monitor payment status for pending transactions
|
|
193
245
|
* - Verify order state before fulfilling goods/services
|
|
@@ -196,13 +248,11 @@ export declare class TapsilatSDK {
|
|
|
196
248
|
* @param {string} referenceId - Unique order reference identifier from order creation
|
|
197
249
|
*
|
|
198
250
|
* @returns {Promise<OrderStatusResponse>} Promise resolving to current order status information
|
|
199
|
-
* @returns {string} OrderStatusResponse.
|
|
200
|
-
* @returns {string} OrderStatusResponse.status - Current payment status
|
|
201
|
-
* @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
|
|
202
253
|
*
|
|
203
254
|
* @throws {TapsilatValidationError} When input validation fails:
|
|
204
255
|
* - Reference ID is null, undefined, or empty string
|
|
205
|
-
* - Reference ID format is invalid (should match order ID pattern)
|
|
206
256
|
* @throws {TapsilatNetworkError} When network request fails:
|
|
207
257
|
* - Connection timeout during status check
|
|
208
258
|
* - DNS resolution failure
|
|
@@ -238,19 +288,35 @@ export declare class TapsilatSDK {
|
|
|
238
288
|
*/
|
|
239
289
|
refundAllOrder(referenceId: string): Promise<OrderRefundResponse>;
|
|
240
290
|
/**
|
|
241
|
-
* Retrieves the payment details for an order.
|
|
291
|
+
* Retrieves the payment details for an order via POST request.
|
|
242
292
|
* Based on `get_order_payment_details` from the Python SDK.
|
|
243
|
-
*
|
|
244
|
-
* @summary Retrieve detailed payment transaction information for an order
|
|
245
|
-
* @description Gets payment method, amount, status, and card info for order transactions.
|
|
246
|
-
*
|
|
247
|
-
* @param referenceId - The unique identifier of the order.
|
|
248
|
-
* @param conversationId - Optional conversation ID for more specific querying.
|
|
249
|
-
* @returns Promise resolving to a list of payment details.
|
|
250
|
-
* @throws {TapsilatValidationError} When referenceId is invalid
|
|
251
|
-
* @throws {TapsilatError} When API returns an error response or payment details are missing
|
|
252
293
|
*/
|
|
253
|
-
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>;
|
|
254
320
|
/**
|
|
255
321
|
* Gets an order by conversation_id.
|
|
256
322
|
* Based on `get_order_by_conversation_id` from the Python SDK.
|
|
@@ -263,7 +329,7 @@ export declare class TapsilatSDK {
|
|
|
263
329
|
* @throws {TapsilatValidationError} When conversationId is invalid
|
|
264
330
|
* @throws {TapsilatError} When API returns an error response
|
|
265
331
|
*/
|
|
266
|
-
getOrderByConversationId(conversationId: string): Promise<
|
|
332
|
+
getOrderByConversationId(conversationId: string): Promise<GetOrderResponse>;
|
|
267
333
|
/**
|
|
268
334
|
* Gets order transactions by reference_id.
|
|
269
335
|
* Based on `get_order_transactions` from the Python SDK.
|
|
@@ -276,7 +342,7 @@ export declare class TapsilatSDK {
|
|
|
276
342
|
* @throws {TapsilatValidationError} When referenceId is invalid
|
|
277
343
|
* @throws {TapsilatError} When API returns an error response
|
|
278
344
|
*/
|
|
279
|
-
getOrderTransactions(referenceId: string): Promise<
|
|
345
|
+
getOrderTransactions(referenceId: string): Promise<GetOrderTransactionsResponse>;
|
|
280
346
|
/**
|
|
281
347
|
* Gets order submerchants with pagination.
|
|
282
348
|
* Based on `get_order_submerchants` from the Python SDK.
|
|
@@ -288,10 +354,7 @@ export declare class TapsilatSDK {
|
|
|
288
354
|
* @returns Promise resolving to paginated list of submerchants
|
|
289
355
|
* @throws {TapsilatError} When API returns an error response
|
|
290
356
|
*/
|
|
291
|
-
getOrderSubmerchants(params?:
|
|
292
|
-
page?: number;
|
|
293
|
-
per_page?: number;
|
|
294
|
-
}): Promise<PaginatedResponse<OrderSubmerchant>>;
|
|
357
|
+
getOrderSubmerchants(params?: GetOrderSubmerchantsRequest): Promise<GetOrderSubmerchantsResponse>;
|
|
295
358
|
/**
|
|
296
359
|
* Gets checkout URL for an order.
|
|
297
360
|
* Based on `get_checkout_url` from the Python SDK.
|
|
@@ -377,7 +440,7 @@ export declare class TapsilatSDK {
|
|
|
377
440
|
* @throws {TapsilatValidationError} When input validation fails
|
|
378
441
|
* @throws {TapsilatError} When API returns an error response
|
|
379
442
|
*/
|
|
380
|
-
createOrderTerm(termData: OrderPaymentTermCreateDTO): Promise<
|
|
443
|
+
createOrderTerm(termData: OrderPaymentTermCreateDTO): Promise<OrderPaymentTermActionResponse>;
|
|
381
444
|
/**
|
|
382
445
|
* Updates an existing payment term
|
|
383
446
|
*
|
|
@@ -400,7 +463,7 @@ export declare class TapsilatSDK {
|
|
|
400
463
|
* @throws {TapsilatValidationError} When input validation fails
|
|
401
464
|
* @throws {TapsilatError} When API returns an error response
|
|
402
465
|
*/
|
|
403
|
-
updateOrderTerm(updateData: OrderPaymentTermUpdateDTO): Promise<
|
|
466
|
+
updateOrderTerm(updateData: OrderPaymentTermUpdateDTO): Promise<OrderPaymentTermActionResponse>;
|
|
404
467
|
/**
|
|
405
468
|
* Deletes a payment term
|
|
406
469
|
*
|
|
@@ -416,7 +479,7 @@ export declare class TapsilatSDK {
|
|
|
416
479
|
* @throws {TapsilatValidationError} When input validation fails
|
|
417
480
|
* @throws {TapsilatError} When API returns an error response
|
|
418
481
|
*/
|
|
419
|
-
deleteOrderTerm(deleteData: PaymentTermDeleteRequest): Promise<
|
|
482
|
+
deleteOrderTerm(deleteData: PaymentTermDeleteRequest): Promise<OrderPaymentTermActionResponse>;
|
|
420
483
|
/**
|
|
421
484
|
* Refunds a specific payment term
|
|
422
485
|
*
|
|
@@ -471,17 +534,97 @@ export declare class TapsilatSDK {
|
|
|
471
534
|
* @throws {TapsilatError} When API returns an error response
|
|
472
535
|
*/
|
|
473
536
|
terminateOrder(terminateData: OrderTerminateRequest): Promise<OrderTerminateResponse>;
|
|
474
|
-
orderManualCallback(referenceId: string, conversationId?: string): Promise<
|
|
475
|
-
orderRelatedUpdate(referenceId: string, relatedReferenceId: string): Promise<
|
|
537
|
+
orderManualCallback(referenceId: string, conversationId?: string): Promise<OrderManualCallbackResponse>;
|
|
538
|
+
orderRelatedUpdate(referenceId: string, relatedReferenceId: string): Promise<OrderRelatedUpdateResponse>;
|
|
476
539
|
getOrganizationSettings(): Promise<OrganizationSettings>;
|
|
477
|
-
getOrderTerm(termReferenceId: string): Promise<
|
|
540
|
+
getOrderTerm(termReferenceId: string): Promise<GetOrderTermResponse>;
|
|
541
|
+
/**
|
|
542
|
+
* Add a new item to an existing order basket
|
|
543
|
+
*/
|
|
544
|
+
addBasketItem(request: AddBasketItemRequest): Promise<AddBasketItemResponse>;
|
|
545
|
+
/**
|
|
546
|
+
* Remove an item from an existing order basket
|
|
547
|
+
*/
|
|
548
|
+
removeBasketItem(request: RemoveBasketItemRequest): Promise<RemoveBasketItemResponse>;
|
|
549
|
+
/**
|
|
550
|
+
* Update an existing item in an order basket
|
|
551
|
+
*/
|
|
552
|
+
updateBasketItem(request: UpdateBasketItemRequest): Promise<UpdateBasketItemResponse>;
|
|
553
|
+
/**
|
|
554
|
+
* Retrieve organization callback (webhook) settings
|
|
555
|
+
*/
|
|
556
|
+
getOrganizationCallback(): Promise<CallbackURLDTO>;
|
|
557
|
+
/**
|
|
558
|
+
* Update organization callback (webhook) settings
|
|
559
|
+
*/
|
|
560
|
+
updateOrganizationCallback(request: CallbackURLDTO): Promise<OrganizationResponse>;
|
|
561
|
+
/**
|
|
562
|
+
* Create a new business entity within the organization
|
|
563
|
+
*/
|
|
564
|
+
createOrganizationBusiness(request: OrgCreateBusinessRequest): Promise<OrgCreateBusinessResponse>;
|
|
565
|
+
/**
|
|
566
|
+
* Retrieve supported currencies for the organization
|
|
567
|
+
*/
|
|
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>;
|
|
584
|
+
/**
|
|
585
|
+
* Retrieve limit information for a specific organization user
|
|
586
|
+
*/
|
|
587
|
+
getOrganizationLimitUser(request: GetUserLimitRequest): Promise<GetUserLimitResponse>;
|
|
588
|
+
/**
|
|
589
|
+
* Set limit for a specific organization user
|
|
590
|
+
*/
|
|
591
|
+
setOrganizationLimitUser(request: SetLimitUserRequest): Promise<SetLimitUserResponse>;
|
|
592
|
+
/**
|
|
593
|
+
* Retrieve organization overall limits
|
|
594
|
+
*/
|
|
595
|
+
getOrganizationLimits(): Promise<GetOrganizationLimitsResponse>;
|
|
596
|
+
/**
|
|
597
|
+
* Retrieve meta information for the organization
|
|
598
|
+
*/
|
|
599
|
+
getOrganizationMeta(name: string): Promise<GetMetaResponse>;
|
|
600
|
+
/**
|
|
601
|
+
* Retrieve supported scopes for the organization
|
|
602
|
+
*/
|
|
603
|
+
getOrganizationScopes(): Promise<GetOrganizationScopesResponse>;
|
|
604
|
+
/**
|
|
605
|
+
* Retrieve list of sub-organizations
|
|
606
|
+
*/
|
|
607
|
+
getOrganizationSuborganizations(params?: GetSuborganizationsRequest): Promise<GetSubOrganizationListResponse>;
|
|
608
|
+
/**
|
|
609
|
+
* Create a new user within the organization
|
|
610
|
+
*/
|
|
611
|
+
createOrganizationUser(request: OrgCreateUserRequest): Promise<OrgCreateUserResponse>;
|
|
612
|
+
/**
|
|
613
|
+
* Verify an organization user
|
|
614
|
+
*/
|
|
615
|
+
verifyOrganizationUser(request: OrgUserVerifyRequest): Promise<OrgUserVerifyResponse>;
|
|
616
|
+
/**
|
|
617
|
+
* Verify an organization user via mobile
|
|
618
|
+
*/
|
|
619
|
+
verifyOrganizationUserMobile(request: OrgUserMobileVerifyRequest): Promise<OrgUserMobileVerifyResponse>;
|
|
620
|
+
/**
|
|
621
|
+
* List virtual POS terminals for the organization
|
|
622
|
+
*/
|
|
623
|
+
listOrganizationVpos(request: GetVposRequest): Promise<GetVposResponse>;
|
|
478
624
|
createSubscription(request: SubscriptionCreateRequest): Promise<SubscriptionCreateResponse>;
|
|
479
625
|
getSubscription(request: SubscriptionGetRequest): Promise<SubscriptionDetail>;
|
|
480
|
-
listSubscriptions(params?:
|
|
481
|
-
|
|
482
|
-
per_page?: number;
|
|
483
|
-
}): Promise<PaginatedResponse<SubscriptionDetail>>;
|
|
484
|
-
cancelSubscription(request: SubscriptionCancelRequest): Promise<APIResponse<unknown>>;
|
|
626
|
+
listSubscriptions(params?: ListSubscriptionsRequest): Promise<ListSubscriptionsResponse>;
|
|
627
|
+
cancelSubscription(request: SubscriptionCancelRequest): Promise<CancelSubscriptionResponse>;
|
|
485
628
|
redirectSubscription(request: SubscriptionRedirectRequest): Promise<SubscriptionRedirectResponse>;
|
|
486
629
|
}
|
|
487
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,oBAAoB,EACpB,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EAC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