Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProcessTag #97

Open
ghost opened this issue Feb 17, 2018 · 3 comments
Open

ProcessTag #97

ghost opened this issue Feb 17, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 17, 2018

Need an example how to processTag Request..

@radzhome
Copy link
Member

radzhome commented Mar 8, 2018

For which service? And do you have an example I can add already built? Also, if you have one by now go ahead and send a PR.

@vepkenez
Copy link

processTagRequests are almost exactly the same as shipmentRequests.
Just make sure all the required fields and specs are as required here on page 500

and then this very simple subclass

class FedexProcessTagRequest(FedexProcessShipmentRequest):

    def _assemble_and_send_request(self):
        """
        Fires off the Fedex request.

        @warning: NEVER CALL THIS METHOD DIRECTLY. CALL send_request(),
            WHICH RESIDES ON FedexBaseService AND IS INHERITED.
        """
        # Fire off the query.
        return self.client.service.processTag(
                WebAuthenticationDetail=self.WebAuthenticationDetail,
                ClientDetail=self.ClientDetail,
                TransactionDetail=self.TransactionDetail,
                Version=self.VersionId,
                RequestedShipment=self.RequestedShipment)

The only difference here is that we call self.client.service.processTag instead of self.client.service.processShipment

@radzhome
Copy link
Member

radzhome commented Apr 2, 2019

You mind sending a PR with some tests included and I'll merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants