magento.address
Module magento.address
API
Definitions
![](https://bcentral-packageicons.azureedge.net/images/ballerinax_magento.address_1.3.1.png)
ballerinax/magento.address Ballerina library
Overview
This is a generated connector for Magento REST API v2.2 OpenAPI specification.
The Magento B2B Rest API service enables applications to build and manage a customized commerce store.
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Obtain tokens by following this guide
Clients![](/images/permalink.svg)
magento.address: Client![](/images/permalink.svg)
This is a generated connector for Magento REST API v2.2 OpenAPI specification. The Magento B2B Rest API service enables applications to build and manage a customized commerce store.
Constructor![](/images/permalink.svg)
Gets invoked to initialize the connector
.
The connector initialization requires setting the API credentials.
Follow this guide and obtain tokens.
init (ConnectionConfig config, string serviceUrl)
- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string - URL of the target service
customerAddressDeleteByIdV1![](/images/permalink.svg)
Delete customer address by ID.
Parameters
- addressId int - Address ID
updateAmazonPaymentAddressV1![](/images/permalink.svg)
function updateAmazonPaymentAddressV1(string amazonOrderReferenceId, AmazonbillingaddressAmazonorderreferenceidBody payload) returns string|error
Update Amazon-billing-address by ID
Parameters
- amazonOrderReferenceId string - Amazon order reference ID
- payload AmazonbillingaddressAmazonorderreferenceidBody - Address Consent Token
updateAmazonPaymentShippingAddress![](/images/permalink.svg)
function updateAmazonPaymentShippingAddress(string amazonOrderReferenceId, AmazonshippingaddressAmazonorderreferenceidBody payload) returns string|error
Update amazon-shipping-address by reference ID
Parameters
- amazonOrderReferenceId string - Amazon Order Reference ID
- payload AmazonshippingaddressAmazonorderreferenceidBody - Address consent token
deleteAmazonPaymentOrderReferenceV1![](/images/permalink.svg)
amazon/order-ref
getAnalyticsLinkV1![](/images/permalink.svg)
function getAnalyticsLinkV1() returns AnalyticsDataLinkInterface|error
analytics/link
Return Type
- AnalyticsDataLinkInterface|error - 200 Success.
Records![](/images/permalink.svg)
magento.address: AmazonbillingaddressAmazonorderreferenceidBody![](/images/permalink.svg)
Address Consent Token
Fields
- addressConsentToken string - Address Consent Token
magento.address: AmazonbillingaddressAmazonorderreferenceidBody1![](/images/permalink.svg)
Address Consent Token(XML)
Fields
- addressConsentToken string - Address Consent Token
magento.address: AmazonshippingaddressAmazonorderreferenceidBody![](/images/permalink.svg)
Address Consent Token (JSON)
Fields
- addressConsentToken string - Address Consent Token
magento.address: AmazonshippingaddressAmazonorderreferenceidBody1![](/images/permalink.svg)
Address Consent Token (XML)
Fields
- addressConsentToken string - Address Consent Token
magento.address: AnalyticsDataLinkInterface![](/images/permalink.svg)
Interface LinkInterface Represents link with collected data and initialized vector for decryption.
Fields
- url string - URL
- initialization_vector string - initialization vector
magento.address: ClientHttp1Settings![](/images/permalink.svg)
Provides settings related to HTTP/1.x protocol.
Fields
- keepAlive KeepAlive(default http:KEEPALIVE_AUTO) - Specifies whether to reuse a connection for multiple requests
- chunking Chunking(default http:CHUNKING_AUTO) - The chunking behaviour of the request
- proxy ProxyConfig? - Proxy server related options
magento.address: ConnectionConfig![](/images/permalink.svg)
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth BearerTokenConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings? - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings? - Configurations related to HTTP/2 protocol
- timeout decimal(default 60) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded
/x-forwarded
header
- poolConfig PoolConfiguration? - Configurations associated with request pooling
- cache CacheConfig? - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding
) header
- circuitBreaker CircuitBreakerConfig? - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig RetryConfig? - Configurations associated with retrying
- responseLimits ResponseLimitConfigs? - Configurations associated with inbound response size limits
- secureSocket ClientSecureSocket? - SSL/TLS-related options
- proxy ProxyConfig? - Proxy server related options
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
magento.address: ErrorErrorsItem![](/images/permalink.svg)
Error details
Fields
- message string? - Error message
- parameters ErrorParameters? - Error parameters list
magento.address: ErrorParametersItem![](/images/permalink.svg)
Error parameters item
Fields
- resources string? - ACL resource
- fieldName string? - Missing or invalid field name
- fieldValue string? - Incorrect field value
magento.address: ErrorResponse![](/images/permalink.svg)
Fields
- message string - Error message
- errors ErrorErrors? - Errors list
- code int? - Error code
- parameters ErrorParameters? - Error parameters list
- trace string? - Stack trace
magento.address: ProxyConfig![](/images/permalink.svg)
Proxy server configurations to be used with the HTTP client endpoint.
Fields
- host string(default "") - Host name of the proxy server
- port int(default 0) - Proxy server port
- userName string(default "") - Proxy server username
- password string(default "") - Proxy server password
Import
import ballerinax/magento.address;
Metadata
Released date: over 1 year ago
Version: 1.3.1
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.4.1
GraalVM compatible: Yes
Pull count
Total: 0
Current verison: 0
Weekly downloads
Keywords
Commerce/eCommerce
Cost/Paid
Contributors
Dependencies