btrz-api-client 3.36.0 → 3.42.1
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/client-standalone-min.js +1 -1
- package/lib/client.js +1 -1
- package/lib/endpoints/accounts/accounts.js +3 -2
- package/lib/endpoints/accounts/application-settings.js +15 -10
- package/lib/endpoints/accounts/application.js +3 -2
- package/lib/endpoints/accounts/applications.js +6 -4
- package/lib/endpoints/accounts/current-shifts.js +3 -2
- package/lib/endpoints/accounts/customers.js +15 -10
- package/lib/endpoints/accounts/domains.js +9 -6
- package/lib/endpoints/accounts/email-settings.js +15 -10
- package/lib/endpoints/accounts/exchange-rates.js +6 -4
- package/lib/endpoints/accounts/interline.js +27 -18
- package/lib/endpoints/accounts/lexicons.js +12 -8
- package/lib/endpoints/accounts/print-settings.js +12 -8
- package/lib/endpoints/accounts/printers.js +3 -2
- package/lib/endpoints/accounts/shifts.js +3 -2
- package/lib/endpoints/accounts/travellers.js +15 -10
- package/lib/endpoints/accounts/trusted-machines.js +3 -2
- package/lib/endpoints/accounts/users.js +6 -4
- package/lib/endpoints/btrzpay/customerCards.js +12 -8
- package/lib/endpoints/btrzpay/customers.js +9 -7
- package/lib/endpoints/btrzpay/payment-methods.js +18 -12
- package/lib/endpoints/btrzpay/payments.js +6 -4
- package/lib/endpoints/btrzpay/reference-numbers.js +3 -2
- package/lib/endpoints/btrzpay/referenced-payments.js +6 -4
- package/lib/endpoints/btrzpay/square.js +6 -4
- package/lib/endpoints/coltrane/paths.js +3 -2
- package/lib/endpoints/gps/scanner-app-location.js +3 -2
- package/lib/endpoints/inventory/amenities.js +12 -8
- package/lib/endpoints/inventory/amenity-groups.js +12 -8
- package/lib/endpoints/inventory/bare-routes.js +6 -4
- package/lib/endpoints/inventory/brands.js +12 -8
- package/lib/endpoints/inventory/bundle-fares.js +3 -2
- package/lib/endpoints/inventory/bundles.js +6 -4
- package/lib/endpoints/inventory/companies.js +3 -2
- package/lib/endpoints/inventory/countries.js +3 -2
- package/lib/endpoints/inventory/custom-content.js +15 -10
- package/lib/endpoints/inventory/fare-classes.js +9 -6
- package/lib/endpoints/inventory/fares.js +6 -4
- package/lib/endpoints/inventory/fees.js +3 -2
- package/lib/endpoints/inventory/filtered-trips-v2.js +3 -2
- package/lib/endpoints/inventory/filtered-trips.js +3 -2
- package/lib/endpoints/inventory/gift-certificate-definitions.js +3 -2
- package/lib/endpoints/inventory/healthcheck.js +22 -0
- package/lib/endpoints/inventory/insurances.js +15 -10
- package/lib/endpoints/inventory/insurancesCost.js +3 -2
- package/lib/endpoints/inventory/items.js +3 -2
- package/lib/endpoints/inventory/journey-prices.js +9 -6
- package/lib/endpoints/inventory/marketplace-modifiers.js +15 -10
- package/lib/endpoints/inventory/operating-companies.js +12 -8
- package/lib/endpoints/inventory/operation-messages.js +18 -12
- package/lib/endpoints/inventory/parcel-zones.js +9 -6
- package/lib/endpoints/inventory/payment-terminals.js +15 -10
- package/lib/endpoints/inventory/products.js +6 -4
- package/lib/endpoints/inventory/promos.js +21 -14
- package/lib/endpoints/inventory/routes.js +21 -14
- package/lib/endpoints/inventory/schedules.js +3 -2
- package/lib/endpoints/inventory/seatfees.js +12 -8
- package/lib/endpoints/inventory/seatmaps.js +3 -2
- package/lib/endpoints/inventory/service-numbers.js +12 -8
- package/lib/endpoints/inventory/service-types.js +15 -10
- package/lib/endpoints/inventory/ssrs.js +3 -2
- package/lib/endpoints/inventory/station-groups.js +3 -2
- package/lib/endpoints/inventory/stations-zones.js +3 -2
- package/lib/endpoints/inventory/stations.js +6 -4
- package/lib/endpoints/inventory/taxes.js +12 -8
- package/lib/endpoints/inventory/traveller-card-providers-types.js +3 -2
- package/lib/endpoints/inventory/traveller-card-providers.js +12 -8
- package/lib/endpoints/inventory/traveller-card-types.js +15 -10
- package/lib/endpoints/inventory/trips.js +6 -4
- package/lib/endpoints/inventory/zone-price-overages.js +15 -10
- package/lib/endpoints/inventory/zone-prices.js +15 -10
- package/lib/endpoints/invoices/emails.js +3 -2
- package/lib/endpoints/invoices/infile.js +3 -2
- package/lib/endpoints/invoices/pdfs.js +3 -2
- package/lib/endpoints/invoices/providers.js +15 -10
- package/lib/endpoints/invoices/tax-ids.js +3 -2
- package/lib/endpoints/loyalty/movements.js +9 -6
- package/lib/endpoints/loyalty/programs.js +9 -6
- package/lib/endpoints/notifications/customers.js +3 -2
- package/lib/endpoints/notifications/email.js +3 -2
- package/lib/endpoints/notifications/manifest-notifications.js +7 -4
- package/lib/endpoints/notifications/printed-tickets.js +3 -2
- package/lib/endpoints/operations/accounting_items.js +8 -4
- package/lib/endpoints/operations/applied_insurance.js +3 -2
- package/lib/endpoints/operations/calendar_entries.js +3 -2
- package/lib/endpoints/operations/flexpasses.js +3 -2
- package/lib/endpoints/operations/loans.js +8 -4
- package/lib/endpoints/operations/manifest.js +58 -20
- package/lib/endpoints/operations/movements.js +3 -2
- package/lib/endpoints/operations/outlook-trips.js +3 -2
- package/lib/endpoints/operations/parcels.js +9 -6
- package/lib/endpoints/operations/redemption.js +6 -4
- package/lib/endpoints/operations/scheduled_notifications.js +15 -10
- package/lib/endpoints/operations/segments.js +3 -2
- package/lib/endpoints/operations/tickets.js +9 -6
- package/lib/endpoints/operations/transaction.js +3 -2
- package/lib/endpoints/operations/transactions.js +21 -14
- package/lib/endpoints/operations/trip_change_info.js +3 -2
- package/lib/endpoints/operations/waitlists.js +12 -9
- package/lib/endpoints/reports/custom-reports.js +9 -6
- package/lib/endpoints/reports/report-types.js +6 -4
- package/lib/endpoints/sales/bundles.js +3 -2
- package/lib/endpoints/sales/cart-promo.js +6 -4
- package/lib/endpoints/sales/cart.js +18 -12
- package/lib/endpoints/sales/custom-fields.js +3 -2
- package/lib/endpoints/sales/flexpasses.js +3 -2
- package/lib/endpoints/sales/gift-certificates.js +3 -2
- package/lib/endpoints/sales/order.js +6 -4
- package/lib/endpoints/sales/payment-providers.js +3 -2
- package/lib/endpoints/sales/redeemable-items.js +6 -4
- package/lib/endpoints/sales/sync-entry.js +3 -2
- package/lib/endpoints/sales/voucher.js +3 -2
- package/lib/endpoints/seatmaps/access-ticket.js +3 -2
- package/lib/endpoints/seatmaps/seat.js +3 -2
- package/lib/endpoints/uploads/files.js +3 -2
- package/lib/endpoints/uploads/images.js +3 -2
- package/lib/endpoints/webhooks/events.js +3 -2
- package/lib/endpoints/webhooks/subscriptions.js +15 -10
- package/lib/endpoints/webhooks/undelivered.js +15 -10
- package/lib/endpoints/webhooks/webhooks.js +3 -2
- package/lib/initializedClient.js +6 -0
- package/package.json +2 -1
- package/src/client.js +1 -1
- package/src/endpoints/accounts/accounts.js +2 -2
- package/src/endpoints/accounts/application-settings.js +10 -10
- package/src/endpoints/accounts/application.js +2 -2
- package/src/endpoints/accounts/applications.js +4 -4
- package/src/endpoints/accounts/current-shifts.js +2 -2
- package/src/endpoints/accounts/customers.js +10 -10
- package/src/endpoints/accounts/domains.js +6 -6
- package/src/endpoints/accounts/email-settings.js +10 -10
- package/src/endpoints/accounts/exchange-rates.js +4 -4
- package/src/endpoints/accounts/interline.js +18 -18
- package/src/endpoints/accounts/lexicons.js +12 -8
- package/src/endpoints/accounts/print-settings.js +8 -8
- package/src/endpoints/accounts/printers.js +2 -2
- package/src/endpoints/accounts/shifts.js +2 -2
- package/src/endpoints/accounts/travellers.js +10 -10
- package/src/endpoints/accounts/trusted-machines.js +2 -2
- package/src/endpoints/accounts/users.js +4 -4
- package/src/endpoints/btrzpay/customerCards.js +8 -8
- package/src/endpoints/btrzpay/customers.js +6 -7
- package/src/endpoints/btrzpay/payment-methods.js +12 -12
- package/src/endpoints/btrzpay/payments.js +4 -4
- package/src/endpoints/btrzpay/reference-numbers.js +2 -2
- package/src/endpoints/btrzpay/referenced-payments.js +4 -4
- package/src/endpoints/btrzpay/square.js +4 -4
- package/src/endpoints/coltrane/paths.js +2 -2
- package/src/endpoints/gps/scanner-app-location.js +2 -2
- package/src/endpoints/inventory/amenities.js +8 -8
- package/src/endpoints/inventory/amenity-groups.js +8 -8
- package/src/endpoints/inventory/bare-routes.js +4 -4
- package/src/endpoints/inventory/brands.js +8 -8
- package/src/endpoints/inventory/bundle-fares.js +2 -2
- package/src/endpoints/inventory/bundles.js +4 -4
- package/src/endpoints/inventory/companies.js +2 -2
- package/src/endpoints/inventory/countries.js +2 -2
- package/src/endpoints/inventory/custom-content.js +11 -10
- package/src/endpoints/inventory/fare-classes.js +6 -6
- package/src/endpoints/inventory/fares.js +4 -4
- package/src/endpoints/inventory/fees.js +2 -2
- package/src/endpoints/inventory/filtered-trips-v2.js +2 -2
- package/src/endpoints/inventory/filtered-trips.js +2 -2
- package/src/endpoints/inventory/gift-certificate-definitions.js +2 -2
- package/src/endpoints/inventory/healthcheck.js +16 -0
- package/src/endpoints/inventory/insurances.js +10 -10
- package/src/endpoints/inventory/insurancesCost.js +2 -2
- package/src/endpoints/inventory/items.js +2 -2
- package/src/endpoints/inventory/journey-prices.js +6 -6
- package/src/endpoints/inventory/marketplace-modifiers.js +11 -10
- package/src/endpoints/inventory/operating-companies.js +8 -8
- package/src/endpoints/inventory/operation-messages.js +12 -12
- package/src/endpoints/inventory/parcel-zones.js +6 -6
- package/src/endpoints/inventory/payment-terminals.js +11 -10
- package/src/endpoints/inventory/products.js +4 -4
- package/src/endpoints/inventory/promos.js +14 -14
- package/src/endpoints/inventory/routes.js +14 -14
- package/src/endpoints/inventory/schedules.js +2 -2
- package/src/endpoints/inventory/seatfees.js +9 -8
- package/src/endpoints/inventory/seatmaps.js +2 -2
- package/src/endpoints/inventory/service-numbers.js +8 -8
- package/src/endpoints/inventory/service-types.js +11 -10
- package/src/endpoints/inventory/ssrs.js +2 -2
- package/src/endpoints/inventory/station-groups.js +2 -2
- package/src/endpoints/inventory/stations-zones.js +2 -2
- package/src/endpoints/inventory/stations.js +4 -4
- package/src/endpoints/inventory/taxes.js +8 -8
- package/src/endpoints/inventory/traveller-card-providers-types.js +2 -2
- package/src/endpoints/inventory/traveller-card-providers.js +8 -8
- package/src/endpoints/inventory/traveller-card-types.js +10 -10
- package/src/endpoints/inventory/trips.js +4 -4
- package/src/endpoints/inventory/zone-price-overages.js +11 -10
- package/src/endpoints/inventory/zone-prices.js +11 -10
- package/src/endpoints/invoices/emails.js +2 -2
- package/src/endpoints/invoices/infile.js +2 -2
- package/src/endpoints/invoices/pdfs.js +2 -2
- package/src/endpoints/invoices/providers.js +10 -10
- package/src/endpoints/invoices/tax-ids.js +2 -2
- package/src/endpoints/loyalty/movements.js +6 -6
- package/src/endpoints/loyalty/programs.js +6 -6
- package/src/endpoints/notifications/customers.js +2 -2
- package/src/endpoints/notifications/email.js +2 -2
- package/src/endpoints/notifications/manifest-notifications.js +6 -4
- package/src/endpoints/notifications/printed-tickets.js +2 -2
- package/src/endpoints/operations/accounting_items.js +7 -4
- package/src/endpoints/operations/applied_insurance.js +2 -2
- package/src/endpoints/operations/calendar_entries.js +2 -2
- package/src/endpoints/operations/flexpasses.js +2 -2
- package/src/endpoints/operations/loans.js +7 -4
- package/src/endpoints/operations/manifest.js +62 -22
- package/src/endpoints/operations/movements.js +2 -2
- package/src/endpoints/operations/outlook-trips.js +2 -2
- package/src/endpoints/operations/parcels.js +6 -6
- package/src/endpoints/operations/redemption.js +4 -4
- package/src/endpoints/operations/scheduled_notifications.js +10 -10
- package/src/endpoints/operations/segments.js +2 -2
- package/src/endpoints/operations/tickets.js +6 -6
- package/src/endpoints/operations/transaction.js +2 -2
- package/src/endpoints/operations/transactions.js +14 -14
- package/src/endpoints/operations/trip_change_info.js +2 -2
- package/src/endpoints/operations/waitlists.js +8 -9
- package/src/endpoints/reports/custom-reports.js +6 -6
- package/src/endpoints/reports/report-types.js +4 -4
- package/src/endpoints/sales/bundles.js +2 -2
- package/src/endpoints/sales/cart-promo.js +4 -4
- package/src/endpoints/sales/cart.js +12 -12
- package/src/endpoints/sales/custom-fields.js +2 -2
- package/src/endpoints/sales/flexpasses.js +2 -2
- package/src/endpoints/sales/gift-certificates.js +2 -2
- package/src/endpoints/sales/order.js +4 -4
- package/src/endpoints/sales/payment-providers.js +2 -2
- package/src/endpoints/sales/redeemable-items.js +4 -4
- package/src/endpoints/sales/sync-entry.js +2 -2
- package/src/endpoints/sales/voucher.js +2 -2
- package/src/endpoints/seatmaps/access-ticket.js +2 -2
- package/src/endpoints/seatmaps/seat.js +2 -2
- package/src/endpoints/uploads/files.js +2 -2
- package/src/endpoints/uploads/images.js +2 -2
- package/src/endpoints/webhooks/events.js +2 -2
- package/src/endpoints/webhooks/subscriptions.js +10 -10
- package/src/endpoints/webhooks/undelivered.js +10 -10
- package/src/endpoints/webhooks/webhooks.js +2 -2
- package/src/initializedClient.js +3 -0
- package/test/endpoints/operations/manifest.test.js +66 -17
|
@@ -11,11 +11,12 @@ function parcelFactory(_ref) {
|
|
|
11
11
|
function get(_ref2) {
|
|
12
12
|
var token = _ref2.token,
|
|
13
13
|
jwtToken = _ref2.jwtToken,
|
|
14
|
-
id = _ref2.id
|
|
14
|
+
id = _ref2.id,
|
|
15
|
+
headers = _ref2.headers;
|
|
15
16
|
|
|
16
17
|
return client({
|
|
17
18
|
url: "/parcels/" + id,
|
|
18
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
19
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -23,12 +24,13 @@ function parcelFactory(_ref) {
|
|
|
23
24
|
var token = _ref3.token,
|
|
24
25
|
jwtToken = _ref3.jwtToken,
|
|
25
26
|
_ref3$query = _ref3.query,
|
|
26
|
-
query = _ref3$query === undefined ? {} : _ref3$query
|
|
27
|
+
query = _ref3$query === undefined ? {} : _ref3$query,
|
|
28
|
+
headers = _ref3.headers;
|
|
27
29
|
|
|
28
30
|
return client({
|
|
29
31
|
url: "/parcels",
|
|
30
32
|
params: query,
|
|
31
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
33
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
32
34
|
});
|
|
33
35
|
}
|
|
34
36
|
|
|
@@ -37,12 +39,13 @@ function parcelFactory(_ref) {
|
|
|
37
39
|
jwtToken = _ref4.jwtToken,
|
|
38
40
|
id = _ref4.id,
|
|
39
41
|
operationType = _ref4.operationType,
|
|
40
|
-
locationData = _ref4.locationData
|
|
42
|
+
locationData = _ref4.locationData,
|
|
43
|
+
headers = _ref4.headers;
|
|
41
44
|
|
|
42
45
|
return client({
|
|
43
46
|
url: "/parcels/" + id + "/scans",
|
|
44
47
|
method: "post",
|
|
45
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
48
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
46
49
|
data: { operationType: operationType, locationData: locationData }
|
|
47
50
|
});
|
|
48
51
|
}
|
|
@@ -10,12 +10,13 @@ function redemptionFactory(_ref) {
|
|
|
10
10
|
function create(_ref2) {
|
|
11
11
|
var token = _ref2.token,
|
|
12
12
|
jwtToken = _ref2.jwtToken,
|
|
13
|
-
redemption = _ref2.redemption
|
|
13
|
+
redemption = _ref2.redemption,
|
|
14
|
+
headers = _ref2.headers;
|
|
14
15
|
|
|
15
16
|
return client({
|
|
16
17
|
url: "/redemptions",
|
|
17
18
|
method: "post",
|
|
18
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
19
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
19
20
|
data: redemption
|
|
20
21
|
});
|
|
21
22
|
}
|
|
@@ -24,13 +25,14 @@ function redemptionFactory(_ref) {
|
|
|
24
25
|
var token = _ref3.token,
|
|
25
26
|
jwtToken = _ref3.jwtToken,
|
|
26
27
|
passId = _ref3.passId,
|
|
27
|
-
timezone = _ref3.timezone
|
|
28
|
+
timezone = _ref3.timezone,
|
|
29
|
+
headers = _ref3.headers;
|
|
28
30
|
|
|
29
31
|
return client({
|
|
30
32
|
url: "/redemptions/validate/" + passId,
|
|
31
33
|
params: { timezone: timezone },
|
|
32
34
|
method: "get",
|
|
33
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
35
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -10,11 +10,12 @@ function scheduledNotificationsFactory(_ref) {
|
|
|
10
10
|
function all(_ref2) {
|
|
11
11
|
var token = _ref2.token,
|
|
12
12
|
jwtToken = _ref2.jwtToken,
|
|
13
|
-
query = _ref2.query
|
|
13
|
+
query = _ref2.query,
|
|
14
|
+
headers = _ref2.headers;
|
|
14
15
|
|
|
15
16
|
return client({
|
|
16
17
|
url: "/scheduled-notifications",
|
|
17
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
18
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
18
19
|
params: query
|
|
19
20
|
});
|
|
20
21
|
}
|
|
@@ -22,12 +23,13 @@ function scheduledNotificationsFactory(_ref) {
|
|
|
22
23
|
function get(_ref3) {
|
|
23
24
|
var token = _ref3.token,
|
|
24
25
|
jwtToken = _ref3.jwtToken,
|
|
25
|
-
id = _ref3.id
|
|
26
|
+
id = _ref3.id,
|
|
27
|
+
headers = _ref3.headers;
|
|
26
28
|
|
|
27
29
|
return client({
|
|
28
30
|
url: "/scheduled-notifications/" + id,
|
|
29
31
|
method: "get",
|
|
30
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
32
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
35
|
|
|
@@ -35,13 +37,14 @@ function scheduledNotificationsFactory(_ref) {
|
|
|
35
37
|
var token = _ref4.token,
|
|
36
38
|
jwtToken = _ref4.jwtToken,
|
|
37
39
|
id = _ref4.id,
|
|
38
|
-
data = _ref4.data
|
|
40
|
+
data = _ref4.data,
|
|
41
|
+
headers = _ref4.headers;
|
|
39
42
|
|
|
40
43
|
return client({
|
|
41
44
|
url: "/scheduled-notifications/" + id,
|
|
42
45
|
method: "put",
|
|
43
46
|
params: data,
|
|
44
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
47
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
45
48
|
data: data
|
|
46
49
|
});
|
|
47
50
|
}
|
|
@@ -49,12 +52,13 @@ function scheduledNotificationsFactory(_ref) {
|
|
|
49
52
|
function remove(_ref5) {
|
|
50
53
|
var token = _ref5.token,
|
|
51
54
|
jwtToken = _ref5.jwtToken,
|
|
52
|
-
id = _ref5.id
|
|
55
|
+
id = _ref5.id,
|
|
56
|
+
headers = _ref5.headers;
|
|
53
57
|
|
|
54
58
|
return client({
|
|
55
59
|
url: "/scheduled-notifications/" + id,
|
|
56
60
|
method: "delete",
|
|
57
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
61
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
58
62
|
});
|
|
59
63
|
}
|
|
60
64
|
|
|
@@ -63,12 +67,13 @@ function scheduledNotificationsFactory(_ref) {
|
|
|
63
67
|
jwtToken = _ref6.jwtToken,
|
|
64
68
|
_ref6$query = _ref6.query,
|
|
65
69
|
query = _ref6$query === undefined ? {} : _ref6$query,
|
|
66
|
-
data = _ref6.data
|
|
70
|
+
data = _ref6.data,
|
|
71
|
+
headers = _ref6.headers;
|
|
67
72
|
|
|
68
73
|
return client({
|
|
69
74
|
url: "/scheduled-notifications",
|
|
70
75
|
method: "post",
|
|
71
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
76
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
72
77
|
params: query,
|
|
73
78
|
data: data
|
|
74
79
|
});
|
|
@@ -13,11 +13,12 @@ function segmentsFactory(_ref) {
|
|
|
13
13
|
jwtToken = _ref2.jwtToken,
|
|
14
14
|
productId = _ref2.productId,
|
|
15
15
|
ticketId = _ref2.ticketId,
|
|
16
|
-
providerId = _ref2.providerId
|
|
16
|
+
providerId = _ref2.providerId,
|
|
17
|
+
headers = _ref2.headers;
|
|
17
18
|
|
|
18
19
|
return client({
|
|
19
20
|
url: "/products/" + productId + "/segments/" + ticketId,
|
|
20
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
21
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
21
22
|
params: {
|
|
22
23
|
providerId: providerId
|
|
23
24
|
}
|
|
@@ -10,12 +10,13 @@ function ticketsFactory(_ref) {
|
|
|
10
10
|
function get(_ref2) {
|
|
11
11
|
var token = _ref2.token,
|
|
12
12
|
jwtToken = _ref2.jwtToken,
|
|
13
|
-
id = _ref2.id
|
|
13
|
+
id = _ref2.id,
|
|
14
|
+
headers = _ref2.headers;
|
|
14
15
|
|
|
15
16
|
return client({
|
|
16
17
|
url: "/tickets/" + id,
|
|
17
18
|
method: "get",
|
|
18
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
19
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -24,12 +25,13 @@ function ticketsFactory(_ref) {
|
|
|
24
25
|
jwtToken = _ref3.jwtToken,
|
|
25
26
|
id = _ref3.id,
|
|
26
27
|
operations = _ref3.operations,
|
|
27
|
-
warningsEnabled = _ref3.warningsEnabled
|
|
28
|
+
warningsEnabled = _ref3.warningsEnabled,
|
|
29
|
+
headers = _ref3.headers;
|
|
28
30
|
|
|
29
31
|
return client({
|
|
30
32
|
url: "/tickets/" + id,
|
|
31
33
|
method: "patch",
|
|
32
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
34
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
33
35
|
data: { operations: operations, warningsEnabled: warningsEnabled }
|
|
34
36
|
});
|
|
35
37
|
}
|
|
@@ -37,11 +39,12 @@ function ticketsFactory(_ref) {
|
|
|
37
39
|
function companionTickets(_ref4) {
|
|
38
40
|
var token = _ref4.token,
|
|
39
41
|
jwtToken = _ref4.jwtToken,
|
|
40
|
-
ticketId = _ref4.ticketId
|
|
42
|
+
ticketId = _ref4.ticketId,
|
|
43
|
+
headers = _ref4.headers;
|
|
41
44
|
|
|
42
45
|
return client({
|
|
43
46
|
url: "/tickets/" + ticketId + "/companion-tickets",
|
|
44
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken })
|
|
47
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, headers: headers })
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
|
|
@@ -12,11 +12,12 @@ function transactionFactory(_ref) {
|
|
|
12
12
|
var token = _ref2.token,
|
|
13
13
|
jwtToken = _ref2.jwtToken,
|
|
14
14
|
id = _ref2.id,
|
|
15
|
-
providerId = _ref2.providerId
|
|
15
|
+
providerId = _ref2.providerId,
|
|
16
|
+
headers = _ref2.headers;
|
|
16
17
|
|
|
17
18
|
return client({
|
|
18
19
|
url: "/transaction/" + id + "?providerId=" + providerId,
|
|
19
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
20
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -11,11 +11,12 @@ function transactionsFactory(_ref) {
|
|
|
11
11
|
var token = _ref2.token,
|
|
12
12
|
jwtToken = _ref2.jwtToken,
|
|
13
13
|
trxId = _ref2.trxId,
|
|
14
|
-
query = _ref2.query
|
|
14
|
+
query = _ref2.query,
|
|
15
|
+
headers = _ref2.headers;
|
|
15
16
|
|
|
16
17
|
return client({
|
|
17
18
|
url: "/transactions/" + trxId,
|
|
18
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
19
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
19
20
|
params: query
|
|
20
21
|
});
|
|
21
22
|
}
|
|
@@ -23,11 +24,12 @@ function transactionsFactory(_ref) {
|
|
|
23
24
|
function all(_ref3) {
|
|
24
25
|
var token = _ref3.token,
|
|
25
26
|
jwtToken = _ref3.jwtToken,
|
|
26
|
-
query = _ref3.query
|
|
27
|
+
query = _ref3.query,
|
|
28
|
+
headers = _ref3.headers;
|
|
27
29
|
|
|
28
30
|
return client({
|
|
29
31
|
url: "/transactions",
|
|
30
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
32
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
31
33
|
params: query
|
|
32
34
|
});
|
|
33
35
|
}
|
|
@@ -35,22 +37,24 @@ function transactionsFactory(_ref) {
|
|
|
35
37
|
function getTickets(_ref4) {
|
|
36
38
|
var token = _ref4.token,
|
|
37
39
|
jwtToken = _ref4.jwtToken,
|
|
38
|
-
trxId = _ref4.trxId
|
|
40
|
+
trxId = _ref4.trxId,
|
|
41
|
+
headers = _ref4.headers;
|
|
39
42
|
|
|
40
43
|
return client({
|
|
41
44
|
url: "/transactions/" + trxId + "/tickets",
|
|
42
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
45
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
43
46
|
});
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
function appliedInsurance(_ref5) {
|
|
47
50
|
var token = _ref5.token,
|
|
48
51
|
jwtToken = _ref5.jwtToken,
|
|
49
|
-
trxId = _ref5.trxId
|
|
52
|
+
trxId = _ref5.trxId,
|
|
53
|
+
headers = _ref5.headers;
|
|
50
54
|
|
|
51
55
|
return client({
|
|
52
56
|
url: "/transactions/" + trxId + "/applied-insurance",
|
|
53
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
57
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
54
58
|
});
|
|
55
59
|
}
|
|
56
60
|
|
|
@@ -58,14 +62,15 @@ function transactionsFactory(_ref) {
|
|
|
58
62
|
var token = _ref6.token,
|
|
59
63
|
jwtToken = _ref6.jwtToken,
|
|
60
64
|
transactionId = _ref6.transactionId,
|
|
61
|
-
ticketIds = _ref6.ticketIds
|
|
65
|
+
ticketIds = _ref6.ticketIds,
|
|
66
|
+
headers = _ref6.headers;
|
|
62
67
|
|
|
63
68
|
return client({
|
|
64
69
|
url: "/transactions/" + transactionId + "/companion-tickets",
|
|
65
70
|
params: {
|
|
66
71
|
ticketIds: ticketIds.join(",")
|
|
67
72
|
},
|
|
68
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
73
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
69
74
|
});
|
|
70
75
|
}
|
|
71
76
|
|
|
@@ -74,13 +79,14 @@ function transactionsFactory(_ref) {
|
|
|
74
79
|
jwtToken = _ref7.jwtToken,
|
|
75
80
|
transactionId = _ref7.transactionId,
|
|
76
81
|
avoidEmail = _ref7.avoidEmail,
|
|
77
|
-
token = _ref7.token
|
|
82
|
+
token = _ref7.token,
|
|
83
|
+
headers = _ref7.headers;
|
|
78
84
|
|
|
79
85
|
return client({
|
|
80
86
|
url: "/transactions/status",
|
|
81
87
|
method: "patch",
|
|
82
88
|
params: {},
|
|
83
|
-
headers: authorizationHeaders({ internalAuthTokenProvider: internalAuthTokenProvider, jwtToken: jwtToken, token: token }),
|
|
89
|
+
headers: authorizationHeaders({ internalAuthTokenProvider: internalAuthTokenProvider, jwtToken: jwtToken, token: token, headers: headers }),
|
|
84
90
|
data: {
|
|
85
91
|
operation: {
|
|
86
92
|
name: "expire_payment",
|
|
@@ -96,13 +102,14 @@ function transactionsFactory(_ref) {
|
|
|
96
102
|
var token = _ref8.token,
|
|
97
103
|
jwtToken = _ref8.jwtToken,
|
|
98
104
|
trxId = _ref8.trxId,
|
|
99
|
-
paymentResult = _ref8.paymentResult
|
|
105
|
+
paymentResult = _ref8.paymentResult,
|
|
106
|
+
headers = _ref8.headers;
|
|
100
107
|
|
|
101
108
|
return client({
|
|
102
109
|
url: "/transactions/" + trxId + "/payments",
|
|
103
110
|
method: "put",
|
|
104
111
|
headers: authorizationHeaders({
|
|
105
|
-
token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider
|
|
112
|
+
token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers
|
|
106
113
|
}),
|
|
107
114
|
data: {
|
|
108
115
|
paymentResult: paymentResult
|
|
@@ -12,11 +12,12 @@ function tripChangeInfoFactory(_ref) {
|
|
|
12
12
|
var token = _ref2.token,
|
|
13
13
|
jwtToken = _ref2.jwtToken,
|
|
14
14
|
productId = _ref2.productId,
|
|
15
|
-
params = _ref2.params
|
|
15
|
+
params = _ref2.params,
|
|
16
|
+
headers = _ref2.headers;
|
|
16
17
|
|
|
17
18
|
return client({
|
|
18
19
|
url: "/trip-change-info/" + productId,
|
|
19
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
20
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
20
21
|
params: params
|
|
21
22
|
});
|
|
22
23
|
}
|
|
@@ -10,11 +10,12 @@ function waitlistsFactory(_ref) {
|
|
|
10
10
|
function all(_ref2) {
|
|
11
11
|
var token = _ref2.token,
|
|
12
12
|
jwtToken = _ref2.jwtToken,
|
|
13
|
-
query = _ref2.query
|
|
13
|
+
query = _ref2.query,
|
|
14
|
+
headers = _ref2.headers;
|
|
14
15
|
|
|
15
16
|
return client({
|
|
16
17
|
url: "/waitlists",
|
|
17
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
18
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
18
19
|
params: query
|
|
19
20
|
});
|
|
20
21
|
}
|
|
@@ -22,37 +23,39 @@ function waitlistsFactory(_ref) {
|
|
|
22
23
|
function get(_ref3) {
|
|
23
24
|
var token = _ref3.token,
|
|
24
25
|
jwtToken = _ref3.jwtToken,
|
|
25
|
-
waitlistId = _ref3.waitlistId
|
|
26
|
+
waitlistId = _ref3.waitlistId,
|
|
27
|
+
headers = _ref3.headers;
|
|
26
28
|
|
|
27
|
-
console.log("/waitlists/" + waitlistId);
|
|
28
29
|
return client({
|
|
29
30
|
url: "/waitlists/" + waitlistId,
|
|
30
31
|
method: "get",
|
|
31
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
32
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
function remove(_ref4) {
|
|
36
37
|
var token = _ref4.token,
|
|
37
38
|
jwtToken = _ref4.jwtToken,
|
|
38
|
-
waitlistId = _ref4.waitlistId
|
|
39
|
+
waitlistId = _ref4.waitlistId,
|
|
40
|
+
headers = _ref4.headers;
|
|
39
41
|
|
|
40
42
|
return client({
|
|
41
43
|
url: "/waitlists/" + waitlistId,
|
|
42
44
|
method: "delete",
|
|
43
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
45
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
44
46
|
});
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
function create(_ref5) {
|
|
48
50
|
var token = _ref5.token,
|
|
49
51
|
jwtToken = _ref5.jwtToken,
|
|
50
|
-
data = _ref5.data
|
|
52
|
+
data = _ref5.data,
|
|
53
|
+
headers = _ref5.headers;
|
|
51
54
|
|
|
52
55
|
return client({
|
|
53
56
|
url: "/waitlists",
|
|
54
57
|
method: "post",
|
|
55
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
58
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
56
59
|
data: data
|
|
57
60
|
});
|
|
58
61
|
}
|
|
@@ -10,12 +10,13 @@ function customReportsFactory(_ref) {
|
|
|
10
10
|
function create(_ref2) {
|
|
11
11
|
var token = _ref2.token,
|
|
12
12
|
customReport = _ref2.customReport,
|
|
13
|
-
jwtToken = _ref2.jwtToken
|
|
13
|
+
jwtToken = _ref2.jwtToken,
|
|
14
|
+
headers = _ref2.headers;
|
|
14
15
|
|
|
15
16
|
return client({
|
|
16
17
|
url: "/custom-reports",
|
|
17
18
|
method: "post",
|
|
18
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
19
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
19
20
|
data: { customReport: customReport }
|
|
20
21
|
});
|
|
21
22
|
}
|
|
@@ -24,24 +25,26 @@ function customReportsFactory(_ref) {
|
|
|
24
25
|
var token = _ref3.token,
|
|
25
26
|
jwtToken = _ref3.jwtToken,
|
|
26
27
|
_ref3$query = _ref3.query,
|
|
27
|
-
query = _ref3$query === undefined ? {} : _ref3$query
|
|
28
|
+
query = _ref3$query === undefined ? {} : _ref3$query,
|
|
29
|
+
headers = _ref3.headers;
|
|
28
30
|
|
|
29
31
|
return client({
|
|
30
32
|
url: "/custom-reports",
|
|
31
33
|
params: query,
|
|
32
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
34
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
33
35
|
});
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
function remove(_ref4) {
|
|
37
39
|
var token = _ref4.token,
|
|
38
40
|
jwtToken = _ref4.jwtToken,
|
|
39
|
-
customReportId = _ref4.customReportId
|
|
41
|
+
customReportId = _ref4.customReportId,
|
|
42
|
+
headers = _ref4.headers;
|
|
40
43
|
|
|
41
44
|
return client({
|
|
42
45
|
url: "/custom-reports/" + customReportId,
|
|
43
46
|
method: "delete",
|
|
44
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
47
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
|
|
@@ -11,22 +11,24 @@ function reportTypesFactory(_ref) {
|
|
|
11
11
|
function get(_ref2) {
|
|
12
12
|
var token = _ref2.token,
|
|
13
13
|
jwtToken = _ref2.jwtToken,
|
|
14
|
-
id = _ref2.id
|
|
14
|
+
id = _ref2.id,
|
|
15
|
+
headers = _ref2.headers;
|
|
15
16
|
|
|
16
17
|
return client({
|
|
17
18
|
url: "/types/" + id,
|
|
18
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
19
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
function getByName(_ref3) {
|
|
23
24
|
var token = _ref3.token,
|
|
24
25
|
jwtToken = _ref3.jwtToken,
|
|
25
|
-
name = _ref3.name
|
|
26
|
+
name = _ref3.name,
|
|
27
|
+
headers = _ref3.headers;
|
|
26
28
|
//deprecated
|
|
27
29
|
return client({
|
|
28
30
|
url: "/types?name=" + name,
|
|
29
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
31
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
30
32
|
});
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -11,11 +11,12 @@ function bundlesFactory(_ref) {
|
|
|
11
11
|
function all(_ref2) {
|
|
12
12
|
var token = _ref2.token,
|
|
13
13
|
_ref2$query = _ref2.query,
|
|
14
|
-
query = _ref2$query === undefined ? {} : _ref2$query
|
|
14
|
+
query = _ref2$query === undefined ? {} : _ref2$query,
|
|
15
|
+
headers = _ref2.headers;
|
|
15
16
|
|
|
16
17
|
return client.get("/bundles", {
|
|
17
18
|
params: query,
|
|
18
|
-
headers: authorizationHeaders({ token: token, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
19
|
+
headers: authorizationHeaders({ token: token, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -13,12 +13,13 @@ function cartPromoFactory(_ref) {
|
|
|
13
13
|
jwtToken = _ref2.jwtToken,
|
|
14
14
|
cartId = _ref2.cartId,
|
|
15
15
|
_ref2$query = _ref2.query,
|
|
16
|
-
query = _ref2$query === undefined ? {} : _ref2$query
|
|
16
|
+
query = _ref2$query === undefined ? {} : _ref2$query,
|
|
17
|
+
headers = _ref2.headers;
|
|
17
18
|
|
|
18
19
|
return client({
|
|
19
20
|
url: "/cart/" + cartId + "/promos",
|
|
20
21
|
method: "post",
|
|
21
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
22
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
22
23
|
params: query
|
|
23
24
|
});
|
|
24
25
|
}
|
|
@@ -28,12 +29,13 @@ function cartPromoFactory(_ref) {
|
|
|
28
29
|
jwtToken = _ref3.jwtToken,
|
|
29
30
|
cartId = _ref3.cartId,
|
|
30
31
|
_ref3$query = _ref3.query,
|
|
31
|
-
query = _ref3$query === undefined ? {} : _ref3$query
|
|
32
|
+
query = _ref3$query === undefined ? {} : _ref3$query,
|
|
33
|
+
headers = _ref3.headers;
|
|
32
34
|
|
|
33
35
|
return client({
|
|
34
36
|
url: "/cart/" + cartId,
|
|
35
37
|
method: "delete",
|
|
36
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
38
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
37
39
|
params: query
|
|
38
40
|
});
|
|
39
41
|
}
|
|
@@ -11,7 +11,8 @@ function cartFactory(_ref) {
|
|
|
11
11
|
function get(_ref2) {
|
|
12
12
|
var token = _ref2.token,
|
|
13
13
|
id = _ref2.id,
|
|
14
|
-
providerId = _ref2.providerId
|
|
14
|
+
providerId = _ref2.providerId,
|
|
15
|
+
headers = _ref2.headers;
|
|
15
16
|
|
|
16
17
|
var url = "/cart/" + id;
|
|
17
18
|
|
|
@@ -21,19 +22,20 @@ function cartFactory(_ref) {
|
|
|
21
22
|
|
|
22
23
|
return client({
|
|
23
24
|
url: url,
|
|
24
|
-
headers: authorizationHeaders({ token: token, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
25
|
+
headers: authorizationHeaders({ token: token, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
function create(_ref3) {
|
|
29
30
|
var token = _ref3.token,
|
|
30
31
|
cart = _ref3.cart,
|
|
31
|
-
jwtToken = _ref3.jwtToken
|
|
32
|
+
jwtToken = _ref3.jwtToken,
|
|
33
|
+
headers = _ref3.headers;
|
|
32
34
|
|
|
33
35
|
return client({
|
|
34
36
|
url: "/cart",
|
|
35
37
|
method: "post",
|
|
36
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
38
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
37
39
|
data: cart
|
|
38
40
|
});
|
|
39
41
|
}
|
|
@@ -42,12 +44,13 @@ function cartFactory(_ref) {
|
|
|
42
44
|
var token = _ref4.token,
|
|
43
45
|
cartId = _ref4.cartId,
|
|
44
46
|
cart = _ref4.cart,
|
|
45
|
-
jwtToken = _ref4.jwtToken
|
|
47
|
+
jwtToken = _ref4.jwtToken,
|
|
48
|
+
headers = _ref4.headers;
|
|
46
49
|
|
|
47
50
|
return client({
|
|
48
51
|
url: "/cart/" + cartId + "/items",
|
|
49
52
|
method: "post",
|
|
50
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
53
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
51
54
|
data: cart
|
|
52
55
|
});
|
|
53
56
|
}
|
|
@@ -56,12 +59,13 @@ function cartFactory(_ref) {
|
|
|
56
59
|
var token = _ref5.token,
|
|
57
60
|
cartId = _ref5.cartId,
|
|
58
61
|
params = _ref5.params,
|
|
59
|
-
jwtToken = _ref5.jwtToken
|
|
62
|
+
jwtToken = _ref5.jwtToken,
|
|
63
|
+
headers = _ref5.headers;
|
|
60
64
|
|
|
61
65
|
return client({
|
|
62
66
|
url: "/cart/" + cartId + "/items",
|
|
63
67
|
method: "delete",
|
|
64
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
68
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
65
69
|
params: params
|
|
66
70
|
});
|
|
67
71
|
}
|
|
@@ -72,12 +76,13 @@ function cartFactory(_ref) {
|
|
|
72
76
|
jwtToken = _ref6.jwtToken,
|
|
73
77
|
cartId = _ref6.cartId,
|
|
74
78
|
_ref6$query = _ref6.query,
|
|
75
|
-
query = _ref6$query === undefined ? {} : _ref6$query
|
|
79
|
+
query = _ref6$query === undefined ? {} : _ref6$query,
|
|
80
|
+
headers = _ref6.headers;
|
|
76
81
|
|
|
77
82
|
return client({
|
|
78
83
|
url: "/carts/" + cartId + "/loyalty-points-amount",
|
|
79
84
|
params: query,
|
|
80
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
85
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
81
86
|
});
|
|
82
87
|
}
|
|
83
88
|
};
|
|
@@ -86,12 +91,13 @@ function cartFactory(_ref) {
|
|
|
86
91
|
var token = _ref7.token,
|
|
87
92
|
jwtToken = _ref7.jwtToken,
|
|
88
93
|
cartId = _ref7.cartId,
|
|
89
|
-
data = _ref7.data
|
|
94
|
+
data = _ref7.data,
|
|
95
|
+
headers = _ref7.headers;
|
|
90
96
|
|
|
91
97
|
return client({
|
|
92
98
|
url: "/cart/" + cartId,
|
|
93
99
|
method: "patch",
|
|
94
|
-
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
|
|
100
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
95
101
|
data: data
|
|
96
102
|
});
|
|
97
103
|
}
|
|
@@ -11,11 +11,12 @@ function customFieldsFactory(_ref) {
|
|
|
11
11
|
function all(_ref2) {
|
|
12
12
|
var token = _ref2.token,
|
|
13
13
|
_ref2$query = _ref2.query,
|
|
14
|
-
query = _ref2$query === undefined ? {} : _ref2$query
|
|
14
|
+
query = _ref2$query === undefined ? {} : _ref2$query,
|
|
15
|
+
headers = _ref2.headers;
|
|
15
16
|
|
|
16
17
|
return client.get("/custom-fields", {
|
|
17
18
|
params: query,
|
|
18
|
-
headers: authorizationHeaders({ token: token, internalAuthTokenProvider: internalAuthTokenProvider })
|
|
19
|
+
headers: authorizationHeaders({ token: token, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
|