client

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 56 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultHost is the default Host
	// found in Meta (info) section of spec file
	DefaultHost string = "magento.test"
	// DefaultBasePath is the default BasePath
	// found in Meta (info) section of spec file
	DefaultBasePath string = "/rest/default"
)

Variables

View Source
var Default = NewHTTPClient(nil)

Default magento community HTTP client.

View Source
var DefaultSchemes = []string{"https"}

DefaultSchemes are the default schemes found in Meta (info) section of spec file

Functions

This section is empty.

Types

type MagentoCommunity

type MagentoCommunity struct {
	AmazonPaymentAddressManagementV1 amazon_payment_address_management_v1.ClientService

	AmazonPaymentOrderInformationManagementV1 amazon_payment_order_information_management_v1.ClientService

	CatalogAttributeSetRepositoryV1 catalog_attribute_set_repository_v1.ClientService

	CatalogCategoryLinkManagementV1 catalog_category_link_management_v1.ClientService

	CatalogCategoryManagementV1 catalog_category_management_v1.ClientService

	CatalogCategoryRepositoryV1 catalog_category_repository_v1.ClientService

	CatalogInventoryStockRegistryV1 catalog_inventory_stock_registry_v1.ClientService

	CatalogProductAttributeGroupRepositoryV1 catalog_product_attribute_group_repository_v1.ClientService

	CatalogProductAttributeManagementV1 catalog_product_attribute_management_v1.ClientService

	CatalogProductAttributeMediaGalleryManagementV1 catalog_product_attribute_media_gallery_management_v1.ClientService

	CatalogProductAttributeOptionManagementV1 catalog_product_attribute_option_management_v1.ClientService

	CatalogProductAttributeRepositoryV1 catalog_product_attribute_repository_v1.ClientService

	CatalogProductCustomOptionRepositoryV1 catalog_product_custom_option_repository_v1.ClientService

	CatalogProductLinkManagementV1 catalog_product_link_management_v1.ClientService

	CatalogProductLinkTypeListV1 catalog_product_link_type_list_v1.ClientService

	CatalogProductMediaAttributeManagementV1 catalog_product_media_attribute_management_v1.ClientService

	CatalogProductRenderListV1 catalog_product_render_list_v1.ClientService

	CatalogProductRepositoryV1 catalog_product_repository_v1.ClientService

	CatalogProductTierPriceManagementV1 catalog_product_tier_price_management_v1.ClientService

	CatalogProductTypeListV1 catalog_product_type_list_v1.ClientService

	CheckoutGuestPaymentInformationManagementV1 checkout_guest_payment_information_management_v1.ClientService

	CheckoutGuestShippingInformationManagementV1 checkout_guest_shipping_information_management_v1.ClientService

	CheckoutGuestTotalsInformationManagementV1 checkout_guest_totals_information_management_v1.ClientService

	CmsBlockRepositoryV1 cms_block_repository_v1.ClientService

	CmsPageRepositoryV1 cms_page_repository_v1.ClientService

	ConfigurableProductLinkManagementV1 configurable_product_link_management_v1.ClientService

	ConfigurableProductOptionRepositoryV1 configurable_product_option_repository_v1.ClientService

	CustomerAccountManagementV1 customer_account_management_v1.ClientService

	DirectoryCountryInformationAcquirerV1 directory_country_information_acquirer_v1.ClientService

	DirectoryCurrencyInformationAcquirerV1 directory_currency_information_acquirer_v1.ClientService

	GiftMessageGuestCartRepositoryV1 gift_message_guest_cart_repository_v1.ClientService

	GiftMessageGuestItemRepositoryV1 gift_message_guest_item_repository_v1.ClientService

	IntegrationAdminTokenServiceV1 integration_admin_token_service_v1.ClientService

	IntegrationCustomerTokenServiceV1 integration_customer_token_service_v1.ClientService

	InventoryInStorePickupAPIGetPickupLocationsV1 inventory_in_store_pickup_api_get_pickup_locations_v1.ClientService

	PayPalBraintreeAuthV1 pay_pal_braintree_auth_v1.ClientService

	QuoteGuestBillingAddressManagementV1 quote_guest_billing_address_management_v1.ClientService

	QuoteGuestCartItemRepositoryV1 quote_guest_cart_item_repository_v1.ClientService

	QuoteGuestCartManagementV1 quote_guest_cart_management_v1.ClientService

	QuoteGuestCartRepositoryV1 quote_guest_cart_repository_v1.ClientService

	QuoteGuestCartTotalManagementV1 quote_guest_cart_total_management_v1.ClientService

	QuoteGuestCartTotalRepositoryV1 quote_guest_cart_total_repository_v1.ClientService

	QuoteGuestCouponManagementV1 quote_guest_coupon_management_v1.ClientService

	QuoteGuestPaymentMethodManagementV1 quote_guest_payment_method_management_v1.ClientService

	QuoteGuestShipmentEstimationV1 quote_guest_shipment_estimation_v1.ClientService

	QuoteGuestShippingMethodManagementV1 quote_guest_shipping_method_management_v1.ClientService

	SearchV1 search_v1.ClientService

	StoreGroupRepositoryV1 store_group_repository_v1.ClientService

	StoreStoreConfigManagerV1 store_store_config_manager_v1.ClientService

	StoreStoreRepositoryV1 store_store_repository_v1.ClientService

	StoreWebsiteRepositoryV1 store_website_repository_v1.ClientService

	VertexAddressValidationAddressManagementV1 vertex_address_validation_address_management_v1.ClientService

	VertexAddressValidationAPIGuestCleanseAddressV1 vertex_address_validation_api_guest_cleanse_address_v1.ClientService

	Transport runtime.ClientTransport
}

MagentoCommunity is a client for magento community

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *MagentoCommunity

New creates a new magento community client

func NewHTTPClient

func NewHTTPClient(formats strfmt.Registry) *MagentoCommunity

NewHTTPClient creates a new magento community HTTP client.

func NewHTTPClientWithConfig

func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *MagentoCommunity

NewHTTPClientWithConfig creates a new magento community HTTP client, using a customizable transport config.

func (*MagentoCommunity) SetTransport

func (c *MagentoCommunity) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client and all its subresources

type TransportConfig

type TransportConfig struct {
	Host     string
	BasePath string
	Schemes  []string
}

TransportConfig contains the transport related info, found in the meta section of the spec file.

func DefaultTransportConfig

func DefaultTransportConfig() *TransportConfig

DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.

func (*TransportConfig) WithBasePath

func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig

WithBasePath overrides the default basePath, provided by the meta section of the spec file.

func (*TransportConfig) WithHost

func (cfg *TransportConfig) WithHost(host string) *TransportConfig

WithHost overrides the default host, provided by the meta section of the spec file.

func (*TransportConfig) WithSchemes

func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig

WithSchemes overrides the default schemes, provided by the meta section of the spec file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL