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
|
@@ -2,10 +2,10 @@ const { authorizationHeaders } = require("./../endpoints_helpers");
|
|
|
2
2
|
|
|
3
3
|
function stationsZonesFactory({client, internalAuthTokenProvider}) {
|
|
4
4
|
|
|
5
|
-
function get({ token, query = {} }) {
|
|
5
|
+
function get({ token, query = {}, headers }) {
|
|
6
6
|
return client.get("/stations/zones", {
|
|
7
7
|
params : query,
|
|
8
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
8
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
const {authorizationHeaders} = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function stationsFactory({client, internalAuthTokenProvider}) {
|
|
4
|
-
function get({token, id}) {
|
|
4
|
+
function get({token, id, headers}) {
|
|
5
5
|
return client.get(`/stations/${id}`, {
|
|
6
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
6
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
function all({token, query = {}}) {
|
|
10
|
+
function all({token, query = {}, headers}) {
|
|
11
11
|
return client.get("/stations", {
|
|
12
12
|
params: query,
|
|
13
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
13
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -2,34 +2,34 @@ const {authorizationHeaders} = require("../endpoints_helpers");
|
|
|
2
2
|
|
|
3
3
|
function taxesFactory({client, internalAuthTokenProvider}) {
|
|
4
4
|
|
|
5
|
-
function all({token, query = {}}) {
|
|
5
|
+
function all({token, query = {}, headers}) {
|
|
6
6
|
return client.get("/taxes", {
|
|
7
7
|
params: query,
|
|
8
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
8
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
function get({taxId, token, query = {}}) {
|
|
12
|
+
function get({taxId, token, query = {}, headers}) {
|
|
13
13
|
return client.get(`/taxes/${taxId}`, {
|
|
14
14
|
params: query,
|
|
15
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
15
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
function create({jwtToken, tax, token}) {
|
|
19
|
+
function create({jwtToken, tax, token, headers}) {
|
|
20
20
|
return client({
|
|
21
21
|
url: "/taxes",
|
|
22
22
|
method: "post",
|
|
23
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
23
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
24
24
|
data: {tax}
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
function update({jwtToken, token, taxId, tax}) {
|
|
28
|
+
function update({jwtToken, token, taxId, tax, headers}) {
|
|
29
29
|
return client({
|
|
30
30
|
url: `/taxes/${taxId}`,
|
|
31
31
|
method: "put",
|
|
32
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
32
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
33
33
|
data: {tax}
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const {authorizationHeaders} = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function travellerCardProvidersTypesFactory({client, internalAuthTokenProvider}) {
|
|
4
|
-
function all({token, query = {}}) {
|
|
4
|
+
function all({token, query = {}, headers}) {
|
|
5
5
|
return client.get("/traveller-card-providers/types", {
|
|
6
6
|
params: query,
|
|
7
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
7
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
const {authorizationHeaders} = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function travellerCardProvidersFactory({client, internalAuthTokenProvider}) {
|
|
4
|
-
function all({token, jwtToken, query = {}}) {
|
|
4
|
+
function all({token, jwtToken, query = {}, headers}) {
|
|
5
5
|
return client({
|
|
6
6
|
url: "/traveller-card-providers",
|
|
7
7
|
params: query,
|
|
8
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
8
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
function create({token, jwtToken, travellerCardProvider}) {
|
|
12
|
+
function create({token, jwtToken, travellerCardProvider, headers}) {
|
|
13
13
|
return client({
|
|
14
14
|
url: "/traveller-card-providers",
|
|
15
15
|
method: "post",
|
|
16
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
16
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
17
17
|
data: {travellerCardProvider}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
function update({jwtToken, token, travellerCardProviderId, travellerCardProvider}) {
|
|
21
|
+
function update({jwtToken, token, travellerCardProviderId, travellerCardProvider, headers}) {
|
|
22
22
|
return client({
|
|
23
23
|
url: `/traveller-card-providers/${travellerCardProviderId}`,
|
|
24
24
|
method: "put",
|
|
25
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
25
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
26
26
|
data: {travellerCardProvider}
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
function get({token, travellerCardProviderId, jwtToken}) {
|
|
30
|
+
function get({token, travellerCardProviderId, jwtToken, headers}) {
|
|
31
31
|
return client({
|
|
32
32
|
url: `/traveller-card-providers/${travellerCardProviderId}`,
|
|
33
33
|
method: "get",
|
|
34
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider, jwtToken})
|
|
34
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, jwtToken, headers})
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
const {authorizationHeaders} = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function travellerCardTypesFactory({client, internalAuthTokenProvider}) {
|
|
4
|
-
function all({token, jwtToken, query = {}}) {
|
|
4
|
+
function all({token, jwtToken, query = {}, headers}) {
|
|
5
5
|
return client({
|
|
6
6
|
url: "/traveller-card-types",
|
|
7
7
|
params: query,
|
|
8
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
|
|
8
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
function create({token, jwtToken, travellerCardType}) {
|
|
12
|
+
function create({token, jwtToken, travellerCardType, headers}) {
|
|
13
13
|
return client({
|
|
14
14
|
url: "/traveller-card-types",
|
|
15
15
|
method: "post",
|
|
16
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
16
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
17
17
|
data: {travellerCardType}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
function update({jwtToken, token, travellerCardTypeId, travellerCardType}) {
|
|
21
|
+
function update({jwtToken, token, travellerCardTypeId, travellerCardType, headers}) {
|
|
22
22
|
return client({
|
|
23
23
|
url: `/traveller-card-types/${travellerCardTypeId}`,
|
|
24
24
|
method: "put",
|
|
25
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
25
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
26
26
|
data: {travellerCardType}
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
function get({token, travellerCardTypeId, jwtToken}) {
|
|
30
|
+
function get({token, travellerCardTypeId, jwtToken, headers}) {
|
|
31
31
|
return client({
|
|
32
32
|
url: `/traveller-card-types/${travellerCardTypeId}`,
|
|
33
33
|
method: "get",
|
|
34
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider, jwtToken})
|
|
34
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, jwtToken, headers})
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
function remove({token, travellerCardTypeId, jwtToken}) {
|
|
38
|
+
function remove({token, travellerCardTypeId, jwtToken, headers}) {
|
|
39
39
|
return client({
|
|
40
40
|
url: `/traveller-card-types/${travellerCardTypeId}`,
|
|
41
41
|
method: "delete",
|
|
42
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider, jwtToken})
|
|
42
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, jwtToken, headers})
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
const { authorizationHeaders } = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function tripsFactory({ client, internalAuthTokenProvider }) {
|
|
4
|
-
function all({ token, jwtToken, query = {} }) {
|
|
4
|
+
function all({ token, jwtToken, query = {}, headers }) {
|
|
5
5
|
return client({
|
|
6
6
|
url: "/trips",
|
|
7
7
|
params: query,
|
|
8
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
|
|
8
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
function get({token, id}) {
|
|
12
|
+
function get({token, id, headers}) {
|
|
13
13
|
return client.get(`/trip/${id}`, {
|
|
14
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
14
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -6,44 +6,45 @@ function zonePriceOverageFactory({client, internalAuthTokenProvider}) {
|
|
|
6
6
|
|
|
7
7
|
function all({
|
|
8
8
|
token,
|
|
9
|
-
query = {}
|
|
9
|
+
query = {},
|
|
10
|
+
headers
|
|
10
11
|
}) {
|
|
11
12
|
return client.get("/zone-price-overages", {
|
|
12
13
|
params: query,
|
|
13
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
14
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
function get({zonePriceOverageId, token}) {
|
|
18
|
+
function get({zonePriceOverageId, token, headers}) {
|
|
18
19
|
return client.get(`/zone-price-overages/${zonePriceOverageId}`, {
|
|
19
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
20
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
function create({jwtToken, token, zonePriceOverages}) {
|
|
24
|
+
function create({jwtToken, token, zonePriceOverages, headers}) {
|
|
24
25
|
return client({
|
|
25
26
|
url: "/zone-price-overages",
|
|
26
27
|
method: "post",
|
|
27
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
28
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
28
29
|
data: {
|
|
29
30
|
zonePriceOverages
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
function remove({jwtToken, zonePriceOverageId, token}) {
|
|
35
|
+
function remove({jwtToken, zonePriceOverageId, token, headers}) {
|
|
35
36
|
return client({
|
|
36
37
|
url: `/zone-price-overages/${zonePriceOverageId}`,
|
|
37
38
|
method: "delete",
|
|
38
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
|
|
39
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
function update({jwtToken, token, zonePriceOverageId, zonePriceOverages}) {
|
|
43
|
+
function update({jwtToken, token, zonePriceOverageId, zonePriceOverages, headers}) {
|
|
43
44
|
return client({
|
|
44
45
|
url: `/zone-price-overages/${zonePriceOverageId}`,
|
|
45
46
|
method: "put",
|
|
46
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
47
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
47
48
|
data: {
|
|
48
49
|
zonePriceOverages
|
|
49
50
|
}
|
|
@@ -6,44 +6,45 @@ function zonePriceFactory({client, internalAuthTokenProvider}) {
|
|
|
6
6
|
|
|
7
7
|
function all({
|
|
8
8
|
token,
|
|
9
|
-
query = {}
|
|
9
|
+
query = {},
|
|
10
|
+
headers
|
|
10
11
|
}) {
|
|
11
12
|
return client.get("/zone-prices", {
|
|
12
13
|
params: query,
|
|
13
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
14
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
function get({zonePriceId, token}) {
|
|
18
|
+
function get({zonePriceId, token, headers}) {
|
|
18
19
|
return client.get(`/zone-prices/${zonePriceId}`, {
|
|
19
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
20
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
function create({jwtToken, token, zonePrice}) {
|
|
24
|
+
function create({jwtToken, token, zonePrice, headers}) {
|
|
24
25
|
return client({
|
|
25
26
|
url: "/zone-prices",
|
|
26
27
|
method: "post",
|
|
27
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
28
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
28
29
|
data: {
|
|
29
30
|
zonePrice
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
function remove({jwtToken, zonePriceId, token}) {
|
|
35
|
+
function remove({jwtToken, zonePriceId, token, headers}) {
|
|
35
36
|
return client({
|
|
36
37
|
url: `/zone-prices/${zonePriceId}`,
|
|
37
38
|
method: "delete",
|
|
38
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
|
|
39
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
function update({jwtToken, token, zonePriceId, zonePrice}) {
|
|
43
|
+
function update({jwtToken, token, zonePriceId, zonePrice, headers}) {
|
|
43
44
|
return client({
|
|
44
45
|
url: `/zone-prices/${zonePriceId}`,
|
|
45
46
|
method: "put",
|
|
46
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
47
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
47
48
|
data: {
|
|
48
49
|
zonePrice
|
|
49
50
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const {authorizationHeaders} = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function emailsFactory({client, internalAuthTokenProvider}) {
|
|
4
|
-
function create({token, jwtToken, data, query = {}}) {
|
|
4
|
+
function create({token, jwtToken, data, query = {}, headers}) {
|
|
5
5
|
return client({
|
|
6
6
|
url: "/emails",
|
|
7
7
|
method: "post",
|
|
8
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
8
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
9
9
|
params: query,
|
|
10
10
|
data
|
|
11
11
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const {authorizationHeaders} = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function infileFactory({client, internalAuthTokenProvider}) {
|
|
4
|
-
function create({token, jwtToken, data, query = {}}) {
|
|
4
|
+
function create({token, jwtToken, data, query = {}, headers}) {
|
|
5
5
|
return client({
|
|
6
6
|
url: "/infile",
|
|
7
7
|
method: "post",
|
|
8
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
8
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
9
9
|
params: query,
|
|
10
10
|
data
|
|
11
11
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const {authorizationHeaders} = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function pdfsFactory({client, internalAuthTokenProvider}) {
|
|
4
|
-
function all({token, jwtToken, query = {}, responseType = "json"}) {
|
|
4
|
+
function all({token, jwtToken, query = {}, responseType = "json", headers}) {
|
|
5
5
|
return client({
|
|
6
6
|
url: "/pdfs",
|
|
7
7
|
method: "get",
|
|
8
8
|
responseType,
|
|
9
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
9
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
10
10
|
params: query
|
|
11
11
|
});
|
|
12
12
|
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
const {authorizationHeaders} = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function providersFactory({client, internalAuthTokenProvider}) {
|
|
4
|
-
function all({token, jwtToken, query = {}}) {
|
|
4
|
+
function all({token, jwtToken, query = {}, headers}) {
|
|
5
5
|
return client({
|
|
6
6
|
url: "/providers",
|
|
7
7
|
method: "get",
|
|
8
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
8
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
9
9
|
params: query
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
function get({token, jwtToken, id, query = {}}) {
|
|
13
|
+
function get({token, jwtToken, id, query = {}, headers}) {
|
|
14
14
|
return client({
|
|
15
15
|
url: `/providers/${id}`,
|
|
16
16
|
method: "get",
|
|
17
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
17
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
18
18
|
params: query
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
function update({token, jwtToken, id, data, query = {}}) {
|
|
22
|
+
function update({token, jwtToken, id, data, query = {}, headers}) {
|
|
23
23
|
return client({
|
|
24
24
|
url: `/providers/${id}`,
|
|
25
25
|
method: "put",
|
|
26
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
26
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
27
27
|
params: query,
|
|
28
28
|
data
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
function remove({token, jwtToken, id, query = {}}) {
|
|
32
|
+
function remove({token, jwtToken, id, query = {}, headers}) {
|
|
33
33
|
return client({
|
|
34
34
|
url: `/providers/${id}`,
|
|
35
35
|
method: "delete",
|
|
36
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
36
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
37
37
|
params: query
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
function create({token, jwtToken, data, query = {}}) {
|
|
41
|
+
function create({token, jwtToken, data, query = {}, headers}) {
|
|
42
42
|
return client({
|
|
43
43
|
url: "/providers",
|
|
44
44
|
method: "post",
|
|
45
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
45
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
46
46
|
params: query,
|
|
47
47
|
data
|
|
48
48
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const {authorizationHeaders} = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function taxIdsFactory({client, internalAuthTokenProvider}) {
|
|
4
|
-
function all({token, jwtToken, query = {}}) {
|
|
4
|
+
function all({token, jwtToken, query = {}, headers}) {
|
|
5
5
|
return client({
|
|
6
6
|
url: "/tax-ids",
|
|
7
7
|
method: "get",
|
|
8
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
8
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
9
9
|
params: query
|
|
10
10
|
});
|
|
11
11
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
const { authorizationHeaders } = require("./../endpoints_helpers");
|
|
2
2
|
|
|
3
3
|
function movementsFactory({ client, internalAuthTokenProvider }) {
|
|
4
|
-
function all({ token, jwtToken, programId, query = {} }) {
|
|
4
|
+
function all({ token, jwtToken, programId, query = {}, headers }) {
|
|
5
5
|
return client({
|
|
6
6
|
url: `/programs/${programId}/movements`,
|
|
7
7
|
params: query,
|
|
8
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
|
|
8
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
function create({ token, jwtToken, programId, movement, query = {} }) {
|
|
12
|
+
function create({ token, jwtToken, programId, movement, query = {}, headers }) {
|
|
13
13
|
return client({
|
|
14
14
|
url: `/programs/${programId}/movements`,
|
|
15
15
|
method: "post",
|
|
16
16
|
params: query,
|
|
17
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
17
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
18
18
|
data: movement
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
const balance = {
|
|
23
|
-
get({ token, jwtToken, programId, customerId, query = {} }) {
|
|
23
|
+
get({ token, jwtToken, programId, customerId, query = {}, headers }) {
|
|
24
24
|
return client({
|
|
25
25
|
url: `/programs/${programId}/movements/balance/${customerId}`,
|
|
26
26
|
params: query,
|
|
27
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
|
|
27
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
};
|
|
@@ -2,30 +2,30 @@ const { authorizationHeaders } = require("./../endpoints_helpers");
|
|
|
2
2
|
|
|
3
3
|
function programsFactory({ client, internalAuthTokenProvider }) {
|
|
4
4
|
|
|
5
|
-
function all({ token, context, query = {} }) {
|
|
5
|
+
function all({ token, context, query = {}, headers }) {
|
|
6
6
|
const queryObj = Object.assign({}, query, {context});
|
|
7
7
|
|
|
8
8
|
return client({
|
|
9
9
|
url: "/programs",
|
|
10
10
|
params: queryObj,
|
|
11
|
-
headers: authorizationHeaders({token, internalAuthTokenProvider})
|
|
11
|
+
headers: authorizationHeaders({token, internalAuthTokenProvider, headers})
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
function create({ token, jwtToken, program }) {
|
|
15
|
+
function create({ token, jwtToken, program, headers }) {
|
|
16
16
|
return client({
|
|
17
17
|
url: "/programs",
|
|
18
18
|
method: "post",
|
|
19
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
19
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
20
20
|
data: program
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
function put({ token, jwtToken, programId, program }) {
|
|
24
|
+
function put({ token, jwtToken, programId, program, headers }) {
|
|
25
25
|
return client({
|
|
26
26
|
url: `/programs/${programId}`,
|
|
27
27
|
method: "put",
|
|
28
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
|
|
28
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
29
29
|
data: program
|
|
30
30
|
});
|
|
31
31
|
}
|
|
@@ -6,13 +6,13 @@ function customersFactory({
|
|
|
6
6
|
client, internalAuthTokenProvider
|
|
7
7
|
}) {
|
|
8
8
|
function sendResetPasswordEmail({
|
|
9
|
-
token, jwtToken, query = {}
|
|
9
|
+
token, jwtToken, query = {}, headers
|
|
10
10
|
}) {
|
|
11
11
|
return client({
|
|
12
12
|
url: "/customers/reset",
|
|
13
13
|
method: "post",
|
|
14
14
|
params: query,
|
|
15
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
|
|
15
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -6,13 +6,13 @@ function emailFactory({
|
|
|
6
6
|
client, internalAuthTokenProvider
|
|
7
7
|
}) {
|
|
8
8
|
function create({
|
|
9
|
-
token, jwtToken, query = {}
|
|
9
|
+
token, jwtToken, query = {}, headers
|
|
10
10
|
}) {
|
|
11
11
|
return client({
|
|
12
12
|
url: "/email",
|
|
13
13
|
method: "post",
|
|
14
14
|
params: query,
|
|
15
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
|
|
15
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -7,26 +7,28 @@ function manifestNotificationsFactory({
|
|
|
7
7
|
internalAuthTokenProvider
|
|
8
8
|
}) {
|
|
9
9
|
function create({
|
|
10
|
-
token, jwtToken, query = {}, data
|
|
10
|
+
token, jwtToken, query = {}, data, headers
|
|
11
11
|
}) {
|
|
12
12
|
return client({
|
|
13
13
|
url: "/manifest-notifications",
|
|
14
14
|
method: "post",
|
|
15
15
|
params: query,
|
|
16
16
|
data,
|
|
17
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
|
|
17
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
function all({
|
|
22
22
|
token,
|
|
23
|
-
query = {}
|
|
23
|
+
query = {},
|
|
24
|
+
headers
|
|
24
25
|
}) {
|
|
25
26
|
return client.get("/manifest-notifications", {
|
|
26
27
|
params: query,
|
|
27
28
|
headers: authorizationHeaders({
|
|
28
29
|
token,
|
|
29
|
-
internalAuthTokenProvider
|
|
30
|
+
internalAuthTokenProvider,
|
|
31
|
+
headers
|
|
30
32
|
})
|
|
31
33
|
});
|
|
32
34
|
}
|
|
@@ -6,13 +6,13 @@ function printedTicketsFactory({
|
|
|
6
6
|
client, internalAuthTokenProvider
|
|
7
7
|
}) {
|
|
8
8
|
function get({
|
|
9
|
-
token, jwtToken, responseType = "json", trxId, lang, date
|
|
9
|
+
token, jwtToken, responseType = "json", trxId, lang, date, headers
|
|
10
10
|
}) {
|
|
11
11
|
return client({
|
|
12
12
|
url: "/printed-tickets",
|
|
13
13
|
params: {trxId, lang, date},
|
|
14
14
|
responseType,
|
|
15
|
-
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
|
|
15
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -7,24 +7,27 @@ function accountingItemsFactory({
|
|
|
7
7
|
}) {
|
|
8
8
|
function all({
|
|
9
9
|
token,
|
|
10
|
-
query = {}
|
|
10
|
+
query = {},
|
|
11
|
+
headers
|
|
11
12
|
}) {
|
|
12
13
|
return client.get("/accounting-items", {
|
|
13
14
|
params: query,
|
|
14
15
|
headers: authorizationHeaders({
|
|
15
16
|
token,
|
|
16
|
-
internalAuthTokenProvider
|
|
17
|
+
internalAuthTokenProvider,
|
|
18
|
+
headers
|
|
17
19
|
})
|
|
18
20
|
});
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
function get({
|
|
22
|
-
accountingItemId, token
|
|
24
|
+
accountingItemId, token, headers
|
|
23
25
|
}) {
|
|
24
26
|
return client.get(`/accounting-items/${accountingItemId}`, {
|
|
25
27
|
headers: authorizationHeaders({
|
|
26
28
|
token,
|
|
27
|
-
internalAuthTokenProvider
|
|
29
|
+
internalAuthTokenProvider,
|
|
30
|
+
headers
|
|
28
31
|
})
|
|
29
32
|
});
|
|
30
33
|
}
|