Get Resource Url for GetAvailablePickupFulfillmentActions
@param orderId Unique identifier of the order.
@param pickupId Unique identifier of the pickup to remove.
@return   String Resource Url
963825
public static MozuUrl getAvailablePickupFulfillmentActionsUrl(String orderId, String pickupId)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/pickups/{pickupId}/actions");
		formatter.formatUrl("orderId", orderId);
		formatter.formatUrl("pickupId", pickupId);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
1330316
public Object requestGet(final String id, Class type) throws SDKException {
    String url = this.pathUrl;
    if (id != null) {
      url += "/" + id;
      return requestGetWithStatus(url, null, type);
    } else {
      return requestGetAll(url, type, null);
    }
  }
606155
public function getPaymentSuccessPageUrl($order_id)
    {
        $frontOfficeRouter = $this->getContainer()->get('router.front');

        return URL::getInstance()->absoluteUrl(
            $frontOfficeRouter->generate(
                "order.placed",
                array("order_id" => $order_id),
                Router::ABSOLUTE_URL
            )
        );
    }
742764
public function get($orderId, $transactionId, array $params = array())
    {
        $endpoint = '/admin/orders/'.$orderId.'/transactions/'.$transactionId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(Transaction::class, $response['transaction']);
    }
683151
public static function cancel($orderId)
    {
        $url = static::classUrl();
        $url = $url . '/' . $orderId . '/cancel';
        list($ret, $code) = parent::staticRequest('post', $url, []);

        return (object)[
            'code' => $code,
            'status' => $code === 200? 'success' : 'failed'
        ];
    }
1025171
public function getPickupReceipt($id, $mode = PickupReceiptModes::MODE_CONDENSED)
    {
        $response = $this->request('adePickup_GetReceipt', array('id' => $id, 'mode' => $mode));

        return base64_decode($response->get('receipt'));
    }
465515
public static MozuUrl resendRefundEmailUrl(String orderId, String refundId)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/refunds/{refundId}");
		formatter.formatUrl("orderId", orderId);
		formatter.formatUrl("refundId", refundId);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
281241
public OvhPaymentMethods order_orderId_paymentMethods_GET(Long orderId) throws IOException {
		String qPath = "/me/order/{orderId}/paymentMethods";
		StringBuilder sb = path(qPath, orderId);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhPaymentMethods.class);
	}
936670
public function load($orderId)
    {
        $db = $this->getDb();
        $data = $db->getRow('SELECT * FROM `oepaypal_order` WHERE `oepaypal_orderid` = ' . $db->quote($orderId));

        return $data;
    }
715889
public static MozuUrl getExtendedPropertiesUrl(Boolean draft, String orderId)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/extendedproperties?draft={draft}");
		formatter.formatUrl("draft", draft);
		formatter.formatUrl("orderId", orderId);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
816687
public function findAvailableByStockItemAndLocation(StockItemInterface $item,
        Location $location, ?BatchInterface $batch = null, array $orderBy = []): array
    {
        $qb = $this->createQueryBuilder('su');
        $this->filterByLocation($qb, $location, LocationType::INTERNAL);
        $this->filterByAvailability($qb);
        $this->filterByStockItem($qb, $item, $batch);
        $this->addOrderBy($qb, $orderBy);

        return $qb->getQuery()->getResult();
    }
306686
def make_request!(pickup_location, options, notes = '')
      resp = request_item_request(pickup_location, options, notes)

      number = extract_request_number(resp)

      if number.nil?
        raise BorrowDirect::Error.new("Can not request for: #{options.inspect}: #{resp.inspect}")
      end

      return number
    end
812105
def get_order(self, id, **data):
        
        
        return self.get("/orders/{0}/".format(id), data=data)
246702
def lookup_order(self, order_id):
        
        self._log('look up order(s) {}'.format(order_id))
        return self._rest_client.post(
            endpoint='/lookup_order',
            payload={'id': order_id}
        )
1220168
def get_url_for_id(client_site_url, apikey, resource_id):
    
    # TODO: Handle invalid responses from the client site.
    url = client_site_url + u"deadoralive/get_url_for_resource_id"
    params = {"resource_id": resource_id}
    response = requests.get(url, headers=dict(Authorization=apikey),
                            params=params)
    if not response.ok:
        raise CouldNotGetURLError(
            u"Couldn't get URL for resource {id}: {code} {reason}".format(
                id=resource_id, code=response.status_code,
                reason=response.reason))

    return response.json()
158879
public static MozuUrl deletePackageUrl(String packageId, String returnId)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/{returnId}/packages/{packageId}");
		formatter.formatUrl("packageId", packageId);
		formatter.formatUrl("returnId", returnId);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
1091854
public function getPayGiftCard($rule_id)
    {
        $url = "https://api.weixin.qq.com/card/paygiftcard/getbyid?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, ['rule_id' => $rule_id]);
    }