Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial prototype and skeleton, currently working on PublisherCommiss…

…ion service
  • Loading branch information...
commit 4cc3fcd2cc46dbf006419b498a8fc001d9dd288d 1 parent b26bf9a
Jose Fernandez authored
View
2  MIT-LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2008 [name of plugin creator]
+Copyright (c) 2008 Jose R. Fernandez
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
5 README
@@ -1,8 +1,7 @@
Cj4r
====
-Introduction goes here.
-
+Ruby wrapper for Commission Junction's Web Services SOAP API
Example
=======
@@ -10,4 +9,4 @@ Example
Example goes here.
-Copyright (c) 2008 [name of plugin creator], released under the MIT license
+Copyright (c) 2008 Jose R. Fernandez, released under the MIT license
View
0  cj_devkey.yml.tpl → cj_key.yml.tpl
File renamed without changes
View
4 install.rb
@@ -1,5 +1,5 @@
require 'fileutils'
-cj_config = File.dirname(__FILE__) + '/../../../config/cj_devkey.yml'
-FileUtils.cp File.dirname(__FILE__) + '/cj_devkey.yml.tpl', cj_config unless File.exist?(cj_config)
+cj_config = File.dirname(__FILE__) + '/../../../config/cj_key.yml'
+FileUtils.cp File.dirname(__FILE__) + '/cj_key.yml.tpl', cj_config unless File.exist?(cj_config)
puts IO.read(File.join(File.dirname(__FILE__), 'README'))
View
BIN  lib/.DS_Store
Binary file not shown
View
15 lib/cj4r.rb
@@ -1,13 +1,22 @@
require 'rubygems'
gem 'soap4r'
+require 'services/publisher_commission_service'
module Cj4r
- def self.included(base)
- include ClassMethods
+ class ConfigFileNotFoundError < StandardError; end
+ class DeveloperKeyError < StandardError; end
+
+ def self.included(base)
mattr_reader :developer_key
- @@developer_key =
+ begin
+ config_path = RAILS_ROOT + "/config/cj_key.yml"
+ @@developer_key = File.open(File.expand_path(config_path)) { |f| f.read }.chomp
+ raise DeveloperKeyError.new("Developer key is empty: %s" % config_path) if @@developer_key.blank?
+ rescue Errno::ENOENT
+ raise ConfigFileNotFoundError.new("Config file not found: %s" % config_path )
+ end
end
end
View
88 lib/services/publisher_commission_service.rb
@@ -0,0 +1,88 @@
+require 'services/wsdl/publisher_commission_driver'
+
+module Cj4r
+
+ class PublisherCommission
+
+ class << self # Class methods
+
+ def find(*args)
+ options = args.extract_options!
+
+ case args.first
+ when :first then find_initial(options)
+ when :last then find_last(options)
+ when :all then find_every(options)
+ end
+ end
+
+ private
+
+ def find_initial(options)
+ find_every(options).first
+ end
+
+ def find_last(options)
+ find_every(options).last
+ end
+
+ def find_every(options)
+ params = FindPublisherCommissions.new(
+ Cj4r.developer_key,
+ '01/19/2007',
+ 'event', "",
+ "all",
+ "all",
+ "all",
+ "",
+ "",
+ "",
+ "commissionAmount",
+ "desc")
+ service.findPublisherCommissions(params).out.publisherCommissions
+ end
+
+ def service
+ PublisherCommissionServicePortType.new
+ end
+
+ end
+
+ end
+
+end
+
+# #!/usr/bin/env ruby
+# require 'publisher_commissionDriver.rb'
+#
+# endpoint_url = ARGV.shift
+# obj = PublisherCommissionServicePortType.new(endpoint_url)
+#
+# # run ruby with -d to see SOAP wiredumps.
+# obj.wiredump_dev = STDERR if $DEBUG
+#
+# # SYNOPSIS
+# # findPublisherCommissions(parameters)
+# #
+# # ARGS
+# # parameters FindPublisherCommissions - {http://api.cj.com}findPublisherCommissions
+# #
+# # RETURNS
+# # parameters FindPublisherCommissionsResponse - {http://api.cj.com}findPublisherCommissionsResponse
+# #
+# parameters = nil
+# puts obj.findPublisherCommissions(parameters)
+#
+# # SYNOPSIS
+# # findPublisherCommissionDetails(parameters)
+# #
+# # ARGS
+# # parameters FindPublisherCommissionDetails - {http://api.cj.com}findPublisherCommissionDetails
+# #
+# # RETURNS
+# # parameters FindPublisherCommissionDetailsResponse - {http://api.cj.com}findPublisherCommissionDetailsResponse
+# #
+# parameters = nil
+# puts obj.findPublisherCommissionDetails(parameters)
+#
+#
View
213 lib/services/wsdl/publisher_commission.rb
@@ -0,0 +1,213 @@
+require 'xsd/qname'
+
+# {http://transaction.service.cj.com}PublisherCommissionResponse
+# publisherCommissions - ArrayOfPublisherCommission
+# sortBy - SOAP::SOAPString
+# totalResults - SOAP::SOAPLong
+class PublisherCommissionResponse
+ attr_accessor :publisherCommissions
+ attr_accessor :sortBy
+ attr_accessor :totalResults
+
+ def initialize(publisherCommissions = nil, sortBy = nil, totalResults = nil)
+ @publisherCommissions = publisherCommissions
+ @sortBy = sortBy
+ @totalResults = totalResults
+ end
+end
+
+# {http://transaction.service.cj.com}PublisherCommissionDetailsResponse
+# originalActionDetails - ArrayOfOriginalActionDetail
+class PublisherCommissionDetailsResponse
+ attr_accessor :originalActionDetails
+
+ def initialize(originalActionDetails = nil)
+ @originalActionDetails = originalActionDetails
+ end
+end
+
+# {http://transaction.service.cj.com}ArrayOfOriginalActionDetail
+class ArrayOfOriginalActionDetail < ::Array
+end
+
+# {http://transaction.service.cj.com}OriginalActionDetail
+# transactionDetails - ArrayOfTransactionDetail
+class OriginalActionDetail
+ attr_accessor :transactionDetails
+
+ def initialize(transactionDetails = nil)
+ @transactionDetails = transactionDetails
+ end
+end
+
+# {http://transaction.domain.cj.com}ArrayOfPublisherCommission
+class ArrayOfPublisherCommission < ::Array
+end
+
+# {http://transaction.domain.cj.com}PublisherCommission
+# actionStatus - SOAP::SOAPString
+# actionType - SOAP::SOAPString
+# adId - SOAP::SOAPLong
+# advertiserId - SOAP::SOAPLong
+# advertiserName - SOAP::SOAPString
+# commissionAmount - SOAP::SOAPDecimal
+# country - SOAP::SOAPString
+# eventDate - SOAP::SOAPDateTime
+# original - SOAP::SOAPBoolean
+# originalActionId - SOAP::SOAPLong
+# postingDate - SOAP::SOAPDateTime
+# sId - SOAP::SOAPString
+# saleAmount - SOAP::SOAPDecimal
+# websiteId - SOAP::SOAPLong
+class PublisherCommission
+ attr_accessor :actionStatus
+ attr_accessor :actionType
+ attr_accessor :adId
+ attr_accessor :advertiserId
+ attr_accessor :advertiserName
+ attr_accessor :commissionAmount
+ attr_accessor :country
+ attr_accessor :eventDate
+ attr_accessor :original
+ attr_accessor :originalActionId
+ attr_accessor :postingDate
+ attr_accessor :sId
+ attr_accessor :saleAmount
+ attr_accessor :websiteId
+
+ def initialize(actionStatus = nil, actionType = nil, adId = nil, advertiserId = nil, advertiserName = nil, commissionAmount = nil, country = nil, eventDate = nil, original = nil, originalActionId = nil, postingDate = nil, sId = nil, saleAmount = nil, websiteId = nil)
+ @actionStatus = actionStatus
+ @actionType = actionType
+ @adId = adId
+ @advertiserId = advertiserId
+ @advertiserName = advertiserName
+ @commissionAmount = commissionAmount
+ @country = country
+ @eventDate = eventDate
+ @original = original
+ @originalActionId = originalActionId
+ @postingDate = postingDate
+ @sId = sId
+ @saleAmount = saleAmount
+ @websiteId = websiteId
+ end
+end
+
+# {http://transaction.domain.cj.com}ArrayOfTransactionDetail
+class ArrayOfTransactionDetail < ::Array
+end
+
+# {http://transaction.domain.cj.com}TransactionDetail
+# itemDetails - ArrayOfItemDetail
+# publisherCommission - PublisherCommission
+class TransactionDetail
+ attr_accessor :itemDetails
+ attr_accessor :publisherCommission
+
+ def initialize(itemDetails = nil, publisherCommission = nil)
+ @itemDetails = itemDetails
+ @publisherCommission = publisherCommission
+ end
+end
+
+# {http://transaction.domain.cj.com}ArrayOfItemDetail
+class ArrayOfItemDetail < ::Array
+end
+
+# {http://transaction.domain.cj.com}ItemDetail
+# id - SOAP::SOAPLong
+# postingDate - SOAP::SOAPDateTime
+# quantity - SOAP::SOAPInt
+# saleAmount - SOAP::SOAPDecimal
+# sku - SOAP::SOAPString
+class ItemDetail
+ attr_accessor :id
+ attr_accessor :postingDate
+ attr_accessor :quantity
+ attr_accessor :saleAmount
+ attr_accessor :sku
+
+ def initialize(id = nil, postingDate = nil, quantity = nil, saleAmount = nil, sku = nil)
+ @id = id
+ @postingDate = postingDate
+ @quantity = quantity
+ @saleAmount = saleAmount
+ @sku = sku
+ end
+end
+
+# {http://api.cj.com}findPublisherCommissions
+# developerKey - SOAP::SOAPString
+# date - SOAP::SOAPString
+# dateType - SOAP::SOAPString
+# advertiserIds - SOAP::SOAPString
+# websiteIds - SOAP::SOAPString
+# actionStatus - SOAP::SOAPString
+# actionTypes - SOAP::SOAPString
+# adIds - SOAP::SOAPString
+# countries - SOAP::SOAPString
+# correctionStatus - SOAP::SOAPString
+# sortBy - SOAP::SOAPString
+# sortOrder - SOAP::SOAPString
+class FindPublisherCommissions
+ attr_accessor :developerKey
+ attr_accessor :date
+ attr_accessor :dateType
+ attr_accessor :advertiserIds
+ attr_accessor :websiteIds
+ attr_accessor :actionStatus
+ attr_accessor :actionTypes
+ attr_accessor :adIds
+ attr_accessor :countries
+ attr_accessor :correctionStatus
+ attr_accessor :sortBy
+ attr_accessor :sortOrder
+
+ def initialize(developerKey = nil, date = nil, dateType = nil, advertiserIds = nil, websiteIds = nil, actionStatus = nil, actionTypes = nil, adIds = nil, countries = nil, correctionStatus = nil, sortBy = nil, sortOrder = nil)
+ @developerKey = developerKey
+ @date = date
+ @dateType = dateType
+ @advertiserIds = advertiserIds
+ @websiteIds = websiteIds
+ @actionStatus = actionStatus
+ @actionTypes = actionTypes
+ @adIds = adIds
+ @countries = countries
+ @correctionStatus = correctionStatus
+ @sortBy = sortBy
+ @sortOrder = sortOrder
+ end
+end
+
+# {http://api.cj.com}findPublisherCommissionsResponse
+# out - PublisherCommissionResponse
+class FindPublisherCommissionsResponse
+ attr_accessor :out
+
+ def initialize(out = nil)
+ @out = out
+ end
+end
+
+# {http://api.cj.com}findPublisherCommissionDetails
+# developerKey - SOAP::SOAPString
+# originalActionIds - SOAP::SOAPString
+class FindPublisherCommissionDetails
+ attr_accessor :developerKey
+ attr_accessor :originalActionIds
+
+ def initialize(developerKey = nil, originalActionIds = nil)
+ @developerKey = developerKey
+ @originalActionIds = originalActionIds
+ end
+end
+
+# {http://api.cj.com}findPublisherCommissionDetailsResponse
+# out - PublisherCommissionDetailsResponse
+class FindPublisherCommissionDetailsResponse
+ attr_accessor :out
+
+ def initialize(out = nil)
+ @out = out
+ end
+end
View
54 lib/services/wsdl/publisher_commission_driver.rb
@@ -0,0 +1,54 @@
+require 'services/wsdl/publisher_commission.rb'
+require 'services/wsdl/publisher_commission_mapping_registry.rb'
+require 'soap/rpc/driver'
+
+class PublisherCommissionServicePortType < ::SOAP::RPC::Driver
+ DefaultEndpointUrl = "https://pubcommission.api.cj.com/services/publisherCommissionService"
+
+ Methods = [
+ [ "",
+ "findPublisherCommissions",
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://api.cj.com", "findPublisherCommissions"]],
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://api.cj.com", "findPublisherCommissionsResponse"]] ],
+ { :request_style => :document, :request_use => :literal,
+ :response_style => :document, :response_use => :literal,
+ :faults => {} }
+ ],
+ [ "",
+ "findPublisherCommissionDetails",
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://api.cj.com", "findPublisherCommissionDetails"]],
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://api.cj.com", "findPublisherCommissionDetailsResponse"]] ],
+ { :request_style => :document, :request_use => :literal,
+ :response_style => :document, :response_use => :literal,
+ :faults => {} }
+ ]
+ ]
+
+ def initialize(endpoint_url = nil)
+ endpoint_url ||= DefaultEndpointUrl
+ super(endpoint_url, nil)
+ self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
+ self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
+ init_methods
+ end
+
+private
+
+ def init_methods
+ Methods.each do |definitions|
+ opt = definitions.last
+ if opt[:request_style] == :document
+ add_document_operation(*definitions)
+ else
+ add_rpc_operation(*definitions)
+ qname = definitions[0]
+ name = definitions[2]
+ if qname.name != name and qname.name.capitalize == name.capitalize
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
+ __send__(name, *arg)
+ end
+ end
+ end
+ end
+ end
+end
View
254 lib/services/wsdl/publisher_commission_mapping_registry.rb
@@ -0,0 +1,254 @@
+require 'services/wsdl/publisher_commission.rb'
+require 'soap/mapping'
+
+module DefaultMappingRegistry
+ EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
+ LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
+ NsApiCjCom = "http://api.cj.com"
+ NsTransactionDomainCjCom = "http://transaction.domain.cj.com"
+ NsTransactionServiceCjCom = "http://transaction.service.cj.com"
+
+ EncodedRegistry.register(
+ :class => PublisherCommissionResponse,
+ :schema_type => XSD::QName.new(NsTransactionServiceCjCom, "PublisherCommissionResponse"),
+ :schema_element => [
+ ["publisherCommissions", "ArrayOfPublisherCommission", [0, 1]],
+ ["sortBy", "SOAP::SOAPString", [0, 1]],
+ ["totalResults", "SOAP::SOAPLong", [0, 1]]
+ ]
+ )
+
+ EncodedRegistry.register(
+ :class => PublisherCommissionDetailsResponse,
+ :schema_type => XSD::QName.new(NsTransactionServiceCjCom, "PublisherCommissionDetailsResponse"),
+ :schema_element => [
+ ["originalActionDetails", "ArrayOfOriginalActionDetail", [0, 1]]
+ ]
+ )
+
+ EncodedRegistry.register(
+ :class => ArrayOfOriginalActionDetail,
+ :schema_type => XSD::QName.new(NsTransactionServiceCjCom, "ArrayOfOriginalActionDetail"),
+ :schema_element => [
+ ["originalActionDetail", ["OriginalActionDetail[]", XSD::QName.new(NsTransactionServiceCjCom, "OriginalActionDetail")], [0, nil]]
+ ]
+ )
+
+ EncodedRegistry.register(
+ :class => OriginalActionDetail,
+ :schema_type => XSD::QName.new(NsTransactionServiceCjCom, "OriginalActionDetail"),
+ :schema_element => [
+ ["transactionDetails", "ArrayOfTransactionDetail", [0, 1]]
+ ]
+ )
+
+ EncodedRegistry.register(
+ :class => ArrayOfPublisherCommission,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "ArrayOfPublisherCommission"),
+ :schema_element => [
+ ["publisherCommission", ["PublisherCommission[]", XSD::QName.new(NsTransactionDomainCjCom, "PublisherCommission")], [0, nil]]
+ ]
+ )
+
+ EncodedRegistry.register(
+ :class => PublisherCommission,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "PublisherCommission"),
+ :schema_element => [
+ ["actionStatus", "SOAP::SOAPString", [0, 1]],
+ ["actionType", "SOAP::SOAPString", [0, 1]],
+ ["adId", "SOAP::SOAPLong", [0, 1]],
+ ["advertiserId", "SOAP::SOAPLong", [0, 1]],
+ ["advertiserName", "SOAP::SOAPString", [0, 1]],
+ ["commissionAmount", "SOAP::SOAPDecimal", [0, 1]],
+ ["country", "SOAP::SOAPString", [0, 1]],
+ ["eventDate", "SOAP::SOAPDateTime", [0, 1]],
+ ["original", "SOAP::SOAPBoolean", [0, 1]],
+ ["originalActionId", "SOAP::SOAPLong", [0, 1]],
+ ["postingDate", "SOAP::SOAPDateTime", [0, 1]],
+ ["sId", "SOAP::SOAPString", [0, 1]],
+ ["saleAmount", "SOAP::SOAPDecimal", [0, 1]],
+ ["websiteId", "SOAP::SOAPLong", [0, 1]]
+ ]
+ )
+
+ EncodedRegistry.register(
+ :class => ArrayOfTransactionDetail,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "ArrayOfTransactionDetail"),
+ :schema_element => [
+ ["transactionDetail", ["TransactionDetail[]", XSD::QName.new(NsTransactionDomainCjCom, "TransactionDetail")], [0, nil]]
+ ]
+ )
+
+ EncodedRegistry.register(
+ :class => TransactionDetail,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "TransactionDetail"),
+ :schema_element => [
+ ["itemDetails", "ArrayOfItemDetail", [0, 1]],
+ ["publisherCommission", "PublisherCommission", [0, 1]]
+ ]
+ )
+
+ EncodedRegistry.register(
+ :class => ArrayOfItemDetail,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "ArrayOfItemDetail"),
+ :schema_element => [
+ ["itemDetail", ["ItemDetail[]", XSD::QName.new(NsTransactionDomainCjCom, "ItemDetail")], [0, nil]]
+ ]
+ )
+
+ EncodedRegistry.register(
+ :class => ItemDetail,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "ItemDetail"),
+ :schema_element => [
+ ["id", "SOAP::SOAPLong", [0, 1]],
+ ["postingDate", "SOAP::SOAPDateTime", [0, 1]],
+ ["quantity", "SOAP::SOAPInt", [0, 1]],
+ ["saleAmount", "SOAP::SOAPDecimal", [0, 1]],
+ ["sku", "SOAP::SOAPString", [0, 1]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => PublisherCommissionResponse,
+ :schema_type => XSD::QName.new(NsTransactionServiceCjCom, "PublisherCommissionResponse"),
+ :schema_element => [
+ ["publisherCommissions", "ArrayOfPublisherCommission", [0, 1]],
+ ["sortBy", "SOAP::SOAPString", [0, 1]],
+ ["totalResults", "SOAP::SOAPLong", [0, 1]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => PublisherCommissionDetailsResponse,
+ :schema_type => XSD::QName.new(NsTransactionServiceCjCom, "PublisherCommissionDetailsResponse"),
+ :schema_element => [
+ ["originalActionDetails", "ArrayOfOriginalActionDetail", [0, 1]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => ArrayOfOriginalActionDetail,
+ :schema_type => XSD::QName.new(NsTransactionServiceCjCom, "ArrayOfOriginalActionDetail"),
+ :schema_element => [
+ ["originalActionDetail", ["OriginalActionDetail[]", XSD::QName.new(NsTransactionServiceCjCom, "OriginalActionDetail")], [0, nil]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => OriginalActionDetail,
+ :schema_type => XSD::QName.new(NsTransactionServiceCjCom, "OriginalActionDetail"),
+ :schema_element => [
+ ["transactionDetails", "ArrayOfTransactionDetail", [0, 1]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => ArrayOfPublisherCommission,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "ArrayOfPublisherCommission"),
+ :schema_element => [
+ ["publisherCommission", ["PublisherCommission[]", XSD::QName.new(NsTransactionDomainCjCom, "PublisherCommission")], [0, nil]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => PublisherCommission,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "PublisherCommission"),
+ :schema_element => [
+ ["actionStatus", "SOAP::SOAPString", [0, 1]],
+ ["actionType", "SOAP::SOAPString", [0, 1]],
+ ["adId", "SOAP::SOAPLong", [0, 1]],
+ ["advertiserId", "SOAP::SOAPLong", [0, 1]],
+ ["advertiserName", "SOAP::SOAPString", [0, 1]],
+ ["commissionAmount", "SOAP::SOAPDecimal", [0, 1]],
+ ["country", "SOAP::SOAPString", [0, 1]],
+ ["eventDate", "SOAP::SOAPDateTime", [0, 1]],
+ ["original", "SOAP::SOAPBoolean", [0, 1]],
+ ["originalActionId", "SOAP::SOAPLong", [0, 1]],
+ ["postingDate", "SOAP::SOAPDateTime", [0, 1]],
+ ["sId", "SOAP::SOAPString", [0, 1]],
+ ["saleAmount", "SOAP::SOAPDecimal", [0, 1]],
+ ["websiteId", "SOAP::SOAPLong", [0, 1]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => ArrayOfTransactionDetail,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "ArrayOfTransactionDetail"),
+ :schema_element => [
+ ["transactionDetail", ["TransactionDetail[]", XSD::QName.new(NsTransactionDomainCjCom, "TransactionDetail")], [0, nil]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => TransactionDetail,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "TransactionDetail"),
+ :schema_element => [
+ ["itemDetails", "ArrayOfItemDetail", [0, 1]],
+ ["publisherCommission", "PublisherCommission", [0, 1]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => ArrayOfItemDetail,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "ArrayOfItemDetail"),
+ :schema_element => [
+ ["itemDetail", ["ItemDetail[]", XSD::QName.new(NsTransactionDomainCjCom, "ItemDetail")], [0, nil]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => ItemDetail,
+ :schema_type => XSD::QName.new(NsTransactionDomainCjCom, "ItemDetail"),
+ :schema_element => [
+ ["id", "SOAP::SOAPLong", [0, 1]],
+ ["postingDate", "SOAP::SOAPDateTime", [0, 1]],
+ ["quantity", "SOAP::SOAPInt", [0, 1]],
+ ["saleAmount", "SOAP::SOAPDecimal", [0, 1]],
+ ["sku", "SOAP::SOAPString", [0, 1]]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => FindPublisherCommissions,
+ :schema_name => XSD::QName.new(NsApiCjCom, "findPublisherCommissions"),
+ :schema_element => [
+ ["developerKey", "SOAP::SOAPString"],
+ ["date", "SOAP::SOAPString"],
+ ["dateType", "SOAP::SOAPString"],
+ ["advertiserIds", "SOAP::SOAPString"],
+ ["websiteIds", "SOAP::SOAPString"],
+ ["actionStatus", "SOAP::SOAPString"],
+ ["actionTypes", "SOAP::SOAPString"],
+ ["adIds", "SOAP::SOAPString"],
+ ["countries", "SOAP::SOAPString"],
+ ["correctionStatus", "SOAP::SOAPString"],
+ ["sortBy", "SOAP::SOAPString"],
+ ["sortOrder", "SOAP::SOAPString"]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => FindPublisherCommissionsResponse,
+ :schema_name => XSD::QName.new(NsApiCjCom, "findPublisherCommissionsResponse"),
+ :schema_element => [
+ ["out", "PublisherCommissionResponse"]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => FindPublisherCommissionDetails,
+ :schema_name => XSD::QName.new(NsApiCjCom, "findPublisherCommissionDetails"),
+ :schema_element => [
+ ["developerKey", "SOAP::SOAPString"],
+ ["originalActionIds", "SOAP::SOAPString"]
+ ]
+ )
+
+ LiteralRegistry.register(
+ :class => FindPublisherCommissionDetailsResponse,
+ :schema_name => XSD::QName.new(NsApiCjCom, "findPublisherCommissionDetailsResponse"),
+ :schema_element => [
+ ["out", "PublisherCommissionDetailsResponse"]
+ ]
+ )
+end
View
4 tasks/cj4r_tasks.rake
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :cj4r do
-# # Task goes here
-# end
View
1  uninstall.rb
@@ -1 +0,0 @@
-# Uninstall hook code here
Please sign in to comment.
Something went wrong with that request. Please try again.