davidtsadler / ebay-sdk-php

An eBay SDK for PHP. Use the eBay API in your PHP projects.
Apache License 2.0
350 stars 343 forks source link

InternationalRateTable #45

Closed Telrik closed 7 years ago

Telrik commented 8 years ago

Any example how to use InternationalRateTable ? did this sdk support it ?

davidtsadler commented 8 years ago
$item->ShippingDetails = new \DTS\eBaySDK\Trading\Types\ShippingDetailsType();
$item->ShippingDetails->RateTableDetails = new \DTS\eBaySDK\Trading\Types\RateTableDetailsType();
$item->ShippingDetails->RateTableDetails->InternationalRateTable = '.....';
davidtsadler commented 8 years ago

Actually looking at the code the SDK should support the InternationalRateTable field but it's currently missing from https://github.com/davidtsadler/ebay-sdk-php/blob/master/src/Trading/Types/RateTableDetailsType.php

I'll look into why.

Telrik commented 8 years ago

Thanks, also chrome_2016-09-22_23-03-09 the table itself don't have any name or id and it's inside ebay account, so should i put $item->ShippingDetails->RateTableDetails->InternationalRateTable = 'true'; or '.....'; ?;)

davidtsadler commented 8 years ago

If you look at the documentation at http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/AddFixedPriceItem.html#Request.Item.ShippingDetails.RateTableDetails.InternationalRateTable, it appears that a seller can only specify one international rate table, so set it to Default.

$item->ShippingDetails->RateTableDetails->InternationalRateTable = 'Default';

This may throw an exception as the InternationalRateTable may not exist in the SDK until I look into fixing the issue.

Telrik commented 8 years ago

Perfect, thanks a lot. Will look for the fix. Before i want try to add InternationalRateTable into file manualy but it says DO NOT EDIT generated from wsdl so i add this issue first. thanks again.

davidtsadler commented 7 years ago

InternationalRateTable has been added in the 13.0.0 release.