Class: PayPalAPIInterface

Inherits:
SOAP::RPC::Driver
  • Object
show all
Defined in:
lib/paypal-business/defaultDriver.rb

Constant Summary collapse

DefaultEndpointUrl =
"https://api.sandbox.paypal.com/2.0/"
MappingRegistry =
::SOAP::Mapping::Registry.new
Methods =
[
  [ nil,
    "refundTransaction",
    [ ["in", "RefundTransactionRequest", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "RefundTransactionReq"], true],
      ["out", "RefundTransactionResponse", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "RefundTransactionResponse"], true] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal }
  ],
  [ nil,
    "getTransactionDetails",
    [ ["in", "GetTransactionDetailsRequest", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "GetTransactionDetailsReq"], true],
      ["out", "GetTransactionDetailsResponse", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "GetTransactionDetailsResponse"], true] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal }
  ],
  [ nil,
    "billUser",
    [ ["in", "BillUserRequest", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "BillUserReq"], true],
      ["out", "BillUserResponse", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "BillUserResponse"], true] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal }
  ],
  [ nil,
    "transactionSearch",
    [ ["in", "TransactionSearchRequest", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "TransactionSearchReq"], true],
      ["out", "TransactionSearchResponse", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "TransactionSearchResponse"], true] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal }
  ],
  [ nil,
    "massPay",
    [ ["in", "MassPayRequest", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "MassPayReq"], true],
      ["out", "MassPayResponse", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "MassPayResponse"], true] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal }
  ],
  [ nil,
    "billAgreementUpdate",
    [ ["in", "BillAgreementUpdateRequest", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "BillAgreementUpdateReq"], true],
      ["out", "body", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "BAUpdateResponse"], true] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal }
  ],
  [ nil,
    "addressVerify",
    [ ["in", "AddressVerifyRequest", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "AddressVerifyReq"], true],
      ["out", "AddressVerifyResponse", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "AddressVerifyResponse"], true] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal }
  ],
  [ nil,
    "enterBoarding",
    [ ["in", "EnterBoardingRequest", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "EnterBoardingReq"], true],
      ["out", "EnterBoardingResponse", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "EnterBoardingResponse"], true] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal }
  ],
  [ nil,
    "getBoardingDetails",
    [ ["in", "GetBoardingDetailsRequest", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "GetBoardingDetailsReq"], true],
      ["out", "GetBoardingDetailsResponse", ["::SOAP::SOAPElement", "urn:ebay:api:PayPalAPI", "GetBoardingDetailsResponse"], true] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal }
  ]
]

Instance Method Summary collapse

Constructor Details

#initialize(endpoint_url = nil) ⇒ PayPalAPIInterface

Returns a new instance of PayPalAPIInterface.



75
76
77
78
79
80
# File 'lib/paypal-business/defaultDriver.rb', line 75

def initialize(endpoint_url = nil)
  endpoint_url ||= DefaultEndpointUrl
  super(endpoint_url, nil)
  self.mapping_registry = MappingRegistry
  init_methods
end