Class: ShipMe::FedEx::RequestElement
- Includes:
- ActiveMerchant::PostsData, ROXML::AttributeInitializable
- Defined in:
- lib/ship_me/carriers/fed_ex/element.rb
Direct Known Subclasses
CancelPendingShipmentRequest, CreatePendingShipmentRequest, DeleteShipmentRequest, DeleteTagRequest, ProcessShipmentRequest, ProcessTagRequest, ValidateShipmentRequest
Constant Summary collapse
- TEST_URL =
'https://gatewaybeta.fedex.com:443/xml'
- LIVE_URL =
'https://gateway.fedex.com:443/xml'
Instance Method Summary collapse
- #commit(test = false) ⇒ Object
-
#initialize(*args, &blk) ⇒ RequestElement
constructor
A new instance of RequestElement.
Methods inherited from Element
Constructor Details
#initialize(*args, &blk) ⇒ RequestElement
Returns a new instance of RequestElement.
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/ship_me/carriers/fed_ex/element.rb', line 30 def initialize(*args, &blk) super(*args, &blk) self.xmlns = "http://fedex.com/ws/ship/v8" self.xmlns_ns = "http://fedex.com/ws/ship/v8" self.xmlns_v8 = "http://fedex.com/ws/ship/v8" self.version ||= VersionId.new self.version.service_id = 'ship' self.version.major = 8 self.version.intermediate = 0 self.version.minor = 0 self.web_authentication_detail ||= WebAuthenticationDetail.new self.client_detail ||= ClientDetail.new end |