Class: PayPal::SDK::AdaptivePayments::DataTypes::GetPrePaymentDisclosureResponse

Inherits:
DataType
  • Object
show all
Defined in:
lib/paypal-sdk/adaptive_payments/data_types.rb

Overview

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. This is currently a place holder to support backward compatibility since first name and last name are mandated too. If Status = MISSING_RECEIVER_COUNTRY_FNAME_LNAME_INFORMATION then it means the Receiver country, first name and last name 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.

Class Method Summary collapse

Class Method Details

.load_membersObject



1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
# File 'lib/paypal-sdk/adaptive_payments/data_types.rb', line 1192

def self.load_members
  include ResponseStatus
  object_of :responseEnvelope, ResponseEnvelope, :required => true
  object_of :status, Status, :required => true
  object_of :feesPayer, String
  object_of :senderDisclosure, SenderDisclosure
  object_of :receiverDisclosureList, ReceiverDisclosureList
  object_of :disclaimer, String
  array_of :error, ErrorData
end