Méthode |
Description |
|
__construct ( WC_Connect_Service_Schemas_Store $service_schemas_store, WC_Connect_API_Client $api_client, WC_Connect_Logger $logger ) |
|
|
get_account_settings ( ) : array |
Gets connect account settings (e.g. payment method) |
|
get_enabled_services ( ) : array |
Returns the service type and id for each enabled Connect for WooCommerce service |
|
get_origin_address ( ) |
|
|
get_package_lookup_for_service ( $service_id ) |
|
|
get_packages ( ) : array |
Returns a global list of packages |
|
get_predefined_packages ( ) : array |
Returns a global list of enabled predefined packages for all services |
|
get_predefined_packages_for_service ( $service_id ) : array |
Returns a list of enabled predefined packages for the specified service |
|
get_preferred_paper_size ( ) |
|
|
get_selected_payment_method_id ( ) |
|
|
get_service_failure_timestamp_key ( string $service_id, integer $service_instance = false ) : string |
Based on the service id and optional instance, generates the options key that
should be used to get/set the service's last failure timestamp |
|
get_service_settings ( string $service_id, integer $service_instance = false ) : object | array |
Given a service's id and optional instance, returns the settings for that
service or an empty array |
|
get_store_options ( ) : object | array |
Gets woocommerce store options that are useful for all connect services |
|
set_preferred_paper_size ( $size ) |
|
|
set_selected_payment_method_id ( $new_payment_method_id ) |
|
|
update_account_settings ( array $settings ) : true |
Updates connect account settings (e.g. payment method) |
|
update_label_order_meta_data ( $order_id, $new_label_data ) |
|
|
update_origin_address ( $address ) |
|
|
update_packages ( $packages ) |
Updates the global list of packages |
|
update_predefined_packages ( $packages ) |
Updates the global list of enabled predefined packages for all services |
|
validate_and_possibly_update_settings ( $settings, $id, $instance = false ) : boolean | WP_Error |
Given id and possibly instance, validates the settings and, if they validate, saves them to options |
|