Skip to content

Commit

Permalink
Merge branch 'develop' into add/transaction-id-to-refund-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mordeth authored Dec 21, 2023
2 parents 88327ca + f62ff7e commit b0e9352
Show file tree
Hide file tree
Showing 81 changed files with 1,858 additions and 245 deletions.
4 changes: 4 additions & 0 deletions changelog/add-334-test-mode-notice-order-details
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Add test mode notice in page order detail.
4 changes: 4 additions & 0 deletions changelog/add-7248-refund-transaction-from-details-page
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Add refund controls to transaction details view
4 changes: 4 additions & 0 deletions changelog/dev-3468-allow-reset-account-management
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Add Account Management tools with reset account functionality for partially onboarded accounts.
4 changes: 4 additions & 0 deletions changelog/fix-6700-remove-currency-sign-modification-code
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Fix currency negative sign position on JS rendered amounts
5 changes: 5 additions & 0 deletions changelog/revert-file-needed-for-plugin-update
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: This is the file revert to avoid failures on plugin update. This is a temporary solution. Both removal & revert happen on develop meaning there is no change to the outside world.


4 changes: 4 additions & 0 deletions changelog/subscriptions-6.6.0-1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Deprecate the WC_Subscriptions_Synchroniser::add_to_recurring_cart_key(). Use WC_Subscriptions_Synchroniser::add_to_recurring_product_grouping_key() instead.
4 changes: 4 additions & 0 deletions changelog/subscriptions-6.6.0-2
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Introduce a new wcs_get_subscription_grouping_key() function to generate a unique key for a subscription based on its billing schedule. This function uses the existing recurring cart key concept.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Updated subscriptions-core to version 6.6.0
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Fetch and update the `_cancelled_email_sent` meta in a HPOS compatibile way.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-4
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Ensure proper backfilling of subscription metadata (i.e. dates and cache) to the postmeta table when HPOS is enabled and compatibility mode (data syncing) is turned on.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-5
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Resolved an issue that would cause undefined $current_page, $max_num_pages, and $paginate variable errors when viewing a page with the subscriptions-shortcode.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-6
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

When HPOS is enabled and data compatibility mode is turned on, make sure subscription date changes made to postmeta are synced to orders_meta table.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-7
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Prevents a PHP fatal error that occurs when the cart contains a renewal order item that no longer exists.
4 changes: 4 additions & 0 deletions changelog/subscriptions-core-6.6.0-8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

When using the checkout block to pay for renewal orders, ensure the order's cart hash is updated to make sure the existing order can be used.
9 changes: 8 additions & 1 deletion client/components/account-status/account-fees/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import {
getCurrentBaseFee,
getTransactionsPaymentMethodName,
} from 'utils/account-fees';
import { CardDivider } from '@wordpress/components';
import './styles.scss';

const AccountFee = ( props ) => {
const { accountFee, paymentMethod } = props;
Expand Down Expand Up @@ -59,7 +61,12 @@ const AccountFees = ( props ) => {
return (
<>
{ haveDiscounts && (
<h4>{ __( 'Active discounts', 'woocommerce-payments' ) }</h4>
<div className="account-fees">
<CardDivider />
<h4>
{ __( 'Active discounts', 'woocommerce-payments' ) }
</h4>
</div>
) }
{ activeDiscounts }
</>
Expand Down
3 changes: 3 additions & 0 deletions client/components/account-status/account-fees/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.account-fees {
padding-top: 16px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@

exports[`AccountFees renders discounted base fee 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand Down Expand Up @@ -47,9 +58,20 @@ exports[`AccountFees renders discounted base fee 1`] = `

exports[`AccountFees renders discounted fee with USD volume currency and non-USD base fee 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand Down Expand Up @@ -92,9 +114,20 @@ exports[`AccountFees renders discounted fee with USD volume currency and non-USD

exports[`AccountFees renders discounted fee with end date 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand All @@ -115,9 +148,20 @@ exports[`AccountFees renders discounted fee with end date 1`] = `

exports[`AccountFees renders discounted fee with volume limit 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand Down Expand Up @@ -160,9 +204,20 @@ exports[`AccountFees renders discounted fee with volume limit 1`] = `

exports[`AccountFees renders discounted fee with volume limit and end date 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand Down Expand Up @@ -205,9 +260,20 @@ exports[`AccountFees renders discounted fee with volume limit and end date 1`] =

exports[`AccountFees renders discounted fee without volume limit 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand All @@ -223,9 +289,20 @@ exports[`AccountFees renders discounted fee without volume limit 1`] = `

exports[`AccountFees renders discounted non-USD base fee 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand Down Expand Up @@ -268,9 +345,20 @@ exports[`AccountFees renders discounted non-USD base fee 1`] = `

exports[`AccountFees renders discounts multiple payment methods 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand Down Expand Up @@ -306,9 +394,20 @@ exports[`AccountFees renders discounts multiple payment methods 1`] = `

exports[`AccountFees renders first discounted fee ignoring the rest 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand All @@ -324,9 +423,20 @@ exports[`AccountFees renders first discounted fee ignoring the rest 1`] = `

exports[`AccountFees renders non-USD base fee 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand All @@ -342,9 +452,20 @@ exports[`AccountFees renders non-USD base fee 1`] = `

exports[`AccountFees renders normal base fee 1`] = `
<div>
<h4>
Active discounts
</h4>
<div
class="account-fees"
>
<hr
aria-orientation="horizontal"
class="components-divider components-card__divider components-card-divider css-yo8r29-DividerView-renderBorder-renderSize-renderMargin-Divider-borderColor e19on6iw0"
data-wp-c16t="true"
data-wp-component="CardDivider"
role="separator"
/>
<h4>
Active discounts
</h4>
</div>
<p>
Card transactions
:
Expand Down
Loading

0 comments on commit b0e9352

Please sign in to comment.