Plugin Directory

Changeset 2880214


Ignore:
Timestamp:
03/15/2023 05:02:57 AM (3 years ago)
Author:
doshii
Message:

Submitting changes for release 2.5.5

Location:
doshii/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • doshii/trunk/README.txt

    r2833784 r2880214  
    55Requires at least: 4.7
    66Tested up to: 5.8.0
    7 Stable tag: 2.5.4
     7Stable tag: 2.5.5
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    5959
    6060== Changelog ==
     61
     62= 2.5.5 =
     63
     64Added support for Givex giftcards
    6165
    6266= 2.5.4 =
  • doshii/trunk/doshii_function.php

    r2833784 r2880214  
    77Author URI: https://www.doshii.io
    88Contributors:
    9 Version: 2.5.4
     9Version: 2.5.5
    1010*/
    1111
  • doshii/trunk/include/woo-doshii-initialise.php

    r2833784 r2880214  
    4040       'x-doshii-location-id' => $locationId.'',
    4141       'content-Type' => 'application/json',
    42        'x-doshii-writeout' => 'WooCommerce 2.5.4',
     42       'x-doshii-writeout' => 'WooCommerce 2.5.5',
    4343    );
    4444
  • doshii/trunk/include/woo-doshii-product-sync.php

    r2833784 r2880214  
    4848            'x-doshii-location-id' => $locationId.'',
    4949            'content-Type' => 'application/json',
    50             'x-doshii-writeout' => 'WooCommerce 2.5.4',
     50            'x-doshii-writeout' => 'WooCommerce 2.5.5',
    5151        )
    5252    ));
  • doshii/trunk/include/woo-order-api.php

    r2833784 r2880214  
    5757            if (!empty($yithGiftcards)) {
    5858                foreach($yithGiftcards as $key => $value) {
     59                    $transaction = (object)[
     60                       'amount' => doshii_to_cents($value),
     61                       'method' => 'giftcard',
     62                       'tip' => 0,
     63                       'reference' => strval($key),
     64                       'prepaid' => true,
     65                       'surcounts' => []
     66                    ];
     67                    array_push($transactionsData, $transaction);
     68                }
     69            }
     70            $wcgxGiftcards = $order->get_meta('_wcgx_applied_gift_certificate');
     71            if (!empty($wcgxGiftcards)) {
     72                foreach($wcgxGiftcards as $key => $value) {
    5973                    $transaction = (object)[
    6074                       'amount' => doshii_to_cents($value),
     
    679693                'accept' => 'application/json',
    680694                'Accept-encoding' => 'gzip',
    681                 'x-doshii-writeout' => 'WooCommerce 2.5.4',
     695                'x-doshii-writeout' => 'WooCommerce 2.5.5',
    682696            ),
    683697            'body' => json_encode($doshiiOrderPayload)
  • doshii/trunk/include/woo-order-status.php

    r2833784 r2880214  
    3939                'x-doshii-location-id' => $doshii_options['location_id'].'',
    4040                'content-Type' => 'application/json',
    41                 'x-doshii-writeout' => 'WooCommerce 2.5.4',
     41                'x-doshii-writeout' => 'WooCommerce 2.5.5',
    4242            )
    4343        ));
Note: See TracChangeset for help on using the changeset viewer.