paypal-sdk-rest 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50c4b6c303398d0616d50cca9ea5425372504ad6
4
- data.tar.gz: 64101a28702aeb06650d5b4043e432b270df0706
3
+ metadata.gz: 6c7bb1189d939b7669a32abe6745ec6773267c76
4
+ data.tar.gz: 33c6bb802c723a6be91345a8d29f02c6ad35d53c
5
5
  SHA512:
6
- metadata.gz: b6ed80f9ad8cd1456ea216c3a4c88843a66bbcccd394c81dc77f9a4aba62bdaff2b53cfcb6bd788fe638c6644f6eba7dd6a046a7566e1d476d2958505145bd1d
7
- data.tar.gz: 5547cde29565746be4709da67471ab14e7e683bf5b10d3716aadfee44c9ffce9139e3acbcb2e0ca16176b9fcd4e9be9990f4dc2131b4a9dad0e98b49faf92c4a
6
+ metadata.gz: 866e09361f218b8e741a939caf04efac5f2b4754102326f493936d220dd44648bc0ffb1313c1442b90c5b85fc08fddce61a1c23097099d0151214cea8e7b297c
7
+ data.tar.gz: 3c4f6e93ef86aaa49ca39bd46bfa1154b8903b05fac5f667ba3dd63dc44ef0a4b3145aca9e015445f7abe066d6d3fe4662a82fa72746be34def23c48a33d0e56
@@ -433,10 +433,12 @@ module PayPal::SDK
433
433
 
434
434
  def self.load_members
435
435
  object_of :line1, String
436
+ object_of :line2, String
436
437
  object_of :city, String
437
438
  object_of :state, String
438
439
  object_of :postal_code, String
439
440
  object_of :country_code, String
441
+ object_of :phone, String
440
442
  object_of :recipient_name, String
441
443
  end
442
444
 
@@ -824,20 +826,14 @@ module PayPal::SDK
824
826
  object_of :cancel_url, String
825
827
  end
826
828
 
827
- end
828
- class PatchRequest < Base
829
-
830
- def self.load_members
831
- object_of :op, String
832
- object_of :path, String
833
- end
834
-
835
829
  end
836
830
  class Patch < Base
837
831
 
838
832
  def self.load_members
839
833
  object_of :op, String
840
834
  object_of :path, String
835
+ object_of :value, String
836
+ object_of :from, String
841
837
  end
842
838
 
843
839
  end
@@ -1574,9 +1570,8 @@ module PayPal::SDK
1574
1570
  end
1575
1571
 
1576
1572
  def partial_update(patch_request)
1577
- patch_request = PatchRequest.new(patch_request) unless patch_request.is_a? PatchRequest
1578
1573
  path = "v1/payment-experience/web-profiles/#{self.id}"
1579
- response = api.patch(path, patch_request.to_hash, http_header)
1574
+ response = api.patch(path, patch_request, http_header)
1580
1575
  self.merge!(response)
1581
1576
  success?
1582
1577
  end
@@ -1592,7 +1587,8 @@ module PayPal::SDK
1592
1587
  class << self
1593
1588
  def get_list(options = {})
1594
1589
  path = "v1/payment-experience/web-profiles/"
1595
- WebProfileList.new(api.get(path, options))
1590
+ l = api.get(path, options)
1591
+ l.each { |x| WebProfileList.new(x) }
1596
1592
  end
1597
1593
  end
1598
1594
 
@@ -1,7 +1,7 @@
1
1
  module PayPal
2
2
  module SDK
3
3
  module REST
4
- VERSION = "0.8.1"
4
+ VERSION = "0.9.0"
5
5
  end
6
6
  end
7
7
  end