@compassdigital/sdk.typescript 4.26.0 → 4.28.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/.vscode/settings.json +5 -0
- package/lib/index.d.ts +63 -37
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +61 -36
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +76 -0
- package/lib/interface/consumer.d.ts.map +1 -0
- package/lib/interface/consumer.js +5 -0
- package/lib/interface/consumer.js.map +1 -0
- package/lib/interface/frictionless.d.ts +107 -107
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/location.d.ts +12 -13
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +0 -4
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +16 -15
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +3 -1
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +5 -3
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +10 -3
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/task.d.ts +3 -0
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +14 -12
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts.map +1 -1
- package/manifest.json +5 -1
- package/package.json +3 -3
- package/pipeline.yml +1 -1
- package/src/index.ts +168 -97
- package/src/interface/consumer.ts +105 -0
- package/src/interface/frictionless.ts +200 -158
- package/src/interface/location.ts +18 -16
- package/src/interface/mealplan.ts +1 -9
- package/src/interface/menu.ts +21 -15
- package/src/interface/order.ts +12 -1
- package/src/interface/partner.ts +14 -3
- package/src/interface/promo.ts +10 -3
- package/src/interface/task.ts +4 -0
- package/src/interface/user.ts +20 -14
- package/src/interface/vendor.ts +0 -1
package/src/index.ts
CHANGED
|
@@ -108,6 +108,8 @@ import {
|
|
|
108
108
|
DeleteLocationGroupResponse,
|
|
109
109
|
PatchLocationGroupBody,
|
|
110
110
|
PatchLocationGroupResponse,
|
|
111
|
+
GetLocationGroupWaittimesQuery,
|
|
112
|
+
GetLocationGroupWaittimesResponse,
|
|
111
113
|
GetLocationGroupDeliverydestinationsQuery,
|
|
112
114
|
GetLocationGroupDeliverydestinationsResponse,
|
|
113
115
|
PostLocationGroupDeliverydestinationBody,
|
|
@@ -874,29 +876,36 @@ import {
|
|
|
874
876
|
} from "./interface/delivery";
|
|
875
877
|
|
|
876
878
|
import {
|
|
877
|
-
PostFrictionlessWebhookStandardcognitionBody,
|
|
878
|
-
PostFrictionlessWebhookStandardcognitionResponse,
|
|
879
|
-
PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody,
|
|
880
|
-
PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysResponse,
|
|
881
|
-
PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody,
|
|
882
|
-
PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse,
|
|
883
879
|
GetFrictionlessBrandFrictionlessStatusQuery,
|
|
884
880
|
GetFrictionlessBrandFrictionlessStatusResponse,
|
|
885
881
|
PostFrictionlessQrCodeBody,
|
|
886
882
|
PostFrictionlessQrCodeResponse,
|
|
887
|
-
GetFrictionlessFailedCheckinsQuery,
|
|
888
|
-
GetFrictionlessFailedCheckinsResponse,
|
|
889
|
-
PostFrictionlessCheckinsReprocessResponse,
|
|
890
883
|
GetFrictionlessCheckinStatusQuery,
|
|
891
884
|
GetFrictionlessCheckinStatusResponse,
|
|
885
|
+
GetFrictionlessCheckinQuery,
|
|
886
|
+
GetFrictionlessCheckinResponse,
|
|
892
887
|
GetFrictionlessUsersPaymentIssuesQuery,
|
|
893
888
|
GetFrictionlessUsersPaymentIssuesResponse,
|
|
889
|
+
GetFrictionlessFailedCheckinsQuery,
|
|
890
|
+
GetFrictionlessFailedCheckinsResponse,
|
|
891
|
+
PostFrictionlessCheckinsReprocessResponse,
|
|
894
892
|
PostFrictionlessCheckinReprocessPaymentBody,
|
|
895
893
|
PostFrictionlessCheckinReprocessPaymentResponse,
|
|
896
|
-
|
|
897
|
-
|
|
894
|
+
PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody,
|
|
895
|
+
PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysResponse,
|
|
896
|
+
PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody,
|
|
897
|
+
PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse,
|
|
898
|
+
PostFrictionlessWebhookStandardcognitionBody,
|
|
899
|
+
PostFrictionlessWebhookStandardcognitionResponse,
|
|
898
900
|
} from "./interface/frictionless";
|
|
899
901
|
|
|
902
|
+
import {
|
|
903
|
+
HealthCheckControllerExecuteQuery,
|
|
904
|
+
HealthCheckControllerExecuteResponse,
|
|
905
|
+
GetPaymentListByBrandQuery,
|
|
906
|
+
GetPaymentListByBrandResponse,
|
|
907
|
+
} from "./interface/consumer";
|
|
908
|
+
|
|
900
909
|
import {
|
|
901
910
|
PostAiLanguageGenerateBody,
|
|
902
911
|
PostAiLanguageGenerateResponse,
|
|
@@ -1889,6 +1898,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1889
1898
|
);
|
|
1890
1899
|
}
|
|
1891
1900
|
|
|
1901
|
+
/**
|
|
1902
|
+
* GET /location/group/{id}/waittimes - Get an individual Group's estimated wait times based on id
|
|
1903
|
+
*
|
|
1904
|
+
* @param id - group id
|
|
1905
|
+
* @param options - additional request options
|
|
1906
|
+
*/
|
|
1907
|
+
get_location_group_waittimes(
|
|
1908
|
+
id: string,
|
|
1909
|
+
options?: {
|
|
1910
|
+
query?: GetLocationGroupWaittimesQuery;
|
|
1911
|
+
} & RequestOptions,
|
|
1912
|
+
): ResponsePromise<GetLocationGroupWaittimesResponse> {
|
|
1913
|
+
return this.request(
|
|
1914
|
+
"location",
|
|
1915
|
+
"get_location_group_waittimes",
|
|
1916
|
+
"get",
|
|
1917
|
+
`/location/group/${id}/waittimes`,
|
|
1918
|
+
null,
|
|
1919
|
+
options,
|
|
1920
|
+
);
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1892
1923
|
/**
|
|
1893
1924
|
* GET /location/group/{id}/deliverydestination - Get all delivery destinations for group
|
|
1894
1925
|
*
|
|
@@ -8698,7 +8729,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
8698
8729
|
/**
|
|
8699
8730
|
* PATCH /vendor/application/{id} - Update an application (or update status)
|
|
8700
8731
|
*
|
|
8701
|
-
* @param id
|
|
8732
|
+
* @param id
|
|
8702
8733
|
* @param body
|
|
8703
8734
|
* @param options - additional request options
|
|
8704
8735
|
*/
|
|
@@ -9004,103 +9035,109 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
9004
9035
|
}
|
|
9005
9036
|
|
|
9006
9037
|
/**
|
|
9007
|
-
*
|
|
9038
|
+
* GET /frictionless/brand/{id_brand}/frictionless-status - Check frictionless support of a given brand
|
|
9008
9039
|
*
|
|
9009
|
-
* @param
|
|
9040
|
+
* @param id_brand - Brand ID as Encoded CDL ID
|
|
9010
9041
|
* @param options - additional request options
|
|
9011
9042
|
*/
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
options?:
|
|
9015
|
-
|
|
9043
|
+
get_frictionless_brand_frictionless_status(
|
|
9044
|
+
id_brand: string,
|
|
9045
|
+
options?: {
|
|
9046
|
+
query?: GetFrictionlessBrandFrictionlessStatusQuery;
|
|
9047
|
+
} & RequestOptions,
|
|
9048
|
+
): ResponsePromise<GetFrictionlessBrandFrictionlessStatusResponse> {
|
|
9016
9049
|
return this.request(
|
|
9017
9050
|
"frictionless",
|
|
9018
|
-
"
|
|
9019
|
-
"
|
|
9020
|
-
`/frictionless/
|
|
9021
|
-
|
|
9051
|
+
"get_frictionless_brand_frictionless_status",
|
|
9052
|
+
"get",
|
|
9053
|
+
`/frictionless/brand/${id_brand}/frictionless-status`,
|
|
9054
|
+
null,
|
|
9022
9055
|
options,
|
|
9023
9056
|
);
|
|
9024
9057
|
}
|
|
9025
9058
|
|
|
9026
9059
|
/**
|
|
9027
|
-
* POST /frictionless/
|
|
9060
|
+
* POST /frictionless/qrcode - Create Frictionless QR Code to make user able to check in
|
|
9028
9061
|
*
|
|
9029
9062
|
* @param body
|
|
9030
9063
|
* @param options - additional request options
|
|
9031
9064
|
*/
|
|
9032
|
-
|
|
9033
|
-
body:
|
|
9065
|
+
post_frictionless_qr_code(
|
|
9066
|
+
body: PostFrictionlessQrCodeBody,
|
|
9034
9067
|
options?: RequestOptions,
|
|
9035
|
-
): ResponsePromise<
|
|
9068
|
+
): ResponsePromise<PostFrictionlessQrCodeResponse> {
|
|
9036
9069
|
return this.request(
|
|
9037
9070
|
"frictionless",
|
|
9038
|
-
"
|
|
9071
|
+
"post_frictionless_qr_code",
|
|
9039
9072
|
"post",
|
|
9040
|
-
`/frictionless/
|
|
9073
|
+
`/frictionless/qrcode`,
|
|
9041
9074
|
body,
|
|
9042
9075
|
options,
|
|
9043
9076
|
);
|
|
9044
9077
|
}
|
|
9045
9078
|
|
|
9046
9079
|
/**
|
|
9047
|
-
*
|
|
9080
|
+
* GET /frictionless/checkin/{id_checkin}/status - Fetch CheckIn Status
|
|
9048
9081
|
*
|
|
9049
|
-
* @param
|
|
9082
|
+
* @param id_checkin
|
|
9050
9083
|
* @param options - additional request options
|
|
9051
9084
|
*/
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
options?:
|
|
9055
|
-
|
|
9085
|
+
get_frictionless_checkin_status(
|
|
9086
|
+
id_checkin: string,
|
|
9087
|
+
options?: {
|
|
9088
|
+
query?: GetFrictionlessCheckinStatusQuery;
|
|
9089
|
+
} & RequestOptions,
|
|
9090
|
+
): ResponsePromise<GetFrictionlessCheckinStatusResponse> {
|
|
9056
9091
|
return this.request(
|
|
9057
9092
|
"frictionless",
|
|
9058
|
-
"
|
|
9059
|
-
"
|
|
9060
|
-
`/frictionless/
|
|
9061
|
-
|
|
9093
|
+
"get_frictionless_checkin_status",
|
|
9094
|
+
"get",
|
|
9095
|
+
`/frictionless/checkin/${id_checkin}/status`,
|
|
9096
|
+
null,
|
|
9062
9097
|
options,
|
|
9063
9098
|
);
|
|
9064
9099
|
}
|
|
9065
9100
|
|
|
9066
9101
|
/**
|
|
9067
|
-
* GET /frictionless/
|
|
9102
|
+
* GET /frictionless/checkin/{id_checkin} - Fetch CheckIn
|
|
9068
9103
|
*
|
|
9069
|
-
* @param
|
|
9104
|
+
* @param id_checkin
|
|
9070
9105
|
* @param options - additional request options
|
|
9071
9106
|
*/
|
|
9072
|
-
|
|
9073
|
-
|
|
9107
|
+
get_frictionless_checkin(
|
|
9108
|
+
id_checkin: string,
|
|
9074
9109
|
options?: {
|
|
9075
|
-
query?:
|
|
9110
|
+
query?: GetFrictionlessCheckinQuery;
|
|
9076
9111
|
} & RequestOptions,
|
|
9077
|
-
): ResponsePromise<
|
|
9112
|
+
): ResponsePromise<GetFrictionlessCheckinResponse> {
|
|
9078
9113
|
return this.request(
|
|
9079
9114
|
"frictionless",
|
|
9080
|
-
"
|
|
9115
|
+
"get_frictionless_checkin",
|
|
9081
9116
|
"get",
|
|
9082
|
-
`/frictionless/
|
|
9117
|
+
`/frictionless/checkin/${id_checkin}`,
|
|
9083
9118
|
null,
|
|
9084
9119
|
options,
|
|
9085
9120
|
);
|
|
9086
9121
|
}
|
|
9087
9122
|
|
|
9088
9123
|
/**
|
|
9089
|
-
*
|
|
9124
|
+
* GET /frictionless/users/{user_id}/checkins/payment-issues - List check-ins with update payment required per user
|
|
9090
9125
|
*
|
|
9091
|
-
* @param
|
|
9126
|
+
* @param user_id
|
|
9092
9127
|
* @param options - additional request options
|
|
9093
9128
|
*/
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
options?:
|
|
9097
|
-
|
|
9129
|
+
get_frictionless_users_payment_issues(
|
|
9130
|
+
user_id: string,
|
|
9131
|
+
options?: {
|
|
9132
|
+
query?: GetFrictionlessUsersPaymentIssuesQuery;
|
|
9133
|
+
} & RequestOptions,
|
|
9134
|
+
): ResponsePromise<GetFrictionlessUsersPaymentIssuesResponse> {
|
|
9098
9135
|
return this.request(
|
|
9099
9136
|
"frictionless",
|
|
9100
|
-
"
|
|
9101
|
-
"
|
|
9102
|
-
`/frictionless/
|
|
9103
|
-
|
|
9137
|
+
"get_frictionless_users_payment_issues",
|
|
9138
|
+
"get",
|
|
9139
|
+
`/frictionless/users/${user_id}/checkins/payment-issues`,
|
|
9140
|
+
null,
|
|
9104
9141
|
options,
|
|
9105
9142
|
);
|
|
9106
9143
|
}
|
|
@@ -9146,88 +9183,122 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
9146
9183
|
}
|
|
9147
9184
|
|
|
9148
9185
|
/**
|
|
9149
|
-
*
|
|
9186
|
+
* POST /frictionless/checkins/{checkin_id}/reprocess-payment - Update payment at checkin and trigger reprocessing
|
|
9150
9187
|
*
|
|
9151
|
-
* @param
|
|
9188
|
+
* @param checkin_id
|
|
9189
|
+
* @param body
|
|
9152
9190
|
* @param options - additional request options
|
|
9153
9191
|
*/
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
): ResponsePromise<GetFrictionlessCheckinStatusResponse> {
|
|
9192
|
+
post_frictionless_checkin_reprocess_payment(
|
|
9193
|
+
checkin_id: string,
|
|
9194
|
+
body: PostFrictionlessCheckinReprocessPaymentBody,
|
|
9195
|
+
options?: RequestOptions,
|
|
9196
|
+
): ResponsePromise<PostFrictionlessCheckinReprocessPaymentResponse> {
|
|
9160
9197
|
return this.request(
|
|
9161
9198
|
"frictionless",
|
|
9162
|
-
"
|
|
9163
|
-
"
|
|
9164
|
-
`/frictionless/
|
|
9165
|
-
|
|
9199
|
+
"post_frictionless_checkin_reprocess_payment",
|
|
9200
|
+
"post",
|
|
9201
|
+
`/frictionless/checkins/${checkin_id}/reprocess-payment`,
|
|
9202
|
+
body,
|
|
9166
9203
|
options,
|
|
9167
9204
|
);
|
|
9168
9205
|
}
|
|
9169
9206
|
|
|
9170
9207
|
/**
|
|
9171
|
-
*
|
|
9208
|
+
* POST /frictionless/amazon-jwo-connector/v1/identity/identity-keys - Amazon JWO Identity Key Connector
|
|
9172
9209
|
*
|
|
9173
|
-
* @param
|
|
9210
|
+
* @param body
|
|
9174
9211
|
* @param options - additional request options
|
|
9175
9212
|
*/
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
options?:
|
|
9179
|
-
|
|
9180
|
-
} & RequestOptions,
|
|
9181
|
-
): ResponsePromise<GetFrictionlessUsersPaymentIssuesResponse> {
|
|
9213
|
+
post_frictionless_amazon_jwo_connector_v1_identity_identity_keys(
|
|
9214
|
+
body: PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody,
|
|
9215
|
+
options?: RequestOptions,
|
|
9216
|
+
): ResponsePromise<PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysResponse> {
|
|
9182
9217
|
return this.request(
|
|
9183
9218
|
"frictionless",
|
|
9184
|
-
"
|
|
9185
|
-
"
|
|
9186
|
-
`/frictionless/
|
|
9187
|
-
|
|
9219
|
+
"post_frictionless_amazon_jwo_connector_v1_identity_identity_keys",
|
|
9220
|
+
"post",
|
|
9221
|
+
`/frictionless/amazon-jwo-connector/v1/identity/identity-keys`,
|
|
9222
|
+
body,
|
|
9188
9223
|
options,
|
|
9189
9224
|
);
|
|
9190
9225
|
}
|
|
9191
9226
|
|
|
9192
9227
|
/**
|
|
9193
|
-
* POST /frictionless/
|
|
9228
|
+
* POST /frictionless/amazon-jwo-connector/v1/order/purchases - Amazon JWO Ordering Connector
|
|
9194
9229
|
*
|
|
9195
|
-
* @param checkin_id
|
|
9196
9230
|
* @param body
|
|
9197
9231
|
* @param options - additional request options
|
|
9198
9232
|
*/
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
body: PostFrictionlessCheckinReprocessPaymentBody,
|
|
9233
|
+
post_frictionless_amazon_jwo_connector_v1_order_purchases(
|
|
9234
|
+
body: PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody,
|
|
9202
9235
|
options?: RequestOptions,
|
|
9203
|
-
): ResponsePromise<
|
|
9236
|
+
): ResponsePromise<PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse> {
|
|
9204
9237
|
return this.request(
|
|
9205
9238
|
"frictionless",
|
|
9206
|
-
"
|
|
9239
|
+
"post_frictionless_amazon_jwo_connector_v1_order_purchases",
|
|
9207
9240
|
"post",
|
|
9208
|
-
`/frictionless/
|
|
9241
|
+
`/frictionless/amazon-jwo-connector/v1/order/purchases`,
|
|
9209
9242
|
body,
|
|
9210
9243
|
options,
|
|
9211
9244
|
);
|
|
9212
9245
|
}
|
|
9213
9246
|
|
|
9214
9247
|
/**
|
|
9215
|
-
*
|
|
9248
|
+
* POST /frictionless/webhook/standardcognition - Receive frictionless standard cognition events
|
|
9216
9249
|
*
|
|
9217
|
-
* @param
|
|
9250
|
+
* @param body
|
|
9218
9251
|
* @param options - additional request options
|
|
9219
9252
|
*/
|
|
9220
|
-
|
|
9221
|
-
|
|
9253
|
+
post_frictionless_webhook_standardcognition(
|
|
9254
|
+
body: PostFrictionlessWebhookStandardcognitionBody,
|
|
9255
|
+
options?: RequestOptions,
|
|
9256
|
+
): ResponsePromise<PostFrictionlessWebhookStandardcognitionResponse> {
|
|
9257
|
+
return this.request(
|
|
9258
|
+
"frictionless",
|
|
9259
|
+
"post_frictionless_webhook_standardcognition",
|
|
9260
|
+
"post",
|
|
9261
|
+
`/frictionless/webhook/standardcognition`,
|
|
9262
|
+
body,
|
|
9263
|
+
options,
|
|
9264
|
+
);
|
|
9265
|
+
}
|
|
9266
|
+
|
|
9267
|
+
/**
|
|
9268
|
+
* GET /dev/consumer/v1/health-check
|
|
9269
|
+
*
|
|
9270
|
+
* @param options - additional request options
|
|
9271
|
+
*/
|
|
9272
|
+
HealthCheckController_execute(
|
|
9222
9273
|
options?: {
|
|
9223
|
-
query?:
|
|
9274
|
+
query?: HealthCheckControllerExecuteQuery;
|
|
9224
9275
|
} & RequestOptions,
|
|
9225
|
-
): ResponsePromise<
|
|
9276
|
+
): ResponsePromise<HealthCheckControllerExecuteResponse> {
|
|
9226
9277
|
return this.request(
|
|
9227
|
-
"
|
|
9228
|
-
"
|
|
9278
|
+
"consumer",
|
|
9279
|
+
"HealthCheckController_execute",
|
|
9229
9280
|
"get",
|
|
9230
|
-
`/
|
|
9281
|
+
`/dev/consumer/v1/health-check`,
|
|
9282
|
+
null,
|
|
9283
|
+
options,
|
|
9284
|
+
);
|
|
9285
|
+
}
|
|
9286
|
+
|
|
9287
|
+
/**
|
|
9288
|
+
* GET /dev/consumer/v1/payment-methods - List payment methods available in a given brand
|
|
9289
|
+
*
|
|
9290
|
+
* @param options - additional request options
|
|
9291
|
+
*/
|
|
9292
|
+
get_payment_list_by_brand(
|
|
9293
|
+
options: {
|
|
9294
|
+
query: GetPaymentListByBrandQuery;
|
|
9295
|
+
} & RequestOptions,
|
|
9296
|
+
): ResponsePromise<GetPaymentListByBrandResponse> {
|
|
9297
|
+
return this.request(
|
|
9298
|
+
"consumer",
|
|
9299
|
+
"get_payment_list_by_brand",
|
|
9300
|
+
"get",
|
|
9301
|
+
`/dev/consumer/v1/payment-methods`,
|
|
9231
9302
|
null,
|
|
9232
9303
|
options,
|
|
9233
9304
|
);
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
|
+
|
|
4
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
5
|
+
|
|
6
|
+
export interface IsStatus {
|
|
7
|
+
eligible: boolean;
|
|
8
|
+
validated?: boolean;
|
|
9
|
+
preferred?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface Tender {
|
|
13
|
+
id: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
balance?: number;
|
|
16
|
+
type?: string;
|
|
17
|
+
currency?: string;
|
|
18
|
+
tender_number?: string;
|
|
19
|
+
is: IsStatus;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface TenderList {
|
|
23
|
+
tenders: Tender[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface BillingAddress {
|
|
27
|
+
postal_code?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ExpiryDate {
|
|
31
|
+
month: number;
|
|
32
|
+
year: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface CreditCard {
|
|
36
|
+
billing_address?: BillingAddress;
|
|
37
|
+
card_type?: string;
|
|
38
|
+
expiry?: ExpiryDate;
|
|
39
|
+
is: IsStatus;
|
|
40
|
+
masked_card_number?: string;
|
|
41
|
+
name_on_card?: string;
|
|
42
|
+
nickname?: string;
|
|
43
|
+
token: string;
|
|
44
|
+
token_expiration_date?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface CreditCardData {
|
|
48
|
+
data: CreditCard[];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface DigitalWalletFlavor {
|
|
52
|
+
is: IsStatus;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface DigitalWallet {
|
|
56
|
+
applewallet: DigitalWalletFlavor;
|
|
57
|
+
googlewallet: DigitalWalletFlavor;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface ListAvailablePaymentsResponseDTO {
|
|
61
|
+
mealplan: TenderList;
|
|
62
|
+
cashless: TenderList;
|
|
63
|
+
credit_cards: CreditCardData;
|
|
64
|
+
digital_wallet_pay: DigitalWallet;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface UnauthorizedErrorDTO {
|
|
68
|
+
message: string;
|
|
69
|
+
code: number;
|
|
70
|
+
data: Record<string, any>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface NotFoundErrorDTO {
|
|
74
|
+
message: string;
|
|
75
|
+
code: number;
|
|
76
|
+
data: Record<string, any>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// GET /dev/consumer/v1/health-check
|
|
80
|
+
|
|
81
|
+
export interface HealthCheckControllerExecuteQuery {
|
|
82
|
+
// Graphql query string
|
|
83
|
+
_query?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type HealthCheckControllerExecuteResponse = {};
|
|
87
|
+
|
|
88
|
+
export interface HealthCheckControllerExecuteRequest
|
|
89
|
+
extends BaseRequest,
|
|
90
|
+
RequestQuery<HealthCheckControllerExecuteQuery> {}
|
|
91
|
+
|
|
92
|
+
// GET /dev/consumer/v1/payment-methods - List payment methods available in a given brand
|
|
93
|
+
|
|
94
|
+
export interface GetPaymentListByBrandQuery {
|
|
95
|
+
// Brand ID as Encoded CDL ID
|
|
96
|
+
brandID: string;
|
|
97
|
+
// Graphql query string
|
|
98
|
+
_query?: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type GetPaymentListByBrandResponse = ListAvailablePaymentsResponseDTO;
|
|
102
|
+
|
|
103
|
+
export interface GetPaymentListByBrandRequest
|
|
104
|
+
extends BaseRequest,
|
|
105
|
+
RequestQuery<GetPaymentListByBrandQuery> {}
|