Documentation ¶
Index ¶
- func ParseBooleanToPointer(value bool) *bool
- func ParseIntToPointer(value int) *int
- type AccessTokenResponse
- type Bundle
- type BundleListParams
- type BundlesResponse
- type BundlesService
- type Carrier
- type CarrierDetail
- type CarrierDetailListParams
- type CarrierDetailsResponse
- type CarrierDetailsService
- type CarrierListParams
- type CarrierTax
- type CarrierTaxesListParams
- type CarrierTaxesResponse
- type CarrierTaxesService
- type CarriersResponse
- type CarriersService
- type Cart
- type CartListParams
- type CartProduct
- type CartProductListParams
- type CartProductsResponse
- type CartProductsService
- type CartRule
- type CartRuleListParams
- type CartRulesResponse
- type CartRulesService
- type CartsResponse
- type CartsService
- type CategoriesResponse
- type CategoriesService
- type Category
- type CategoryListParams
- type Client
- func (client *Client) Authenticate(clientName string, clientID string, clientSecret string, maintainToken bool) (*AccessTokenResponse, error)
- func (client *Client) AuthenticateWithToken(accessToken string)
- func (client *Client) Do(req *http.Request, v interface{}) (*http.Response, error)
- func (client *Client) GenerateAccessToken(clientName string, clientID string, clientSecret string) (*AccessTokenResponse, *http.Response, error)
- func (client *Client) NewRequest(method, urlStr string, opts interface{}, body interface{}) (*http.Request, error)
- type ClientConfig
- type CurrenciesResponse
- type CurrenciesService
- type Currency
- type CurrencyListParams
- type CustomProductCarrier
- type CustomProductCarrierListParams
- type CustomProductCarriersResponse
- type CustomProductCarriersService
- func (service *CustomProductCarriersService) Get(shopID string, shopContentId string) (*CustomProductCarriersResponse, *http.Response, error)
- func (service *CustomProductCarriersService) List(shopID string, opts *CustomProductCarrierListParams) (*CustomProductCarriersResponse, *http.Response, error)
- type Customer
- type CustomerListParams
- type CustomersResponse
- type CustomersService
- type ErrorData
- type GenericListLinks
- type GenericListPagination
- type GenericListParams
- type GenericListResponse
- type Order
- type OrderDetail
- type OrderDetailListParams
- type OrderDetailsResponse
- type OrderDetailsService
- type OrderListParams
- type OrderStatusHistory
- type OrderStatusHistoryListParams
- type OrderStatusHistoryResponse
- type OrderStatusHistoryService
- type OrdersResponse
- type OrdersService
- type Product
- type ProductListParams
- type ProductsResponse
- type ProductsService
- type RawApi
- type ReportingApi
- type ResourceType
- type SyncApi
- type SyncDetailsOnboardingResponse
- type SyncDetailsParams
- type SyncDetailsService
- func (service *SyncDetailsService) GetShopSyncOnboarding(shopID string) (*SyncDetailsOnboardingResponse, *http.Response, error)
- func (service *SyncDetailsService) GetShopSyncSetup(shopID string) (*SyncDetailsSetupResponse, *http.Response, error)
- func (service *SyncDetailsService) GetShopSyncSummary(shopID string, opts *SyncDetailsParams) (*SyncDetailsSummaryResponse, *http.Response, error)
- type SyncDetailsSetupResponse
- type SyncDetailsSummaryResponse
- type SyncError
- type SyncErrorsParams
- type SyncErrorsResponse
- type SyncErrorsService
- type SyncTrigger
- type TriggerResponse
- type TriggerSyncService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBooleanToPointer ¶
func ParseIntToPointer ¶
Types ¶
type AccessTokenResponse ¶
type Bundle ¶
type Bundle struct { ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` IDBundleProduct string `json:"idBundleProduct,omitempty"` IDBundle int `json:"idBundle,omitempty"` IDProduct int `json:"idProduct,omitempty"` IDProductAttribute int `json:"idProductAttribute,omitempty"` UniqueProductID string `json:"uniqueProductId,omitempty"` Quantity int `json:"quantity,omitempty"` }
type BundleListParams ¶
type BundleListParams struct { IdBundle int `url:"idBundle,omitempty"` IdBundleStart int `url:"idBundleStart,omitempty"` IdBundleEnd int `url:"idBundleEnd,omitempty"` IdProduct int `url:"idProduct,omitempty"` IdProductStart int `url:"idProductStart,omitempty"` IdProductEnd int `url:"idProductEnd,omitempty"` IdProductAttribute int `url:"idProductAttribute,omitempty"` IdProductAttributeStart int `url:"idProductAttributeStart,omitempty"` IdProductAttributeEnd int `url:"idProductAttributeEnd,omitempty"` Quantity int `url:"quantity,omitempty"` QuantityStart int `url:"quantityStart,omitempty"` QuantityEnd int `url:"quantityEnd,omitempty"` IdBundleProduct string `url:"idBundleProduct,omitempty"` UniqueProductId string `url:"uniqueProductId,omitempty"` GenericListParams }
type BundlesResponse ¶
type BundlesResponse struct { Bundle *Bundle `json:"item,omitempty"` Bundles *[]Bundle `json:"items,omitempty"` GenericListResponse }
type BundlesService ¶
type BundlesService service
Bundle service
func (*BundlesService) Get ¶
func (service *BundlesService) Get(shopID string, shopContentId string) (*BundlesResponse, *http.Response, error)
Get a bundle. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Bundles_getSingleItem
func (*BundlesService) List ¶
func (service *BundlesService) List(shopID string, opts *BundleListParams) (*BundlesResponse, *http.Response, error)
List bundles. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Bundles_getPaginatedItems
type Carrier ¶
type Carrier struct { ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` IDCarrier string `json:"idCarrier,omitempty"` IDReference string `json:"idReference,omitempty"` CarrierTaxesRatesGroupID string `json:"carrierTaxesRatesGroupId,omitempty"` Name string `json:"name,omitempty"` URL string `json:"url,omitempty"` Active bool `json:"active,omitempty"` Deleted bool `json:"deleted,omitempty"` ShippingHandling int `json:"shippingHandling,omitempty"` FreeShippingStartsAtPrice int `json:"freeShippingStartsAtPrice,omitempty"` FreeShippingStartsAtWeight int `json:"freeShippingStartsAtWeight,omitempty"` DisableCarrierWhenOutOfRange bool `json:"disableCarrierWhenOutOfRange,omitempty"` IsModule bool `json:"isModule,omitempty"` IsFree bool `json:"isFree,omitempty"` ShippingExternal bool `json:"shippingExternal,omitempty"` NeedRange bool `json:"needRange,omitempty"` ExternalModuleName string `json:"externalModuleName,omitempty"` MaxWidth int `json:"maxWidth,omitempty"` MaxHeight int `json:"maxHeight,omitempty"` MaxDepth int `json:"maxDepth,omitempty"` MaxWeight int `json:"maxWeight,omitempty"` Grade int `json:"grade,omitempty"` Delay string `json:"delay,omitempty"` Currency string `json:"currency,omitempty"` WeightUnit string `json:"weightUnit,omitempty"` DeletedAt string `json:"deletedAt,omitempty"` }
type CarrierDetail ¶
type CarrierDetail struct { ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` IDReference string `json:"idReference,omitempty"` ShippingMethod string `json:"shippingMethod,omitempty"` Delimiter1 int `json:"delimiter1,omitempty"` Delimiter2 int `json:"delimiter2,omitempty"` CountryIds string `json:"countryIds,omitempty"` StateIds string `json:"stateIds,omitempty"` Price float64 `json:"price,omitempty"` IDCarrierDetail string `json:"idCarrierDetail,omitempty"` CarrierDetailsUniqueID string `json:"carrierDetailsUniqueId,omitempty"` IDRange string `json:"idRange,omitempty"` IDZone string `json:"idZone,omitempty"` }
type CarrierDetailListParams ¶
type CarrierDetailListParams struct { CarrierDetailsUniqueId string `url:"carrierDetailsUniqueId,omitempty"` CountryIds string `url:"countryIds,omitempty"` IdCarrierDetail string `url:"idCarrierDetail,omitempty"` IdRange string `url:"idRange,omitempty"` IdReference string `url:"idReference,omitempty"` IdZone string `url:"idZone,omitempty"` Price float64 `url:"price,omitempty"` PriceStart float64 `url:"priceStart,omitempty"` PriceEnd float64 `url:"priceEnd,omitempty"` ShippingMethod string `url:"shippingMethod,omitempty"` StateIds string `url:"stateIds,omitempty"` Delimiter1 int `url:"delimiter1,omitempty"` Delimiter1Start int `url:"delimiter1Start,omitempty"` Delimiter1End int `url:"delimiter1End,omitempty"` // Note: Adjusted typo from `delimiter1SEnd` to `delimiter1End` Delimiter2 int `url:"delimiter2,omitempty"` Delimiter2Start int `url:"delimiter2Start,omitempty"` Delimiter2End int `url:"delimiter2End,omitempty"` GenericListParams }
type CarrierDetailsResponse ¶
type CarrierDetailsResponse struct { CarrierDetail *CarrierDetail `json:"item,omitempty"` CarrierDetails *[]CarrierDetail `json:"items,omitempty"` GenericListResponse }
type CarrierDetailsService ¶
type CarrierDetailsService service
CarrierDetail service
func (*CarrierDetailsService) Get ¶
func (service *CarrierDetailsService) Get(shopID string, shopContentId string) (*CarrierDetailsResponse, *http.Response, error)
Get a carrier detail. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/CarrierDetails_getSingleItem
func (*CarrierDetailsService) List ¶
func (service *CarrierDetailsService) List(shopID string, opts *CarrierDetailListParams) (*CarrierDetailsResponse, *http.Response, error)
List carrier details. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/CarrierDetails_getPaginatedItems
type CarrierListParams ¶
type CarrierListParams struct { Active *bool `url:"active,omitempty"` CarrierTaxesRatesGroupId string `url:"carrierTaxesRatesGroupId,omitempty"` Currency string `url:"currency,omitempty"` Delay string `url:"delay,omitempty"` Deleted *bool `url:"deleted,omitempty"` DeletedAt string `url:"deletedAt,omitempty"` DeletedAtStart string `url:"deletedAtStart,omitempty"` DeletedAtEnd string `url:"deletedAtEnd,omitempty"` DisableCarrierWhenOutOfRange *bool `url:"disableCarrierWhenOutOfRange,omitempty"` ExternalModuleName string `url:"externalModuleName,omitempty"` FreeShippingStartsAtPrice float64 `url:"freeShippingStartsAtPrice,omitempty"` FreeShippingStartsAtPriceStart float64 `url:"freeShippingStartsAtPriceStart,omitempty"` FreeShippingStartsAtPriceEnd float64 `url:"freeShippingStartsAtPriceEnd,omitempty"` FreeShippingStartsAtWeight float64 `url:"freeShippingStartsAtWeight,omitempty"` FreeShippingStartsAtWeightStart float64 `url:"freeShippingStartsAtWeightStart,omitempty"` FreeShippingStartsAtWeightEnd float64 `url:"freeShippingStartsAtWeightEnd,omitempty"` Grade int `url:"grade,omitempty"` GradeStart int `url:"gradeStart,omitempty"` GradeEnd int `url:"gradeEnd,omitempty"` IdCarrier string `url:"idCarrier,omitempty"` IdReference string `url:"idReference,omitempty"` IsFree *bool `url:"isFree,omitempty"` IsModule *bool `url:"isModule,omitempty"` MaxDepth float64 `url:"maxDepth,omitempty"` MaxDepthStart float64 `url:"maxDepthStart,omitempty"` MaxDepthEnd float64 `url:"maxDepthEnd,omitempty"` MaxHeight float64 `url:"maxHeight,omitempty"` MaxHeightStart float64 `url:"maxHeightStart,omitempty"` MaxHeightEnd float64 `url:"maxHeightEnd,omitempty"` MaxWeight float64 `url:"maxWeight,omitempty"` MaxWeightStart float64 `url:"maxWeightStart,omitempty"` MaxWeightEnd float64 `url:"maxWeightEnd,omitempty"` MaxWidth float64 `url:"maxWidth,omitempty"` MaxWidthStart float64 `url:"maxWidthStart,omitempty"` MaxWidthEnd float64 `url:"maxWidthEnd,omitempty"` Name string `url:"name,omitempty"` NeedRange *bool `url:"needRange,omitempty"` ShippingExternal *bool `url:"shippingExternal,omitempty"` ShippingHandling float64 `url:"shippingHandling,omitempty"` ShippingHandlingStart float64 `url:"shippingHandlingStart,omitempty"` ShippingHandlingEnd float64 `url:"shippingHandlingEnd,omitempty"` Url string `url:"url,omitempty"` WeightUnit string `url:"weightUnit,omitempty"` GenericListParams }
type CarrierTax ¶
type CarrierTax struct { ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` IDReference string `json:"idReference,omitempty"` IDCarrierTax string `json:"idCarrierTax,omitempty"` CountryID string `json:"countryId,omitempty"` StateIds string `json:"stateIds,omitempty"` TaxRate int `json:"taxRate,omitempty"` CarrierTaxesUniqueID string `json:"carrierTaxesUniqueId,omitempty"` IDRange int `json:"idRange,omitempty"` IDZone int `json:"idZone,omitempty"` }
type CarrierTaxesListParams ¶
type CarrierTaxesListParams struct { IdCarrierTax string `url:"idCarrierTax,omitempty"` IdRange string `url:"idRange,omitempty"` IdReference string `url:"idReference,omitempty"` IdZone string `url:"idZone,omitempty"` CountryId string `url:"countryId,omitempty"` StateIds string `url:"stateIds,omitempty"` CarrierTaxesUniqueId string `url:"carrierTaxesUniqueId,omitempty"` TaxRate float64 `url:"taxRate,omitempty"` TaxRateStart float64 `url:"taxRateStart,omitempty"` TaxRateEnd float64 `url:"taxRateEnd,omitempty"` GenericListParams }
type CarrierTaxesResponse ¶
type CarrierTaxesResponse struct { CarrierTax *CarrierTax `json:"item,omitempty"` CarrierTaxes *[]CarrierTax `json:"items,omitempty"` GenericListResponse }
type CarrierTaxesService ¶
type CarrierTaxesService service
CarrierTax service
func (*CarrierTaxesService) Get ¶
func (service *CarrierTaxesService) Get(shopID string, shopContentId string) (*CarrierTaxesResponse, *http.Response, error)
Get a carrier tax. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/CarrierTaxes_getSingleItem
func (*CarrierTaxesService) List ¶
func (service *CarrierTaxesService) List(shopID string, opts *CarrierTaxesListParams) (*CarrierTaxesResponse, *http.Response, error)
List carrier taxes. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/CarrierTaxes_getPaginatedItems
type CarriersResponse ¶
type CarriersResponse struct { Carrier *Carrier `json:"item,omitempty"` Carriers *[]Carrier `json:"items,omitempty"` GenericListResponse }
type CarriersService ¶
type CarriersService service
Carrier service
func (*CarriersService) Get ¶
func (service *CarriersService) Get(shopID string, shopContentId string) (*CarriersResponse, *http.Response, error)
Get a carrier. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Carriers_getSingleItem
func (*CarriersService) List ¶
func (service *CarriersService) List(shopID string, opts *CarrierListParams) (*CarriersResponse, *http.Response, error)
List carriers. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Carriers_getPaginatedItems
type CartListParams ¶
type CartListParams struct { IdCart string `url:"idCart,omitempty"` GenericListParams }
type CartProduct ¶
type CartProduct struct { Quantity int `json:"quantity,omitempty"` ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` IDCartProduct string `json:"idCartProduct,omitempty"` IDCart string `json:"idCart,omitempty"` IDProduct string `json:"idProduct,omitempty"` IDProductAttribute string `json:"idProductAttribute,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` }
type CartProductListParams ¶
type CartProductsResponse ¶
type CartProductsResponse struct { CartProduct *CartProduct `json:"item,omitempty"` CartProducts *[]CartProduct `json:"items,omitempty"` GenericListResponse }
type CartProductsService ¶
type CartProductsService service
Cart Products service
func (*CartProductsService) Get ¶
func (service *CartProductsService) Get(shopID string, shopContentId string) (*CartProductsResponse, *http.Response, error)
Get a cartProduct. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/CartProducts_getSingleItem
func (*CartProductsService) List ¶
func (service *CartProductsService) List(shopID string, opts *CartProductListParams) (*CartProductsResponse, *http.Response, error)
List cartProducts. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/CartProducts_getPaginatedItems
type CartRule ¶
type CartRule struct { ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` IDCartRule int `json:"idCartRule,omitempty"` IDCustomer int `json:"idCustomer,omitempty"` Code string `json:"code,omitempty"` From string `json:"from,omitempty"` To string `json:"to,omitempty"` Description string `json:"description,omitempty"` Quantity int `json:"quantity,omitempty"` QuantityPerUser int `json:"quantityPerUser,omitempty"` Priority int `json:"priority,omitempty"` PartialUse *bool `json:"partialUse,omitempty"` MinimumAmount float64 `json:"minimumAmount,omitempty"` MinimumAmountTax *bool `json:"minimumAmountTax,omitempty"` MinimumAmountCurrency int `json:"minimumAmountCurrency,omitempty"` MinimumAmountShipping *bool `json:"minimumAmountShipping,omitempty"` CountryRestriction *bool `json:"countryRestriction,omitempty"` CarrierRestriction *bool `json:"carrierRestriction,omitempty"` GroupRestriction *bool `json:"groupRestriction,omitempty"` CartRuleRestriction *bool `json:"cartRuleRestriction,omitempty"` ProductRestriction *bool `json:"productRestriction,omitempty"` ShopRestriction *bool `json:"shopRestriction,omitempty"` FreeShipping *bool `json:"freeShipping,omitempty"` ReductionPercent float64 `json:"reductionPercent,omitempty"` ReductionAmount float64 `json:"reductionAmount,omitempty"` ReductionTax *bool `json:"reductionTax,omitempty"` ReductionCurrency int `json:"reductionCurrency,omitempty"` ReductionProduct int `json:"reductionProduct,omitempty"` ReductionExcludeSpecial *bool `json:"reductionExcludeSpecial,omitempty"` GiftProduct int `json:"giftProduct,omitempty"` GiftProductAttribute int `json:"giftProductAttribute,omitempty"` Highlight *bool `json:"highlight,omitempty"` Active *bool `json:"active,omitempty"` }
type CartRuleListParams ¶
type CartRuleListParams struct { Active *bool `url:"active,omitempty"` CarrierRestriction *bool `url:"carrierRestriction,omitempty"` CartRuleRestriction *bool `url:"cartRuleRestriction,omitempty"` Code string `url:"code,omitempty"` CountryRestriction *bool `url:"countryRestriction,omitempty"` Description string `url:"description,omitempty"` FreeShipping *bool `url:"freeShipping,omitempty"` From string `url:"from,omitempty"` FromStart string `url:"fromStart,omitempty"` FromEnd string `url:"fromEnd,omitempty"` GiftProduct int `url:"giftProduct,omitempty"` GiftProductStart int `url:"giftProductStart,omitempty"` GiftProductEnd int `url:"giftProductEnd,omitempty"` GiftProductAttribute int `url:"giftProductAttribute,omitempty"` GiftProductAttributeStart int `url:"giftProductAttributeStart,omitempty"` GiftProductAttributeEnd int `url:"giftProductAttributeEnd,omitempty"` GroupRestriction *bool `url:"groupRestriction,omitempty"` Highlight *bool `url:"highlight,omitempty"` IdCartRule int `url:"idCartRule,omitempty"` IdCartRuleStart int `url:"idCartRuleStart,omitempty"` IdCartRuleEnd int `url:"idCartRuleEnd,omitempty"` IdCustomer int `url:"idCustomer,omitempty"` IdCustomerStart int `url:"idCustomerStart,omitempty"` IdCustomerEnd int `url:"idCustomerEnd,omitempty"` MinimumAmount float64 `url:"minimumAmount,omitempty"` MinimumAmountStart float64 `url:"minimumAmountStart,omitempty"` MinimumAmountEnd float64 `url:"minimumAmountEnd,omitempty"` MinimumAmountCurrency int `url:"minimumAmountCurrency,omitempty"` MinimumAmountCurrencyStart int `url:"minimumAmountCurrencyStart,omitempty"` MinimumAmountCurrencyEnd int `url:"minimumAmountCurrencyEnd,omitempty"` MinimumAmountShipping *bool `url:"minimumAmountShipping,omitempty"` MinimumAmountTax *bool `url:"minimumAmountTax,omitempty"` Priority int `url:"priority,omitempty"` PriorityStart int `url:"priorityStart,omitempty"` PriorityEnd int `url:"priorityEnd,omitempty"` ProductRestriction *bool `url:"productRestriction,omitempty"` Quantity int `url:"quantity,omitempty"` QuantityStart int `url:"quantityStart,omitempty"` QuantityEnd int `url:"quantityEnd,omitempty"` QuantityPerUser int `url:"quantityPerUser,omitempty"` QuantityPerUserStart int `url:"quantityPerUserStart,omitempty"` QuantityPerUserEnd int `url:"quantityPerUserEnd,omitempty"` ReductionAmount float64 `url:"reductionAmount,omitempty"` ReductionAmountStart float64 `url:"reductionAmountStart,omitempty"` ReductionAmountEnd float64 `url:"reductionAmountEnd,omitempty"` ReductionCurrency int `url:"reductionCurrency,omitempty"` ReductionCurrencyStart int `url:"reductionCurrencyStart,omitempty"` ReductionCurrencyEnd int `url:"reductionCurrencyEnd,omitempty"` ReductionExcludeSpecial *bool `url:"reductionExcludeSpecial,omitempty"` ReductionPercent float64 `url:"reductionPercent,omitempty"` ReductionPercentStart float64 `url:"reductionPercentStart,omitempty"` ReductionPercentEnd float64 `url:"reductionPercentEnd,omitempty"` ReductionProduct int `url:"reductionProduct,omitempty"` ReductionProductStart int `url:"reductionProductStart,omitempty"` ReductionProductEnd int `url:"reductionProductEnd,omitempty"` ReductionTax *bool `url:"reductionTax,omitempty"` ShopRestriction *bool `url:"shopRestriction,omitempty"` To string `url:"to,omitempty"` ToStart string `url:"toStart,omitempty"` ToEnd string `url:"toEnd,omitempty"` GenericListParams }
type CartRulesResponse ¶
type CartRulesResponse struct { CartRule *CartRule `json:"item,omitempty"` CartRules *[]CartRule `json:"items,omitempty"` GenericListResponse }
type CartRulesService ¶
type CartRulesService service
Cart Rules service
func (*CartRulesService) Get ¶
func (service *CartRulesService) Get(shopID string, shopContentId string) (*CartRulesResponse, *http.Response, error)
Get a cart rule. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/CartRules_getSingleItem
func (*CartRulesService) List ¶
func (service *CartRulesService) List(shopID string, opts *CartRuleListParams) (*CartRulesResponse, *http.Response, error)
List cart rules. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/CartRules_getPaginatedItems
type CartsResponse ¶
type CartsResponse struct { Cart *Cart `json:"item,omitempty"` Carts *[]Cart `json:"items,omitempty"` GenericListResponse }
type CartsService ¶
type CartsService service
Cart service
func (*CartsService) Get ¶
func (service *CartsService) Get(shopID string, shopContentId string) (*CartsResponse, *http.Response, error)
Get a cart. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Carts_getSingleItem
func (*CartsService) List ¶
func (service *CartsService) List(shopID string, opts *CartListParams) (*CartsResponse, *http.Response, error)
List carts. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Carts_getPaginatedItems
type CategoriesResponse ¶
type CategoriesResponse struct { Category *Category `json:"item,omitempty"` Categories *[]Category `json:"items,omitempty"` GenericListResponse }
type CategoriesService ¶
type CategoriesService service
Category service
func (*CategoriesService) Get ¶
func (service *CategoriesService) Get(shopID string, shopContentId string) (*CategoriesResponse, *http.Response, error)
Get a category. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Categories_getSingleItem
func (*CategoriesService) List ¶
func (service *CategoriesService) List(shopID string, opts *CategoryListParams) (*CategoriesResponse, *http.Response, error)
List categories. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Categories_getPaginatedItems
type Category ¶
type Category struct { ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` IDCategory int `json:"idCategory,omitempty"` IDParent int `json:"idParent,omitempty"` UniqueCategoryID string `json:"uniqueCategoryId,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` LinkRewrite string `json:"linkRewrite,omitempty"` MetaTitle string `json:"metaTitle,omitempty"` MetaKeywords string `json:"metaKeywords,omitempty"` MetaDescription string `json:"metaDescription,omitempty"` IsoCode string `json:"isoCode,omitempty"` DeletedAt string `json:"deletedAt,omitempty"` Deleted bool `json:"deleted,omitempty"` }
type CategoryListParams ¶
type CategoryListParams struct { IdCategory int `url:"idCategory,omitempty"` IdCategoryStart int `url:"idCategoryStart,omitempty"` IdCategoryEnd int `url:"idCategoryEnd,omitempty"` IdParent int `url:"idParent,omitempty"` IdParentStart int `url:"idParentStart,omitempty"` IdParentEnd int `url:"idParentEnd,omitempty"` IsoCode string `url:"isoCode,omitempty"` LinkRewrite string `url:"linkRewrite,omitempty"` MetaDescription string `url:"metaDescription,omitempty"` MetaKeywords string `url:"metaKeywords,omitempty"` MetaTitle string `url:"metaTitle,omitempty"` Name string `url:"name,omitempty"` UniqueCategoryId string `url:"uniqueCategoryId,omitempty"` Deleted *bool `url:"deleted,omitempty"` Description string `url:"description,omitempty"` GenericListParams }
type Client ¶
type Client struct { RawApi *RawApi ReportingApi *ReportingApi SyncApi *SyncApi // contains filtered or unexported fields }
func (*Client) Authenticate ¶
func (*Client) AuthenticateWithToken ¶
func (*Client) GenerateAccessToken ¶
type ClientConfig ¶
type CurrenciesResponse ¶
type CurrenciesResponse struct { Currency *Currency `json:"item,omitempty"` Currencies *[]Currency `json:"items,omitempty"` GenericListResponse }
type CurrenciesService ¶
type CurrenciesService service
Currency service
func (*CurrenciesService) Get ¶
func (service *CurrenciesService) Get(shopID string, shopContentId string) (*CurrenciesResponse, *http.Response, error)
Get a category. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Currencies_getSingleItem
func (*CurrenciesService) List ¶
func (service *CurrenciesService) List(shopID string, opts *CurrencyListParams) (*CurrenciesResponse, *http.Response, error)
List currencies. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Currencies_getPaginatedItems
type Currency ¶
type Currency struct { ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` IDCurrency int `json:"idCurrency,omitempty"` IDParent int `json:"idParent,omitempty"` UniqueCurrencyID string `json:"uniqueCurrencyId,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` LinkRewrite string `json:"linkRewrite,omitempty"` MetaTitle string `json:"metaTitle,omitempty"` MetaKeywords string `json:"metaKeywords,omitempty"` MetaDescription string `json:"metaDescription,omitempty"` IsoCode string `json:"isoCode,omitempty"` DeletedAt string `json:"deletedAt,omitempty"` Deleted bool `json:"deleted,omitempty"` }
type CurrencyListParams ¶
type CurrencyListParams struct { IdCurrency int `url:"idCurrency,omitempty"` IdCurrencyStart int `url:"idCurrencyStart,omitempty"` IdCurrencyEnd int `url:"idCurrencyEnd,omitempty"` IdParent int `url:"idParent,omitempty"` IdParentStart int `url:"idParentStart,omitempty"` IdParentEnd int `url:"idParentEnd,omitempty"` IsoCode string `url:"isoCode,omitempty"` LinkRewrite string `url:"linkRewrite,omitempty"` MetaDescription string `url:"metaDescription,omitempty"` MetaKeywords string `url:"metaKeywords,omitempty"` MetaTitle string `url:"metaTitle,omitempty"` Name string `url:"name,omitempty"` UniqueCurrencyId string `url:"uniqueCurrencyId,omitempty"` Deleted *bool `url:"deleted,omitempty"` Description string `url:"description,omitempty"` GenericListParams }
type CustomProductCarrier ¶
type CustomProductCarrier struct { ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` IDCustomProductCarrier string `json:"idCustomProductCarrier,omitempty"` IDCarrierReference int `json:"idCarrierReference,omitempty"` IDProduct int `json:"idProduct,omitempty"` }
type CustomProductCarrierListParams ¶
type CustomProductCarrierListParams struct { IdCarrierReference int `url:"idCarrierReference,omitempty"` IdCarrierReferenceStart int `url:"idCarrierReferenceStart,omitempty"` IdCarrierReferenceEnd int `url:"idCarrierReferenceEnd,omitempty"` IdProduct int `url:"idProduct,omitempty"` IdProductStart int `url:"idProductStart,omitempty"` IdProductEnd int `url:"idProductEnd,omitempty"` IdCustomProductCarrier string `url:"idCustomProductCarrier,omitempty"` GenericListParams }
type CustomProductCarriersResponse ¶
type CustomProductCarriersResponse struct { CustomProductCarrier *CustomProductCarrier `json:"item,omitempty"` CustomProductCarriers *[]CustomProductCarrier `json:"items,omitempty"` GenericListResponse }
type CustomProductCarriersService ¶
type CustomProductCarriersService service
Custom Product Carrier service
func (*CustomProductCarriersService) Get ¶
func (service *CustomProductCarriersService) Get(shopID string, shopContentId string) (*CustomProductCarriersResponse, *http.Response, error)
Get a custom Product Carrier. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/CustomProductCarriers_getSingleItem
func (*CustomProductCarriersService) List ¶
func (service *CustomProductCarriersService) List(shopID string, opts *CustomProductCarrierListParams) (*CustomProductCarriersResponse, *http.Response, error)
List custom Product Carriers. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/CustomProductCarriers_getPaginatedItems
type Customer ¶
type Customer struct { IDCustomer int `json:"idCustomer,omitempty"` IDLang int `json:"idLang,omitempty"` Newsletter *bool `json:"newsletter,omitempty"` Optin *bool `json:"optin,omitempty"` Active *bool `json:"active,omitempty"` IsGuest *bool `json:"isGuest,omitempty"` Deleted *bool `json:"deleted,omitempty"` ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` EmailHash string `json:"emailHash,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` NewsletterDateAdd string `json:"newsletterDateAdd,omitempty"` DeletedAt string `json:"deletedAt,omitempty"` }
type CustomerListParams ¶
type CustomerListParams struct { DeletedAt string `url:"deletedAt,omitempty"` DeletedAtStart string `url:"deletedAtStart,omitempty"` DeletedAtEnd string `url:"deletedAtEnd,omitempty"` EmailHash string `url:"emailHash,omitempty"` IdCustomer int `url:"idCustomer,omitempty"` IdCustomerStart int `url:"idCustomerStart,omitempty"` IdCustomerEnd int `url:"idCustomerEnd,omitempty"` IdLang int `url:"idLang,omitempty"` IdLangStart int `url:"idLangStart,omitempty"` IdLangEnd int `url:"idLangEnd,omitempty"` Active *bool `url:"active,omitempty"` Deleted *bool `url:"deleted,omitempty"` IsGuest *bool `url:"isGuest,omitempty"` Optin *bool `url:"optin,omitempty"` Newsletter *bool `url:"newsletter,omitempty"` NewsletterDateAdd string `url:"newsletterDateAdd,omitempty"` NewsletterDateAddStart string `url:"newsletterDateAddStart,omitempty"` NewsletterDateAddEnd string `url:"newsletterDateAddEnd,omitempty"` GenericListParams }
type CustomersResponse ¶
type CustomersResponse struct { Customer *Customer `json:"item,omitempty"` Customers *[]Customer `json:"items,omitempty"` GenericListResponse }
type CustomersService ¶
type CustomersService service
Customer service
func (*CustomersService) Get ¶
func (service *CustomersService) Get(shopID string, shopContentId string) (*CustomersResponse, *http.Response, error)
Get a customer. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Customers_getSingleItem
func (*CustomersService) List ¶
func (service *CustomersService) List(shopID string, opts *CustomerListParams) (*CustomersResponse, *http.Response, error)
List customers. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Customers_getPaginatedItems
type GenericListLinks ¶
type GenericListPagination ¶
type GenericListParams ¶
type GenericListParams struct { Limit int `url:"limit"` Offset int `url:"offset"` CreatedAt string `url:"createdAt,omitempty"` CreatedAtStart string `url:"createdAtStart,omitempty"` CreatedAtEnd string `url:"createdAtEnd,omitempty"` Direction string `url:"direction,omitempty"` LastSyncedAt string `url:"lastSyncedAt,omitempty"` LastSyncedAtStart string `url:"lastSyncedAtStart,omitempty"` LastSyncedAtEnd string `url:"lastSyncedAtEnd,omitempty"` Sort string `url:"sort,omitempty"` UpdatedAt string `url:"updatedAt,omitempty"` UpdatedAtStart string `url:"updatedAtStart,omitempty"` UpdatedAtEnd string `url:"updatedAtEnd,omitempty"` }
var (
DefaultGenericListParams GenericListParams = GenericListParams{Limit: 10, Offset: 0}
)
type GenericListResponse ¶
type GenericListResponse struct { Kind string `json:"kind,omitempty"` Total int `json:"total,omitempty"` Pagination *GenericListPagination `json:"pagination,omitempty"` Links *GenericListLinks `json:"links,omitempty"` }
type Order ¶
type Order struct { IDCarrier int `json:"idCarrier,omitempty"` CurrentState int `json:"currentState,omitempty"` ConversionRate float64 `json:"conversionRate,omitempty"` TotalPaidTaxExcl float64 `json:"totalPaidTaxExcl,omitempty"` Refund float64 `json:"refund,omitempty"` RefundTaxExcl float64 `json:"refundTaxExcl,omitempty"` ShippingCost float64 `json:"shippingCost,omitempty"` TotalPaidTax float64 `json:"totalPaidTax,omitempty"` TotalPaidReal float64 `json:"totalPaidReal,omitempty"` TotalPaidTaxIncl float64 `json:"totalPaidTaxIncl,omitempty"` ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` IDOrder string `json:"idOrder,omitempty"` Reference string `json:"reference,omitempty"` IDCustomer string `json:"idCustomer,omitempty"` IDCart string `json:"idCart,omitempty"` Currency string `json:"currency,omitempty"` PaymentMode string `json:"paymentMode,omitempty"` PaymentModule string `json:"paymentModule,omitempty"` InvoiceCountryCode string `json:"invoiceCountryCode,omitempty"` DeliveryCountryCode string `json:"deliveryCountryCode,omitempty"` NewCustomer *bool `json:"newCustomer,omitempty"` IsPaid *bool `json:"isPaid,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` CreatedAt string `json:"createdAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` }
type OrderDetail ¶
type OrderDetail struct { ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` IDOrderDetail string `json:"idOrderDetail,omitempty"` IDOrder string `json:"idOrder,omitempty"` ProductID int `json:"productId,omitempty"` ProductAttributeID int `json:"productAttributeId,omitempty"` ProductQuantity int `json:"productQuantity,omitempty"` UnitPriceTaxIncl float64 `json:"unitPriceTaxIncl,omitempty"` Refund int `json:"refund,omitempty"` RefundTaxExcl int `json:"refundTaxExcl,omitempty"` UnitPriceTaxExcl float64 `json:"unitPriceTaxExcl,omitempty"` Currency string `json:"currency,omitempty"` IsoCode string `json:"isoCode,omitempty"` UniqueProductID string `json:"uniqueProductId,omitempty"` Category string `json:"category,omitempty"` ConversionRate int `json:"conversionRate,omitempty"` }
type OrderDetailListParams ¶
type OrderDetailListParams struct { Category string `url:"category,omitempty"` ConversionRate float64 `url:"conversionRate,omitempty"` Currency string `url:"currency,omitempty"` IdOrder string `url:"idOrder,omitempty"` IdOrderDetail string `url:"idOrderDetail,omitempty"` IsoCode string `url:"isoCode,omitempty"` ProductAttributeId float64 `url:"productAttributeId,omitempty"` ProductId float64 `url:"productId,omitempty"` ProductQuantity float64 `url:"productQuantity,omitempty"` Refund float64 `url:"refund,omitempty"` RefundTaxExcl float64 `url:"refundTaxExcl,omitempty"` UniqueProductId string `url:"uniqueProductId,omitempty"` UnitPriceTaxExcl float64 `url:"unitPriceTaxExcl,omitempty"` UnitPriceTaxIncl float64 `url:"unitPriceTaxIncl,omitempty"` GenericListParams }
type OrderDetailsResponse ¶
type OrderDetailsResponse struct { OrderDetail *OrderDetail `json:"item,omitempty"` OrderDetails *[]OrderDetail `json:"items,omitempty"` GenericListResponse }
type OrderDetailsService ¶
type OrderDetailsService service
OrderDetail service
func (*OrderDetailsService) Get ¶
func (service *OrderDetailsService) Get(shopID string, shopContentId string) (*OrderDetailsResponse, *http.Response, error)
Get a orderDetail. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/OrderDetails_getSingleItem
func (*OrderDetailsService) List ¶
func (service *OrderDetailsService) List(shopID string, opts *OrderDetailListParams) (*OrderDetailsResponse, *http.Response, error)
List order details. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/OrderDetails_getPaginatedItems
type OrderListParams ¶
type OrderListParams struct { IdCarrier int `url:"idCarrier,omitempty"` CurrentState int `url:"currentState,omitempty"` CurrentStateStart int `url:"currentStateStart,omitempty"` CurrentStateEnd int `url:"currentStateEnd,omitempty"` ConversionRate float64 `url:"conversionRate,omitempty"` ConversionRateStart float64 `url:"conversionRateStart,omitempty"` ConversionRateEnd float64 `url:"conversionRateEnd,omitempty"` Refund float64 `url:"refund,omitempty"` RefundStart float64 `url:"refundStart,omitempty"` RefundEnd float64 `url:"refundEnd,omitempty"` RefundTaxExcl float64 `url:"refundTaxExcl,omitempty"` RefundTaxExclStart float64 `url:"refundTaxExclStart,omitempty"` RefundTaxExclEnd float64 `url:"refundTaxExclEnd,omitempty"` ShippingCost float64 `url:"shippingCost,omitempty"` ShippingCostStart float64 `url:"shippingCostStart,omitempty"` ShippingCostEnd float64 `url:"shippingCostEnd,omitempty"` TotalPaidReal float64 `url:"totalPaidReal,omitempty"` TotalPaidRealStart float64 `url:"totalPaidRealStart,omitempty"` TotalPaidRealEnd float64 `url:"totalPaidRealEnd,omitempty"` TotalPaidTax float64 `url:"totalPaidTax,omitempty"` TotalPaidTaxStart float64 `url:"totalPaidTaxStart,omitempty"` TotalPaidTaxEnd float64 `url:"totalPaidTaxEnd,omitempty"` TotalPaidTaxExcl float64 `url:"totalPaidTaxExcl,omitempty"` TotalPaidTaxExclStart float64 `url:"totalPaidTaxExclStart,omitempty"` TotalPaidTaxExclEnd float64 `url:"totalPaidTaxExclEnd,omitempty"` TotalPaidTaxIncl float64 `url:"totalPaidTaxIncl,omitempty"` TotalPaidTaxInclStart float64 `url:"totalPaidTaxInclStart,omitempty"` TotalPaidTaxInclEnd float64 `url:"totalPaidTaxInclEnd,omitempty"` Currency string `url:"currency,omitempty"` IdCart string `url:"idCart,omitempty"` IdCustomer string `url:"idCustomer,omitempty"` IdOrder string `url:"idOrder,omitempty"` DeliveryCountryCode string `url:"deliveryCountryCode,omitempty"` InvoiceCountryCode string `url:"invoiceCountryCode,omitempty"` PaymentMode string `url:"paymentMode,omitempty"` PaymentModule string `url:"paymentModule,omitempty"` Reference string `url:"reference,omitempty"` IsPaid *bool `url:"isPaid,omitempty"` NewCustomer *bool `url:"newCustomer,omitempty"` GenericListParams }
type OrderStatusHistory ¶
type OrderStatusHistory struct { ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` IDOrderHistory *int `json:"idOrderHistory,omitempty"` IDOrder string `json:"idOrder,omitempty"` DateAdd string `json:"dateAdd,omitempty"` IDOrderState *int `json:"idOrderState,omitempty"` Name string `json:"name,omitempty"` Template string `json:"template,omitempty"` IsValidated *bool `json:"isValidated,omitempty"` IsDelivered *bool `json:"isDelivered,omitempty"` IsShipped *bool `json:"isShipped,omitempty"` IsPaid *bool `json:"isPaid,omitempty"` IsDeleted *bool `json:"isDeleted,omitempty"` TotalPaidTaxExcl *float64 `json:"totalPaidTaxExcl,omitempty"` RefundTaxExcl *float64 `json:"refundTaxExcl,omitempty"` }
type OrderStatusHistoryListParams ¶
type OrderStatusHistoryListParams struct { DateAdd string `url:"dateAdd,omitempty"` IdOrder string `url:"idOrder,omitempty"` IdOrderHistory int `url:"idOrderHistory,omitempty"` IdOrderState string `url:"idOrderState,omitempty"` IsDeleted bool `url:"isDeleted,omitempty"` IsDelivered bool `url:"isDelivered,omitempty"` IsPaid bool `url:"isPaid,omitempty"` IsShipped bool `url:"isShipped,omitempty"` IsValidated bool `url:"isValidated,omitempty"` Name string `url:"name,omitempty"` RefundTaxExcl int `url:"refundTaxExcl,omitempty"` Template string `url:"template,omitempty"` TotalPaidTaxExcl int `url:"totalPaidTaxExcl,omitempty"` GenericListParams }
type OrderStatusHistoryResponse ¶
type OrderStatusHistoryResponse struct { OrderStatusHistory *OrderStatusHistory `json:"item,omitempty"` OrderStatusHistories *[]OrderStatusHistory `json:"items,omitempty"` GenericListResponse }
type OrderStatusHistoryService ¶
type OrderStatusHistoryService service
OrderStatusHistory service
func (*OrderStatusHistoryService) Get ¶
func (service *OrderStatusHistoryService) Get(shopID string, shopContentId string) (*OrderStatusHistoryResponse, *http.Response, error)
Get a orderDetail. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/OrderStatusHistory_getSingleItem
func (*OrderStatusHistoryService) List ¶
func (service *OrderStatusHistoryService) List(shopID string, opts *OrderStatusHistoryListParams) (*OrderStatusHistoryResponse, *http.Response, error)
List order details. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/OrderStatusHistory_getPaginatedItems
type OrdersResponse ¶
type OrdersResponse struct { Order *Order `json:"item,omitempty"` Orders *[]Order `json:"items,omitempty"` GenericListResponse }
type OrdersService ¶
type OrdersService service
Order service
func (*OrdersService) Get ¶
func (service *OrdersService) Get(shopID string, shopContentId string) (*OrdersResponse, *http.Response, error)
Get a order. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Orders_getSingleItem
func (*OrdersService) List ¶
func (service *OrdersService) List(shopID string, opts *OrderListParams) (*OrdersResponse, *http.Response, error)
List orders. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Orders_getPaginatedItems
type Product ¶
type Product struct { IDProduct int `json:"idProduct,omitempty"` IDAttribute int `json:"idAttribute,omitempty"` IDCategoryDefault int `json:"idCategoryDefault,omitempty"` Quantity int `json:"quantity,omitempty"` AdditionalDeliveryTimes int `json:"additionalDeliveryTimes,omitempty"` AdditionalShippingCost int `json:"additionalShippingCost,omitempty"` UnitPriceRatio int `json:"unitPriceRatio,omitempty"` IDCategoryDefaultBigint int `json:"idCategoryDefaultBigint,omitempty"` IDManufacturer int `json:"idManufacturer,omitempty"` IDSupplier int `json:"idSupplier,omitempty"` Weight float64 `json:"weight,omitempty"` PriceTaxIncl float64 `json:"priceTaxIncl,omitempty"` PriceTaxExcl float64 `json:"priceTaxExcl,omitempty"` SalePriceTaxExcl float64 `json:"salePriceTaxExcl,omitempty"` SalePriceTaxIncl float64 `json:"salePriceTaxIncl,omitempty"` Width float64 `json:"width,omitempty"` Height float64 `json:"height,omitempty"` Depth float64 `json:"depth,omitempty"` Tax float64 `json:"tax,omitempty"` SaleTax float64 `json:"saleTax,omitempty"` ID string `json:"id,omitempty"` ShopID string `json:"shopId,omitempty"` UniqueProductID string `json:"uniqueProductId,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` DescriptionShort string `json:"descriptionShort,omitempty"` IsoCode string `json:"isoCode,omitempty"` DefaultCategory string `json:"defaultCategory,omitempty"` LinkRewrite string `json:"linkRewrite,omitempty"` Reference string `json:"reference,omitempty"` Upc string `json:"upc,omitempty"` Ean string `json:"ean,omitempty"` Isbn string `json:"isbn,omitempty"` Condition string `json:"condition,omitempty"` Visibility string `json:"visibility,omitempty"` Manufacturer string `json:"manufacturer,omitempty"` Link string `json:"link,omitempty"` Cover string `json:"cover,omitempty"` Attributes string `json:"attributes,omitempty"` Features string `json:"features,omitempty"` Images string `json:"images,omitempty"` CategoryPath string `json:"categoryPath,omitempty"` CategoryIDPath string `json:"categoryIdPath,omitempty"` IDProductAttribute string `json:"idProductAttribute,omitempty"` AvailableDateLegacy string `json:"availableDateLegacy,omitempty"` DeliveryInStock string `json:"deliveryInStock,omitempty"` DeliveryOutStock string `json:"deliveryOutStock,omitempty"` SaleDate string `json:"saleDate,omitempty"` Unity string `json:"unity,omitempty"` PricePerUnit string `json:"pricePerUnit,omitempty"` Mpn string `json:"mpn,omitempty"` Active *bool `json:"active,omitempty"` Deleted *bool `json:"deleted,omitempty"` IsDefaultAttribute *bool `json:"isDefaultAttribute,omitempty"` AvailableForOrder *bool `json:"availableForOrder,omitempty"` IsBundle *bool `json:"isBundle,omitempty"` IsVirtual *bool `json:"isVirtual,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` LastSyncedAt string `json:"lastSyncedAt,omitempty"` DeletedAt string `json:"deletedAt,omitempty"` AvailableDate string `json:"availableDate,omitempty"` }
type ProductListParams ¶
type ProductListParams struct { IdAttribute int `url:"idAttribute,omitempty"` IdAttributeStart int `url:"idAttributeStart,omitempty"` IdAttributeEnd int `url:"idAttributeEnd,omitempty"` IdCategoryDefault int `url:"idCategoryDefault,omitempty"` IdCategoryDefaultStart int `url:"idCategoryDefaultStart,omitempty"` IdCategoryDefaultEnd int `url:"idCategoryDefaultEnd,omitempty"` IdCategoryDefaultBigint int `url:"idCategoryDefaultBigint,omitempty"` IdCategoryDefaultBigintStart int `url:"idCategoryDefaultBigintStart,omitempty"` IdCategoryDefaultBigintEnd int `url:"idCategoryDefaultBigintEnd,omitempty"` IdManufacturer int `url:"idManufacturer,omitempty"` IdProduct int `url:"idProduct,omitempty"` IdProductStart int `url:"idProductStart,omitempty"` IdProductEnd int `url:"idProductEnd,omitempty"` IdSupplier int `url:"idSupplier,omitempty"` Quantity int `url:"quantity,omitempty"` QuantityStart int `url:"quantityStart,omitempty"` QuantityEnd int `url:"quantityEnd,omitempty"` AdditionalDeliveryTimes float64 `url:"additionalDeliveryTimes,omitempty"` AdditionalDeliveryTimesStart float64 `url:"additionalDeliveryTimesStart,omitempty"` AdditionalDeliveryTimesEnd float64 `url:"additionalDeliveryTimesEnd,omitempty"` AdditionalShippingCost float64 `url:"additionalShippingCost,omitempty"` AdditionalShippingCostStart float64 `url:"additionalShippingCostStart,omitempty"` AdditionalShippingCostEnd float64 `url:"additionalShippingCostEnd,omitempty"` Depth float64 `url:"depth,omitempty"` DepthStart float64 `url:"depthStart,omitempty"` DepthEnd float64 `url:"depthEnd,omitempty"` Height float64 `url:"height,omitempty"` HeightStart float64 `url:"heightStart,omitempty"` HeightEnd float64 `url:"heightEnd,omitempty"` PricePerUnit float64 `url:"pricePerUnit,omitempty"` PricePerUnitStart float64 `url:"pricePerUnitStart,omitempty"` PricePerUnitEnd float64 `url:"pricePerUnitEnd,omitempty"` PriceTaxExcl float64 `url:"priceTaxExcl,omitempty"` PriceTaxExclStart float64 `url:"priceTaxExclStart,omitempty"` PriceTaxExclEnd float64 `url:"priceTaxExclEnd,omitempty"` PriceTaxIncl float64 `url:"priceTaxIncl,omitempty"` PriceTaxInclStart float64 `url:"priceTaxInclStart,omitempty"` PriceTaxInclEnd float64 `url:"priceTaxInclEnd,omitempty"` SalePriceTaxExcl float64 `url:"salePriceTaxExcl,omitempty"` SalePriceTaxExclStart float64 `url:"salePriceTaxExclStart,omitempty"` SalePriceTaxExclEnd float64 `url:"salePriceTaxExclEnd,omitempty"` SalePriceTaxIncl float64 `url:"salePriceTaxIncl,omitempty"` SalePriceTaxInclStart float64 `url:"salePriceTaxInclStart,omitempty"` SalePriceTaxInclEnd float64 `url:"salePriceTaxInclEnd,omitempty"` SaleTax float64 `url:"saleTax,omitempty"` SaleTaxStart float64 `url:"saleTaxStart,omitempty"` SaleTaxEnd float64 `url:"saleTaxEnd,omitempty"` Tax float64 `url:"tax,omitempty"` TaxStart float64 `url:"taxStart,omitempty"` TaxEnd float64 `url:"taxEnd,omitempty"` UnitPriceRatio float64 `url:"unitPriceRatio,omitempty"` UnitPriceRatioStart float64 `url:"unitPriceRatioStart,omitempty"` UnitPriceRatioEnd float64 `url:"unitPriceRatioEnd,omitempty"` Weight float64 `url:"weight,omitempty"` WeightStart float64 `url:"weightStart,omitempty"` WeightEnd float64 `url:"weightEnd,omitempty"` Width float64 `url:"width,omitempty"` WidthStart float64 `url:"widthStart,omitempty"` WidthEnd float64 `url:"widthEnd,omitempty"` Active *bool `url:"active,omitempty"` AvailableForOrder *bool `url:"availableForOrder,omitempty"` Deleted *bool `url:"deleted,omitempty"` IsBundle *bool `url:"isBundle,omitempty"` IsDefaultAttribute *bool `url:"isDefaultAttribute,omitempty"` IsVirtual *bool `url:"isVirtual,omitempty"` DeletedAtStart string `url:"deletedAtStart,omitempty"` DeletedAtEnd string `url:"deletedAtEnd,omitempty"` DeliveryInStock string `url:"deliveryInStock,omitempty"` DeliveryOutStock string `url:"deliveryOutStock,omitempty"` Attributes string `url:"attributes,omitempty"` AvailableDate string `url:"availableDate,omitempty"` AvailableDateStart string `url:"availableDateStart,omitempty"` AvailableDateEnd string `url:"availableDateEnd,omitempty"` AvailableDateLegacy string `url:"availableDateLegacy,omitempty"` CategoryIdPath string `url:"categoryIdPath,omitempty"` CategoryPath string `url:"categoryPath,omitempty"` Condition string `url:"condition,omitempty"` Cover string `url:"cover,omitempty"` DefaultCategory string `url:"defaultCategory,omitempty"` DeletedAt string `url:"deletedAt,omitempty"` Description string `url:"description,omitempty"` DescriptionShort string `url:"descriptionShort,omitempty"` Ean string `url:"ean,omitempty"` Features string `url:"features,omitempty"` IdProductAttribute string `url:"idProductAttribute,omitempty"` Images string `url:"images,omitempty"` Isbn string `url:"isbn,omitempty"` IsoCode string `url:"isoCode,omitempty"` Link string `url:"link,omitempty"` LinkRewrite string `url:"linkRewrite,omitempty"` Manufacturer string `url:"manufacturer,omitempty"` Mpn string `url:"mpn,omitempty"` Name string `url:"name,omitempty"` Reference string `url:"reference,omitempty"` SaleDate string `url:"saleDate,omitempty"` UniqueProductId string `url:"uniqueProductId,omitempty"` Unity string `url:"unity,omitempty"` Upc string `url:"upc,omitempty"` Visibility string `url:"visibility,omitempty"` GenericListParams }
type ProductsResponse ¶
type ProductsResponse struct { Product *Product `json:"item,omitempty"` Products *[]Product `json:"items,omitempty"` GenericListResponse }
type ProductsService ¶
type ProductsService service
Product service
func (*ProductsService) Get ¶
func (service *ProductsService) Get(shopID string, shopContentId string) (*ProductsResponse, *http.Response, error)
Get a product. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Products_getSingleItem
func (*ProductsService) List ¶
func (service *ProductsService) List(shopID string, opts *ProductListParams) (*ProductsResponse, *http.Response, error)
List products. Reference: https://docs.cloudsync.prestashop.com/api-doc/expose-raw-api#/operations/Products_getPaginatedItems
type RawApi ¶
type RawApi struct { Bundles *BundlesService Carriers *CarriersService CarrierDetails *CarrierDetailsService CarrierTaxes *CarrierTaxesService Carts *CartsService CartProducts *CartProductsService CartRules *CartRulesService Categories *CategoriesService Currencies *CurrenciesService CustomProductCarriers *CustomProductCarriersService Customers *CustomersService Orders *OrdersService OrderDetails *OrderDetailsService OrderStatusHistory *OrderStatusHistoryService Products *ProductsService }
type ReportingApi ¶
type ReportingApi struct { SyncDetails *SyncDetailsService SyncErrors *SyncErrorsService }
type ResourceType ¶
type ResourceType string
var ( // Resourece type 'raw' ResourceTypeRaw ResourceType = "raw" // Resourece type 'reporting' ResourceTypeReporting ResourceType = "reporting" // Resourece type 'sync' ResourceTypeSync ResourceType = "sync" )
type SyncApi ¶
type SyncApi struct {
Sync *TriggerSyncService
}
type SyncDetailsOnboardingResponse ¶ added in v0.1.2
type SyncDetailsParams ¶ added in v0.1.2
type SyncDetailsParams struct {
ShopContent string `url:"shopContent,omitempty"`
}
type SyncDetailsService ¶ added in v0.1.2
type SyncDetailsService service
SyncErrors service
func (*SyncDetailsService) GetShopSyncOnboarding ¶ added in v0.1.2
func (service *SyncDetailsService) GetShopSyncOnboarding(shopID string) (*SyncDetailsOnboardingResponse, *http.Response, error)
Get all errors by partner. Reference: https://docs.cloudsync.prestashop.com/api-doc/reporting-api#/operations/ShopOnboardingController_getOnboardingInfoByShopId
func (*SyncDetailsService) GetShopSyncSetup ¶ added in v0.1.2
func (service *SyncDetailsService) GetShopSyncSetup(shopID string) (*SyncDetailsSetupResponse, *http.Response, error)
Get all errors by partner. Reference: https://docs.cloudsync.prestashop.com/api-doc/reporting-api#/operations/ShopSyncSetupController_getShopSyncSetup
func (*SyncDetailsService) GetShopSyncSummary ¶ added in v0.1.2
func (service *SyncDetailsService) GetShopSyncSummary(shopID string, opts *SyncDetailsParams) (*SyncDetailsSummaryResponse, *http.Response, error)
Get all errors by partner. Reference: https://docs.cloudsync.prestashop.com/api-doc/reporting-api#/operations/ShopSyncSummaryController_getSyncSummaryByShopId
type SyncDetailsSetupResponse ¶ added in v0.1.2
type SyncDetailsSummaryResponse ¶ added in v0.1.2
type SyncErrorsParams ¶
type SyncErrorsResponse ¶
type SyncErrorsService ¶
type SyncErrorsService service
SyncErrors service
func (*SyncErrorsService) GetSyncErrorsByPartner ¶
func (service *SyncErrorsService) GetSyncErrorsByPartner(vendorID string, opts *SyncErrorsParams) (*SyncErrorsResponse, *http.Response, error)
Get all errors by partner. Reference: https://docs.cloudsync.prestashop.com/api-doc/reporting-api#/operations/VendorErrorCodeController_getVendorErrorsCode
func (*SyncErrorsService) GetSyncErrorsByShop ¶
func (service *SyncErrorsService) GetSyncErrorsByShop(shopID string, opts *SyncErrorsParams) (*SyncErrorsResponse, *http.Response, error)
Get all errors by shop. Reference: https://docs.cloudsync.prestashop.com/api-doc/reporting-api#/operations/ShopErrorCodeController_getShopErrorsCode
type SyncTrigger ¶
type TriggerResponse ¶
type TriggerResponse struct {
Result string `json:"result,omitempty"`
}
type TriggerSyncService ¶
type TriggerSyncService service
Trigger service
func (*TriggerSyncService) TriggerFullSync ¶
func (service *TriggerSyncService) TriggerFullSync(trigger *SyncTrigger) (*TriggerResponse, *http.Response, error)
Trigger sync. Reference: https://docs.cloudsync.prestashop.com/api-doc/sync-api#/operations/AuthSyncController_triggerFullSyncAuth
func (*TriggerSyncService) TriggerSync ¶
func (service *TriggerSyncService) TriggerSync(trigger *SyncTrigger) (*TriggerResponse, *http.Response, error)
Trigger sync. Reference: https://docs.cloudsync.prestashop.com/api-doc/sync-api#/operations/AuthSyncController_triggerSyncAuth
Source Files ¶
- autheniticate.go
- generic.go
- helpers.go
- prestashop.go
- raw_bundles.go
- raw_carriers.go
- raw_carriers_details.go
- raw_carriers_taxes.go
- raw_cart_products.go
- raw_cart_rules.go
- raw_carts.go
- raw_categories.go
- raw_currencies.go
- raw_custom_product_carriers.go
- raw_customers.go
- raw_order_details.go
- raw_order_status_history.go
- raw_orders.go
- raw_products.go
- report_sync_details.go
- report_sync_error.go
- sync_trigger.go