Skip to content

Commit

Permalink
Updated Auto Generated Code
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Oct 10, 2022
1 parent b1d1408 commit e9029b2
Show file tree
Hide file tree
Showing 3 changed files with 257 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Definitions/FortifiApiDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class FortifiApiDefinition extends ApiDefinition
public function __construct()
{
$this->setTitle('Fortifi API');
$this->setVersion('3.103.0');
$this->setVersion('3.104.0');
$this->setDescription(<<<DESCRIPTION
The second version of the Fortifi API is an exciting step forward towards
making it easier for businesses to have open access to their data. We created it
Expand Down
221 changes: 221 additions & 0 deletions src/Requests/CustomerRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,23 @@ public function jsonSerialize()
"taxNumber" => $this->getTaxNumber(),
"companyNumber" => $this->getCompanyNumber(),
"knownIP" => $this->getKnownIP(),
"accountManagerFid" => $this->getAccountManagerFid(),
"affiliateFid" => $this->getAffiliateFid(),
"foundationFid" => $this->getFoundationFid(),
"affiliateType" => $this->getAffiliateType(),
"campaignFid" => $this->getCampaignFid(),
"sid1" => $this->getSid1(),
"sid2" => $this->getSid2(),
"sid3" => $this->getSid3(),
"lifecycleStage" => $this->getLifecycleStage(),
"accountType" => $this->getAccountType(),
"accountStatus" => $this->getAccountStatus(),
"subscriptionType" => $this->getSubscriptionType(),
"continent" => $this->getContinent(),
"country" => $this->getCountry(),
"county" => $this->getCounty(),
"city" => $this->getCity(),
"postal" => $this->getPostal(),
"flags" => $this->getFlags(),
]
);
Expand Down Expand Up @@ -227,6 +244,210 @@ public function getKnownIP($default = null, $trim = true)
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getAccountManagerFid($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'accountManagerFid', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getAffiliateFid($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'affiliateFid', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getFoundationFid($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'foundationFid', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getAffiliateType($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'affiliateType', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getCampaignFid($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'campaignFid', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getSid1($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'sid1', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getSid2($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'sid2', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getSid3($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'sid3', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getLifecycleStage($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'lifecycleStage', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getAccountType($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'accountType', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getAccountStatus($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'accountStatus', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getSubscriptionType($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'subscriptionType', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getContinent($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'continent', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getCountry($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'country', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getCounty($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'county', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getCity($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'city', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getPostal($default = null, $trim = true)
{
$value = Objects::property($this->_getResultJson(), 'postal', $default);
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param mixed $default
*
Expand Down
36 changes: 35 additions & 1 deletion swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
swagger: '2.0'
info:
title: Fortifi API
version: '3.103.0'
version: '3.104.0'
termsOfService: 'https://fortifi.io/legal/terms/api'
description: >
The second version of the Fortifi API is an exciting step forward towards
Expand Down Expand Up @@ -8120,6 +8120,40 @@ definitions:
type: string
knownIP:
type: string
accountManagerFid:
type: string
affiliateFid:
type: string
foundationFid:
type: string
affiliateType:
type: string
campaignFid:
type: string
sid1:
type: string
sid2:
type: string
sid3:
type: string
lifecycleStage:
type: string
accountType:
type: string
accountStatus:
type: string
subscriptionType:
type: string
continent:
type: string
country:
type: string
county:
type: string
city:
type: string
postal:
type: string
flags:
$ref: '#/definitions/CustomerFlags'

Expand Down

0 comments on commit e9029b2

Please sign in to comment.