WooCommerce Germanized - Version 3.7.2

Version Description

  • Improvement: Added WP CLI command (wp wc_gzd update) to run DB updates via CLI
  • Fix: Do not use empty price_html (e.g. variable product with same prices) as indicator to hide shopmarks
Download this release

Release Info

Developer vendidero
Plugin Icon 128x128 WooCommerce Germanized
Version 3.7.2
Comparing to
See all releases

Code changes from version 3.7.1 to 3.7.2

Files changed (31) hide show
  1. assets/js/add-to-cart-variation.js +8 -7
  2. assets/js/add-to-cart-variation.min.js +1 -1
  3. includes/class-wc-gzd-cli.php +79 -0
  4. includes/class-wc-gzd-install.php +5 -1
  5. packages/woocommerce-germanized-dhl/src/Api/Internetmarke.php +62 -36
  6. packages/woocommerce-germanized-dhl/src/Package.php +1 -1
  7. packages/woocommerce-germanized-dhl/src/ShippingProvider/DeutschePost.php +9 -9
  8. packages/woocommerce-germanized-dhl/woocommerce-germanized-dhl.php +1 -1
  9. readme.txt +5 -1
  10. vendor/autoload.php +1 -1
  11. vendor/autoload_packages.php +1 -1
  12. vendor/composer/autoload_real.php +7 -7
  13. vendor/composer/autoload_static.php +4 -4
  14. vendor/composer/installed.json +7 -7
  15. vendor/composer/installed.php +5 -5
  16. vendor/composer/jetpack_autoload_classmap.php +39 -39
  17. vendor/jetpack-autoloader/class-autoloader-handler.php +1 -1
  18. vendor/jetpack-autoloader/class-autoloader-locator.php +1 -1
  19. vendor/jetpack-autoloader/class-autoloader.php +1 -1
  20. vendor/jetpack-autoloader/class-container.php +1 -1
  21. vendor/jetpack-autoloader/class-hook-manager.php +1 -1
  22. vendor/jetpack-autoloader/class-latest-autoloader-guard.php +1 -1
  23. vendor/jetpack-autoloader/class-manifest-reader.php +1 -1
  24. vendor/jetpack-autoloader/class-path-processor.php +1 -1
  25. vendor/jetpack-autoloader/class-php-autoloader.php +1 -1
  26. vendor/jetpack-autoloader/class-plugin-locator.php +1 -1
  27. vendor/jetpack-autoloader/class-plugins-handler.php +1 -1
  28. vendor/jetpack-autoloader/class-shutdown-handler.php +1 -1
  29. vendor/jetpack-autoloader/class-version-loader.php +1 -1
  30. vendor/jetpack-autoloader/class-version-selector.php +1 -1
  31. woocommerce-germanized.php +6 -2
assets/js/add-to-cart-variation.js CHANGED
@@ -80,9 +80,10 @@
80
  };
81
 
82
  GermanizedVariationForm.prototype.onShowVariation = function( event, variation, purchasable ) {
83
- var form = event.data.GermanizedvariationForm,
84
- $wrapper = form.$wrapper,
85
- hasPrice = variation.price_html !== '';
 
86
 
87
  if ( $wrapper.find( '.org_product_info' ).length <= 0 ) {
88
 
@@ -111,7 +112,7 @@
111
  $wrapper.find( '.org_product_info' ).hide();
112
  }
113
 
114
- if ( hasPrice && form.replacePrice ) {
115
  form.$singleVariation.find( '.price' ).hide();
116
 
117
  $wrapper.find( wc_gzd_add_to_cart_variation_params.price_selector + ':not(.price-unit):visible:first' ).html( variation.price_html ).addClass( 'variation_modified' );
@@ -128,15 +129,15 @@
128
  $wrapper.find( 'p.delivery-time-info:first' ).html( variation.delivery_time ).addClass( 'variation_modified' ).show();
129
  }
130
 
131
- if ( hasPrice && variation.tax_info !== '' ) {
132
  $wrapper.find( '.tax-info:first' ).html( variation.tax_info ).addClass('variation_modified').show();
133
  }
134
 
135
- if ( hasPrice && variation.shipping_costs_info !== '' ) {
136
  $wrapper.find( '.shipping-costs-info:first' ).html( variation.shipping_costs_info ).addClass('variation_modified').show();
137
  }
138
 
139
- if ( hasPrice && variation.unit_price !== '' ) {
140
 
141
  // Check if unit price for variable product exists and replace instead of insert
142
  if ( $wrapper.find( '.price-unit:first' ).length ) {
80
  };
81
 
82
  GermanizedVariationForm.prototype.onShowVariation = function( event, variation, purchasable ) {
83
+ var form = event.data.GermanizedvariationForm,
84
+ $wrapper = form.$wrapper,
85
+ hasCustomPrice = variation.hasOwnProperty( 'price_html' ) && variation.price_html !== '',
86
+ hasDisplayPrice = variation.hasOwnProperty( 'display_price' ) && variation.display_price !== '';
87
 
88
  if ( $wrapper.find( '.org_product_info' ).length <= 0 ) {
89
 
112
  $wrapper.find( '.org_product_info' ).hide();
113
  }
114
 
115
+ if ( hasCustomPrice && form.replacePrice ) {
116
  form.$singleVariation.find( '.price' ).hide();
117
 
118
  $wrapper.find( wc_gzd_add_to_cart_variation_params.price_selector + ':not(.price-unit):visible:first' ).html( variation.price_html ).addClass( 'variation_modified' );
129
  $wrapper.find( 'p.delivery-time-info:first' ).html( variation.delivery_time ).addClass( 'variation_modified' ).show();
130
  }
131
 
132
+ if ( variation.tax_info !== '' && hasDisplayPrice ) {
133
  $wrapper.find( '.tax-info:first' ).html( variation.tax_info ).addClass('variation_modified').show();
134
  }
135
 
136
+ if ( variation.shipping_costs_info !== '' && hasDisplayPrice ) {
137
  $wrapper.find( '.shipping-costs-info:first' ).html( variation.shipping_costs_info ).addClass('variation_modified').show();
138
  }
139
 
140
+ if ( variation.unit_price !== '' && hasDisplayPrice ) {
141
 
142
  // Check if unit price for variable product exists and replace instead of insert
143
  if ( $wrapper.find( '.price-unit:first' ).length ) {
assets/js/add-to-cart-variation.min.js CHANGED
@@ -1 +1 @@
1
- !function(i){function t(i){var t=this;t.$form=i,t.$wrapper=i.closest(wc_gzd_add_to_cart_variation_params.wrapper),t.$product=i.closest(".product"),t.variationData=i.data("product_variations"),t.$singleVariation=i.find(".single_variation"),t.$singleVariationWrap=i.find(".single_variation_wrap"),t.$resetVariations=i.find(".reset_variations"),t.$button=i.find(".single_add_to_cart_button"),t.$wrapper.length<=0&&(t.$wrapper=t.$product),t.replacePrice=!t.$wrapper.hasClass("bundled_product")&&wc_gzd_add_to_cart_variation_params.replace_price,i.on("click",".reset_variations",{GermanizedvariationForm:t},t.onReset),i.on("reset_data",{GermanizedvariationForm:t},t.onReset),i.on("show_variation",{GermanizedvariationForm:t},t.onShowVariation)}t.prototype.onReset=function(i){var t=i.data.GermanizedvariationForm,r=t.$wrapper;0<r.find(".org_price").length&&t.replacePrice&&r.find(wc_gzd_add_to_cart_variation_params.price_selector+".variation_modified:not(.price-unit)").html(r.find(".org_price").html()).removeClass("variation_modified").show(),0<r.find(".org_delivery_time").length&&r.find(".delivery-time-info:first").html(r.find(".org_delivery_time").html()).removeClass("variation_modified").show(),0<r.find(".org_unit_price").length&&r.find(".price-unit:first").html(r.find(".org_unit_price").html()).removeClass("variation_modified").show(),0<r.find(".org_tax_info").length&&r.find(".tax-info:first").html(r.find(".org_tax_info").html()).removeClass("variation_modified").show(),0<r.find(".org_shipping_costs_info").length&&r.find(".shipping-costs-info:first").html(r.find(".org_shipping_costs_info").html()).removeClass("variation_modified").show(),0<r.find(".org_product_units").length&&r.find(".product-units:first").html(r.find(".org_product_units").html()).removeClass("variation_modified").show(),r.find(".org_product_info").remove(),r.find(".variation_modified").remove(),i.data.GermanizedvariationForm.$form.trigger("germanized_reset_data")},t.prototype.onUpdate=function(i){setTimeout(function(){void 0!==i.data&&i.data.hasOwnProperty("GermanizedvariationForm")&&void 0!==i.data.GermanizedvariationForm&&(i.data.GermanizedvariationForm.$button.is("[disabled]")||i.data.GermanizedvariationForm.$button.hasClass("disabled"))&&i.data.GermanizedvariationForm.onReset(i)},250)},t.prototype.onShowVariation=function(i,t,r){var n=i.data.GermanizedvariationForm,o=n.$wrapper,i=""!==t.price_html;o.find(".org_product_info").length<=0&&(o.append('<div class="org_price org_product_info">'+o.find(wc_gzd_add_to_cart_variation_params.price_selector+":not(.price-unit):visible:first").html()+"</div>"),0<o.find(".delivery-time-info:first").length&&o.append('<div class="org_delivery_time org_product_info">'+o.find(".delivery-time-info:first").html()+"</div>"),0<o.find(".tax-info:first").length&&o.append('<div class="org_tax_info org_product_info">'+o.find(".tax-info:first").html()+"</div>"),0<o.find(".shipping-costs-info:first").length&&o.append('<div class="org_shipping_costs_info org_product_info">'+o.find(".shipping-costs-info:first").html()+"</div>"),0<o.find(".price-unit:first").length&&o.append('<div class="org_unit_price org_product_info">'+o.find(".price-unit:first").html()+"</div>"),0<o.find(".product-units:first").length&&o.append('<div class="org_product_units org_product_info">'+o.find(".product-units:first").html()+"</div>"),o.find(".org_product_info").hide()),i&&n.replacePrice&&(n.$singleVariation.find(".price").hide(),o.find(wc_gzd_add_to_cart_variation_params.price_selector+":not(.price-unit):visible:first").html(t.price_html).addClass("variation_modified"),o.find(wc_gzd_add_to_cart_variation_params.price_selector+":not(.price-unit):visible:first").find(".price").contents().unwrap()),o.find(".delivery-time-info:first").hide(),o.find(".price-unit:first").hide(),o.find(".tax-info:first").hide(),o.find(".shipping-costs-info:first").hide(),o.find(".product-units:first").hide(),""!==t.delivery_time&&o.find("p.delivery-time-info:first").html(t.delivery_time).addClass("variation_modified").show(),i&&""!==t.tax_info&&o.find(".tax-info:first").html(t.tax_info).addClass("variation_modified").show(),i&&""!==t.shipping_costs_info&&o.find(".shipping-costs-info:first").html(t.shipping_costs_info).addClass("variation_modified").show(),i&&""!==t.unit_price&&(o.find(".price-unit:first").length?o.find(".price-unit:first").html(t.unit_price).addClass("variation-modified").show():(o.find(".price-unit:first").remove(),o.find("p.price:first").after('<p class="price price-unit smaller variation_modified">'+t.unit_price+"</p>").show())),""!==t.product_units&&(o.find(".product-units:first").length?o.find(".product-units:first").html(t.product_units).addClass("variation-modified").show():(o.find(".product-units:first").remove(),o.find(".product_meta:first").prepend('<p class="wc-gzd-additional-info product-units-wrapper product-units variation_modified">'+t.product_units+"</p>").show())),n.$form.trigger("germanized_variation_data")},i.fn.wc_germanized_variation_form=function(){return new t(this),this},i(function(){"undefined"!=typeof wc_gzd_add_to_cart_variation_params&&i(".variations_form").each(function(){i(this).wc_germanized_variation_form()})})}(jQuery,(window,document));
1
+ !function(i){function t(i){var t=this;t.$form=i,t.$wrapper=i.closest(wc_gzd_add_to_cart_variation_params.wrapper),t.$product=i.closest(".product"),t.variationData=i.data("product_variations"),t.$singleVariation=i.find(".single_variation"),t.$singleVariationWrap=i.find(".single_variation_wrap"),t.$resetVariations=i.find(".reset_variations"),t.$button=i.find(".single_add_to_cart_button"),t.$wrapper.length<=0&&(t.$wrapper=t.$product),t.replacePrice=!t.$wrapper.hasClass("bundled_product")&&wc_gzd_add_to_cart_variation_params.replace_price,i.on("click",".reset_variations",{GermanizedvariationForm:t},t.onReset),i.on("reset_data",{GermanizedvariationForm:t},t.onReset),i.on("show_variation",{GermanizedvariationForm:t},t.onShowVariation)}t.prototype.onReset=function(i){var t=i.data.GermanizedvariationForm,r=t.$wrapper;0<r.find(".org_price").length&&t.replacePrice&&r.find(wc_gzd_add_to_cart_variation_params.price_selector+".variation_modified:not(.price-unit)").html(r.find(".org_price").html()).removeClass("variation_modified").show(),0<r.find(".org_delivery_time").length&&r.find(".delivery-time-info:first").html(r.find(".org_delivery_time").html()).removeClass("variation_modified").show(),0<r.find(".org_unit_price").length&&r.find(".price-unit:first").html(r.find(".org_unit_price").html()).removeClass("variation_modified").show(),0<r.find(".org_tax_info").length&&r.find(".tax-info:first").html(r.find(".org_tax_info").html()).removeClass("variation_modified").show(),0<r.find(".org_shipping_costs_info").length&&r.find(".shipping-costs-info:first").html(r.find(".org_shipping_costs_info").html()).removeClass("variation_modified").show(),0<r.find(".org_product_units").length&&r.find(".product-units:first").html(r.find(".org_product_units").html()).removeClass("variation_modified").show(),r.find(".org_product_info").remove(),r.find(".variation_modified").remove(),i.data.GermanizedvariationForm.$form.trigger("germanized_reset_data")},t.prototype.onUpdate=function(i){setTimeout(function(){void 0!==i.data&&i.data.hasOwnProperty("GermanizedvariationForm")&&void 0!==i.data.GermanizedvariationForm&&(i.data.GermanizedvariationForm.$button.is("[disabled]")||i.data.GermanizedvariationForm.$button.hasClass("disabled"))&&i.data.GermanizedvariationForm.onReset(i)},250)},t.prototype.onShowVariation=function(i,t,r){var n=i.data.GermanizedvariationForm,o=n.$wrapper,a=t.hasOwnProperty("price_html")&&""!==t.price_html,i=t.hasOwnProperty("display_price")&&""!==t.display_price;o.find(".org_product_info").length<=0&&(o.append('<div class="org_price org_product_info">'+o.find(wc_gzd_add_to_cart_variation_params.price_selector+":not(.price-unit):visible:first").html()+"</div>"),0<o.find(".delivery-time-info:first").length&&o.append('<div class="org_delivery_time org_product_info">'+o.find(".delivery-time-info:first").html()+"</div>"),0<o.find(".tax-info:first").length&&o.append('<div class="org_tax_info org_product_info">'+o.find(".tax-info:first").html()+"</div>"),0<o.find(".shipping-costs-info:first").length&&o.append('<div class="org_shipping_costs_info org_product_info">'+o.find(".shipping-costs-info:first").html()+"</div>"),0<o.find(".price-unit:first").length&&o.append('<div class="org_unit_price org_product_info">'+o.find(".price-unit:first").html()+"</div>"),0<o.find(".product-units:first").length&&o.append('<div class="org_product_units org_product_info">'+o.find(".product-units:first").html()+"</div>"),o.find(".org_product_info").hide()),a&&n.replacePrice&&(n.$singleVariation.find(".price").hide(),o.find(wc_gzd_add_to_cart_variation_params.price_selector+":not(.price-unit):visible:first").html(t.price_html).addClass("variation_modified"),o.find(wc_gzd_add_to_cart_variation_params.price_selector+":not(.price-unit):visible:first").find(".price").contents().unwrap()),o.find(".delivery-time-info:first").hide(),o.find(".price-unit:first").hide(),o.find(".tax-info:first").hide(),o.find(".shipping-costs-info:first").hide(),o.find(".product-units:first").hide(),""!==t.delivery_time&&o.find("p.delivery-time-info:first").html(t.delivery_time).addClass("variation_modified").show(),""!==t.tax_info&&i&&o.find(".tax-info:first").html(t.tax_info).addClass("variation_modified").show(),""!==t.shipping_costs_info&&i&&o.find(".shipping-costs-info:first").html(t.shipping_costs_info).addClass("variation_modified").show(),""!==t.unit_price&&i&&(o.find(".price-unit:first").length?o.find(".price-unit:first").html(t.unit_price).addClass("variation-modified").show():(o.find(".price-unit:first").remove(),o.find("p.price:first").after('<p class="price price-unit smaller variation_modified">'+t.unit_price+"</p>").show())),""!==t.product_units&&(o.find(".product-units:first").length?o.find(".product-units:first").html(t.product_units).addClass("variation-modified").show():(o.find(".product-units:first").remove(),o.find(".product_meta:first").prepend('<p class="wc-gzd-additional-info product-units-wrapper product-units variation_modified">'+t.product_units+"</p>").show())),n.$form.trigger("germanized_variation_data")},i.fn.wc_germanized_variation_form=function(){return new t(this),this},i(function(){"undefined"!=typeof wc_gzd_add_to_cart_variation_params&&i(".variations_form").each(function(){i(this).wc_germanized_variation_form()})})}(jQuery,(window,document));
includes/class-wc-gzd-cli.php ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Enables Germanized, via the the command line.
4
+ */
5
+
6
+ defined( 'ABSPATH' ) || exit;
7
+
8
+ /**
9
+ * CLI class.
10
+ */
11
+ class WC_GZD_CLI {
12
+ /**
13
+ * Load required files and hooks to make the CLI work.
14
+ */
15
+ public function __construct() {
16
+ if ( class_exists( 'WP_CLI' ) ) {
17
+ WP_CLI::add_hook( 'after_wp_load', array( $this, 'register_update_command' ) );
18
+ }
19
+ }
20
+
21
+ public function register_update_command() {
22
+ WP_CLI::add_command( 'wc_gzd update', array( $this, 'update_command' ) );
23
+ }
24
+
25
+ public function update_command() {
26
+ global $wpdb;
27
+
28
+ $wpdb->hide_errors();
29
+
30
+ include_once WC_GERMANIZED_ABSPATH . 'includes/class-wc-gzd-install.php';
31
+
32
+ $current_db_version = get_option( 'woocommerce_gzd_db_version' );
33
+ $update_count = 0;
34
+ $callbacks = WC_GZD_Install::get_db_update_callbacks();
35
+ $scripts_to_run = array();
36
+
37
+ foreach ( $callbacks as $version => $update_callback ) {
38
+ if ( version_compare( $current_db_version, $version, '<' ) ) {
39
+ $scripts_to_run[ $version ] = $update_callback;
40
+ }
41
+ }
42
+
43
+ if ( empty( $scripts_to_run ) ) {
44
+ // Ensure DB version is set to the current WC version to match WP-Admin update routine.
45
+ WC_GZD_Install::update_db_version();
46
+ /* translators: %s Database version number */
47
+ WP_CLI::success( sprintf( __( 'No updates required. Database version is %s', 'woocommerce-germanized' ), get_option( 'woocommerce_gzd_db_version' ) ) );
48
+ return;
49
+ }
50
+
51
+ /* translators: 1: Number of database updates 2: List of update callbacks */
52
+ WP_CLI::log( sprintf( __( 'Found %1$d updates (%2$s)', 'woocommerce-germanized' ), count( $scripts_to_run ), implode( ', ', $scripts_to_run ) ) );
53
+
54
+ $progress = \WP_CLI\Utils\make_progress_bar( __( 'Updating database', 'woocommerce-germanized' ), count( $scripts_to_run ) ); // phpcs:ignore PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound
55
+
56
+ foreach ( $scripts_to_run as $version => $script ) {
57
+ include( $script );
58
+ WC_GZD_Install::update_db_version( $version );
59
+ $update_count ++;
60
+ $progress->tick();
61
+ }
62
+
63
+ $progress->finish();
64
+
65
+ WC_GZD_Install::update_db_version();
66
+
67
+ if ( $note = WC_GZD_Admin_Notices::instance()->get_note( 'update' ) ) {
68
+ $note->dismiss();
69
+ }
70
+
71
+ delete_option( '_wc_gzd_needs_update' );
72
+ delete_transient( '_wc_gzd_activation_redirect' );
73
+
74
+ /* translators: 1: Number of database updates performed 2: Database version number */
75
+ WP_CLI::success( sprintf( __( '%1$d update functions completed. Database version is %2$s', 'woocommerce-germanized' ), absint( $update_count ), get_option( 'woocommerce_gzd_db_version' ) ) );
76
+ }
77
+ }
78
+
79
+ new WC_GZD_CLI();
includes/class-wc-gzd-install.php CHANGED
@@ -305,11 +305,15 @@ if ( ! class_exists( 'WC_GZD_Install' ) ) :
305
  /**
306
  * Update DB version to current
307
  */
308
- private static function update_db_version( $version = null ) {
309
  delete_option( 'woocommerce_gzd_db_version' );
310
  add_option( 'woocommerce_gzd_db_version', is_null( $version ) ? WC_germanized()->version : $version );
311
  }
312
 
 
 
 
 
313
  /**
314
  * Handle updates
315
  */
305
  /**
306
  * Update DB version to current
307
  */
308
+ public static function update_db_version( $version = null ) {
309
  delete_option( 'woocommerce_gzd_db_version' );
310
  add_option( 'woocommerce_gzd_db_version', is_null( $version ) ? WC_germanized()->version : $version );
311
  }
312
 
313
+ public static function get_db_update_callbacks() {
314
+ return self::$db_updates;
315
+ }
316
+
317
  /**
318
  * Handle updates
319
  */
packages/woocommerce-germanized-dhl/src/Api/Internetmarke.php CHANGED
@@ -60,43 +60,55 @@ class Internetmarke {
60
  $this->partner = new ImPartnerInformation( Package::get_internetmarke_partner_id(), Package::get_internetmarke_key_phase(), Package::get_internetmarke_token() );
61
  $this->errors = new \WP_Error();
62
 
63
- try {
64
- if ( ! Package::has_load_dependencies() ) {
65
- throw new \Exception( sprintf( _x( 'To enable communication between your shop and DHL, the PHP <a href="%s">SOAPClient</a> is required. Please contact your host and make sure that SOAPClient is <a href="%s">installed</a>.', 'dhl', 'woocommerce-germanize-dhl' ), 'https://www.php.net/manual/class.soapclient.php', admin_url( 'admin.php?page=wc-status' ) ) );
66
- }
67
-
68
- $this->api = new Service( $this->partner, array(), Package::get_wsdl_file( Package::get_internetmarke_main_url() ) );
69
- } catch( \Exception $e ) {
70
- $this->errors->add( 'startup', sprintf( _x( 'Error while instantiating main Internetmarke API: %s', 'dhl', 'woocommerce-germanized' ), $e->getMessage() ) );
71
- }
72
-
73
  if ( ! Package::is_deutsche_post_enabled() ) {
74
  $this->errors->add( 'startup', _x( 'Internetmarke is disabled. Please enable Internetmarke.', 'dhl', 'woocommerce-germanized' ) );
75
  }
76
  }
77
 
78
- public function is_configured() {
79
- return Package::get_internetmarke_username() && Package::get_internetmarke_password();
80
- }
81
-
82
- public function auth() {
83
- if ( $this->is_configured() && ! $this->has_startup_error() ) {
84
  try {
85
- $this->errors->remove( 'authentication' );
 
 
86
 
87
- $this->user = $this->api->authenticateUser( Package::get_internetmarke_username(), Package::get_internetmarke_password() );
88
  } catch( \Exception $e ) {
89
- $this->errors->add( 'authentication', _x( 'Wrong username or password', 'dhl', 'woocommerce-germanized' ) );
 
90
  }
91
  }
92
 
93
- if ( ! $this->has_authentication_error() && $this->user ) {
94
- return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  } else {
96
- return false;
97
  }
98
  }
99
 
 
 
 
 
 
 
 
 
100
  public function has_authentication_error() {
101
  $errors = $this->errors->get_error_message( 'authentication' );
102
 
@@ -121,6 +133,14 @@ class Internetmarke {
121
  return $error;
122
  }
123
 
 
 
 
 
 
 
 
 
124
  public function has_errors() {
125
  return wc_gzd_dhl_wp_error_has_errors( $this->errors ) ? true : false;
126
  }
@@ -130,7 +150,7 @@ class Internetmarke {
130
  }
131
 
132
  public function is_available() {
133
- return ! $this->has_authentication_error() && ! $this->has_startup_error() && is_a( $this->api, '\baltpeter\Internetmarke\Service' );
134
  }
135
 
136
  public function get_user() {
@@ -389,7 +409,11 @@ class Internetmarke {
389
  $this->page_formats = array();
390
 
391
  try {
392
- $this->page_formats = $this->api->retrievePageFormats();
 
 
 
 
393
 
394
  set_transient( 'wc_gzd_dhl_im_page_formats', $this->page_formats, DAY_IN_SECONDS );
395
  } catch( \Exception $e ) {
@@ -456,14 +480,16 @@ class Internetmarke {
456
  $preview_url = false;
457
 
458
  try {
459
- if ( $this->is_warenpost_international( $product_id ) ) {
460
- if ( $this->is_warenpost_international_eu( $product_id ) ) {
461
- $preview_url = trailingslashit( Package::get_assets_url() ) . 'img/wp-int-eu-preview.png';
 
 
 
 
462
  } else {
463
- $preview_url = trailingslashit( Package::get_assets_url() ) . 'img/wp-int-preview.png';
464
  }
465
- } else {
466
- $preview_url = $this->api->retrievePreviewVoucherPng( $product_id, $address_type, $image_id );
467
  }
468
  } catch( \Exception $e ) {}
469
 
@@ -527,12 +553,12 @@ class Internetmarke {
527
  if ( empty( $label->get_shop_order_id() ) ) {
528
  return $this->create_default_label( $label );
529
  } else {
530
- if ( ! $this->auth() ) {
531
  throw new \Exception( $this->get_authentication_error() );
532
  }
533
 
534
  try {
535
- $stamp = $this->api->retrieveOrder( $this->get_user()->getUserToken(), $label->get_shop_order_id() );
536
  } catch( \Exception $e ) {
537
  return $this->create_default_label( $label );
538
  }
@@ -705,12 +731,12 @@ class Internetmarke {
705
  $receiver = $this->get_shipment_address_data( $shipment );
706
  $address_binding = new \baltpeter\Internetmarke\AddressBinding( $sender, $receiver );
707
 
708
- if ( ! $this->auth() ) {
709
- throw new \Exception( $this->get_authentication_error() );
710
  }
711
 
712
  try {
713
- $shop_order_id = $this->api->createShopOrderId( $this->get_user()->getUserToken() );
714
 
715
  if ( ! $shop_order_id ) {
716
  throw new \Exception( _x( 'Error while generating shop order id.', 'dhl', 'woocommerce-germanized' ) );
@@ -745,7 +771,7 @@ class Internetmarke {
745
  );
746
 
747
  $order_item = new \baltpeter\Internetmarke\OrderItem( $label->get_product_id(), null, $address_binding, $position, 'AddressZone' );
748
- $stamp = $this->api->checkoutShoppingCartPdf( $this->get_user()->getUserToken(), $label->get_page_format(), array( $order_item ), $label->get_stamp_total(), $shop_order_id, null, true, 2 );
749
 
750
  return $this->update_default_label( $label, $stamp );
751
  } catch( \Exception $e ) {
60
  $this->partner = new ImPartnerInformation( Package::get_internetmarke_partner_id(), Package::get_internetmarke_key_phase(), Package::get_internetmarke_token() );
61
  $this->errors = new \WP_Error();
62
 
 
 
 
 
 
 
 
 
 
 
63
  if ( ! Package::is_deutsche_post_enabled() ) {
64
  $this->errors->add( 'startup', _x( 'Internetmarke is disabled. Please enable Internetmarke.', 'dhl', 'woocommerce-germanized' ) );
65
  }
66
  }
67
 
68
+ public function get_api( $auth = false ) {
69
+ if ( is_null( $this->api ) ) {
 
 
 
 
70
  try {
71
+ if ( ! Package::has_load_dependencies() ) {
72
+ throw new \Exception( sprintf( _x( 'To enable communication between your shop and DHL, the PHP <a href="%s">SOAPClient</a> is required. Please contact your host and make sure that SOAPClient is <a href="%s">installed</a>.', 'dhl', 'woocommerce-germanize-dhl' ), 'https://www.php.net/manual/class.soapclient.php', admin_url( 'admin.php?page=wc-status' ) ) );
73
+ }
74
 
75
+ $this->api = new Service( $this->partner, array(), Package::get_wsdl_file( Package::get_internetmarke_main_url() ) );
76
  } catch( \Exception $e ) {
77
+ $this->api = null;
78
+ $this->errors->add( 'startup', sprintf( _x( 'Error while instantiating main Internetmarke API: %s', 'dhl', 'woocommerce-germanized' ), $e->getMessage() ) );
79
  }
80
  }
81
 
82
+ if ( $auth ) {
83
+ if ( is_null( $this->user ) && $this->api && $this->is_configured() ) {
84
+ try {
85
+ $this->errors->remove( 'authentication' );
86
+
87
+ $this->user = $this->api->authenticateUser( Package::get_internetmarke_username(), Package::get_internetmarke_password() );
88
+ } catch( \Exception $e ) {
89
+ $this->user = null;
90
+ $this->errors->add( 'authentication', _x( 'Wrong username or password', 'dhl', 'woocommerce-germanized' ) );
91
+ }
92
+ }
93
+
94
+ if ( ! $this->has_authentication_error() && $this->user ) {
95
+ return $this->api;
96
+ } else {
97
+ return false;
98
+ }
99
  } else {
100
+ return $this->api ? $this->api : false;
101
  }
102
  }
103
 
104
+ public function is_configured() {
105
+ return Package::get_internetmarke_username() && Package::get_internetmarke_password();
106
+ }
107
+
108
+ public function auth() {
109
+ return $this->get_api( true );
110
+ }
111
+
112
  public function has_authentication_error() {
113
  $errors = $this->errors->get_error_message( 'authentication' );
114
 
133
  return $error;
134
  }
135
 
136
+ public function get_error_message() {
137
+ if ( $this->has_errors() ) {
138
+ return $this->get_startup_error() ? $this->get_startup_error() : $this->get_authentication_error();
139
+ }
140
+
141
+ return false;
142
+ }
143
+
144
  public function has_errors() {
145
  return wc_gzd_dhl_wp_error_has_errors( $this->errors ) ? true : false;
146
  }
150
  }
151
 
152
  public function is_available() {
153
+ return $this->get_api( true );
154
  }
155
 
156
  public function get_user() {
409
  $this->page_formats = array();
410
 
411
  try {
412
+ if ( ! $api = $this->get_api() ) {
413
+ throw new \Exception( $this->get_error_message() );
414
+ }
415
+
416
+ $this->page_formats = $api->retrievePageFormats();
417
 
418
  set_transient( 'wc_gzd_dhl_im_page_formats', $this->page_formats, DAY_IN_SECONDS );
419
  } catch( \Exception $e ) {
480
  $preview_url = false;
481
 
482
  try {
483
+ if ( $api = $this->get_api( true ) ) {
484
+ if ( $this->is_warenpost_international( $product_id ) ) {
485
+ if ( $this->is_warenpost_international_eu( $product_id ) ) {
486
+ $preview_url = trailingslashit( Package::get_assets_url() ) . 'img/wp-int-eu-preview.png';
487
+ } else {
488
+ $preview_url = trailingslashit( Package::get_assets_url() ) . 'img/wp-int-preview.png';
489
+ }
490
  } else {
491
+ $preview_url = $api->retrievePreviewVoucherPng( $product_id, $address_type, $image_id );
492
  }
 
 
493
  }
494
  } catch( \Exception $e ) {}
495
 
553
  if ( empty( $label->get_shop_order_id() ) ) {
554
  return $this->create_default_label( $label );
555
  } else {
556
+ if ( ! $api = $this->get_api( true ) ) {
557
  throw new \Exception( $this->get_authentication_error() );
558
  }
559
 
560
  try {
561
+ $stamp = $api->retrieveOrder( $this->get_user()->getUserToken(), $label->get_shop_order_id() );
562
  } catch( \Exception $e ) {
563
  return $this->create_default_label( $label );
564
  }
731
  $receiver = $this->get_shipment_address_data( $shipment );
732
  $address_binding = new \baltpeter\Internetmarke\AddressBinding( $sender, $receiver );
733
 
734
+ if ( ! $api = $this->get_api( true ) ) {
735
+ throw new \Exception( $this->get_error_message() );
736
  }
737
 
738
  try {
739
+ $shop_order_id = $api->createShopOrderId( $this->get_user()->getUserToken() );
740
 
741
  if ( ! $shop_order_id ) {
742
  throw new \Exception( _x( 'Error while generating shop order id.', 'dhl', 'woocommerce-germanized' ) );
771
  );
772
 
773
  $order_item = new \baltpeter\Internetmarke\OrderItem( $label->get_product_id(), null, $address_binding, $position, 'AddressZone' );
774
+ $stamp = $api->checkoutShoppingCartPdf( $this->get_user()->getUserToken(), $label->get_page_format(), array( $order_item ), $label->get_stamp_total(), $shop_order_id, null, true, 2 );
775
 
776
  return $this->update_default_label( $label, $stamp );
777
  } catch( \Exception $e ) {
packages/woocommerce-germanized-dhl/src/Package.php CHANGED
@@ -25,7 +25,7 @@ class Package {
25
  *
26
  * @var string
27
  */
28
- const VERSION = '1.6.3';
29
 
30
  public static $upload_dir_suffix = '';
31
 
25
  *
26
  * @var string
27
  */
28
+ const VERSION = '1.6.4';
29
 
30
  public static $upload_dir_suffix = '';
31
 
packages/woocommerce-germanized-dhl/src/ShippingProvider/DeutschePost.php CHANGED
@@ -148,15 +148,15 @@ class DeutschePost extends Auto {
148
  }
149
 
150
  protected function get_label_settings( $for_shipping_method = false ) {
151
- $api = Package::get_internetmarke_api();
152
  $settings = parent::get_label_settings( $for_shipping_method );
153
 
154
- if ( $api && $api->is_configured() && $api->auth() && $api->is_available() ) {
155
- $api->reload_products();
156
 
157
- $balance = $api->get_balance( true );
158
  $settings_url = $this->get_edit_link( 'label' );
159
- $default_available_products = $api->get_default_available_products();
160
 
161
  $settings = array_merge( $settings, array(
162
  array( 'title' => _x( 'Portokasse', 'dhl', 'woocommerce-germanized' ), 'type' => 'title', 'id' => 'deutsche_post_portokasse_options' ),
@@ -267,9 +267,9 @@ class DeutschePost extends Auto {
267
 
268
  array( 'type' => 'sectionend', 'id' => 'deutsche_post_print_options' )
269
  ) );
270
- } elseif ( $api && $api->has_errors() ) {
271
  $settings = array_merge( $settings, array(
272
- array( 'title' => _x( 'API Error', 'dhl', 'woocommerce-germanized' ), 'type' => 'title', 'id' => 'deutsche_post_api_error', 'desc' => '<div class="notice inline notice-error"><p>' . implode( ", ", $api->get_errors()->get_error_messages() ) . '</p></div>' ),
273
  array( 'type' => 'sectionend', 'id' => 'deutsche_post_api_error' )
274
  ) );
275
  }
@@ -497,8 +497,8 @@ class DeutschePost extends Auto {
497
  public function get_available_label_services( $shipment ) {
498
  $services = array();
499
 
500
- if ( $api = Package::get_internetmarke_api()->get_product_list() ) {
501
- $services = array_keys( $api->get_additional_services() );
502
  }
503
 
504
  return $services;
148
  }
149
 
150
  protected function get_label_settings( $for_shipping_method = false ) {
151
+ $im = Package::get_internetmarke_api();
152
  $settings = parent::get_label_settings( $for_shipping_method );
153
 
154
+ if ( $im && $im->is_configured() && $im->auth() && $im->is_available() ) {
155
+ $im->reload_products();
156
 
157
+ $balance = $im->get_balance( true );
158
  $settings_url = $this->get_edit_link( 'label' );
159
+ $default_available_products = $im->get_default_available_products();
160
 
161
  $settings = array_merge( $settings, array(
162
  array( 'title' => _x( 'Portokasse', 'dhl', 'woocommerce-germanized' ), 'type' => 'title', 'id' => 'deutsche_post_portokasse_options' ),
267
 
268
  array( 'type' => 'sectionend', 'id' => 'deutsche_post_print_options' )
269
  ) );
270
+ } elseif ( $im && $im->has_errors() ) {
271
  $settings = array_merge( $settings, array(
272
+ array( 'title' => _x( 'API Error', 'dhl', 'woocommerce-germanized' ), 'type' => 'title', 'id' => 'deutsche_post_api_error', 'desc' => '<div class="notice inline notice-error"><p>' . implode( ", ", $im->get_errors()->get_error_messages() ) . '</p></div>' ),
273
  array( 'type' => 'sectionend', 'id' => 'deutsche_post_api_error' )
274
  ) );
275
  }
497
  public function get_available_label_services( $shipment ) {
498
  $services = array();
499
 
500
+ if ( $im = Package::get_internetmarke_api()->get_product_list() ) {
501
+ $services = array_keys( $im->get_additional_services() );
502
  }
503
 
504
  return $services;
packages/woocommerce-germanized-dhl/woocommerce-germanized-dhl.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The Germanized DHL integration, installed as a feature plugin for development and testing purposes.
6
  * Author: vendidero
7
  * Author URI: https://vendidero.de
8
- * Version: 1.6.3
9
  * Requires PHP: 5.6
10
  * License: GPLv3
11
  *
5
  * Description: The Germanized DHL integration, installed as a feature plugin for development and testing purposes.
6
  * Author: vendidero
7
  * Author URI: https://vendidero.de
8
+ * Version: 1.6.4
9
  * Requires PHP: 5.6
10
  * License: GPLv3
11
  *
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 5.4
5
  Tested up to: 5.8
6
  WC requires at least: 3.9
7
  WC tested up to: 5.9
8
- Stable tag: 3.7.1
9
  Requires PHP: 5.6
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -198,6 +198,10 @@ Bug reports may be filed via our [GitHub repository](https://github.com/vendider
198
  6. Edit pdf documents (Pro)
199
 
200
  == Changelog ==
 
 
 
 
201
  = 3.7.1 =
202
  * Fix: Same as parent delivery time option for variations
203
 
5
  Tested up to: 5.8
6
  WC requires at least: 3.9
7
  WC tested up to: 5.9
8
+ Stable tag: 3.7.2
9
  Requires PHP: 5.6
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
198
  6. Edit pdf documents (Pro)
199
 
200
  == Changelog ==
201
+ = 3.7.2 =
202
+ * Improvement: Added WP CLI command (wp wc_gzd update) to run DB updates via CLI
203
+ * Fix: Do not use empty price_html (e.g. variable product with same prices) as indicator to hide shopmarks
204
+
205
  = 3.7.1 =
206
  * Fix: Same as parent delivery time option for variations
207
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit53b88cebafdfad099f4410967355311d::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit9784a2d0e6a2b6237a8ce95fca74d8cc::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit53b88cebafdfad099f4410967355311d
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit53b88cebafdfad099f4410967355311d
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit53b88cebafdfad099f4410967355311d', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit53b88cebafdfad099f4410967355311d', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit53b88cebafdfad099f4410967355311d::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit53b88cebafdfad099f4410967355311d
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit53b88cebafdfad099f4410967355311d::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire53b88cebafdfad099f4410967355311d($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire53b88cebafdfad099f4410967355311d($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit9784a2d0e6a2b6237a8ce95fca74d8cc
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit9784a2d0e6a2b6237a8ce95fca74d8cc', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit9784a2d0e6a2b6237a8ce95fca74d8cc', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit9784a2d0e6a2b6237a8ce95fca74d8cc::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit9784a2d0e6a2b6237a8ce95fca74d8cc::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire9784a2d0e6a2b6237a8ce95fca74d8cc($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire9784a2d0e6a2b6237a8ce95fca74d8cc($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit53b88cebafdfad099f4410967355311d
8
  {
9
  public static $files = array (
10
  '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
@@ -484,9 +484,9 @@ class ComposerStaticInit53b88cebafdfad099f4410967355311d
484
  public static function getInitializer(ClassLoader $loader)
485
  {
486
  return \Closure::bind(function () use ($loader) {
487
- $loader->prefixLengthsPsr4 = ComposerStaticInit53b88cebafdfad099f4410967355311d::$prefixLengthsPsr4;
488
- $loader->prefixDirsPsr4 = ComposerStaticInit53b88cebafdfad099f4410967355311d::$prefixDirsPsr4;
489
- $loader->classMap = ComposerStaticInit53b88cebafdfad099f4410967355311d::$classMap;
490
 
491
  }, null, ClassLoader::class);
492
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit9784a2d0e6a2b6237a8ce95fca74d8cc
8
  {
9
  public static $files = array (
10
  '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
484
  public static function getInitializer(ClassLoader $loader)
485
  {
486
  return \Closure::bind(function () use ($loader) {
487
+ $loader->prefixLengthsPsr4 = ComposerStaticInit9784a2d0e6a2b6237a8ce95fca74d8cc::$prefixLengthsPsr4;
488
+ $loader->prefixDirsPsr4 = ComposerStaticInit9784a2d0e6a2b6237a8ce95fca74d8cc::$prefixDirsPsr4;
489
+ $loader->classMap = ComposerStaticInit9784a2d0e6a2b6237a8ce95fca74d8cc::$classMap;
490
 
491
  }, null, ClassLoader::class);
492
  }
vendor/composer/installed.json CHANGED
@@ -612,17 +612,17 @@
612
  },
613
  {
614
  "name": "vendidero/woocommerce-germanized-dhl",
615
- "version": "v1.6.3",
616
- "version_normalized": "1.6.3.0",
617
  "source": {
618
  "type": "git",
619
  "url": "https://github.com/vendidero/woocommerce-germanized-dhl.git",
620
- "reference": "5ce5265505146c294558977c02a915ccf5df717a"
621
  },
622
  "dist": {
623
  "type": "zip",
624
- "url": "https://api.github.com/repos/vendidero/woocommerce-germanized-dhl/zipball/5ce5265505146c294558977c02a915ccf5df717a",
625
- "reference": "5ce5265505146c294558977c02a915ccf5df717a",
626
  "shasum": ""
627
  },
628
  "require": {
@@ -635,7 +635,7 @@
635
  "require-dev": {
636
  "phpunit/phpunit": "7.5.14"
637
  },
638
- "time": "2021-11-11T12:56:00+00:00",
639
  "type": "wordpress-plugin",
640
  "installation-source": "dist",
641
  "autoload": {
@@ -659,7 +659,7 @@
659
  "description": "The Germanized DHL implementation.",
660
  "homepage": "https://github.com/vendidero/woocommerce-germanized-dhl",
661
  "support": {
662
- "source": "https://github.com/vendidero/woocommerce-germanized-dhl/tree/v1.6.3",
663
  "issues": "https://github.com/vendidero/woocommerce-germanized-dhl/issues"
664
  },
665
  "install-path": "../../packages/woocommerce-germanized-dhl"
612
  },
613
  {
614
  "name": "vendidero/woocommerce-germanized-dhl",
615
+ "version": "v1.6.4",
616
+ "version_normalized": "1.6.4.0",
617
  "source": {
618
  "type": "git",
619
  "url": "https://github.com/vendidero/woocommerce-germanized-dhl.git",
620
+ "reference": "653f9daaeaf507b2da3554ebff2649dcdb91650b"
621
  },
622
  "dist": {
623
  "type": "zip",
624
+ "url": "https://api.github.com/repos/vendidero/woocommerce-germanized-dhl/zipball/653f9daaeaf507b2da3554ebff2649dcdb91650b",
625
+ "reference": "653f9daaeaf507b2da3554ebff2649dcdb91650b",
626
  "shasum": ""
627
  },
628
  "require": {
635
  "require-dev": {
636
  "phpunit/phpunit": "7.5.14"
637
  },
638
+ "time": "2021-11-17T10:00:39+00:00",
639
  "type": "wordpress-plugin",
640
  "installation-source": "dist",
641
  "autoload": {
659
  "description": "The Germanized DHL implementation.",
660
  "homepage": "https://github.com/vendidero/woocommerce-germanized-dhl",
661
  "support": {
662
+ "source": "https://github.com/vendidero/woocommerce-germanized-dhl/tree/v1.6.4",
663
  "issues": "https://github.com/vendidero/woocommerce-germanized-dhl/issues"
664
  },
665
  "install-path": "../../packages/woocommerce-germanized-dhl"
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '006717a1576903fbde2073311146d78a26a7d3b2',
9
  'name' => 'vendidero/woocommerce-germanized',
10
  'dev' => false,
11
  ),
@@ -112,16 +112,16 @@
112
  'type' => 'wordpress-plugin',
113
  'install_path' => __DIR__ . '/../../',
114
  'aliases' => array(),
115
- 'reference' => '006717a1576903fbde2073311146d78a26a7d3b2',
116
  'dev_requirement' => false,
117
  ),
118
  'vendidero/woocommerce-germanized-dhl' => array(
119
- 'pretty_version' => 'v1.6.3',
120
- 'version' => '1.6.3.0',
121
  'type' => 'wordpress-plugin',
122
  'install_path' => __DIR__ . '/../../packages/woocommerce-germanized-dhl',
123
  'aliases' => array(),
124
- 'reference' => '5ce5265505146c294558977c02a915ccf5df717a',
125
  'dev_requirement' => false,
126
  ),
127
  'vendidero/woocommerce-germanized-shipments' => array(
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '6e21798ccef95a4c1fe5ba54bbf117f7b8b7b000',
9
  'name' => 'vendidero/woocommerce-germanized',
10
  'dev' => false,
11
  ),
112
  'type' => 'wordpress-plugin',
113
  'install_path' => __DIR__ . '/../../',
114
  'aliases' => array(),
115
+ 'reference' => '6e21798ccef95a4c1fe5ba54bbf117f7b8b7b000',
116
  'dev_requirement' => false,
117
  ),
118
  'vendidero/woocommerce-germanized-dhl' => array(
119
+ 'pretty_version' => 'v1.6.4',
120
+ 'version' => '1.6.4.0',
121
  'type' => 'wordpress-plugin',
122
  'install_path' => __DIR__ . '/../../packages/woocommerce-germanized-dhl',
123
  'aliases' => array(),
124
+ 'reference' => '653f9daaeaf507b2da3554ebff2649dcdb91650b',
125
  'dev_requirement' => false,
126
  ),
127
  'vendidero/woocommerce-germanized-shipments' => array(
vendor/composer/jetpack_autoload_classmap.php CHANGED
@@ -607,159 +607,159 @@ return array(
607
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Packing/ShipmentItem.php'
608
  ),
609
  'Vendidero\\Germanized\\DHL\\ShippingProvider\\DeutschePost' => array(
610
- 'version' => '1.6.3.0',
611
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/ShippingProvider/DeutschePost.php'
612
  ),
613
  'Vendidero\\Germanized\\DHL\\ShippingProvider\\ShippingMethod' => array(
614
- 'version' => '1.6.3.0',
615
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/ShippingProvider/ShippingMethod.php'
616
  ),
617
  'Vendidero\\Germanized\\DHL\\ShippingProvider\\DHL' => array(
618
- 'version' => '1.6.3.0',
619
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/ShippingProvider/DHL.php'
620
  ),
621
  'Vendidero\\Germanized\\DHL\\Install' => array(
622
- 'version' => '1.6.3.0',
623
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Install.php'
624
  ),
625
  'Vendidero\\Germanized\\DHL\\Package' => array(
626
- 'version' => '1.6.3.0',
627
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Package.php'
628
  ),
629
  'Vendidero\\Germanized\\DHL\\Product' => array(
630
- 'version' => '1.6.3.0',
631
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Product.php'
632
  ),
633
  'Vendidero\\Germanized\\DHL\\Order' => array(
634
- 'version' => '1.6.3.0',
635
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Order.php'
636
  ),
637
  'Vendidero\\Germanized\\DHL\\Ajax' => array(
638
- 'version' => '1.6.3.0',
639
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Ajax.php'
640
  ),
641
  'Vendidero\\Germanized\\DHL\\ParcelServices' => array(
642
- 'version' => '1.6.3.0',
643
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/ParcelServices.php'
644
  ),
645
  'Vendidero\\Germanized\\DHL\\Admin\\Importer\\Internetmarke' => array(
646
- 'version' => '1.6.3.0',
647
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Admin/Importer/Internetmarke.php'
648
  ),
649
  'Vendidero\\Germanized\\DHL\\Admin\\Importer\\DHL' => array(
650
- 'version' => '1.6.3.0',
651
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Admin/Importer/DHL.php'
652
  ),
653
  'Vendidero\\Germanized\\DHL\\Admin\\Status' => array(
654
- 'version' => '1.6.3.0',
655
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Admin/Status.php'
656
  ),
657
  'Vendidero\\Germanized\\DHL\\Admin\\Admin' => array(
658
- 'version' => '1.6.3.0',
659
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Admin/Admin.php'
660
  ),
661
  'Vendidero\\Germanized\\DHL\\Label\\DHLInlayReturn' => array(
662
- 'version' => '1.6.3.0',
663
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/DHLInlayReturn.php'
664
  ),
665
  'Vendidero\\Germanized\\DHL\\Label\\Label' => array(
666
- 'version' => '1.6.3.0',
667
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/Label.php'
668
  ),
669
  'Vendidero\\Germanized\\DHL\\Label\\DHLReturn' => array(
670
- 'version' => '1.6.3.0',
671
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/DHLReturn.php'
672
  ),
673
  'Vendidero\\Germanized\\DHL\\Label\\ReturnLabel' => array(
674
- 'version' => '1.6.3.0',
675
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/ReturnLabel.php'
676
  ),
677
  'Vendidero\\Germanized\\DHL\\Label\\DeutschePost' => array(
678
- 'version' => '1.6.3.0',
679
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/DeutschePost.php'
680
  ),
681
  'Vendidero\\Germanized\\DHL\\Label\\DHL' => array(
682
- 'version' => '1.6.3.0',
683
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/DHL.php'
684
  ),
685
  'Vendidero\\Germanized\\DHL\\Label\\DeutschePostReturn' => array(
686
- 'version' => '1.6.3.0',
687
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/DeutschePostReturn.php'
688
  ),
689
  'Vendidero\\Germanized\\DHL\\Legacy\\LabelQuery' => array(
690
- 'version' => '1.6.3.0',
691
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Legacy/LabelQuery.php'
692
  ),
693
  'Vendidero\\Germanized\\DHL\\Legacy\\DataStores\\Label' => array(
694
- 'version' => '1.6.3.0',
695
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Legacy/DataStores/Label.php'
696
  ),
697
  'Vendidero\\Germanized\\DHL\\Legacy\\DownloadHandler' => array(
698
- 'version' => '1.6.3.0',
699
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Legacy/DownloadHandler.php'
700
  ),
701
  'Vendidero\\Germanized\\DHL\\Legacy\\LabelFactory' => array(
702
- 'version' => '1.6.3.0',
703
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Legacy/LabelFactory.php'
704
  ),
705
  'Vendidero\\Germanized\\DHL\\ParcelLocator' => array(
706
- 'version' => '1.6.3.0',
707
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/ParcelLocator.php'
708
  ),
709
  'Vendidero\\Germanized\\DHL\\Api\\ReturnRest' => array(
710
- 'version' => '1.6.3.0',
711
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ReturnRest.php'
712
  ),
713
  'Vendidero\\Germanized\\DHL\\Api\\Paket' => array(
714
- 'version' => '1.6.3.0',
715
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/Paket.php'
716
  ),
717
  'Vendidero\\Germanized\\DHL\\Api\\LabelSoap' => array(
718
- 'version' => '1.6.3.0',
719
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/LabelSoap.php'
720
  ),
721
  'Vendidero\\Germanized\\DHL\\Api\\ImProductList' => array(
722
- 'version' => '1.6.3.0',
723
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ImProductList.php'
724
  ),
725
  'Vendidero\\Germanized\\DHL\\Api\\AuthSoap' => array(
726
- 'version' => '1.6.3.0',
727
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/AuthSoap.php'
728
  ),
729
  'Vendidero\\Germanized\\DHL\\Api\\Internetmarke' => array(
730
- 'version' => '1.6.3.0',
731
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/Internetmarke.php'
732
  ),
733
  'Vendidero\\Germanized\\DHL\\Api\\ParcelRest' => array(
734
- 'version' => '1.6.3.0',
735
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ParcelRest.php'
736
  ),
737
  'Vendidero\\Germanized\\DHL\\Api\\ImPartnerInformation' => array(
738
- 'version' => '1.6.3.0',
739
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ImPartnerInformation.php'
740
  ),
741
  'Vendidero\\Germanized\\DHL\\Api\\Soap' => array(
742
- 'version' => '1.6.3.0',
743
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/Soap.php'
744
  ),
745
  'Vendidero\\Germanized\\DHL\\Api\\Rest' => array(
746
- 'version' => '1.6.3.0',
747
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/Rest.php'
748
  ),
749
  'Vendidero\\Germanized\\DHL\\Api\\ImProductsSoap' => array(
750
- 'version' => '1.6.3.0',
751
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ImProductsSoap.php'
752
  ),
753
  'Vendidero\\Germanized\\DHL\\Api\\FinderSoap' => array(
754
- 'version' => '1.6.3.0',
755
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/FinderSoap.php'
756
  ),
757
  'Vendidero\\Germanized\\DHL\\Api\\ImRefundSoap' => array(
758
- 'version' => '1.6.3.0',
759
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ImRefundSoap.php'
760
  ),
761
  'Vendidero\\Germanized\\DHL\\Api\\ImWarenpostIntRest' => array(
762
- 'version' => '1.6.3.0',
763
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ImWarenpostIntRest.php'
764
  ),
765
  'Vendidero\\Germanized\\Shopmark' => array(
607
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Packing/ShipmentItem.php'
608
  ),
609
  'Vendidero\\Germanized\\DHL\\ShippingProvider\\DeutschePost' => array(
610
+ 'version' => '1.6.4.0',
611
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/ShippingProvider/DeutschePost.php'
612
  ),
613
  'Vendidero\\Germanized\\DHL\\ShippingProvider\\ShippingMethod' => array(
614
+ 'version' => '1.6.4.0',
615
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/ShippingProvider/ShippingMethod.php'
616
  ),
617
  'Vendidero\\Germanized\\DHL\\ShippingProvider\\DHL' => array(
618
+ 'version' => '1.6.4.0',
619
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/ShippingProvider/DHL.php'
620
  ),
621
  'Vendidero\\Germanized\\DHL\\Install' => array(
622
+ 'version' => '1.6.4.0',
623
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Install.php'
624
  ),
625
  'Vendidero\\Germanized\\DHL\\Package' => array(
626
+ 'version' => '1.6.4.0',
627
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Package.php'
628
  ),
629
  'Vendidero\\Germanized\\DHL\\Product' => array(
630
+ 'version' => '1.6.4.0',
631
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Product.php'
632
  ),
633
  'Vendidero\\Germanized\\DHL\\Order' => array(
634
+ 'version' => '1.6.4.0',
635
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Order.php'
636
  ),
637
  'Vendidero\\Germanized\\DHL\\Ajax' => array(
638
+ 'version' => '1.6.4.0',
639
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Ajax.php'
640
  ),
641
  'Vendidero\\Germanized\\DHL\\ParcelServices' => array(
642
+ 'version' => '1.6.4.0',
643
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/ParcelServices.php'
644
  ),
645
  'Vendidero\\Germanized\\DHL\\Admin\\Importer\\Internetmarke' => array(
646
+ 'version' => '1.6.4.0',
647
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Admin/Importer/Internetmarke.php'
648
  ),
649
  'Vendidero\\Germanized\\DHL\\Admin\\Importer\\DHL' => array(
650
+ 'version' => '1.6.4.0',
651
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Admin/Importer/DHL.php'
652
  ),
653
  'Vendidero\\Germanized\\DHL\\Admin\\Status' => array(
654
+ 'version' => '1.6.4.0',
655
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Admin/Status.php'
656
  ),
657
  'Vendidero\\Germanized\\DHL\\Admin\\Admin' => array(
658
+ 'version' => '1.6.4.0',
659
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Admin/Admin.php'
660
  ),
661
  'Vendidero\\Germanized\\DHL\\Label\\DHLInlayReturn' => array(
662
+ 'version' => '1.6.4.0',
663
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/DHLInlayReturn.php'
664
  ),
665
  'Vendidero\\Germanized\\DHL\\Label\\Label' => array(
666
+ 'version' => '1.6.4.0',
667
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/Label.php'
668
  ),
669
  'Vendidero\\Germanized\\DHL\\Label\\DHLReturn' => array(
670
+ 'version' => '1.6.4.0',
671
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/DHLReturn.php'
672
  ),
673
  'Vendidero\\Germanized\\DHL\\Label\\ReturnLabel' => array(
674
+ 'version' => '1.6.4.0',
675
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/ReturnLabel.php'
676
  ),
677
  'Vendidero\\Germanized\\DHL\\Label\\DeutschePost' => array(
678
+ 'version' => '1.6.4.0',
679
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/DeutschePost.php'
680
  ),
681
  'Vendidero\\Germanized\\DHL\\Label\\DHL' => array(
682
+ 'version' => '1.6.4.0',
683
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/DHL.php'
684
  ),
685
  'Vendidero\\Germanized\\DHL\\Label\\DeutschePostReturn' => array(
686
+ 'version' => '1.6.4.0',
687
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Label/DeutschePostReturn.php'
688
  ),
689
  'Vendidero\\Germanized\\DHL\\Legacy\\LabelQuery' => array(
690
+ 'version' => '1.6.4.0',
691
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Legacy/LabelQuery.php'
692
  ),
693
  'Vendidero\\Germanized\\DHL\\Legacy\\DataStores\\Label' => array(
694
+ 'version' => '1.6.4.0',
695
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Legacy/DataStores/Label.php'
696
  ),
697
  'Vendidero\\Germanized\\DHL\\Legacy\\DownloadHandler' => array(
698
+ 'version' => '1.6.4.0',
699
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Legacy/DownloadHandler.php'
700
  ),
701
  'Vendidero\\Germanized\\DHL\\Legacy\\LabelFactory' => array(
702
+ 'version' => '1.6.4.0',
703
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Legacy/LabelFactory.php'
704
  ),
705
  'Vendidero\\Germanized\\DHL\\ParcelLocator' => array(
706
+ 'version' => '1.6.4.0',
707
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/ParcelLocator.php'
708
  ),
709
  'Vendidero\\Germanized\\DHL\\Api\\ReturnRest' => array(
710
+ 'version' => '1.6.4.0',
711
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ReturnRest.php'
712
  ),
713
  'Vendidero\\Germanized\\DHL\\Api\\Paket' => array(
714
+ 'version' => '1.6.4.0',
715
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/Paket.php'
716
  ),
717
  'Vendidero\\Germanized\\DHL\\Api\\LabelSoap' => array(
718
+ 'version' => '1.6.4.0',
719
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/LabelSoap.php'
720
  ),
721
  'Vendidero\\Germanized\\DHL\\Api\\ImProductList' => array(
722
+ 'version' => '1.6.4.0',
723
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ImProductList.php'
724
  ),
725
  'Vendidero\\Germanized\\DHL\\Api\\AuthSoap' => array(
726
+ 'version' => '1.6.4.0',
727
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/AuthSoap.php'
728
  ),
729
  'Vendidero\\Germanized\\DHL\\Api\\Internetmarke' => array(
730
+ 'version' => '1.6.4.0',
731
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/Internetmarke.php'
732
  ),
733
  'Vendidero\\Germanized\\DHL\\Api\\ParcelRest' => array(
734
+ 'version' => '1.6.4.0',
735
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ParcelRest.php'
736
  ),
737
  'Vendidero\\Germanized\\DHL\\Api\\ImPartnerInformation' => array(
738
+ 'version' => '1.6.4.0',
739
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ImPartnerInformation.php'
740
  ),
741
  'Vendidero\\Germanized\\DHL\\Api\\Soap' => array(
742
+ 'version' => '1.6.4.0',
743
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/Soap.php'
744
  ),
745
  'Vendidero\\Germanized\\DHL\\Api\\Rest' => array(
746
+ 'version' => '1.6.4.0',
747
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/Rest.php'
748
  ),
749
  'Vendidero\\Germanized\\DHL\\Api\\ImProductsSoap' => array(
750
+ 'version' => '1.6.4.0',
751
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ImProductsSoap.php'
752
  ),
753
  'Vendidero\\Germanized\\DHL\\Api\\FinderSoap' => array(
754
+ 'version' => '1.6.4.0',
755
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/FinderSoap.php'
756
  ),
757
  'Vendidero\\Germanized\\DHL\\Api\\ImRefundSoap' => array(
758
+ 'version' => '1.6.4.0',
759
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ImRefundSoap.php'
760
  ),
761
  'Vendidero\\Germanized\\DHL\\Api\\ImWarenpostIntRest' => array(
762
+ 'version' => '1.6.4.0',
763
  'path' => $baseDir . '/packages/woocommerce-germanized-dhl/src/Api/ImWarenpostIntRest.php'
764
  ),
765
  'Vendidero\\Germanized\\Shopmark' => array(
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-container.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-hook-manager.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-latest-autoloader-guard.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-manifest-reader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-path-processor.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-php-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugin-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugins-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-shutdown-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-loader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-selector.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp9784a2d0e6a2b6237a8ce95fca74d8cc;
9
 
10
  // phpcs:ignore
11
 
woocommerce-germanized.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Germanized for WooCommerce
4
  * Plugin URI: https://www.vendidero.de/woocommerce-germanized
5
  * Description: Germanized for WooCommerce extends WooCommerce to become a legally compliant store in the german market.
6
- * Version: 3.7.1
7
  * Author: vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 5.4
@@ -69,7 +69,7 @@ if ( ! class_exists( 'WooCommerce_Germanized' ) ) :
69
  *
70
  * @var string
71
  */
72
- public $version = '3.7.1';
73
 
74
  /**
75
  * @var WooCommerce_Germanized $instance of the plugin
@@ -592,6 +592,10 @@ if ( ! class_exists( 'WooCommerce_Germanized' ) ) :
592
  // Product Attribute
593
  include_once WC_GERMANIZED_ABSPATH . 'includes/class-wc-gzd-product-attribute.php';
594
  include_once WC_GERMANIZED_ABSPATH . 'includes/class-wc-gzd-product-attribute-helper.php';
 
 
 
 
595
  }
596
 
597
  public function is_frontend() {
3
  * Plugin Name: Germanized for WooCommerce
4
  * Plugin URI: https://www.vendidero.de/woocommerce-germanized
5
  * Description: Germanized for WooCommerce extends WooCommerce to become a legally compliant store in the german market.
6
+ * Version: 3.7.2
7
  * Author: vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 5.4
69
  *
70
  * @var string
71
  */
72
+ public $version = '3.7.2';
73
 
74
  /**
75
  * @var WooCommerce_Germanized $instance of the plugin
592
  // Product Attribute
593
  include_once WC_GERMANIZED_ABSPATH . 'includes/class-wc-gzd-product-attribute.php';
594
  include_once WC_GERMANIZED_ABSPATH . 'includes/class-wc-gzd-product-attribute-helper.php';
595
+
596
+ if ( defined( 'WP_CLI' ) && WP_CLI ) {
597
+ include_once WC_GERMANIZED_ABSPATH . 'includes/class-wc-gzd-cli.php';
598
+ }
599
  }
600
 
601
  public function is_frontend() {