Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMMERCE-6993 #1651

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,34 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/

import AJAX from '../../../utilities/AJAX/index';

const PRICE_LISTS_PATH = '/price-lists';

const PRICE_LIST_ORDER_TYPE_PATH = '/price-list-order-types';

const VERSION = 'v2.0';

function resolvePath(
basePath = '',
priceListId = '',
priceListOrderTypeId = ''
) {
return `${basePath}${VERSION}${PRICE_LISTS_PATH}/${priceListId}${PRICE_LIST_ORDER_TYPE_PATH}/${priceListOrderTypeId}`;
}

export default (basePath) => ({
addPriceListOrderType: (priceListId, json) =>
AJAX.POST(resolvePath(basePath, priceListId), json),
});
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=After {0} Cycles
all-accounts=All Accounts
all-channels=All Channels
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=All channels associated with this product must have at least one payment method active that supports recurring payments.
all-order-types=All Order Types
all-products=All Products
allow-back-orders=Allow Back Orders
allowed-order-quantities=Allowed Order Quantities
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Order Status Update Max Interval (Minut
order-submitted=Order Submitted
order-summary=Order Summary
order-transmitted=Order Transmitted
order-type-eligibility=Order Type Eligibility
order-value=Order Value
order-workflows=Order Workflows
order-x=Order {0}
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=Spare
specific-account-groups=Specific Account Groups
specific-accounts=Specific Accounts
specific-channels=Specific Channels
specific-order-types=Specific Order Types
specification-groups=Specification Groups
specification-labels=Specification Labels
specification-selected=Specification Selected
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=بعد {0} من الدورات
all-accounts=كافة الحسابات
all-channels=كافة القنوات
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=جميع القنوات المرتبطة هذا المنتج يجب أن تتضمن طريقة دفع نشطة واحدة على الأقل والتي تدعم المدفوعات المتكررة.
all-order-types=All Order Types (Automatic Copy)
all-products=جميع المنتجات
allow-back-orders=السماح بإرجاع الطلبات
allowed-order-quantities=كميات الطلبات المسموح بها
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=أقصى فاصل لتحديث حالة
order-submitted=تم إرسال الطلب
order-summary=ملخص الطلب
order-transmitted=تم نقل الطلب
order-type-eligibility=Order Type Eligibility (Automatic Copy)
order-value=قيمة الطلب
order-workflows=عمليات سير عمل الطلبات
order-x=الطلب {0}
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=احتياطي
specific-account-groups=مجموعات الحسابات الخاصة
specific-accounts=الحسابات الخاصة
specific-channels=القنوات الخاصة
specific-order-types=Specific Order Types (Automatic Copy)
specification-groups=مجموعات المواصفات
specification-labels=ملصقات المواصفات
specification-selected=المواصفة المحددة
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=After {0} Cycles (Automatic Copy)
all-accounts=Всички акаунти (Automatic Translation)
all-channels=Всички канали (Automatic Translation)
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=Всички канали, свързани с този продукт, трябва да имат поне един активен начин на плащане, който поддържа повтарящи се плащания. (Automatic Translation)
all-order-types=All Order Types (Automatic Copy)
all-products=Всички продукти (Automatic Translation)
allow-back-orders=Разрешаване на поръчки за връщане (Automatic Translation)
allowed-order-quantities=Разрешени количества за поръчки (Automatic Translation)
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Максимален интервал
order-submitted=Изпратена поръчка (Automatic Translation)
order-summary=Обобщение на поръчката (Automatic Translation)
order-transmitted=Изпратена поръчка (Automatic Translation)
order-type-eligibility=Order Type Eligibility (Automatic Copy)
order-value=Стойност на поръчката (Automatic Translation)
order-workflows=Поръчка на работни потоци (Automatic Translation)
order-x=Order {0} (Automatic Copy)
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=Резервни (Automatic Translation)
specific-account-groups=Специфични групи сметки (Automatic Translation)
specific-accounts=Специфични сметки (Automatic Translation)
specific-channels=Специфични канали (Automatic Translation)
specific-order-types=Specific Order Types (Automatic Copy)
specification-groups=Групи за спецификация (Automatic Translation)
specification-labels=Етикети на спецификациите (Automatic Translation)
specification-selected=Избрана спецификация (Automatic Translation)
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=Després de {0} cicle/s
all-accounts=Tots els comptes
all-channels=Tots els canals
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=Tots els canals associats a aquest producte han de tenir com a mínim una forma de pagament activa que admeti pagaments recurrents.
all-order-types=All Order Types (Automatic Copy)
all-products=Tots els productes
allow-back-orders=Permet comandes pendents
allowed-order-quantities=Quantitats de comandes permeses
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Interval màxim de l'actualització de
order-submitted=S'ha tramès la comanda
order-summary=Resum de la comanda
order-transmitted=S'ha transmès la comanda
order-type-eligibility=Order Type Eligibility (Automatic Copy)
order-value=Valor de la comanda
order-workflows=Fluxos de treball de la comanda
order-x=Comanda {0}
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=Recanvi
specific-account-groups=Grups de comptes específics
specific-accounts=Comptes específics
specific-channels=Canals específics
specific-order-types=Specific Order Types (Automatic Copy)
specification-groups=Grups d'especificació
specification-labels=Etiquetes d'especificació
specification-selected=Especificació seleccionada
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=After {0} Cycles (Automatic Copy)
all-accounts=Všechny účty (Automatic Translation)
all-channels=Všechny kanály (Automatic Translation)
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=Všechny kanály přidružené k tomuto produktu musí mít aktivní alespoň jednu platební metodu, která podporuje opakované platby. (Automatic Translation)
all-order-types=All Order Types (Automatic Copy)
all-products=Všechny produkty (Automatic Translation)
allow-back-orders=Povolit zpětné objednávky (Automatic Translation)
allowed-order-quantities=Povolená objednaná množství (Automatic Translation)
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Maximální interval aktualizace stavu
order-submitted=Odeslaná objednávka (Automatic Translation)
order-summary=Souhrn objednávek (Automatic Translation)
order-transmitted=Objednávka předána (Automatic Translation)
order-type-eligibility=Order Type Eligibility (Automatic Copy)
order-value=Hodnota objednávky (Automatic Translation)
order-workflows=Pracovní postupy objednávky (Automatic Translation)
order-x=Order {0} (Automatic Copy)
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=náhradní (Automatic Translation)
specific-account-groups=Konkrétní skupiny účtů (Automatic Translation)
specific-accounts=Konkrétní účty (Automatic Translation)
specific-channels=Konkrétní kanály (Automatic Translation)
specific-order-types=Specific Order Types (Automatic Copy)
specification-groups=Skupiny specifikací (Automatic Translation)
specification-labels=Popisky specifikací (Automatic Translation)
specification-selected=Byla vybrána specifikace. (Automatic Translation)
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=After {0} Cycles (Automatic Copy)
all-accounts=Alle konti (Automatic Translation)
all-channels=Alle kanaler (Automatic Translation)
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=Alle kanaler, der er knyttet til dette produkt, skal have mindst én aktiv betalingsmetode, der understøtter tilbagevendende betalinger. (Automatic Translation)
all-order-types=All Order Types (Automatic Copy)
all-products=Alle produkter (Automatic Translation)
allow-back-orders=Tillad restordrer (Automatic Translation)
allowed-order-quantities=Tilladte ordreantal (Automatic Translation)
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Maks. interval for opdatering af ordres
order-submitted=Ordre sendt (Automatic Translation)
order-summary=Oversigt over ordre (Automatic Translation)
order-transmitted=Ordren er sendt (Automatic Translation)
order-type-eligibility=Order Type Eligibility (Automatic Copy)
order-value=Ordreværdi (Automatic Translation)
order-workflows=Bestil arbejdsprocesser (Automatic Translation)
order-x=Order {0} (Automatic Copy)
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=spare (Automatic Translation)
specific-account-groups=Bestemte kontogrupper (Automatic Translation)
specific-accounts=Specifikke konti (Automatic Translation)
specific-channels=Bestemte kanaler (Automatic Translation)
specific-order-types=Specific Order Types (Automatic Copy)
specification-groups=Specifikationsgrupper (Automatic Translation)
specification-labels=Specifikationsetiketter (Automatic Translation)
specification-selected=Den valgte specifikation (Automatic Translation)
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=Nach {0} Zyklus/Zyklen
all-accounts=Alle Konten
all-channels=Alle Kanäle
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=Für alle Kanäle, die mit diesem Produkt verknüpft sind, muss mindestens eine Zahlungsmethode aktiviert sein, die wiederkehrende Zahlungen unterstützt.
all-order-types=All Order Types (Automatic Copy)
all-products=Alle Produkte
allow-back-orders=Lieferrückstände ermöglichen
allowed-order-quantities=Zulässige Bestellmengen
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Max. Abstand des Auftragsstatus-Update
order-submitted=Bestellung gesendet
order-summary=Zusammenfassung der Bestellung
order-transmitted=Bestellung übertragen
order-type-eligibility=Order Type Eligibility (Automatic Copy)
order-value=Bestellwert
order-workflows=Bestellungs-Workflows
order-x=Bestellung {0}
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=Ersatz
specific-account-groups=Spezifische Kontogruppen
specific-accounts=Spezifische Konten
specific-channels=Spezifische Kanäle
specific-order-types=Specific Order Types (Automatic Copy)
specification-groups=Spezifikationsgruppen
specification-labels=Spezifikationsbezeichnungen
specification-selected=Ausgewählte Spezifikation
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=After {0} Cycles (Automatic Copy)
all-accounts=Όλοι οι λογαριασμοί (Automatic Translation)
all-channels=Όλα τα κανάλια (Automatic Translation)
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=Όλα τα κανάλια που σχετίζονται με αυτό το προϊόν πρέπει να έχουν τουλάχιστον μία ενεργή μέθοδο πληρωμής που υποστηρίζει επαναλαμβανόμενες πληρωμές. (Automatic Translation)
all-order-types=All Order Types (Automatic Copy)
all-products=Όλα τα προϊόντα (Automatic Translation)
allow-back-orders=Να επιτρέπονται οι εκ των πίσω παραγγελίες (Automatic Translation)
allowed-order-quantities=Επιτρεπόμενες ποσότητες παραγγελίας (Automatic Translation)
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Μέγιστο διάστημα ενη
order-submitted=Παραγγελία που υποβλήθηκε (Automatic Translation)
order-summary=Σύνοψη παραγγελίας (Automatic Translation)
order-transmitted=Εντολή που διαβιβάστηκε (Automatic Translation)
order-type-eligibility=Order Type Eligibility (Automatic Copy)
order-value=Τιμή παραγγελίας (Automatic Translation)
order-workflows=Παραγγελία ροών εργασίας (Automatic Translation)
order-x=Order {0} (Automatic Copy)
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=διαθέσιμος (Automatic Translation)
specific-account-groups=Συγκεκριμένες ομάδες λογαριασμών (Automatic Translation)
specific-accounts=Συγκεκριμένοι λογαριασμοί (Automatic Translation)
specific-channels=Συγκεκριμένα κανάλια (Automatic Translation)
specific-order-types=Specific Order Types (Automatic Copy)
specification-groups=Ομάδες προδιαγραφών (Automatic Translation)
specification-labels=Ετικέτες προδιαγραφών (Automatic Translation)
specification-selected=Επιλεγμένη προδιαγραφή (Automatic Translation)
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=After {0} Cycles
all-accounts=All Accounts
all-channels=All Channels
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=All channels associated with this product must have at least one payment method active that supports recurring payments.
all-order-types=All Order Types
all-products=All Products
allow-back-orders=Allow Back Orders
allowed-order-quantities=Allowed Order Quantities
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Order Status Update Max Interval (Minut
order-submitted=Order Submitted
order-summary=Order Summary
order-transmitted=Order Transmitted
order-type-eligibility=Order Type Eligibility
order-value=Order Value
order-workflows=Order Workflows
order-x=Order {0}
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=Spare
specific-account-groups=Specific Account Groups
specific-accounts=Specific Accounts
specific-channels=Specific Channels
specific-order-types=Specific Order Types
specification-groups=Specification Groups
specification-labels=Specification Labels
specification-selected=Specification Selected
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=After {0} Cycles (Automatic Copy)
all-accounts=All Accounts (Automatic Copy)
all-channels=All Channels (Automatic Copy)
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=All channels associated with this product must have at least one payment method active that supports recurring payments. (Automatic Copy)
all-order-types=All Order Types (Automatic Copy)
all-products=All Products (Automatic Copy)
allow-back-orders=Allow Back Orders (Automatic Copy)
allowed-order-quantities=Allowed Order Quantities (Automatic Copy)
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Order Status Update Max Interval (Minut
order-submitted=Order Submitted (Automatic Copy)
order-summary=Order Summary (Automatic Copy)
order-transmitted=Order Transmitted (Automatic Copy)
order-type-eligibility=Order Type Eligibility (Automatic Copy)
order-value=Order Value (Automatic Copy)
order-workflows=Order Workflows (Automatic Copy)
order-x=Order {0} (Automatic Copy)
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=Spare (Automatic Copy)
specific-account-groups=Specific Account Groups (Automatic Copy)
specific-accounts=Specific Accounts (Automatic Copy)
specific-channels=Specific Channels (Automatic Copy)
specific-order-types=Specific Order Types (Automatic Copy)
specification-groups=Specification Groups (Automatic Copy)
specification-labels=Specification Labels (Automatic Copy)
specification-selected=Specification Selected (Automatic Copy)
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=After {0} Cycles (Automatic Copy)
all-accounts=All Accounts (Automatic Copy)
all-channels=All Channels (Automatic Copy)
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=All channels associated with this product must have at least one payment method active that supports recurring payments. (Automatic Copy)
all-order-types=All Order Types (Automatic Copy)
all-products=All Products (Automatic Copy)
allow-back-orders=Allow Back Orders (Automatic Copy)
allowed-order-quantities=Allowed Order Quantities (Automatic Copy)
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Order Status Update Max Interval (Minut
order-submitted=Order Submitted (Automatic Copy)
order-summary=Order Summary (Automatic Copy)
order-transmitted=Order Transmitted (Automatic Copy)
order-type-eligibility=Order Type Eligibility (Automatic Copy)
order-value=Order Value (Automatic Copy)
order-workflows=Order Workflows (Automatic Copy)
order-x=Order {0} (Automatic Copy)
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=Spare (Automatic Copy)
specific-account-groups=Specific Account Groups (Automatic Copy)
specific-accounts=Specific Accounts (Automatic Copy)
specific-channels=Specific Channels (Automatic Copy)
specific-order-types=Specific Order Types (Automatic Copy)
specification-groups=Specification Groups (Automatic Copy)
specification-labels=Specification Labels (Automatic Copy)
specification-selected=Specification Selected (Automatic Copy)
Expand Down
Expand Up @@ -193,6 +193,7 @@ after-x-cycles=Después de {0} ciclos
all-accounts=Todas las cuentas
all-channels=Todos los canales
all-channels-associated-with-this-product-must-have-at-least-one-payment-method-active-that-supports-recurring-payments=Todos los canales asociados a este producto deben tener como mínimo un método de pago activo que admita pagos periódicos.
all-order-types=All Order Types (Automatic Copy)
all-products=Todos los productos
allow-back-orders=Permitir pedidos pendientes
allowed-order-quantities=Cantidades de pedido permitidas
Expand Down Expand Up @@ -1059,6 +1060,7 @@ order-status-update-max-interval-minutes=Intervalo máximo de actualización de
order-submitted=Pedido solicitado
order-summary=Resumen del pedido
order-transmitted=Pedido transmitido
order-type-eligibility=Order Type Eligibility (Automatic Copy)
order-value=Valor del pedido
order-workflows=Flujos de trabajo del pedido
order-x=Pedido {0}
Expand Down Expand Up @@ -1388,6 +1390,7 @@ spare=Repuesto
specific-account-groups=Grupos de cuentas específicas
specific-accounts=Cuentas específicas
specific-channels=Canales específicos
specific-order-types=Specific Order Types (Automatic Copy)
specification-groups=Grupos de especificación
specification-labels=Etiquetas de especificación
specification-selected=Especificación seleccionada
Expand Down