mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix another batch of typos
This commit is contained in:
parent
9fb76a966a
commit
61a265a1a4
8 changed files with 11 additions and 11 deletions
|
@ -106,7 +106,7 @@ class PartnersEndpoint {
|
|||
* Returns the current seller status.
|
||||
*
|
||||
* @return SellerStatus
|
||||
* @throws RuntimeException When request could not be fullfilled.
|
||||
* @throws RuntimeException When request could not be fulfilled.
|
||||
*/
|
||||
public function seller_status() : SellerStatus {
|
||||
$url = trailingslashit( $this->host ) . 'v1/customer/partners/' . $this->partner_id . '/merchant-integrations/' . $this->merchant_id;
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace WooCommerce\PayPalCommerce\ApiClient\Entity;
|
|||
*/
|
||||
class PhoneWithType {
|
||||
|
||||
const VALLID_TYPES = array(
|
||||
const VALID_TYPES = array(
|
||||
'FAX',
|
||||
'HOME',
|
||||
'MOBILE',
|
||||
|
@ -43,7 +43,7 @@ class PhoneWithType {
|
|||
* @param Phone $phone The phone.
|
||||
*/
|
||||
public function __construct( string $type, Phone $phone ) {
|
||||
$this->type = in_array( $type, self::VALLID_TYPES, true ) ? $type : 'OTHER';
|
||||
$this->type = in_array( $type, self::VALID_TYPES, true ) ? $type : 'OTHER';
|
||||
$this->phone = $phone;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ class PatchCollectionFactory {
|
|||
/**
|
||||
* Creates a Patch Collection by comparing two orders.
|
||||
*
|
||||
* @param Order $from The inital order.
|
||||
* @param Order $from The initial order.
|
||||
* @param Order $to The target order.
|
||||
*
|
||||
* @return PatchCollection
|
||||
|
|
|
@ -21,7 +21,7 @@ class ShippingPreferenceFactory {
|
|||
/**
|
||||
* Returns shipping_preference for the given state.
|
||||
*
|
||||
* @param PurchaseUnit $purchase_unit Thw PurchaseUnit.
|
||||
* @param PurchaseUnit $purchase_unit The PurchaseUnit.
|
||||
* @param string $context The operation context like 'checkout', 'cart'.
|
||||
* @param WC_Cart|null $cart The current cart if relevant.
|
||||
* @param string $funding_source The funding source (PayPal button) like 'paypal', 'venmo', 'card'.
|
||||
|
|
|
@ -289,17 +289,17 @@ const bootstrap = () => {
|
|||
}
|
||||
|
||||
if ( context === 'checkout' ) {
|
||||
const checkoutBootstap = new CheckoutBootstrap(
|
||||
const checkoutBootstrap = new CheckoutBootstrap(
|
||||
PayPalCommerceGateway,
|
||||
renderer,
|
||||
spinner,
|
||||
errorHandler
|
||||
);
|
||||
|
||||
checkoutBootstap.init();
|
||||
checkoutBootstrap.init();
|
||||
buttonModuleWatcher.registerContextBootstrap(
|
||||
'checkout',
|
||||
checkoutBootstap
|
||||
checkoutBootstrap
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class PreviewButtonManager {
|
|||
|
||||
/**
|
||||
* Resolves the promise.
|
||||
* Used by `this.boostrap()` to process enqueued initialization logic.
|
||||
* Used by `this.bootstrap()` to process enqueued initialization logic.
|
||||
*/
|
||||
#onInitResolver;
|
||||
|
||||
|
|
|
@ -188,7 +188,7 @@ class DisabledFundingSources {
|
|||
/**
|
||||
* Filters the final list of disabled funding sources.
|
||||
*
|
||||
* @param array $diabled_funding The filter value, funding sources to be disabled.
|
||||
* @param array $disable_funding The filter value, funding sources to be disabled.
|
||||
* @param array $flags Decision flags to provide more context to filters.
|
||||
*/
|
||||
$disable_funding = apply_filters(
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Handles the Early Order logic, when we need to create the WC_Order by ourselfs.
|
||||
* Handles the Early Order logic, when we need to create the WC_Order by ourselves.
|
||||
*
|
||||
* @package WooCommerce\PayPalCommerce\Button\Helper
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue