_id
stringlengths 2
7
| title
stringlengths 3
151
| partition
stringclasses 3
values | text
stringlengths 83
13k
| language
stringclasses 1
value | meta_information
dict |
---|---|---|---|---|---|
q249800 | MarketplaceWebService_Model_ErrorResponse.setError | validation | public function setError($error)
{
if (!$this->_isNumericArray($error)) {
$error = array($error);
}
$this->fields['Error']['FieldValue'] = $error;
return $this;
} | php | {
"resource": ""
} |
q249801 | MarketplaceWebServiceProducts_Model_ProductList.setProduct | validation | public function setProduct($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['Product']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249802 | MWSMerchantFulfillmentService_Client.cancelShipment | validation | public function cancelShipment($request)
{
if (!($request instanceof MWSMerchantFulfillmentService_Model_CancelShipmentRequest)) {
require_once (dirname(__FILE__) . '/Model/CancelShipmentRequest.php');
$request = new MWSMerchantFulfillmentService_Model_CancelShipmentRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'CancelShipment';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/CancelShipmentResponse.php');
$response = MWSMerchantFulfillmentService_Model_CancelShipmentResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249803 | MWSMerchantFulfillmentService_Client.createShipment | validation | public function createShipment($request)
{
if (!($request instanceof MWSMerchantFulfillmentService_Model_CreateShipmentRequest)) {
require_once (dirname(__FILE__) . '/Model/CreateShipmentRequest.php');
$request = new MWSMerchantFulfillmentService_Model_CreateShipmentRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'CreateShipment';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/CreateShipmentResponse.php');
$response = MWSMerchantFulfillmentService_Model_CreateShipmentResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249804 | MWSMerchantFulfillmentService_Client._convertCreateShipment | validation | private function _convertCreateShipment($request) {
$parameters = array();
$parameters['Action'] = 'CreateShipment';
if ($request->isSetSellerId()) {
$parameters['SellerId'] = $request->getSellerId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
if ($request->isSetShipmentRequestDetails()) {
$ShipmentRequestDetailsCreateShipmentRequest = $request->getShipmentRequestDetails();
foreach ($ShipmentRequestDetailsCreateShipmentRequest->getAmazonOrderId() as $AmazonOrderIdShipmentRequestDetailsIndex => $AmazonOrderIdShipmentRequestDetails) {
$parameters['ShipmentRequestDetails' . '.' . 'AmazonOrderId' . '.' . ($AmazonOrderIdShipmentRequestDetailsIndex + 1)] = $AmazonOrderIdShipmentRequestDetails;
}
}
if ($request->isSetShippingServiceId()) {
$parameters['ShippingServiceId'] = $request->getShippingServiceId();
}
if ($request->isSetShippingServiceOfferId()) {
$parameters['ShippingServiceOfferId'] = $request->getShippingServiceOfferId();
}
return $parameters;
} | php | {
"resource": ""
} |
q249805 | MWSMerchantFulfillmentService_Client.getEligibleShippingServices | validation | public function getEligibleShippingServices($request)
{
if (!($request instanceof MWSMerchantFulfillmentService_Model_GetEligibleShippingServicesRequest)) {
require_once (dirname(__FILE__) . '/Model/GetEligibleShippingServicesRequest.php');
$request = new MWSMerchantFulfillmentService_Model_GetEligibleShippingServicesRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'GetEligibleShippingServices';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/GetEligibleShippingServicesResponse.php');
$response = MWSMerchantFulfillmentService_Model_GetEligibleShippingServicesResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249806 | MWSMerchantFulfillmentService_Client._convertGetEligibleShippingServices | validation | private function _convertGetEligibleShippingServices($request) {
$parameters = array();
$parameters['Action'] = 'GetEligibleShippingServices';
if ($request->isSetSellerId()) {
$parameters['SellerId'] = $request->getSellerId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
if ($request->isSetShipmentRequestDetails()) {
$ShipmentRequestDetailsGetEligibleShippingServicesRequest = $request->getShipmentRequestDetails();
foreach ($ShipmentRequestDetailsGetEligibleShippingServicesRequest->getAmazonOrderId() as $AmazonOrderIdShipmentRequestDetailsIndex => $AmazonOrderIdShipmentRequestDetails) {
$parameters['ShipmentRequestDetails' . '.' . 'AmazonOrderId' . '.' . ($AmazonOrderIdShipmentRequestDetailsIndex + 1)] = $AmazonOrderIdShipmentRequestDetails;
}
}
return $parameters;
} | php | {
"resource": ""
} |
q249807 | MWSMerchantFulfillmentService_Client.getShipment | validation | public function getShipment($request)
{
if (!($request instanceof MWSMerchantFulfillmentService_Model_GetShipmentRequest)) {
require_once (dirname(__FILE__) . '/Model/GetShipmentRequest.php');
$request = new MWSMerchantFulfillmentService_Model_GetShipmentRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'GetShipment';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/GetShipmentResponse.php');
$response = MWSMerchantFulfillmentService_Model_GetShipmentResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249808 | MWSMerchantFulfillmentService_Client._convertGetShipment | validation | private function _convertGetShipment($request) {
$parameters = array();
$parameters['Action'] = 'GetShipment';
if ($request->isSetSellerId()) {
$parameters['SellerId'] = $request->getSellerId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
if ($request->isSetShipmentId()) {
$parameters['ShipmentId'] = $request->getShipmentId();
}
return $parameters;
} | php | {
"resource": ""
} |
q249809 | MWSRecommendationsSectionService_Model_ListRecommendationsRequest.setCategoryQueryList | validation | public function setCategoryQueryList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['CategoryQueryList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249810 | FBAInboundServiceMWS_Model_SKUPrepInstructionsList.setSKUPrepInstructions | validation | public function setSKUPrepInstructions($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['SKUPrepInstructions']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249811 | MWSRecommendationsSectionService_Client.getLastUpdatedTimeForRecommendations | validation | public function getLastUpdatedTimeForRecommendations($request)
{
if (!($request instanceof MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendationsRequest)) {
require_once (dirname(__FILE__) . '/Model/GetLastUpdatedTimeForRecommendationsRequest.php');
$request = new MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendationsRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'GetLastUpdatedTimeForRecommendations';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/GetLastUpdatedTimeForRecommendationsResponse.php');
$response = MWSRecommendationsSectionService_Model_GetLastUpdatedTimeForRecommendationsResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249812 | MWSRecommendationsSectionService_Client.listRecommendations | validation | public function listRecommendations($request)
{
if (!($request instanceof MWSRecommendationsSectionService_Model_ListRecommendationsRequest)) {
require_once (dirname(__FILE__) . '/Model/ListRecommendationsRequest.php');
$request = new MWSRecommendationsSectionService_Model_ListRecommendationsRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'ListRecommendations';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/ListRecommendationsResponse.php');
$response = MWSRecommendationsSectionService_Model_ListRecommendationsResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249813 | MWSRecommendationsSectionService_Client._convertListRecommendations | validation | private function _convertListRecommendations($request) {
$parameters = array();
$parameters['Action'] = 'ListRecommendations';
if ($request->isSetMarketplaceId()) {
$parameters['MarketplaceId'] = $request->getMarketplaceId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
if ($request->isSetSellerId()) {
$parameters['SellerId'] = $request->getSellerId();
}
if ($request->isSetRecommendationCategory()) {
$parameters['RecommendationCategory'] = $request->getRecommendationCategory();
}
if ($request->isSetCategoryQueryList()) {
$parameters['CategoryQueryList'] = $request->getCategoryQueryList();
}
return $parameters;
} | php | {
"resource": ""
} |
q249814 | MWSRecommendationsSectionService_Client.listRecommendationsByNextToken | validation | public function listRecommendationsByNextToken($request)
{
if (!($request instanceof MWSRecommendationsSectionService_Model_ListRecommendationsByNextTokenRequest)) {
require_once (dirname(__FILE__) . '/Model/ListRecommendationsByNextTokenRequest.php');
$request = new MWSRecommendationsSectionService_Model_ListRecommendationsByNextTokenRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'ListRecommendationsByNextToken';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/ListRecommendationsByNextTokenResponse.php');
$response = MWSRecommendationsSectionService_Model_ListRecommendationsByNextTokenResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249815 | MarketplaceWebServiceProducts_Model_GetMyPriceForSKUResponse.setGetMyPriceForSKUResult | validation | public function setGetMyPriceForSKUResult($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['GetMyPriceForSKUResult']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249816 | MWSFinancesService_Model_ShipmentItem.setItemChargeList | validation | public function setItemChargeList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['ItemChargeList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249817 | MWSFinancesService_Model_ShipmentItem.setItemChargeAdjustmentList | validation | public function setItemChargeAdjustmentList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['ItemChargeAdjustmentList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249818 | MWSFinancesService_Model_ShipmentItem.setItemFeeList | validation | public function setItemFeeList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['ItemFeeList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249819 | MWSFinancesService_Model_ShipmentItem.setItemFeeAdjustmentList | validation | public function setItemFeeAdjustmentList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['ItemFeeAdjustmentList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249820 | MWSFinancesService_Model_ShipmentItem.setPromotionList | validation | public function setPromotionList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['PromotionList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249821 | MWSFinancesService_Model_ShipmentItem.setPromotionAdjustmentList | validation | public function setPromotionAdjustmentList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['PromotionAdjustmentList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249822 | FBAInboundServiceMWS_Model_PrepInstructionList.setPrepInstruction | validation | public function setPrepInstruction($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['PrepInstruction']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249823 | MarketplaceWebServiceProducts_Model_ErrorDetail.setAny | validation | public function setAny($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['Any']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249824 | MarketplaceWebServiceProducts_Client.getLowestOfferListingsForSKU | validation | public function getLowestOfferListingsForSKU($request)
{
if (!($request instanceof MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForSKURequest)) {
$request = new MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForSKURequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'GetLowestOfferListingsForSKU';
$httpResponse = $this->_invoke($parameters);
$response = MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForSKUResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249825 | MarketplaceWebServiceProducts_Model_ASINListType.setASIN | validation | public function setASIN($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['ASIN']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249826 | MWSFinancesService_Model_PerformanceBondRefundEvent.setProductGroupList | validation | public function setProductGroupList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['ProductGroupList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249827 | MarketplaceWebServiceProducts_Model_CompetitivePriceList.setCompetitivePrice | validation | public function setCompetitivePrice($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['CompetitivePrice']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249828 | MarketplaceWebServiceProducts_Model_LowestOfferListingList.setLowestOfferListing | validation | public function setLowestOfferListing($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['LowestOfferListing']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249829 | FBAInboundServiceMWS_Model_ASINPrepInstructionsList.setASINPrepInstructions | validation | public function setASINPrepInstructions($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['ASINPrepInstructions']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249830 | MarketplaceWebService_Model_GetReportScheduleListResult.setReportScheduleList | validation | public function setReportScheduleList($reportSchedule)
{
if (!$this->_isNumericArray($reportSchedule)) {
$reportSchedule = array($reportSchedule);
}
$this->fields['ReportSchedule']['FieldValue'] = $reportSchedule;
return $this;
} | php | {
"resource": ""
} |
q249831 | MarketplaceWebServiceProducts_Model_GetMatchingProductResponse.setGetMatchingProductResult | validation | public function setGetMatchingProductResult($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['GetMatchingProductResult']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249832 | MarketplaceWebService_Model_StatusList.setStatus | validation | public function setStatus($status)
{
if (!$this->isNumericArray($status)) {
$status = array($status);
}
$this->fields['Status']['FieldValue'] = $status;
return $this;
} | php | {
"resource": ""
} |
q249833 | MWSRecommendationsSectionService_Model_CategoryQuery.setFilterOptions | validation | public function setFilterOptions($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['FilterOptions']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249834 | MarketplaceWebServiceOrders_Client.listOrders | validation | public function listOrders($request)
{
if (!($request instanceof MarketplaceWebServiceOrders_Model_ListOrdersRequest)) {
$request = new MarketplaceWebServiceOrders_Model_ListOrdersRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'ListOrders';
$httpResponse = $this->_invoke($parameters);
$response = MarketplaceWebServiceOrders_Model_ListOrdersResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249835 | MarketplaceWebServiceOrders_Client.listOrdersByNextToken | validation | public function listOrdersByNextToken($request)
{
if (!($request instanceof MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenRequest)) {
$request = new MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'ListOrdersByNextToken';
$httpResponse = $this->_invoke($parameters);
$response = MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249836 | MarketplaceWebServiceSellers_Client.getServiceStatus | validation | public function getServiceStatus($request)
{
if (!($request instanceof MarketplaceWebServiceSellers_Model_GetServiceStatusRequest)) {
$request = new MarketplaceWebServiceSellers_Model_GetServiceStatusRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'GetServiceStatus';
$httpResponse = $this->_invoke($parameters);
$response = MarketplaceWebServiceSellers_Model_GetServiceStatusResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249837 | MarketplaceWebServiceSellers_Client.listMarketplaceParticipations | validation | public function listMarketplaceParticipations($request)
{
if (!($request instanceof MarketplaceWebServiceSellers_Model_ListMarketplaceParticipationsRequest)) {
$request = new MarketplaceWebServiceSellers_Model_ListMarketplaceParticipationsRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'ListMarketplaceParticipations';
$httpResponse = $this->_invoke($parameters);
$response = MarketplaceWebServiceSellers_Model_ListMarketplaceParticipationsResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249838 | MarketplaceWebServiceSellers_Client.listMarketplaceParticipationsByNextToken | validation | public function listMarketplaceParticipationsByNextToken($request)
{
if (!($request instanceof MarketplaceWebServiceSellers_Model_ListMarketplaceParticipationsByNextTokenRequest)) {
$request = new MarketplaceWebServiceSellers_Model_ListMarketplaceParticipationsByNextTokenRequest($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'ListMarketplaceParticipationsByNextToken';
$httpResponse = $this->_invoke($parameters);
$response = MarketplaceWebServiceSellers_Model_ListMarketplaceParticipationsByNextTokenResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249839 | MWSSubscriptionsService_Client.createSubscription | validation | public function createSubscription($request)
{
if (!($request instanceof MWSSubscriptionsService_Model_CreateSubscriptionInput)) {
require_once (dirname(__FILE__) . '/Model/CreateSubscriptionInput.php');
$request = new MWSSubscriptionsService_Model_CreateSubscriptionInput($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'CreateSubscription';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/CreateSubscriptionResponse.php');
$response = MWSSubscriptionsService_Model_CreateSubscriptionResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249840 | MWSSubscriptionsService_Client._convertCreateSubscription | validation | private function _convertCreateSubscription($request) {
$parameters = array();
$parameters['Action'] = 'CreateSubscription';
if ($request->isSetSellerId()) {
$parameters['SellerId'] = $request->getSellerId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
if ($request->isSetMarketplaceId()) {
$parameters['MarketplaceId'] = $request->getMarketplaceId();
}
if ($request->isSetSubscription()) {
$SubscriptionCreateSubscriptionInput = $request->getSubscription();
foreach ($SubscriptionCreateSubscriptionInput->getNotificationType() as $NotificationTypeSubscriptionIndex => $NotificationTypeSubscription) {
$parameters['Subscription' . '.' . 'NotificationType' . '.' . ($NotificationTypeSubscriptionIndex + 1)] = $NotificationTypeSubscription;
}
}
return $parameters;
} | php | {
"resource": ""
} |
q249841 | MWSSubscriptionsService_Client.deleteSubscription | validation | public function deleteSubscription($request)
{
if (!($request instanceof MWSSubscriptionsService_Model_DeleteSubscriptionInput)) {
require_once (dirname(__FILE__) . '/Model/DeleteSubscriptionInput.php');
$request = new MWSSubscriptionsService_Model_DeleteSubscriptionInput($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'DeleteSubscription';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/DeleteSubscriptionResponse.php');
$response = MWSSubscriptionsService_Model_DeleteSubscriptionResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249842 | MWSSubscriptionsService_Client._convertDeleteSubscription | validation | private function _convertDeleteSubscription($request) {
$parameters = array();
$parameters['Action'] = 'DeleteSubscription';
if ($request->isSetSellerId()) {
$parameters['SellerId'] = $request->getSellerId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
if ($request->isSetMarketplaceId()) {
$parameters['MarketplaceId'] = $request->getMarketplaceId();
}
if ($request->isSetNotificationType()) {
$parameters['NotificationType'] = $request->getNotificationType();
}
if ($request->isSetDestination()) {
$DestinationDeleteSubscriptionInput = $request->getDestination();
foreach ($DestinationDeleteSubscriptionInput->getDeliveryChannel() as $DeliveryChannelDestinationIndex => $DeliveryChannelDestination) {
$parameters['Destination' . '.' . 'DeliveryChannel' . '.' . ($DeliveryChannelDestinationIndex + 1)] = $DeliveryChannelDestination;
}
}
return $parameters;
} | php | {
"resource": ""
} |
q249843 | MWSSubscriptionsService_Client.deregisterDestination | validation | public function deregisterDestination($request)
{
if (!($request instanceof MWSSubscriptionsService_Model_DeregisterDestinationInput)) {
require_once (dirname(__FILE__) . '/Model/DeregisterDestinationInput.php');
$request = new MWSSubscriptionsService_Model_DeregisterDestinationInput($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'DeregisterDestination';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/DeregisterDestinationResponse.php');
$response = MWSSubscriptionsService_Model_DeregisterDestinationResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249844 | MWSSubscriptionsService_Client._convertDeregisterDestination | validation | private function _convertDeregisterDestination($request) {
$parameters = array();
$parameters['Action'] = 'DeregisterDestination';
if ($request->isSetSellerId()) {
$parameters['SellerId'] = $request->getSellerId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
if ($request->isSetMarketplaceId()) {
$parameters['MarketplaceId'] = $request->getMarketplaceId();
}
if ($request->isSetDestination()) {
$DestinationDeregisterDestinationInput = $request->getDestination();
foreach ($DestinationDeregisterDestinationInput->getDeliveryChannel() as $DeliveryChannelDestinationIndex => $DeliveryChannelDestination) {
$parameters['Destination' . '.' . 'DeliveryChannel' . '.' . ($DeliveryChannelDestinationIndex + 1)] = $DeliveryChannelDestination;
}
}
return $parameters;
} | php | {
"resource": ""
} |
q249845 | MWSSubscriptionsService_Client.getSubscription | validation | public function getSubscription($request)
{
if (!($request instanceof MWSSubscriptionsService_Model_GetSubscriptionInput)) {
require_once (dirname(__FILE__) . '/Model/GetSubscriptionInput.php');
$request = new MWSSubscriptionsService_Model_GetSubscriptionInput($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'GetSubscription';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/GetSubscriptionResponse.php');
$response = MWSSubscriptionsService_Model_GetSubscriptionResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249846 | MWSSubscriptionsService_Client.listRegisteredDestinations | validation | public function listRegisteredDestinations($request)
{
if (!($request instanceof MWSSubscriptionsService_Model_ListRegisteredDestinationsInput)) {
require_once (dirname(__FILE__) . '/Model/ListRegisteredDestinationsInput.php');
$request = new MWSSubscriptionsService_Model_ListRegisteredDestinationsInput($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'ListRegisteredDestinations';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/ListRegisteredDestinationsResponse.php');
$response = MWSSubscriptionsService_Model_ListRegisteredDestinationsResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249847 | MWSSubscriptionsService_Client.listSubscriptions | validation | public function listSubscriptions($request)
{
if (!($request instanceof MWSSubscriptionsService_Model_ListSubscriptionsInput)) {
require_once (dirname(__FILE__) . '/Model/ListSubscriptionsInput.php');
$request = new MWSSubscriptionsService_Model_ListSubscriptionsInput($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'ListSubscriptions';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/ListSubscriptionsResponse.php');
$response = MWSSubscriptionsService_Model_ListSubscriptionsResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249848 | MWSSubscriptionsService_Client._convertListSubscriptions | validation | private function _convertListSubscriptions($request) {
$parameters = array();
$parameters['Action'] = 'ListSubscriptions';
if ($request->isSetSellerId()) {
$parameters['SellerId'] = $request->getSellerId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
if ($request->isSetMarketplaceId()) {
$parameters['MarketplaceId'] = $request->getMarketplaceId();
}
return $parameters;
} | php | {
"resource": ""
} |
q249849 | MWSSubscriptionsService_Client.registerDestination | validation | public function registerDestination($request)
{
if (!($request instanceof MWSSubscriptionsService_Model_RegisterDestinationInput)) {
require_once (dirname(__FILE__) . '/Model/RegisterDestinationInput.php');
$request = new MWSSubscriptionsService_Model_RegisterDestinationInput($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'RegisterDestination';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/RegisterDestinationResponse.php');
$response = MWSSubscriptionsService_Model_RegisterDestinationResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249850 | MWSSubscriptionsService_Client._convertRegisterDestination | validation | private function _convertRegisterDestination($request) {
$parameters = array();
$parameters['Action'] = 'RegisterDestination';
if ($request->isSetSellerId()) {
$parameters['SellerId'] = $request->getSellerId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
if ($request->isSetMarketplaceId()) {
$parameters['MarketplaceId'] = $request->getMarketplaceId();
}
if ($request->isSetDestination()) {
$DestinationRegisterDestinationInput = $request->getDestination();
foreach ($DestinationRegisterDestinationInput->getDeliveryChannel() as $DeliveryChannelDestinationIndex => $DeliveryChannelDestination) {
$parameters['Destination' . '.' . 'DeliveryChannel' . '.' . ($DeliveryChannelDestinationIndex + 1)] = $DeliveryChannelDestination;
}
}
return $parameters;
} | php | {
"resource": ""
} |
q249851 | MWSSubscriptionsService_Client.updateSubscription | validation | public function updateSubscription($request)
{
if (!($request instanceof MWSSubscriptionsService_Model_UpdateSubscriptionInput)) {
require_once (dirname(__FILE__) . '/Model/UpdateSubscriptionInput.php');
$request = new MWSSubscriptionsService_Model_UpdateSubscriptionInput($request);
}
$parameters = $request->toQueryParameterArray();
$parameters['Action'] = 'UpdateSubscription';
$httpResponse = $this->_invoke($parameters);
require_once (dirname(__FILE__) . '/Model/UpdateSubscriptionResponse.php');
$response = MWSSubscriptionsService_Model_UpdateSubscriptionResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249852 | MWSSubscriptionsService_Client._convertUpdateSubscription | validation | private function _convertUpdateSubscription($request) {
$parameters = array();
$parameters['Action'] = 'UpdateSubscription';
if ($request->isSetSellerId()) {
$parameters['SellerId'] = $request->getSellerId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
if ($request->isSetMarketplaceId()) {
$parameters['MarketplaceId'] = $request->getMarketplaceId();
}
if ($request->isSetSubscription()) {
$SubscriptionUpdateSubscriptionInput = $request->getSubscription();
foreach ($SubscriptionUpdateSubscriptionInput->getNotificationType() as $NotificationTypeSubscriptionIndex => $NotificationTypeSubscription) {
$parameters['Subscription' . '.' . 'NotificationType' . '.' . ($NotificationTypeSubscriptionIndex + 1)] = $NotificationTypeSubscription;
}
}
return $parameters;
} | php | {
"resource": ""
} |
q249853 | MarketplaceWebServiceSellers_Model_ListMarketplaces.setMarketplace | validation | public function setMarketplace($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['Marketplace']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249854 | MWSFinancesService_Model_AdjustmentEvent.setAdjustmentItemList | validation | public function setAdjustmentItemList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['AdjustmentItemList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249855 | MarketplaceWebService_Model_GetFeedSubmissionListResult.setFeedSubmissionInfoList | validation | public function setFeedSubmissionInfoList($feedSubmissionInfo)
{
if (!$this->_isNumericArray($feedSubmissionInfo)) {
$feedSubmissionInfo = array($feedSubmissionInfo);
}
$this->fields['FeedSubmissionInfo']['FieldValue'] = $feedSubmissionInfo;
return $this;
} | php | {
"resource": ""
} |
q249856 | MarketplaceWebServiceProducts_Model_SalesRankList.setSalesRank | validation | public function setSalesRank($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['SalesRank']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249857 | MarketplaceWebServiceProducts_Model_IdListType.setId | validation | public function setId($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['Id']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249858 | FBAInboundServiceMWS_Model_InvalidSKUList.setInvalidSKU | validation | public function setInvalidSKU($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['InvalidSKU']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249859 | PoEditor.removeBlock | validation | public function removeBlock($spec)
{
if ($spec instanceof Block)
$spec = $spec->getKey();
if (is_string($spec)) {
if ($this->blocks[$spec]) {
unset($this->blocks[$spec]);
}
}
} | php | {
"resource": ""
} |
q249860 | PoEditor.getBlockWithKey | validation | public function getBlockWithKey($key)
{
if (isset($this->blocks[$key]))
return $this->blocks[$key];
return null;
} | php | {
"resource": ""
} |
q249861 | PoEditor.parse | validation | public function parse()
{
$handle = fopen($this->source_file, 'r');
$currentBlock = null;
// first, discover if we are header-less
while (!feof($handle)) {
$line = fgets($handle);
if (preg_match("/^msgid (.*?)$/us", $line, $match)) {
// initialize the parser, rewind and break
$currentBlock = $match[1] == '""' ? new HeaderBlock() : new Block();
rewind($handle);
break;
}
}
// run the actual parser
while (!feof($handle)) {
$line = fgets($handle);
if (trim($line) == '') {
if ($currentBlock) {
$this->addBlock($currentBlock);
$currentBlock = new Block();
}
} else {
$currentBlock->process($line);
}
}
fclose($handle);
if ($currentBlock && $currentBlock->isInitialized()) {
$this->addBlock($currentBlock);
}
} | php | {
"resource": ""
} |
q249862 | PoEditor.compile | validation | public function compile()
{
$compiled_blocks = [];
foreach ($this->blocks as $key => $block)
$compiled_blocks[] = $block->compile();
return implode("\n\n", $compiled_blocks) . "\n";
} | php | {
"resource": ""
} |
q249863 | MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForSKUResponse.setGetLowestOfferListingsForSKUResult | validation | public function setGetLowestOfferListingsForSKUResult($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['GetLowestOfferListingsForSKUResult']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249864 | MarketplaceWebServiceProducts_Model_NumberOfOfferListingsList.setOfferListingCount | validation | public function setOfferListingCount($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['OfferListingCount']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249865 | MWSMerchantFulfillmentService_Model_GetEligibleShippingServicesResult.setShippingServiceList | validation | public function setShippingServiceList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['ShippingServiceList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249866 | MWSMerchantFulfillmentService_Model_GetEligibleShippingServicesResult.setTemporarilyUnavailableCarrierList | validation | public function setTemporarilyUnavailableCarrierList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['TemporarilyUnavailableCarrierList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249867 | MWSMerchantFulfillmentService_Model_GetEligibleShippingServicesResult.setTermsAndConditionsNotAcceptedCarrierList | validation | public function setTermsAndConditionsNotAcceptedCarrierList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['TermsAndConditionsNotAcceptedCarrierList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249868 | MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResponse.setGetCompetitivePricingForSKUResult | validation | public function setGetCompetitivePricingForSKUResult($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['GetCompetitivePricingForSKUResult']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249869 | MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResponse.fromXML | validation | public static function fromXML($xml)
{
$dom = new DOMDocument();
$dom->loadXML($xml);
$xpath = new DOMXPath($dom);
$response = $xpath->query("//*[local-name()='GetCompetitivePricingForSKUResponse']");
if ($response->length == 1) {
return new MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResponse(($response->item(0)));
} else {
throw new Exception ("Unable to construct MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResponse from provided XML.
Make sure that GetCompetitivePricingForSKUResponse is a root element");
}
} | php | {
"resource": ""
} |
q249870 | MarketplaceWebServiceSellers_Model_ListParticipations.setParticipation | validation | public function setParticipation($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['Participation']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249871 | MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForASINResponse.setGetLowestOfferListingsForASINResult | validation | public function setGetLowestOfferListingsForASINResult($value)
{
if (!$this->_isNumericArray($value)) {
$value = array($value);
}
$this->_fields['GetLowestOfferListingsForASINResult']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249872 | MarketplaceWebService_Model_UpdateReportAcknowledgementsResult.setReportInfoList | validation | public function setReportInfoList($reportInfo)
{
if (!$this->_isNumericArray($reportInfo)) {
$reportInfo = array($reportInfo);
}
$this->fields['ReportInfo']['FieldValue'] = $reportInfo;
return $this;
} | php | {
"resource": ""
} |
q249873 | MarketplaceWebService_Model_GetReportRequestListByNextTokenResult.setReportRequestInfoList | validation | public function setReportRequestInfoList($reportRequestInfo)
{
if (!$this->_isNumericArray($reportRequestInfo)) {
$reportRequestInfo = array($reportRequestInfo);
}
$this->fields['ReportRequestInfo']['FieldValue'] = $reportRequestInfo;
return $this;
} | php | {
"resource": ""
} |
q249874 | MWSFinancesService_Model_ShipmentEvent.setOrderChargeList | validation | public function setOrderChargeList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['OrderChargeList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249875 | MWSFinancesService_Model_ShipmentEvent.setOrderChargeAdjustmentList | validation | public function setOrderChargeAdjustmentList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['OrderChargeAdjustmentList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249876 | MWSFinancesService_Model_ShipmentEvent.setShipmentFeeList | validation | public function setShipmentFeeList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['ShipmentFeeList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249877 | MWSFinancesService_Model_ShipmentEvent.setShipmentFeeAdjustmentList | validation | public function setShipmentFeeAdjustmentList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['ShipmentFeeAdjustmentList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249878 | MWSFinancesService_Model_ShipmentEvent.setOrderFeeList | validation | public function setOrderFeeList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['OrderFeeList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249879 | MWSFinancesService_Model_ShipmentEvent.setOrderFeeAdjustmentList | validation | public function setOrderFeeAdjustmentList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['OrderFeeAdjustmentList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249880 | MWSFinancesService_Model_ShipmentEvent.setDirectPaymentList | validation | public function setDirectPaymentList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['DirectPaymentList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249881 | MWSFinancesService_Model_ShipmentEvent.setShipmentItemList | validation | public function setShipmentItemList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['ShipmentItemList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249882 | MWSFinancesService_Model_ShipmentEvent.setShipmentItemAdjustmentList | validation | public function setShipmentItemAdjustmentList($value)
{
if (!$this->_isNumericArray($value)) {
$value = array ($value);
}
$this->_fields['ShipmentItemAdjustmentList']['FieldValue'] = $value;
return $this;
} | php | {
"resource": ""
} |
q249883 | MarketplaceWebService_Client.getReportRequestListByNextToken | validation | public function getReportRequestListByNextToken($request)
{
if (!$request instanceof MarketplaceWebService_Model_GetReportRequestListByNextTokenRequest) {
$request = new MarketplaceWebService_Model_GetReportRequestListByNextTokenRequest($request);
}
$httpResponse = $this->invoke($this->convertGetReportRequestListByNextToken($request));
$response = MarketplaceWebService_Model_GetReportRequestListByNextTokenResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249884 | MarketplaceWebService_Client.cancelReportRequests | validation | public function cancelReportRequests($request)
{
if (!$request instanceof MarketplaceWebService_Model_CancelReportRequestsRequest) {
$request = new MarketplaceWebService_Model_CancelReportRequestsRequest($request);
}
$httpResponse = $this->invoke($this->convertCancelReportRequests($request));
$response = MarketplaceWebService_Model_CancelReportRequestsResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249885 | MarketplaceWebService_Client.getReportRequestCount | validation | public function getReportRequestCount($request)
{
if (!$request instanceof MarketplaceWebService_Model_GetReportRequestCountRequest) {
$request = new MarketplaceWebService_Model_GetReportRequestCountRequest($request);
}
$httpResponse = $this->invoke($this->convertGetReportRequestCount($request));
$response = MarketplaceWebService_Model_GetReportRequestCountResponse::fromXML($httpResponse['ResponseBody']);
$response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
return $response;
} | php | {
"resource": ""
} |
q249886 | MarketplaceWebService_Client.parseHttpHeader | validation | private function parseHttpHeader($header)
{
$parsedHeader = array();
foreach (explode("\n", $header) as $line) {
$splitLine = preg_split('/:\s/', $line, 2, PREG_SPLIT_NO_EMPTY);
if (sizeof($splitLine) == 2) {
$k = strtolower(trim($splitLine[0]));
$v = trim($splitLine[1]);
if (array_key_exists($k, $parsedHeader)) {
$parsedHeader[$k] = $parsedHeader[$k] . "," . $v;
} else {
$parsedHeader[$k] = $v;
}
}
}
return $parsedHeader;
} | php | {
"resource": ""
} |
q249887 | MarketplaceWebService_Client.getDefaultCurlOptions | validation | private function getDefaultCurlOptions()
{
return array(
CURLOPT_POST => true,
CURLOPT_USERAGENT => $this->config['UserAgent'],
CURLOPT_VERBOSE => false,
CURLOPT_HEADERFUNCTION => array($this, 'headerCallback'),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_SSL_VERIFYHOST => 2
);
} | php | {
"resource": ""
} |
q249888 | MarketplaceWebService_Client.configureCurlOptions | validation | private function configureCurlOptions($action, array $converted, $streamHandle = null, $contentMd5 = null)
{
$curlOptions = $this->getDefaultCurlOptions();
if (!is_null($this->config['ProxyHost'])) {
$proxy = $this->config['ProxyHost'];
$proxy .= ':' . ($this->config['ProxyPort'] == -1 ? '80' : $this->config['ProxyPort']);
$curlOptions[CURLOPT_PROXY] = $proxy;
}
if (array_key_exists('CURLOPT_VERBOSE', $this->config) && !is_null($this->config['CURLOPT_VERBOSE'])) {
$curlOptions[CURLOPT_VERBOSE] = $this->config['CURLOPT_VERBOSE'];
}
$serviceUrl = $this->config['ServiceURL'];
// append the '/' character to the end of the service URL if it doesn't exist.
if (!(substr($serviceUrl, strlen($serviceUrl) - 1) === '/')) {
$serviceUrl .= '/';
}
$requestType = MarketplaceWebService_RequestType::getRequestType($action);
if ($requestType == MarketplaceWebService_RequestType::POST_UPLOAD) {
if (is_null($streamHandle) || !is_resource($streamHandle)) {
throw new MarketplaceWebService_Exception(array('Message' => 'Missing stream resource.'));
}
$serviceUrl .= '?' . $this->getParametersAsString($converted[CONVERTED_PARAMETERS_KEY]);
$curlOptions[CURLOPT_URL] = $serviceUrl;
$header[] = 'Expect: ';
$header[] = 'Accept: ';
$header[] = 'Transfer-Encoding: chunked';
$header[] = 'Content-MD5: ' . $contentMd5;
$curlOptions[CURLOPT_HTTPHEADER] = array_merge($header, $converted[CONVERTED_HEADERS_KEY]);
rewind($streamHandle);
$curlOptions[CURLOPT_INFILE] = $streamHandle;
$curlOptions[CURLOPT_UPLOAD] = true;
$curlOptions[CURLOPT_CUSTOMREQUEST] = self::REQUEST_TYPE;
} else if (!($requestType === MarketplaceWebService_RequestType::UNKNOWN)) {
$curlOptions[CURLOPT_URL] = $this->config['ServiceURL'];
$curlOptions[CURLOPT_POSTFIELDS] = $this->getParametersAsString($converted[CONVERTED_PARAMETERS_KEY]);
if ($requestType == MarketplaceWebService_RequestType::POST_DOWNLOAD) {
$this->responseBodyContents = $streamHandle;
$curlOptions[CURLOPT_WRITEFUNCTION] = array($this, 'responseCallback');
}
} else {
throw new InvalidArgumentException("$action is not a valid request type.");
}
return $curlOptions;
} | php | {
"resource": ""
} |
q249889 | MarketplaceWebService_Client.addRequiredParameters | validation | private function addRequiredParameters(array $parameters)
{
$parameters['AWSAccessKeyId'] = $this->awsAccessKeyId;
$parameters['Timestamp'] = $this->getFormattedTimestamp(new DateTime('now', new DateTimeZone('UTC')));
$parameters['Version'] = self::SERVICE_VERSION;
$parameters['SignatureVersion'] = $this->config['SignatureVersion'];
if ($parameters['SignatureVersion'] > 1) {
$parameters['SignatureMethod'] = $this->config['SignatureMethod'];
}
$parameters['Signature'] = $this->signParameters($parameters, $this->awsSecretAccessKey);
return $parameters;
} | php | {
"resource": ""
} |
q249890 | MarketplaceWebService_Client.calculateStringToSignV2 | validation | private function calculateStringToSignV2(array $parameters, $queuepath = null)
{
$parsedUrl = parse_url($this->config['ServiceURL']);
$endpoint = $parsedUrl['host'];
if (isset($parsedUrl['port']) && !is_null($parsedUrl['port'])) {
$endpoint .= ':' . $parsedUrl['port'];
}
$data = 'POST';
$data .= "\n";
$data .= $endpoint;
$data .= "\n";
if ($queuepath) {
$uri = $queuepath;
} else {
$uri = "/";
}
$uriencoded = implode("/", array_map(array($this, "urlencode"), explode("/", $uri)));
$data .= $uriencoded;
$data .= "\n";
uksort($parameters, 'strcmp');
$data .= $this->getParametersAsString($parameters);
return $data;
} | php | {
"resource": ""
} |
q249891 | MarketplaceWebService_Client.getFormattedTimestamp | validation | private function getFormattedTimestamp($dateTime)
{
if(!$dateTime instanceof DateTime) {
$dateTime = new DateTime($dateTime);
}
return $dateTime->format(DATE_ISO8601);
} | php | {
"resource": ""
} |
q249892 | MarketplaceWebService_Client.convertGetReport | validation | private function convertGetReport($request)
{
$parameters = array();
$parameters['Action'] = 'GetReport';
if ($request->isSetMarketplace()) {
$parameters['Marketplace'] = $request->getMarketplace();
}
if ($request->isSetMerchant()) {
$parameters['Merchant'] = $request->getMerchant();
}
if ($request->isSetReportId()) {
$parameters['ReportId'] = $request->getReportId();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
return array(CONVERTED_PARAMETERS_KEY => $parameters, CONVERTED_HEADERS_KEY => $this->defaultHeaders);
} | php | {
"resource": ""
} |
q249893 | MarketplaceWebService_Client.convertGetReportScheduleCount | validation | private function convertGetReportScheduleCount($request)
{
$parameters = array();
$parameters['Action'] = 'GetReportScheduleCount';
if ($request->isSetMarketplace()) {
$parameters['Marketplace'] = $request->getMarketplace();
}
if ($request->isSetMerchant()) {
$parameters['Merchant'] = $request->getMerchant();
}
if ($request->isSetReportTypeList()) {
$reportTypeList = $request->getReportTypeList();
foreach ($reportTypeList->getType() as $typeIndex => $type) {
$parameters['ReportTypeList' . '.' . 'Type' . '.' . ($typeIndex + 1)] = $type;
}
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
return array(CONVERTED_PARAMETERS_KEY => $parameters, CONVERTED_HEADERS_KEY => $this->defaultHeaders);
} | php | {
"resource": ""
} |
q249894 | MarketplaceWebService_Client.convertUpdateReportAcknowledgements | validation | private function convertUpdateReportAcknowledgements($request)
{
$parameters = array();
$parameters['Action'] = 'UpdateReportAcknowledgements';
if ($request->isSetMarketplace()) {
$parameters['Marketplace'] = $request->getMarketplace();
}
if ($request->isSetMerchant()) {
$parameters['Merchant'] = $request->getMerchant();
}
if ($request->isSetReportIdList()) {
$reportIdList = $request->getReportIdList();
foreach ($reportIdList->getId() as $idIndex => $id) {
$parameters['ReportIdList' . '.' . 'Id' . '.' . ($idIndex + 1)] = $id;
}
}
if ($request->isSetAcknowledged()) {
$parameters['Acknowledged'] = $request->getAcknowledged() ? "true" : "false";
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
return array(CONVERTED_PARAMETERS_KEY => $parameters, CONVERTED_HEADERS_KEY => $this->defaultHeaders);
} | php | {
"resource": ""
} |
q249895 | MarketplaceWebService_Client.convertSubmitFeed | validation | private function convertSubmitFeed($request)
{
$parameters = array();
$parameters['Action'] = 'SubmitFeed';
if ($request->isSetMarketplace()) {
$parameters['Marketplace'] = $request->getMarketplace();
}
if ($request->isSetMerchant()) {
$parameters['Merchant'] = $request->getMerchant();
}
if ($request->isSetMarketplaceIdList()) {
$marketplaceIdList = $request->getMarketplaceIdList();
foreach ($marketplaceIdList->getId() as $idIndex => $id) {
$parameters['MarketplaceIdList.Id.' . ($idIndex + 1)] = $id;
}
}
if ($request->isSetFeedType()) {
$parameters['FeedType'] = $request->getFeedType();
}
if ($request->isSetPurgeAndReplace()) {
$parameters['PurgeAndReplace'] = $request->getPurgeAndReplace() ? "true" : "false";
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
$headers = array();
array_push($headers, "Content-Type: " . $request->getContentType()->toString());
return array(CONVERTED_PARAMETERS_KEY => $parameters, CONVERTED_HEADERS_KEY => $headers);
} | php | {
"resource": ""
} |
q249896 | MarketplaceWebService_Client.convertGetReportCount | validation | private function convertGetReportCount($request)
{
$parameters = array();
$parameters['Action'] = 'GetReportCount';
if ($request->isSetMarketplace()) {
$parameters['Marketplace'] = $request->getMarketplace();
}
if ($request->isSetMerchant()) {
$parameters['Merchant'] = $request->getMerchant();
}
if ($request->isSetReportTypeList()) {
$reportTypeList = $request->getReportTypeList();
foreach ($reportTypeList->getType() as $typeIndex => $type) {
$parameters['ReportTypeList' . '.' . 'Type' . '.' . ($typeIndex + 1)] = $type;
}
}
if ($request->isSetAcknowledged()) {
$parameters['Acknowledged'] = $request->getAcknowledged() ? "true" : "false";
}
if ($request->isSetAvailableFromDate()) {
$parameters['AvailableFromDate'] = $this->getFormattedTimestamp($request->getAvailableFromDate());
}
if ($request->isSetAvailableToDate()) {
$parameters['AvailableToDate'] = $this->getFormattedTimestamp($request->getAvailableToDate());
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
return array(CONVERTED_PARAMETERS_KEY => $parameters, CONVERTED_HEADERS_KEY => $this->defaultHeaders);
} | php | {
"resource": ""
} |
q249897 | MarketplaceWebService_Client.convertGetFeedSubmissionListByNextToken | validation | private function convertGetFeedSubmissionListByNextToken($request)
{
$parameters = array();
$parameters['Action'] = 'GetFeedSubmissionListByNextToken';
if ($request->isSetMarketplace()) {
$parameters['Marketplace'] = $request->getMarketplace();
}
if ($request->isSetMerchant()) {
$parameters['Merchant'] = $request->getMerchant();
}
if ($request->isSetNextToken()) {
$parameters['NextToken'] = $request->getNextToken();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
return array(CONVERTED_PARAMETERS_KEY => $parameters, CONVERTED_HEADERS_KEY => $this->defaultHeaders);
} | php | {
"resource": ""
} |
q249898 | MarketplaceWebService_Client.convertCancelFeedSubmissions | validation | private function convertCancelFeedSubmissions($request)
{
$parameters = array();
$parameters['Action'] = 'CancelFeedSubmissions';
if ($request->isSetMarketplace()) {
$parameters['Marketplace'] = $request->getMarketplace();
}
if ($request->isSetMerchant()) {
$parameters['Merchant'] = $request->getMerchant();
}
if ($request->isSetFeedSubmissionIdList()) {
$feedSubmissionIdList = $request->getFeedSubmissionIdList();
foreach ($feedSubmissionIdList->getId() as $idIndex => $id) {
$parameters['FeedSubmissionIdList' . '.' . 'Id' . '.' . ($idIndex + 1)] = $id;
}
}
if ($request->isSetFeedTypeList()) {
$feedTypeList = $request->getFeedTypeList();
foreach ($feedTypeList->getType() as $typeIndex => $type) {
$parameters['FeedTypeList' . '.' . 'Type' . '.' . ($typeIndex + 1)] = $type;
}
}
if ($request->isSetSubmittedFromDate()) {
$parameters['SubmittedFromDate'] = $this->getFormattedTimestamp($request->getSubmittedFromDate());
}
if ($request->isSetSubmittedToDate()) {
$parameters['SubmittedToDate'] = $this->getFormattedTimestamp($request->getSubmittedToDate());
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
return array(CONVERTED_PARAMETERS_KEY => $parameters, CONVERTED_HEADERS_KEY => $this->defaultHeaders);
} | php | {
"resource": ""
} |
q249899 | MarketplaceWebService_Client.convertRequestReport | validation | private function convertRequestReport($request)
{
$parameters = array();
$parameters['Action'] = 'RequestReport';
if ($request->isSetMarketplace()) {
$parameters['Marketplace'] = $request->getMarketplace();
}
if ($request->isSetMerchant()) {
$parameters['Merchant'] = $request->getMerchant();
}
if ($request->isSetMarketplaceIdList()) {
$marketplaceIdList = $request->getMarketplaceIdList();
foreach ($marketplaceIdList->getId() as $idIndex => $id) {
$parameters['MarketplaceIdList.Id.' . ($idIndex + 1)] = $id;
}
}
if ($request->isSetReportType()) {
$parameters['ReportType'] = $request->getReportType();
}
if ($request->isSetStartDate()) {
$parameters['StartDate'] = $this->getFormattedTimestamp($request->getStartDate());
}
if ($request->isSetEndDate()) {
$parameters['EndDate'] = $this->getFormattedTimestamp($request->getEndDate());
}
if ($request->isSetReportOptions()) {
$parameters['ReportOptions'] = $request->getReportOptions();
}
if ($request->isSetMWSAuthToken()) {
$parameters['MWSAuthToken'] = $request->getMWSAuthToken();
}
return array(CONVERTED_PARAMETERS_KEY => $parameters, CONVERTED_HEADERS_KEY => $this->defaultHeaders);
} | php | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.