@compassdigital/sdk.typescript 4.966.0 → 4.968.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.
Files changed (44) hide show
  1. package/lib/index.d.ts +32 -32
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js.map +1 -1
  4. package/lib/interface/discount.d.ts +3 -3
  5. package/lib/interface/discount.d.ts.map +1 -1
  6. package/lib/interface/file.d.ts +2 -2
  7. package/lib/interface/file.d.ts.map +1 -1
  8. package/lib/interface/location.d.ts +2 -2
  9. package/lib/interface/location.d.ts.map +1 -1
  10. package/lib/interface/mealplan.d.ts +3 -3
  11. package/lib/interface/mealplan.d.ts.map +1 -1
  12. package/lib/interface/order.d.ts +1 -1
  13. package/lib/interface/order.d.ts.map +1 -1
  14. package/lib/interface/payment.d.ts +15 -15
  15. package/lib/interface/payment.d.ts.map +1 -1
  16. package/lib/interface/shoppingcart.d.ts +1 -1
  17. package/lib/interface/shoppingcart.d.ts.map +1 -1
  18. package/lib/interface/user.d.ts +2 -2
  19. package/lib/interface/user.d.ts.map +1 -1
  20. package/lib/messages/events/OrderCreatedEvent.d.ts +1 -1
  21. package/lib/messages/events/OrderCreatedEvent.d.ts.map +1 -1
  22. package/lib/messages/events/OrderIssueCreatedEvent.d.ts +1 -1
  23. package/lib/messages/events/OrderIssueCreatedEvent.d.ts.map +1 -1
  24. package/lib/messages/events/OrderRefundCreatedEvent.d.ts +1 -1
  25. package/lib/messages/events/OrderRefundCreatedEvent.d.ts.map +1 -1
  26. package/lib/messages/events/OrderRefundDeniedEvent.d.ts +1 -1
  27. package/lib/messages/events/OrderRefundDeniedEvent.d.ts.map +1 -1
  28. package/lib/messages/events/OrderUpdatedEvent.d.ts +1 -1
  29. package/lib/messages/events/OrderUpdatedEvent.d.ts.map +1 -1
  30. package/package.json +2 -2
  31. package/src/index.ts +32 -32
  32. package/src/interface/discount.ts +5 -5
  33. package/src/interface/file.ts +2 -2
  34. package/src/interface/location.ts +2 -2
  35. package/src/interface/mealplan.ts +3 -3
  36. package/src/interface/order.ts +1 -1
  37. package/src/interface/payment.ts +15 -15
  38. package/src/interface/shoppingcart.ts +1 -1
  39. package/src/interface/user.ts +2 -2
  40. package/src/messages/events/OrderCreatedEvent.ts +1 -1
  41. package/src/messages/events/OrderIssueCreatedEvent.ts +1 -1
  42. package/src/messages/events/OrderRefundCreatedEvent.ts +1 -1
  43. package/src/messages/events/OrderRefundDeniedEvent.ts +1 -1
  44. package/src/messages/events/OrderUpdatedEvent.ts +1 -1
package/lib/index.d.ts CHANGED
@@ -45,7 +45,7 @@ export declare class ServiceClient extends BaseServiceClient {
45
45
  * @param body
46
46
  * @param options - additional request options
47
47
  */
48
- post_payment_transaction(id: string, body: PostPaymentTransactionBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionResponse>;
48
+ post_payment_transaction(id: string, body?: PostPaymentTransactionBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionResponse>;
49
49
  /**
50
50
  * POST /payment/{id}/transaction/auth - This endpoint is used to only authorize a transaction. It will not charge the transaction.
51
51
  *
@@ -53,7 +53,7 @@ export declare class ServiceClient extends BaseServiceClient {
53
53
  * @param body
54
54
  * @param options - additional request options
55
55
  */
56
- post_payment_transaction_auth(id: string, body: PostPaymentTransactionAuthBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionAuthResponse>;
56
+ post_payment_transaction_auth(id: string, body?: PostPaymentTransactionAuthBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionAuthResponse>;
57
57
  /**
58
58
  * POST /payment/{id}/transaction/{transaction_id}/refund
59
59
  *
@@ -62,7 +62,7 @@ export declare class ServiceClient extends BaseServiceClient {
62
62
  * @param body
63
63
  * @param options - additional request options
64
64
  */
65
- post_payment_transaction_refund(id: string, transaction_id: string, body: PostPaymentTransactionRefundBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionRefundResponse>;
65
+ post_payment_transaction_refund(id: string, transaction_id: string, body?: PostPaymentTransactionRefundBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionRefundResponse>;
66
66
  /**
67
67
  * 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.
68
68
  *
@@ -70,7 +70,7 @@ export declare class ServiceClient extends BaseServiceClient {
70
70
  * @param body
71
71
  * @param options - additional request options
72
72
  */
73
- post_payment_transaction_capture(id: string, body: PostPaymentTransactionCaptureBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionCaptureResponse>;
73
+ post_payment_transaction_capture(id: string, body?: PostPaymentTransactionCaptureBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionCaptureResponse>;
74
74
  /**
75
75
  * 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.
76
76
  *
@@ -78,7 +78,7 @@ export declare class ServiceClient extends BaseServiceClient {
78
78
  * @param body
79
79
  * @param options - additional request options
80
80
  */
81
- post_payment_transaction_void(id: string, body: PostPaymentTransactionVoidBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionVoidResponse>;
81
+ post_payment_transaction_void(id: string, body?: PostPaymentTransactionVoidBody, options?: RequestOptions): ResponsePromise<PostPaymentTransactionVoidResponse>;
82
82
  /**
83
83
  * GET /payment/{id}/clienttoken
84
84
  *
@@ -95,21 +95,21 @@ export declare class ServiceClient extends BaseServiceClient {
95
95
  * @param body
96
96
  * @param options - additional request options
97
97
  */
98
- post_payment_paymenttoken(id: string, body: PostPaymentPaymenttokenBody, options?: RequestOptions): ResponsePromise<PostPaymentPaymenttokenResponse>;
98
+ post_payment_paymenttoken(id: string, body?: PostPaymentPaymenttokenBody, options?: RequestOptions): ResponsePromise<PostPaymentPaymenttokenResponse>;
99
99
  /**
100
100
  * POST /payment/consumer
101
101
  *
102
102
  * @param body
103
103
  * @param options - additional request options
104
104
  */
105
- post_payment_consumer(body: PostPaymentConsumerBody, options?: RequestOptions): ResponsePromise<PostPaymentConsumerResponse>;
105
+ post_payment_consumer(body?: PostPaymentConsumerBody, options?: RequestOptions): ResponsePromise<PostPaymentConsumerResponse>;
106
106
  /**
107
107
  * POST /payment/method
108
108
  *
109
109
  * @param body
110
110
  * @param options - additional request options
111
111
  */
112
- post_payment_method(body: PostPaymentMethodBody, options?: RequestOptions): ResponsePromise<PostPaymentMethodResponse>;
112
+ post_payment_method(body?: PostPaymentMethodBody, options?: RequestOptions): ResponsePromise<PostPaymentMethodResponse>;
113
113
  /**
114
114
  * GET /payment/token
115
115
  *
@@ -124,21 +124,21 @@ export declare class ServiceClient extends BaseServiceClient {
124
124
  * @param body
125
125
  * @param options - additional request options
126
126
  */
127
- post_payment_token(body: PostPaymentTokenBody, options?: RequestOptions): ResponsePromise<PostPaymentTokenResponse>;
127
+ post_payment_token(body?: PostPaymentTokenBody, options?: RequestOptions): ResponsePromise<PostPaymentTokenResponse>;
128
128
  /**
129
129
  * PUT /payment/token
130
130
  *
131
131
  * @param body
132
132
  * @param options - additional request options
133
133
  */
134
- put_payment_token(body: PutPaymentTokenBody, options?: RequestOptions): ResponsePromise<PutPaymentTokenResponse>;
134
+ put_payment_token(body?: PutPaymentTokenBody, options?: RequestOptions): ResponsePromise<PutPaymentTokenResponse>;
135
135
  /**
136
136
  * DELETE /payment/token
137
137
  *
138
138
  * @param body
139
139
  * @param options - additional request options
140
140
  */
141
- delete_payment_token(body: DeletePaymentTokenBody, options?: RequestOptions): ResponsePromise<DeletePaymentTokenResponse>;
141
+ delete_payment_token(body?: DeletePaymentTokenBody, options?: RequestOptions): ResponsePromise<DeletePaymentTokenResponse>;
142
142
  /**
143
143
  * GET /payment/methods
144
144
  *
@@ -169,7 +169,7 @@ export declare class ServiceClient extends BaseServiceClient {
169
169
  * @param body
170
170
  * @param options - additional request options
171
171
  */
172
- post_payment_cashless(id: string, body: PostPaymentCashlessBody, options?: RequestOptions): ResponsePromise<PostPaymentCashlessResponse>;
172
+ post_payment_cashless(id: string, body?: PostPaymentCashlessBody, options?: RequestOptions): ResponsePromise<PostPaymentCashlessResponse>;
173
173
  /**
174
174
  * DELETE /payment/{id}/cashless
175
175
  *
@@ -177,21 +177,21 @@ export declare class ServiceClient extends BaseServiceClient {
177
177
  * @param body
178
178
  * @param options - additional request options
179
179
  */
180
- delete_payment_cashless(id: string, body: DeletePaymentCashlessBody, options?: RequestOptions): ResponsePromise<DeletePaymentCashlessResponse>;
180
+ delete_payment_cashless(id: string, body?: DeletePaymentCashlessBody, options?: RequestOptions): ResponsePromise<DeletePaymentCashlessResponse>;
181
181
  /**
182
182
  * POST /payment/configvalidate
183
183
  *
184
184
  * @param body
185
185
  * @param options - additional request options
186
186
  */
187
- post_payment_configvalidate(body: PostPaymentConfigvalidateBody, options?: RequestOptions): ResponsePromise<PostPaymentConfigvalidateResponse>;
187
+ post_payment_configvalidate(body?: PostPaymentConfigvalidateBody, options?: RequestOptions): ResponsePromise<PostPaymentConfigvalidateResponse>;
188
188
  /**
189
189
  * POST /payment/validatemerchant
190
190
  *
191
191
  * @param body
192
192
  * @param options - additional request options
193
193
  */
194
- post_payment_validatemerchant(body: PostPaymentValidatemerchantBody, options?: RequestOptions): ResponsePromise<PostPaymentValidatemerchantResponse>;
194
+ post_payment_validatemerchant(body?: PostPaymentValidatemerchantBody, options?: RequestOptions): ResponsePromise<PostPaymentValidatemerchantResponse>;
195
195
  /**
196
196
  * GET /payment/ping
197
197
  *
@@ -257,7 +257,7 @@ export declare class ServiceClient extends BaseServiceClient {
257
257
  * @param body - Order issue payload. If reporting dispute please use type as 'DISPUTE'. In case of dispute 'item id' and 'reason' are mandatory params in body.
258
258
  * @param options - additional request options
259
259
  */
260
- post_order_issue(id: string, body: PostOrderIssueBody, options?: RequestOptions): ResponsePromise<PostOrderIssueResponse>;
260
+ post_order_issue(id: string, body?: PostOrderIssueBody, options?: RequestOptions): ResponsePromise<PostOrderIssueResponse>;
261
261
  /**
262
262
  * PATCH /order/{id}/refund - Issue a refund on an existing order
263
263
  *
@@ -412,7 +412,7 @@ export declare class ServiceClient extends BaseServiceClient {
412
412
  * @param body
413
413
  * @param options - additional request options
414
414
  */
415
- delete_location(id: string, body: DeleteLocationBody, options?: RequestOptions): ResponsePromise<DeleteLocationResponse>;
415
+ delete_location(id: string, body?: DeleteLocationBody, options?: RequestOptions): ResponsePromise<DeleteLocationResponse>;
416
416
  /**
417
417
  * PATCH /location/{id} - Update a Location
418
418
  *
@@ -493,7 +493,7 @@ export declare class ServiceClient extends BaseServiceClient {
493
493
  * @param body
494
494
  * @param options - additional request options
495
495
  */
496
- delete_location_group(id: string, body: DeleteLocationGroupBody, options?: RequestOptions): ResponsePromise<DeleteLocationGroupResponse>;
496
+ delete_location_group(id: string, body?: DeleteLocationGroupBody, options?: RequestOptions): ResponsePromise<DeleteLocationGroupResponse>;
497
497
  /**
498
498
  * PATCH /location/group/{id} - Update a Group
499
499
  *
@@ -934,7 +934,7 @@ export declare class ServiceClient extends BaseServiceClient {
934
934
  * @param body
935
935
  * @param options - additional request options
936
936
  */
937
- post_shoppingcart_clone_cart(id: string, body: PostShoppingcartCloneCartBody, options?: {
937
+ post_shoppingcart_clone_cart(id: string, body?: PostShoppingcartCloneCartBody, options?: {
938
938
  query?: PostShoppingcartCloneCartQuery;
939
939
  } & RequestOptions): ResponsePromise<PostShoppingcartCloneCartResponse>;
940
940
  /**
@@ -1217,7 +1217,7 @@ export declare class ServiceClient extends BaseServiceClient {
1217
1217
  * @param body - Tenders to be deleted. If not passed, it will delete all the tenders for this user
1218
1218
  * @param options - additional request options
1219
1219
  */
1220
- delete_mealplan(id: string, body: DeleteMealplanBody, options?: RequestOptions): ResponsePromise<DeleteMealplanResponse>;
1220
+ delete_mealplan(id: string, body?: DeleteMealplanBody, options?: RequestOptions): ResponsePromise<DeleteMealplanResponse>;
1221
1221
  /**
1222
1222
  * POST /mealplan/{id}/callback - Callback endpoint for meal plans that make a call back from a webview workflow
1223
1223
  *
@@ -1225,7 +1225,7 @@ export declare class ServiceClient extends BaseServiceClient {
1225
1225
  * @param body
1226
1226
  * @param options - additional request options
1227
1227
  */
1228
- post_mealplan_callback(id: string, body: PostMealplanCallbackBody, options?: {
1228
+ post_mealplan_callback(id: string, body?: PostMealplanCallbackBody, options?: {
1229
1229
  query?: PostMealplanCallbackQuery;
1230
1230
  } & RequestOptions): ResponsePromise<PostMealplanCallbackResponse>;
1231
1231
  /**
@@ -1286,7 +1286,7 @@ export declare class ServiceClient extends BaseServiceClient {
1286
1286
  * @param body
1287
1287
  * @param options - additional request options
1288
1288
  */
1289
- post_mealplan_authorize(id: string, body: PostMealplanAuthorizeBody, options?: RequestOptions): ResponsePromise<PostMealplanAuthorizeResponse>;
1289
+ post_mealplan_authorize(id: string, body?: PostMealplanAuthorizeBody, options?: RequestOptions): ResponsePromise<PostMealplanAuthorizeResponse>;
1290
1290
  /**
1291
1291
  * POST /mealplan/{id}/internal/tenders - Check the user's tender balance
1292
1292
  *
@@ -1919,7 +1919,7 @@ export declare class ServiceClient extends BaseServiceClient {
1919
1919
  * @param body
1920
1920
  * @param options - additional request options
1921
1921
  */
1922
- post_user_zendesk(body: PostUserZendeskBody, options?: RequestOptions): ResponsePromise<PostUserZendeskResponse>;
1922
+ post_user_zendesk(body?: PostUserZendeskBody, options?: RequestOptions): ResponsePromise<PostUserZendeskResponse>;
1923
1923
  /**
1924
1924
  * POST /user - Create an User
1925
1925
  *
@@ -2147,7 +2147,7 @@ export declare class ServiceClient extends BaseServiceClient {
2147
2147
  * @param body
2148
2148
  * @param options - additional request options
2149
2149
  */
2150
- post_user_embedurl(body: PostUserEmbedurlBody, options?: RequestOptions): ResponsePromise<PostUserEmbedurlResponse>;
2150
+ post_user_embedurl(body?: PostUserEmbedurlBody, options?: RequestOptions): ResponsePromise<PostUserEmbedurlResponse>;
2151
2151
  /**
2152
2152
  * GET /user/profile - Returns user profile with limited information
2153
2153
  *
@@ -2241,14 +2241,14 @@ export declare class ServiceClient extends BaseServiceClient {
2241
2241
  * @param body
2242
2242
  * @param options - additional request options
2243
2243
  */
2244
- post_file(body: PostFileBody, options?: RequestOptions): ResponsePromise<PostFileResponse>;
2244
+ post_file(body?: PostFileBody, options?: RequestOptions): ResponsePromise<PostFileResponse>;
2245
2245
  /**
2246
2246
  * DELETE /file - Delete a file from CDL S3
2247
2247
  *
2248
2248
  * @param body
2249
2249
  * @param options - additional request options
2250
2250
  */
2251
- delete_file(body: DeleteFileBody, options?: RequestOptions): ResponsePromise<DeleteFileResponse>;
2251
+ delete_file(body?: DeleteFileBody, options?: RequestOptions): ResponsePromise<DeleteFileResponse>;
2252
2252
  /**
2253
2253
  * GET /menu - Get Menus or search for Menus
2254
2254
  *
@@ -5700,7 +5700,7 @@ export declare class ServiceClient extends BaseServiceClient {
5700
5700
  * @param body - The shoppingcart brands
5701
5701
  * @param options - additional request options
5702
5702
  */
5703
- post_consumer_customer_rewards(id: string, body: PostConsumerCustomerRewardsBody, options?: {
5703
+ post_consumer_customer_rewards(id: string, body?: PostConsumerCustomerRewardsBody, options?: {
5704
5704
  query?: PostConsumerCustomerRewardsQuery;
5705
5705
  } & RequestOptions): ResponsePromise<PostConsumerCustomerRewardsResponse>;
5706
5706
  /**
@@ -6014,7 +6014,7 @@ export declare class ServiceClient extends BaseServiceClient {
6014
6014
  * @param body
6015
6015
  * @param options - additional request options
6016
6016
  */
6017
- put_centricos_site_thrive_integration(siteId: string, body: PutCentricosSiteThriveIntegrationBody, options?: RequestOptions): ResponsePromise<PutCentricosSiteThriveIntegrationResponse>;
6017
+ put_centricos_site_thrive_integration(siteId: string, body?: PutCentricosSiteThriveIntegrationBody, options?: RequestOptions): ResponsePromise<PutCentricosSiteThriveIntegrationResponse>;
6018
6018
  /**
6019
6019
  * PUT /centricos/sites/{siteId}/integration/boost - Connect Boost to the site and save its settings
6020
6020
  *
@@ -6022,7 +6022,7 @@ export declare class ServiceClient extends BaseServiceClient {
6022
6022
  * @param body
6023
6023
  * @param options - additional request options
6024
6024
  */
6025
- put_centricos_site_boost_integration(siteId: string, body: PutCentricosSiteBoostIntegrationBody, options?: RequestOptions): ResponsePromise<PutCentricosSiteBoostIntegrationResponse>;
6025
+ put_centricos_site_boost_integration(siteId: string, body?: PutCentricosSiteBoostIntegrationBody, options?: RequestOptions): ResponsePromise<PutCentricosSiteBoostIntegrationResponse>;
6026
6026
  /**
6027
6027
  * PUT /centricos/sites/{siteId}/integration/agilysys - Connect Agilysys to the site and save its settings
6028
6028
  *
@@ -6030,7 +6030,7 @@ export declare class ServiceClient extends BaseServiceClient {
6030
6030
  * @param body
6031
6031
  * @param options - additional request options
6032
6032
  */
6033
- put_centricos_site_agilysys_integration(siteId: string, body: PutCentricosSiteAgilysysIntegrationBody, options?: RequestOptions): ResponsePromise<PutCentricosSiteAgilysysIntegrationResponse>;
6033
+ put_centricos_site_agilysys_integration(siteId: string, body?: PutCentricosSiteAgilysysIntegrationBody, options?: RequestOptions): ResponsePromise<PutCentricosSiteAgilysysIntegrationResponse>;
6034
6034
  /**
6035
6035
  * PUT /centricos/sites/{siteId}/integration/{integration_type} - Connect an integration that has no site settings to the site
6036
6036
  *
@@ -6083,7 +6083,7 @@ export declare class ServiceClient extends BaseServiceClient {
6083
6083
  * @param body
6084
6084
  * @param options - additional request options
6085
6085
  */
6086
- put_centricos_station_integration(station_id: string, integration_type: string, body: PutCentricosStationIntegrationBody, options?: RequestOptions): ResponsePromise<PutCentricosStationIntegrationResponse>;
6086
+ put_centricos_station_integration(station_id: string, integration_type: string, body?: PutCentricosStationIntegrationBody, options?: RequestOptions): ResponsePromise<PutCentricosStationIntegrationResponse>;
6087
6087
  /**
6088
6088
  * DELETE /centricos/station/{station_id}/{integration_type} - Delete station integration
6089
6089
  *
@@ -6766,7 +6766,7 @@ export declare class ServiceClient extends BaseServiceClient {
6766
6766
  * @param body - The shopping cart brands
6767
6767
  * @param options - additional request options
6768
6768
  */
6769
- post_rewards(id: string, body: PostRewardsBody, options?: {
6769
+ post_rewards(id: string, body?: PostRewardsBody, options?: {
6770
6770
  query?: PostRewardsQuery;
6771
6771
  } & RequestOptions): ResponsePromise<PostRewardsResponse>;
6772
6772
  /**