Categorygithub.com/ranjiaming/woocommerce_golang_sdk
modulepackage
1.0.0
Repository: https://github.com/ranjiaming/woocommerce_golang_sdk.git
Documentation: pkg.go.dev

# README

woocommerce

wooCommerce Go REST API Library

WooCommerce API Doc

fork by https://github.com/chenyangguang/woocommerce

Install

 go get github.com/ranjiaming/woocommerce_golang_sdk

updateNote

  1. 订单字段DiscountsTotal从woocommerce返回两种数据类型,分别是:int和string,这里将字段设置为json.RawMessage类型。(2023-03-07)

# Functions

No description provided by the author
NewClient Returns a new WooCommerce API client with an already authenticated shopname and token.
ShopBaseURL return a shop's base https base url.
WithLog log config option.
WithRetry Timeout config option.
WithVersion version config option.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeleteOption is the only option for delete order record.
No description provided by the author
It prints warnings and errors to `os.Stderr` and other messages to `os.Stdout`.
No description provided by the author
No description provided by the author
ListOptions represent ist options that can be used for most collections of entities.
No description provided by the author
Order represents a WooCommerce Order https://woocommerce.github.io/woocommerce-rest-api-docs/#order-properties.
OrderBatchOption setting operate for order in batch way https://woocommerce.github.io/woocommerce-rest-api-docs/#batch-update-orders.
OrderBatchResource conservation the response struct for OrderBatchOption request.
OrderListOption list all thee order list option request params refrence url: https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-orders parameters: context string Scope under which the request is made; determines fields present in response.
OrderNote represent a WooCommerce Order note https://woocommerce.github.io/woocommerce-rest-api-docs/#order-notes.
No description provided by the author
OrderRefund represent a WooCommerce Order Refund https://woocommerce.github.io/woocommerce-rest-api-docs/#order-refund-properties.
OrderServiceOp handles communication with the order related methods of WooCommerce'API.
Pagination of results.
PaymentGateway represents a woocommerce payment_gateway https://woocommerce.github.io/woocommerce-rest-api-docs/#payment-gateway-properties.
PaymentGatewayServiceOp handles communication with the payment gateway related methods of WooCommerce restful api.
PaymentSetting represents a WooCommerce payment-gateway https://woocommerce.github.io/woocommerce-rest-api-docs/#payment-gateway-settings-properties id string A unique identifier for the setting.READ-ONLY label string A human readable label for the setting used in interfaces.READ-ONLY description string A human readable description for the setting used in interfaces.READ-ONLY type string Type of setting.
Product represent WooCommerce Product https://woocommerce.github.io/woocommerce-rest-api-docs/#product-properties.
No description provided by the author
An error specific to a rate-limiting response.
No description provided by the author
No description provided by the author
ResponseDecodingError occurs when the response body from WooCommerce could not be parsed.
ResponseError is A general response error that follows a similar layout to WooCommerce's response errors, i.e.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Webhook represent a wooCommerce webhook's All properties columns.
OrderBatchOption setting operate for order in batch way.
WebhookBatchResource conservation the response struct for WebhookBatchOption's request.
WebhookDeleteOption config webhook's Delete operation option.
WebhookListOption config webhook's List method request option.
WebhookServiceOp handles communication with the webhooks related methods of WooCommerce restful api.

# Interfaces

No description provided by the author
OrderNoteService operate Woo-Commerce Order note, eg: create, view, and delete individual order notes.
OrderRefundService allows you to create, view, and delete individual WooCommerce Order refunds.
OrderService is an interface for interfacing with the orders endpoints of woocommerce API https://woocommerce.github.io/woocommerce-rest-api-docs/#orders.
PaymentGatewayService is an interface for interfacing with the payment-gateways endpoints of woocommerce API https://woocommerce.github.io/woocommerce-rest-api-docs/#payment-gateways.
ProductService allows you to create, view, update, and delete individual, or a batch, of products https://woocommerce.github.io/woocommerce-rest-api-docs/#products.
WebhookService is an interface for interfacing with the webhook endpoints of the WooCommerce webhooks restful API https://woocommerce.github.io/woocommerce-rest-api-docs/#webhooks.

# Type aliases

No description provided by the author