Skip to content

Commit cb633a1

Browse files
committed
Updated Auto Generated Code
1 parent d7bdf22 commit cb633a1

File tree

3 files changed

+55
-2
lines changed

3 files changed

+55
-2
lines changed

src/Definitions/FortifiApiDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FortifiApiDefinition extends ApiDefinition
1111
public function __construct()
1212
{
1313
$this->setTitle('Fortifi API');
14-
$this->setVersion('3.159.0');
14+
$this->setVersion('3.160.0');
1515
$this->setDescription(<<<DESCRIPTION
1616
The second version of the Fortifi API is an exciting step forward towards
1717
making it easier for businesses to have open access to their data. We created it

src/Endpoints/CustomersCustomerFidEndpoint.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,34 @@ public function setExternalReference($externalReference)
694694
return $request;
695695
}
696696

697+
/**
698+
* @summary Mark a customer as a Test Account
699+
*
700+
* @param $isTestAccount
701+
*
702+
* @return ApiRequest
703+
*/
704+
public function setTestAccount($isTestAccount)
705+
{
706+
$request = new ApiRequest();
707+
$request->setConnection($this->_getConnection());
708+
$request->setEndpoint($this);
709+
710+
$detail = new ApiRequestDetail();
711+
$detail->setRequireAuth(true);
712+
$detail->setUrl($this->_buildUrl(
713+
str_replace(
714+
array_keys($this->_replacements),
715+
array_values($this->_replacements),
716+
'customers/{customerFid}/testAccount'
717+
)
718+
));
719+
$detail->addPostField('isTestAccount', $isTestAccount);
720+
$detail->setMethod('PUT');
721+
$request->setRequestDetail($detail);
722+
return $request;
723+
}
724+
697725
/**
698726
* @summary Update a customers billing data
699727
*

swagger.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
swagger: '2.0'
22
info:
33
title: Fortifi API
4-
version: '3.159.0'
4+
version: '3.160.0'
55
termsOfService: 'https://fortifi.io/legal/terms/api'
66
description: >
77
The second version of the Fortifi API is an exciting step forward towards
@@ -2572,6 +2572,31 @@ paths:
25722572
description: Error
25732573
schema:
25742574
$ref: '#/definitions/Envelope'
2575+
2576+
'/customers/{customerFid}/testAccount':
2577+
put:
2578+
summary: Mark a customer as a Test Account
2579+
tags:
2580+
- Customers
2581+
security:
2582+
- OAuth:
2583+
- customer
2584+
- accessToken: [ ]
2585+
parameters:
2586+
- $ref: '#/parameters/customerFid'
2587+
- name: isTestAccount
2588+
in: formData
2589+
required: true
2590+
type: boolean
2591+
responses:
2592+
200:
2593+
description: Test Account Status Updated
2594+
x-404:
2595+
description: Customer not found
2596+
default:
2597+
description: Error
2598+
schema:
2599+
$ref: '#/definitions/Envelope'
25752600
'/customers/{customerFid}/note':
25762601
post:
25772602
summary: Save a note against a customer

0 commit comments

Comments
 (0)