Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add campaigns api #164

Merged
merged 1 commit into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions lib/Api/BuckslipOrdersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ private function modified_build(array $params, $encoding = PHP_QUERY_RFC3986): s
}

/**
* Operation Create
* Operation create
*
* Create
* create
*
* @param string $buckslip_id The ID of the buckslip to which the buckslip orders belong. (required)
* @param \OpenAPI\Client\Model\BuckslipOrderEditable $buckslip_order_editable buckslip_order_editable (required)
Expand All @@ -161,16 +161,16 @@ private function modified_build(array $params, $encoding = PHP_QUERY_RFC3986): s
* @throws \InvalidArgumentException
* @return \OpenAPI\Client\Model\BuckslipOrder|\OpenAPI\Client\Model\LobError
*/
public function Create($buckslip_id, $buckslip_order_editable)
public function create($buckslip_id, $buckslip_order_editable)
{
$response = $this->CreateWithHttpInfo($buckslip_id, $buckslip_order_editable);
$response = $this->createWithHttpInfo($buckslip_id, $buckslip_order_editable);
return $response;
}

/**
* Operation CreateWithHttpInfo
* Operation createWithHttpInfo
*
* Create
* create
*
* @param string $buckslip_id The ID of the buckslip to which the buckslip orders belong. (required)
* @param \OpenAPI\Client\Model\BuckslipOrderEditable $buckslip_order_editable (required)
Expand All @@ -179,9 +179,9 @@ public function Create($buckslip_id, $buckslip_order_editable)
* @throws \InvalidArgumentException
* @return array of \OpenAPI\Client\Model\BuckslipOrder|\OpenAPI\Client\Model\LobError, HTTP status code, HTTP response headers (array of strings)
*/
public function CreateWithHttpInfo($buckslip_id, $buckslip_order_editable)
public function createWithHttpInfo($buckslip_id, $buckslip_order_editable)
{
$request = $this->CreateRequest($buckslip_id, $buckslip_order_editable);
$request = $this->createRequest($buckslip_id, $buckslip_order_editable);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -231,30 +231,30 @@ public function CreateWithHttpInfo($buckslip_id, $buckslip_order_editable)
}

/**
* Create request for operation 'Create'
* Create request for operation 'create'
*
* @param string $buckslip_id The ID of the buckslip to which the buckslip orders belong. (required)
* @param \OpenAPI\Client\Model\BuckslipOrderEditable $buckslip_order_editable (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
public function CreateRequest($buckslip_id, $buckslip_order_editable)
public function createRequest($buckslip_id, $buckslip_order_editable)
{
// verify the required parameter 'buckslip_id' is set
if ($buckslip_id === null || (is_array($buckslip_id) && count($buckslip_id) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $buckslip_id when calling Create'
'Missing the required parameter $buckslip_id when calling create'
);
}
if (!preg_match("/^bck_[a-zA-Z0-9]+$/", $buckslip_id)) {
throw new \InvalidArgumentException("invalid value for \"buckslip_id\" when calling BuckslipOrdersApi.Create, must conform to the pattern /^bck_[a-zA-Z0-9]+$/.");
throw new \InvalidArgumentException("invalid value for \"buckslip_id\" when calling BuckslipOrdersApi.create, must conform to the pattern /^bck_[a-zA-Z0-9]+$/.");
}

// verify the required parameter 'buckslip_order_editable' is set
if ($buckslip_order_editable === null || (is_array($buckslip_order_editable) && count($buckslip_order_editable) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $buckslip_order_editable when calling Create'
'Missing the required parameter $buckslip_order_editable when calling create'
);
}

Expand Down Expand Up @@ -311,9 +311,9 @@ public function CreateRequest($buckslip_id, $buckslip_order_editable)
}

/**
* Operation Retrieve
* Operation get
*
* Retrieve
* get
*
* @param string $buckslip_id The ID of the buckslip to which the buckslip orders belong. (required)
* @param int $limit How many results to return. (optional, default to 10)
Expand All @@ -323,16 +323,16 @@ public function CreateRequest($buckslip_id, $buckslip_order_editable)
* @throws \InvalidArgumentException
* @return \OpenAPI\Client\Model\BuckslipOrdersList|\OpenAPI\Client\Model\LobError
*/
public function Retrieve($buckslip_id, $limit = 10, $offset = 0)
public function get($buckslip_id, $limit = 10, $offset = 0)
{
$response = $this->RetrieveWithHttpInfo($buckslip_id, $limit, $offset);
$response = $this->getWithHttpInfo($buckslip_id, $limit, $offset);
return $response;
}

/**
* Operation RetrieveWithHttpInfo
* Operation getWithHttpInfo
*
* Retrieve
* get
*
* @param string $buckslip_id The ID of the buckslip to which the buckslip orders belong. (required)
* @param int $limit How many results to return. (optional, default to 10)
Expand All @@ -342,9 +342,9 @@ public function Retrieve($buckslip_id, $limit = 10, $offset = 0)
* @throws \InvalidArgumentException
* @return array of \OpenAPI\Client\Model\BuckslipOrdersList|\OpenAPI\Client\Model\LobError, HTTP status code, HTTP response headers (array of strings)
*/
public function RetrieveWithHttpInfo($buckslip_id, $limit = 10, $offset = 0)
public function getWithHttpInfo($buckslip_id, $limit = 10, $offset = 0)
{
$request = $this->RetrieveRequest($buckslip_id, $limit, $offset);
$request = $this->getRequest($buckslip_id, $limit, $offset);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -394,7 +394,7 @@ public function RetrieveWithHttpInfo($buckslip_id, $limit = 10, $offset = 0)
}

/**
* Create request for operation 'Retrieve'
* Create request for operation 'get'
*
* @param string $buckslip_id The ID of the buckslip to which the buckslip orders belong. (required)
* @param int $limit How many results to return. (optional, default to 10)
Expand All @@ -403,23 +403,23 @@ public function RetrieveWithHttpInfo($buckslip_id, $limit = 10, $offset = 0)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
public function RetrieveRequest($buckslip_id, $limit = 10, $offset = 0)
public function getRequest($buckslip_id, $limit = 10, $offset = 0)
{
// verify the required parameter 'buckslip_id' is set
if ($buckslip_id === null || (is_array($buckslip_id) && count($buckslip_id) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $buckslip_id when calling Retrieve'
'Missing the required parameter $buckslip_id when calling get'
);
}
if (!preg_match("/^bck_[a-zA-Z0-9]+$/", $buckslip_id)) {
throw new \InvalidArgumentException("invalid value for \"buckslip_id\" when calling BuckslipOrdersApi.Retrieve, must conform to the pattern /^bck_[a-zA-Z0-9]+$/.");
throw new \InvalidArgumentException("invalid value for \"buckslip_id\" when calling BuckslipOrdersApi.get, must conform to the pattern /^bck_[a-zA-Z0-9]+$/.");
}

if ($limit !== null && $limit > 100) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling BuckslipOrdersApi.Retrieve, must be smaller than or equal to 100.');
throw new \InvalidArgumentException('invalid value for "$limit" when calling BuckslipOrdersApi.get, must be smaller than or equal to 100.');
}
if ($limit !== null && $limit < 1) {
throw new \InvalidArgumentException('invalid value for "$limit" when calling BuckslipOrdersApi.Retrieve, must be bigger than or equal to 1.');
throw new \InvalidArgumentException('invalid value for "$limit" when calling BuckslipOrdersApi.get, must be bigger than or equal to 1.');
}


Expand Down
Loading