paypal-sdk-adaptivepayments 1.96.3 → 1.100.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGYxNmE3NmVjZDgyY2ZlYWZiNjljNzkzNzcyZjViMmNhZDJiODVhMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWY4MWM0YTYzMzc4MzMwZWIzMTY0M2IxZmIyOTU0N2JlODZkYmVlOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjRiODUyY2ExYmYzNGZlNGUyNDEyZmEyMWI4Yjc1NDU1NDU4NDY3ZTU1OGEy
|
10
|
+
MTljZGM4YWU5NDJkOTZjMjk4YTUwZWJkZmE5NDY3OWZlN2ZmM2M0Y2RiODNm
|
11
|
+
ZmMxZTg2NThiYjYzMzEwZDBkMTNmZTNkYTc0NzgwNjQ5NmMyOTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTAzOTIwZjIzMDQ5MzRkMzE1MzQ5YjcyMzQ5ZjdkNTVmNDYwMjIzZDVhOTI2
|
14
|
+
NzNiMmZiNjVlYjMwNzYwZTIxNDgwNWZkYzllM2EzYWNhMmI1M2Y5NDU5NWQw
|
15
|
+
MDU3YWEwNTlmZDU4NzY4MDA0NGQ3OWY0MzM0ZjFmYzM4NzUzNDA=
|
@@ -21,6 +21,7 @@ module PayPal::SDK
|
|
21
21
|
def self.load_members
|
22
22
|
object_of :email, String
|
23
23
|
object_of :phone, PhoneNumberType
|
24
|
+
object_of :accountId, String
|
24
25
|
end
|
25
26
|
end
|
26
27
|
|
@@ -167,6 +168,12 @@ module PayPal::SDK
|
|
167
168
|
|
168
169
|
|
169
170
|
|
171
|
+
class Status < EnumType
|
172
|
+
self.options = { 'RTR' => 'RTR', 'NONRTR' => 'NON_RTR', 'MISSINGRECEIVERCOUNTRYINFORMATION' => 'MISSING_RECEIVER_COUNTRY_INFORMATION' }
|
173
|
+
end
|
174
|
+
|
175
|
+
|
176
|
+
|
170
177
|
class Address < DataType
|
171
178
|
def self.load_members
|
172
179
|
object_of :addresseeName, String
|
@@ -421,6 +428,7 @@ module PayPal::SDK
|
|
421
428
|
object_of :invoiceId, String
|
422
429
|
object_of :paymentType, String
|
423
430
|
object_of :paymentSubType, String
|
431
|
+
object_of :accountId, String
|
424
432
|
end
|
425
433
|
end
|
426
434
|
|
@@ -621,12 +629,32 @@ module PayPal::SDK
|
|
621
629
|
|
622
630
|
|
623
631
|
|
632
|
+
# Contains information related to Post Payment Disclosure Details This contains 1.Receivers information 2.Funds Avalibility Date
|
633
|
+
class PostPaymentDisclosure < DataType
|
634
|
+
def self.load_members
|
635
|
+
object_of :accountIdentifier, AccountIdentifier, :required => true
|
636
|
+
object_of :fundsAvailabilityDate, Date
|
637
|
+
object_of :fundsAvailabilityDateDisclaimerText, String
|
638
|
+
end
|
639
|
+
end
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
class PostPaymentDisclosureList < DataType
|
644
|
+
def self.load_members
|
645
|
+
array_of :postPaymentDisclosure, PostPaymentDisclosure, :required => true
|
646
|
+
end
|
647
|
+
end
|
648
|
+
|
649
|
+
|
650
|
+
|
624
651
|
# The result of a payment execution.
|
625
652
|
class ExecutePaymentResponse < DataType
|
626
653
|
def self.load_members
|
627
654
|
object_of :responseEnvelope, ResponseEnvelope, :required => true
|
628
655
|
object_of :paymentExecStatus, String, :required => true
|
629
656
|
object_of :payErrorList, PayErrorList
|
657
|
+
object_of :postPaymentDisclosureList, PostPaymentDisclosureList
|
630
658
|
array_of :error, ErrorData
|
631
659
|
end
|
632
660
|
end
|
@@ -797,6 +825,7 @@ module PayPal::SDK
|
|
797
825
|
object_of :addressList, AddressList
|
798
826
|
object_of :feesPayer, String
|
799
827
|
object_of :displayMaxTotalAmount, Boolean
|
828
|
+
object_of :sender, SenderIdentifier
|
800
829
|
array_of :error, ErrorData
|
801
830
|
end
|
802
831
|
end
|
@@ -827,6 +856,7 @@ module PayPal::SDK
|
|
827
856
|
object_of :feesPayer, String
|
828
857
|
object_of :displayMaxTotalAmount, Boolean
|
829
858
|
object_of :requireInstantFundingSource, Boolean
|
859
|
+
object_of :sender, SenderIdentifier
|
830
860
|
end
|
831
861
|
end
|
832
862
|
|
@@ -986,6 +1016,107 @@ module PayPal::SDK
|
|
986
1016
|
|
987
1017
|
|
988
1018
|
|
1019
|
+
# ReceiverInfo needs to be populate for the receiver who doesn't have paypal account.
|
1020
|
+
class ReceiverInfo < AccountIdentifier
|
1021
|
+
def self.load_members
|
1022
|
+
# The two-character ISO country code of the home country of the Receiver
|
1023
|
+
object_of :countryCode, String
|
1024
|
+
object_of :firstName, String
|
1025
|
+
object_of :lastName, String
|
1026
|
+
end
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
|
1030
|
+
|
1031
|
+
# FeeDisclosure contains the information related to Fees and taxes.
|
1032
|
+
class FeeDisclosure < DataType
|
1033
|
+
def self.load_members
|
1034
|
+
object_of :fee, CurrencyType, :required => true
|
1035
|
+
object_of :taxes, CurrencyType, :required => true
|
1036
|
+
end
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
|
1040
|
+
|
1041
|
+
# SenderDisclosure contains the disclosure related to Sender
|
1042
|
+
class SenderDisclosure < DataType
|
1043
|
+
def self.load_members
|
1044
|
+
object_of :amountToTransfer, CurrencyType, :required => true
|
1045
|
+
object_of :feeDisclosure, FeeDisclosure
|
1046
|
+
object_of :totalAmountToTransfer, CurrencyType, :required => true
|
1047
|
+
end
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
# This holds the conversion rate from "Sender currency for one bucks to equivalent value in the receivers currency"
|
1053
|
+
class ConversionRate < DataType
|
1054
|
+
def self.load_members
|
1055
|
+
object_of :senderCurrency, String, :required => true
|
1056
|
+
object_of :receiverCurrency, String, :required => true
|
1057
|
+
object_of :exchangeRate, Float, :required => true
|
1058
|
+
end
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
|
1062
|
+
|
1063
|
+
# ReceiverDisclosure contains the disclosure related to Receiver/Receivers.
|
1064
|
+
class ReceiverDisclosure < DataType
|
1065
|
+
def self.load_members
|
1066
|
+
object_of :accountIdentifier, AccountIdentifier, :required => true
|
1067
|
+
object_of :amountReceivedFromSender, CurrencyType, :required => true
|
1068
|
+
# The two-character ISO country code of the home country of the Receiver
|
1069
|
+
object_of :countryCode, String, :required => true
|
1070
|
+
object_of :conversionRate, ConversionRate, :required => true
|
1071
|
+
object_of :feeDisclosure, FeeDisclosure
|
1072
|
+
object_of :totalAmountReceived, CurrencyType, :required => true
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
|
1077
|
+
|
1078
|
+
class ReceiverDisclosureList < DataType
|
1079
|
+
def self.load_members
|
1080
|
+
array_of :receiverDisclosure, ReceiverDisclosure, :required => true
|
1081
|
+
end
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
|
1085
|
+
|
1086
|
+
class ReceiverInfoList < DataType
|
1087
|
+
def self.load_members
|
1088
|
+
array_of :receiverInfo, ReceiverInfo, :required => true
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
|
1093
|
+
|
1094
|
+
# GetPrePaymentDisclosureRequest is used to get the PrePayment Disclosure.; GetPrePaymentDisclosureRequest contains following parameters payKey :The pay key that identifies the payment for which you want to retrieve details. this is the pay key returned in the PayResponse message. receiverInfoList : This is an optional.This needs to be provided in case of Unilateral scenario. receiverInfoList has a list of ReceiverInfo type. List is provided here to support in future for Parallel/Chained Payemnts. Each ReceiverInfo has following variables firstName : firstName of recipient. lastName : lastName of recipient. countryCode : CountryCode of Recipient.
|
1095
|
+
class GetPrePaymentDisclosureRequest < DataType
|
1096
|
+
def self.load_members
|
1097
|
+
object_of :requestEnvelope, RequestEnvelope, :required => true
|
1098
|
+
object_of :payKey, String, :required => true
|
1099
|
+
object_of :receiverInfoList, ReceiverInfoList
|
1100
|
+
end
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
|
1104
|
+
|
1105
|
+
# GetPrePaymentDisclosureResponse contains the information related to PrePayment disclosure. status : indicates the status of response. If Status = RTR then it means that this is RTR transaction. If Status = NON_RTR then it means that this is non RTR transaction. If Status = MISSING_RECEIVER_COUNTRY_INFORMATION then it means the Receiver country information is not found in PayPal database. So merchant has to call the API again with same set of parameter along with Receiver country code.This is useful in case of Unilateral scenario. where receiver is not holding paypal account. feePayer:Indicates who has agreed to Pay a Fee for the RTR transaction. Merchant can use this information to decide who actually has to pay the fee . senderDisclosure : This Variable Holds the disclosure related to sender. receiverDisclosureList : This list contains the disclosure information related to receivers. Merchant can just parse the details what ever is avaliable in the response and display the same to user.
|
1106
|
+
class GetPrePaymentDisclosureResponse < DataType
|
1107
|
+
def self.load_members
|
1108
|
+
object_of :responseEnvelope, ResponseEnvelope, :required => true
|
1109
|
+
object_of :status, Status, :required => true
|
1110
|
+
object_of :feesPayer, String
|
1111
|
+
object_of :senderDisclosure, SenderDisclosure
|
1112
|
+
object_of :receiverDisclosureList, ReceiverDisclosureList
|
1113
|
+
object_of :disclaimer, String
|
1114
|
+
array_of :error, ErrorData
|
1115
|
+
end
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
|
1119
|
+
|
989
1120
|
|
990
1121
|
|
991
1122
|
constants.each do |data_type_klass|
|
@@ -5,7 +5,7 @@ module PayPal::SDK
|
|
5
5
|
module AdaptivePayments
|
6
6
|
|
7
7
|
# Service Version
|
8
|
-
SERVICE_VERSION = "1.8.
|
8
|
+
SERVICE_VERSION = "1.8.4"
|
9
9
|
# Service Name
|
10
10
|
SERVICE_NAME = "AdaptivePayments"
|
11
11
|
|
@@ -317,6 +317,25 @@ module PayPal::SDK
|
|
317
317
|
end
|
318
318
|
alias_method :build_get_user_limits, :BuildGetUserLimits
|
319
319
|
|
320
|
+
# Service Call: GetPrePaymentDisclosure
|
321
|
+
# @param GetPrePaymentDisclosureRequest
|
322
|
+
# @return GetPrePaymentDisclosureResponse
|
323
|
+
def GetPrePaymentDisclosure(options = {} , http_header = {})
|
324
|
+
request_object = BuildGetPrePaymentDisclosure(options)
|
325
|
+
request_hash = request_object.to_hash
|
326
|
+
response_hash = request("GetPrePaymentDisclosure", request_hash, http_header)
|
327
|
+
GetPrePaymentDisclosureResponse.new(response_hash)
|
328
|
+
end
|
329
|
+
alias_method :get_pre_payment_disclosure, :GetPrePaymentDisclosure
|
330
|
+
|
331
|
+
def BuildGetPrePaymentDisclosure(options = {}, &block)
|
332
|
+
klass = GetPrePaymentDisclosureRequest
|
333
|
+
object = options.is_a?(klass) ? options : klass.new(options || {})
|
334
|
+
object.instance_eval(&block) if block
|
335
|
+
object
|
336
|
+
end
|
337
|
+
alias_method :build_get_pre_payment_disclosure, :BuildGetPrePaymentDisclosure
|
338
|
+
|
320
339
|
|
321
340
|
end
|
322
341
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-adaptivepayments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.100.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paypal-sdk-core
|