paypal-sdk-rest 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/paypal-sdk/rest/data_types.rb +7 -11
- data/lib/paypal-sdk/rest/version.rb +1 -1
- data/spec/log/http.log +284 -626
- data/spec/web_profile_examples_spec.rb +93 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c7bb1189d939b7669a32abe6745ec6773267c76
|
4
|
+
data.tar.gz: 33c6bb802c723a6be91345a8d29f02c6ad35d53c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
1590
|
+
l = api.get(path, options)
|
1591
|
+
l.each { |x| WebProfileList.new(x) }
|
1596
1592
|
end
|
1597
1593
|
end
|
1598
1594
|
|