btrz-api-client 8.30.0 → 8.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client-standalone-min.js +1 -1
- package/lib/endpoints/accounts/application-settings.js +6 -1
- package/lib/endpoints/accounts/current-shifts.js +6 -1
- package/lib/endpoints/accounts/customers.js +11 -4
- package/lib/endpoints/accounts/domains.js +1 -2
- package/lib/endpoints/accounts/dynamic-forms.js +17 -5
- package/lib/endpoints/accounts/email-settings.js +2 -4
- package/lib/endpoints/accounts/email-templates.js +10 -2
- package/lib/endpoints/accounts/exchange-rates.js +3 -3
- package/lib/endpoints/accounts/exchange-receipts.js +2 -2
- package/lib/endpoints/accounts/goal-settings.js +2 -3
- package/lib/endpoints/accounts/images.js +2 -4
- package/lib/endpoints/accounts/interline.js +5 -8
- package/lib/endpoints/accounts/journey-prices-settings.js +2 -2
- package/lib/endpoints/accounts/lexicons.js +36 -7
- package/lib/endpoints/accounts/market-pricing-settings.js +2 -2
- package/lib/endpoints/accounts/multiproduct-sales-settings.js +2 -2
- package/lib/endpoints/accounts/network.js +6 -9
- package/lib/endpoints/accounts/operation-settings.js +2 -3
- package/lib/endpoints/accounts/people-lookups.js +27 -9
- package/lib/endpoints/accounts/point-to-point-settings.js +2 -2
- package/lib/endpoints/accounts/print-settings.js +2 -3
- package/lib/endpoints/accounts/print-templates.js +40 -9
- package/lib/endpoints/accounts/printers.js +1 -2
- package/lib/endpoints/accounts/rms-settings.js +2 -2
- package/lib/endpoints/accounts/s3buckets.js +3 -3
- package/lib/endpoints/accounts/salesforce-settings.js +2 -3
- package/lib/endpoints/accounts/shift-settings.js +2 -3
- package/lib/endpoints/accounts/shifts.js +43 -8
- package/lib/endpoints/accounts/sms-templates.js +39 -10
- package/lib/endpoints/accounts/sub-print-templates.js +1 -1
- package/lib/endpoints/accounts/ticket-movement-settings.js +2 -2
- package/lib/endpoints/accounts/tokens.js +10 -3
- package/lib/endpoints/accounts/transport-regulation-settings.js +2 -2
- package/lib/endpoints/accounts/travellers.js +19 -6
- package/lib/endpoints/accounts/trusted-machines.js +11 -3
- package/lib/endpoints/accounts/twilio-settings.js +2 -3
- package/lib/endpoints/accounts/users.js +12 -8
- package/lib/endpoints/accounts/websales-config.js +10 -3
- package/lib/endpoints/btrzpay/cardpointe.js +5 -5
- package/lib/endpoints/btrzpay/customerCards.js +4 -4
- package/lib/endpoints/btrzpay/customers.js +3 -3
- package/lib/endpoints/btrzpay/datalogic.js +8 -9
- package/lib/endpoints/btrzpay/oxxo.js +5 -13
- package/lib/endpoints/btrzpay/payment-methods.js +25 -11
- package/lib/endpoints/btrzpay/payments.js +2 -2
- package/lib/endpoints/btrzpay/prismaTerminals.js +14 -21
- package/lib/endpoints/btrzpay/reference-numbers.js +1 -1
- package/lib/endpoints/btrzpay/referenced-payments.js +11 -1
- package/lib/endpoints/btrzpay/square.js +2 -2
- package/lib/endpoints/btrzpay/stripe-terminals.js +5 -5
- package/lib/endpoints/btrzpay/terminalPayments.js +15 -5
- package/lib/endpoints/coltrane/merged-fare-tables.js +1 -1
- package/lib/endpoints/coltrane/paths.js +9 -6
- package/lib/endpoints/gps/scanner-app-location.js +3 -2
- package/lib/endpoints/inventory/amenities.js +10 -7
- package/lib/endpoints/inventory/amenity-groups.js +11 -7
- package/lib/endpoints/inventory/banks.js +5 -11
- package/lib/endpoints/inventory/bare-routes.js +12 -4
- package/lib/endpoints/inventory/brands.js +10 -6
- package/lib/endpoints/inventory/bundle-fares.js +4 -2
- package/lib/endpoints/inventory/bundles.js +5 -2
- package/lib/endpoints/inventory/change-requests.js +23 -9
- package/lib/endpoints/inventory/companies.js +5 -2
- package/lib/endpoints/inventory/control-classes.js +34 -4
- package/lib/endpoints/inventory/countries.js +8 -3
- package/lib/endpoints/inventory/custom-content.js +8 -6
- package/lib/endpoints/inventory/custom-fields.js +9 -7
- package/lib/endpoints/inventory/document-types.js +8 -11
- package/lib/endpoints/inventory/external-passes.js +13 -4
- package/lib/endpoints/inventory/external-wallets.js +5 -6
- package/lib/endpoints/inventory/fallback-codes.js +11 -4
- package/lib/endpoints/inventory/fare-classes.js +6 -4
- package/lib/endpoints/inventory/fares.js +13 -7
- package/lib/endpoints/inventory/fees.js +8 -4
- package/lib/endpoints/inventory/filtered-trips-v2.js +1 -1
- package/lib/endpoints/inventory/filtered-trips.js +14 -2
- package/lib/endpoints/inventory/financing-costs.js +15 -8
- package/lib/endpoints/inventory/garages.js +7 -5
- package/lib/endpoints/inventory/getnet-terminals.js +12 -4
- package/lib/endpoints/inventory/gift-certificate-definitions.js +10 -11
- package/lib/endpoints/inventory/insurances.js +10 -7
- package/lib/endpoints/inventory/insurancesCost.js +8 -5
- package/lib/endpoints/inventory/items.js +22 -4
- package/lib/endpoints/inventory/journey-prices.js +36 -7
- package/lib/endpoints/inventory/labels.js +6 -5
- package/lib/endpoints/inventory/marital-status.js +8 -11
- package/lib/endpoints/inventory/marketplace-modifiers.js +16 -7
- package/lib/endpoints/inventory/mit-terminal-settings.js +5 -11
- package/lib/endpoints/inventory/mit-terminals.js +5 -11
- package/lib/endpoints/inventory/operating-companies.js +13 -10
- package/lib/endpoints/inventory/operation-messages.js +16 -7
- package/lib/endpoints/inventory/operation-reasons.js +11 -9
- package/lib/endpoints/inventory/parcel-zones.js +6 -5
- package/lib/endpoints/inventory/pay-on-accounts.js +9 -3
- package/lib/endpoints/inventory/payment-terminals.js +5 -11
- package/lib/endpoints/inventory/prisma-terminals.js +10 -6
- package/lib/endpoints/inventory/products.js +31 -7
- package/lib/endpoints/inventory/promos.js +29 -11
- package/lib/endpoints/inventory/routes.js +50 -31
- package/lib/endpoints/inventory/schedule-groups.js +7 -7
- package/lib/endpoints/inventory/schedules.js +24 -11
- package/lib/endpoints/inventory/seatclasses.js +5 -15
- package/lib/endpoints/inventory/seatfees.js +9 -6
- package/lib/endpoints/inventory/seatmaps.js +37 -10
- package/lib/endpoints/inventory/segments-information-tables.js +5 -4
- package/lib/endpoints/inventory/segments-information.js +4 -2
- package/lib/endpoints/inventory/service-numbers.js +9 -6
- package/lib/endpoints/inventory/service-types.js +5 -11
- package/lib/endpoints/inventory/ssrs.js +11 -3
- package/lib/endpoints/inventory/station-classes.js +12 -6
- package/lib/endpoints/inventory/station-groups.js +4 -3
- package/lib/endpoints/inventory/stations-provinces.js +1 -7
- package/lib/endpoints/inventory/stations-zones.js +3 -2
- package/lib/endpoints/inventory/stations.js +23 -5
- package/lib/endpoints/inventory/taxes.js +5 -6
- package/lib/endpoints/inventory/travel-routes.js +6 -4
- package/lib/endpoints/inventory/traveller-card-providers-types.js +1 -7
- package/lib/endpoints/inventory/traveller-card-providers.js +3 -9
- package/lib/endpoints/inventory/traveller-card-types.js +7 -6
- package/lib/endpoints/inventory/trips.js +2 -8
- package/lib/endpoints/inventory/vehicle-types.js +0 -1
- package/lib/endpoints/inventory/vehicles.js +17 -2
- package/lib/endpoints/inventory/zone-price-overages.js +4 -10
- package/lib/endpoints/inventory/zone-prices.js +12 -7
- package/lib/endpoints/invoices/dlink.js +3 -2
- package/lib/endpoints/invoices/emails.js +1 -7
- package/lib/endpoints/invoices/gti.js +2 -2
- package/lib/endpoints/invoices/infile.js +2 -2
- package/lib/endpoints/invoices/infileJson.js +2 -2
- package/lib/endpoints/invoices/invoices.js +14 -10
- package/lib/endpoints/invoices/pdfs.js +4 -3
- package/lib/endpoints/invoices/providers.js +12 -11
- package/lib/endpoints/invoices/providersSequences.js +5 -15
- package/lib/endpoints/invoices/system.js +2 -2
- package/lib/endpoints/invoices/tax-ids.js +1 -1
- package/lib/endpoints/notifications/customers.js +25 -5
- package/lib/endpoints/notifications/email.js +8 -3
- package/lib/endpoints/notifications/manifest-notifications.js +4 -3
- package/lib/endpoints/notifications/notify.js +20 -5
- package/lib/endpoints/notifications/orders-rules-validations.js +2 -8
- package/lib/endpoints/notifications/pdf-data.js +2 -1
- package/lib/endpoints/notifications/pdfs.js +2 -1
- package/lib/endpoints/notifications/printed-tickets.js +17 -6
- package/lib/endpoints/notifications/twilio.js +1 -7
- package/lib/endpoints/operations/accounting_items.js +9 -4
- package/lib/endpoints/operations/applied_insurance.js +8 -3
- package/lib/endpoints/operations/calendar_entries.js +7 -3
- package/lib/endpoints/operations/external-bookings.js +2 -8
- package/lib/endpoints/operations/flexpasses.js +1 -1
- package/lib/endpoints/operations/loans.js +10 -4
- package/lib/endpoints/operations/manifest.js +83 -33
- package/lib/endpoints/operations/manifest_leg_for_tickets.js +1 -2
- package/lib/endpoints/operations/movements.js +1 -7
- package/lib/endpoints/operations/outlook-trips.js +13 -3
- package/lib/endpoints/operations/parcels.js +20 -6
- package/lib/endpoints/operations/parcels_manifests.js +6 -16
- package/lib/endpoints/operations/passenger_check_in_info.js +3 -10
- package/lib/endpoints/operations/redemption.js +4 -4
- package/lib/endpoints/operations/rms.js +33 -6
- package/lib/endpoints/operations/scheduled_notifications.js +4 -11
- package/lib/endpoints/operations/segments.js +2 -2
- package/lib/endpoints/operations/sold-items-fulfillment.js +4 -3
- package/lib/endpoints/operations/sold-items.js +13 -4
- package/lib/endpoints/operations/tickets.js +4 -4
- package/lib/endpoints/operations/transaction.js +1 -1
- package/lib/endpoints/operations/transactions.js +6 -14
- package/lib/endpoints/operations/transport_regulations.js +1 -1
- package/lib/endpoints/operations/trip_change_info.js +13 -1
- package/lib/endpoints/operations/vehicle_assignments.js +10 -5
- package/lib/endpoints/operations/vouchers.js +2 -9
- package/lib/endpoints/operations/waitlists.js +2 -2
- package/lib/endpoints/sales/bundles.js +4 -2
- package/lib/endpoints/sales/cancellations.js +2 -2
- package/lib/endpoints/sales/cart-promo.js +2 -9
- package/lib/endpoints/sales/cart.js +30 -17
- package/lib/endpoints/sales/check-in-info.js +1 -7
- package/lib/endpoints/sales/custom-fields.js +4 -3
- package/lib/endpoints/sales/flexpasses.js +1 -7
- package/lib/endpoints/sales/gift-certificates.js +4 -2
- package/lib/endpoints/sales/order.js +6 -4
- package/lib/endpoints/sales/parcel-quotes.js +1 -1
- package/lib/endpoints/sales/payment-providers.js +6 -3
- package/lib/endpoints/sales/redeemable-items.js +16 -5
- package/lib/endpoints/sales/sync-entry.js +1 -1
- package/lib/endpoints/sales/voucher.js +1 -1
- package/package.json +1 -1
- package/src/endpoints/accounts/application-settings.js +6 -1
- package/src/endpoints/accounts/current-shifts.js +6 -1
- package/src/endpoints/accounts/customers.js +11 -4
- package/src/endpoints/accounts/domains.js +1 -2
- package/src/endpoints/accounts/dynamic-forms.js +17 -5
- package/src/endpoints/accounts/email-settings.js +2 -4
- package/src/endpoints/accounts/email-templates.js +10 -2
- package/src/endpoints/accounts/exchange-rates.js +3 -3
- package/src/endpoints/accounts/exchange-receipts.js +2 -2
- package/src/endpoints/accounts/goal-settings.js +2 -3
- package/src/endpoints/accounts/images.js +2 -4
- package/src/endpoints/accounts/interline.js +5 -8
- package/src/endpoints/accounts/journey-prices-settings.js +2 -2
- package/src/endpoints/accounts/lexicons.js +36 -7
- package/src/endpoints/accounts/market-pricing-settings.js +2 -2
- package/src/endpoints/accounts/multiproduct-sales-settings.js +2 -2
- package/src/endpoints/accounts/network.js +6 -9
- package/src/endpoints/accounts/operation-settings.js +2 -3
- package/src/endpoints/accounts/people-lookups.js +27 -9
- package/src/endpoints/accounts/point-to-point-settings.js +2 -2
- package/src/endpoints/accounts/print-settings.js +2 -3
- package/src/endpoints/accounts/print-templates.js +40 -9
- package/src/endpoints/accounts/printers.js +1 -2
- package/src/endpoints/accounts/rms-settings.js +2 -2
- package/src/endpoints/accounts/s3buckets.js +3 -3
- package/src/endpoints/accounts/salesforce-settings.js +2 -3
- package/src/endpoints/accounts/shift-settings.js +2 -3
- package/src/endpoints/accounts/shifts.js +43 -8
- package/src/endpoints/accounts/sms-templates.js +39 -10
- package/src/endpoints/accounts/sub-print-templates.js +1 -1
- package/src/endpoints/accounts/ticket-movement-settings.js +2 -2
- package/src/endpoints/accounts/tokens.js +10 -3
- package/src/endpoints/accounts/transport-regulation-settings.js +2 -2
- package/src/endpoints/accounts/travellers.js +19 -6
- package/src/endpoints/accounts/trusted-machines.js +11 -3
- package/src/endpoints/accounts/twilio-settings.js +2 -3
- package/src/endpoints/accounts/users.js +12 -8
- package/src/endpoints/accounts/websales-config.js +10 -3
- package/src/endpoints/btrzpay/cardpointe.js +5 -5
- package/src/endpoints/btrzpay/customerCards.js +4 -4
- package/src/endpoints/btrzpay/customers.js +3 -3
- package/src/endpoints/btrzpay/datalogic.js +8 -9
- package/src/endpoints/btrzpay/oxxo.js +5 -13
- package/src/endpoints/btrzpay/payment-methods.js +25 -11
- package/src/endpoints/btrzpay/payments.js +2 -2
- package/src/endpoints/btrzpay/prismaTerminals.js +14 -21
- package/src/endpoints/btrzpay/reference-numbers.js +1 -1
- package/src/endpoints/btrzpay/referenced-payments.js +10 -2
- package/src/endpoints/btrzpay/square.js +2 -2
- package/src/endpoints/btrzpay/stripe-terminals.js +5 -5
- package/src/endpoints/btrzpay/terminalPayments.js +15 -5
- package/src/endpoints/coltrane/merged-fare-tables.js +1 -1
- package/src/endpoints/coltrane/paths.js +9 -6
- package/src/endpoints/gps/scanner-app-location.js +3 -2
- package/src/endpoints/inventory/amenities.js +10 -7
- package/src/endpoints/inventory/amenity-groups.js +11 -7
- package/src/endpoints/inventory/banks.js +5 -11
- package/src/endpoints/inventory/bare-routes.js +12 -4
- package/src/endpoints/inventory/brands.js +10 -6
- package/src/endpoints/inventory/bundle-fares.js +4 -2
- package/src/endpoints/inventory/bundles.js +5 -2
- package/src/endpoints/inventory/change-requests.js +23 -9
- package/src/endpoints/inventory/companies.js +5 -2
- package/src/endpoints/inventory/control-classes.js +34 -4
- package/src/endpoints/inventory/countries.js +8 -3
- package/src/endpoints/inventory/custom-content.js +8 -6
- package/src/endpoints/inventory/custom-fields.js +9 -7
- package/src/endpoints/inventory/document-types.js +8 -11
- package/src/endpoints/inventory/external-passes.js +13 -4
- package/src/endpoints/inventory/external-wallets.js +5 -6
- package/src/endpoints/inventory/fallback-codes.js +11 -4
- package/src/endpoints/inventory/fare-classes.js +6 -4
- package/src/endpoints/inventory/fares.js +13 -7
- package/src/endpoints/inventory/fees.js +8 -4
- package/src/endpoints/inventory/filtered-trips-v2.js +1 -1
- package/src/endpoints/inventory/filtered-trips.js +14 -2
- package/src/endpoints/inventory/financing-costs.js +15 -8
- package/src/endpoints/inventory/garages.js +7 -5
- package/src/endpoints/inventory/getnet-terminals.js +12 -4
- package/src/endpoints/inventory/gift-certificate-definitions.js +10 -11
- package/src/endpoints/inventory/insurances.js +10 -7
- package/src/endpoints/inventory/insurancesCost.js +8 -5
- package/src/endpoints/inventory/items.js +22 -4
- package/src/endpoints/inventory/journey-prices.js +36 -7
- package/src/endpoints/inventory/labels.js +6 -5
- package/src/endpoints/inventory/marital-status.js +8 -11
- package/src/endpoints/inventory/marketplace-modifiers.js +16 -7
- package/src/endpoints/inventory/mit-terminal-settings.js +5 -11
- package/src/endpoints/inventory/mit-terminals.js +5 -11
- package/src/endpoints/inventory/operating-companies.js +13 -10
- package/src/endpoints/inventory/operation-messages.js +16 -7
- package/src/endpoints/inventory/operation-reasons.js +11 -9
- package/src/endpoints/inventory/parcel-zones.js +6 -5
- package/src/endpoints/inventory/pay-on-accounts.js +9 -3
- package/src/endpoints/inventory/payment-terminals.js +5 -11
- package/src/endpoints/inventory/prisma-terminals.js +10 -6
- package/src/endpoints/inventory/products.js +31 -7
- package/src/endpoints/inventory/promos.js +29 -11
- package/src/endpoints/inventory/routes.js +50 -31
- package/src/endpoints/inventory/schedule-groups.js +7 -7
- package/src/endpoints/inventory/schedules.js +24 -11
- package/src/endpoints/inventory/seatclasses.js +5 -15
- package/src/endpoints/inventory/seatfees.js +9 -6
- package/src/endpoints/inventory/seatmaps.js +37 -10
- package/src/endpoints/inventory/segments-information-tables.js +5 -4
- package/src/endpoints/inventory/segments-information.js +4 -2
- package/src/endpoints/inventory/service-numbers.js +9 -6
- package/src/endpoints/inventory/service-types.js +5 -11
- package/src/endpoints/inventory/ssrs.js +11 -3
- package/src/endpoints/inventory/station-classes.js +12 -6
- package/src/endpoints/inventory/station-groups.js +4 -3
- package/src/endpoints/inventory/stations-provinces.js +1 -7
- package/src/endpoints/inventory/stations-zones.js +3 -2
- package/src/endpoints/inventory/stations.js +23 -5
- package/src/endpoints/inventory/taxes.js +5 -6
- package/src/endpoints/inventory/travel-routes.js +6 -4
- package/src/endpoints/inventory/traveller-card-providers-types.js +1 -7
- package/src/endpoints/inventory/traveller-card-providers.js +3 -9
- package/src/endpoints/inventory/traveller-card-types.js +7 -6
- package/src/endpoints/inventory/trips.js +2 -8
- package/src/endpoints/inventory/vehicle-types.js +0 -1
- package/src/endpoints/inventory/vehicles.js +17 -2
- package/src/endpoints/inventory/zone-price-overages.js +4 -10
- package/src/endpoints/inventory/zone-prices.js +12 -7
- package/src/endpoints/invoices/dlink.js +3 -2
- package/src/endpoints/invoices/emails.js +1 -7
- package/src/endpoints/invoices/gti.js +2 -2
- package/src/endpoints/invoices/infile.js +2 -2
- package/src/endpoints/invoices/infileJson.js +2 -2
- package/src/endpoints/invoices/invoices.js +14 -10
- package/src/endpoints/invoices/pdfs.js +4 -3
- package/src/endpoints/invoices/providers.js +12 -11
- package/src/endpoints/invoices/providersSequences.js +5 -15
- package/src/endpoints/invoices/system.js +2 -2
- package/src/endpoints/invoices/tax-ids.js +1 -1
- package/src/endpoints/notifications/customers.js +25 -5
- package/src/endpoints/notifications/email.js +8 -3
- package/src/endpoints/notifications/manifest-notifications.js +4 -3
- package/src/endpoints/notifications/notify.js +20 -5
- package/src/endpoints/notifications/orders-rules-validations.js +2 -8
- package/src/endpoints/notifications/pdf-data.js +2 -1
- package/src/endpoints/notifications/pdfs.js +2 -1
- package/src/endpoints/notifications/printed-tickets.js +17 -7
- package/src/endpoints/notifications/twilio.js +1 -7
- package/src/endpoints/operations/accounting_items.js +9 -4
- package/src/endpoints/operations/applied_insurance.js +9 -2
- package/src/endpoints/operations/calendar_entries.js +7 -3
- package/src/endpoints/operations/external-bookings.js +2 -8
- package/src/endpoints/operations/flexpasses.js +1 -1
- package/src/endpoints/operations/loans.js +10 -4
- package/src/endpoints/operations/manifest.js +83 -33
- package/src/endpoints/operations/manifest_leg_for_tickets.js +1 -2
- package/src/endpoints/operations/movements.js +1 -7
- package/src/endpoints/operations/outlook-trips.js +13 -3
- package/src/endpoints/operations/parcels.js +20 -6
- package/src/endpoints/operations/parcels_manifests.js +6 -16
- package/src/endpoints/operations/passenger_check_in_info.js +3 -10
- package/src/endpoints/operations/redemption.js +4 -4
- package/src/endpoints/operations/rms.js +33 -6
- package/src/endpoints/operations/scheduled_notifications.js +4 -11
- package/src/endpoints/operations/segments.js +2 -2
- package/src/endpoints/operations/sold-items-fulfillment.js +4 -3
- package/src/endpoints/operations/sold-items.js +13 -4
- package/src/endpoints/operations/tickets.js +4 -4
- package/src/endpoints/operations/transaction.js +1 -1
- package/src/endpoints/operations/transactions.js +6 -14
- package/src/endpoints/operations/transport_regulations.js +1 -1
- package/src/endpoints/operations/trip_change_info.js +13 -1
- package/src/endpoints/operations/vehicle_assignments.js +10 -5
- package/src/endpoints/operations/vouchers.js +2 -9
- package/src/endpoints/operations/waitlists.js +2 -2
- package/src/endpoints/sales/bundles.js +4 -2
- package/src/endpoints/sales/cancellations.js +2 -2
- package/src/endpoints/sales/cart-promo.js +2 -9
- package/src/endpoints/sales/cart.js +30 -17
- package/src/endpoints/sales/check-in-info.js +1 -7
- package/src/endpoints/sales/custom-fields.js +4 -3
- package/src/endpoints/sales/flexpasses.js +1 -7
- package/src/endpoints/sales/gift-certificates.js +4 -2
- package/src/endpoints/sales/order.js +6 -4
- package/src/endpoints/sales/parcel-quotes.js +1 -1
- package/src/endpoints/sales/payment-providers.js +6 -3
- package/src/endpoints/sales/redeemable-items.js +16 -5
- package/src/endpoints/sales/sync-entry.js +1 -1
- package/src/endpoints/sales/voucher.js +1 -1
|
@@ -4,8 +4,9 @@ var _require = require("../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* Query params for GET payment/reversal/refund and PUT refund (btrz-api-payments). See get-by-id-* and put-refunds getSpec().
|
|
7
8
|
* @typedef {Object} PrismaTerminalsQuery
|
|
8
|
-
* @property {string} [providerId] - Account provider
|
|
9
|
+
* @property {string} [providerId] - Account provider (operator) ID; used by agencies/sellers
|
|
9
10
|
* @property {boolean} [validateRefund] - (PUT refunds only) If true, fetch current state from Prisma before applying
|
|
10
11
|
*/
|
|
11
12
|
|
|
@@ -29,7 +30,7 @@ function prismaTerminalsFactory(_ref) {
|
|
|
29
30
|
* @param {string} [opts.token] - API key
|
|
30
31
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
31
32
|
* @param {string} opts.id - Reversal id
|
|
32
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
33
|
+
* @param {PrismaTerminalsQuery} [opts.query] - Query params (providerId)
|
|
33
34
|
* @param {Object} [opts.headers] - Optional headers
|
|
34
35
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
35
36
|
*/
|
|
@@ -48,13 +49,12 @@ function prismaTerminalsFactory(_ref) {
|
|
|
48
49
|
},
|
|
49
50
|
|
|
50
51
|
/**
|
|
51
|
-
* POST /prisma-terminals/payments/:id/reversals - create reversal.
|
|
52
|
+
* POST /prisma-terminals/payments/:id/reversals - create reversal. API does not accept query params.
|
|
52
53
|
* @param {Object} opts
|
|
53
54
|
* @param {string} [opts.token] - API key
|
|
54
55
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
55
56
|
* @param {string} opts.id - Payment id
|
|
56
57
|
* @param {Object} opts.prismaReversal - Prisma reversal payload
|
|
57
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
58
58
|
* @param {Object} [opts.headers] - Optional headers
|
|
59
59
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
60
60
|
*/
|
|
@@ -77,12 +77,11 @@ function prismaTerminalsFactory(_ref) {
|
|
|
77
77
|
},
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* DELETE /prisma-terminals/reversals/:id - delete reversal.
|
|
80
|
+
* DELETE /prisma-terminals/reversals/:id - delete reversal. API does not accept query params.
|
|
81
81
|
* @param {Object} opts
|
|
82
82
|
* @param {string} [opts.token] - API key
|
|
83
83
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
84
84
|
* @param {string} opts.id - Reversal id
|
|
85
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
86
85
|
* @param {Object} [opts.headers] - Optional headers
|
|
87
86
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
88
87
|
*/
|
|
@@ -110,7 +109,7 @@ function prismaTerminalsFactory(_ref) {
|
|
|
110
109
|
* @param {string} [opts.token] - API key
|
|
111
110
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
112
111
|
* @param {string} opts.id - Refund id
|
|
113
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
112
|
+
* @param {PrismaTerminalsQuery} [opts.query] - Query params (providerId)
|
|
114
113
|
* @param {Object} [opts.headers] - Optional headers
|
|
115
114
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
116
115
|
*/
|
|
@@ -129,13 +128,12 @@ function prismaTerminalsFactory(_ref) {
|
|
|
129
128
|
},
|
|
130
129
|
|
|
131
130
|
/**
|
|
132
|
-
* POST /prisma-terminals/payments/:id/refunds - create refund.
|
|
131
|
+
* POST /prisma-terminals/payments/:id/refunds - create refund. API does not accept query params.
|
|
133
132
|
* @param {Object} opts
|
|
134
133
|
* @param {string} [opts.token] - API key
|
|
135
134
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
136
135
|
* @param {string} opts.id - Payment id
|
|
137
136
|
* @param {Object} opts.prismaRefund - Prisma refund payload
|
|
138
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
139
137
|
* @param {Object} [opts.headers] - Optional headers
|
|
140
138
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
141
139
|
*/
|
|
@@ -158,12 +156,11 @@ function prismaTerminalsFactory(_ref) {
|
|
|
158
156
|
},
|
|
159
157
|
|
|
160
158
|
/**
|
|
161
|
-
* DELETE /prisma-terminals/refunds/:id - delete refund.
|
|
159
|
+
* DELETE /prisma-terminals/refunds/:id - delete refund. API does not accept query params.
|
|
162
160
|
* @param {Object} opts
|
|
163
161
|
* @param {string} [opts.token] - API key
|
|
164
162
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
165
163
|
* @param {string} opts.id - Refund id
|
|
166
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
167
164
|
* @param {Object} [opts.headers] - Optional headers
|
|
168
165
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
169
166
|
*/
|
|
@@ -190,7 +187,7 @@ function prismaTerminalsFactory(_ref) {
|
|
|
190
187
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
191
188
|
* @param {string} opts.id - Refund id
|
|
192
189
|
* @param {Object} opts.prismaRefund - Prisma refund payload
|
|
193
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
190
|
+
* @param {PrismaTerminalsQuery} [opts.query] - Query params (providerId, validateRefund)
|
|
194
191
|
* @param {Object} [opts.headers] - Optional headers
|
|
195
192
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
196
193
|
*/
|
|
@@ -220,7 +217,7 @@ function prismaTerminalsFactory(_ref) {
|
|
|
220
217
|
* @param {string} [opts.token] - API key
|
|
221
218
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
222
219
|
* @param {string} opts.id - Payment id
|
|
223
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
220
|
+
* @param {PrismaTerminalsQuery} [opts.query] - Query params (providerId)
|
|
224
221
|
* @param {Object} [opts.headers] - Optional headers
|
|
225
222
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
226
223
|
*/
|
|
@@ -239,12 +236,11 @@ function prismaTerminalsFactory(_ref) {
|
|
|
239
236
|
},
|
|
240
237
|
|
|
241
238
|
/**
|
|
242
|
-
* POST /prisma-terminals/payments - create payment.
|
|
239
|
+
* POST /prisma-terminals/payments - create payment. API does not accept query params.
|
|
243
240
|
* @param {Object} opts
|
|
244
241
|
* @param {string} [opts.token] - API key
|
|
245
242
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
246
243
|
* @param {Object} opts.prismaPayment - Prisma payment payload
|
|
247
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
248
244
|
* @param {Object} [opts.headers] - Optional headers
|
|
249
245
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
250
246
|
*/
|
|
@@ -266,12 +262,11 @@ function prismaTerminalsFactory(_ref) {
|
|
|
266
262
|
},
|
|
267
263
|
|
|
268
264
|
/**
|
|
269
|
-
* DELETE /prisma-terminals/payments/:id - delete payment.
|
|
265
|
+
* DELETE /prisma-terminals/payments/:id - delete payment. API does not accept query params.
|
|
270
266
|
* @param {Object} opts
|
|
271
267
|
* @param {string} [opts.token] - API key
|
|
272
268
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
273
269
|
* @param {string} opts.id - Payment id
|
|
274
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
275
270
|
* @param {Object} [opts.headers] - Optional headers
|
|
276
271
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
277
272
|
*/
|
|
@@ -292,13 +287,12 @@ function prismaTerminalsFactory(_ref) {
|
|
|
292
287
|
},
|
|
293
288
|
|
|
294
289
|
/**
|
|
295
|
-
* PUT /prisma-terminals/payments/:id - update payment.
|
|
290
|
+
* PUT /prisma-terminals/payments/:id - update payment. API does not accept query params.
|
|
296
291
|
* @param {Object} opts
|
|
297
292
|
* @param {string} [opts.token] - API key
|
|
298
293
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
299
294
|
* @param {string} opts.id - Payment id
|
|
300
295
|
* @param {Object} opts.prismaPayment - Prisma payment payload
|
|
301
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
302
296
|
* @param {Object} [opts.headers] - Optional headers
|
|
303
297
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
304
298
|
*/
|
|
@@ -326,12 +320,11 @@ function prismaTerminalsFactory(_ref) {
|
|
|
326
320
|
|
|
327
321
|
var settlements = {
|
|
328
322
|
/**
|
|
329
|
-
* POST /prisma-terminals/settlements - create settlement.
|
|
323
|
+
* POST /prisma-terminals/settlements - create settlement. API does not accept query params.
|
|
330
324
|
* @param {Object} opts
|
|
331
325
|
* @param {string} [opts.token] - API key
|
|
332
326
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
333
327
|
* @param {Object} opts.settlement - Settlement payload
|
|
334
|
-
* @param {PrismaTerminalsQuery} [opts.query] - Query params
|
|
335
328
|
* @param {Object} [opts.headers] - Optional headers
|
|
336
329
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
337
330
|
*/
|
|
@@ -17,7 +17,7 @@ function referenceNumbersFactory(_ref) {
|
|
|
17
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* POST /reference-numbers - create reference number.
|
|
20
|
+
* POST /reference-numbers - create reference number. API does not accept query params.
|
|
21
21
|
* @param {Object} opts
|
|
22
22
|
* @param {string} [opts.token] - API key
|
|
23
23
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
var _require = require("./../endpoints_helpers.js"),
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Query for POST .../referenced-payments/:type/:referenceNumber/results (btrz-api-payments). See post-referenced-payments getSpec().
|
|
8
|
+
* @typedef {Object} ReferencedPaymentsUpdateQuery
|
|
9
|
+
* @property {string} [includePaidOrExpired] - Update beyond paid/expired for completion [true, false]
|
|
10
|
+
*/
|
|
11
|
+
|
|
6
12
|
/**
|
|
7
13
|
* Factory for referenced payments API (btrz-api-payments).
|
|
8
14
|
* @param {Object} deps
|
|
@@ -17,7 +23,7 @@ function referencedPaymentsFactory(_ref) {
|
|
|
17
23
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
24
|
|
|
19
25
|
/**
|
|
20
|
-
* GET /referenced-payments/:transactionId/:referenceNumber/status - get status.
|
|
26
|
+
* GET /referenced-payments/:transactionId/:referenceNumber/status - get status. API does not accept query params.
|
|
21
27
|
* @param {Object} opts
|
|
22
28
|
* @param {string} [opts.token] - API key
|
|
23
29
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -47,6 +53,7 @@ function referencedPaymentsFactory(_ref) {
|
|
|
47
53
|
* @param {string} opts.externalType - External type
|
|
48
54
|
* @param {string} opts.referenceNumber - Reference number
|
|
49
55
|
* @param {Object} opts.paymentResult - Payment result payload
|
|
56
|
+
* @param {ReferencedPaymentsUpdateQuery} [opts.query] - Query params (includePaidOrExpired)
|
|
50
57
|
* @param {Object} [opts.headers] - Optional headers
|
|
51
58
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
52
59
|
*/
|
|
@@ -56,11 +63,14 @@ function referencedPaymentsFactory(_ref) {
|
|
|
56
63
|
externalType = _ref3.externalType,
|
|
57
64
|
referenceNumber = _ref3.referenceNumber,
|
|
58
65
|
paymentResult = _ref3.paymentResult,
|
|
66
|
+
_ref3$query = _ref3.query,
|
|
67
|
+
query = _ref3$query === undefined ? {} : _ref3$query,
|
|
59
68
|
headers = _ref3.headers;
|
|
60
69
|
|
|
61
70
|
return client({
|
|
62
71
|
url: "/referenced-payments/" + externalType + "/" + referenceNumber + "/results",
|
|
63
72
|
method: "post",
|
|
73
|
+
params: query,
|
|
64
74
|
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, headers: headers }),
|
|
65
75
|
data: { paymentResult: paymentResult }
|
|
66
76
|
});
|
|
@@ -17,7 +17,7 @@ function squareWebhooksFactory(_ref) {
|
|
|
17
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* POST /square-webhooks/:providerId - create Square webhook.
|
|
20
|
+
* POST /square-webhooks/:providerId - create Square webhook. API does not accept query params.
|
|
21
21
|
* @param {Object} opts
|
|
22
22
|
* @param {string} [opts.token] - API key
|
|
23
23
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -58,7 +58,7 @@ function squareTerminalsFactory(_ref3) {
|
|
|
58
58
|
internalAuthTokenProvider = _ref3.internalAuthTokenProvider;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* GET /square-terminals - get Square terminals.
|
|
61
|
+
* GET /square-terminals - get Square terminals. API does not accept query params.
|
|
62
62
|
* @param {Object} opts
|
|
63
63
|
* @param {string} [opts.token] - API key
|
|
64
64
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -4,8 +4,9 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
7
|
+
* Query params for GET /stripe-terminals (btrz-api-payments). See get-handler getSpec().
|
|
8
|
+
* @typedef {Object} StripeTerminalsListQuery
|
|
9
|
+
* @property {string} [providerId] - Account provider (operator) ID; used by agencies/sellers
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -26,8 +27,8 @@ function stripeTerminalsFactory(_ref) {
|
|
|
26
27
|
* @param {Object} opts
|
|
27
28
|
* @param {string} [opts.token] - API key
|
|
28
29
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
30
|
+
* @param {StripeTerminalsListQuery} [opts.query] - Query params (providerId)
|
|
29
31
|
* @param {Object} [opts.headers] - Optional headers
|
|
30
|
-
* @param {StripeTerminalsQuery} [opts.query] - Query params
|
|
31
32
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
32
33
|
*/
|
|
33
34
|
function all(_ref2) {
|
|
@@ -46,13 +47,12 @@ function stripeTerminalsFactory(_ref) {
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
|
-
* POST /stripe-terminals/:id/simulate - simulate Stripe payment.
|
|
50
|
+
* POST /stripe-terminals/:id/simulate - simulate Stripe payment. API does not accept query params.
|
|
50
51
|
* @param {Object} opts
|
|
51
52
|
* @param {string} [opts.token] - API key
|
|
52
53
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
53
54
|
* @param {string} opts.id - Terminal id
|
|
54
55
|
* @param {Object} opts.stripePayment - Stripe payment payload
|
|
55
|
-
* @param {StripeTerminalsQuery} [opts.query] - Query params
|
|
56
56
|
* @param {Object} [opts.headers] - Optional headers
|
|
57
57
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
58
58
|
*/
|
|
@@ -4,8 +4,18 @@ var _require = require("../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
7
|
+
* Query params for GET /terminal-payments/mit/:id (btrz-api-payments). See get-mit-by-id-handler getSpec().
|
|
8
|
+
* @typedef {Object} TerminalPaymentsMitGetQuery
|
|
9
|
+
* @property {string} [providerId] - Account provider (operator) ID; used by agencies/sellers
|
|
10
|
+
* @property {string} [branchId] - Branch id where payment started (required for GET)
|
|
11
|
+
* @property {string} [companyId] - Company id where payment started (required for GET)
|
|
12
|
+
* @property {string} [date] - Date when payment started; format dd/mm/yyyy (required for GET)
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Query params for PUT /terminal-payments/mit/:id (btrz-api-payments). See put-mit-handler getSpec().
|
|
17
|
+
* @typedef {Object} TerminalPaymentsMitPutQuery
|
|
18
|
+
* @property {string} [providerId] - Account provider (operator) ID; used by agencies/sellers
|
|
9
19
|
*/
|
|
10
20
|
|
|
11
21
|
/**
|
|
@@ -29,7 +39,7 @@ function terminalPaymentsFactory(_ref) {
|
|
|
29
39
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
30
40
|
* @param {string} opts.id - Terminal payment id
|
|
31
41
|
* @param {Object} opts.terminalPayment - Terminal payment payload
|
|
32
|
-
* @param {
|
|
42
|
+
* @param {TerminalPaymentsMitPutQuery} [opts.query] - Query params (providerId)
|
|
33
43
|
* @param {Object} [opts.headers] - Optional headers
|
|
34
44
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
35
45
|
*/
|
|
@@ -57,7 +67,7 @@ function terminalPaymentsFactory(_ref) {
|
|
|
57
67
|
* @param {string} [opts.token] - API key
|
|
58
68
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
59
69
|
* @param {string} opts.id - Terminal payment id
|
|
60
|
-
* @param {
|
|
70
|
+
* @param {TerminalPaymentsMitGetQuery} [opts.query] - Query params (providerId, branchId, companyId, date)
|
|
61
71
|
* @param {Object} [opts.headers] - Optional headers
|
|
62
72
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
63
73
|
*/
|
|
@@ -78,7 +88,7 @@ function terminalPaymentsFactory(_ref) {
|
|
|
78
88
|
|
|
79
89
|
var webhooks = {
|
|
80
90
|
/**
|
|
81
|
-
* POST /terminal-payments/webhooks/getnet/:providerId - Getnet webhook.
|
|
91
|
+
* POST /terminal-payments/webhooks/getnet/:providerId - Getnet webhook. API does not accept query params.
|
|
82
92
|
* @param {Object} opts
|
|
83
93
|
* @param {Object} opts.data - Request body
|
|
84
94
|
* @param {string} opts.providerId - Provider id
|
|
@@ -18,7 +18,7 @@ function mergedFareTablesFactory(_ref) {
|
|
|
18
18
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* GET /coltrane/routes/:routeId/merged-fare-tables/:productId - get merged fare table.
|
|
21
|
+
* GET /coltrane/routes/:routeId/merged-fare-tables/:productId - get merged fare table. API does not accept query params.
|
|
22
22
|
* @param {Object} opts
|
|
23
23
|
* @param {string} [opts.token] - API key
|
|
24
24
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -5,12 +5,15 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
5
5
|
authorizationHeaders = _require.authorizationHeaders;
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Query params for GET /paths (btrz-api-coltrane).
|
|
8
|
+
* Query params for GET /paths (btrz-api-coltrane). See get-paths getSpec().
|
|
9
9
|
* @typedef {Object} ColtranePathsListQuery
|
|
10
|
-
* @property {string} [providerId] -
|
|
11
|
-
* @property {string} [productId] - Product
|
|
12
|
-
* @property {string} [originId] - Origin station id
|
|
13
|
-
* @property {string} [destinationId] - Destination station id
|
|
10
|
+
* @property {string} [providerId] - Account ID of the travel provider (required by API)
|
|
11
|
+
* @property {string} [productId] - Product ID belonging to the provider (required by API)
|
|
12
|
+
* @property {string} [originId] - Origin station id (required by API)
|
|
13
|
+
* @property {string} [destinationId] - Destination station id (required by API)
|
|
14
|
+
* @property {string} [departureFromDate] - Start of search interval; ISO 8601 (e.g. 2021-10-07T17:30:00.000-0400)
|
|
15
|
+
* @property {string} [departureToDate] - End of search interval; ISO 8601; interval max 25h
|
|
16
|
+
* @property {string} [metrics] - If true, response includes metrics (debugging)
|
|
14
17
|
*/
|
|
15
18
|
|
|
16
19
|
/**
|
|
@@ -30,7 +33,7 @@ function coltraneFactory(_ref) {
|
|
|
30
33
|
* GET /paths - list Coltrane paths.
|
|
31
34
|
* @param {Object} opts
|
|
32
35
|
* @param {string} [opts.token] - API key
|
|
33
|
-
* @param {ColtranePathsListQuery} [opts.query] -
|
|
36
|
+
* @param {ColtranePathsListQuery} [opts.query] - Query params (providerId, productId, originId, destinationId, etc.)
|
|
34
37
|
* @param {Object} [opts.headers] - Optional headers
|
|
35
38
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
36
39
|
*/
|
|
@@ -4,7 +4,8 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Query params for GET /scanner-app-location (
|
|
7
|
+
* Query params for GET /scanner-app-location (GPS API). API is external (not in workspace);
|
|
8
|
+
* shape from btrz-vue-websales and client usage.
|
|
8
9
|
* @typedef {Object} ScannerAppLocationQuery
|
|
9
10
|
* @property {string} [scheduleId] - Schedule id
|
|
10
11
|
* @property {string} [routeId] - Route id
|
|
@@ -29,7 +30,7 @@ function scannerAppLocationFactory(_ref) {
|
|
|
29
30
|
* @param {Object} opts
|
|
30
31
|
* @param {string} [opts.token] - API key
|
|
31
32
|
* @param {ScannerAppLocationQuery} [opts.query] - Query params (scheduleId, routeId, date, includeTravelledPath)
|
|
32
|
-
* @param {Object} [opts.headers] - Optional
|
|
33
|
+
* @param {Object} [opts.headers] - Optional headers
|
|
33
34
|
* @returns {Promise<import("axios").AxiosResponse>} response.data may contain location
|
|
34
35
|
*/
|
|
35
36
|
function get(_ref2) {
|
|
@@ -4,8 +4,12 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
7
|
+
* Query params for GET /amenities (btrz-api-inventory). See get-amenities getSpec().
|
|
8
|
+
* @typedef {Object} AmenitiesListQuery
|
|
9
|
+
* @property {string} [name] - Filter by name
|
|
10
|
+
* @property {string} [amenityId] - Filter by amenity ID
|
|
11
|
+
* @property {string} [enabled] - Filter by enabled status
|
|
12
|
+
* @property {number} [page] - Page for pagination
|
|
9
13
|
*/
|
|
10
14
|
|
|
11
15
|
/**
|
|
@@ -26,7 +30,7 @@ function amenitiesFactory(_ref) {
|
|
|
26
30
|
* @param {Object} opts
|
|
27
31
|
* @param {string} [opts.token] - API key
|
|
28
32
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
29
|
-
* @param {
|
|
33
|
+
* @param {AmenitiesListQuery} [opts.query] - Query params (name, amenityId, enabled, page)
|
|
30
34
|
* @param {Object} [opts.headers] - Optional headers
|
|
31
35
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
32
36
|
*/
|
|
@@ -43,12 +47,11 @@ function amenitiesFactory(_ref) {
|
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
/**
|
|
46
|
-
* GET /amenities/:amenityId - get amenity by id.
|
|
50
|
+
* GET /amenities/:amenityId - get amenity by id. API does not accept query params.
|
|
47
51
|
* @param {Object} opts
|
|
48
52
|
* @param {string} [opts.token] - API key
|
|
49
53
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
50
54
|
* @param {string} opts.amenityId - Amenity id
|
|
51
|
-
* @param {AmenitiesQuery} [opts.query] - Query params
|
|
52
55
|
* @param {Object} [opts.headers] - Optional headers
|
|
53
56
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
54
57
|
*/
|
|
@@ -66,7 +69,7 @@ function amenitiesFactory(_ref) {
|
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
/**
|
|
69
|
-
* POST /amenities - create amenity.
|
|
72
|
+
* POST /amenities - create amenity. API does not accept query params.
|
|
70
73
|
* @param {Object} opts
|
|
71
74
|
* @param {string} [opts.token] - API key
|
|
72
75
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -89,7 +92,7 @@ function amenitiesFactory(_ref) {
|
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
/**
|
|
92
|
-
* PUT /amenities/:amenityId - update amenity.
|
|
95
|
+
* PUT /amenities/:amenityId - update amenity. API does not accept query params.
|
|
93
96
|
* @param {Object} opts
|
|
94
97
|
* @param {string} [opts.token] - API key
|
|
95
98
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -4,8 +4,13 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
7
|
+
* Query params for GET /amenity-groups (btrz-api-inventory). See get-amenity-groups getSpec().
|
|
8
|
+
* @typedef {Object} AmenityGroupsListQuery
|
|
9
|
+
* @property {string} [name] - Filter by name
|
|
10
|
+
* @property {string} [amenityId] - Filter by amenity ID
|
|
11
|
+
* @property {string} [enabled] - Filter by enabled status
|
|
12
|
+
* @property {number} [page] - Page for pagination
|
|
13
|
+
* @property {number} [pageSize] - Results per page
|
|
9
14
|
*/
|
|
10
15
|
|
|
11
16
|
/**
|
|
@@ -26,7 +31,7 @@ function amenityGroupsFactory(_ref) {
|
|
|
26
31
|
* @param {Object} opts
|
|
27
32
|
* @param {string} [opts.token] - API key
|
|
28
33
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
29
|
-
* @param {
|
|
34
|
+
* @param {AmenityGroupsListQuery} [opts.query] - Query params (name, amenityId, enabled, page, pageSize)
|
|
30
35
|
* @param {Object} [opts.headers] - Optional headers
|
|
31
36
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
32
37
|
*/
|
|
@@ -43,12 +48,11 @@ function amenityGroupsFactory(_ref) {
|
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
/**
|
|
46
|
-
* GET /amenity-groups/:amenityGroupId - get amenity group by id.
|
|
51
|
+
* GET /amenity-groups/:amenityGroupId - get amenity group by id. API does not accept query params.
|
|
47
52
|
* @param {Object} opts
|
|
48
53
|
* @param {string} [opts.token] - API key
|
|
49
54
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
50
55
|
* @param {string} opts.amenityGroupId - Amenity group id
|
|
51
|
-
* @param {AmenityGroupsQuery} [opts.query] - Query params
|
|
52
56
|
* @param {Object} [opts.headers] - Optional headers
|
|
53
57
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
54
58
|
*/
|
|
@@ -66,7 +70,7 @@ function amenityGroupsFactory(_ref) {
|
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
/**
|
|
69
|
-
* POST /amenity-groups - create amenity group.
|
|
73
|
+
* POST /amenity-groups - create amenity group. API does not accept query params.
|
|
70
74
|
* @param {Object} opts
|
|
71
75
|
* @param {string} [opts.token] - API key
|
|
72
76
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -89,7 +93,7 @@ function amenityGroupsFactory(_ref) {
|
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
/**
|
|
92
|
-
* PUT /amenity-groups/:amenityGroupId - update amenity group.
|
|
96
|
+
* PUT /amenity-groups/:amenityGroupId - update amenity group. API does not accept query params.
|
|
93
97
|
* @param {Object} opts
|
|
94
98
|
* @param {string} [opts.token] - API key
|
|
95
99
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
var _require = require("./../endpoints_helpers.js"),
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* @typedef {Object} BanksQuery
|
|
8
|
-
* @property {string} [providerId] - Provider account ID
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
6
|
/**
|
|
12
7
|
* Factory for banks API (btrz-api-inventory).
|
|
13
8
|
* @param {Object} deps
|
|
@@ -22,11 +17,10 @@ function banksFactory(_ref) {
|
|
|
22
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
23
18
|
|
|
24
19
|
/**
|
|
25
|
-
* GET /banks - list banks.
|
|
20
|
+
* GET /banks - list banks. API does not accept query params.
|
|
26
21
|
* @param {Object} opts
|
|
27
22
|
* @param {string} [opts.token] - API key
|
|
28
23
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
29
|
-
* @param {BanksQuery} [opts.query] - Query params
|
|
30
24
|
* @param {Object} [opts.headers] - Optional headers
|
|
31
25
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
32
26
|
*/
|
|
@@ -44,7 +38,7 @@ function banksFactory(_ref) {
|
|
|
44
38
|
}
|
|
45
39
|
|
|
46
40
|
/**
|
|
47
|
-
* GET /banks/:bankId - get bank by id.
|
|
41
|
+
* GET /banks/:bankId - get bank by id. API does not accept query params.
|
|
48
42
|
* @param {Object} opts
|
|
49
43
|
* @param {string} [opts.token] - API key
|
|
50
44
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -64,7 +58,7 @@ function banksFactory(_ref) {
|
|
|
64
58
|
}
|
|
65
59
|
|
|
66
60
|
/**
|
|
67
|
-
* POST /banks - create bank.
|
|
61
|
+
* POST /banks - create bank. API does not accept query params.
|
|
68
62
|
* @param {Object} opts
|
|
69
63
|
* @param {string} [opts.token] - API key
|
|
70
64
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -89,7 +83,7 @@ function banksFactory(_ref) {
|
|
|
89
83
|
}
|
|
90
84
|
|
|
91
85
|
/**
|
|
92
|
-
* DELETE /banks/:bankId - remove bank.
|
|
86
|
+
* DELETE /banks/:bankId - remove bank. API does not accept query params.
|
|
93
87
|
* @param {Object} opts
|
|
94
88
|
* @param {string} [opts.token] - API key
|
|
95
89
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -111,7 +105,7 @@ function banksFactory(_ref) {
|
|
|
111
105
|
}
|
|
112
106
|
|
|
113
107
|
/**
|
|
114
|
-
* PUT /banks/:bankId - update bank.
|
|
108
|
+
* PUT /banks/:bankId - update bank. API does not accept query params.
|
|
115
109
|
* @param {Object} opts
|
|
116
110
|
* @param {string} [opts.token] - API key
|
|
117
111
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -4,8 +4,16 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
7
|
+
* Query params for GET /bare-routes (btrz-api-inventory). See get-bare-routes getSpec().
|
|
8
|
+
* @typedef {Object} BareRoutesListQuery
|
|
9
|
+
* @property {string} [providerIds] - Comma-separated provider IDs
|
|
10
|
+
* @property {string} [productIds] - Comma-separated product IDs
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Query params for GET /bare-routes/:routeId (btrz-api-inventory). See get-bare-routes-id getSpec().
|
|
15
|
+
* @typedef {Object} BareRoutesGetQuery
|
|
16
|
+
* @property {string} [providerIds] - Comma-separated provider IDs
|
|
9
17
|
*/
|
|
10
18
|
|
|
11
19
|
/**
|
|
@@ -26,7 +34,7 @@ function bareRoutesFactory(_ref) {
|
|
|
26
34
|
* @param {Object} opts
|
|
27
35
|
* @param {string} [opts.token] - API key
|
|
28
36
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
29
|
-
* @param {
|
|
37
|
+
* @param {BareRoutesListQuery} [opts.query] - Query params (providerIds, productIds)
|
|
30
38
|
* @param {Object} [opts.headers] - Optional headers
|
|
31
39
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
32
40
|
*/
|
|
@@ -49,7 +57,7 @@ function bareRoutesFactory(_ref) {
|
|
|
49
57
|
* @param {string} [opts.token] - API key
|
|
50
58
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
51
59
|
* @param {string} opts.routeId - Route id
|
|
52
|
-
* @param {
|
|
60
|
+
* @param {BareRoutesGetQuery} [opts.query] - Query params (providerIds)
|
|
53
61
|
* @param {Object} [opts.headers] - Optional headers
|
|
54
62
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
55
63
|
*/
|
|
@@ -4,8 +4,12 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
7
|
+
* Query params for GET /brands (btrz-api-inventory). See get-brands getSpec().
|
|
8
|
+
* @typedef {Object} BrandsListQuery
|
|
9
|
+
* @property {string} [providerIds] - Comma-separated provider IDs
|
|
10
|
+
* @property {string} [enabled] - Filter by enabled status
|
|
11
|
+
* @property {number} [page] - Page for pagination
|
|
12
|
+
* @property {number} [pageSize] - Results per page
|
|
9
13
|
*/
|
|
10
14
|
|
|
11
15
|
/**
|
|
@@ -26,7 +30,7 @@ function brandsFactory(_ref) {
|
|
|
26
30
|
* @param {Object} opts
|
|
27
31
|
* @param {string} [opts.token] - API key
|
|
28
32
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
29
|
-
* @param {
|
|
33
|
+
* @param {BrandsListQuery} [opts.query] - Query params (providerIds, enabled, page, pageSize)
|
|
30
34
|
* @param {Object} [opts.headers] - Optional headers
|
|
31
35
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
32
36
|
*/
|
|
@@ -45,7 +49,7 @@ function brandsFactory(_ref) {
|
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
/**
|
|
48
|
-
* POST /brands - create brand.
|
|
52
|
+
* POST /brands - create brand. API does not accept query params.
|
|
49
53
|
* @param {Object} opts
|
|
50
54
|
* @param {string} [opts.token] - API key
|
|
51
55
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -68,7 +72,7 @@ function brandsFactory(_ref) {
|
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
/**
|
|
71
|
-
* PUT /brands/:brandId - update brand.
|
|
75
|
+
* PUT /brands/:brandId - update brand. API does not accept query params.
|
|
72
76
|
* @param {Object} opts
|
|
73
77
|
* @param {string} [opts.token] - API key
|
|
74
78
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -93,7 +97,7 @@ function brandsFactory(_ref) {
|
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
/**
|
|
96
|
-
* GET /brands/:brandId - get brand by id.
|
|
100
|
+
* GET /brands/:brandId - get brand by id. API does not accept query params.
|
|
97
101
|
* @param {Object} opts
|
|
98
102
|
* @param {string} [opts.token] - API key
|
|
99
103
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -4,8 +4,10 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* Query params for GET /bundle/:bundleId/product/:productId (btrz-api-inventory). See get-bundle-fares getSpec().
|
|
7
8
|
* @typedef {Object} BundleFaresQuery
|
|
8
|
-
* @property {string} [
|
|
9
|
+
* @property {string} [providerIds] - Comma-separated provider IDs
|
|
10
|
+
* @property {string} [channel] - Channel filter
|
|
9
11
|
*/
|
|
10
12
|
|
|
11
13
|
/**
|
|
@@ -28,7 +30,7 @@ function bundleFaresFactory(_ref) {
|
|
|
28
30
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
29
31
|
* @param {string} opts.bundleId - Bundle id
|
|
30
32
|
* @param {string} opts.productId - Product id
|
|
31
|
-
* @param {BundleFaresQuery} [opts.query] - Query params
|
|
33
|
+
* @param {BundleFaresQuery} [opts.query] - Query params (providerIds, channel)
|
|
32
34
|
* @param {Object} [opts.headers] - Optional headers
|
|
33
35
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
34
36
|
*/
|