new fields
This commit is contained in:
parent
b7ae093cc4
commit
0298a1ad58
@ -27,6 +27,14 @@ class Subscription
|
|||||||
*/
|
*/
|
||||||
public $channel;
|
public $channel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @JMS\Type("string")
|
||||||
|
* @JMS\SerializedName("subscription")
|
||||||
|
*/
|
||||||
|
public $subscription;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var bool
|
* @var bool
|
||||||
*
|
*
|
||||||
@ -39,7 +47,7 @@ class Subscription
|
|||||||
* @var int
|
* @var int
|
||||||
*
|
*
|
||||||
* @JMS\Type("int")
|
* @JMS\Type("int")
|
||||||
* @JMS\SerializedName("unsubscribeMessageId")
|
* @JMS\SerializedName("messageId")
|
||||||
*/
|
*/
|
||||||
public $unsubscribeMessageId;
|
public $messageId;
|
||||||
}
|
}
|
||||||
|
@ -797,14 +797,15 @@ class Customers extends AbstractApiResourceGroup
|
|||||||
*
|
*
|
||||||
* $client = SimpleClientFactory::createClient('https://test.retailcrm.pro', 'apiKey');
|
* $client = SimpleClientFactory::createClient('https://test.retailcrm.pro', 'apiKey');
|
||||||
*
|
*
|
||||||
* $subscription = new Subscription();
|
* $subscription = new Subscription();
|
||||||
* $subscription->channel = 'waba';
|
* $subscription->channel = 'waba';
|
||||||
* $subscription->active = false;
|
* $subscription->subscription = 'category';
|
||||||
* $subscription->unsubscribeMessageId = 123;
|
* $subscription->active = false;
|
||||||
* $request = new CustomersSubscriptionsRequest();
|
* $subscription->messageId = 123;
|
||||||
* $request->by = ByIdentifier::ID;
|
* $request = new CustomersSubscriptionsRequest();
|
||||||
* $request->site = 'aliexpress';
|
* $request->by = ByIdentifier::ID;
|
||||||
* $request->subscriptions = [$subscription];
|
* $request->site = 'aliexpress';
|
||||||
|
* $request->subscriptions = [$subscription];
|
||||||
*
|
*
|
||||||
* try {
|
* try {
|
||||||
* $response = $client->customers->subscriptions(4770, $request);
|
* $response = $client->customers->subscriptions(4770, $request);
|
||||||
|
@ -2786,8 +2786,9 @@ EOF;
|
|||||||
|
|
||||||
$subscription = new Subscription();
|
$subscription = new Subscription();
|
||||||
$subscription->channel = 'waba';
|
$subscription->channel = 'waba';
|
||||||
|
$subscription->subscription = 'category';
|
||||||
$subscription->active = false;
|
$subscription->active = false;
|
||||||
$subscription->unsubscribeMessageId = 123;
|
$subscription->messageId = 123;
|
||||||
|
|
||||||
$request = new CustomersSubscriptionsRequest();
|
$request = new CustomersSubscriptionsRequest();
|
||||||
$request->by = ByIdentifier::ID;
|
$request->by = ByIdentifier::ID;
|
||||||
|
Loading…
Reference in New Issue
Block a user