Class: CyberSourceMergedSpec::BaseModel
- Inherits:
-
CoreLibrary::BaseModel
- Object
- CoreLibrary::BaseModel
- CyberSourceMergedSpec::BaseModel
- Defined in:
- lib/cyber_source_merged_spec/models/base_model.rb
Overview
Base model. rubocop:disable all
Direct Known Subclasses
Account, Account1, Account12, Account14, Account16, Account17, Account18, Account19, Account2, Account3, Account6, Account8, Account9, AccountAlias, AccountAlias1, AccountFeatures, AccountFeatures1, AccountFeatures2, AccountFeatures3, AccountHistory, AchVerification, AcquirerInformation, AcquirerInformation1, ActionDecisionManagerCaseResponse, Activate, ActivateDeactivatePlanResponse, ActivateSubscriptionResponse, ActualFinalDestination, AddNegativeListRequest, Address, Address1, AddressDetails, AftFundingOptions, Agency, Agency5, AggregatorInformation, AggregatorInformation1, AggregatorInformation5, AggregatorInformation7, AggregatorInformation8, AgreementInformation, AgreementInformation1, AgreementInformation10, AgreementInformation5, AgreementInformation6, AgreementInformation7, AgreementInformation8, AgreementInformation9, Airline, Airline2, AmexAdditionalAmount, AmountDetails, AmountDetails1, AmountDetails10, AmountDetails12, AmountDetails2, AmountDetails22, AmountDetails23, AmountDetails26, AmountDetails27, AmountDetails28, AmountDetails29, AmountDetails3, AmountDetails32, AmountDetails34, AmountDetails36, AmountDetails37, AmountDetails38, AmountDetails40, AmountDetails41, AmountDetails42, AmountDetails43, AmountDetails44, AmountDetails45, AmountDetails46, AmountDetails47, AmountDetails48, AmountDetails5, AmountDetails51, AmountDetails54, AmountDetails57, AmountDetails6, AmountDetails60, AmountDetails61, AmountDetails62, AmountDetails9, AncillaryInformation, AncillaryInformation2, ApCapture, Application, Application1, ApplicationInformation, ApplicationInformation1, Attribute, AuthReversalRequest, AuthenticatedIdentity, AuthenticatedIdentity1, Authorization, AuthorizationInformation, AuthorizationOptions, AuthorizationOptions1, AuthorizationOptions2, AuthorizationOptions3, AuthorizationOptions4, AuthorizationOptions5, AutoRental, AutoRental5, AuxiliaryDatum, Avs, Avs1, Avs3, Avs4, Balance, Bank, Bank1, Bank11, Bank14, Bank15, Bank16, Bank2, Bank6, Bank7, Bank9, BankAccount, BankAccount1, BankAccount46, BankAccountValidation, BankApplication, BankTransferOptions, BankTransferOptions1, BankTransferOptions2, BankTransferOptions23, BankTransferOptions3, BankTransferOptions4, BarCode, BillTo, BillTo1, BillTo11, BillTo12, BillTo14, BillTo15, BillTo16, BillTo2, BillTo20, BillTo6, BillTo64, BillTo65, BillTo66, BillTo67, BillTo68, BillTo69, BillTo7, BillTo70, BillTo73, BillTo74, BillTo9, BillingCycles, BillingCycles1, BillingCycles5, BillingPeriod, Bonuse, Brand, Brand28, BrandLogoAsset, BuyerHistory, BuyerInformation, BuyerInformation1, BuyerInformation11, BuyerInformation12, BuyerInformation13, BuyerInformation2, BuyerInformation37, BuyerInformation38, BuyerInformation39, BuyerInformation40, BuyerInformation42, BuyerInformation43, BuyerInformation44, BuyerInformation6, BuyerInformation7, BuyerInformation8, BuyerInformation9, Cancel, CancelSubscriptionResponse, Capabilities, Capture, Capture1, Capture5, CaptureOptions, CaptureOptions1, CaptureOptions2, CaptureOptions3, CapturePaymentRequest, Card, Card1, Card11, Card120, Card121, Card123, Card124, Card125, Card126, Card127, Card128, Card129, Card13, Card131, Card132, Card14, Card15, Card16, Card24, Card28, Card3, Card30, Card4, Card8, CardArt, CardVerification, CardVerification1, CardVerification2, CaseManagementActionsRequest, CaseManagementCommentsRequest, ChargebackDetail, ChargebackSummary, CheckPayerAuthEnrollmentRequest, ClearingInformation, ClientReferenceInformation, ClientReferenceInformation1, ClientReferenceInformation10, ClientReferenceInformation11, ClientReferenceInformation2, ClientReferenceInformation26, ClientReferenceInformation28, ClientReferenceInformation29, ClientReferenceInformation3, ClientReferenceInformation39, ClientReferenceInformation4, ClientReferenceInformation42, ClientReferenceInformation48, ClientReferenceInformation49, ClientReferenceInformation62, ClientReferenceInformation64, ClientReferenceInformation74, ClientReferenceInformation75, ClientReferenceInformation76, ClientReferenceInformation78, ClientReferenceInformaton, Color, CombinedAsset, CombinedAsset6, CommentDecisionManagerCaseResponse, Company, Company5, Company6, ConsumerAuthentication1, ConsumerAuthenticationInformation, ConsumerAuthenticationInformation1, ConsumerAuthenticationInformation10, ConsumerAuthenticationInformation11, ConsumerAuthenticationInformation12, ConsumerAuthenticationInformation2, ConsumerAuthenticationInformation4, ConsumerAuthenticationInformation5, ConsumerAuthenticationInformation6, ConsumerAuthenticationInformation9, ConsumerAuthenticationResponse, ConsumerAuthenticationResponse1, Consumerauthentication, Content, ConversionDetail, Create, CreateAdhocReportRequest, CreateBillingAgreement, CreateBinLookupRequest, CreateBundledDecisionManagerCaseRequest, CreateCreditRequest, CreateInvoiceRequest, CreateMerchantDefinedFieldDefinitionResponse, CreateOrderRequest, CreatePaymentRequest, CreatePlanRequest, CreatePlanResponse, CreateReportSubscriptionRequest, CreateSearchRequest, CreateSessionReq, CreateSessionRequest, CreateSubscriptionRequest, CreateSubscriptionRequest1, CreateSubscriptionResponse, CreditAmountDetails, CurrencyConversion, CustomLabel, CustomRedirectUrls, Customer, Customer1, Customer10, Customer14, Customer15, Customer16, Customer19, Customer2, Customer4, Customer50, Customer51, Customer54, Customer56, Customer58, Customer59, Customer60, Customer63, CustomerAccount, CustomerInformation, CustomerInformation2, CyclesCompletedCount, Decision, DecisionInformation, DefaultPaymentInstrument, DefaultPaymentInstrument1, DefaultShippingAddress, DefaultShippingAddress1, DeletePlanResponse, Deliver, Detail, Detail102, Detail103, Detail104, Detail131, Detail169, Detail18, Detail31, Detail43, Detail73, DeviceInformation, DeviceInformation1, DeviceInformation11, DeviceInformation13, DeviceInformation14, DeviceInformation15, DeviceInformation16, DeviceInformation17, DeviceInformation18, DeviceInformation3, DeviceInformation7, DeviceInformation9, DigitalCurrency, DirectDebit, DirectDebit1, Documentation, EWallet, EWallet1, EWallet10, EWallet13, EWallet2, EWallet5, EWallet6, EWallet7, EWallet8, EWallet9, ElectronicBenefitsTransfer, ElectronicBenefitsTransfer1, ElectronicVerificationResults, ElectronicVerificationResults1, ElectronicVerificationResults3, Embedded, Embedded1, Embedded12, Embedded2, Embedded41, Embedded55, Embedded56, EmbeddedActions, EmbeddedActions1, Emv, Emv1, Emv2, Emv6, EmvTag, Error, Error1, Error4, Error7, ErrorInformation, ErrorInformation1, ErrorInformation12, ErrorInformation2, ErrorInformation23, ErrorInformation24, ErrorInformation25, ErrorInformation27, ErrorInformation28, ErrorInformation29, ErrorInformation30, ErrorInformation31, ErrorInformation33, ErrorInformation34, ErrorInformation5, ErrorInformation8, EventInformation, ExportComplianceInformation, ExportComplianceInformation1, ExportComplianceWatchList, Features, Features28, FeeAndFundingDetail, Field, File, FileDetail, Fingerprint, First, FirstDeparture, FirstDestination, FluidData, FluidData4, FluidData7, FollowOnTransactionBuyerInformation, FraudMarkingActionRequest, FraudMarkingInformation, Freight, FundingOptions, GenerateCaptureContextRequest, GetAccountInfoResponse, GetAllPlansResponse, GetAllSubscriptionsResponse, GetCardArtAssetResponse, GetCustomerResponse, GetCustomerShippingAddressResponse, GetInstrumentIdentifierResponse, GetMerchantDefinedFieldsDefinitionsResponse, GetPlanCodeResponse, GetPlanResponse, GetSubscriptionCodeResponse, GetSubscriptionResponse, GetSubscriptionResponse1, GetSubscriptionsPaymentsResponse, GetSubscriptionsPaymentsResponse1, GetTokenizedCardResponse, HeaderStyle, HealthCareInformation, HostedPaymentInformation, IconAsset, IncrementAuthRequest, InfoCodes, Initiator, Initiator1, Initiator2, Initiator29, Initiator30, Initiator31, Initiator34, InstallmentInformation, InstallmentInformation1, InstallmentInformation10, InstallmentInformation2, InstallmentInformation3, InstallmentInformation4, InstallmentInformation5, InstrumentIdentifier, InstrumentIdentifier1, InstrumentIdentifier10, InstrumentIdentifier12, InstrumentIdentifier13, InstrumentIdentifier2, InstrumentIdentifier3, InstrumentIdentifier34, InstrumentIdentifier35, InstrumentIdentifier37, InterchangeClearingLevelDetail, IntimateBillingAgreement, Invoice, Invoice1, InvoiceDetails, InvoiceDetails1, InvoiceDetails12, InvoiceDetails15, InvoiceDetails19, InvoiceDetails2, InvoiceDetails3, InvoiceDetails4, InvoiceDetails5, InvoiceHistory, InvoiceInformation, InvoiceInformation1, InvoiceInformation2, InvoiceInformation4, InvoiceSettingsInformation, InvoiceSettingsInformation1, InvoiceSettingsRequest, InvoicingV2InvoiceSettingsGet200Response, InvoicingV2InvoiceSettingsPut200Response, InvoicingV2InvoicesAllGet200Response, InvoicingV2InvoicesCancel200Response, InvoicingV2InvoicesGet200Response, InvoicingV2InvoicesPost202Response, InvoicingV2InvoicesPublish200Response, InvoicingV2InvoicesPut200Response, InvoicingV2InvoicesSend200Response, IpAddress, IssuedBy, Issuer, Issuer3, Issuer4, IssuerInformation, IssuerInformation1, IssuerInformation2, IssuerInformation3, IssuerInformation33, IssuerInformation35, IssuerInformation5, IssuerInformation6, IssuerLogoAsset, Ivr, JapanPaymentOptions, JapanPaymentOptions1, JapanPaymentOptions2, JapanPaymentOptions3, Last, LastDestination, Leg, Leg5, LegacyToken, LineItem, LineItem1, LineItem11, LineItem12, LineItem13, LineItem14, LineItem15, LineItem16, LineItem17, LineItem3, LineItem4, LineItem7, LineItem9, Link, Links, Links1, Links13, Links14, Links17, Links18, Links19, Links20, Links21, Links211, Links217, Links218, Links22, Links223, Links224, Links225, Links227, Links23, Links233, Links235, Links24, Links241, Links243, Links244, Links245, Links246, Links25, Links250, Links251, Links26, Links39, Links4, Links5, Links54, Links85, LoanOptions, Lodging, Mandate, Mandate1, MarkingDetails, MarkingDetails1, Match, MerchantAdvice, MerchantAdvice2, MerchantDefinedFieldCore, MerchantDefinedFieldDefinitionRequest, MerchantDefinedFieldValue, MerchantDefinedFieldValuesWithDefinition, MerchantDefinedInformation, MerchantDefinedInformation13, MerchantDefinedInformation7, MerchantDefinedSecureInformation, MerchantDescriptor, MerchantDescriptor1, MerchantDescriptor11, MerchantDescriptor13, MerchantDescriptor15, MerchantDescriptor34, MerchantDescriptor36, MerchantDescriptor37, MerchantDescriptor38, MerchantDescriptor39, MerchantDescriptor6, MerchantInformation, MerchantInformation1, MerchantInformation12, MerchantInformation15, MerchantInformation17, MerchantInformation18, MerchantInformation19, MerchantInformation2, MerchantInformation21, MerchantInformation22, MerchantInformation23, MerchantInformation24, MerchantInformation25, MerchantInformation27, MerchantInformation3, MerchantInformation4, MerchantInformation7, MerchantInformation8, MerchantInitiatedTransaction, MerchantInitiatedTransaction1, MerchantInitiatedTransactionObject, Metadata, Metadata1, Metadata2, Metadata3, Metadata4, Method, Method1, Method12, Method13, Method19, Method2, MitReversalRequest, MitVoidRequest, ModifyBillingAgreement, Morphing, MultiProcessorRouting, NetFundingSummary, NetTotal, Network, Network17, Network45, Next, Next3, Next4, Note, NotificationOfChange, ObjectInformation, OctCreatePaymentRequest, OctSurcharge, Options, Options1, Orchestration, Order, OrderInformation, OrderInformation1, OrderInformation14, OrderInformation19, OrderInformation2, OrderInformation20, OrderInformation22, OrderInformation24, OrderInformation25, OrderInformation26, OrderInformation27, OrderInformation3, OrderInformation30, OrderInformation31, OrderInformation32, OrderInformation33, OrderInformation35, OrderInformation36, OrderInformation37, OrderInformation39, OrderInformation4, OrderInformation40, OrderInformation41, OrderInformation42, OrderInformation43, OrderInformation44, OrderInformation45, OrderInformation46, OrderInformation47, OrderInformation48, OrderInformation49, OrderInformation52, OrderInformation53, OrderInformation55, OrderInformation57, OrderInformation58, OrderInformation6, OrderInformation60, OrderInformation61, OrderInformation62, OrderInformation7, OrderInformation8, OrderInformation9, OrderPaymentRequest, OriginatorInitiatedTransaction, Other, Partner, Partner1, Partner16, Partner2, Partner33, Partner34, Partner35, Partner38, Passcode, Passenger, Passenger3, PassiveProfile, PassiveRule, PatchCustomerPaymentInstrumentRequest, PatchCustomerRequest, PatchCustomerResponse, PatchCustomerShippingAddressRequest, PatchCustomersShippingAddressResponse, PatchInstrumentIdentifierRequest, PatchInstrumentIdentifierResponse, PatchPaymentInstrumentRequest, PayerAuthSetupRequest, PaymentAccountInformation, PaymentAccountInformation1, PaymentAccountInformation2, PaymentAccountReference, PaymentBatchSummary, PaymentInformation, PaymentInformation1, PaymentInformation14, PaymentInformation15, PaymentInformation16, PaymentInformation18, PaymentInformation2, PaymentInformation20, PaymentInformation21, PaymentInformation22, PaymentInformation23, PaymentInformation26, PaymentInformation28, PaymentInformation29, PaymentInformation3, PaymentInformation30, PaymentInformation31, PaymentInformation32, PaymentInformation33, PaymentInformation34, PaymentInformation35, PaymentInformation36, PaymentInformation37, PaymentInformation38, PaymentInformation39, PaymentInformation4, PaymentInformation40, PaymentInformation42, PaymentInformation43, PaymentInformation44, PaymentInformation5, PaymentInformation8, PaymentInformation9, PaymentInsightsInformation, PaymentInstrument, PaymentInstrument1, PaymentInstrument11, PaymentInstrument2, PaymentInstrument23, PaymentInstrument24, PaymentInstrument25, PaymentInstrument4, PaymentInstrumentList, PaymentInstruments, PaymentInstruments1, PaymentInstruments4, PaymentType, PaymentType1, PaymentType11, PaymentType12, PaymentType13, PaymentType19, PaymentType2, PaymentType22, PaymentType23, PaymentType3, PaymentsStrongAuthIssuerInformation, PayoutInformation, PayoutOptions, PayoutOptions1, PayoutsOptions, PayoutsOptions1, PersonalIdentification, PersonalIdentification2, PersonalIdentification31, PersonalIdentification32, PersonalIdentification6, PersonalIdentification9, Plan, PlanInformation, PlanInformation1, PlanInformation11, PlanInformation2, PlanInformation4, PlanInformation5, PlanInformation8, PlanInformation9, PointOfSaleInformation, PointOfSaleInformation1, PointOfSaleInformation14, PointOfSaleInformation15, PointOfSaleInformation2, PointOfSaleInformation6, PointOfSaleInformation7, PointOfSaleInformation8, PostCustomerPaymentInstrumentRequest, PostCustomerRequest, PostCustomerShippingAddressRequest, PostCustomerShippingAddressResponse, PostInstrumentIdentifierEnrollmentRequest, PostInstrumentIdentifierRequest, PostInstrumentIdentifierResponse, PostIssuerLifeCycleSimulationRequest, PostPaymentCredentialsRequest, PostPaymentInstrumentRequest, PostTokenPaymentCredentialsV3Response, PostTokenizeRequest, PostTokenizedCardDeleteRequest, PostTokenizedCardRequest, PostTokenizedCardResponse, PredefinedSubscriptionRequestBean, Prev, Prev3, Previous, ProcessingInfOauthOrizationOptions, ProcessingInformation, ProcessingInformation1, ProcessingInformation11, ProcessingInformation12, ProcessingInformation13, ProcessingInformation17, ProcessingInformation18, ProcessingInformation19, ProcessingInformation2, ProcessingInformation20, ProcessingInformation21, ProcessingInformation22, ProcessingInformation23, ProcessingInformation25, ProcessingInformation26, ProcessingInformation27, ProcessingInformation28, ProcessingInformation29, ProcessingInformation3, ProcessingInformation5, ProcessingInformation56, ProcessingInformation57, ProcessingInformation6, ProcessingInformation60, ProcessingInformation61, ProcessingInformation62, ProcessingInformation63, ProcessingInformation64, ProcessingInformation65, ProcessingInformation68, ProcessingInformation69, ProcessingInformation7, ProcessingInformation70, ProcessingInformation72, Processor, ProcessorInformation, ProcessorInformation1, ProcessorInformation10, ProcessorInformation15, ProcessorInformation2, ProcessorInformation20, ProcessorInformation21, ProcessorInformation23, ProcessorInformation24, ProcessorInformation25, ProcessorInformation27, ProcessorInformation29, ProcessorInformation3, ProcessorInformation30, ProcessorInformation31, ProcessorInformation32, ProcessorInformation33, ProcessorInformation34, ProcessorInformation35, ProcessorInformation4, ProcessorInformation5, ProcessorInformation7, ProcessorInformation8, ProcessorInformationSellerProtection, ProcessorResults, ProcessorResults1, Profile, Profile1, Profile4, ProgramIndicators, PromotionInformation, Providers, PtsV1TransactionBatchesGet200Response, PtsV1TransactionBatchesIdGet200Response, PtsV2CapturesRefundsPost201Response, PtsV2CapturesVoidsPost201Response, PtsV2CreateBillingAgreementPost201Response, PtsV2CreateOrderPost201Response, PtsV2CreditsPost201Response, PtsV2CreditsPost201Response1, PtsV2CreditsVoidsPost201Response, PtsV2IncrementalAuthorizationPatch201Response, PtsV2ModifyBillingAgreementPost201Response, PtsV2PaymentsCapturesPost201Response, PtsV2PaymentsOrderPost201Response, PtsV2PaymentsPost201Response, PtsV2PaymentsPost201Response1, PtsV2PaymentsPost201Response2, PtsV2PaymentsRefundPost201Response, PtsV2PaymentsReversalsPost201Response, PtsV2PaymentsVoidsPost201Response, PtsV2PayoutsPost201Response, PtsV2RefundsVoidsPost201Response, PtsV2ReversalsPost201Response, PtsV2UpdateOrderPatch201Response, PtsV2VoidsPost200Response, PullFunds, PullFunds201Response, PullFundsRefund201Response, PullFundsRefundRequest, PullFundsRequest, PullFundsReversal201Response, PullFundsReversalRequest, PurchaseOptions, PurchaseOptions1, PurchaseOptions2, PurchaseOptions3, PushFunds, PutMerchantDefinedFieldsDefinitionsResponse, RawDatum, RbsAuthorizationOptions, ReactivationInformation, Reason, RecipientInformation, RecipientInformation1, RecipientInformation2, RecipientInformation3, RecipientInformation4, RecipientInformation5, RecurringOptions, RecurringOptions1, RecurringOptions4, RecurringPaymentInformation, RecurringPaymentInformation3, RefreshPaymentStatusRequest, Refund, Refund1, RefundAmountDetails, RefundCaptureRequest, RefundOptions, RefundOptions2, RefundPaymentRequest, RelatedTransaction, RentalAddress, ReportDefinition, ReportDefinitionDefaultSettings, ReportDownload, ReportFilters, ReportPreferences, ReportSearchResult, ReportingV3ChargebackDetailsGet200Response, ReportingV3ChargebackSummariesGet200Response, ReportingV3ConversionDetailsGet200Response, ReportingV3InterchangeClearingLevelDetailsGet200Response, ReportingV3NetFundingsGet200Response, ReportingV3NotificationofChangesGet200Response, ReportingV3PaymentBatchSummariesGet200Response, ReportingV3PurchaseRefundDetailsGet200Response, ReportingV3ReportDefinitionsGet200Response, ReportingV3ReportDefinitionsNameGet200Response, ReportingV3ReportSubscriptionsGet200Response, ReportingV3ReportsGet200Response, ReportingV3ReportsIdGet200Response, ReportingV3ReportsSubscriptionsNameGet200Response, ReportingV3RetrievalDetailsGet200Response, ReportingV3RetrievalSummariesGet200Response, Request, RequestDetail, Response, ResponseInsights, ResponseStatus, RetrievalDetail, RetrievalSummary, RetrieveOrDeletePaymentTokenResponse, ReturnAddress, Reversal, Reversal1, Reversal5, Reversal6, ReversalAmountDetails, ReversalInformation, ReversalInformation2, RevokeAgreement, RewardPointsDetails, RiskAddressVerificationInformation, RiskInformation, RiskInformation1, RiskInformation10, RiskInformation11, RiskInformation2, RiskInformation4, RiskInformation5, RiskInformation7, RiskInformation8, RiskInformation9, RiskV1AddressVerificationsPost201Response, RiskV1AuthenticationResultsPost201Response, RiskV1AuthenticationSetupsPost201Response, RiskV1AuthenticationsPost201Response, RiskV1DecisionsPost201Response, RiskV1ExportComplianceInquiriesPost201Response, RiskV1UpdatePost201Response, Room, Routing, Rule, Rule2, Score, Score2, Self, Self17, Self18, Self19, Self20, Self209, Self21, Self215, Self216, Self22, Self221, Self222, Self223, Self23, Self24, Self25, Self38, Self83, SellerProtection, SenderInformation, SenderInformation1, SenderInformation2, SenderInformation3, SenderInformation4, SenderInformation5, Sepa, Service, Service2, ServiceFeeDescriptor, ServiceLocation, Settlement, SettlementStatus, ShipTo, ShipTo1, ShipTo11, ShipTo13, ShipTo14, ShipTo2, ShipTo27, ShipTo29, ShipTo30, ShipTo31, ShipTo33, ShipTo34, ShipTo6, ShipTo7, ShipTo8, ShipTo9, ShippingAddress, ShippingAddress1, ShippingAddress11, ShippingAddress12, ShippingAddress2, ShippingAddress21, ShippingAddress4, ShippingAddressListForCustomer, ShippingDetails, ShippingDetails1, ShippingDetails2, ShippingDetails5, ShippingDetails8, ShippingDetails9, StandardAddress, Status, StrongAuthentication, StrongAuthentication1, StrongAuthentication2, StrongAuthentication4, StrongAuthentication5, SubMerchant, SubMerchant1, SubMerchant7, SubMerchant8, Subscription, Subscription1, SubscriptionBillingOptions, SubscriptionInformation, SubscriptionInformation1, SubscriptionInformation2, SubscriptionInformation4, SubscriptionInformation6, SubscriptionInformation7, SubscriptionInformation8, SubscriptionPayment, Surcharge, Surcharge1, Surcharge2, Surcharge3, Suspend, SuspendSubscriptionResponse, TaxDetail, TaxDetails, TaxDetails1, TaxDetails13, TermsAndConditions, ThirdPartyToken, ThirdPartyToken1, TicketIssuer, Tms400ResponseError, Tms403ResponseError, Tms404ResponseError, Tms410ResponseError, Tms424ResponseError, Tms500ResponseError, TmsAuthorizationOptions, TmsBinLookup, TmsCardArt, TmsEmbeddedInstrumentIdentifier, TmsIssuerLifeCycleEventSimulationMetadata, TmsMerchantInformation, TmsMerchantInformation2, TmsPaymentInstrumentProcessingInfo, TmsPointOfSaleInformation, TmsV2CustomersResponse, Tmsv2TokenizedCard, TokenAuthenticationInformation, TokenInformation, TokenInformation1, TokenInformation10, TokenInformation11, TokenInformation2, TokenInformation3, TokenInformation4, TokenInformation5, TokenInformation6, TokenProvisioningInformation, Tokencreate, TokenizeResponse, TokenizedCard, TokenizedCard1, TokenizedCard12, TokenizedCard13, TokenizedCard14, TokenizedCard15, TokenizedCard16, TokenizedCard17, TokenizedCard19, TokenizedCard6, TokenizedCard9, TokenizedCards, TokenizedInformation, TokenizedPaymentMethod, TokenizedPaymentMethod1, TokenizedPaymentMethod2, TokenizedPaymentMethod4, Tokenupdate, TotalChargeback, TotalFee, TotalPurchase, TotalRefund, Transaction, TransactionAdviceAddendum, TransactionBatch, TransactionDetail, TransactionDetails, TransactionSummary, TransientTokenResponseOptions, Transit, Transit2, Travel, TravelInformation, TravelInformation1, TravelInformation10, TravelInformation3, TravelInformation6, TravelInformation8, TravelInformation9, TssV2TransactionsGet200Response, TssV2TransactionsPost201Response, UnscheduledPaymentInformation, Update, UpdateAgreement, UpdateInvoiceRequest, UpdateOrderRequest, UpdatePayments, UpdatePlanRequest, UpdatePlanResponse, UpdateSubscription, UpdateSubscriptionResponse, UserAgent, UserInterface, V1FileDetailsGet200Response, ValidateExportComplianceRequest, ValidateRequest, Validateconsumerauthentication, VehicleData, Velocity, VerificationResults, VerifyCustomerAddressRequest, Void, VoidAmountDetails, VoidCaptureRequest, VoidCreditRequest, VoidPaymentRequest, VoidRefundRequest, WatchlistScreeningInformation, WatchlistScreeningInformation1, Watchlistscreening, Weights
Instance Method Summary collapse
-
#check_for_conflict(name, existing_prop_names) ⇒ Object
Checks if an additional property conflicts with a model's existing property.
-
#process_additional_properties(additional_properties, existing_prop_names) ⇒ Object
Processes additional properties, ensuring no conflicts with existing properties.
-
#process_array(value) ⇒ Object
Processes an array of values, recursively calling
to_hashon BaseModel objects. -
#process_basic_value(value) ⇒ Object
Processes a basic value (non-array, non-hash).
-
#process_hash(value) ⇒ Object
Processes a hash of values, recursively calling
to_hashon BaseModel objects. -
#to_hash ⇒ Object
Returns a Hash representation of the current object.
-
#to_json(options = {}) ⇒ Object
Returns a JSON representation of the curent object.
Instance Method Details
#check_for_conflict(name, existing_prop_names) ⇒ Object
Checks if an additional property conflicts with a model's existing property.
80 81 82 83 84 |
# File 'lib/cyber_source_merged_spec/models/base_model.rb', line 80 def check_for_conflict(name, existing_prop_names) return unless existing_prop_names.key?(name) raise ArgumentError, "An additional property key, '#{name}' conflicts with one of the model's properties" end |
#process_additional_properties(additional_properties, existing_prop_names) ⇒ Object
Processes additional properties, ensuring no conflicts with existing properties.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/cyber_source_merged_spec/models/base_model.rb', line 63 def process_additional_properties(additional_properties, existing_prop_names) hash = {} additional_properties.each do |name, value| check_for_conflict(name, existing_prop_names) hash[name] = if value.is_a?(Array) process_array(value) elsif value.is_a?(Hash) process_hash(value) else process_basic_value(value) end end hash end |
#process_array(value) ⇒ Object
Processes an array of values, recursively calling to_hash on BaseModel objects.
87 88 89 |
# File 'lib/cyber_source_merged_spec/models/base_model.rb', line 87 def process_array(value) value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v } end |
#process_basic_value(value) ⇒ Object
Processes a basic value (non-array, non-hash).
99 100 101 |
# File 'lib/cyber_source_merged_spec/models/base_model.rb', line 99 def process_basic_value(value) value.is_a?(BaseModel) ? value.to_hash : value end |
#process_hash(value) ⇒ Object
Processes a hash of values, recursively calling to_hash on BaseModel objects.
92 93 94 95 96 |
# File 'lib/cyber_source_merged_spec/models/base_model.rb', line 92 def process_hash(value) value.transform_values do |v| v.is_a?(BaseModel) ? v.to_hash : v end end |
#to_hash ⇒ Object
Returns a Hash representation of the current object.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/cyber_source_merged_spec/models/base_model.rb', line 11 def to_hash # validating the model being serialized self.class.validate(self) if self.class.respond_to?(:validate) hash = {} instance_variables.each do |name| value = instance_variable_get(name) name = name[1..] if name == 'additional_properties' additional_properties = process_additional_properties(value, self.class.names) hash.merge!(additional_properties) else key = self.class.names.key?(name) ? self.class.names[name] : name optional_fields = self.class.optionals nullable_fields = self.class.nullables if value.nil? next unless nullable_fields.include?(name) if !optional_fields.include?(name) && !nullable_fields.include?(name) raise ArgumentError, "`#{name}` cannot be nil in `#{self.class}`. Please specify a valid value." end end hash[key] = nil unless value.nil? if respond_to?("to_custom_#{name}") if (value.instance_of? Array) || (value.instance_of? Hash) params = [hash, key] hash[key] = send("to_custom_#{name}", *params) else hash[key] = send("to_custom_#{name}") end elsif respond_to?("to_union_type_#{name}") hash[key] = send("to_union_type_#{name}") elsif value.instance_of? Array hash[key] = value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v } elsif value.instance_of? Hash hash[key] = {} value.each do |k, v| hash[key][k] = v.is_a?(BaseModel) ? v.to_hash : v end else hash[key] = value.is_a?(BaseModel) ? value.to_hash : value end end end end hash end |
#to_json(options = {}) ⇒ Object
Returns a JSON representation of the curent object.
104 105 106 107 |
# File 'lib/cyber_source_merged_spec/models/base_model.rb', line 104 def to_json( = {}) hash = to_hash hash.to_json() end |