@compassdigital/sdk.typescript 4.659.0 → 4.660.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/lib/index.d.ts +25 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/payment.d.ts +64 -0
- package/lib/interface/payment.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +72 -0
- package/src/interface/payment.ts +100 -0
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PostPaymentTransactionBody, PostPaymentTransactionResponse, PostPaymentTransactionRefundBody, PostPaymentTransactionRefundResponse, GetPaymentClienttokenQuery, GetPaymentClienttokenResponse, PostPaymentPaymenttokenBody, PostPaymentPaymenttokenResponse, PostPaymentConsumerBody, PostPaymentConsumerResponse, PostPaymentMethodBody, PostPaymentMethodResponse, GetPaymentTokenQuery, GetPaymentTokenResponse, PostPaymentTokenBody, PostPaymentTokenResponse, PutPaymentTokenBody, PutPaymentTokenResponse, DeletePaymentTokenBody, DeletePaymentTokenResponse, GetPaymentMethodsQuery, GetPaymentMethodsResponse, GetPaymentHpcQuery, GetPaymentHpcResponse, GetPaymentCashlessResponse, PostPaymentCashlessBody, PostPaymentCashlessResponse, DeletePaymentCashlessBody, DeletePaymentCashlessResponse, PostPaymentConfigvalidateBody, PostPaymentConfigvalidateResponse, PostPaymentValidatemerchantBody, PostPaymentValidatemerchantResponse, GetPaymentPingQuery, GetPaymentPingResponse, GetPaymentHealthQuery, GetPaymentHealthResponse } from './interface/payment';
|
|
1
|
+
import { PostPaymentTransactionBody, PostPaymentTransactionResponse, PostPaymentTransactionAuthBody, PostPaymentTransactionAuthResponse, PostPaymentTransactionRefundBody, PostPaymentTransactionRefundResponse, PostPaymentTransactionCaptureBody, PostPaymentTransactionCaptureResponse, PostPaymentTransactionVoidBody, PostPaymentTransactionVoidResponse, GetPaymentClienttokenQuery, GetPaymentClienttokenResponse, PostPaymentPaymenttokenBody, PostPaymentPaymenttokenResponse, PostPaymentConsumerBody, PostPaymentConsumerResponse, PostPaymentMethodBody, PostPaymentMethodResponse, GetPaymentTokenQuery, GetPaymentTokenResponse, PostPaymentTokenBody, PostPaymentTokenResponse, PutPaymentTokenBody, PutPaymentTokenResponse, DeletePaymentTokenBody, DeletePaymentTokenResponse, GetPaymentMethodsQuery, GetPaymentMethodsResponse, GetPaymentHpcQuery, GetPaymentHpcResponse, GetPaymentCashlessResponse, PostPaymentCashlessBody, PostPaymentCashlessResponse, DeletePaymentCashlessBody, DeletePaymentCashlessResponse, PostPaymentConfigvalidateBody, PostPaymentConfigvalidateResponse, PostPaymentValidatemerchantBody, PostPaymentValidatemerchantResponse, GetPaymentPingQuery, GetPaymentPingResponse, GetPaymentHealthQuery, GetPaymentHealthResponse } from './interface/payment';
|
|
2
2
|
import { PostOrderQuery, PostOrderBody, PostOrderResponse, PostOrderPosQuery, PostOrderPosBody, PostOrderPosResponse, GetOrderQuery, GetOrderResponse, PutOrderResponse, PatchOrderBody, PatchOrderResponse, PostOrderIssueBody, PostOrderIssueResponse, PatchOrderRefundBody, PatchOrderRefundResponse, PatchOrderCancelBody, PatchOrderCancelResponse, GetOrderCustomerOrdersQuery, GetOrderCustomerOrdersResponse, GetOrderCustomerOrdersBrandResponse, GetOrderLocationBrandQuery, GetOrderLocationBrandResponse, GetOrderLocationOrdersQuery, GetOrderLocationOrdersResponse, GetOrderGroupOrdersQuery, GetOrderGroupOrdersResponse, GetOrderUserOrdersQuery, GetOrderUserOrdersResponse, PatchOrderCheckinResponse, PostOrderApexSnsBody, PostOrderApexSnsResponse, PatchOrderEmailBody, PatchOrderEmailResponse } from './interface/order';
|
|
3
3
|
import { GetLocationPingResponse, GetHealthResponse, PostLocationBody, PostLocationResponse, GetLocationSearchQuery, GetLocationSearchResponse, GetLocationQuery, GetLocationResponse, DeleteLocationBody, DeleteLocationResponse, PatchLocationBody, PatchLocationResponse, PostLocationBatchGetBody, PostLocationBatchGetResponse, GetLocationMultigroupsQuery, GetLocationMultigroupsResponse, PostLocationMultigroupBody, PostLocationMultigroupResponse, GetLocationMultigroupQuery, GetLocationMultigroupResponse, PatchLocationMultigroupBody, PatchLocationMultigroupResponse, GetLocationUserMultigroupQuery, GetLocationUserMultigroupResponse, PostLocationGroupBody, PostLocationGroupResponse, GetLocationGroupQuery, GetLocationGroupResponse, DeleteLocationGroupBody, DeleteLocationGroupResponse, PatchLocationGroupBody, PatchLocationGroupResponse, GetLocationGroupAppThemeResponse, PostLocationGroupBatchGetQuery, PostLocationGroupBatchGetBody, PostLocationGroupBatchGetResponse, GetLocationGroupWaittimesQuery, GetLocationGroupWaittimesResponse, GetLocationGroupDeliverydestinationsQuery, GetLocationGroupDeliverydestinationsResponse, PostLocationGroupDeliverydestinationBody, PostLocationGroupDeliverydestinationResponse, PatchLocationGroupDeliverydestinationBody, PatchLocationGroupDeliverydestinationResponse, DeleteLocationGroupDeliverydestinationBody, DeleteLocationGroupDeliverydestinationResponse, GetLocationGroupDeliverydestinationQuery, GetLocationGroupDeliverydestinationResponse, GetLocationBrandTimeslotsQuery, GetLocationBrandTimeslotsResponse, PostLocationMarketplaceTimeslotsQuery, PostLocationMarketplaceTimeslotsBody, PostLocationMarketplaceTimeslotsResponse, PostLocationMarketplaceTimeslotsDeliveryQuery, PostLocationMarketplaceTimeslotsDeliveryBody, PostLocationMarketplaceTimeslotsDeliveryResponse, GetLocationBrandMenuTimeslotsQuery, GetLocationBrandMenuTimeslotsResponse, GetLocationBrandDeliveryTimeslotsQuery, GetLocationBrandDeliveryTimeslotsResponse, GetLocationBrandMenuDeliveryTimeslostsQuery, GetLocationBrandMenuDeliveryTimeslostsResponse, PostLocationBrandBody, PostLocationBrandResponse, PostLocationBrandBatchGetQuery, PostLocationBrandBatchGetBody, PostLocationBrandBatchGetResponse, PatchLocationBrandBulkBody, PatchLocationBrandBulkResponse, GetLocationBrandQuery, GetLocationBrandResponse, PatchLocationBrandBody, PatchLocationBrandResponse, DeleteLocationBrandResponse, PutLocationBrandBody, PutLocationBrandResponse, GetLocationSectorsQuery, GetLocationSectorsResponse, PostLocationSectorBody, PostLocationSectorResponse, GetLocationSectorQuery, GetLocationSectorResponse, PatchLocationSectorQuery, PatchLocationSectorBody, PatchLocationSectorResponse, PostLocationCompanyBody, PostLocationCompanyResponse, GetLocationCompanyQuery, GetLocationCompanyResponse, PatchLocationCompanyBody, PatchLocationCompanyResponse, DeleteLocationRecordQuery, DeleteLocationRecordResponse, GetLocationV2GroupsQuery, GetLocationV2GroupsResponse, DeleteLocationV2GroupResponse, PostLocationGroupRestoreResponse, GetLocationMenuAssociationBrandResponse, GetLocationMenuAssociationMenuQuery, GetLocationMenuAssociationMenuResponse } from './interface/location';
|
|
4
4
|
import { PostShoppingcartCartQuery, PostShoppingcartCartBody, PostShoppingcartCartResponse, PutShoppingcartCartItemsBody, PutShoppingcartCartItemsResponse, DeleteShoppingcartCartItemsBody, DeleteShoppingcartCartItemsResponse, GetShoppingcartCartResponse, PatchShoppingcartCartBody, PatchShoppingcartCartResponse, PutShoppingcartCartPromoBody, PutShoppingcartCartPromoResponse, DeleteShoppingcartCartPromoResponse, PutShoppingcartCartPaymentBody, PutShoppingcartCartPaymentResponse, GetShoppingcartPaymentMethodsResponse, PutShoppingcartCartOrderBody, PutShoppingcartCartOrderResponse, PostShoppingcartCloneCartQuery, PostShoppingcartCloneCartBody, PostShoppingcartCloneCartResponse, PutShoppingcartCheckoutQuery, PutShoppingcartCheckoutResponse, PostShoppingcartLockBody, PostShoppingcartLockResponse, DeleteShoppingcartLockResponse, PostShoppingcartBulkBody, PostShoppingcartBulkResponse, GetShoppingcartPingResponse, GetShoppingcartHealthResponse, DeleteShoppingcartRecordResponse } from './interface/shoppingcart';
|
|
@@ -43,6 +43,14 @@ export declare class ServiceClient extends BaseServiceClient {
|
|
|
43
43
|
* @param options - additional request options
|
|
44
44
|
*/
|
|
45
45
|
post_payment_transaction(id: string, body: PostPaymentTransactionBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* POST /payment/{id}/transaction/auth - This endpoint is used to only authorize a transaction. It will not charge the transaction.
|
|
48
|
+
*
|
|
49
|
+
* @param id - Payment ID
|
|
50
|
+
* @param body
|
|
51
|
+
* @param options - additional request options
|
|
52
|
+
*/
|
|
53
|
+
post_payment_transaction_auth(id: string, body: PostPaymentTransactionAuthBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionAuthResponse>;
|
|
46
54
|
/**
|
|
47
55
|
* POST /payment/{id}/transaction/{transaction_id}/refund
|
|
48
56
|
*
|
|
@@ -52,6 +60,22 @@ export declare class ServiceClient extends BaseServiceClient {
|
|
|
52
60
|
* @param options - additional request options
|
|
53
61
|
*/
|
|
54
62
|
post_payment_transaction_refund(id: string, transaction_id: string, body: PostPaymentTransactionRefundBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionRefundResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* POST /payment/{id}/transaction/capture - This endpoint is used to capture a transaction that has been authorized already. So there won't be second authorization.
|
|
65
|
+
*
|
|
66
|
+
* @param id - Payment ID
|
|
67
|
+
* @param body
|
|
68
|
+
* @param options - additional request options
|
|
69
|
+
*/
|
|
70
|
+
post_payment_transaction_capture(id: string, body: PostPaymentTransactionCaptureBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionCaptureResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* POST /payment/{id}/transaction/void - This endpoint is used to void a transaction that has been authorized already.So user's auth will be voided faster instead of waiting for the auth to expire.
|
|
73
|
+
*
|
|
74
|
+
* @param id - Payment ID
|
|
75
|
+
* @param body
|
|
76
|
+
* @param options - additional request options
|
|
77
|
+
*/
|
|
78
|
+
post_payment_transaction_void(id: string, body: PostPaymentTransactionVoidBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionVoidResponse>;
|
|
55
79
|
/**
|
|
56
80
|
* GET /payment/{id}/clienttoken
|
|
57
81
|
*
|