JeremyDunn / php-fedex-api-wrapper

This library provides a fluid interface for constructing requests to the FedEx web service API.
269 stars 184 forks source link

How to set PurchaseOrder in label #194

Closed smitakartit closed 2 years ago

smitakartit commented 2 years ago

I got function setPurchaseOrderNumber(). but how to impliment this

TheGr8 commented 2 years ago

I am not sure where you see the setPurchaseOrderNumber function. Here's how I do it, I believe I got this code from samples.

$refPO = new ComplexType\CustomerReference();

$refPO ->setCustomerReferenceType('P_O_NUMBER')
  ->setValue('123456');

...
//Reference numbers are assigned to the first ITEM

$item = new ComplexType\RequestedPackageLineItem();

$item
    ->setWeight($itemWeight)
    ->setCustomerReferences([$refPO])
    ->setInsuredValue($itemValue)
    ->setSequenceNumber($item_seq);
github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.