Class: Worldline::Connect::SDK::Domain::DataObject

Inherits:
Object
  • Object
show all
Defined in:
lib/worldline/connect/sdk/domain/data_object.rb

Overview

Base class for all SDK data objects, supports marshalling and unmarshalling the data object to and from JSON.

Direct Known Subclasses

Communication::MetadataProvider::ServerMetaInfo, ShoppingCartExtension, V1::Domain::APIError, V1::Domain::AbstractIndicator, V1::Domain::AbstractOrderStatus, V1::Domain::AbstractPaymentMethodSpecificInput, V1::Domain::AbstractPaymentMethodSpecificOutput, V1::Domain::AbstractPayoutMethodSpecificInput, V1::Domain::AbstractRedirectPaymentProduct4101SpecificInput, V1::Domain::AbstractRedirectPaymentProduct840SpecificInput, V1::Domain::AbstractSepaDirectDebitPaymentProduct771SpecificInput, V1::Domain::AbstractThreeDSecure, V1::Domain::AbstractToken, V1::Domain::AccountFundingRecipient, V1::Domain::AccountOnFile, V1::Domain::AccountOnFileDisplayHints, V1::Domain::AdditionalOrderInput, V1::Domain::AdditionalOrderInputAirlineData, V1::Domain::Address, V1::Domain::AfrName, V1::Domain::AirlineData, V1::Domain::AirlineFlightLeg, V1::Domain::AirlinePassenger, V1::Domain::AmountBreakdown, V1::Domain::AmountOfMoney, V1::Domain::ApprovePaymentCardPaymentMethodSpecificOutput, V1::Domain::ApprovePaymentMobilePaymentMethodSpecificOutput, V1::Domain::ApprovePaymentPaymentMethodSpecificInput, V1::Domain::ApprovePaymentRequest, V1::Domain::ApprovePayoutRequest, V1::Domain::ApproveRefundRequest, V1::Domain::BankAccount, V1::Domain::BankData, V1::Domain::BankDetails, V1::Domain::BankDetailsResponse, V1::Domain::BankRefundMethodSpecificInput, V1::Domain::BoletoBancarioRequirednessValidator, V1::Domain::BrowserData, V1::Domain::CancelApprovalPaymentResponse, V1::Domain::CancelPaymentCardPaymentMethodSpecificOutput, V1::Domain::CancelPaymentMobilePaymentMethodSpecificOutput, V1::Domain::CancelPaymentResponse, V1::Domain::CapturePaymentRequest, V1::Domain::CaptureStatusOutput, V1::Domain::CapturesResponse, V1::Domain::CardEssentials, V1::Domain::CardRecurrenceDetails, V1::Domain::CashPaymentProduct1503SpecificInput, V1::Domain::CashPaymentProductWithRedirectSpecificInputBase, V1::Domain::CompanyInformation, V1::Domain::CompletePaymentCardPaymentMethodSpecificInput, V1::Domain::CompletePaymentRequest, V1::Domain::ContactDetailsBase, V1::Domain::ContactDetailsRiskAssessment, V1::Domain::ConvertAmount, V1::Domain::CreateDisputeRequest, V1::Domain::CreateHostedCheckoutRequest, V1::Domain::CreateHostedCheckoutResponse, V1::Domain::CreateHostedMandateManagementRequest, V1::Domain::CreateHostedMandateManagementResponse, V1::Domain::CreateMandateBase, V1::Domain::CreateMandateResponse, V1::Domain::CreatePaymentProductSessionRequest, V1::Domain::CreatePaymentProductSessionResponse, V1::Domain::CreatePaymentRequest, V1::Domain::CreatePaymentResult, V1::Domain::CreatePayoutRequest, V1::Domain::CreateTokenRequest, V1::Domain::CreateTokenResponse, V1::Domain::CreatedPaymentOutput, V1::Domain::Creditor, V1::Domain::CustomerAccount, V1::Domain::CustomerAccountAuthentication, V1::Domain::CustomerAccountRiskAssessment, V1::Domain::CustomerApprovePayment, V1::Domain::CustomerBase, V1::Domain::CustomerDevice, V1::Domain::CustomerDeviceRiskAssessment, V1::Domain::CustomerPaymentActivity, V1::Domain::CustomerRiskAssessment, V1::Domain::Debtor, V1::Domain::DecryptedPaymentData, V1::Domain::DeviceFingerprintDetails, V1::Domain::DeviceFingerprintRequest, V1::Domain::DeviceFingerprintResponse, V1::Domain::DeviceRenderOptions, V1::Domain::Directory, V1::Domain::DirectoryEntry, V1::Domain::DisplayedData, V1::Domain::Dispute, V1::Domain::DisputeCreationDetail, V1::Domain::DisputeOutput, V1::Domain::DisputeReference, V1::Domain::DisputeStatusOutput, V1::Domain::DisputesResponse, V1::Domain::EInvoicePaymentProduct9000SpecificInput, V1::Domain::EInvoicePaymentProduct9000SpecificOutput, V1::Domain::EmptyValidator, V1::Domain::ErrorResponse, V1::Domain::ExemptionOutput, V1::Domain::ExternalCardholderAuthenticationData, V1::Domain::FindPaymentsResponse, V1::Domain::FindPayoutsResponse, V1::Domain::FindRefundsResponse, V1::Domain::FixedListValidator, V1::Domain::FraudFields, V1::Domain::FraudFieldsShippingDetails, V1::Domain::FraudResults, V1::Domain::FraudResultsRetailDecisions, V1::Domain::FraugsterResults, V1::Domain::Frequency, V1::Domain::GPayThreeDSecure, V1::Domain::GetCustomerDetailsRequest, V1::Domain::GetCustomerDetailsResponse, V1::Domain::GetHostedCheckoutResponse, V1::Domain::GetHostedMandateManagementResponse, V1::Domain::GetIINDetailsRequest, V1::Domain::GetIINDetailsResponse, V1::Domain::GetInstallmentRequest, V1::Domain::GetMandateResponse, V1::Domain::GetPrivacyPolicyResponse, V1::Domain::GiftCardPurchase, V1::Domain::HostedCheckoutSpecificInput, V1::Domain::HostedCheckoutSpecificOutput, V1::Domain::HostedFile, V1::Domain::HostedMandateInfo, V1::Domain::HostedMandateManagementSpecificInput, V1::Domain::IINDetail, V1::Domain::InAuth, V1::Domain::InstallmentDisplayHints, V1::Domain::InstallmentOptions, V1::Domain::InstallmentOptionsResponse, V1::Domain::Installments, V1::Domain::KeyValuePair, V1::Domain::LabelTemplateElement, V1::Domain::LengthValidator, V1::Domain::Level3SummaryData, V1::Domain::LineItem, V1::Domain::LineItemInvoiceData, V1::Domain::LineItemLevel3InterchangeInformation, V1::Domain::LoanRecipient, V1::Domain::LodgingCharge, V1::Domain::LodgingData, V1::Domain::LodgingRoom, V1::Domain::MandateAddress, V1::Domain::MandateApproval, V1::Domain::MandateContactDetails, V1::Domain::MandateCustomer, V1::Domain::MandateMerchantAction, V1::Domain::MandateNonSepaDirectDebit, V1::Domain::MandatePersonalInformation, V1::Domain::MandatePersonalName, V1::Domain::MandateResponse, V1::Domain::MandateSepaDirectDebitWithoutCreditor, V1::Domain::Merchant, V1::Domain::MerchantAction, V1::Domain::MerchantRiskAssessment, V1::Domain::MicrosoftFraudResults, V1::Domain::MobilePaymentData, V1::Domain::MobilePaymentProduct302SpecificInputHostedCheckout, V1::Domain::MobilePaymentProduct320SpecificInput, V1::Domain::MobilePaymentProduct320SpecificInputHostedCheckout, V1::Domain::MobilePaymentProductSession302SpecificInput, V1::Domain::MobilePaymentProductSession302SpecificOutput, V1::Domain::MobileThreeDSecureChallengeParameters, V1::Domain::NonSepaDirectDebitPaymentProduct705SpecificInput, V1::Domain::NonSepaDirectDebitPaymentProduct730SpecificInput, V1::Domain::Order, V1::Domain::OrderApprovePayment, V1::Domain::OrderInvoiceData, V1::Domain::OrderLineDetails, V1::Domain::OrderOutput, V1::Domain::OrderReferences, V1::Domain::OrderReferencesApprovePayment, V1::Domain::OrderRiskAssessment, V1::Domain::OrderStatusOutput, V1::Domain::OrderTypeInformation, V1::Domain::PaymentAccountOnFile, V1::Domain::PaymentApprovalResponse, V1::Domain::PaymentContext, V1::Domain::PaymentCreationReferences, V1::Domain::PaymentErrorResponse, V1::Domain::PaymentProduct, V1::Domain::PaymentProduct302SpecificData, V1::Domain::PaymentProduct3201SpecificOutput, V1::Domain::PaymentProduct320SpecificData, V1::Domain::PaymentProduct771SpecificOutput, V1::Domain::PaymentProduct806SpecificOutput, V1::Domain::PaymentProduct836SpecificOutput, V1::Domain::PaymentProduct840CustomerAccount, V1::Domain::PaymentProduct840SpecificOutput, V1::Domain::PaymentProduct863SpecificData, V1::Domain::PaymentProduct863ThirdPartyData, V1::Domain::PaymentProductDisplayHints, V1::Domain::PaymentProductField, V1::Domain::PaymentProductFieldDataRestrictions, V1::Domain::PaymentProductFieldDisplayElement, V1::Domain::PaymentProductFieldDisplayHints, V1::Domain::PaymentProductFieldFormElement, V1::Domain::PaymentProductFieldTooltip, V1::Domain::PaymentProductFieldValidators, V1::Domain::PaymentProductFilter, V1::Domain::PaymentProductFiltersClientSession, V1::Domain::PaymentProductFiltersHostedCheckout, V1::Domain::PaymentProductGroup, V1::Domain::PaymentProductGroups, V1::Domain::PaymentProductNetworksResponse, V1::Domain::PaymentProducts, V1::Domain::PaymentReferences, V1::Domain::PayoutCustomer, V1::Domain::PayoutDetails, V1::Domain::PayoutErrorResponse, V1::Domain::PayoutMerchant, V1::Domain::PayoutRecipient, V1::Domain::PayoutReferences, V1::Domain::PersonalIdentification, V1::Domain::PersonalInformation, V1::Domain::PersonalInformationRiskAssessment, V1::Domain::PersonalInformationToken, V1::Domain::PersonalNameBase, V1::Domain::ProtectionEligibility, V1::Domain::RangeValidator, V1::Domain::RecurringPaymentsData, V1::Domain::RedirectDataBase, V1::Domain::RedirectPaymentProduct4101SpecificInput, V1::Domain::RedirectPaymentProduct809SpecificInput, V1::Domain::RedirectPaymentProduct861SpecificInput, V1::Domain::RedirectPaymentProduct863SpecificInput, V1::Domain::RedirectPaymentProduct869SpecificInput, V1::Domain::RedirectPaymentProduct882SpecificInput, V1::Domain::RedirectionData, V1::Domain::RefundCustomer, V1::Domain::RefundErrorResponse, V1::Domain::RefundMethodSpecificOutput, V1::Domain::RefundPaymentProduct840CustomerAccount, V1::Domain::RefundPaymentProduct840SpecificOutput, V1::Domain::RefundReferences, V1::Domain::RefundRequest, V1::Domain::RefundsResponse, V1::Domain::RegularExpressionValidator, V1::Domain::ResultDoRiskAssessment, V1::Domain::RetailDecisionsCCFraudCheckOutput, V1::Domain::RiskAssessment, V1::Domain::RiskAssessmentResponse, V1::Domain::SchemeTokenData, V1::Domain::SdkDataInput, V1::Domain::SdkDataOutput, V1::Domain::Seller, V1::Domain::SessionRequest, V1::Domain::SessionResponse, V1::Domain::Shipping, V1::Domain::ShippingRiskAssessment, V1::Domain::ShoppingCart, V1::Domain::Swift, V1::Domain::TestConnection, V1::Domain::ThirdPartyData, V1::Domain::ThirdPartyStatusResponse, V1::Domain::ThreeDSecureData, V1::Domain::ThreeDSecureResults, V1::Domain::TokenCardData, V1::Domain::TokenEWalletData, V1::Domain::TokenNonSepaDirectDebitPaymentProduct705SpecificData, V1::Domain::TokenNonSepaDirectDebitPaymentProduct730SpecificData, V1::Domain::TokenResponse, V1::Domain::TokenizePaymentRequest, V1::Domain::TrialInformation, V1::Domain::TrialPeriod, V1::Domain::TrustlyBankAccount, V1::Domain::UpdateTokenRequest, V1::Domain::UploadDisputeFileResponse, V1::Domain::ValidationBankAccountCheck, V1::Domain::ValidationBankAccountOutput, V1::Domain::ValueMappingElement, V1::Domain::WebhooksEvent

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new_from_hash(hash) ⇒ Object

Create a new instance of this object (DataObject or descendant) from a hash containing attribute values in camelCase. Note that the hash contains Strings as keys instead of more commonly used tokens.



20
21
22
23
24
# File 'lib/worldline/connect/sdk/domain/data_object.rb', line 20

def self.new_from_hash(hash)
  obj = self.new
  obj.from_hash(hash)
  obj
end

Instance Method Details

#from_hash(hash) ⇒ Object

Set attributes from values in parameter hash. Should be overridden by descendants in order to properly restore their attributes from the hash. Note that the hash contains Strings as keys instead of more commonly used tokens.



29
# File 'lib/worldline/connect/sdk/domain/data_object.rb', line 29

def from_hash(hash) end

#to_hHash

Returns a hash representation of the DataObject. The hash contains camelCase representations of the variables, and their values. Should be overridden to add all instance variables of the object.

Returns:

  • (Hash)


13
14
15
# File 'lib/worldline/connect/sdk/domain/data_object.rb', line 13

def to_h
  {}
end