@compassdigital/sdk.typescript 4.966.0 → 4.967.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 +32 -32
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/interface/file.d.ts +2 -2
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/location.d.ts +2 -2
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +3 -3
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/order.d.ts +1 -1
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +15 -15
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +1 -1
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/user.d.ts +2 -2
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/messages/events/OrderCreatedEvent.d.ts +1 -1
- package/lib/messages/events/OrderCreatedEvent.d.ts.map +1 -1
- package/lib/messages/events/OrderIssueCreatedEvent.d.ts +1 -1
- package/lib/messages/events/OrderIssueCreatedEvent.d.ts.map +1 -1
- package/lib/messages/events/OrderRefundCreatedEvent.d.ts +1 -1
- package/lib/messages/events/OrderRefundCreatedEvent.d.ts.map +1 -1
- package/lib/messages/events/OrderRefundDeniedEvent.d.ts +1 -1
- package/lib/messages/events/OrderRefundDeniedEvent.d.ts.map +1 -1
- package/lib/messages/events/OrderUpdatedEvent.d.ts +1 -1
- package/lib/messages/events/OrderUpdatedEvent.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +32 -32
- package/src/interface/file.ts +2 -2
- package/src/interface/location.ts +2 -2
- package/src/interface/mealplan.ts +3 -3
- package/src/interface/order.ts +1 -1
- package/src/interface/payment.ts +15 -15
- package/src/interface/shoppingcart.ts +1 -1
- package/src/interface/user.ts +2 -2
- package/src/messages/events/OrderCreatedEvent.ts +1 -1
- package/src/messages/events/OrderIssueCreatedEvent.ts +1 -1
- package/src/messages/events/OrderRefundCreatedEvent.ts +1 -1
- package/src/messages/events/OrderRefundDeniedEvent.ts +1 -1
- package/src/messages/events/OrderUpdatedEvent.ts +1 -1
package/src/index.ts
CHANGED
|
@@ -1780,7 +1780,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1780
1780
|
*/
|
|
1781
1781
|
post_payment_transaction(
|
|
1782
1782
|
id: string,
|
|
1783
|
-
body
|
|
1783
|
+
body?: PostPaymentTransactionBody,
|
|
1784
1784
|
options?: RequestOptions,
|
|
1785
1785
|
): ResponsePromise<PostPaymentTransactionResponse> {
|
|
1786
1786
|
return this.request(
|
|
@@ -1802,7 +1802,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1802
1802
|
*/
|
|
1803
1803
|
post_payment_transaction_auth(
|
|
1804
1804
|
id: string,
|
|
1805
|
-
body
|
|
1805
|
+
body?: PostPaymentTransactionAuthBody,
|
|
1806
1806
|
options?: RequestOptions,
|
|
1807
1807
|
): ResponsePromise<PostPaymentTransactionAuthResponse> {
|
|
1808
1808
|
return this.request(
|
|
@@ -1826,7 +1826,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1826
1826
|
post_payment_transaction_refund(
|
|
1827
1827
|
id: string,
|
|
1828
1828
|
transaction_id: string,
|
|
1829
|
-
body
|
|
1829
|
+
body?: PostPaymentTransactionRefundBody,
|
|
1830
1830
|
options?: RequestOptions,
|
|
1831
1831
|
): ResponsePromise<PostPaymentTransactionRefundResponse> {
|
|
1832
1832
|
return this.request(
|
|
@@ -1848,7 +1848,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1848
1848
|
*/
|
|
1849
1849
|
post_payment_transaction_capture(
|
|
1850
1850
|
id: string,
|
|
1851
|
-
body
|
|
1851
|
+
body?: PostPaymentTransactionCaptureBody,
|
|
1852
1852
|
options?: RequestOptions,
|
|
1853
1853
|
): ResponsePromise<PostPaymentTransactionCaptureResponse> {
|
|
1854
1854
|
return this.request(
|
|
@@ -1870,7 +1870,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1870
1870
|
*/
|
|
1871
1871
|
post_payment_transaction_void(
|
|
1872
1872
|
id: string,
|
|
1873
|
-
body
|
|
1873
|
+
body?: PostPaymentTransactionVoidBody,
|
|
1874
1874
|
options?: RequestOptions,
|
|
1875
1875
|
): ResponsePromise<PostPaymentTransactionVoidResponse> {
|
|
1876
1876
|
return this.request(
|
|
@@ -1914,7 +1914,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1914
1914
|
*/
|
|
1915
1915
|
post_payment_paymenttoken(
|
|
1916
1916
|
id: string,
|
|
1917
|
-
body
|
|
1917
|
+
body?: PostPaymentPaymenttokenBody,
|
|
1918
1918
|
options?: RequestOptions,
|
|
1919
1919
|
): ResponsePromise<PostPaymentPaymenttokenResponse> {
|
|
1920
1920
|
return this.request(
|
|
@@ -1934,7 +1934,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1934
1934
|
* @param options - additional request options
|
|
1935
1935
|
*/
|
|
1936
1936
|
post_payment_consumer(
|
|
1937
|
-
body
|
|
1937
|
+
body?: PostPaymentConsumerBody,
|
|
1938
1938
|
options?: RequestOptions,
|
|
1939
1939
|
): ResponsePromise<PostPaymentConsumerResponse> {
|
|
1940
1940
|
return this.request(
|
|
@@ -1954,7 +1954,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1954
1954
|
* @param options - additional request options
|
|
1955
1955
|
*/
|
|
1956
1956
|
post_payment_method(
|
|
1957
|
-
body
|
|
1957
|
+
body?: PostPaymentMethodBody,
|
|
1958
1958
|
options?: RequestOptions,
|
|
1959
1959
|
): ResponsePromise<PostPaymentMethodResponse> {
|
|
1960
1960
|
return this.request('payment', '/payment/method', 'POST', `/payment/method`, body, options);
|
|
@@ -1980,7 +1980,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1980
1980
|
* @param options - additional request options
|
|
1981
1981
|
*/
|
|
1982
1982
|
post_payment_token(
|
|
1983
|
-
body
|
|
1983
|
+
body?: PostPaymentTokenBody,
|
|
1984
1984
|
options?: RequestOptions,
|
|
1985
1985
|
): ResponsePromise<PostPaymentTokenResponse> {
|
|
1986
1986
|
return this.request('payment', '/payment/token', 'POST', `/payment/token`, body, options);
|
|
@@ -1993,7 +1993,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1993
1993
|
* @param options - additional request options
|
|
1994
1994
|
*/
|
|
1995
1995
|
put_payment_token(
|
|
1996
|
-
body
|
|
1996
|
+
body?: PutPaymentTokenBody,
|
|
1997
1997
|
options?: RequestOptions,
|
|
1998
1998
|
): ResponsePromise<PutPaymentTokenResponse> {
|
|
1999
1999
|
return this.request('payment', '/payment/token', 'PUT', `/payment/token`, body, options);
|
|
@@ -2006,7 +2006,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2006
2006
|
* @param options - additional request options
|
|
2007
2007
|
*/
|
|
2008
2008
|
delete_payment_token(
|
|
2009
|
-
body
|
|
2009
|
+
body?: DeletePaymentTokenBody,
|
|
2010
2010
|
options?: RequestOptions,
|
|
2011
2011
|
): ResponsePromise<DeletePaymentTokenResponse> {
|
|
2012
2012
|
return this.request('payment', '/payment/token', 'DELETE', `/payment/token`, body, options);
|
|
@@ -2074,7 +2074,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2074
2074
|
*/
|
|
2075
2075
|
post_payment_cashless(
|
|
2076
2076
|
id: string,
|
|
2077
|
-
body
|
|
2077
|
+
body?: PostPaymentCashlessBody,
|
|
2078
2078
|
options?: RequestOptions,
|
|
2079
2079
|
): ResponsePromise<PostPaymentCashlessResponse> {
|
|
2080
2080
|
return this.request(
|
|
@@ -2096,7 +2096,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2096
2096
|
*/
|
|
2097
2097
|
delete_payment_cashless(
|
|
2098
2098
|
id: string,
|
|
2099
|
-
body
|
|
2099
|
+
body?: DeletePaymentCashlessBody,
|
|
2100
2100
|
options?: RequestOptions,
|
|
2101
2101
|
): ResponsePromise<DeletePaymentCashlessResponse> {
|
|
2102
2102
|
return this.request(
|
|
@@ -2116,7 +2116,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2116
2116
|
* @param options - additional request options
|
|
2117
2117
|
*/
|
|
2118
2118
|
post_payment_configvalidate(
|
|
2119
|
-
body
|
|
2119
|
+
body?: PostPaymentConfigvalidateBody,
|
|
2120
2120
|
options?: RequestOptions,
|
|
2121
2121
|
): ResponsePromise<PostPaymentConfigvalidateResponse> {
|
|
2122
2122
|
return this.request(
|
|
@@ -2136,7 +2136,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2136
2136
|
* @param options - additional request options
|
|
2137
2137
|
*/
|
|
2138
2138
|
post_payment_validatemerchant(
|
|
2139
|
-
body
|
|
2139
|
+
body?: PostPaymentValidatemerchantBody,
|
|
2140
2140
|
options?: RequestOptions,
|
|
2141
2141
|
): ResponsePromise<PostPaymentValidatemerchantResponse> {
|
|
2142
2142
|
return this.request(
|
|
@@ -2254,7 +2254,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2254
2254
|
*/
|
|
2255
2255
|
post_order_issue(
|
|
2256
2256
|
id: string,
|
|
2257
|
-
body
|
|
2257
|
+
body?: PostOrderIssueBody,
|
|
2258
2258
|
options?: RequestOptions,
|
|
2259
2259
|
): ResponsePromise<PostOrderIssueResponse> {
|
|
2260
2260
|
return this.request(
|
|
@@ -2613,7 +2613,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2613
2613
|
*/
|
|
2614
2614
|
delete_location(
|
|
2615
2615
|
id: string,
|
|
2616
|
-
body
|
|
2616
|
+
body?: DeleteLocationBody,
|
|
2617
2617
|
options?: RequestOptions,
|
|
2618
2618
|
): ResponsePromise<DeleteLocationResponse> {
|
|
2619
2619
|
return this.request(
|
|
@@ -2827,7 +2827,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2827
2827
|
*/
|
|
2828
2828
|
delete_location_group(
|
|
2829
2829
|
id: string,
|
|
2830
|
-
body
|
|
2830
|
+
body?: DeleteLocationGroupBody,
|
|
2831
2831
|
options?: RequestOptions,
|
|
2832
2832
|
): ResponsePromise<DeleteLocationGroupResponse> {
|
|
2833
2833
|
return this.request(
|
|
@@ -3993,7 +3993,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3993
3993
|
*/
|
|
3994
3994
|
post_shoppingcart_clone_cart(
|
|
3995
3995
|
id: string,
|
|
3996
|
-
body
|
|
3996
|
+
body?: PostShoppingcartCloneCartBody,
|
|
3997
3997
|
options?: {
|
|
3998
3998
|
query?: PostShoppingcartCloneCartQuery;
|
|
3999
3999
|
} & RequestOptions,
|
|
@@ -4639,7 +4639,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4639
4639
|
*/
|
|
4640
4640
|
delete_mealplan(
|
|
4641
4641
|
id: string,
|
|
4642
|
-
body
|
|
4642
|
+
body?: DeleteMealplanBody,
|
|
4643
4643
|
options?: RequestOptions,
|
|
4644
4644
|
): ResponsePromise<DeleteMealplanResponse> {
|
|
4645
4645
|
return this.request(
|
|
@@ -4661,7 +4661,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4661
4661
|
*/
|
|
4662
4662
|
post_mealplan_callback(
|
|
4663
4663
|
id: string,
|
|
4664
|
-
body
|
|
4664
|
+
body?: PostMealplanCallbackBody,
|
|
4665
4665
|
options?: {
|
|
4666
4666
|
query?: PostMealplanCallbackQuery;
|
|
4667
4667
|
} & RequestOptions,
|
|
@@ -4821,7 +4821,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4821
4821
|
*/
|
|
4822
4822
|
post_mealplan_authorize(
|
|
4823
4823
|
id: string,
|
|
4824
|
-
body
|
|
4824
|
+
body?: PostMealplanAuthorizeBody,
|
|
4825
4825
|
options?: RequestOptions,
|
|
4826
4826
|
): ResponsePromise<PostMealplanAuthorizeResponse> {
|
|
4827
4827
|
return this.request(
|
|
@@ -6377,7 +6377,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6377
6377
|
* @param options - additional request options
|
|
6378
6378
|
*/
|
|
6379
6379
|
post_user_zendesk(
|
|
6380
|
-
body
|
|
6380
|
+
body?: PostUserZendeskBody,
|
|
6381
6381
|
options?: RequestOptions,
|
|
6382
6382
|
): ResponsePromise<PostUserZendeskResponse> {
|
|
6383
6383
|
return this.request('user', '/user/zendesk', 'POST', `/user/zendesk`, body, options);
|
|
@@ -6902,7 +6902,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6902
6902
|
* @param options - additional request options
|
|
6903
6903
|
*/
|
|
6904
6904
|
post_user_embedurl(
|
|
6905
|
-
body
|
|
6905
|
+
body?: PostUserEmbedurlBody,
|
|
6906
6906
|
options?: RequestOptions,
|
|
6907
6907
|
): ResponsePromise<PostUserEmbedurlResponse> {
|
|
6908
6908
|
return this.request(
|
|
@@ -7104,7 +7104,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
7104
7104
|
* @param body
|
|
7105
7105
|
* @param options - additional request options
|
|
7106
7106
|
*/
|
|
7107
|
-
post_file(body
|
|
7107
|
+
post_file(body?: PostFileBody, options?: RequestOptions): ResponsePromise<PostFileResponse> {
|
|
7108
7108
|
return this.request('file', '/file', 'POST', `/file`, body, options);
|
|
7109
7109
|
}
|
|
7110
7110
|
|
|
@@ -7115,7 +7115,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
7115
7115
|
* @param options - additional request options
|
|
7116
7116
|
*/
|
|
7117
7117
|
delete_file(
|
|
7118
|
-
body
|
|
7118
|
+
body?: DeleteFileBody,
|
|
7119
7119
|
options?: RequestOptions,
|
|
7120
7120
|
): ResponsePromise<DeleteFileResponse> {
|
|
7121
7121
|
return this.request('file', '/file', 'DELETE', `/file`, body, options);
|
|
@@ -15999,7 +15999,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
15999
15999
|
*/
|
|
16000
16000
|
post_consumer_customer_rewards(
|
|
16001
16001
|
id: string,
|
|
16002
|
-
body
|
|
16002
|
+
body?: PostConsumerCustomerRewardsBody,
|
|
16003
16003
|
options?: {
|
|
16004
16004
|
query?: PostConsumerCustomerRewardsQuery;
|
|
16005
16005
|
} & RequestOptions,
|
|
@@ -16850,7 +16850,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
16850
16850
|
*/
|
|
16851
16851
|
put_centricos_site_thrive_integration(
|
|
16852
16852
|
siteId: string,
|
|
16853
|
-
body
|
|
16853
|
+
body?: PutCentricosSiteThriveIntegrationBody,
|
|
16854
16854
|
options?: RequestOptions,
|
|
16855
16855
|
): ResponsePromise<PutCentricosSiteThriveIntegrationResponse> {
|
|
16856
16856
|
return this.request(
|
|
@@ -16872,7 +16872,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
16872
16872
|
*/
|
|
16873
16873
|
put_centricos_site_boost_integration(
|
|
16874
16874
|
siteId: string,
|
|
16875
|
-
body
|
|
16875
|
+
body?: PutCentricosSiteBoostIntegrationBody,
|
|
16876
16876
|
options?: RequestOptions,
|
|
16877
16877
|
): ResponsePromise<PutCentricosSiteBoostIntegrationResponse> {
|
|
16878
16878
|
return this.request(
|
|
@@ -16894,7 +16894,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
16894
16894
|
*/
|
|
16895
16895
|
put_centricos_site_agilysys_integration(
|
|
16896
16896
|
siteId: string,
|
|
16897
|
-
body
|
|
16897
|
+
body?: PutCentricosSiteAgilysysIntegrationBody,
|
|
16898
16898
|
options?: RequestOptions,
|
|
16899
16899
|
): ResponsePromise<PutCentricosSiteAgilysysIntegrationResponse> {
|
|
16900
16900
|
return this.request(
|
|
@@ -17067,7 +17067,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
17067
17067
|
put_centricos_station_integration(
|
|
17068
17068
|
station_id: string,
|
|
17069
17069
|
integration_type: string,
|
|
17070
|
-
body
|
|
17070
|
+
body?: PutCentricosStationIntegrationBody,
|
|
17071
17071
|
options?: RequestOptions,
|
|
17072
17072
|
): ResponsePromise<PutCentricosStationIntegrationResponse> {
|
|
17073
17073
|
return this.request(
|
|
@@ -18770,7 +18770,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
18770
18770
|
*/
|
|
18771
18771
|
post_rewards(
|
|
18772
18772
|
id: string,
|
|
18773
|
-
body
|
|
18773
|
+
body?: PostRewardsBody,
|
|
18774
18774
|
options?: {
|
|
18775
18775
|
query?: PostRewardsQuery;
|
|
18776
18776
|
} & RequestOptions,
|
package/src/interface/file.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface PostFileBody {
|
|
|
27
27
|
export type PostFileResponse = File;
|
|
28
28
|
|
|
29
29
|
export interface PostFileRequest extends BaseRequest {
|
|
30
|
-
body
|
|
30
|
+
body?: PostFileBody;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// DELETE /file - Delete a file from CDL S3
|
|
@@ -44,5 +44,5 @@ export interface DeleteFileResponse {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export interface DeleteFileRequest extends BaseRequest {
|
|
47
|
-
body
|
|
47
|
+
body?: DeleteFileBody;
|
|
48
48
|
}
|
|
@@ -840,7 +840,7 @@ export interface DeleteLocationBody {
|
|
|
840
840
|
export type DeleteLocationResponse = Location;
|
|
841
841
|
|
|
842
842
|
export interface DeleteLocationRequest extends BaseRequest, DeleteLocationPath {
|
|
843
|
-
body
|
|
843
|
+
body?: DeleteLocationBody;
|
|
844
844
|
}
|
|
845
845
|
|
|
846
846
|
// PATCH /location/{id} - Update a Location
|
|
@@ -1034,7 +1034,7 @@ export interface DeleteLocationGroupBody {
|
|
|
1034
1034
|
export type DeleteLocationGroupResponse = Group;
|
|
1035
1035
|
|
|
1036
1036
|
export interface DeleteLocationGroupRequest extends BaseRequest, DeleteLocationGroupPath {
|
|
1037
|
-
body
|
|
1037
|
+
body?: DeleteLocationGroupBody;
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
1040
|
// PATCH /location/group/{id} - Update a Group
|
|
@@ -286,7 +286,7 @@ export interface DeleteMealplanBody {
|
|
|
286
286
|
export type DeleteMealplanResponse = TendersAndAuth;
|
|
287
287
|
|
|
288
288
|
export interface DeleteMealplanRequest extends BaseRequest, DeleteMealplanPath {
|
|
289
|
-
body
|
|
289
|
+
body?: DeleteMealplanBody;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
// POST /mealplan/{id}/callback - Callback endpoint for meal plans that make a call back from a webview workflow
|
|
@@ -318,7 +318,7 @@ export interface PostMealplanCallbackRequest
|
|
|
318
318
|
extends BaseRequest,
|
|
319
319
|
RequestQuery<PostMealplanCallbackQuery>,
|
|
320
320
|
PostMealplanCallbackPath {
|
|
321
|
-
body
|
|
321
|
+
body?: PostMealplanCallbackBody;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
// GET /mealplan/{id}/barcode - Retrieve dynamic Atrium barcode ID for kiosk scan-and-pay
|
|
@@ -470,7 +470,7 @@ export interface PostMealplanAuthorizeResponse {
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
export interface PostMealplanAuthorizeRequest extends BaseRequest, PostMealplanAuthorizePath {
|
|
473
|
-
body
|
|
473
|
+
body?: PostMealplanAuthorizeBody;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
// POST /mealplan/{id}/internal/tenders - Check the user's tender balance
|
package/src/interface/order.ts
CHANGED
|
@@ -678,7 +678,7 @@ export type PostOrderIssueBody = OrderIssue;
|
|
|
678
678
|
export type PostOrderIssueResponse = Issue;
|
|
679
679
|
|
|
680
680
|
export interface PostOrderIssueRequest extends BaseRequest, PostOrderIssuePath {
|
|
681
|
-
body
|
|
681
|
+
body?: PostOrderIssueBody;
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
// PATCH /order/{id}/refund - Issue a refund on an existing order
|
package/src/interface/payment.ts
CHANGED
|
@@ -270,7 +270,7 @@ export interface PostPaymentTransactionBody {
|
|
|
270
270
|
export type PostPaymentTransactionResponse = Transaction;
|
|
271
271
|
|
|
272
272
|
export interface PostPaymentTransactionRequest extends BaseRequest, PostPaymentTransactionPath {
|
|
273
|
-
body
|
|
273
|
+
body?: PostPaymentTransactionBody;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
// POST /payment/{id}/transaction/auth - This endpoint is used to only authorize a transaction. It will not charge the transaction.
|
|
@@ -310,7 +310,7 @@ export type PostPaymentTransactionAuthResponse = Transaction;
|
|
|
310
310
|
export interface PostPaymentTransactionAuthRequest
|
|
311
311
|
extends BaseRequest,
|
|
312
312
|
PostPaymentTransactionAuthPath {
|
|
313
|
-
body
|
|
313
|
+
body?: PostPaymentTransactionAuthBody;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
// POST /payment/{id}/transaction/{transaction_id}/refund
|
|
@@ -334,7 +334,7 @@ export type PostPaymentTransactionRefundResponse = Refund;
|
|
|
334
334
|
export interface PostPaymentTransactionRefundRequest
|
|
335
335
|
extends BaseRequest,
|
|
336
336
|
PostPaymentTransactionRefundPath {
|
|
337
|
-
body
|
|
337
|
+
body?: PostPaymentTransactionRefundBody;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
// 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.
|
|
@@ -369,7 +369,7 @@ export type PostPaymentTransactionCaptureResponse = Transaction;
|
|
|
369
369
|
export interface PostPaymentTransactionCaptureRequest
|
|
370
370
|
extends BaseRequest,
|
|
371
371
|
PostPaymentTransactionCapturePath {
|
|
372
|
-
body
|
|
372
|
+
body?: PostPaymentTransactionCaptureBody;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
// 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.
|
|
@@ -391,7 +391,7 @@ export type PostPaymentTransactionVoidResponse = Transaction;
|
|
|
391
391
|
export interface PostPaymentTransactionVoidRequest
|
|
392
392
|
extends BaseRequest,
|
|
393
393
|
PostPaymentTransactionVoidPath {
|
|
394
|
-
body
|
|
394
|
+
body?: PostPaymentTransactionVoidBody;
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
// GET /payment/{id}/clienttoken
|
|
@@ -441,7 +441,7 @@ export interface PostPaymentPaymenttokenBody {
|
|
|
441
441
|
export type PostPaymentPaymenttokenResponse = PaymentMethod;
|
|
442
442
|
|
|
443
443
|
export interface PostPaymentPaymenttokenRequest extends BaseRequest, PostPaymentPaymenttokenPath {
|
|
444
|
-
body
|
|
444
|
+
body?: PostPaymentPaymenttokenBody;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
// POST /payment/consumer
|
|
@@ -454,7 +454,7 @@ export interface PostPaymentConsumerBody {
|
|
|
454
454
|
export type PostPaymentConsumerResponse = ConsumerId;
|
|
455
455
|
|
|
456
456
|
export interface PostPaymentConsumerRequest extends BaseRequest {
|
|
457
|
-
body
|
|
457
|
+
body?: PostPaymentConsumerBody;
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
// POST /payment/method
|
|
@@ -471,7 +471,7 @@ export interface PostPaymentMethodResponse {
|
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
export interface PostPaymentMethodRequest extends BaseRequest {
|
|
474
|
-
body
|
|
474
|
+
body?: PostPaymentMethodBody;
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
// GET /payment/token
|
|
@@ -504,7 +504,7 @@ export interface PostPaymentTokenBody {
|
|
|
504
504
|
export type PostPaymentTokenResponse = PaymentCard;
|
|
505
505
|
|
|
506
506
|
export interface PostPaymentTokenRequest extends BaseRequest {
|
|
507
|
-
body
|
|
507
|
+
body?: PostPaymentTokenBody;
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
// PUT /payment/token
|
|
@@ -518,7 +518,7 @@ export interface PutPaymentTokenBody {
|
|
|
518
518
|
export type PutPaymentTokenResponse = PaymentCard;
|
|
519
519
|
|
|
520
520
|
export interface PutPaymentTokenRequest extends BaseRequest {
|
|
521
|
-
body
|
|
521
|
+
body?: PutPaymentTokenBody;
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
// DELETE /payment/token
|
|
@@ -533,7 +533,7 @@ export interface DeletePaymentTokenBody {
|
|
|
533
533
|
export type DeletePaymentTokenResponse = Success;
|
|
534
534
|
|
|
535
535
|
export interface DeletePaymentTokenRequest extends BaseRequest {
|
|
536
|
-
body
|
|
536
|
+
body?: DeletePaymentTokenBody;
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
// GET /payment/methods
|
|
@@ -594,7 +594,7 @@ export interface PostPaymentCashlessResponse {
|
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
export interface PostPaymentCashlessRequest extends BaseRequest, PostPaymentCashlessPath {
|
|
597
|
-
body
|
|
597
|
+
body?: PostPaymentCashlessBody;
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
// DELETE /payment/{id}/cashless
|
|
@@ -614,7 +614,7 @@ export interface DeletePaymentCashlessResponse {
|
|
|
614
614
|
}
|
|
615
615
|
|
|
616
616
|
export interface DeletePaymentCashlessRequest extends BaseRequest, DeletePaymentCashlessPath {
|
|
617
|
-
body
|
|
617
|
+
body?: DeletePaymentCashlessBody;
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
// POST /payment/configvalidate
|
|
@@ -627,7 +627,7 @@ export interface PostPaymentConfigvalidateBody {
|
|
|
627
627
|
export type PostPaymentConfigvalidateResponse = Success;
|
|
628
628
|
|
|
629
629
|
export interface PostPaymentConfigvalidateRequest extends BaseRequest {
|
|
630
|
-
body
|
|
630
|
+
body?: PostPaymentConfigvalidateBody;
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
// POST /payment/validatemerchant
|
|
@@ -640,7 +640,7 @@ export interface PostPaymentValidatemerchantBody {
|
|
|
640
640
|
export type PostPaymentValidatemerchantResponse = ApplePayMerchantSession;
|
|
641
641
|
|
|
642
642
|
export interface PostPaymentValidatemerchantRequest extends BaseRequest {
|
|
643
|
-
body
|
|
643
|
+
body?: PostPaymentValidatemerchantBody;
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
// GET /payment/ping
|
|
@@ -1173,7 +1173,7 @@ export interface PostShoppingcartCloneCartRequest
|
|
|
1173
1173
|
extends BaseRequest,
|
|
1174
1174
|
RequestQuery<PostShoppingcartCloneCartQuery>,
|
|
1175
1175
|
PostShoppingcartCloneCartPath {
|
|
1176
|
-
body
|
|
1176
|
+
body?: PostShoppingcartCloneCartBody;
|
|
1177
1177
|
}
|
|
1178
1178
|
|
|
1179
1179
|
// PUT /shoppingcart/{id}/checkout - handle ui checkout flow and call taxjar for full tax breakdown
|
package/src/interface/user.ts
CHANGED
|
@@ -435,7 +435,7 @@ export interface PostUserZendeskResponse {
|
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
export interface PostUserZendeskRequest extends BaseRequest {
|
|
438
|
-
body
|
|
438
|
+
body?: PostUserZendeskBody;
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
// POST /user - Create an User
|
|
@@ -900,7 +900,7 @@ export interface PostUserEmbedurlResponse {
|
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
export interface PostUserEmbedurlRequest extends BaseRequest {
|
|
903
|
-
body
|
|
903
|
+
body?: PostUserEmbedurlBody;
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
// GET /user/profile - Returns user profile with limited information
|
|
@@ -250,7 +250,7 @@ export interface OrderMeta {
|
|
|
250
250
|
checkin_uuid?: string;
|
|
251
251
|
refunds?: RefundTransaction[];
|
|
252
252
|
// which ui the order was placed on
|
|
253
|
-
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat';
|
|
253
|
+
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat' | 'agent' | 'mcp';
|
|
254
254
|
transaction?: TransactionDetails;
|
|
255
255
|
shoppingcart?: ShoppingCartDetails;
|
|
256
256
|
// Indicate whether the order is active or inactive
|
|
@@ -151,7 +151,7 @@ export interface MultiLanguageLabel {
|
|
|
151
151
|
export interface OrderMeta {
|
|
152
152
|
checkin_uuid?: string;
|
|
153
153
|
refunds?: RefundTransaction[];
|
|
154
|
-
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat';
|
|
154
|
+
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat' | 'agent' | 'mcp';
|
|
155
155
|
transaction?: TransactionDetails;
|
|
156
156
|
shoppingcart?: ShoppingCartDetails;
|
|
157
157
|
active?: boolean;
|
|
@@ -151,7 +151,7 @@ export interface MultiLanguageLabel {
|
|
|
151
151
|
export interface OrderMeta {
|
|
152
152
|
checkin_uuid?: string;
|
|
153
153
|
refunds?: RefundTransaction[];
|
|
154
|
-
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat';
|
|
154
|
+
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat' | 'agent' | 'mcp';
|
|
155
155
|
transaction?: TransactionDetails;
|
|
156
156
|
shoppingcart?: ShoppingCartDetails;
|
|
157
157
|
active?: boolean;
|
|
@@ -151,7 +151,7 @@ export interface MultiLanguageLabel {
|
|
|
151
151
|
export interface OrderMeta {
|
|
152
152
|
checkin_uuid?: string;
|
|
153
153
|
refunds?: RefundTransaction[];
|
|
154
|
-
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat';
|
|
154
|
+
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat' | 'agent' | 'mcp';
|
|
155
155
|
transaction?: TransactionDetails;
|
|
156
156
|
shoppingcart?: ShoppingCartDetails;
|
|
157
157
|
active?: boolean;
|
|
@@ -250,7 +250,7 @@ export interface OrderMeta {
|
|
|
250
250
|
checkin_uuid?: string;
|
|
251
251
|
refunds?: RefundTransaction[];
|
|
252
252
|
// which ui the order was placed on
|
|
253
|
-
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat';
|
|
253
|
+
source?: 'web' | 'mobile' | 'centric_hub' | 'time2eat' | 'agent' | 'mcp';
|
|
254
254
|
transaction?: TransactionDetails;
|
|
255
255
|
shoppingcart?: ShoppingCartDetails;
|
|
256
256
|
// Indicate whether the order is active or inactive
|