Code Duplication    Length = 8-9 lines in 3 locations

src/Request/Customers/CustomerEmailTokenRequest.php 1 location

@@ 72-80 (lines=9) @@
69
     * @return JsonRequest
70
     * @internal
71
     */
72
    public function httpRequest()
73
    {
74
        $payload = [
75
            static::ID => $this->getId(),
76
            static::VERSION => $this->getVersion(),
77
            static::TTL_MINUTES => $this->ttlMinutes,
78
        ];
79
        return new JsonRequest(HttpMethod::POST, $this->getPath(), $payload);
80
    }
81
}
82

src/Request/Customers/CustomerPasswordResetRequest.php 1 location

@@ 81-88 (lines=8) @@
78
     * @return JsonRequest
79
     * @internal
80
     */
81
    public function httpRequest()
82
    {
83
        $payload = [
84
            static::TOKEN_VALUE => $this->tokenValue,
85
            static::NEW_PASSWORD => $this->newPassword
86
        ];
87
        return new JsonRequest(HttpMethod::POST, $this->getPath(), $payload);
88
    }
89
90
    public function buildResponse(ResponseInterface $response)
91
    {

src/Request/Me/MeOrderCreateFromCartRequest.php 1 location

@@ 108-116 (lines=9) @@
105
     * @return HttpRequestInterface
106
     * @internal
107
     */
108
    public function httpRequest()
109
    {
110
        $payload = [
111
            static::ID => $this->getCartId(),
112
            static::VERSION => $this->getVersion(),
113
        ];
114
115
        return new JsonRequest(HttpMethod::POST, $this->getPath(), $payload);
116
    }
117
}
118