btrz-api-client 8.30.0 → 8.32.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/.cursor/rules/jsdoc-endpoints.mdc +1 -1
- package/lib/client-standalone-min.js +3 -3
- package/lib/client.js +3 -0
- package/lib/endpoints/accounts/agencies.js +52 -0
- package/lib/endpoints/accounts/application-settings.js +23 -17
- package/lib/endpoints/accounts/applications.js +8 -7
- package/lib/endpoints/accounts/current-shifts.js +6 -1
- package/lib/endpoints/accounts/customers.js +31 -21
- package/lib/endpoints/accounts/domains.js +16 -12
- package/lib/endpoints/accounts/dynamic-forms.js +17 -5
- package/lib/endpoints/accounts/email-settings.js +22 -20
- package/lib/endpoints/accounts/email-templates.js +18 -6
- package/lib/endpoints/accounts/exchange-rates.js +13 -8
- package/lib/endpoints/accounts/exchange-receipts.js +10 -6
- package/lib/endpoints/accounts/external-customers.js +50 -0
- package/lib/endpoints/accounts/goal-settings.js +8 -7
- package/lib/endpoints/accounts/images.js +14 -15
- package/lib/endpoints/accounts/interline.js +35 -30
- package/lib/endpoints/accounts/journey-prices-settings.js +8 -6
- package/lib/endpoints/accounts/lexicons.js +48 -19
- package/lib/endpoints/accounts/market-pricing-settings.js +7 -6
- package/lib/endpoints/accounts/multiproduct-sales-settings.js +7 -6
- package/lib/endpoints/accounts/network.js +29 -17
- package/lib/endpoints/accounts/operation-settings.js +8 -7
- package/lib/endpoints/accounts/people-lookups.js +39 -21
- package/lib/endpoints/accounts/point-to-point-settings.js +6 -6
- package/lib/endpoints/accounts/print-settings.js +9 -7
- package/lib/endpoints/accounts/print-templates.js +71 -24
- package/lib/endpoints/accounts/printers.js +10 -5
- package/lib/endpoints/accounts/rms-settings.js +19 -11
- package/lib/endpoints/accounts/s3buckets.js +3 -3
- package/lib/endpoints/accounts/salesforce-settings.js +8 -7
- package/lib/endpoints/accounts/shift-settings.js +7 -7
- package/lib/endpoints/accounts/shifts.js +54 -15
- package/lib/endpoints/accounts/sms-templates.js +56 -18
- package/lib/endpoints/accounts/sub-print-templates.js +5 -3
- package/lib/endpoints/accounts/ticket-movement-settings.js +8 -5
- package/lib/endpoints/accounts/tokens.js +10 -3
- package/lib/endpoints/accounts/transport-regulation-settings.js +2 -2
- package/lib/endpoints/accounts/travellers.js +36 -17
- package/lib/endpoints/accounts/trusted-machines.js +19 -8
- package/lib/endpoints/accounts/twilio-settings.js +8 -6
- package/lib/endpoints/accounts/users.js +116 -70
- package/lib/endpoints/accounts/verified-emails.js +130 -0
- package/lib/endpoints/accounts/websales-config.js +15 -6
- 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/client.js +3 -0
- package/src/endpoints/accounts/agencies.js +40 -0
- package/src/endpoints/accounts/application-settings.js +23 -17
- package/src/endpoints/accounts/applications.js +8 -7
- package/src/endpoints/accounts/current-shifts.js +6 -1
- package/src/endpoints/accounts/customers.js +31 -21
- package/src/endpoints/accounts/domains.js +16 -12
- package/src/endpoints/accounts/dynamic-forms.js +17 -5
- package/src/endpoints/accounts/email-settings.js +22 -20
- package/src/endpoints/accounts/email-templates.js +18 -6
- package/src/endpoints/accounts/exchange-rates.js +13 -8
- package/src/endpoints/accounts/exchange-receipts.js +10 -6
- package/src/endpoints/accounts/external-customers.js +37 -0
- package/src/endpoints/accounts/goal-settings.js +8 -7
- package/src/endpoints/accounts/images.js +14 -15
- package/src/endpoints/accounts/interline.js +35 -31
- package/src/endpoints/accounts/journey-prices-settings.js +8 -6
- package/src/endpoints/accounts/lexicons.js +48 -19
- package/src/endpoints/accounts/market-pricing-settings.js +7 -6
- package/src/endpoints/accounts/multiproduct-sales-settings.js +7 -6
- package/src/endpoints/accounts/network.js +29 -18
- package/src/endpoints/accounts/operation-settings.js +8 -7
- package/src/endpoints/accounts/people-lookups.js +39 -21
- package/src/endpoints/accounts/point-to-point-settings.js +6 -6
- package/src/endpoints/accounts/print-settings.js +9 -8
- package/src/endpoints/accounts/print-templates.js +65 -22
- package/src/endpoints/accounts/printers.js +10 -6
- package/src/endpoints/accounts/rms-settings.js +19 -11
- package/src/endpoints/accounts/s3buckets.js +3 -3
- package/src/endpoints/accounts/salesforce-settings.js +8 -7
- package/src/endpoints/accounts/shift-settings.js +7 -7
- package/src/endpoints/accounts/shifts.js +54 -15
- package/src/endpoints/accounts/sms-templates.js +56 -18
- package/src/endpoints/accounts/sub-print-templates.js +5 -3
- package/src/endpoints/accounts/ticket-movement-settings.js +8 -5
- package/src/endpoints/accounts/tokens.js +10 -3
- package/src/endpoints/accounts/transport-regulation-settings.js +2 -2
- package/src/endpoints/accounts/travellers.js +36 -17
- package/src/endpoints/accounts/trusted-machines.js +19 -8
- package/src/endpoints/accounts/twilio-settings.js +8 -6
- package/src/endpoints/accounts/users.js +53 -12
- package/src/endpoints/accounts/verified-emails.js +100 -0
- package/src/endpoints/accounts/websales-config.js +15 -6
- 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
- package/test/endpoints/accounts/agencies.test.js +58 -0
- package/test/endpoints/accounts/external-customers.test.js +62 -0
- package/test/endpoints/accounts/users.js +10 -0
- package/test/endpoints/accounts/verified-emails.test.js +35 -0
- package/types/endpoints/accounts/users.d.ts +2 -1
- package/types/endpoints/accounts/verified-emails.d.ts +19 -0
|
@@ -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 /datalogic/payments (btrz-api-payments). See get-payments-handler getSpec().
|
|
8
|
+
* @typedef {Object} DatalogicPaymentsListQuery
|
|
9
|
+
* @property {string} [referenceNumber] - The payment reference number
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -26,7 +27,7 @@ function datalogicFactory(_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
|
|
29
|
-
* @param {
|
|
30
|
+
* @param {DatalogicPaymentsListQuery} [opts.query] - Query params (referenceNumber)
|
|
30
31
|
* @param {Object} [opts.headers] - Optional headers
|
|
31
32
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
32
33
|
*/
|
|
@@ -45,13 +46,12 @@ function datalogicFactory(_ref) {
|
|
|
45
46
|
},
|
|
46
47
|
|
|
47
48
|
/**
|
|
48
|
-
* POST /datalogic/payments/:referenceNumber - update Datalogic payment.
|
|
49
|
+
* POST /datalogic/payments/:referenceNumber - update Datalogic payment. API does not accept query params.
|
|
49
50
|
* @param {Object} opts
|
|
50
51
|
* @param {string} [opts.token] - API key
|
|
51
52
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
52
53
|
* @param {string} opts.referenceNumber - Reference number
|
|
53
54
|
* @param {Object} [opts.data] - Request body
|
|
54
|
-
* @param {DatalogicQuery} [opts.query] - Query params
|
|
55
55
|
* @param {Object} [opts.headers] - Optional headers
|
|
56
56
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
57
57
|
*/
|
|
@@ -74,13 +74,12 @@ function datalogicFactory(_ref) {
|
|
|
74
74
|
},
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* POST /datalogic/reverse/:referenceNumber - reverse Datalogic payment.
|
|
77
|
+
* POST /datalogic/reverse/:referenceNumber - reverse Datalogic payment. API does not accept query params.
|
|
78
78
|
* @param {Object} opts
|
|
79
79
|
* @param {string} [opts.token] - API key
|
|
80
80
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
81
81
|
* @param {string} opts.referenceNumber - Reference number
|
|
82
82
|
* @param {Object} [opts.data] - Request body
|
|
83
|
-
* @param {DatalogicQuery} [opts.query] - Query params
|
|
84
83
|
* @param {Object} [opts.headers] - Optional headers
|
|
85
84
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
86
85
|
*/
|
|
@@ -105,7 +104,7 @@ function datalogicFactory(_ref) {
|
|
|
105
104
|
|
|
106
105
|
var referenceNumber = {
|
|
107
106
|
/**
|
|
108
|
-
* GET /datalogic/reference-number - get reference number.
|
|
107
|
+
* GET /datalogic/reference-number - get reference number. API does not accept query params.
|
|
109
108
|
* @param {Object} opts
|
|
110
109
|
* @param {string} [opts.token] - API key
|
|
111
110
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -127,7 +126,7 @@ function datalogicFactory(_ref) {
|
|
|
127
126
|
|
|
128
127
|
var authCode = {
|
|
129
128
|
/**
|
|
130
|
-
* GET /datalogic/auth-code - get auth code.
|
|
129
|
+
* GET /datalogic/auth-code - get auth code. API does not accept query params.
|
|
131
130
|
* @param {Object} opts
|
|
132
131
|
* @param {string} [opts.token] - API key
|
|
133
132
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -4,17 +4,11 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
4
4
|
authorizationHeaders = _require.authorizationHeaders;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Query params for GET /oxxo/:token/payments (btrz-api-payments getSpec).
|
|
7
|
+
* Query params for GET /oxxo/:token/payments (btrz-api-payments). See get-payments-handler getSpec().
|
|
8
8
|
* @typedef {Object} OxxoPaymentsListQuery
|
|
9
9
|
* @property {string} [referenceNumber] - Payment reference number
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* POST /oxxo/:token/payments/:referenceNumber and POST /oxxo/:token/reverse/:referenceNumber do not define
|
|
14
|
-
* query params in backend getSpec (path + body only). Use for optional query keys forwarded as-is.
|
|
15
|
-
* @typedef {Object} OxxoPostQuery
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
12
|
/**
|
|
19
13
|
* Factory for OXXO API (btrz-api-payments).
|
|
20
14
|
* @param {Object} deps
|
|
@@ -30,7 +24,7 @@ function oxxoFactory(_ref) {
|
|
|
30
24
|
|
|
31
25
|
var token = {
|
|
32
26
|
/**
|
|
33
|
-
* GET /oxxo/token - get OXXO token.
|
|
27
|
+
* GET /oxxo/token - get OXXO token. API does not accept query params.
|
|
34
28
|
* @param {Object} opts
|
|
35
29
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
36
30
|
* @param {{ getToken: function(): string }} [opts.internalAuthTokenProvider]
|
|
@@ -55,7 +49,7 @@ function oxxoFactory(_ref) {
|
|
|
55
49
|
* @param {Object} opts
|
|
56
50
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
57
51
|
* @param {string} opts.oxxoToken - OXXO token
|
|
58
|
-
* @param {OxxoPaymentsListQuery} [opts.query] -
|
|
52
|
+
* @param {OxxoPaymentsListQuery} [opts.query] - Query params (referenceNumber)
|
|
59
53
|
* @param {{ getToken: function(): string }} [opts.internalAuthTokenProvider]
|
|
60
54
|
* @param {Object} [opts.headers] - Optional request headers
|
|
61
55
|
* @returns {Promise<import("axios").AxiosResponse>} GetOxxoPaymentsResponse; 400 ERROR_GETTING_PAYMENT_METHODS
|
|
@@ -75,12 +69,11 @@ function oxxoFactory(_ref) {
|
|
|
75
69
|
},
|
|
76
70
|
|
|
77
71
|
/**
|
|
78
|
-
* POST /oxxo/:oxxoToken/payments/:referenceNumber - update OXXO payment.
|
|
72
|
+
* POST /oxxo/:oxxoToken/payments/:referenceNumber - update OXXO payment. API does not accept query params.
|
|
79
73
|
* @param {Object} opts
|
|
80
74
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
81
75
|
* @param {string} opts.oxxoToken - OXXO token
|
|
82
76
|
* @param {string} opts.referenceNumber - Payment reference number
|
|
83
|
-
* @param {OxxoPostQuery} [opts.query] - Optional query params (backend getSpec has none; forwarded as-is)
|
|
84
77
|
* @param {Object} opts.data - Request body (PostOxxoPaymentsPayload)
|
|
85
78
|
* @param {{ getToken: function(): string }} [opts.internalAuthTokenProvider]
|
|
86
79
|
* @param {Object} [opts.headers] - Optional request headers
|
|
@@ -105,13 +98,12 @@ function oxxoFactory(_ref) {
|
|
|
105
98
|
},
|
|
106
99
|
|
|
107
100
|
/**
|
|
108
|
-
* POST /oxxo/:oxxoToken/reverse/:referenceNumber - reverse OXXO payment.
|
|
101
|
+
* POST /oxxo/:oxxoToken/reverse/:referenceNumber - reverse OXXO payment. API does not accept query params.
|
|
109
102
|
* @param {Object} opts
|
|
110
103
|
* @param {string} [opts.token] - API key
|
|
111
104
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
112
105
|
* @param {string} opts.oxxoToken - OXXO token
|
|
113
106
|
* @param {string} opts.referenceNumber - Payment reference number
|
|
114
|
-
* @param {OxxoPostQuery} [opts.query] - Optional query params (backend getSpec has none; forwarded as-is)
|
|
115
107
|
* @param {Object} [opts.data] - Request body (PostOxxoReversePayload)
|
|
116
108
|
* @param {{ getToken: function(): string }} [opts.internalAuthTokenProvider]
|
|
117
109
|
* @param {Object} [opts.headers] - Optional request headers
|
|
@@ -5,9 +5,23 @@ var _require = require("./../endpoints_helpers.js"),
|
|
|
5
5
|
authorizationHeaders = _require.authorizationHeaders;
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Query params for GET /payment-methods (btrz-api-payments).
|
|
8
|
+
* Query params for GET /payment-methods (btrz-api-payments). See get-payment-methods getSpec().
|
|
9
9
|
* @typedef {Object} PaymentMethodsListQuery
|
|
10
|
-
* @property {string} [providerName] -
|
|
10
|
+
* @property {string} [providerName] - The provider name to filter the payment methods (deprecated; use getByProviderName)
|
|
11
|
+
* @property {string} [channel] - The channel to get payment methods for
|
|
12
|
+
* @property {boolean} [enabled] - Filter by enabled [true, false]; if omitted returns both
|
|
13
|
+
* @property {boolean} [excludePredefined] - Exclude predefined methods; default included
|
|
14
|
+
* @property {string} [providerId] - Account provider (operator) ID; used by agencies/sellers
|
|
15
|
+
* @property {string} [domain] - Filter by domain
|
|
16
|
+
* @property {string} [externalType] - Reference external type
|
|
17
|
+
* @property {boolean} [allowToRefundTo] - Filter by ability to accept refunds [true, false]
|
|
18
|
+
* @property {string} [flows] - Flows in which the method is available (comma-separated); channel required
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Query params for GET /payment-methods/:paymentMethodId (btrz-api-payments). See get-payment-method getSpec().
|
|
23
|
+
* @typedef {Object} PaymentMethodGetQuery
|
|
24
|
+
* @property {string} [providerId] - Account provider ID; used by agencies
|
|
11
25
|
*/
|
|
12
26
|
|
|
13
27
|
/**
|
|
@@ -29,7 +43,7 @@ function paymentMethodsFactory(_ref) {
|
|
|
29
43
|
* @param {Object} opts
|
|
30
44
|
* @param {string} [opts.token] - API key
|
|
31
45
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
32
|
-
* @param {PaymentMethodsListQuery} [opts.query] -
|
|
46
|
+
* @param {PaymentMethodsListQuery} [opts.query] - Query params (providerName, channel, enabled, etc.)
|
|
33
47
|
* @param {Object} [opts.headers] - Optional request headers
|
|
34
48
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
35
49
|
*/
|
|
@@ -47,7 +61,7 @@ function paymentMethodsFactory(_ref) {
|
|
|
47
61
|
}
|
|
48
62
|
|
|
49
63
|
/**
|
|
50
|
-
* GET /payment-methods?providerName= - get by provider name (deprecated).
|
|
64
|
+
* GET /payment-methods?providerName= - get by provider name (deprecated). API accepts providerName only.
|
|
51
65
|
* @param {Object} opts
|
|
52
66
|
* @param {string} [opts.token] - API key
|
|
53
67
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -69,7 +83,7 @@ function paymentMethodsFactory(_ref) {
|
|
|
69
83
|
}
|
|
70
84
|
|
|
71
85
|
/**
|
|
72
|
-
* POST /payment-methods - create payment method.
|
|
86
|
+
* POST /payment-methods - create payment method. API does not accept query params.
|
|
73
87
|
* @param {Object} opts
|
|
74
88
|
* @param {string} [opts.token] - API key
|
|
75
89
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -97,7 +111,7 @@ function paymentMethodsFactory(_ref) {
|
|
|
97
111
|
* @param {string} [opts.token] - API key
|
|
98
112
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
99
113
|
* @param {string} opts.paymentMethodId - Payment method id
|
|
100
|
-
* @param {
|
|
114
|
+
* @param {PaymentMethodGetQuery} [opts.query] - Query params (providerId for agencies)
|
|
101
115
|
* @param {Object} [opts.headers] - Optional request headers
|
|
102
116
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
103
117
|
*/
|
|
@@ -116,7 +130,7 @@ function paymentMethodsFactory(_ref) {
|
|
|
116
130
|
}
|
|
117
131
|
|
|
118
132
|
/**
|
|
119
|
-
* PUT /payment-methods/:paymentMethodId - update payment method.
|
|
133
|
+
* PUT /payment-methods/:paymentMethodId - update payment method. API does not accept query params.
|
|
120
134
|
* @param {Object} opts
|
|
121
135
|
* @param {string} [opts.token] - API key
|
|
122
136
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -141,7 +155,7 @@ function paymentMethodsFactory(_ref) {
|
|
|
141
155
|
}
|
|
142
156
|
|
|
143
157
|
/**
|
|
144
|
-
* POST /payment-methods-to-agencies - set payment methods to agency.
|
|
158
|
+
* POST /payment-methods-to-agencies - set payment methods to agency. API does not accept query params.
|
|
145
159
|
* @param {Object} opts
|
|
146
160
|
* @param {string} [opts.token] - API key
|
|
147
161
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -168,7 +182,7 @@ function paymentMethodsFactory(_ref) {
|
|
|
168
182
|
}
|
|
169
183
|
|
|
170
184
|
/**
|
|
171
|
-
* POST /default-payment-methods - create default payment methods.
|
|
185
|
+
* POST /default-payment-methods - create default payment methods. API does not accept query params.
|
|
172
186
|
* @param {Object} opts
|
|
173
187
|
* @param {string} [opts.token] - API key
|
|
174
188
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -189,7 +203,7 @@ function paymentMethodsFactory(_ref) {
|
|
|
189
203
|
}
|
|
190
204
|
|
|
191
205
|
/**
|
|
192
|
-
* DELETE /payment-methods/:paymentMethodId/customers - delete customers credit card info.
|
|
206
|
+
* DELETE /payment-methods/:paymentMethodId/customers - delete customers credit card info. API does not accept query params.
|
|
193
207
|
* @param {Object} opts
|
|
194
208
|
* @param {string} [opts.token] - API key
|
|
195
209
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -209,7 +223,7 @@ function paymentMethodsFactory(_ref) {
|
|
|
209
223
|
}
|
|
210
224
|
|
|
211
225
|
/**
|
|
212
|
-
* DELETE /payment-methods/domains/:domain - delete payment methods domain.
|
|
226
|
+
* DELETE /payment-methods/domains/:domain - delete payment methods domain. API does not accept query params.
|
|
213
227
|
* @param {Object} opts
|
|
214
228
|
* @param {string} [opts.token] - API key
|
|
215
229
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
@@ -17,7 +17,7 @@ function paymentsFactory(_ref) {
|
|
|
17
17
|
internalAuthTokenProvider = _ref.internalAuthTokenProvider;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* POST /payments - create payments.
|
|
20
|
+
* POST /payments - create payments. 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
|
|
@@ -40,7 +40,7 @@ function paymentsFactory(_ref) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* GET /transactions/:transactionId - get transaction.
|
|
43
|
+
* GET /transactions/:transactionId - get transaction. API does not accept query params.
|
|
44
44
|
* @param {Object} opts
|
|
45
45
|
* @param {string} [opts.token] - API key
|
|
46
46
|
* @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
|
+
* 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) {
|