paypal-sdk-core 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/paypal-sdk-core.rb +1 -0
- data/lib/paypal-sdk/core/api/data_types/base.rb +6 -4
- data/lib/paypal-sdk/core/api/data_types/simple_types.rb +4 -0
- data/lib/paypal-sdk/core/api/merchant.rb +1 -1
- data/lib/paypal-sdk/core/api/platform.rb +2 -3
- data/lib/paypal-sdk/core/util/ordered_hash.rb +165 -0
- data/lib/paypal-sdk/core/version.rb +1 -1
- data/spec/log/test.log +153 -0
- metadata +49 -57
data/lib/paypal-sdk-core.rb
CHANGED
@@ -34,8 +34,9 @@ module PayPal::SDK::Core
|
|
34
34
|
def members
|
35
35
|
@members ||=
|
36
36
|
begin
|
37
|
+
superclass.load_members if defined? superclass.load_members
|
37
38
|
parent_members = superclass.instance_variable_get("@members")
|
38
|
-
parent_members ? parent_members.dup :
|
39
|
+
parent_members ? parent_members.dup : Util::OrderedHash.new
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
@@ -47,13 +48,14 @@ module PayPal::SDK::Core
|
|
47
48
|
# # alias_method :error_message=, :errorMessage=
|
48
49
|
def add_member(member_name, klass, options = {})
|
49
50
|
member_name = member_name.to_sym
|
51
|
+
return if members[member_name]
|
50
52
|
members[member_name] = options.merge( :type => klass )
|
51
53
|
member_variable_name = "@#{member_name}"
|
52
54
|
define_method "#{member_name}=" do |value|
|
53
55
|
object = options[:array] ? convert_array(value, klass) : convert_object(value, klass)
|
54
56
|
instance_variable_set(member_variable_name, object)
|
55
57
|
end
|
56
|
-
default_value = ( options[:array] ? [] : ( klass < Base ?
|
58
|
+
default_value = ( options[:array] ? [] : ( klass < Base ? Util::OrderedHash.new : nil ) )
|
57
59
|
define_method member_name do |&block|
|
58
60
|
value = instance_variable_get(member_variable_name) || ( default_value && send("#{member_name}=", default_value) )
|
59
61
|
value.instance_eval(&block) if block
|
@@ -132,7 +134,7 @@ module PayPal::SDK::Core
|
|
132
134
|
# # @return
|
133
135
|
# # [ <CurrencyType#object @amount="55" @code="USD" > ]
|
134
136
|
def convert_array(array, klass)
|
135
|
-
default_value = ( klass < Base ?
|
137
|
+
default_value = ( klass < Base ? Util::OrderedHash.new : nil )
|
136
138
|
data_type_array = ArrayWithBlock.new{|object| convert_object(object || default_value, klass) }
|
137
139
|
data_type_array.merge!(array)
|
138
140
|
end
|
@@ -159,7 +161,7 @@ module PayPal::SDK::Core
|
|
159
161
|
# Create Hash based configured members
|
160
162
|
def to_hash(options = {})
|
161
163
|
options = HashOptions.merge(options)
|
162
|
-
hash =
|
164
|
+
hash = Util::OrderedHash.new
|
163
165
|
member_names.each do |member|
|
164
166
|
value = value_to_hash(instance_variable_get("@#{member}"), options)
|
165
167
|
hash[hash_key(member, options)] = value unless skip_value?(value)
|
@@ -24,7 +24,7 @@ module PayPal::SDK::Core
|
|
24
24
|
XML_OUT_OPTIONS = { 'RootName' => nil, 'AttrPrefix' => true, 'ContentKey' => ContentKey,
|
25
25
|
'noindent' => true, 'SuppressEmpty' => true }
|
26
26
|
XML_IN_OPTIONS = { 'AttrPrefix' => true, 'ForceArray' => false, 'ContentKey' => ContentKey }
|
27
|
-
DEFAULT_PARAMS = { "ebl:Version" => DEFAULT_API_VERSION }
|
27
|
+
DEFAULT_PARAMS = Util::OrderedHash.new.merge!({ "ebl:Version" => DEFAULT_API_VERSION })
|
28
28
|
SKIP_ATTRIBUTES = [ "@xmlns", "@xsi:type" ]
|
29
29
|
SOAP_HTTP_AUTH_HEADER = {
|
30
30
|
:authorization => "X-PP-AUTHORIZATION"
|
@@ -24,9 +24,8 @@ module PayPal::SDK::Core
|
|
24
24
|
"X-PAYPAL-REQUEST-DATA-FORMAT" => "JSON",
|
25
25
|
"X-PAYPAL-RESPONSE-DATA-FORMAT" => "JSON"
|
26
26
|
}
|
27
|
-
DEFAULT_PARAMS = {
|
28
|
-
"requestEnvelope"
|
29
|
-
}
|
27
|
+
DEFAULT_PARAMS = Util::OrderedHash.new.merge!({
|
28
|
+
"requestEnvelope" => { "errorLanguage" => "en_US" } })
|
30
29
|
|
31
30
|
# Get NVP service end point
|
32
31
|
def service_endpoint
|
@@ -0,0 +1,165 @@
|
|
1
|
+
module PayPal::SDK::Core
|
2
|
+
module Util
|
3
|
+
class OrderedHash < ::Hash #:nodoc:
|
4
|
+
|
5
|
+
def to_yaml_type
|
6
|
+
"!tag:yaml.org,2002:map"
|
7
|
+
end
|
8
|
+
|
9
|
+
# Hash is ordered in Ruby 1.9!
|
10
|
+
if RUBY_VERSION < '1.9'
|
11
|
+
|
12
|
+
# In MRI the Hash class is core and written in C. In particular, methods are
|
13
|
+
# programmed with explicit C function calls and polymorphism is not honored.
|
14
|
+
#
|
15
|
+
# For example, []= is crucial in this implementation to maintain the @keys
|
16
|
+
# array but hash.c invokes rb_hash_aset() originally. This prevents method
|
17
|
+
# reuse through inheritance and forces us to reimplement stuff.
|
18
|
+
#
|
19
|
+
# For instance, we cannot use the inherited #merge! because albeit the algorithm
|
20
|
+
# itself would work, our []= is not being called at all by the C code.
|
21
|
+
|
22
|
+
def initialize(*args, &block)
|
23
|
+
super
|
24
|
+
@keys = []
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.[](*args)
|
28
|
+
ordered_hash = new
|
29
|
+
|
30
|
+
if (args.length == 1 && args.first.is_a?(Array))
|
31
|
+
args.first.each do |key_value_pair|
|
32
|
+
next unless (key_value_pair.is_a?(Array))
|
33
|
+
ordered_hash[key_value_pair[0]] = key_value_pair[1]
|
34
|
+
end
|
35
|
+
|
36
|
+
return ordered_hash
|
37
|
+
end
|
38
|
+
|
39
|
+
unless (args.size % 2 == 0)
|
40
|
+
raise ArgumentError.new("odd number of arguments for Hash")
|
41
|
+
end
|
42
|
+
|
43
|
+
args.each_with_index do |val, ind|
|
44
|
+
next if (ind % 2 != 0)
|
45
|
+
ordered_hash[val] = args[ind + 1]
|
46
|
+
end
|
47
|
+
|
48
|
+
ordered_hash
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize_copy(other)
|
52
|
+
super
|
53
|
+
# make a deep copy of keys
|
54
|
+
@keys = other.keys
|
55
|
+
end
|
56
|
+
|
57
|
+
def []=(key, value)
|
58
|
+
@keys << key if !has_key?(key)
|
59
|
+
super
|
60
|
+
end
|
61
|
+
|
62
|
+
def delete(key)
|
63
|
+
if has_key? key
|
64
|
+
index = @keys.index(key)
|
65
|
+
@keys.delete_at index
|
66
|
+
end
|
67
|
+
super
|
68
|
+
end
|
69
|
+
|
70
|
+
def delete_if
|
71
|
+
super
|
72
|
+
sync_keys!
|
73
|
+
self
|
74
|
+
end
|
75
|
+
|
76
|
+
def reject!
|
77
|
+
super
|
78
|
+
sync_keys!
|
79
|
+
self
|
80
|
+
end
|
81
|
+
|
82
|
+
def reject(&block)
|
83
|
+
dup.reject!(&block)
|
84
|
+
end
|
85
|
+
|
86
|
+
def keys
|
87
|
+
@keys.dup
|
88
|
+
end
|
89
|
+
|
90
|
+
def values
|
91
|
+
@keys.collect { |key| self[key] }
|
92
|
+
end
|
93
|
+
|
94
|
+
def to_hash
|
95
|
+
self
|
96
|
+
end
|
97
|
+
|
98
|
+
def to_a
|
99
|
+
@keys.map { |key| [ key, self[key] ] }
|
100
|
+
end
|
101
|
+
|
102
|
+
def each_key
|
103
|
+
@keys.each { |key| yield key }
|
104
|
+
end
|
105
|
+
|
106
|
+
def each_value
|
107
|
+
@keys.each { |key| yield self[key]}
|
108
|
+
end
|
109
|
+
|
110
|
+
def each
|
111
|
+
@keys.each {|key| yield [key, self[key]]}
|
112
|
+
end
|
113
|
+
|
114
|
+
alias_method :each_pair, :each
|
115
|
+
|
116
|
+
def clear
|
117
|
+
super
|
118
|
+
@keys.clear
|
119
|
+
self
|
120
|
+
end
|
121
|
+
|
122
|
+
def shift
|
123
|
+
k = @keys.first
|
124
|
+
v = delete(k)
|
125
|
+
[k, v]
|
126
|
+
end
|
127
|
+
|
128
|
+
def merge!(other_hash)
|
129
|
+
if block_given?
|
130
|
+
other_hash.each { |k, v| self[k] = key?(k) ? yield(k, self[k], v) : v }
|
131
|
+
else
|
132
|
+
other_hash.each { |k, v| self[k] = v }
|
133
|
+
end
|
134
|
+
self
|
135
|
+
end
|
136
|
+
|
137
|
+
alias_method :update, :merge!
|
138
|
+
|
139
|
+
def merge(other_hash, &block)
|
140
|
+
dup.merge!(other_hash, &block)
|
141
|
+
end
|
142
|
+
|
143
|
+
# When replacing with another hash, the initial order of our keys must come from the other hash -ordered or not.
|
144
|
+
def replace(other)
|
145
|
+
super
|
146
|
+
@keys = other.keys
|
147
|
+
self
|
148
|
+
end
|
149
|
+
|
150
|
+
def invert
|
151
|
+
OrderedHash[self.to_a.map!{|key_value_pair| key_value_pair.reverse}]
|
152
|
+
end
|
153
|
+
|
154
|
+
def inspect
|
155
|
+
"#<OrderedHash #{super}>"
|
156
|
+
end
|
157
|
+
|
158
|
+
private
|
159
|
+
def sync_keys!
|
160
|
+
@keys.delete_if {|k| !has_key?(k)}
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
data/spec/log/test.log
CHANGED
@@ -1226,3 +1226,156 @@ I, [2013-01-09T17:38:50.407512 #12340] INFO -- : [1.405s] Request: ConvertCurre
|
|
1226
1226
|
I, [2013-01-09T17:38:51.750479 #12340] INFO -- : [1.339s] Request: ConvertCurrency
|
1227
1227
|
I, [2013-01-09T17:38:53.082452 #12340] INFO -- : [1.328s] Request: InvalidAction
|
1228
1228
|
I, [2013-01-09T17:38:54.693989 #12340] INFO -- : [1.610s] Request: ConvertCurrency
|
1229
|
+
I, [2013-01-10T09:51:41.870000 #7219] INFO -- : [3.494s] Request: TransactionSearch
|
1230
|
+
I, [2013-01-10T09:51:44.952000 #7219] INFO -- : [3.000s] Request: MassPay
|
1231
|
+
I, [2013-01-10T09:51:48.283000 #7219] INFO -- : [3.197s] Request: TransactionSearch
|
1232
|
+
I, [2013-01-10T09:51:51.249000 #7219] INFO -- : [2.862s] Request: TransactionSearch
|
1233
|
+
I, [2013-01-10T09:51:53.188000 #7219] INFO -- : [1.812s] Request: TransactionSearch
|
1234
|
+
I, [2013-01-10T09:51:55.133000 #7219] INFO -- : [1.893s] Request: TransactionSearch
|
1235
|
+
I, [2013-01-10T09:51:56.933000 #7219] INFO -- : [1.748s] Request: InvalidAction
|
1236
|
+
I, [2013-01-10T09:51:58.993000 #7219] INFO -- : [2.049s] Request: TransactionSearch
|
1237
|
+
I, [2013-01-10T09:52:01.954000 #7219] INFO -- : [2.718s] Request: ConvertCurrency
|
1238
|
+
I, [2013-01-10T09:52:04.055000 #7219] INFO -- : [2.081s] Request: ConvertCurrency
|
1239
|
+
I, [2013-01-10T09:52:06.109000 #7219] INFO -- : [2.048s] Request: ConvertCurrency
|
1240
|
+
I, [2013-01-10T09:52:09.127000 #7219] INFO -- : [3.009s] Request: CreateInvoice
|
1241
|
+
I, [2013-01-10T09:52:11.851000 #7219] INFO -- : [2.715s] Request: GetBasicPersonalData
|
1242
|
+
I, [2013-01-10T09:52:13.633000 #7219] INFO -- : [1.775s] Request: ConvertCurrency
|
1243
|
+
I, [2013-01-10T09:52:15.374000 #7219] INFO -- : [1.731s] Request: ConvertCurrency
|
1244
|
+
I, [2013-01-10T09:52:17.109000 #7219] INFO -- : [1.729s] Request: InvalidAction
|
1245
|
+
I, [2013-01-10T09:52:19.194000 #7219] INFO -- : [2.079s] Request: ConvertCurrency
|
1246
|
+
I, [2013-01-11T17:11:41.582881 #7098] INFO -- : [4.917s] Request: TransactionSearch
|
1247
|
+
I, [2013-01-11T17:11:44.353573 #7098] INFO -- : [2.745s] Request: MassPay
|
1248
|
+
I, [2013-01-11T17:11:47.344746 #7098] INFO -- : [2.978s] Request: TransactionSearch
|
1249
|
+
I, [2013-01-11T17:11:50.169149 #7098] INFO -- : [2.755s] Request: TransactionSearch
|
1250
|
+
I, [2013-01-11T17:11:51.826461 #7098] INFO -- : [1.632s] Request: TransactionSearch
|
1251
|
+
I, [2013-01-11T17:11:53.540996 #7098] INFO -- : [1.702s] Request: TransactionSearch
|
1252
|
+
I, [2013-01-11T17:11:55.113159 #7098] INFO -- : [1.560s] Request: InvalidAction
|
1253
|
+
I, [2013-01-11T17:11:57.000637 #7098] INFO -- : [1.885s] Request: TransactionSearch
|
1254
|
+
I, [2013-01-11T17:11:59.100128 #7098] INFO -- : [2.074s] Request: ConvertCurrency
|
1255
|
+
I, [2013-01-11T17:12:00.750498 #7098] INFO -- : [1.648s] Request: ConvertCurrency
|
1256
|
+
I, [2013-01-11T17:12:02.451748 #7098] INFO -- : [1.700s] Request: ConvertCurrency
|
1257
|
+
I, [2013-01-11T17:12:05.197684 #7098] INFO -- : [2.743s] Request: CreateInvoice
|
1258
|
+
I, [2013-01-11T17:12:07.489246 #7098] INFO -- : [2.290s] Request: GetBasicPersonalData
|
1259
|
+
I, [2013-01-11T17:12:08.861592 #7098] INFO -- : [1.371s] Request: ConvertCurrency
|
1260
|
+
I, [2013-01-11T17:12:10.159800 #7098] INFO -- : [1.296s] Request: ConvertCurrency
|
1261
|
+
I, [2013-01-11T17:12:11.449848 #7098] INFO -- : [1.289s] Request: InvalidAction
|
1262
|
+
I, [2013-01-11T17:12:13.020286 #7098] INFO -- : [1.569s] Request: ConvertCurrency
|
1263
|
+
I, [2013-01-11T17:24:39.200689 #7566] INFO -- : [3.326s] Request: TransactionSearch
|
1264
|
+
I, [2013-01-11T17:24:42.636313 #7566] INFO -- : [3.428s] Request: MassPay
|
1265
|
+
I, [2013-01-11T17:24:45.410153 #7566] INFO -- : [2.765s] Request: TransactionSearch
|
1266
|
+
I, [2013-01-11T17:24:48.632476 #7566] INFO -- : [3.174s] Request: TransactionSearch
|
1267
|
+
I, [2013-01-11T17:24:50.954798 #7566] INFO -- : [2.302s] Request: TransactionSearch
|
1268
|
+
I, [2013-01-11T17:24:53.310353 #7566] INFO -- : [2.344s] Request: TransactionSearch
|
1269
|
+
I, [2013-01-11T17:24:55.532971 #7566] INFO -- : [2.212s] Request: InvalidAction
|
1270
|
+
I, [2013-01-11T17:24:58.057057 #7566] INFO -- : [2.522s] Request: TransactionSearch
|
1271
|
+
I, [2013-01-11T17:25:00.385111 #7566] INFO -- : [2.285s] Request: ConvertCurrency
|
1272
|
+
I, [2013-01-11T17:25:02.670746 #7566] INFO -- : [2.281s] Request: ConvertCurrency
|
1273
|
+
I, [2013-01-11T17:25:05.008026 #7566] INFO -- : [2.334s] Request: ConvertCurrency
|
1274
|
+
I, [2013-01-11T17:25:08.413999 #7566] INFO -- : [3.402s] Request: CreateInvoice
|
1275
|
+
I, [2013-01-11T17:25:11.332112 #7566] INFO -- : [2.915s] Request: GetBasicPersonalData
|
1276
|
+
I, [2013-01-11T17:25:13.358130 #7566] INFO -- : [2.023s] Request: ConvertCurrency
|
1277
|
+
I, [2013-01-11T17:25:15.323717 #7566] INFO -- : [1.961s] Request: ConvertCurrency
|
1278
|
+
I, [2013-01-11T17:25:17.284296 #7566] INFO -- : [1.953s] Request: InvalidAction
|
1279
|
+
I, [2013-01-11T17:25:19.509077 #7566] INFO -- : [2.222s] Request: ConvertCurrency
|
1280
|
+
I, [2013-01-15T15:51:21.608631 #6137] INFO -- : [3.177s] Request: TransactionSearch
|
1281
|
+
I, [2013-01-15T15:51:25.333551 #6137] INFO -- : [3.702s] Request: MassPay
|
1282
|
+
I, [2013-01-15T15:51:28.658323 #6137] INFO -- : [3.313s] Request: TransactionSearch
|
1283
|
+
I, [2013-01-15T15:51:31.640573 #6137] INFO -- : [2.928s] Request: TransactionSearch
|
1284
|
+
I, [2013-01-15T15:51:33.519120 #6137] INFO -- : [1.853s] Request: TransactionSearch
|
1285
|
+
I, [2013-01-15T15:51:35.658150 #6137] INFO -- : [2.127s] Request: TransactionSearch
|
1286
|
+
I, [2013-01-15T15:51:37.231308 #6137] INFO -- : [1.561s] Request: InvalidAction
|
1287
|
+
I, [2013-01-15T15:51:39.117656 #6137] INFO -- : [1.883s] Request: TransactionSearch
|
1288
|
+
I, [2013-01-15T15:51:41.209050 #6137] INFO -- : [2.066s] Request: ConvertCurrency
|
1289
|
+
I, [2013-01-15T15:51:42.843958 #6137] INFO -- : [1.632s] Request: ConvertCurrency
|
1290
|
+
I, [2013-01-15T15:51:44.421331 #6137] INFO -- : [1.576s] Request: ConvertCurrency
|
1291
|
+
I, [2013-01-15T15:51:47.055269 #6137] INFO -- : [2.632s] Request: CreateInvoice
|
1292
|
+
I, [2013-01-15T15:51:49.378309 #6137] INFO -- : [2.321s] Request: GetBasicPersonalData
|
1293
|
+
I, [2013-01-15T15:51:50.740797 #6137] INFO -- : [1.361s] Request: ConvertCurrency
|
1294
|
+
I, [2013-01-15T15:51:52.053057 #6137] INFO -- : [1.310s] Request: ConvertCurrency
|
1295
|
+
I, [2013-01-15T15:51:53.347248 #6137] INFO -- : [1.293s] Request: InvalidAction
|
1296
|
+
I, [2013-01-15T15:51:54.904941 #6137] INFO -- : [1.556s] Request: ConvertCurrency
|
1297
|
+
I, [2013-01-15T15:52:18.509881 #6298] INFO -- : [2.849s] Request: TransactionSearch
|
1298
|
+
I, [2013-01-15T15:52:21.885368 #6298] INFO -- : [3.369s] Request: MassPay
|
1299
|
+
I, [2013-01-15T15:52:24.540498 #6298] INFO -- : [2.647s] Request: TransactionSearch
|
1300
|
+
I, [2013-01-15T15:52:27.653525 #6298] INFO -- : [3.088s] Request: TransactionSearch
|
1301
|
+
I, [2013-01-15T15:52:29.955727 #6298] INFO -- : [2.280s] Request: TransactionSearch
|
1302
|
+
I, [2013-01-15T15:52:32.314884 #6298] INFO -- : [2.344s] Request: TransactionSearch
|
1303
|
+
I, [2013-01-15T15:52:33.887953 #6298] INFO -- : [1.562s] Request: InvalidAction
|
1304
|
+
I, [2013-01-15T15:52:35.771228 #6298] INFO -- : [1.881s] Request: TransactionSearch
|
1305
|
+
I, [2013-01-15T15:52:37.441380 #6298] INFO -- : [1.627s] Request: ConvertCurrency
|
1306
|
+
I, [2013-01-15T15:52:39.087262 #6298] INFO -- : [1.642s] Request: ConvertCurrency
|
1307
|
+
I, [2013-01-15T15:52:40.724936 #6298] INFO -- : [1.634s] Request: ConvertCurrency
|
1308
|
+
I, [2013-01-15T15:52:43.495698 #6298] INFO -- : [2.765s] Request: CreateInvoice
|
1309
|
+
I, [2013-01-15T15:52:45.783583 #6298] INFO -- : [2.284s] Request: GetBasicPersonalData
|
1310
|
+
I, [2013-01-15T15:52:47.154359 #6298] INFO -- : [1.367s] Request: ConvertCurrency
|
1311
|
+
I, [2013-01-15T15:52:48.462125 #6298] INFO -- : [1.304s] Request: ConvertCurrency
|
1312
|
+
I, [2013-01-15T15:52:49.766389 #6298] INFO -- : [1.300s] Request: InvalidAction
|
1313
|
+
I, [2013-01-15T15:52:51.336586 #6298] INFO -- : [1.568s] Request: ConvertCurrency
|
1314
|
+
I, [2013-01-15T16:16:00.732808 #6909] INFO -- : [2.873s] Request: TransactionSearch
|
1315
|
+
I, [2013-01-15T16:16:04.240401 #6909] INFO -- : [3.497s] Request: MassPay
|
1316
|
+
I, [2013-01-15T16:16:06.967318 #6909] INFO -- : [2.716s] Request: TransactionSearch
|
1317
|
+
I, [2013-01-15T16:16:09.463915 #6909] INFO -- : [2.446s] Request: TransactionSearch
|
1318
|
+
I, [2013-01-15T16:16:11.125165 #6909] INFO -- : [1.636s] Request: TransactionSearch
|
1319
|
+
I, [2013-01-15T16:16:12.837701 #6909] INFO -- : [1.701s] Request: TransactionSearch
|
1320
|
+
I, [2013-01-15T16:16:14.409938 #6909] INFO -- : [1.561s] Request: InvalidAction
|
1321
|
+
I, [2013-01-15T16:16:16.290188 #6909] INFO -- : [1.877s] Request: TransactionSearch
|
1322
|
+
I, [2013-01-15T16:16:18.384247 #6909] INFO -- : [2.069s] Request: ConvertCurrency
|
1323
|
+
I, [2013-01-15T16:16:20.030592 #6909] INFO -- : [1.644s] Request: ConvertCurrency
|
1324
|
+
I, [2013-01-15T16:16:21.714189 #6909] INFO -- : [1.682s] Request: ConvertCurrency
|
1325
|
+
I, [2013-01-15T16:16:24.500510 #6909] INFO -- : [2.784s] Request: CreateInvoice
|
1326
|
+
I, [2013-01-15T16:16:26.747489 #6909] INFO -- : [2.245s] Request: GetBasicPersonalData
|
1327
|
+
I, [2013-01-15T16:16:28.113991 #6909] INFO -- : [1.365s] Request: ConvertCurrency
|
1328
|
+
I, [2013-01-15T16:16:29.422752 #6909] INFO -- : [1.307s] Request: ConvertCurrency
|
1329
|
+
I, [2013-01-15T16:16:30.718114 #6909] INFO -- : [1.293s] Request: InvalidAction
|
1330
|
+
I, [2013-01-15T16:16:32.296451 #6909] INFO -- : [1.577s] Request: ConvertCurrency
|
1331
|
+
I, [2013-01-15T16:21:12.256857 #7360] INFO -- : [3.189s] Request: TransactionSearch
|
1332
|
+
I, [2013-01-15T16:21:15.049017 #7360] INFO -- : [2.782s] Request: MassPay
|
1333
|
+
I, [2013-01-15T16:21:17.505455 #7360] INFO -- : [2.444s] Request: TransactionSearch
|
1334
|
+
I, [2013-01-15T16:21:20.120567 #7360] INFO -- : [2.556s] Request: TransactionSearch
|
1335
|
+
I, [2013-01-15T16:21:21.659020 #7360] INFO -- : [1.519s] Request: TransactionSearch
|
1336
|
+
I, [2013-01-15T16:21:23.126409 #7360] INFO -- : [1.455s] Request: TransactionSearch
|
1337
|
+
I, [2013-01-15T16:21:24.708785 #7360] INFO -- : [1.569s] Request: InvalidAction
|
1338
|
+
I, [2013-01-15T16:21:26.353064 #7360] INFO -- : [1.641s] Request: TransactionSearch
|
1339
|
+
I, [2013-01-15T16:21:28.014149 #7360] INFO -- : [1.636s] Request: ConvertCurrency
|
1340
|
+
I, [2013-01-15T16:21:29.675224 #7360] INFO -- : [1.659s] Request: ConvertCurrency
|
1341
|
+
I, [2013-01-15T16:21:31.314326 #7360] INFO -- : [1.638s] Request: ConvertCurrency
|
1342
|
+
I, [2013-01-15T16:21:34.020577 #7360] INFO -- : [2.704s] Request: CreateInvoice
|
1343
|
+
I, [2013-01-15T16:21:36.310572 #7360] INFO -- : [2.288s] Request: GetBasicPersonalData
|
1344
|
+
I, [2013-01-15T16:21:37.689114 #7360] INFO -- : [1.377s] Request: ConvertCurrency
|
1345
|
+
I, [2013-01-15T16:21:38.992866 #7360] INFO -- : [1.302s] Request: ConvertCurrency
|
1346
|
+
I, [2013-01-15T16:21:40.290258 #7360] INFO -- : [1.296s] Request: InvalidAction
|
1347
|
+
I, [2013-01-15T16:21:41.877399 #7360] INFO -- : [1.585s] Request: ConvertCurrency
|
1348
|
+
I, [2013-01-15T16:24:09.205266 #7640] INFO -- : [2.966s] Request: TransactionSearch
|
1349
|
+
I, [2013-01-15T16:24:11.732828 #7640] INFO -- : [2.518s] Request: MassPay
|
1350
|
+
I, [2013-01-15T16:24:14.488949 #7640] INFO -- : [2.744s] Request: TransactionSearch
|
1351
|
+
I, [2013-01-15T16:24:16.864787 #7640] INFO -- : [2.330s] Request: TransactionSearch
|
1352
|
+
I, [2013-01-15T16:24:18.296317 #7640] INFO -- : [1.405s] Request: TransactionSearch
|
1353
|
+
I, [2013-01-15T16:24:19.731640 #7640] INFO -- : [1.426s] Request: TransactionSearch
|
1354
|
+
I, [2013-01-15T16:24:21.072297 #7640] INFO -- : [1.331s] Request: InvalidAction
|
1355
|
+
I, [2013-01-15T16:24:22.697462 #7640] INFO -- : [1.623s] Request: TransactionSearch
|
1356
|
+
I, [2013-01-15T16:24:24.349999 #7640] INFO -- : [1.628s] Request: ConvertCurrency
|
1357
|
+
I, [2013-01-15T16:24:26.026716 #7640] INFO -- : [1.675s] Request: ConvertCurrency
|
1358
|
+
I, [2013-01-15T16:24:27.664808 #7640] INFO -- : [1.636s] Request: ConvertCurrency
|
1359
|
+
I, [2013-01-15T16:24:30.715909 #7640] INFO -- : [3.049s] Request: CreateInvoice
|
1360
|
+
I, [2013-01-15T16:24:33.009512 #7640] INFO -- : [2.291s] Request: GetBasicPersonalData
|
1361
|
+
I, [2013-01-15T16:24:34.387954 #7640] INFO -- : [1.376s] Request: ConvertCurrency
|
1362
|
+
I, [2013-01-15T16:24:35.697692 #7640] INFO -- : [1.308s] Request: ConvertCurrency
|
1363
|
+
I, [2013-01-15T16:24:36.994550 #7640] INFO -- : [1.295s] Request: InvalidAction
|
1364
|
+
I, [2013-01-15T16:24:38.560322 #7640] INFO -- : [1.564s] Request: ConvertCurrency
|
1365
|
+
I, [2013-01-28T10:48:30.417290 #3105] INFO -- : [3.528s] Request: TransactionSearch
|
1366
|
+
I, [2013-01-28T10:48:33.989542 #3105] INFO -- : [3.541s] Request: MassPay
|
1367
|
+
I, [2013-01-28T10:48:36.933058 #3105] INFO -- : [2.932s] Request: TransactionSearch
|
1368
|
+
I, [2013-01-28T10:48:40.224711 #3105] INFO -- : [3.240s] Request: TransactionSearch
|
1369
|
+
I, [2013-01-28T10:48:42.314561 #3105] INFO -- : [2.069s] Request: TransactionSearch
|
1370
|
+
I, [2013-01-28T10:48:44.456271 #3105] INFO -- : [2.129s] Request: TransactionSearch
|
1371
|
+
I, [2013-01-28T10:48:46.032850 #3105] INFO -- : [1.564s] Request: InvalidAction
|
1372
|
+
I, [2013-01-28T10:48:47.917861 #3105] INFO -- : [1.881s] Request: TransactionSearch
|
1373
|
+
I, [2013-01-28T10:48:50.072601 #3105] INFO -- : [2.115s] Request: ConvertCurrency
|
1374
|
+
I, [2013-01-28T10:48:51.755099 #3105] INFO -- : [1.680s] Request: ConvertCurrency
|
1375
|
+
I, [2013-01-28T10:48:53.403140 #3105] INFO -- : [1.646s] Request: ConvertCurrency
|
1376
|
+
I, [2013-01-28T10:48:56.303300 #3105] INFO -- : [2.894s] Request: CreateInvoice
|
1377
|
+
I, [2013-01-28T10:48:58.630881 #3105] INFO -- : [2.325s] Request: GetBasicPersonalData
|
1378
|
+
I, [2013-01-28T10:49:00.019952 #3105] INFO -- : [1.387s] Request: ConvertCurrency
|
1379
|
+
I, [2013-01-28T10:49:01.331761 #3105] INFO -- : [1.310s] Request: ConvertCurrency
|
1380
|
+
I, [2013-01-28T10:49:02.635072 #3105] INFO -- : [1.301s] Request: InvalidAction
|
1381
|
+
I, [2013-01-28T10:49:04.210670 #3105] INFO -- : [1.574s] Request: ConvertCurrency
|
metadata
CHANGED
@@ -1,61 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-core
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 4
|
10
|
-
version: 0.1.4
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- PayPal
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
prerelease: false
|
12
|
+
date: 2013-01-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: xml-simple
|
23
|
-
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
32
|
-
requirement: *id001
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :runtime
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
23
|
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
36
31
|
name: multi_json
|
37
|
-
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
38
33
|
none: false
|
39
|
-
requirements:
|
34
|
+
requirements:
|
40
35
|
- - ~>
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
segments:
|
44
|
-
- 1
|
45
|
-
- 0
|
46
|
-
version: "1.0"
|
47
|
-
requirement: *id002
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '1.0'
|
48
38
|
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.0'
|
49
46
|
description: Core library for PayPal ruby SDK
|
50
|
-
email:
|
47
|
+
email:
|
51
48
|
- DL-PP-Platform-Ruby-SDK@ebay.com
|
52
49
|
executables: []
|
53
|
-
|
54
50
|
extensions: []
|
55
|
-
|
56
51
|
extra_rdoc_files: []
|
57
|
-
|
58
|
-
files:
|
52
|
+
files:
|
59
53
|
- spec/core/api/platform_spec.rb
|
60
54
|
- spec/core/api/data_type_spec.rb
|
61
55
|
- spec/core/api/ipn_spec.rb
|
@@ -75,6 +69,7 @@ files:
|
|
75
69
|
- lib/generators/paypal/sdk/templates/paypal.rb
|
76
70
|
- lib/generators/paypal/sdk/install_generator.rb
|
77
71
|
- lib/paypal-sdk/core/util/oauth_signature.rb
|
72
|
+
- lib/paypal-sdk/core/util/ordered_hash.rb
|
78
73
|
- lib/paypal-sdk/core/api/merchant.rb
|
79
74
|
- lib/paypal-sdk/core/api/ipn.rb
|
80
75
|
- lib/paypal-sdk/core/api/platform.rb
|
@@ -97,38 +92,35 @@ files:
|
|
97
92
|
- Gemfile
|
98
93
|
homepage: https://www.x.com/
|
99
94
|
licenses: []
|
100
|
-
|
101
95
|
post_install_message:
|
102
96
|
rdoc_options: []
|
103
|
-
|
104
|
-
require_paths:
|
97
|
+
require_paths:
|
105
98
|
- lib
|
106
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
100
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
|
112
|
-
segments:
|
101
|
+
requirements:
|
102
|
+
- - ! '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
segments:
|
113
106
|
- 0
|
114
|
-
|
115
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
hash: 711724113
|
108
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
109
|
none: false
|
117
|
-
requirements:
|
118
|
-
- -
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
|
121
|
-
segments:
|
110
|
+
requirements:
|
111
|
+
- - ! '>='
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
segments:
|
122
115
|
- 0
|
123
|
-
|
116
|
+
hash: 711724113
|
124
117
|
requirements: []
|
125
|
-
|
126
118
|
rubyforge_project:
|
127
119
|
rubygems_version: 1.8.24
|
128
120
|
signing_key:
|
129
121
|
specification_version: 3
|
130
122
|
summary: Core library for PayPal ruby SDK
|
131
|
-
test_files:
|
123
|
+
test_files:
|
132
124
|
- spec/core/api/platform_spec.rb
|
133
125
|
- spec/core/api/data_type_spec.rb
|
134
126
|
- spec/core/api/ipn_spec.rb
|