Skip to content

Commit

Permalink
Delete new and pending order states
Browse files Browse the repository at this point in the history
ISSUE: CS-5064
  • Loading branch information
AleksandarBoljanovic committed Mar 7, 2024
1 parent 074125c commit e6153bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
6 changes: 0 additions & 6 deletions Resources/views/backend/_resources/js/SettingsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ if (!window.AdyenFE) {
/**
* @typedef OrderStatusMappingSettings
* @property {string | null} inProgress
* @property {string | null} pending
* @property {string | null} paid
* @property {string | null} failed
* @property {string | null} refunded
* @property {string | null} cancelled
* @property {string | null} partiallyRefunded
* @property {string | null} new
* @property {string | null} chargeBack
*/

Expand Down Expand Up @@ -294,13 +292,11 @@ if (!window.AdyenFE) {
/** @type {OrderStatusMappingSettings} */
mappings = {
inProgress: null,
pending: null,
paid: null,
failed: null,
refunded: null,
partiallyRefunded: null,
cancelled: null,
new: null,
chargeBack: null
};
}
Expand All @@ -325,7 +321,6 @@ if (!window.AdyenFE) {
true,
generator.createFormFields([
getDropdownField('inProgress', mappings, 'orderStatusMapping', orderStatuses),
getDropdownField('pending', mappings, 'orderStatusMapping', orderStatuses),
getDropdownField('paid', mappings, 'orderStatusMapping', orderStatuses),
getDropdownField('failed', mappings, 'orderStatusMapping', orderStatuses),
getDropdownField('refunded', mappings, 'orderStatusMapping', orderStatuses),
Expand All @@ -337,7 +332,6 @@ if (!window.AdyenFE) {
orderStatuses,
'adlm--turned'
),
getDropdownField('new', mappings, 'orderStatusMapping', orderStatuses, 'adlm--turned'),
getDropdownField(
'chargeBack',
mappings,
Expand Down
14 changes: 2 additions & 12 deletions Resources/views/backend/_resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,17 +472,12 @@
"fields": {
"inProgress": {
"label": "In progress",
"description": "The Adyen payment status <strong>In progress</strong> should represent the following shop status:",
"placeholder": "Select status"
},
"pending": {
"label": "Pending",
"description": "The Adyen payment status <strong>Pending</strong> should represent the following shop status:",
"description": "The Adyen payment status <strong>In progress</strong>. This status is assigned when an order is initially created during the checkout process. Should represent the following shop status:",
"placeholder": "Select status"
},
"paid": {
"label": "Paid",
"description": "The Adyen payment status <strong>Paid</strong> should represent the following shop status:",
"description": "The Adyen payment status <strong>Paid</strong>. This status is assigned when an order is authorised on Adyen. Should represent the following shop status:",
"placeholder": "Select status"
},
"failed": {
Expand All @@ -505,11 +500,6 @@
"description": "The Adyen payment status <strong>Partially refunded</strong> should represent the following shop status:",
"placeholder": "Select status"
},
"new": {
"label": "New",
"description": "The Adyen payment status <strong>New</strong> should represent the following shop status:",
"placeholder": "Select status"
},
"chargeBack": {
"label": "Charge back",
"description": "The Adyen payment status <strong>Charge back</strong> should represent the following shop status:",
Expand Down

0 comments on commit e6153bc

Please sign in to comment.