Secuconnect\Client\LoyaltyStoregroupsApi

All URIs are relative to https://connect-testing.secupay-ag.de/api/v2

Method HTTP request Description
addStoreGroup POST /Loyalty/Storegroups POST Loyalty/Storegroups
getAll GET /Loyalty/StoreGroups GET Loyalty/StoreGroups
getOne GET /Loyalty/StoreGroups/{loyaltyStoreGroupId} GET Loyalty/StoreGroups/{loyaltyStoreGroupId}
removeStoreGroup DELETE /Loyalty/StoreGroups/{loyaltyStoreGroupId} DELETE Loyalty/StoreGroups/{loyaltyStoreGroupId}
updateStoreGroup PUT /Loyalty/StoreGroups/{loyaltyStoreGroupId} PUT Loyalty/StoreGroups/{loyaltyStoreGroupId}

addStoreGroup

\Secuconnect\Client\Model\LoyaltyStoregroupsProductModel addStoreGroup($body)

POST Loyalty/Storegroups

Add new loyalty store group

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth_token
Secuconnect\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Secuconnect\Client\Api\LoyaltyStoregroupsApi();
$body = new \Secuconnect\Client\Model\LoyaltyStoregroupsDTO(); // \Secuconnect\Client\Model\LoyaltyStoregroupsDTO | Loyalty store group properties

try {
    $result = $api_instance->addStoreGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LoyaltyStoregroupsApi->addStoreGroup: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
body \Secuconnect\Client\Model\LoyaltyStoregroupsDTO Loyalty store group properties

Return type

\Secuconnect\Client\Model\LoyaltyStoregroupsProductModel

Authorization

oauth_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getAll

\Secuconnect\Client\Model\LoyaltyStoregroupsList getAll($count, $offset, $fields, $q, $sort)

GET Loyalty/StoreGroups

Get a list of loyalty store groups

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth_token
Secuconnect\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Secuconnect\Client\Api\LoyaltyStoregroupsApi();
$count = 56; // int | The number of items to return.
$offset = 56; // int | The position within the whole result set to start returning items (First element is at 0).
$fields = "fields_example"; // string | List of fields to include in the result. Nested properties can be accessed with this notation: prop1.prop2  Example: prop3,prop1.prop2
$q = "q_example"; // string | A query string to restrict the returned items to given conditions. The query string must consist of any combination of single expressions in the form property:condition.  *                  A condition may contain:  *                      - wildcard \"*\" for any number of characters  *                      - wildcard \"?\" for one character  *                      - ranges in the form [value TO value]  *  *                  Single expressions may combined by 'AND', 'OR', 'NOT' operators and parenthesis '(', ')' for grouping.  *                  Property names can be nested like \"prop1.prop2\".  *                  Example: (NOT customer.name:meier*) AND (customer.age:[30 TO 40] OR customer.age:[50 TO 60])  *
$sort = "sort_example"; // string | String with comma separated pairs of field:order (e.g. contact.surname:asc,contact.comapnyname:desc). Result set will be sorted by included fields, in ascending 'asc', or descending 'dsc' order.

try {
    $result = $api_instance->getAll($count, $offset, $fields, $q, $sort);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LoyaltyStoregroupsApi->getAll: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
count int The number of items to return. [optional]
offset int The position within the whole result set to start returning items (First element is at 0). [optional]
fields string List of fields to include in the result. Nested properties can be accessed with this notation: prop1.prop2 Example: prop3,prop1.prop2 [optional]
q string A query string to restrict the returned items to given conditions. The query string must consist of any combination of single expressions in the form property:condition. A condition may contain: - wildcard \"\" for any number of characters - wildcard \"?\" for one character - ranges in the form [value TO value] Single expressions may combined by 'AND', 'OR', 'NOT' operators and parenthesis '(', ')' for grouping. Property names can be nested like \"prop1.prop2\". Example: (NOT customer.name:meier) AND (customer.age:[30 TO 40] OR customer.age:[50 TO 60]) * [optional]
sort string String with comma separated pairs of field:order (e.g. contact.surname:asc,contact.comapnyname:desc). Result set will be sorted by included fields, in ascending 'asc', or descending 'dsc' order. [optional]

Return type

LoyaltyStoregroupsList

Properties

Name Type Description Notes
count int Number of existing loyalty store groups [optional]
data \Secuconnect\Client\Model\LoyaltyStoregroupsProductModel[] GET Loyalty/StoreGroups [optional]

[Back to Model list] [Back to API list] [Back to README]

Authorization

oauth_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getOne

\Secuconnect\Client\Model\LoyaltyStoregroupsProductModel getOne($loyalty_store_group_id)

GET Loyalty/StoreGroups/{loyaltyStoreGroupId}

Get loyalty store group for a specific id

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth_token
Secuconnect\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Secuconnect\Client\Api\LoyaltyStoregroupsApi();
$loyalty_store_group_id = "loyalty_store_group_id_example"; // string | loyalty store group id

try {
    $result = $api_instance->getOne($loyalty_store_group_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LoyaltyStoregroupsApi->getOne: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
loyalty_store_group_id string loyalty store group id

Return type

\Secuconnect\Client\Model\LoyaltyStoregroupsProductModel

Authorization

oauth_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

removeStoreGroup

\Secuconnect\Client\Model\LoyaltyStoregroupsProductModel[] removeStoreGroup($loyalty_store_group_id)

DELETE Loyalty/StoreGroups/{loyaltyStoreGroupId}

Remove loyalty store group

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth_token
Secuconnect\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Secuconnect\Client\Api\LoyaltyStoregroupsApi();
$loyalty_store_group_id = "loyalty_store_group_id_example"; // string | Loyalty store group id

try {
    $result = $api_instance->removeStoreGroup($loyalty_store_group_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LoyaltyStoregroupsApi->removeStoreGroup: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
loyalty_store_group_id string Loyalty store group id

Return type

\Secuconnect\Client\Model\LoyaltyStoregroupsProductModel[]

Authorization

oauth_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateStoreGroup

\Secuconnect\Client\Model\LoyaltyStoregroupsProductModel updateStoreGroup($loyalty_store_group_id, $body)

PUT Loyalty/StoreGroups/{loyaltyStoreGroupId}

Update loyalty store group

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth_token
Secuconnect\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Secuconnect\Client\Api\LoyaltyStoregroupsApi();
$loyalty_store_group_id = "loyalty_store_group_id_example"; // string | Loyalty store group id
$body = new \Secuconnect\Client\Model\LoyaltyStoregroupsDTO(); // \Secuconnect\Client\Model\LoyaltyStoregroupsDTO | Loyalty store group properties

try {
    $result = $api_instance->updateStoreGroup($loyalty_store_group_id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LoyaltyStoregroupsApi->updateStoreGroup: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
loyalty_store_group_id string Loyalty store group id
body \Secuconnect\Client\Model\LoyaltyStoregroupsDTO Loyalty store group properties

Return type

\Secuconnect\Client\Model\LoyaltyStoregroupsProductModel

Authorization

oauth_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]