Plugin Directory

Changeset 3196376


Ignore:
Timestamp:
11/25/2024 11:10:36 AM (17 months ago)
Author:
epaka
Message:

version 1.1.7

Location:
epaka-pl
Files:
273 added
3 edited

Legend:

Unmodified
Added
Removed
  • epaka-pl/trunk/README.txt

    r3148761 r3196376  
    44Tags: shipping, delivery, courier, kurier, paczki, przesyłki
    55Requires at least: 6.0
    6 Tested up to: 6.5.5
    7 Stable tag: 1.1.6
     6Tested up to: 6.7.1
     7Stable tag: 1.1.7
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    9696= 1.1.6 =
    9797* Fixed spinner video in fullscreen on safari
     98= 1.1.7 =
     99* Fixed label and documents download
    98100
    99101
  • epaka-pl/trunk/api/class-epaka-api-controller.php

    r3127415 r3196376  
    292292
    293293            $try1 = Epaka_Api_Controller::sendRequest("cancelOrder/".$id.".xml");
    294             if($try1->status->__toString() == "ERROR"){
     294            if($try1->data->status->__toString() == "ERROR"){
    295295                $try2 = Epaka_Api_Controller::sendRequest("cancelOrderEmail/".$id.".xml");
    296                 if($try1->status->__toString() == "ERROR"){
     296                if($try1->data->status->__toString() == "ERROR"){
    297297                    return rest_ensure_response(new WP_REST_Response(null, 404));
    298298                }
     
    368368        ]);
    369369
    370         if($tracking->status->__toString() == "OK"){
    371             if($tracking->error->__toString() != "1"){
    372                 $trace = json_encode($tracking->trace);
     370        if($tracking->data->status->__toString() == "OK"){
     371            if($tracking->data->error->__toString() != "1"){
     372                $trace = json_encode($tracking->data->trace);
    373373                $trace = json_decode($trace,true);
    374374                return rest_ensure_response($trace);
    375375            }else{
    376                 return rest_ensure_response(new WP_REST_Response($tracking->message->__toString(), 404));
     376                return rest_ensure_response(new WP_REST_Response($tracking->data->message->__toString(), 404));
    377377            }
    378378        }
     
    385385
    386386        $label = Epaka_Api_Controller::sendRequest("label/".$id.".xml");
    387         if($label->status->__toString() == "OK"){
    388             return rest_ensure_response($label->label->__toString());
     387        if($label->data->status->__toString() == "OK"){
     388            return rest_ensure_response($label->data->label->__toString());
    389389        }
    390390        return rest_ensure_response(new WP_REST_Response(null, 404));
     
    395395
    396396        $protocol = Epaka_Api_Controller::sendRequest("protocol/".$id.".xml");
    397         if($protocol->status->__toString() == "OK"){
    398             return rest_ensure_response($protocol->protocol->__toString());
     397        if($protocol->data->status->__toString() == "OK"){
     398            return rest_ensure_response($protocol->data->protocol->__toString());
    399399        }
    400400        return rest_ensure_response(new WP_REST_Response(null, 404));
     
    405405
    406406        $authorizationDocument = Epaka_Api_Controller::sendRequest("authorizationDocument/".$id.".xml");
    407         if($authorizationDocument->status->__toString() == "OK"){
    408             return rest_ensure_response($authorizationDocument->document->__toString());
     407        if($authorizationDocument->data->status->__toString() == "OK"){
     408            return rest_ensure_response($authorizationDocument->data->document->__toString());
    409409        }
    410410        return rest_ensure_response(new WP_REST_Response(null, 404));
     
    415415
    416416        $proforma = Epaka_Api_Controller::sendRequest("proforma/".$id.".xml");
    417         if($proforma->status->__toString() == "OK"){
    418             return rest_ensure_response($proforma->document->__toString());
     417        if($proforma->data->status->__toString() == "OK"){
     418            return rest_ensure_response($proforma->data->document->__toString());
    419419        }
    420420        return rest_ensure_response(new WP_REST_Response(null, 404));
     
    425425
    426426        $labelZebra = Epaka_Api_Controller::sendRequest("labelZebra/".$id.".xml");
    427         if($labelZebra->status->__toString() == "OK"){
    428             return rest_ensure_response($labelZebra->label->__toString());
     427        if($labelZebra->data->status->__toString() == "OK"){
     428            return rest_ensure_response($labelZebra->data->label->__toString());
    429429        }
    430430        return rest_ensure_response(new WP_REST_Response(null, 404));
  • epaka-pl/trunk/epakapl.php

    r3148761 r3196376  
    1111 * Plugin URI:           https://www.epaka.pl
    1212 * Description:          Integracja Woocommerce z epaka.pl. Składanie zamówień, generowanie etykiet, tracking przesyłek, mapa puntów odbioru dla klientów sklepu oraz o wiele więcej przydatnych funkcji dostępnych pod ręką.
    13  * Version:              1.1.6
     13 * Version:              1.1.7
    1414 * Author:               epaka.pl
    1515 * Author URI:           https://www.epaka.pl
     
    5858     * Rename this for your plugin and update it as you release new versions.
    5959     */
    60     define( 'EPAKA_VERSION', '1.1.6' );
     60    define( 'EPAKA_VERSION', '1.1.7' );
    6161    define( 'EPAKA_DOMAIN', 'https://www.epaka.pl/' );
    6262    define( 'EPAKA_PATH', dirname(__FILE__) );
Note: See TracChangeset for help on using the changeset viewer.