Home > @shopware-pwa/shopware-6-client
# shopware-6-client package
# Functions
Function | Description |
---|---|
getCustomer() | (BETA) Get customer's object |
getCustomerAddresses() | (BETA) Get all customer's addresses |
getCustomerOrders() | (BETA) Get all customer's orders |
getOrderPaymentUrl({ orderId, finishUrl, }) | (BETA) Get payment address to redirect user after placing order. |
invokeGet({ address }) | (BETA) Invoke custom GET request to shopware API. Mostly for plugins usage. You can skip domain and pass only endpoint ex. /api/my/endpoint |
invokePost({ address, payload, }) | (BETA) Invoke custom POST request to shopware API. Mostly for plugins usage. You can skip domain and pass only endpoint ex. /api/my/endpoint |
login({ username, password, }) | (BETA) Login user to shopware instance. |
logout() | (BETA) End up the user session. |
onConfigChange(fn) | (BETA) |
setup(config) | (BETA) Setup configuration. Merge default values with provided in param. This method will override existing config. For config update invoke **update** method. |
update(config) | (BETA) Update current configuration. This will change only provided values. |
# Interfaces
Interface | Description |
---|---|
ClientSettings | (BETA) |
ConfigChangedArgs | (BETA) |
# Variables
Variable | Description |
---|---|
config | (BETA) |