Skip to content

ProcessTag #97

Open
Open

Description

Need an example how to processTag Request..

Activity

  1. radzhome commented on Mar 8, 2018

    @radzhome
    Member

    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.

  2. vepkenez commented on Dec 13, 2018

    @vepkenez

    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

  3. radzhome commented on Apr 2, 2019

    @radzhome
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions