Campaign
Campaign
- Full name:
\Onslip360\API\Campaign
- Parent class:
\Onslip360\Onslip360Object
Properties
name
public string $name
rules
public array $rules
type
public \Onslip360\API\Campaign\Type $type
activeLabels
public array|null $activeLabels
amount
public float|null $amount
created
public string|null $created
deleted
public string|null $deleted
description
public string|null $description
discountRate
public float|null $discountRate
endDate
public string|null $endDate
id
public int|null $id
labels
public array|null $labels
locations
public array|null $locations
packagePrice
public bool|null $packagePrice
schedules
public array|null $schedules
startDate
public string|null $startDate
tags
public array|null $tags
updated
public string|null $updated
updatedBy
public int|null $updatedBy
updatedFrom
public int|null $updatedFrom
Methods
__construct
public __construct(string $name, \Onslip360\API\CampaignRules[] $rules, \Onslip360\API\Campaign\Type $type, int[]|null $activeLabels = null, float|null $amount = null, string|null $created = null, string|null $deleted = null, string|null $description = null, float|null $discountRate = null, string|null $endDate = null, int|null $id = null, int[]|null $labels = null, int[]|null $locations = null, bool|null $packagePrice = null, string[]|null $schedules = null, string|null $startDate = null, string[]|null $tags = null, string|null $updated = null, int|null $updatedBy = null, int|null $updatedFrom = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$rules | \Onslip360\API\CampaignRules[] | |
$type | \Onslip360\API\Campaign\Type | |
$activeLabels | int[]|null | |
$amount | float|null | |
$created | string|null | |
$deleted | string|null | |
$description | string|null | |
$discountRate | float|null | |
$endDate | string|null | |
$id | int|null | |
$labels | int[]|null | |
$locations | int[]|null | |
$packagePrice | bool|null | |
$schedules | string[]|null | |
$startDate | string|null | |
$tags | string[]|null | |
$updated | string|null | |
$updatedBy | int|null | |
$updatedFrom | int|null |
Inherited methods
getExtended
public getExtended(string $name): string|null|\Onslip360\Nil
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
setExtended
public setExtended(string $name, string|null|\Onslip360\Nil $value): static
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | string|null|\Onslip360\Nil |
fromJson
public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string|array|\JsonSerializable|\stdClass |
fromJsonArray
public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string[]|array[]|\JsonSerializable[]|\stdClass[] |
jsonSerialize
public jsonSerialize(): array|object
Automatically generated on 2024-11-05