Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release-13.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
David T. Sadler committed Sep 7, 2017
2 parents d0274d6 + f3a0533 commit 00785e2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,12 @@
# CHANGELOG

## 13.0.3 - 2017-09-07

## Fixes

- It appears that PostOrder\Types\UploadFileRequest::data may be a string and not an array as
stated in the documentation.

## 13.0.2 - 2017-08-28

## Fixes
Expand Down
2 changes: 1 addition & 1 deletion src/PostOrder/Types/UploadFileRequest.php
Expand Up @@ -24,7 +24,7 @@ class UploadFileRequest extends \DTS\eBaySDK\Types\BaseType
private static $propertyTypes = [
'data' => [
'type' => 'string',
'repeatable' => true,
'repeatable' => false,
'attribute' => false,
'elementName' => 'data'
],
Expand Down
2 changes: 1 addition & 1 deletion src/Sdk.php
Expand Up @@ -30,7 +30,7 @@
*/
class Sdk
{
const VERSION = '13.0.2';
const VERSION = '13.0.3';

/**
* @var bool Controls if the SDK should enforce strict types
Expand Down
14 changes: 14 additions & 0 deletions test/property_fixes/PropertyFixesTest.php
Expand Up @@ -162,4 +162,18 @@ public function testGaleryURL()
$obj->GalleryURL = 'foo';
$this->assertInternalType('string', $obj->GalleryURL);
}

/**
* Incorrect documentation https://developer.ebay.com/Devzone/post-order/types/UploadFileRequest.html
* Issue: https://github.com/davidtsadler/ebay-sdk-php/issues/133
* PR: https://github.com/davidtsadler/ebay-sdk-php/pull/134
*/
public function testUploadFileRequest()
{
$obj = new Sdk\PostOrder\Types\UploadFileRequest();

$obj->data = '';

$this->assertInternalType('string', $obj->data);
}
}

0 comments on commit 00785e2

Please sign in to comment.