File tree Expand file tree Collapse file tree 3 files changed +55
-2
lines changed
Expand file tree Collapse file tree 3 files changed +55
-2
lines changed Original file line number Diff line number Diff 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
1616The second version of the Fortifi API is an exciting step forward towards
1717making it easier for businesses to have open access to their data. We created it
Original file line number Diff line number Diff 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 *
Original file line number Diff line number Diff line change 11swagger : ' 2.0'
22info :
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
You can’t perform that action at this time.
0 commit comments