Skip to content

Commit

Permalink
Merge pull request #3 from bigpaulie/master
Browse files Browse the repository at this point in the history
Adding message property
Fix categoryId type
  • Loading branch information
marrek13 authored Feb 14, 2018
2 parents 31938c8 + e5443c9 commit 49a4abf
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 118 deletions.
201 changes: 104 additions & 97 deletions src/Shoplo/BonanzaApi/Type/AddItemType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,101 +8,108 @@

class AddItemType
{
/**
* @var string
*
* @Serializer\Type("string")
*/
public $description;

/**
* @var string
*
* @Serializer\Type("string")
*/
public $externalProductId;

/**
* @var boolean
*
* @Serializer\Type("boolean")
*/
public $obo;

/**
* @var AddItemSpecificsType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\AddItemSpecificsType")
*/
public $itemSpecifics;

/**
* @var PictureDetailsType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\PictureDetailsType")
*/
public $pictureDetails;

/**
* @var double
*
* @Serializer\Type("double")
*/
public $price;

/**
* @var PrimaryCategoryType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\PrimaryCategoryType")
*/
public $primaryCategory;

/**
* @var ProductListingDetailsType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\ProductListingDetailsType")
*/
public $productListingDetails;

/**
* @var int
*
* @Serializer\Type("int")
*/
public $quantity;

/**
* @var ReturnPolicyType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\ReturnPolicyType")
*/
public $returnPolicy;

/**
* @var ShippingDetailsType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\ShippingDetailsType")
*/
public $shippingDetails;

/**
* @var string
*
* @Serializer\Type("string")
*/
public $sku;

/**
* @var string
*
* @Serializer\Type("string")
*/
public $title;

/**
* @var VariationType[]
*
* @Serializer\Type("array<Shoplo\BonanzaApi\Type\VariationType>")
*/
public $variations;
/**
* @var string
*
* @Serializer\Type("string")
*/
public $description;

/**
* @var string
*
* @Serializer\Type("string")
*/
public $externalProductId;

/**
* @var boolean
*
* @Serializer\Type("boolean")
*/
public $obo;

/**
* @var AddItemSpecificsType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\AddItemSpecificsType")
*/
public $itemSpecifics;

/**
* @var PictureDetailsType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\PictureDetailsType")
*/
public $pictureDetails;

/**
* @var double
*
* @Serializer\Type("double")
*/
public $price;

/**
* @var PrimaryCategoryType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\PrimaryCategoryType")
*/
public $primaryCategory;

/**
* @var ProductListingDetailsType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\ProductListingDetailsType")
*/
public $productListingDetails;

/**
* @var int
*
* @Serializer\Type("int")
*/
public $quantity;

/**
* @var ReturnPolicyType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\ReturnPolicyType")
*/
public $returnPolicy;

/**
* @var ShippingDetailsType
*
* @Serializer\Type("Shoplo\BonanzaApi\Type\ShippingDetailsType")
*/
public $shippingDetails;

/**
* @var string
*
* @Serializer\Type("string")
*/
public $sku;

/**
* @var string
*
* @Serializer\Type("string")
*/
public $title;

/**
* @var bool
*
* @Serializer\Type("boolean")
*/
public $allowForSale;

/**
* @var VariationType[]
*
* @Serializer\Type("array<Shoplo\BonanzaApi\Type\VariationType>")
*/
public $variations;
}
47 changes: 27 additions & 20 deletions src/Shoplo/BonanzaApi/Type/FixedPriceItemResponseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,31 @@

class FixedPriceItemResponseType extends BaseResponseType
{
/**
* @var string
*
* @Serializer\Type("string")
*/
public $sellingState;

/**
* @var int
*
* @Serializer\Type("int")
*/
public $categoryId;

/**
* @var int
*
* @Serializer\Type("int")
*/
public $itemId;
/**
* @var string
*
* @Serializer\Type("string")
*/
public $sellingState;

/**
* @var int
*
* @Serializer\Type("int")
*/
public $categoryId;

/**
* @var int
*
* @Serializer\Type("int")
*/
public $itemId;

/**
* @var string
*
* @Serializer\Type("string")
*/
public $message;
}
2 changes: 1 addition & 1 deletion src/Shoplo/BonanzaApi/Type/PrimaryCategoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PrimaryCategoryType
/**
* @var int
*
* @Serializer\Type("int")
* @Serializer\Type("string")
*/
public $categoryId;

Expand Down

0 comments on commit 49a4abf

Please sign in to comment.