resetRequestId() public method

Resets the requestId that can be used to set the PayPal-request-id header used for idempotency. In cases where you need to make multiple create calls using the same ApiContext object, you need to reset request Id.
public resetRequestId ( ) : string
return string
 public function testResetRequestId()
 {
     $requestId = $this->apiContext->getrequestId();
     $newRequestId = $this->apiContext->resetRequestId();
     $this->assertNotNull($newRequestId);
     $this->assertNotEquals($newRequestId, $requestId);
 }