Documentation
¶
Index ¶
- type Billing
- type Continent
- type ContinentCountry
- type Country
- type Coupon
- type CouponLine
- type CouponTotal
- type Currency
- type Customer
- type CustomerDownload
- type CustomerDownloadFile
- type CustomerTotal
- type Data
- type FeeLine
- type LineItem
- type Meta
- type Order
- type OrderNote
- type OrderRefund
- type OrderRefundLineItem
- type OrderTotal
- type PaymentGateway
- type PaymentGatewaySetting
- type Product
- type ProductAttribute
- type ProductAttributeItem
- type ProductAttributeTerm
- type ProductCategory
- type ProductDefaultAttribute
- type ProductDimension
- type ProductDownload
- type ProductImage
- type ProductReview
- type ProductShippingClass
- type ProductTag
- type ProductTotal
- type ProductVariation
- type ProductVariationAttribute
- type Refund
- type Report
- type ReviewTotal
- type SaleReport
- type SettingGroup
- type SettingOption
- type Shipping
- type ShippingLine
- type ShippingMethod
- type ShippingZone
- type ShippingZoneLocation
- type ShippingZoneMethod
- type ShippingZoneMethodSetting
- type State
- type SystemStatus
- type SystemStatusDatabase
- type SystemStatusEnvironment
- type SystemStatusSecurity
- type SystemStatusSetting
- type SystemStatusTheme
- type SystemStatusTool
- type Tax
- type TaxClass
- type TaxLine
- type TaxRate
- type TopSellerReport
- type TotalReport
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Billing ¶
type Billing struct {
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Company string `json:"company,omitempty"`
Address1 string `json:"address_1,omitempty"`
Address2 string `json:"address_2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Postcode string `json:"postcode,omitempty"`
Country string `json:"country,omitempty"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
}
Billing order billing properties
type Continent ¶
type Continent struct {
Code string `json:"code"`
Name string `json:"name"`
Countries []ContinentCountry `json:"countries"` // Only code, name, []state?
}
Continent continent properties
type ContinentCountry ¶
type ContinentCountry struct {
Code string `json:"code"`
CurrencyCode string `json:"currency_code"`
CurrencyPos string `json:"currency_pos"`
DecimalSep string `json:"decimal_sep"`
DimensionUnit string `json:"dimension_unit"`
Name string `json:"name"`
NumDecimals int `json:"num_decimals"`
States []State `json:"states"`
ThousandSep string `json:"thousand_sep"`
WeightUnit string `json:"weight_unit"`
}
ContinentCountry continent country properties
type Country ¶
type Country struct {
Code string `json:"code"`
Name string `json:"name"`
States []State `json:"states"`
}
Country country properties
type Coupon ¶
type Coupon struct {
ID int `json:"id"`
Code string `json:"code"`
Amount float64 `json:"amount"`
DateCreated string `json:"date_created"`
DateCreatedGMT string `json:"date_created_gmt"`
DateModified string `json:"date_modified"`
DateModifiedGMT string `json:"date_modified_gmt"`
DiscountType string `json:"discount_type"`
Description string `json:"description"`
DateExpires string `json:"date_expires"`
DateExpiresGMT string `json:"date_expires_gmt"`
UsageCount int `json:"usage_count"`
IndividualUse bool `json:"individual_use"`
ProductIDs []int `json:"product_ids"`
ExcludedProductIDs []int `json:"excluded_product_ids"`
UsageLimit int `json:"usage_limit"`
UsageLimitPerUser int `json:"usage_limit_per_user"`
LimitUsageToXItems int `json:"limit_usage_to_x_items"`
FreeShipping bool `json:"free_shipping"`
ProductCategories []int `json:"product_categories"`
ExcludedProductCategories []int `json:"excluded_product_categories"`
ExcludeSaleItems bool `json:"exclude_sale_items"`
MinimumAmount float64 `json:"minimum_amount"`
MaximumAmount float64 `json:"maximum_amount"`
EmailRestrictions []string `json:"email_restrictions"`
UsedBy []int `json:"used_by"`
MetaData []Meta `json:"meta_data"`
}
Coupon coupon properties
type CouponLine ¶
type Currency ¶
type Currency struct {
Code string `json:"code"`
Name string `json:"name"`
Symbol string `json:"symbol"`
}
Currency currency properties
type Customer ¶
type Customer struct {
ID int `json:"id"`
DateCreated string `json:"date_created"`
DateCreatedGMT string `json:"date_created_gmt"`
DateModified string `json:"date_modified"`
DateModifiedGMT string `json:"date_modified_gmt"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Role string `json:"role"`
Username string `json:"username"`
Password string `json:"password"`
Billing Billing `json:"billing"`
Shipping Shipping `json:"shipping"`
IsPayingCustomer bool `json:"is_paying_customer"`
AvatarURL string `json:"avatar_url"`
MetaData []Meta `json:"meta_data"`
}
Customer customer properties
type CustomerDownload ¶
type CustomerDownload struct {
DownloadId string `json:"download_id"`
DownloadURL string `json:"download_url"`
ProductId string `json:"product_id"`
ProductName string `json:"product_name"`
DownloadName string `json:"download_name"`
OrderId int `json:"order_id"`
OrderKey string `json:"order_key"`
DownloadRemaining string `json:"download_remaining"`
AccessExpires string `json:"access_expires"`
AccessExpiresGMT string `json:"access_expires_gmt"`
File CustomerDownloadFile `json:"file"`
}
CustomerDownload customer download properties
type CustomerDownloadFile ¶
type LineItem ¶
type LineItem struct {
ID int `json:"id"`
Name string `json:"name"`
ProductId int `json:"product_id"`
VariationId int `json:"variation_id"`
Quantity int `json:"quantity"`
TaxClass string `json:"tax_class"`
SubTotal float64 `json:"subtotal"`
SubTotalTax float64 `json:"subtotal_tax"`
Total float64 `json:"total"`
TotalTax float64 `json:"total_tax"`
Taxes []Tax `json:"taxes"`
MetaData []Meta `json:"meta_data"`
SKU string `json:"sku"`
Price float64 `json:"price"`
ParentName string `json:"parent_name"`
}
type Order ¶
type Order struct {
ID int `json:"id"`
ParentId int `json:"parent_id"`
Number string `json:"number"`
OrderKey string `json:"order_key"`
CreatedVia string `json:"created_via"`
Version string `json:"version"`
Status string `json:"status"`
Currency string `json:"currency"`
CurrencySymbol string `json:"currency_symbol"`
DateCreated string `json:"date_created"`
DateCreatedGMT string `json:"date_created_gmt"`
DateModified string `json:"date_modified"`
DateModifiedGMT string `json:"date_modified_gmt"`
DiscountTotal float64 `json:"discount_total"`
DiscountTax float64 `json:"discount_tax"`
ShippingTotal float64 `json:"shipping_total"`
ShippingTax float64 `json:"shipping_tax"`
CartTax float64 `json:"cart_tax"`
Total float64 `json:"total"`
TotalTax float64 `json:"total_tax"`
PricesIncludeTax bool `json:"prices_include_tax"`
CustomerId int `json:"customer_id"`
CustomerIpAddress string `json:"customer_ip_address"`
CustomerUserAgent string `json:"customer_user_agent"`
CustomerNote string `json:"customer_note"`
Billing Billing `json:"billing"`
Shipping Shipping `json:"shipping"`
PaymentMethod string `json:"payment_method"`
PaymentMethodTitle string `json:"payment_method_title"`
TransactionId string `json:"transaction_id"`
DatePaid string `json:"date_paid"`
DatePaidGMT string `json:"date_paid_gmt"`
DateCompleted string `json:"date_completed"`
DateCompletedGMT string `json:"date_completed_gmt"`
CartHash string `json:"cart_hash"`
MetaData []Meta `json:"meta_data"`
LineItems []LineItem `json:"line_items"`
TaxLines []TaxLine `json:"tax_lines"`
ShippingLines []ShippingLine `json:"shipping_lines"`
FeeLines []FeeLine `json:"fee_lines"`
CouponLines []CouponLine `json:"coupon_lines"`
Refunds []Refund `json:"refunds"`
SetPaid bool `json:"set_paid"`
}
Order order properties
type OrderNote ¶
type OrderNote struct {
ID int `json:"id"`
Author string `json:"author"`
DateCreated string `json:"date_created"`
DateCreatedGMT string `json:"date_created_gmt"`
Note string `json:"note"`
CustomerNote bool `json:"customer_note"`
AddedByUser bool `json:"added_by_user"`
}
OrderNote order note properties
type OrderRefund ¶
type OrderRefund struct {
ID int `json:"id"`
DateCreated string `json:"date_created"`
DateCreatedGMT string `json:"date_created_gmt"`
Amount float64 `json:"amount"`
Reason string `json:"reason"`
RefundedBy int `json:"refunded_by"`
RefundedPayment bool `json:"refunded_payment"`
MetaData []Meta `json:"meta_data"`
LineItems []OrderRefundLineItem `json:"line_items"`
APIRefund bool `json:"api_refund"`
}
OrderRefund order refund properties
type OrderRefundLineItem ¶
type OrderRefundLineItem struct {
ID int `json:"id"`
Name string `json:"name"`
ProductId int `json:"product_id"`
VariationId int `json:"variation_id"`
Quantity int `json:"quantity"`
TaxClass int `json:"tax_class"`
SubTotal float64 `json:"subtotal"`
SubTotalTax float64 `json:"subtotal_tax"`
Total float64 `json:"total"`
TotalTax float64 `json:"total_tax"`
Taxes []Tax `json:"taxes"`
MetaData []Meta `json:"meta_data"`
SKU string `json:"sku"`
Price float64 `json:"price"`
RefundTotal float64 `json:"refund_total"`
}
OrderRefundLineItem order refund line item properties
type PaymentGateway ¶
type PaymentGateway struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Order int `json:"order"`
Enabled bool `json:"enabled"`
MethodTitle string `json:"method_title"`
MethodDescription string `json:"method_description"`
MethodSupports []string `json:"method_supports"`
Settings map[string]PaymentGatewaySetting `json:"settings"`
}
PaymentGateway payment gateway properties
type PaymentGatewaySetting ¶
type Product ¶
type Product struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Permalink string `json:"permalink"`
DateCreated string `json:"date_created"`
DateCreatedGMT string `json:"date_created_gmt"`
DateModified string `json:"date_modified"`
DateModifiedGMT string `json:"date_modified_gmt"`
Type string `json:"type"`
Status string `json:"status"`
Featured bool `json:"featured"`
CatalogVisibility string `json:"catalog_visibility"`
Description string `json:"description"`
ShortDescription string `json:"short_description"`
SKU string `json:"sku"`
Price float64 `json:"price"`
RegularPrice float64 `json:"regular_price"`
SalePrice float64 `json:"sale_price"`
DateOnSaleFrom string `json:"date_on_sale_from"`
DateOnSaleFromGMT string `json:"date_on_sale_from_gmt"`
DateOnSaleTo string `json:"date_on_sale_to"`
DateOnSaleToGMT string `json:"date_on_sale_to_gmt"`
PriceHtml string `json:"price_html"`
OnSale bool `json:"on_sale"`
Purchasable bool `json:"purchasable"`
TotalSales int `json:"total_sales"`
Virtual bool `json:"virtual"`
Downloadable bool `json:"downloadable"`
Downloads []ProductDownload `json:"downloads"`
DownloadLimit int `json:"download_limit"`
DownloadExpiry int `json:"download_expiry"`
ExternalUrl string `json:"external_url"`
ButtonText string `json:"button_text"`
TaxStatus string `json:"tax_status"`
TaxClass string `json:"tax_class"`
ManageStock bool `json:"manage_stock"`
StockQuantity int `json:"stock_quantity"`
StockStatus string `json:"stock_status"`
Backorders string `json:"backorders"`
BackordersAllowed bool `json:"backorders_allowed"`
Backordered bool `json:"backordered"`
SoldIndividually bool `json:"sold_individually"`
Weight float64 `json:"weight"`
Dimensions *ProductDimension `json:"dimensions"`
ShippingRequired bool `json:"shipping_required"`
ShippingTaxable bool `json:"shipping_taxable"`
ShippingClass string `json:"shipping_class"`
ShippingClassId int `json:"shipping_class_id"`
ReviewsAllowed bool `json:"reviews_allowed"`
AverageRating float64 `json:"average_rating"`
RatingCount int `json:"rating_count"`
RelatedIds []int `json:"related_ids"`
UpsellIds []int `json:"upsell_ids"`
CrossSellIds []int `json:"cross_sell_ids"`
ParentId int `json:"parent_id"`
PurchaseNote string `json:"purchase_note"`
Categories []ProductCategory `json:"categories"`
Tags []ProductTag `json:"tags"`
Images []ProductImage `json:"images"`
Attributes []ProductAttributeItem `json:"attributes"`
DefaultAttributes []ProductDefaultAttribute `json:"default_attributes"`
Variations []int `json:"variations"`
GroupedProducts []int `json:"grouped_products"`
MenuOrder int `json:"menu_order"`
MetaData []Meta `json:"meta_data"`
}
Product product properties
type ProductAttribute ¶
type ProductAttribute struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Type string `json:"type"`
OrderBy string `json:"order_by"`
HasArchives bool `json:"has_archives"`
}
ProductAttribute product attribute properties
type ProductAttributeItem ¶
type ProductAttributeItem struct {
ID int `json:"id"`
Name string `json:"name"`
Position int `json:"position"`
Visible bool `json:"visible"`
Variation bool `json:"variation"`
Options []string `json:"options"`
}
ProductAttributeItem product attribute properties
type ProductAttributeTerm ¶
type ProductAttributeTerm struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description string `json:"description"`
MenuOrder int `json:"menu_order"`
Count int `json:"count"`
}
ProductAttributeTerm product attribute term properties
type ProductCategory ¶
type ProductCategory struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Parent int `json:"parent"`
Description string `json:"description"`
Display string `json:"display"`
Image *ProductImage `json:"image,omitempty"`
MenuOrder int `json:"menu_order"`
Count int `json:"count"`
}
ProductCategory product category properties
type ProductDefaultAttribute ¶
type ProductDefaultAttribute struct {
ID int `json:"id"`
Name string `json:"name"`
Option string `json:"option"`
}
ProductDefaultAttribute product default attribute properties
type ProductDimension ¶
type ProductDownload ¶
type ProductDownload struct {
ID string `json:"id"`
Name string `json:"name"`
File string `json:"file"`
}
ProductDownload product download properties
type ProductImage ¶
type ProductImage struct {
ID int `json:"id"`
DateCreated string `json:"date_created"`
DateCreatedGMT string `json:"date_created_gmt"`
DateModified string `json:"date_modified"`
DateModifiedGMT string `json:"date_modified_gmt"`
Src string `json:"src"`
Name string `json:"name"`
Alt string `json:"alt"`
}
ProductImage product iamge properties
type ProductReview ¶
type ProductReview struct {
ID int `json:"id"`
DateCreated string `json:"date_created"`
DateCreatedGMT string `json:"date_created_gmt"`
ProductId int `json:"product_id"`
Status string `json:"status"`
Reviewer string `json:"reviewer"`
ReviewerEmail string `json:"reviewer_email"`
Review string `json:"review"`
Rating int `json:"rating"`
Verified bool `json:"verified"`
}
ProductReview product review properties
type ProductShippingClass ¶
type ProductShippingClass struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description string `json:"description"`
Count int `json:"count"`
}
ProductShippingClass product shipping class properties
type ProductTag ¶
type ProductTag struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description string `json:"description"`
Count int `json:"count"`
}
ProductTag product tag properties
type ProductVariation ¶
type ProductVariation struct {
ID int `json:"id"`
DateCreate time.Time `json:"date_create,omitempty"`
DateCreateGMT time.Time `json:"date_create_gmt,omitempty"`
DateModified time.Time `json:"date_modified,omitempty"`
DateModifiedGMT time.Time `json:"date_modified_gmt,omitempty"`
Description string `json:"description"`
Permalink string `json:"permalink"`
SKU string `json:"sku"`
Price float64 `json:"price"`
RegularPrice float64 `json:"regular_price"`
SalePrice float64 `json:"sale_price"`
DateOnSaleFrom time.Time `json:"date_on_sale_from"`
DateOnSaleFromGMT time.Time `json:"date_on_sale_from_gmt"`
DateOnSaleTo time.Time `json:"date_on_sale_to"`
DateOnSaleToGMT time.Time `json:"date_on_sale_to_gmt"`
OnSale bool `json:"on_sale"`
Status string `json:"status"`
Purchasable bool `json:"purchasable"`
Virtual bool `json:"virtual"`
Downloadable bool `json:"downloadable"`
Downloads []ProductDownload `json:"downloads"`
DownloadLimit int `json:"download_limit"`
DownloadExpiry int `json:"download_expiry"`
TaxStatus string `json:"tax_status"`
TaxClass string `json:"tax_class"`
ManageStock bool `json:"manage_stock"`
StockQuantity int `json:"stock_quantity"`
StockStatus string `json:"stock_status"`
Backorders string `json:"backorders"`
BackordersAllowed bool `json:"backorders_allowed"`
Backordered bool `json:"backordered"`
Weight float64 `json:"weight"`
// ProductDimension *request.VariationDimensionsRequest `json:"dimensions"`
ShippingClass string `json:"shipping_class"`
ShippingClassId int `json:"shipping_class_id"`
Image *ProductImage `json:"image"`
Attributes []ProductVariationAttribute `json:"attributes"`
MenuOrder int `json:"menu_order"`
MetaData []Meta `json:"meta_data"`
}
ProductVariation product variation properties
type ProductVariationAttribute ¶
type ProductVariationAttribute struct {
ID int `json:"id"`
Name string `json:"name"`
Option string `json:"option"`
}
ProductVariationAttribute product variation attribute properties
type SaleReport ¶
type SaleReport struct {
TotalSales float64 `json:"total_sales"`
NetSales float64 `json:"net_sales"`
AverageSales string `json:"average_sales"`
TotalOrders int `json:"total_orders"`
TotalItems int `json:"total_items"`
TotalTax float64 `json:"total_tax"`
TotalShipping float64 `json:"total_shipping"`
TotalRefunds int `json:"total_refunds"`
TotalDiscount int `json:"total_discount"`
TotalGroupedBy string `json:"total_grouped_by"`
Totals map[string]struct {
Sales float64 `json:"sales"`
Orders int `json:"orders"`
Items int `json:"items"`
Tax float64 `json:"tax"`
Shipping float64 `json:"shipping"`
Discount float64 `json:"discount"`
Customers int `json:"customers"`
} `json:"totals"`
}
type SettingGroup ¶
type SettingGroup struct {
ID string `json:"id"`
Label string `json:"label"`
Description string `json:"description"`
ParentId string `json:"parent_id"`
SubGroups []string `json:"sub_groups"`
}
SettingGroup setting group properties
type SettingOption ¶
type SettingOption struct {
ID string `json:"id"`
Label string `json:"label"`
Description string `json:"description"`
Value string `json:"value"`
Default string `json:"default"`
Tip string `json:"tip"`
PlaceHolder string `json:"place_holder"`
Type string `json:"type"`
Options map[string]string `json:"options"`
GroupId string `json:"group_id"`
}
SettingOption setting option properties
type Shipping ¶
type Shipping struct {
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Company string `json:"company,omitempty"`
Address1 string `json:"address_1,omitempty"`
Address2 string `json:"address_2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Postcode string `json:"postcode,omitempty"`
Country string `json:"country,omitempty"`
}
type ShippingLine ¶
type ShippingMethod ¶
type ShippingMethod struct {
InstanceId int `json:"instance_id"`
Title string `json:"title"`
Order int `json:"order"`
Enabled bool `json:"enabled"`
MethodId string `json:"method_id"`
MethodTitle string `json:"method_title"`
MethodDescription string `json:"method_description"`
Settings []ShippingZoneMethodSetting `json:"settings"`
}
type ShippingZone ¶
type ShippingZone struct {
ID string `json:"id"`
Name string `json:"name"`
Order int `json:"order"`
}
ShippingZone shipping zone properties
type ShippingZoneLocation ¶
ShippingZoneLocation shipping zone location
type ShippingZoneMethod ¶
type ShippingZoneMethod = ShippingMethod
ShippingZoneMethod shipping zone method properties
type ShippingZoneMethodSetting ¶
type ShippingZoneMethodSetting struct {
ID int `json:"id"`
Label string `json:"label"`
Description string `json:"description"`
Type string `json:"type"`
Value string `json:"value"`
Default string `json:"default"`
Tip string `json:"tip"`
PlaceHolder string `json:"place_holder"`
}
ShippingZoneMethodSetting shipping zone method setting properties
type SystemStatus ¶
type SystemStatus struct {
Environment SystemStatusEnvironment `json:"environment"`
Database SystemStatusDatabase `json:"database"`
ActivePlugins []string `json:"active_plugins"`
Theme SystemStatusTheme `json:"theme"`
Settings SystemStatusSetting `json:"settings"`
Security SystemStatusSecurity `json:"security"`
Pages []string `json:"pages"`
}
type SystemStatusDatabase ¶
type SystemStatusDatabase struct {
WCDatabaseVersion string `json:"wc_database_version"`
DatabasePrefix string `json:"database_prefix"`
MaxmindGEOIPDatabase string `json:"maxmind_geoip_database"`
DatabaseTables []string `json:"database_tables"`
}
SystemStatusDatabase System status database properties
type SystemStatusEnvironment ¶
type SystemStatusEnvironment struct {
HomeURL string `json:"home_url"`
SiteURL string `json:"site_url"`
WCVersion string `json:"wc_version"`
LogDirectory string `json:"log_directory"`
LogDirectoryWritable bool `json:"log_directory_writable"`
WPVersion string `json:"wp_version"`
WPMultisite bool `json:"wp_multisite"`
WPMemoryLimit int `json:"wp_memory_limit"`
WPDebugMode bool `json:"wp_debug_mode"`
WPCron bool `json:"wp_cron"`
Language string `json:"language"`
ServerInfo string `json:"server_info"`
PHPVersion string `json:"php_version"`
PHPPostMaxSize int `json:"php_post_max_size"`
PHPMaxExecutionTime int `json:"php_max_execution_time"`
PHPMaxInputVars int `json:"php_max_input_vars"`
CURLVersion string `json:"curl_version"`
SuhosinInstalled bool `json:"suhosin_installed"`
MaxUploadSize int `json:"max_upload_size"`
MySQLVersion string `json:"my_sql_version"`
DefaultTimezone string `json:"default_timezone"`
FSockOpenOrCurlEnabled bool `json:"fsockopen_or_curl_enabled"`
SOAPClientEnabled bool `json:"soap_client_enabled"`
GzipEnabled bool `json:"gzip_enabled"`
MbStringEnabled bool `json:"mbstring_enabled"`
RemotePostSuccessful bool `json:"remote_post_successful"`
RemotePostResponse string `json:"remote_post_response"`
RemoteGetSuccessful bool `json:"remote_get_successful"`
RemoteGetResponse string `json:"remote_get_response"`
}
SystemStatusEnvironment System status environment properties
type SystemStatusSecurity ¶
type SystemStatusSecurity struct {
SecureConnection bool `json:"secure_connection"`
HideErrors bool `json:"hide_errors"`
}
SystemStatusSecurity System status security properties
type SystemStatusSetting ¶
type SystemStatusSetting struct {
APIEnabled bool `json:"api_enabled"`
ForceSSL bool `json:"force_ssl"`
Currency string `json:"currency"`
CurrencySymbol string `json:"currency_symbol"`
CurrencyPosition string `json:"currency_position"`
ThousandSeparator string `json:"thousand_separator"`
DecimalSeparator string `json:"decimal_separator"`
NumberOfDecimals int `json:"number_of_decimals"`
GeolocationEnabled bool `json:"geolocation_enabled"`
Taxonomies []string `json:"taxonomies"`
}
SystemStatusSetting System status setting properties
type SystemStatusTheme ¶
type SystemStatusTheme struct {
Name string `json:"name"`
Version string `json:"version"`
VersionLatest string `json:"version_latest"`
AuthorURL string `json:"author_url"`
IsChildTheme bool `json:"is_child_theme"`
HasWooCommerceSupport bool `json:"has_woo_commerce_support"`
HasWooCommerceFile bool `json:"has_woo_commerce_file"`
HasOutdatedTemplates bool `json:"has_outdated_templates"`
Overrides []string `json:"overrides"`
ParentName string `json:"parent_name"`
ParentVersion string `json:"parent_version"`
ParentAuthorURL string `json:"parent_author_url"`
}
SystemStatusTheme System status theme properties
type SystemStatusTool ¶
type SystemStatusTool struct {
ID string `json:"id"`
Name string `json:"name"`
Action string `json:"action"`
Description string `json:"description"`
Success bool `json:"success"`
Message string `json:"message"`
Confirm bool `json:"confirm"`
}
SystemStatusTool system status tool properties
type TaxRate ¶
type TaxRate struct {
ID int `json:"id"`
Country string `json:"country"`
State string `json:"state"`
Postcode string `json:"postcode"`
City string `json:"city"`
Postcodes []string `json:"postcodes"`
Cities []string `json:"cities"`
Rate string `json:"rate"`
Name string `json:"name"`
Priority int `json:"priority"`
Compound bool `json:"compound"`
Shipping bool `json:"shipping"`
Order int `json:"order"`
Class string `json:"class"`
}
TaxRate tax rate properties
type TopSellerReport ¶
type TopSellerReport struct {
Title string `json:"title"`
ProductId int `json:"product_id"`
Quantity int `json:"quantity"`
}
TopSellerReport top sellers report properties
type TotalReport ¶
type Webhook ¶
type Webhook struct {
ID int `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Topic string `json:"topic"`
Resource string `json:"resource"`
Event string `json:"event"`
Hooks []string `json:"hooks"`
DeliveryURL string `json:"delivery_url"`
Secret string `json:"secret"`
DateCreated string `json:"date_created"`
DateCreatedGMT string `json:"date_created_gmt"`
DateModified string `json:"date_modified"`
DateModifiedGMT string `json:"date_modified_gmt"`
}
Webhook webhook properties
Source Files
¶
- billing.go
- coupon.go
- customer.go
- customer_download.go
- customer_download_file.go
- data.go
- image.go
- meta.go
- order.go
- order_note.go
- order_refund.go
- payment_gateway.go
- porduct_default_attribute.go
- product.go
- product_attribute.go
- product_attribute_term.go
- product_category.go
- product_download.go
- product_review.go
- product_shipping_class.go
- product_tag.go
- product_variation.go
- report.go
- setting_group.go
- setting_option.go
- shipping.go
- shipping_method.go
- shipping_zone.go
- shipping_zone_location.go
- shipping_zone_method.go
- system_status.go
- system_status_database.go
- system_status_environment.go
- system_status_security.go
- system_status_setting.go
- system_status_theme.go
- system_status_tool.go
- tax_class.go
- tax_rate.go
- taxes.go
- webhook.go