diff --git a/CyberSource/__init__.py b/CyberSource/__init__.py index 68b963d9..88d842b7 100644 --- a/CyberSource/__init__.py +++ b/CyberSource/__init__.py @@ -26,225 +26,295 @@ from .models.der_public_key import DerPublicKey from .models.error import Error from .models.error_response import ErrorResponse +from .models.flex_v1_keys_post200_response import FlexV1KeysPost200Response +from .models.flex_v1_keys_post200_response_der import FlexV1KeysPost200ResponseDer +from .models.flex_v1_keys_post200_response_jwk import FlexV1KeysPost200ResponseJwk +from .models.flex_v1_tokens_post200_response import FlexV1TokensPost200Response +from .models.flexv1tokens_card_info import Flexv1tokensCardInfo from .models.generate_public_key_request import GeneratePublicKeyRequest -from .models.inline_response_200 import InlineResponse200 -from .models.inline_response_200_1 import InlineResponse2001 -from .models.inline_response_200_2 import InlineResponse2002 -from .models.inline_response_200_2_buyer_information import InlineResponse2002BuyerInformation -from .models.inline_response_200_2_device_information import InlineResponse2002DeviceInformation -from .models.inline_response_200_2_merchant_information import InlineResponse2002MerchantInformation -from .models.inline_response_200_2_order_information import InlineResponse2002OrderInformation -from .models.inline_response_200_2_order_information_amount_details import InlineResponse2002OrderInformationAmountDetails -from .models.inline_response_200_2_order_information_bill_to import InlineResponse2002OrderInformationBillTo -from .models.inline_response_200_2_order_information_invoice_details import InlineResponse2002OrderInformationInvoiceDetails -from .models.inline_response_200_2_order_information_line_items import InlineResponse2002OrderInformationLineItems -from .models.inline_response_200_2_order_information_ship_to import InlineResponse2002OrderInformationShipTo -from .models.inline_response_200_2_payment_information import InlineResponse2002PaymentInformation -from .models.inline_response_200_2_payment_information_card import InlineResponse2002PaymentInformationCard -from .models.inline_response_200_2_payment_information_tokenized_card import InlineResponse2002PaymentInformationTokenizedCard -from .models.inline_response_200_2_processing_information import InlineResponse2002ProcessingInformation -from .models.inline_response_200_2_processor_information import InlineResponse2002ProcessorInformation -from .models.inline_response_200_2_processor_information_avs import InlineResponse2002ProcessorInformationAvs -from .models.inline_response_200_2_processor_information_card_verification import InlineResponse2002ProcessorInformationCardVerification -from .models.inline_response_200_3 import InlineResponse2003 -from .models.inline_response_200_4 import InlineResponse2004 -from .models.inline_response_200_4_device_information import InlineResponse2004DeviceInformation -from .models.inline_response_200_4_order_information import InlineResponse2004OrderInformation -from .models.inline_response_200_4_order_information_amount_details import InlineResponse2004OrderInformationAmountDetails -from .models.inline_response_200_4_order_information_invoice_details import InlineResponse2004OrderInformationInvoiceDetails -from .models.inline_response_200_4_order_information_ship_to import InlineResponse2004OrderInformationShipTo -from .models.inline_response_200_4_processing_information import InlineResponse2004ProcessingInformation -from .models.inline_response_200_4_processing_information_authorization_options import InlineResponse2004ProcessingInformationAuthorizationOptions -from .models.inline_response_200_5 import InlineResponse2005 -from .models.inline_response_200_6 import InlineResponse2006 -from .models.inline_response_200_7 import InlineResponse2007 -from .models.inline_response_200_8 import InlineResponse2008 -from .models.inline_response_200_8__links import InlineResponse2008Links -from .models.inline_response_200_8__links_first import InlineResponse2008LinksFirst -from .models.inline_response_200_8__links_last import InlineResponse2008LinksLast -from .models.inline_response_200_8__links_next import InlineResponse2008LinksNext -from .models.inline_response_200_8__links_prev import InlineResponse2008LinksPrev -from .models.inline_response_200_8__links_self import InlineResponse2008LinksSelf -from .models.inline_response_200_der import InlineResponse200Der -from .models.inline_response_200_jwk import InlineResponse200Jwk -from .models.inline_response_201 import InlineResponse201 -from .models.inline_response_201_1 import InlineResponse2011 -from .models.inline_response_201_1_authorization_information import InlineResponse2011AuthorizationInformation -from .models.inline_response_201_1_processor_information import InlineResponse2011ProcessorInformation -from .models.inline_response_201_1_reversal_amount_details import InlineResponse2011ReversalAmountDetails -from .models.inline_response_201_2 import InlineResponse2012 -from .models.inline_response_201_2__links import InlineResponse2012Links -from .models.inline_response_201_2_order_information import InlineResponse2012OrderInformation -from .models.inline_response_201_2_order_information_amount_details import InlineResponse2012OrderInformationAmountDetails -from .models.inline_response_201_2_processor_information import InlineResponse2012ProcessorInformation -from .models.inline_response_201_3 import InlineResponse2013 -from .models.inline_response_201_3__links import InlineResponse2013Links -from .models.inline_response_201_3_order_information import InlineResponse2013OrderInformation -from .models.inline_response_201_3_processor_information import InlineResponse2013ProcessorInformation -from .models.inline_response_201_3_refund_amount_details import InlineResponse2013RefundAmountDetails -from .models.inline_response_201_4 import InlineResponse2014 -from .models.inline_response_201_4_credit_amount_details import InlineResponse2014CreditAmountDetails -from .models.inline_response_201_5 import InlineResponse2015 -from .models.inline_response_201_5_void_amount_details import InlineResponse2015VoidAmountDetails -from .models.inline_response_201_6 import InlineResponse2016 -from .models.inline_response_201_client_reference_information import InlineResponse201ClientReferenceInformation -from .models.inline_response_201__embedded import InlineResponse201Embedded -from .models.inline_response_201__embedded_capture import InlineResponse201EmbeddedCapture -from .models.inline_response_201__embedded_capture__links import InlineResponse201EmbeddedCaptureLinks -from .models.inline_response_201_error_information import InlineResponse201ErrorInformation -from .models.inline_response_201_error_information_details import InlineResponse201ErrorInformationDetails -from .models.inline_response_201__links import InlineResponse201Links -from .models.inline_response_201__links_self import InlineResponse201LinksSelf -from .models.inline_response_201_order_information import InlineResponse201OrderInformation -from .models.inline_response_201_order_information_amount_details import InlineResponse201OrderInformationAmountDetails -from .models.inline_response_201_order_information_invoice_details import InlineResponse201OrderInformationInvoiceDetails -from .models.inline_response_201_payment_information import InlineResponse201PaymentInformation -from .models.inline_response_201_payment_information_account_features import InlineResponse201PaymentInformationAccountFeatures -from .models.inline_response_201_payment_information_card import InlineResponse201PaymentInformationCard -from .models.inline_response_201_payment_information_tokenized_card import InlineResponse201PaymentInformationTokenizedCard -from .models.inline_response_201_point_of_sale_information import InlineResponse201PointOfSaleInformation -from .models.inline_response_201_point_of_sale_information_emv import InlineResponse201PointOfSaleInformationEmv -from .models.inline_response_201_processor_information import InlineResponse201ProcessorInformation -from .models.inline_response_201_processor_information_avs import InlineResponse201ProcessorInformationAvs -from .models.inline_response_201_processor_information_card_verification import InlineResponse201ProcessorInformationCardVerification -from .models.inline_response_201_processor_information_consumer_authentication_response import InlineResponse201ProcessorInformationConsumerAuthenticationResponse -from .models.inline_response_201_processor_information_customer import InlineResponse201ProcessorInformationCustomer -from .models.inline_response_201_processor_information_electronic_verification_results import InlineResponse201ProcessorInformationElectronicVerificationResults -from .models.inline_response_201_processor_information_issuer import InlineResponse201ProcessorInformationIssuer -from .models.inline_response_201_processor_information_merchant_advice import InlineResponse201ProcessorInformationMerchantAdvice from .models.inline_response_400 import InlineResponse400 -from .models.inline_response_400_1 import InlineResponse4001 -from .models.inline_response_400_2 import InlineResponse4002 -from .models.inline_response_400_3 import InlineResponse4003 -from .models.inline_response_400_4 import InlineResponse4004 -from .models.inline_response_400_5 import InlineResponse4005 -from .models.inline_response_400_6 import InlineResponse4006 -from .models.inline_response_409 import InlineResponse409 -from .models.inline_response_409__links import InlineResponse409Links -from .models.inline_response_409__links_payment_instruments import InlineResponse409LinksPaymentInstruments -from .models.inline_response_502 import InlineResponse502 from .models.inline_response_default import InlineResponseDefault from .models.inline_response_default__links import InlineResponseDefaultLinks from .models.inline_response_default__links_next import InlineResponseDefaultLinksNext from .models.inline_response_default_response_status import InlineResponseDefaultResponseStatus from .models.inline_response_default_response_status_details import InlineResponseDefaultResponseStatusDetails -from .models.instrumentidentifiers_bank_account import InstrumentidentifiersBankAccount -from .models.instrumentidentifiers_card import InstrumentidentifiersCard -from .models.instrumentidentifiers_details import InstrumentidentifiersDetails -from .models.instrumentidentifiers__links import InstrumentidentifiersLinks -from .models.instrumentidentifiers__links_self import InstrumentidentifiersLinksSelf -from .models.instrumentidentifiers_metadata import InstrumentidentifiersMetadata -from .models.instrumentidentifiers_processing_information import InstrumentidentifiersProcessingInformation -from .models.instrumentidentifiers_processing_information_authorization_options import InstrumentidentifiersProcessingInformationAuthorizationOptions -from .models.instrumentidentifiers_processing_information_authorization_options_initiator import InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator -from .models.instrumentidentifiers_merchant_initiated_transaction import InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction from .models.json_web_key import JsonWebKey from .models.key_parameters import KeyParameters from .models.key_result import KeyResult from .models.link import Link from .models.links import Links -from .models.oct_create_payment_request import OctCreatePaymentRequest -from .models.paymentinstruments_bank_account import PaymentinstrumentsBankAccount -from .models.paymentinstruments_bill_to import PaymentinstrumentsBillTo -from .models.paymentinstruments_buyer_information import PaymentinstrumentsBuyerInformation -from .models.paymentinstruments_buyer_information_issued_by import PaymentinstrumentsBuyerInformationIssuedBy -from .models.paymentinstruments_buyer_information_personal_identification import PaymentinstrumentsBuyerInformationPersonalIdentification -from .models.paymentinstruments_card import PaymentinstrumentsCard -from .models.paymentinstruments_instrument_identifier import PaymentinstrumentsInstrumentIdentifier -from .models.paymentinstruments_merchant_information import PaymentinstrumentsMerchantInformation -from .models.paymentinstruments_merchant_information_merchant_descriptor import PaymentinstrumentsMerchantInformationMerchantDescriptor -from .models.paymentinstruments_processing_information import PaymentinstrumentsProcessingInformation -from .models.paymentinstruments_processing_information_bank_transfer_options import PaymentinstrumentsProcessingInformationBankTransferOptions -from .models.paymentsflexv1tokens_card_info import Paymentsflexv1tokensCardInfo +from .models.pts_v1_transaction_batches_get200_response import PtsV1TransactionBatchesGet200Response +from .models.pts_v1_transaction_batches_get200_response__links import PtsV1TransactionBatchesGet200ResponseLinks +from .models.pts_v1_transaction_batches_get200_response__links_self import PtsV1TransactionBatchesGet200ResponseLinksSelf +from .models.pts_v1_transaction_batches_get200_response_transaction_batches import PtsV1TransactionBatchesGet200ResponseTransactionBatches +from .models.pts_v1_transaction_batches_get400_response import PtsV1TransactionBatchesGet400Response +from .models.pts_v1_transaction_batches_get400_response_error_information import PtsV1TransactionBatchesGet400ResponseErrorInformation +from .models.pts_v1_transaction_batches_get400_response_error_information_details import PtsV1TransactionBatchesGet400ResponseErrorInformationDetails +from .models.pts_v1_transaction_batches_get500_response import PtsV1TransactionBatchesGet500Response +from .models.pts_v1_transaction_batches_get500_response_error_information import PtsV1TransactionBatchesGet500ResponseErrorInformation +from .models.pts_v2_credits_post201_response import PtsV2CreditsPost201Response +from .models.pts_v2_credits_post201_response_credit_amount_details import PtsV2CreditsPost201ResponseCreditAmountDetails +from .models.pts_v2_payments_captures_post201_response import PtsV2PaymentsCapturesPost201Response +from .models.pts_v2_payments_captures_post201_response__links import PtsV2PaymentsCapturesPost201ResponseLinks +from .models.pts_v2_payments_captures_post201_response_order_information import PtsV2PaymentsCapturesPost201ResponseOrderInformation +from .models.pts_v2_payments_captures_post201_response_order_information_amount_details import PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails +from .models.pts_v2_payments_captures_post201_response_processor_information import PtsV2PaymentsCapturesPost201ResponseProcessorInformation +from .models.pts_v2_payments_captures_post400_response import PtsV2PaymentsCapturesPost400Response +from .models.pts_v2_payments_post201_response import PtsV2PaymentsPost201Response +from .models.pts_v2_payments_post201_response_client_reference_information import PtsV2PaymentsPost201ResponseClientReferenceInformation +from .models.pts_v2_payments_post201_response_error_information import PtsV2PaymentsPost201ResponseErrorInformation +from .models.pts_v2_payments_post201_response_error_information_details import PtsV2PaymentsPost201ResponseErrorInformationDetails +from .models.pts_v2_payments_post201_response__links import PtsV2PaymentsPost201ResponseLinks +from .models.pts_v2_payments_post201_response__links_self import PtsV2PaymentsPost201ResponseLinksSelf +from .models.pts_v2_payments_post201_response_order_information import PtsV2PaymentsPost201ResponseOrderInformation +from .models.pts_v2_payments_post201_response_order_information_amount_details import PtsV2PaymentsPost201ResponseOrderInformationAmountDetails +from .models.pts_v2_payments_post201_response_order_information_invoice_details import PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails +from .models.pts_v2_payments_post201_response_payment_information import PtsV2PaymentsPost201ResponsePaymentInformation +from .models.pts_v2_payments_post201_response_payment_information_account_features import PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures +from .models.pts_v2_payments_post201_response_payment_information_card import PtsV2PaymentsPost201ResponsePaymentInformationCard +from .models.pts_v2_payments_post201_response_payment_information_tokenized_card import PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard +from .models.pts_v2_payments_post201_response_point_of_sale_information import PtsV2PaymentsPost201ResponsePointOfSaleInformation +from .models.pts_v2_payments_post201_response_point_of_sale_information_emv import PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv +from .models.pts_v2_payments_post201_response_processor_information import PtsV2PaymentsPost201ResponseProcessorInformation +from .models.pts_v2_payments_post201_response_processor_information_avs import PtsV2PaymentsPost201ResponseProcessorInformationAvs +from .models.pts_v2_payments_post201_response_processor_information_card_verification import PtsV2PaymentsPost201ResponseProcessorInformationCardVerification +from .models.pts_v2_payments_post201_response_processor_information_consumer_authentication_response import PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse +from .models.pts_v2_payments_post201_response_processor_information_customer import PtsV2PaymentsPost201ResponseProcessorInformationCustomer +from .models.pts_v2_payments_post201_response_processor_information_electronic_verification_results import PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults +from .models.pts_v2_payments_post201_response_processor_information_issuer import PtsV2PaymentsPost201ResponseProcessorInformationIssuer +from .models.pts_v2_payments_post201_response_processor_information_merchant_advice import PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice +from .models.pts_v2_payments_post400_response import PtsV2PaymentsPost400Response +from .models.pts_v2_payments_post502_response import PtsV2PaymentsPost502Response +from .models.pts_v2_payments_refund_post201_response import PtsV2PaymentsRefundPost201Response +from .models.pts_v2_payments_refund_post201_response__links import PtsV2PaymentsRefundPost201ResponseLinks +from .models.pts_v2_payments_refund_post201_response_order_information import PtsV2PaymentsRefundPost201ResponseOrderInformation +from .models.pts_v2_payments_refund_post201_response_processor_information import PtsV2PaymentsRefundPost201ResponseProcessorInformation +from .models.pts_v2_payments_refund_post201_response_refund_amount_details import PtsV2PaymentsRefundPost201ResponseRefundAmountDetails +from .models.pts_v2_payments_refund_post400_response import PtsV2PaymentsRefundPost400Response +from .models.pts_v2_payments_reversals_post201_response import PtsV2PaymentsReversalsPost201Response +from .models.pts_v2_payments_reversals_post201_response_authorization_information import PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation +from .models.pts_v2_payments_reversals_post201_response__links import PtsV2PaymentsReversalsPost201ResponseLinks +from .models.pts_v2_payments_reversals_post201_response_processor_information import PtsV2PaymentsReversalsPost201ResponseProcessorInformation +from .models.pts_v2_payments_reversals_post201_response_reversal_amount_details import PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails +from .models.pts_v2_payments_reversals_post400_response import PtsV2PaymentsReversalsPost400Response +from .models.pts_v2_payments_voids_post201_response import PtsV2PaymentsVoidsPost201Response +from .models.pts_v2_payments_voids_post201_response_void_amount_details import PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails +from .models.pts_v2_payments_voids_post400_response import PtsV2PaymentsVoidsPost400Response +from .models.pts_v2_payouts_post400_response import PtsV2PayoutsPost400Response +from .models.pts_v2_payouts_post_response import PtsV2PayoutsPostResponse +from .models.ptsv2credits_point_of_sale_information import Ptsv2creditsPointOfSaleInformation +from .models.ptsv2credits_point_of_sale_information_emv import Ptsv2creditsPointOfSaleInformationEmv +from .models.ptsv2credits_processing_information import Ptsv2creditsProcessingInformation +from .models.ptsv2payments_aggregator_information import Ptsv2paymentsAggregatorInformation +from .models.ptsv2payments_aggregator_information_sub_merchant import Ptsv2paymentsAggregatorInformationSubMerchant +from .models.ptsv2payments_buyer_information import Ptsv2paymentsBuyerInformation +from .models.ptsv2payments_buyer_information_personal_identification import Ptsv2paymentsBuyerInformationPersonalIdentification +from .models.ptsv2payments_client_reference_information import Ptsv2paymentsClientReferenceInformation +from .models.ptsv2payments_consumer_authentication_information import Ptsv2paymentsConsumerAuthenticationInformation +from .models.ptsv2payments_device_information import Ptsv2paymentsDeviceInformation +from .models.ptsv2payments_merchant_defined_information import Ptsv2paymentsMerchantDefinedInformation +from .models.ptsv2payments_merchant_information import Ptsv2paymentsMerchantInformation +from .models.ptsv2payments_merchant_information_merchant_descriptor import Ptsv2paymentsMerchantInformationMerchantDescriptor +from .models.ptsv2payments_order_information import Ptsv2paymentsOrderInformation +from .models.ptsv2payments_order_information_amount_details import Ptsv2paymentsOrderInformationAmountDetails +from .models.ptsv2payments_order_information_amount_details_amex_additional_amounts import Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts +from .models.ptsv2payments_order_information_amount_details_surcharge import Ptsv2paymentsOrderInformationAmountDetailsSurcharge +from .models.ptsv2payments_order_information_amount_details_tax_details import Ptsv2paymentsOrderInformationAmountDetailsTaxDetails +from .models.ptsv2payments_order_information_bill_to import Ptsv2paymentsOrderInformationBillTo +from .models.ptsv2payments_order_information_invoice_details import Ptsv2paymentsOrderInformationInvoiceDetails +from .models.ptsv2payments_order_information_invoice_details_transaction_advice_addendum import Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum +from .models.ptsv2payments_order_information_line_items import Ptsv2paymentsOrderInformationLineItems +from .models.ptsv2payments_order_information_ship_to import Ptsv2paymentsOrderInformationShipTo +from .models.ptsv2payments_order_information_shipping_details import Ptsv2paymentsOrderInformationShippingDetails +from .models.ptsv2payments_payment_information import Ptsv2paymentsPaymentInformation +from .models.ptsv2payments_payment_information_card import Ptsv2paymentsPaymentInformationCard +from .models.ptsv2payments_payment_information_customer import Ptsv2paymentsPaymentInformationCustomer +from .models.ptsv2payments_payment_information_fluid_data import Ptsv2paymentsPaymentInformationFluidData +from .models.ptsv2payments_payment_information_tokenized_card import Ptsv2paymentsPaymentInformationTokenizedCard +from .models.ptsv2payments_point_of_sale_information import Ptsv2paymentsPointOfSaleInformation +from .models.ptsv2payments_point_of_sale_information_emv import Ptsv2paymentsPointOfSaleInformationEmv +from .models.ptsv2payments_processing_information import Ptsv2paymentsProcessingInformation +from .models.ptsv2payments_processing_information_authorization_options import Ptsv2paymentsProcessingInformationAuthorizationOptions +from .models.ptsv2payments_processing_information_authorization_options_initiator import Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator +from .models.ptsv2payments_merchant_initiated_transaction import Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction +from .models.ptsv2payments_processing_information_capture_options import Ptsv2paymentsProcessingInformationCaptureOptions +from .models.ptsv2payments_processing_information_issuer import Ptsv2paymentsProcessingInformationIssuer +from .models.ptsv2payments_processing_information_recurring_options import Ptsv2paymentsProcessingInformationRecurringOptions +from .models.ptsv2payments_recipient_information import Ptsv2paymentsRecipientInformation +from .models.ptsv2paymentsidcaptures_aggregator_information import Ptsv2paymentsidcapturesAggregatorInformation +from .models.ptsv2paymentsidcaptures_aggregator_information_sub_merchant import Ptsv2paymentsidcapturesAggregatorInformationSubMerchant +from .models.ptsv2paymentsidcaptures_buyer_information import Ptsv2paymentsidcapturesBuyerInformation +from .models.ptsv2paymentsidcaptures_merchant_information import Ptsv2paymentsidcapturesMerchantInformation +from .models.ptsv2paymentsidcaptures_order_information import Ptsv2paymentsidcapturesOrderInformation +from .models.ptsv2paymentsidcaptures_order_information_amount_details import Ptsv2paymentsidcapturesOrderInformationAmountDetails +from .models.ptsv2paymentsidcaptures_order_information_bill_to import Ptsv2paymentsidcapturesOrderInformationBillTo +from .models.ptsv2paymentsidcaptures_order_information_invoice_details import Ptsv2paymentsidcapturesOrderInformationInvoiceDetails +from .models.ptsv2paymentsidcaptures_order_information_ship_to import Ptsv2paymentsidcapturesOrderInformationShipTo +from .models.ptsv2paymentsidcaptures_order_information_shipping_details import Ptsv2paymentsidcapturesOrderInformationShippingDetails +from .models.ptsv2paymentsidcaptures_payment_information import Ptsv2paymentsidcapturesPaymentInformation +from .models.ptsv2paymentsidcaptures_point_of_sale_information import Ptsv2paymentsidcapturesPointOfSaleInformation +from .models.ptsv2paymentsidcaptures_point_of_sale_information_emv import Ptsv2paymentsidcapturesPointOfSaleInformationEmv +from .models.ptsv2paymentsidcaptures_processing_information import Ptsv2paymentsidcapturesProcessingInformation +from .models.ptsv2paymentsidcaptures_processing_information_authorization_options import Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions +from .models.ptsv2paymentsidcaptures_processing_information_capture_options import Ptsv2paymentsidcapturesProcessingInformationCaptureOptions +from .models.ptsv2paymentsidrefunds_merchant_information import Ptsv2paymentsidrefundsMerchantInformation +from .models.ptsv2paymentsidrefunds_order_information import Ptsv2paymentsidrefundsOrderInformation +from .models.ptsv2paymentsidrefunds_order_information_line_items import Ptsv2paymentsidrefundsOrderInformationLineItems +from .models.ptsv2paymentsidrefunds_payment_information import Ptsv2paymentsidrefundsPaymentInformation +from .models.ptsv2paymentsidrefunds_payment_information_card import Ptsv2paymentsidrefundsPaymentInformationCard +from .models.ptsv2paymentsidrefunds_point_of_sale_information import Ptsv2paymentsidrefundsPointOfSaleInformation +from .models.ptsv2paymentsidrefunds_processing_information import Ptsv2paymentsidrefundsProcessingInformation +from .models.ptsv2paymentsidrefunds_processing_information_recurring_options import Ptsv2paymentsidrefundsProcessingInformationRecurringOptions +from .models.ptsv2paymentsidreversals_client_reference_information import Ptsv2paymentsidreversalsClientReferenceInformation +from .models.ptsv2paymentsidreversals_order_information import Ptsv2paymentsidreversalsOrderInformation +from .models.ptsv2paymentsidreversals_order_information_line_items import Ptsv2paymentsidreversalsOrderInformationLineItems +from .models.ptsv2paymentsidreversals_point_of_sale_information import Ptsv2paymentsidreversalsPointOfSaleInformation +from .models.ptsv2paymentsidreversals_processing_information import Ptsv2paymentsidreversalsProcessingInformation +from .models.ptsv2paymentsidreversals_reversal_information import Ptsv2paymentsidreversalsReversalInformation +from .models.ptsv2paymentsidreversals_reversal_information_amount_details import Ptsv2paymentsidreversalsReversalInformationAmountDetails +from .models.ptsv2payouts_merchant_information import Ptsv2payoutsMerchantInformation +from .models.ptsv2payouts_merchant_information_merchant_descriptor import Ptsv2payoutsMerchantInformationMerchantDescriptor +from .models.ptsv2payouts_order_information import Ptsv2payoutsOrderInformation +from .models.ptsv2payouts_order_information_amount_details import Ptsv2payoutsOrderInformationAmountDetails +from .models.ptsv2payouts_order_information_amount_details_surcharge import Ptsv2payoutsOrderInformationAmountDetailsSurcharge +from .models.ptsv2payouts_order_information_bill_to import Ptsv2payoutsOrderInformationBillTo +from .models.ptsv2payouts_payment_information import Ptsv2payoutsPaymentInformation +from .models.ptsv2payouts_payment_information_card import Ptsv2payoutsPaymentInformationCard +from .models.ptsv2payouts_processing_information import Ptsv2payoutsProcessingInformation +from .models.ptsv2payouts_processing_information_payouts_options import Ptsv2payoutsProcessingInformationPayoutsOptions +from .models.ptsv2payouts_recipient_information import Ptsv2payoutsRecipientInformation +from .models.ptsv2payouts_sender_information import Ptsv2payoutsSenderInformation +from .models.ptsv2payouts_sender_information_account import Ptsv2payoutsSenderInformationAccount from .models.refund_capture_request import RefundCaptureRequest from .models.refund_payment_request import RefundPaymentRequest +from .models.reporting_v3_notificationof_changes_get200_response import ReportingV3NotificationofChangesGet200Response +from .models.reporting_v3_notificationof_changes_get200_response_notification_of_changes import ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges +from .models.reporting_v3_notificationof_changes_get400_response import ReportingV3NotificationofChangesGet400Response +from .models.reporting_v3_notificationof_changes_get400_response_fields import ReportingV3NotificationofChangesGet400ResponseFields +from .models.reporting_v3_report_definitions_get200_response import ReportingV3ReportDefinitionsGet200Response +from .models.reporting_v3_report_definitions_get200_response_report_definitions import ReportingV3ReportDefinitionsGet200ResponseReportDefinitions +from .models.reporting_v3_report_definitions_name_get200_response import ReportingV3ReportDefinitionsNameGet200Response +from .models.reporting_v3_report_definitions_name_get200_response_attributes import ReportingV3ReportDefinitionsNameGet200ResponseAttributes +from .models.reporting_v3_report_subscriptions_get200_response import ReportingV3ReportSubscriptionsGet200Response +from .models.reporting_v3_report_subscriptions_get200_response_report_preferences import ReportingV3ReportSubscriptionsGet200ResponseReportPreferences +from .models.reporting_v3_report_subscriptions_get200_response_subscriptions import ReportingV3ReportSubscriptionsGet200ResponseSubscriptions +from .models.reporting_v3_reports_get200_response import ReportingV3ReportsGet200Response +from .models.reporting_v3_reports_get200_response_reports import ReportingV3ReportsGet200ResponseReports +from .models.reporting_v3_reports_id_get200_response import ReportingV3ReportsIdGet200Response +from .models.request_body import RequestBody +from .models.request_body_1 import RequestBody1 from .models.response_status import ResponseStatus from .models.response_status_details import ResponseStatusDetails +from .models.tms_v1_instrumentidentifiers_delete409_response import TmsV1InstrumentidentifiersDelete409Response +from .models.tms_v1_instrumentidentifiers_delete409_response__links import TmsV1InstrumentidentifiersDelete409ResponseLinks +from .models.tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments import TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments +from .models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response import TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response +from .models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks +from .models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst +from .models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast +from .models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext +from .models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev +from .models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf +from .models.tms_v1_instrumentidentifiers_post200_response import TmsV1InstrumentidentifiersPost200Response +from .models.tms_v1_paymentinstruments_post201_response import TmsV1PaymentinstrumentsPost201Response +from .models.tmsv1instrumentidentifiers_bank_account import Tmsv1instrumentidentifiersBankAccount +from .models.tmsv1instrumentidentifiers_card import Tmsv1instrumentidentifiersCard +from .models.tmsv1instrumentidentifiers_details import Tmsv1instrumentidentifiersDetails +from .models.tmsv1instrumentidentifiers__links import Tmsv1instrumentidentifiersLinks +from .models.tmsv1instrumentidentifiers__links_self import Tmsv1instrumentidentifiersLinksSelf +from .models.tmsv1instrumentidentifiers_metadata import Tmsv1instrumentidentifiersMetadata +from .models.tmsv1instrumentidentifiers_processing_information import Tmsv1instrumentidentifiersProcessingInformation +from .models.tmsv1instrumentidentifiers_processing_information_authorization_options import Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions +from .models.tmsv1instrumentidentifiers_processing_information_authorization_options_initiator import Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator +from .models.tmsv1instrumentidentifiers_merchant_initiated_transaction import Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction +from .models.tmsv1paymentinstruments_bank_account import Tmsv1paymentinstrumentsBankAccount +from .models.tmsv1paymentinstruments_bill_to import Tmsv1paymentinstrumentsBillTo +from .models.tmsv1paymentinstruments_buyer_information import Tmsv1paymentinstrumentsBuyerInformation +from .models.tmsv1paymentinstruments_buyer_information_issued_by import Tmsv1paymentinstrumentsBuyerInformationIssuedBy +from .models.tmsv1paymentinstruments_buyer_information_personal_identification import Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification +from .models.tmsv1paymentinstruments_card import Tmsv1paymentinstrumentsCard +from .models.tmsv1paymentinstruments_instrument_identifier import Tmsv1paymentinstrumentsInstrumentIdentifier +from .models.tmsv1paymentinstruments_merchant_information import Tmsv1paymentinstrumentsMerchantInformation +from .models.tmsv1paymentinstruments_merchant_information_merchant_descriptor import Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor +from .models.tmsv1paymentinstruments_processing_information import Tmsv1paymentinstrumentsProcessingInformation +from .models.tmsv1paymentinstruments_processing_information_bank_transfer_options import Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions from .models.tokenize_parameters import TokenizeParameters from .models.tokenize_request import TokenizeRequest from .models.tokenize_result import TokenizeResult -from .models.v2credits_point_of_sale_information import V2creditsPointOfSaleInformation -from .models.v2credits_point_of_sale_information_emv import V2creditsPointOfSaleInformationEmv -from .models.v2credits_processing_information import V2creditsProcessingInformation -from .models.v2payments_aggregator_information import V2paymentsAggregatorInformation -from .models.v2payments_aggregator_information_sub_merchant import V2paymentsAggregatorInformationSubMerchant -from .models.v2payments_buyer_information import V2paymentsBuyerInformation -from .models.v2payments_buyer_information_personal_identification import V2paymentsBuyerInformationPersonalIdentification -from .models.v2payments_client_reference_information import V2paymentsClientReferenceInformation -from .models.v2payments_consumer_authentication_information import V2paymentsConsumerAuthenticationInformation -from .models.v2payments_device_information import V2paymentsDeviceInformation -from .models.v2payments_merchant_defined_information import V2paymentsMerchantDefinedInformation -from .models.v2payments_merchant_information import V2paymentsMerchantInformation -from .models.v2payments_merchant_information_merchant_descriptor import V2paymentsMerchantInformationMerchantDescriptor -from .models.v2payments_order_information import V2paymentsOrderInformation -from .models.v2payments_order_information_amount_details import V2paymentsOrderInformationAmountDetails -from .models.v2payments_order_information_amount_details_amex_additional_amounts import V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts -from .models.v2payments_order_information_amount_details_surcharge import V2paymentsOrderInformationAmountDetailsSurcharge -from .models.v2payments_order_information_amount_details_tax_details import V2paymentsOrderInformationAmountDetailsTaxDetails -from .models.v2payments_order_information_bill_to import V2paymentsOrderInformationBillTo -from .models.v2payments_order_information_invoice_details import V2paymentsOrderInformationInvoiceDetails -from .models.v2payments_order_information_invoice_details_transaction_advice_addendum import V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum -from .models.v2payments_order_information_line_items import V2paymentsOrderInformationLineItems -from .models.v2payments_order_information_ship_to import V2paymentsOrderInformationShipTo -from .models.v2payments_order_information_shipping_details import V2paymentsOrderInformationShippingDetails -from .models.v2payments_payment_information import V2paymentsPaymentInformation -from .models.v2payments_payment_information_card import V2paymentsPaymentInformationCard -from .models.v2payments_payment_information_customer import V2paymentsPaymentInformationCustomer -from .models.v2payments_payment_information_fluid_data import V2paymentsPaymentInformationFluidData -from .models.v2payments_payment_information_tokenized_card import V2paymentsPaymentInformationTokenizedCard -from .models.v2payments_point_of_sale_information import V2paymentsPointOfSaleInformation -from .models.v2payments_point_of_sale_information_emv import V2paymentsPointOfSaleInformationEmv -from .models.v2payments_processing_information import V2paymentsProcessingInformation -from .models.v2payments_processing_information_authorization_options import V2paymentsProcessingInformationAuthorizationOptions -from .models.v2payments_processing_information_authorization_options_initiator import V2paymentsProcessingInformationAuthorizationOptionsInitiator -from .models.v2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction import V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction -from .models.v2payments_processing_information_capture_options import V2paymentsProcessingInformationCaptureOptions -from .models.v2payments_processing_information_issuer import V2paymentsProcessingInformationIssuer -from .models.v2payments_processing_information_recurring_options import V2paymentsProcessingInformationRecurringOptions -from .models.v2payments_recipient_information import V2paymentsRecipientInformation -from .models.v2paymentsidcaptures_aggregator_information import V2paymentsidcapturesAggregatorInformation -from .models.v2paymentsidcaptures_aggregator_information_sub_merchant import V2paymentsidcapturesAggregatorInformationSubMerchant -from .models.v2paymentsidcaptures_buyer_information import V2paymentsidcapturesBuyerInformation -from .models.v2paymentsidcaptures_merchant_information import V2paymentsidcapturesMerchantInformation -from .models.v2paymentsidcaptures_order_information import V2paymentsidcapturesOrderInformation -from .models.v2paymentsidcaptures_order_information_amount_details import V2paymentsidcapturesOrderInformationAmountDetails -from .models.v2paymentsidcaptures_order_information_bill_to import V2paymentsidcapturesOrderInformationBillTo -from .models.v2paymentsidcaptures_order_information_invoice_details import V2paymentsidcapturesOrderInformationInvoiceDetails -from .models.v2paymentsidcaptures_order_information_ship_to import V2paymentsidcapturesOrderInformationShipTo -from .models.v2paymentsidcaptures_order_information_shipping_details import V2paymentsidcapturesOrderInformationShippingDetails -from .models.v2paymentsidcaptures_payment_information import V2paymentsidcapturesPaymentInformation -from .models.v2paymentsidcaptures_point_of_sale_information import V2paymentsidcapturesPointOfSaleInformation -from .models.v2paymentsidcaptures_point_of_sale_information_emv import V2paymentsidcapturesPointOfSaleInformationEmv -from .models.v2paymentsidcaptures_processing_information import V2paymentsidcapturesProcessingInformation -from .models.v2paymentsidcaptures_processing_information_authorization_options import V2paymentsidcapturesProcessingInformationAuthorizationOptions -from .models.v2paymentsidcaptures_processing_information_capture_options import V2paymentsidcapturesProcessingInformationCaptureOptions -from .models.v2paymentsidrefunds_merchant_information import V2paymentsidrefundsMerchantInformation -from .models.v2paymentsidrefunds_order_information import V2paymentsidrefundsOrderInformation -from .models.v2paymentsidrefunds_order_information_line_items import V2paymentsidrefundsOrderInformationLineItems -from .models.v2paymentsidrefunds_payment_information import V2paymentsidrefundsPaymentInformation -from .models.v2paymentsidrefunds_payment_information_card import V2paymentsidrefundsPaymentInformationCard -from .models.v2paymentsidrefunds_point_of_sale_information import V2paymentsidrefundsPointOfSaleInformation -from .models.v2paymentsidrefunds_processing_information import V2paymentsidrefundsProcessingInformation -from .models.v2paymentsidrefunds_processing_information_recurring_options import V2paymentsidrefundsProcessingInformationRecurringOptions -from .models.v2paymentsidreversals_client_reference_information import V2paymentsidreversalsClientReferenceInformation -from .models.v2paymentsidreversals_order_information import V2paymentsidreversalsOrderInformation -from .models.v2paymentsidreversals_order_information_line_items import V2paymentsidreversalsOrderInformationLineItems -from .models.v2paymentsidreversals_point_of_sale_information import V2paymentsidreversalsPointOfSaleInformation -from .models.v2paymentsidreversals_processing_information import V2paymentsidreversalsProcessingInformation -from .models.v2paymentsidreversals_reversal_information import V2paymentsidreversalsReversalInformation -from .models.v2paymentsidreversals_reversal_information_amount_details import V2paymentsidreversalsReversalInformationAmountDetails -from .models.v2payouts_merchant_information import V2payoutsMerchantInformation -from .models.v2payouts_merchant_information_merchant_descriptor import V2payoutsMerchantInformationMerchantDescriptor -from .models.v2payouts_order_information import V2payoutsOrderInformation -from .models.v2payouts_order_information_amount_details import V2payoutsOrderInformationAmountDetails -from .models.v2payouts_order_information_bill_to import V2payoutsOrderInformationBillTo -from .models.v2payouts_payment_information import V2payoutsPaymentInformation -from .models.v2payouts_payment_information_card import V2payoutsPaymentInformationCard -from .models.v2payouts_processing_information import V2payoutsProcessingInformation -from .models.v2payouts_processing_information_payouts_options import V2payoutsProcessingInformationPayoutsOptions -from .models.v2payouts_recipient_information import V2payoutsRecipientInformation -from .models.v2payouts_sender_information import V2payoutsSenderInformation -from .models.v2payouts_sender_information_account import V2payoutsSenderInformationAccount +from .models.tss_v2_transactions_get200_response import TssV2TransactionsGet200Response +from .models.tss_v2_transactions_get200_response_application_information import TssV2TransactionsGet200ResponseApplicationInformation +from .models.tss_v2_transactions_get200_response_application_information_applications import TssV2TransactionsGet200ResponseApplicationInformationApplications +from .models.tss_v2_transactions_get200_response_buyer_information import TssV2TransactionsGet200ResponseBuyerInformation +from .models.tss_v2_transactions_get200_response_client_reference_information import TssV2TransactionsGet200ResponseClientReferenceInformation +from .models.tss_v2_transactions_get200_response_consumer_authentication_information import TssV2TransactionsGet200ResponseConsumerAuthenticationInformation +from .models.tss_v2_transactions_get200_response_device_information import TssV2TransactionsGet200ResponseDeviceInformation +from .models.tss_v2_transactions_get200_response_error_information import TssV2TransactionsGet200ResponseErrorInformation +from .models.tss_v2_transactions_get200_response_fraud_marking_information import TssV2TransactionsGet200ResponseFraudMarkingInformation +from .models.tss_v2_transactions_get200_response_installment_information import TssV2TransactionsGet200ResponseInstallmentInformation +from .models.tss_v2_transactions_get200_response_merchant_defined_information import TssV2TransactionsGet200ResponseMerchantDefinedInformation +from .models.tss_v2_transactions_get200_response_merchant_information import TssV2TransactionsGet200ResponseMerchantInformation +from .models.tss_v2_transactions_get200_response_merchant_information_merchant_descriptor import TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor +from .models.tss_v2_transactions_get200_response_order_information import TssV2TransactionsGet200ResponseOrderInformation +from .models.tss_v2_transactions_get200_response_order_information_amount_details import TssV2TransactionsGet200ResponseOrderInformationAmountDetails +from .models.tss_v2_transactions_get200_response_order_information_bill_to import TssV2TransactionsGet200ResponseOrderInformationBillTo +from .models.tss_v2_transactions_get200_response_order_information_line_items import TssV2TransactionsGet200ResponseOrderInformationLineItems +from .models.tss_v2_transactions_get200_response_order_information_ship_to import TssV2TransactionsGet200ResponseOrderInformationShipTo +from .models.tss_v2_transactions_get200_response_order_information_shipping_details import TssV2TransactionsGet200ResponseOrderInformationShippingDetails +from .models.tss_v2_transactions_get200_response_payment_information import TssV2TransactionsGet200ResponsePaymentInformation +from .models.tss_v2_transactions_get200_response_payment_information_account_features import TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures +from .models.tss_v2_transactions_get200_response_payment_information_bank import TssV2TransactionsGet200ResponsePaymentInformationBank +from .models.tss_v2_transactions_get200_response_payment_information_bank_account import TssV2TransactionsGet200ResponsePaymentInformationBankAccount +from .models.tss_v2_transactions_get200_response_payment_information_bank_mandate import TssV2TransactionsGet200ResponsePaymentInformationBankMandate +from .models.tss_v2_transactions_get200_response_payment_information_card import TssV2TransactionsGet200ResponsePaymentInformationCard +from .models.tss_v2_transactions_get200_response_payment_information_invoice import TssV2TransactionsGet200ResponsePaymentInformationInvoice +from .models.tss_v2_transactions_get200_response_payment_information_payment_type import TssV2TransactionsGet200ResponsePaymentInformationPaymentType +from .models.tss_v2_transactions_get200_response_point_of_sale_information import TssV2TransactionsGet200ResponsePointOfSaleInformation +from .models.tss_v2_transactions_get200_response_processing_information import TssV2TransactionsGet200ResponseProcessingInformation +from .models.tss_v2_transactions_get200_response_processing_information_authorization_options import TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions +from .models.tss_v2_transactions_get200_response_processing_information_bank_transfer_options import TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions +from .models.tss_v2_transactions_get200_response_processor_information import TssV2TransactionsGet200ResponseProcessorInformation +from .models.tss_v2_transactions_get200_response_processor_information_ach_verification import TssV2TransactionsGet200ResponseProcessorInformationAchVerification +from .models.tss_v2_transactions_get200_response_processor_information_card_verification import TssV2TransactionsGet200ResponseProcessorInformationCardVerification +from .models.tss_v2_transactions_get200_response_processor_information_electronic_verification_results import TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults +from .models.tss_v2_transactions_get200_response_processor_information_processor import TssV2TransactionsGet200ResponseProcessorInformationProcessor +from .models.tss_v2_transactions_get200_response_risk_information import TssV2TransactionsGet200ResponseRiskInformation +from .models.tss_v2_transactions_get200_response_risk_information_profile import TssV2TransactionsGet200ResponseRiskInformationProfile +from .models.tss_v2_transactions_get200_response_risk_information_score import TssV2TransactionsGet200ResponseRiskInformationScore +from .models.tss_v2_transactions_get200_response_sender_information import TssV2TransactionsGet200ResponseSenderInformation +from .models.tss_v2_transactions_post201_response import TssV2TransactionsPost201Response +from .models.tss_v2_transactions_post201_response__embedded import TssV2TransactionsPost201ResponseEmbedded +from .models.tss_v2_transactions_post201_response__embedded_buyer_information import TssV2TransactionsPost201ResponseEmbeddedBuyerInformation +from .models.tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation +from .models.tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation +from .models.tss_v2_transactions_post201_response__embedded_device_information import TssV2TransactionsPost201ResponseEmbeddedDeviceInformation +from .models.tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks +from .models.tss_v2_transactions_post201_response__embedded_merchant_information import TssV2TransactionsPost201ResponseEmbeddedMerchantInformation +from .models.tss_v2_transactions_post201_response__embedded_order_information import TssV2TransactionsPost201ResponseEmbeddedOrderInformation +from .models.tss_v2_transactions_post201_response__embedded_order_information_bill_to import TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo +from .models.tss_v2_transactions_post201_response__embedded_order_information_ship_to import TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo +from .models.tss_v2_transactions_post201_response__embedded_payment_information import TssV2TransactionsPost201ResponseEmbeddedPaymentInformation +from .models.tss_v2_transactions_post201_response__embedded_payment_information_card import TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard +from .models.tss_v2_transactions_post201_response__embedded_payment_information_payment_method import TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod +from .models.tss_v2_transactions_post201_response__embedded_point_of_sale_information import TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation +from .models.tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner import TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner +from .models.tss_v2_transactions_post201_response__embedded_processing_information import TssV2TransactionsPost201ResponseEmbeddedProcessingInformation +from .models.tss_v2_transactions_post201_response__embedded_processor_information import TssV2TransactionsPost201ResponseEmbeddedProcessorInformation +from .models.tss_v2_transactions_post201_response__embedded_risk_information import TssV2TransactionsPost201ResponseEmbeddedRiskInformation +from .models.tss_v2_transactions_post201_response__embedded_risk_information_providers import TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders +from .models.tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint import TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint +from .models.tss_v2_transactions_post201_response__embedded_transaction_summaries import TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries +from .models.tss_v2_transactions_post400_response import TssV2TransactionsPost400Response +from .models.tss_v2_transactions_post_response import TssV2TransactionsPostResponse +from .models.ums_v1_users_get200_response import UmsV1UsersGet200Response +from .models.ums_v1_users_get200_response_account_information import UmsV1UsersGet200ResponseAccountInformation +from .models.ums_v1_users_get200_response_contact_information import UmsV1UsersGet200ResponseContactInformation +from .models.ums_v1_users_get200_response_organization_information import UmsV1UsersGet200ResponseOrganizationInformation +from .models.ums_v1_users_get200_response_users import UmsV1UsersGet200ResponseUsers +from .models.v1_file_details_get200_response import V1FileDetailsGet200Response +from .models.v1_file_details_get200_response_file_details import V1FileDetailsGet200ResponseFileDetails +from .models.v1_file_details_get200_response__links import V1FileDetailsGet200ResponseLinks +from .models.v1_file_details_get200_response__links_files import V1FileDetailsGet200ResponseLinksFiles +from .models.v1_file_details_get200_response__links_self import V1FileDetailsGet200ResponseLinksSelf from .models.void_capture_request import VoidCaptureRequest from .models.void_credit_request import VoidCreditRequest from .models.void_payment_request import VoidPaymentRequest @@ -253,14 +323,27 @@ # import apis into sdk package from .apis.capture_api import CaptureApi from .apis.credit_api import CreditApi -from .apis.default_api import DefaultApi +from .apis.flex_token_api import FlexTokenApi from .apis.instrument_identifier_api import InstrumentIdentifierApi +from .apis.instrument_identifiers_api import InstrumentIdentifiersApi from .apis.key_generation_api import KeyGenerationApi -from .apis.payment_api import PaymentApi -from .apis.payment_instrument_api import PaymentInstrumentApi +from .apis.notification_of_changes_api import NotificationOfChangesApi +from .apis.payment_instruments_api import PaymentInstrumentsApi +from .apis.payments_api import PaymentsApi +from .apis.process_a_payout_api import ProcessAPayoutApi +from .apis.purchase_and_refund_details_api import PurchaseAndRefundDetailsApi from .apis.refund_api import RefundApi +from .apis.report_definitions_api import ReportDefinitionsApi +from .apis.report_downloads_api import ReportDownloadsApi +from .apis.report_subscriptions_api import ReportSubscriptionsApi +from .apis.reports_api import ReportsApi from .apis.reversal_api import ReversalApi -from .apis.tokenization_api import TokenizationApi +from .apis.search_transactions_api import SearchTransactionsApi +from .apis.secure_file_share_api import SecureFileShareApi +from .apis.transaction_batch_api import TransactionBatchApi +from .apis.transaction_batches_api import TransactionBatchesApi +from .apis.transaction_details_api import TransactionDetailsApi +from .apis.user_management_api import UserManagementApi from .apis.void_api import VoidApi # import ApiClient diff --git a/CyberSource/api_client.py b/CyberSource/api_client.py index 057ee2c9..6601d730 100644 --- a/CyberSource/api_client.py +++ b/CyberSource/api_client.py @@ -131,18 +131,17 @@ def set_configaration(self,config): mconfig.validate_merchant_details(config, mconfig) # Calling the authentication header - def call_authentication_header(self, resource_path, method, header_params, body): + def call_authentication_header(self,method, header_params, body): # give the URL path to where the data needs to be authenticated url = GlobalLabelParameters.HTTP_URL_PREFIX - - time = mconfig.get_time() + + time = mconfig.get_time() # mconfig.get_time() mconfig.request_type_method = method - mconfig.request_target = resource_path mconfig.url = url + mconfig.request_host + mconfig.request_target - if method.upper() == GlobalLabelParameters.POST or method.upper() == GlobalLabelParameters.PUT: + if method.upper() == GlobalLabelParameters.POST or method.upper() == GlobalLabelParameters.PUT or method.upper() == GlobalLabelParameters.PATCH: mconfig.request_json_path_data = body logger = mconfig.log @@ -155,7 +154,7 @@ def call_authentication_header(self, resource_path, method, header_params, body) header_params["Date"] = time header_params["Host"] = mconfig.request_host header_params["User-Agent"] = GlobalLabelParameters.USER_AGENT_VALUE - if method.upper() == GlobalLabelParameters.POST or method.upper() == GlobalLabelParameters.PUT: + if method.upper() == GlobalLabelParameters.POST or method.upper() == GlobalLabelParameters.PUT or method.upper() == GlobalLabelParameters.PATCH: '''print((ast.literal_eval(json.dumps(self.del_none(json.loads(body))))))''' digest_header = self.set_digest((body)) @@ -168,7 +167,6 @@ def call_authentication_header(self, resource_path, method, header_params, body) token = "Bearer " + token.decode("utf-8") header_params['Authorization'] = str(token) - # Set the digest def set_digest(self, body): digest_obj = DigestAndPayload() @@ -178,6 +176,21 @@ def set_digest(self, body): return encoded_digest + # Adds query param to URL + def set_query_params(self, path, query_param): + query_param = dict(query_param) + if query_param: + first_query_param = True + for param in query_param: + + if (not first_query_param): + path = path + "&" + param + "=" + str(query_param[param]) + else: + path = path + "?" + param + "=" + str(query_param[param]) + first_query_param = False + + return path + def __call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, @@ -254,7 +267,7 @@ def __call_api(self, resource_path, method, else: callback((return_data, response_data.status, response_data.getheaders())) elif _return_http_data_only: - return (return_data,response_data.status, response_data.data) + return (return_data, response_data.status, response_data.data) else: return (return_data, response_data.status, response_data.getheaders()) @@ -370,10 +383,15 @@ def call_api(self, resource_path, method, response_type=None, auth_settings=None, callback=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): - if method.upper() == GlobalLabelParameters.POST: + if method.upper() == GlobalLabelParameters.POST or method.upper() == GlobalLabelParameters.PUT or method.upper() == GlobalLabelParameters.PATCH: request_body = self.replace_underscore(json.loads(body)) body = json.dumps(request_body) - self.call_authentication_header(resource_path, method, header_params, body) + query_param_path = self.set_query_params(resource_path, query_params) + if query_param_path: + mconfig.request_target = query_param_path + else: + mconfig.request_target = resource_path + self.call_authentication_header(method, header_params, body) """ Makes the HTTP request (synchronous) and return the deserialized data. To make an async request, define a function for callback. diff --git a/CyberSource/apis/__init__.py b/CyberSource/apis/__init__.py index cc507e3e..6b2466d2 100644 --- a/CyberSource/apis/__init__.py +++ b/CyberSource/apis/__init__.py @@ -3,12 +3,25 @@ # import apis into api package from .capture_api import CaptureApi from .credit_api import CreditApi -from .default_api import DefaultApi +from .flex_token_api import FlexTokenApi from .instrument_identifier_api import InstrumentIdentifierApi +from .instrument_identifiers_api import InstrumentIdentifiersApi from .key_generation_api import KeyGenerationApi -from .payment_api import PaymentApi -from .payment_instrument_api import PaymentInstrumentApi +from .notification_of_changes_api import NotificationOfChangesApi +from .payment_instruments_api import PaymentInstrumentsApi +from .payments_api import PaymentsApi +from .process_a_payout_api import ProcessAPayoutApi +from .purchase_and_refund_details_api import PurchaseAndRefundDetailsApi from .refund_api import RefundApi +from .report_definitions_api import ReportDefinitionsApi +from .report_downloads_api import ReportDownloadsApi +from .report_subscriptions_api import ReportSubscriptionsApi +from .reports_api import ReportsApi from .reversal_api import ReversalApi -from .tokenization_api import TokenizationApi +from .search_transactions_api import SearchTransactionsApi +from .secure_file_share_api import SecureFileShareApi +from .transaction_batch_api import TransactionBatchApi +from .transaction_batches_api import TransactionBatchesApi +from .transaction_details_api import TransactionDetailsApi +from .user_management_api import UserManagementApi from .void_api import VoidApi diff --git a/CyberSource/apis/capture_api.py b/CyberSource/apis/capture_api.py index 3f120c3f..58cfbe91 100644 --- a/CyberSource/apis/capture_api.py +++ b/CyberSource/apis/capture_api.py @@ -58,7 +58,7 @@ def capture_payment(self, capture_payment_request, id, **kwargs): for asynchronous request. (optional) :param CapturePaymentRequest capture_payment_request: (required) :param str id: The payment ID returned from a previous payment request. This ID links the capture to the payment. (required) - :return: InlineResponse2012 + :return: PtsV2PaymentsCapturesPost201Response If the method is called asynchronously, returns the request thread. """ @@ -85,7 +85,7 @@ def capture_payment_with_http_info(self, capture_payment_request, id, **kwargs): for asynchronous request. (optional) :param CapturePaymentRequest capture_payment_request: (required) :param str id: The payment ID returned from a previous payment request. This ID links the capture to the payment. (required) - :return: InlineResponse2012 + :return: PtsV2PaymentsCapturesPost201Response If the method is called asynchronously, returns the request thread. """ @@ -147,109 +147,7 @@ def capture_payment_with_http_info(self, capture_payment_request, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2012', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_capture(self, id, **kwargs): - """ - Retrieve a Capture - Include the capture ID in the GET request to retrieve the capture details. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_capture(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The capture ID returned from a previous capture request. (required) - :return: InlineResponse2004 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_capture_with_http_info(id, **kwargs) - else: - (data) = self.get_capture_with_http_info(id, **kwargs) - return data - - def get_capture_with_http_info(self, id, **kwargs): - """ - Retrieve a Capture - Include the capture ID in the GET request to retrieve the capture details. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_capture_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The capture ID returned from a previous capture request. (required) - :return: InlineResponse2004 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_capture" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_capture`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/v2/captures/{id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2004', + response_type='PtsV2PaymentsCapturesPost201Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/CyberSource/apis/credit_api.py b/CyberSource/apis/credit_api.py index 7fc0e8b1..a407d88a 100644 --- a/CyberSource/apis/credit_api.py +++ b/CyberSource/apis/credit_api.py @@ -57,7 +57,7 @@ def create_credit(self, create_credit_request, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param CreateCreditRequest create_credit_request: (required) - :return: InlineResponse2014 + :return: PtsV2CreditsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -83,7 +83,7 @@ def create_credit_with_http_info(self, create_credit_request, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param CreateCreditRequest create_credit_request: (required) - :return: InlineResponse2014 + :return: PtsV2CreditsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -140,109 +140,7 @@ def create_credit_with_http_info(self, create_credit_request, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2014', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_credit(self, id, **kwargs): - """ - Retrieve a Credit - Include the credit ID in the GET request to return details of the credit. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_credit(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The credit ID returned from a previous stand-alone credit request. (required) - :return: InlineResponse2006 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_credit_with_http_info(id, **kwargs) - else: - (data) = self.get_credit_with_http_info(id, **kwargs) - return data - - def get_credit_with_http_info(self, id, **kwargs): - """ - Retrieve a Credit - Include the credit ID in the GET request to return details of the credit. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_credit_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The credit ID returned from a previous stand-alone credit request. (required) - :return: InlineResponse2006 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_credit" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_credit`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/v2/credits/{id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2006', + response_type='PtsV2CreditsPost201Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/CyberSource/apis/default_api.py b/CyberSource/apis/default_api.py deleted file mode 100644 index 4b40855e..00000000 --- a/CyberSource/apis/default_api.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class DefaultApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, merchant_config, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - self.api_client.set_configaration(merchant_config) - - - def oct_create_payment(self, oct_create_payment_request, **kwargs): - """ - Process a Payout - Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT). - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.oct_create_payment(oct_create_payment_request, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param OctCreatePaymentRequest oct_create_payment_request: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.oct_create_payment_with_http_info(oct_create_payment_request, **kwargs) - else: - (data) = self.oct_create_payment_with_http_info(oct_create_payment_request, **kwargs) - return data - - def oct_create_payment_with_http_info(self, oct_create_payment_request, **kwargs): - """ - Process a Payout - Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT). - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.oct_create_payment_with_http_info(oct_create_payment_request, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param OctCreatePaymentRequest oct_create_payment_request: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['oct_create_payment_request'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method oct_create_payment" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'oct_create_payment_request' is set - if ('oct_create_payment_request' not in params) or (params['oct_create_payment_request'] is None): - raise ValueError("Missing the required parameter `oct_create_payment_request` when calling `oct_create_payment`") - - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'oct_create_payment_request' in params: - body_params = params['oct_create_payment_request'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client. \ - select_header_accept(['application/hal+json;charset=utf-8']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client. \ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/pts/v2/payouts/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/CyberSource/apis/flex_token_api.py b/CyberSource/apis/flex_token_api.py new file mode 100644 index 00000000..6080e9a5 --- /dev/null +++ b/CyberSource/apis/flex_token_api.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class FlexTokenApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def tokenize(self, **kwargs): + """ + Flex Tokenize card + Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tokenize(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param TokenizeRequest tokenize_request: + :return: FlexV1TokensPost200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.tokenize_with_http_info(**kwargs) + else: + (data) = self.tokenize_with_http_info(**kwargs) + return data + + def tokenize_with_http_info(self, **kwargs): + """ + Flex Tokenize card + Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tokenize_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param TokenizeRequest tokenize_request: + :return: FlexV1TokensPost200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['tokenize_request'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method tokenize" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'tokenize_request' in params: + body_params = params['tokenize_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/flex/v1/tokens/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FlexV1TokensPost200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/instrument_identifier_api.py b/CyberSource/apis/instrument_identifier_api.py index 5fa10eca..bd541571 100644 --- a/CyberSource/apis/instrument_identifier_api.py +++ b/CyberSource/apis/instrument_identifier_api.py @@ -42,115 +42,7 @@ def __init__(self, merchant_config, api_client=None): self.api_client.set_configaration(merchant_config) - def instrumentidentifiers_post(self, profile_id, **kwargs): - """ - Create an Instrument Identifier - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.instrumentidentifiers_post(profile_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param Body body: Please specify either a Card or Bank Account. - :return: InlineResponse2007 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.instrumentidentifiers_post_with_http_info(profile_id, **kwargs) - else: - (data) = self.instrumentidentifiers_post_with_http_info(profile_id, **kwargs) - return data - - def instrumentidentifiers_post_with_http_info(self, profile_id, **kwargs): - """ - Create an Instrument Identifier - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.instrumentidentifiers_post_with_http_info(profile_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param Body body: Please specify either a Card or Bank Account. - :return: InlineResponse2007 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['profile_id', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method instrumentidentifiers_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'profile_id' is set - if ('profile_id' not in params) or (params['profile_id'] is None): - raise ValueError("Missing the required parameter `profile_id` when calling `instrumentidentifiers_post`") - - #if 'profile_id' in params and params['profile_id'] > 36: - #raise ValueError("Invalid value for parameter `profile_id` when calling `instrumentidentifiers_post`, must be a value less than or equal to `36`") - #if 'profile_id' in params and params['profile_id'] < 36: - #raise ValueError("Invalid value for parameter `profile_id` when calling `instrumentidentifiers_post`, must be a value greater than or equal to `36`") - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - if 'profile_id' in params: - header_params['profile-id'] = params['profile_id'] - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/tms/v1/instrumentidentifiers', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2007', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def instrumentidentifiers_token_id_delete(self, profile_id, token_id, **kwargs): + def tms_v1_instrumentidentifiers_token_id_delete(self, profile_id, token_id, **kwargs): """ Delete an Instrument Identifier This method makes a synchronous HTTP request by default. To make an @@ -159,7 +51,7 @@ def instrumentidentifiers_token_id_delete(self, profile_id, token_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.instrumentidentifiers_token_id_delete(profile_id, token_id, callback=callback_function) + >>> thread = api.tms_v1_instrumentidentifiers_token_id_delete(profile_id, token_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -171,12 +63,12 @@ def instrumentidentifiers_token_id_delete(self, profile_id, token_id, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, **kwargs) + return self.tms_v1_instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, **kwargs) else: - (data) = self.instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, **kwargs) + (data) = self.tms_v1_instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, **kwargs) return data - def instrumentidentifiers_token_id_delete_with_http_info(self, profile_id, token_id, **kwargs): + def tms_v1_instrumentidentifiers_token_id_delete_with_http_info(self, profile_id, token_id, **kwargs): """ Delete an Instrument Identifier This method makes a synchronous HTTP request by default. To make an @@ -185,7 +77,7 @@ def instrumentidentifiers_token_id_delete_with_http_info(self, profile_id, token >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, callback=callback_function) + >>> thread = api.tms_v1_instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -207,25 +99,25 @@ def instrumentidentifiers_token_id_delete_with_http_info(self, profile_id, token if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method instrumentidentifiers_token_id_delete" % key + " to method tms_v1_instrumentidentifiers_token_id_delete" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'profile_id' is set if ('profile_id' not in params) or (params['profile_id'] is None): - raise ValueError("Missing the required parameter `profile_id` when calling `instrumentidentifiers_token_id_delete`") + raise ValueError("Missing the required parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_delete`") # verify the required parameter 'token_id' is set if ('token_id' not in params) or (params['token_id'] is None): - raise ValueError("Missing the required parameter `token_id` when calling `instrumentidentifiers_token_id_delete`") + raise ValueError("Missing the required parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_delete`") '''if 'profile_id' in params and params['profile_id'] > 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `instrumentidentifiers_token_id_delete`, must be a value less than or equal to `36`") + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_delete`, must be a value less than or equal to `36`") if 'profile_id' in params and params['profile_id'] < 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `instrumentidentifiers_token_id_delete`, must be a value greater than or equal to `36`") + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_delete`, must be a value greater than or equal to `36`") if 'token_id' in params and params['token_id'] > 32: - raise ValueError("Invalid value for parameter `token_id` when calling `instrumentidentifiers_token_id_delete`, must be a value less than or equal to `32`") + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_delete`, must be a value less than or equal to `32`") if 'token_id' in params and params['token_id'] < 16: - raise ValueError("Invalid value for parameter `token_id` when calling `instrumentidentifiers_token_id_delete`, must be a value greater than or equal to `16`")''' + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_delete`, must be a value greater than or equal to `16`")''' collection_formats = {} @@ -247,6 +139,10 @@ def instrumentidentifiers_token_id_delete_with_http_info(self, profile_id, token header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) + # HTTP header `Content-Type` + #header_params['Content-Type'] = self.api_client.\ + #select_header_content_type(['application/json;charset=utf-8']) + # Authentication setting auth_settings = [] @@ -265,7 +161,7 @@ def instrumentidentifiers_token_id_delete_with_http_info(self, profile_id, token _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def instrumentidentifiers_token_id_get(self, profile_id, token_id, **kwargs): + def tms_v1_instrumentidentifiers_token_id_get(self, profile_id, token_id, **kwargs): """ Retrieve an Instrument Identifier This method makes a synchronous HTTP request by default. To make an @@ -274,24 +170,24 @@ def instrumentidentifiers_token_id_get(self, profile_id, token_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.instrumentidentifiers_token_id_get(profile_id, token_id, callback=callback_function) + >>> thread = api.tms_v1_instrumentidentifiers_token_id_get(profile_id, token_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str profile_id: The id of a profile containing user specific TMS configuration. (required) :param str token_id: The TokenId of an Instrument Identifier. (required) - :return: InlineResponse2007 + :return: TmsV1InstrumentidentifiersPost200Response If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, **kwargs) + return self.tms_v1_instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, **kwargs) else: - (data) = self.instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, **kwargs) + (data) = self.tms_v1_instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, **kwargs) return data - def instrumentidentifiers_token_id_get_with_http_info(self, profile_id, token_id, **kwargs): + def tms_v1_instrumentidentifiers_token_id_get_with_http_info(self, profile_id, token_id, **kwargs): """ Retrieve an Instrument Identifier This method makes a synchronous HTTP request by default. To make an @@ -300,13 +196,13 @@ def instrumentidentifiers_token_id_get_with_http_info(self, profile_id, token_id >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, callback=callback_function) + >>> thread = api.tms_v1_instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str profile_id: The id of a profile containing user specific TMS configuration. (required) :param str token_id: The TokenId of an Instrument Identifier. (required) - :return: InlineResponse2007 + :return: TmsV1InstrumentidentifiersPost200Response If the method is called asynchronously, returns the request thread. """ @@ -322,25 +218,25 @@ def instrumentidentifiers_token_id_get_with_http_info(self, profile_id, token_id if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method instrumentidentifiers_token_id_get" % key + " to method tms_v1_instrumentidentifiers_token_id_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'profile_id' is set if ('profile_id' not in params) or (params['profile_id'] is None): - raise ValueError("Missing the required parameter `profile_id` when calling `instrumentidentifiers_token_id_get`") + raise ValueError("Missing the required parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_get`") # verify the required parameter 'token_id' is set if ('token_id' not in params) or (params['token_id'] is None): - raise ValueError("Missing the required parameter `token_id` when calling `instrumentidentifiers_token_id_get`") + raise ValueError("Missing the required parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_get`") '''if 'profile_id' in params and params['profile_id'] > 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `instrumentidentifiers_token_id_get`, must be a value less than or equal to `36`") + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_get`, must be a value less than or equal to `36`") if 'profile_id' in params and params['profile_id'] < 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `instrumentidentifiers_token_id_get`, must be a value greater than or equal to `36`") + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_get`, must be a value greater than or equal to `36`") if 'token_id' in params and params['token_id'] > 32: - raise ValueError("Invalid value for parameter `token_id` when calling `instrumentidentifiers_token_id_get`, must be a value less than or equal to `32`") + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_get`, must be a value less than or equal to `32`") if 'token_id' in params and params['token_id'] < 16: - raise ValueError("Invalid value for parameter `token_id` when calling `instrumentidentifiers_token_id_get`, must be a value greater than or equal to `16`")''' + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_get`, must be a value greater than or equal to `16`")''' collection_formats = {} @@ -362,6 +258,10 @@ def instrumentidentifiers_token_id_get_with_http_info(self, profile_id, token_id header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) + # HTTP header `Content-Type` + #header_params['Content-Type'] = self.api_client.\ + #select_header_content_type(['application/json;charset=utf-8']) + # Authentication setting auth_settings = [] @@ -372,7 +272,7 @@ def instrumentidentifiers_token_id_get_with_http_info(self, profile_id, token_id body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2007', + response_type='TmsV1InstrumentidentifiersPost200Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -380,7 +280,7 @@ def instrumentidentifiers_token_id_get_with_http_info(self, profile_id, token_id _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def instrumentidentifiers_token_id_patch(self, profile_id, token_id, body, **kwargs): + def tms_v1_instrumentidentifiers_token_id_patch(self, profile_id, token_id, body, **kwargs): """ Update a Instrument Identifier This method makes a synchronous HTTP request by default. To make an @@ -389,25 +289,25 @@ def instrumentidentifiers_token_id_patch(self, profile_id, token_id, body, **kwa >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.instrumentidentifiers_token_id_patch(profile_id, token_id, body, callback=callback_function) + >>> thread = api.tms_v1_instrumentidentifiers_token_id_patch(profile_id, token_id, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param str token_id: The TokenId of an Instrument Identifier (required) + :param str token_id: The TokenId of an Instrument Identifier. (required) :param Body1 body: Please specify the previous transaction Id to update. (required) - :return: InlineResponse2007 + :return: TmsV1InstrumentidentifiersPost200Response If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, **kwargs) + return self.tms_v1_instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, **kwargs) else: - (data) = self.instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, **kwargs) + (data) = self.tms_v1_instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, **kwargs) return data - def instrumentidentifiers_token_id_patch_with_http_info(self, profile_id, token_id, body, **kwargs): + def tms_v1_instrumentidentifiers_token_id_patch_with_http_info(self, profile_id, token_id, body, **kwargs): """ Update a Instrument Identifier This method makes a synchronous HTTP request by default. To make an @@ -416,14 +316,14 @@ def instrumentidentifiers_token_id_patch_with_http_info(self, profile_id, token_ >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, callback=callback_function) + >>> thread = api.tms_v1_instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param str token_id: The TokenId of an Instrument Identifier (required) + :param str token_id: The TokenId of an Instrument Identifier. (required) :param Body1 body: Please specify the previous transaction Id to update. (required) - :return: InlineResponse2007 + :return: TmsV1InstrumentidentifiersPost200Response If the method is called asynchronously, returns the request thread. """ @@ -439,28 +339,28 @@ def instrumentidentifiers_token_id_patch_with_http_info(self, profile_id, token_ if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method instrumentidentifiers_token_id_patch" % key + " to method tms_v1_instrumentidentifiers_token_id_patch" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'profile_id' is set if ('profile_id' not in params) or (params['profile_id'] is None): - raise ValueError("Missing the required parameter `profile_id` when calling `instrumentidentifiers_token_id_patch`") + raise ValueError("Missing the required parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_patch`") # verify the required parameter 'token_id' is set if ('token_id' not in params) or (params['token_id'] is None): - raise ValueError("Missing the required parameter `token_id` when calling `instrumentidentifiers_token_id_patch`") + raise ValueError("Missing the required parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_patch`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `instrumentidentifiers_token_id_patch`") + raise ValueError("Missing the required parameter `body` when calling `tms_v1_instrumentidentifiers_token_id_patch`") '''if 'profile_id' in params and params['profile_id'] > 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `instrumentidentifiers_token_id_patch`, must be a value less than or equal to `36`") + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_patch`, must be a value less than or equal to `36`") if 'profile_id' in params and params['profile_id'] < 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `instrumentidentifiers_token_id_patch`, must be a value greater than or equal to `36`") + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_patch`, must be a value greater than or equal to `36`") if 'token_id' in params and params['token_id'] > 32: - raise ValueError("Invalid value for parameter `token_id` when calling `instrumentidentifiers_token_id_patch`, must be a value less than or equal to `32`") + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_patch`, must be a value less than or equal to `32`") if 'token_id' in params and params['token_id'] < 16: - raise ValueError("Invalid value for parameter `token_id` when calling `instrumentidentifiers_token_id_patch`, must be a value greater than or equal to `16`")''' + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_patch`, must be a value greater than or equal to `16`")''' collection_formats = {} @@ -482,148 +382,23 @@ def instrumentidentifiers_token_id_patch_with_http_info(self, profile_id, token_ body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/tms/v1/instrumentidentifiers/'+token_id, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2007', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def instrumentidentifiers_token_id_paymentinstruments_get(self, profile_id, token_id, **kwargs): - """ - Retrieve all Payment Instruments associated with an Instrument Identifier - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param str token_id: The TokenId of an Instrument Identifier. (required) - :param str offset: Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. - :param str limit: The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. - :return: InlineResponse2008 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, **kwargs) - else: - (data) = self.instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, **kwargs) - return data - - def instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(self, profile_id, token_id, **kwargs): - """ - Retrieve all Payment Instruments associated with an Instrument Identifier - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param str token_id: The TokenId of an Instrument Identifier. (required) - :param str offset: Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. - :param str limit: The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. - :return: InlineResponse2008 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['profile_id', 'token_id', 'offset', 'limit'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + select_header_accept(['application/json;charset=utf-8']) - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method instrumentidentifiers_token_id_paymentinstruments_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'profile_id' is set - if ('profile_id' not in params) or (params['profile_id'] is None): - raise ValueError("Missing the required parameter `profile_id` when calling `instrumentidentifiers_token_id_paymentinstruments_get`") - # verify the required parameter 'token_id' is set - if ('token_id' not in params) or (params['token_id'] is None): - raise ValueError("Missing the required parameter `token_id` when calling `instrumentidentifiers_token_id_paymentinstruments_get`") - - '''if 'profile_id' in params and params['profile_id'] > 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `instrumentidentifiers_token_id_paymentinstruments_get`, must be a value less than or equal to `36`") - if 'profile_id' in params and params['profile_id'] < 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `instrumentidentifiers_token_id_paymentinstruments_get`, must be a value greater than or equal to `36`") - if 'token_id' in params and params['token_id'] > 32: - raise ValueError("Invalid value for parameter `token_id` when calling `instrumentidentifiers_token_id_paymentinstruments_get`, must be a value less than or equal to `32`") - if 'token_id' in params and params['token_id'] < 16: - raise ValueError("Invalid value for parameter `token_id` when calling `instrumentidentifiers_token_id_paymentinstruments_get`, must be a value greater than or equal to `16`")''' - if 'offset' in params and params['offset'] < 0: - raise ValueError("Invalid value for parameter `offset` when calling `instrumentidentifiers_token_id_paymentinstruments_get`, must be a value greater than or equal to `0`") - if 'limit' in params and params['limit'] > 100: - raise ValueError("Invalid value for parameter `limit` when calling `instrumentidentifiers_token_id_paymentinstruments_get`, must be a value less than or equal to `100`") - if 'limit' in params and params['limit'] < 1: - raise ValueError("Invalid value for parameter `limit` when calling `instrumentidentifiers_token_id_paymentinstruments_get`, must be a value greater than or equal to `1`") - - collection_formats = {} - - path_params = {} - if 'token_id' in params: - path_params['tokenId'] = params['token_id'] - - query_params = [] - if 'offset' in params: - query_params.append(('offset', params['offset'])) - if 'limit' in params: - query_params.append(('limit', params['limit'])) - - header_params = {} - if 'profile_id' in params: - header_params['profile-id'] = params['profile_id'] - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/tms/v1/instrumentidentifiers/'+token_id+'/paymentinstruments', 'GET', + return self.api_client.call_api('/tms/v1/instrumentidentifiers/'+token_id, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2008', + response_type='TmsV1InstrumentidentifiersPost200Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/CyberSource/apis/instrument_identifiers_api.py b/CyberSource/apis/instrument_identifiers_api.py new file mode 100644 index 00000000..e0dfc023 --- /dev/null +++ b/CyberSource/apis/instrument_identifiers_api.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class InstrumentIdentifiersApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def tms_v1_instrumentidentifiers_post(self, profile_id, body, **kwargs): + """ + Create an Instrument Identifier + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_instrumentidentifiers_post(profile_id, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param Body body: Please specify either a Card or Bank Account. (required) + :return: TmsV1InstrumentidentifiersPost200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.tms_v1_instrumentidentifiers_post_with_http_info(profile_id, body, **kwargs) + else: + (data) = self.tms_v1_instrumentidentifiers_post_with_http_info(profile_id, body, **kwargs) + return data + + def tms_v1_instrumentidentifiers_post_with_http_info(self, profile_id, body, **kwargs): + """ + Create an Instrument Identifier + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_instrumentidentifiers_post_with_http_info(profile_id, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param Body body: Please specify either a Card or Bank Account. (required) + :return: TmsV1InstrumentidentifiersPost200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['profile_id', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method tms_v1_instrumentidentifiers_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'profile_id' is set + if ('profile_id' not in params) or (params['profile_id'] is None): + raise ValueError("Missing the required parameter `profile_id` when calling `tms_v1_instrumentidentifiers_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `tms_v1_instrumentidentifiers_post`") + + '''if 'profile_id' in params and params['profile_id'] > 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_instrumentidentifiers_post`, must be a value less than or equal to `36`") + if 'profile_id' in params and params['profile_id'] < 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_instrumentidentifiers_post`, must be a value greater than or equal to `36`")''' + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'profile_id' in params: + header_params['profile-id'] = params['profile_id'] + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + #header_params['Content-Type'] = self.api_client.\ + #select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/tms/v1/instrumentidentifiers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TmsV1InstrumentidentifiersPost200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/key_generation_api.py b/CyberSource/apis/key_generation_api.py index fd14cb50..8268f7a4 100644 --- a/CyberSource/apis/key_generation_api.py +++ b/CyberSource/apis/key_generation_api.py @@ -42,7 +42,7 @@ def __init__(self, merchant_config, api_client=None): self.api_client.set_configaration(merchant_config) - def generate_public_key(self, generate_public_key_request, **kwargs): + def generate_public_key(self, **kwargs): """ Generate Key Generate a one-time use public key and key ID to encrypt the card number in the follow-on Tokenize Card request. The key used to encrypt the card number on the cardholder’s device or browser is valid for 15 minutes and must be used to verify the signature in the response message. CyberSource recommends creating a new key for each order. Generating a key is an authenticated request initiated from your servers, prior to requesting to tokenize the card data from your customer’s device or browser. @@ -52,23 +52,23 @@ def generate_public_key(self, generate_public_key_request, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.generate_public_key(generate_public_key_request, callback=callback_function) + >>> thread = api.generate_public_key(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param GeneratePublicKeyRequest generate_public_key_request: (required) - :return: InlineResponse200 + :param GeneratePublicKeyRequest generate_public_key_request: + :return: FlexV1KeysPost200Response If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.generate_public_key_with_http_info(generate_public_key_request, **kwargs) + return self.generate_public_key_with_http_info(**kwargs) else: - (data) = self.generate_public_key_with_http_info(generate_public_key_request, **kwargs) + (data) = self.generate_public_key_with_http_info(**kwargs) return data - def generate_public_key_with_http_info(self, generate_public_key_request, **kwargs): + def generate_public_key_with_http_info(self, **kwargs): """ Generate Key Generate a one-time use public key and key ID to encrypt the card number in the follow-on Tokenize Card request. The key used to encrypt the card number on the cardholder’s device or browser is valid for 15 minutes and must be used to verify the signature in the response message. CyberSource recommends creating a new key for each order. Generating a key is an authenticated request initiated from your servers, prior to requesting to tokenize the card data from your customer’s device or browser. @@ -78,12 +78,12 @@ def generate_public_key_with_http_info(self, generate_public_key_request, **kwar >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.generate_public_key_with_http_info(generate_public_key_request, callback=callback_function) + >>> thread = api.generate_public_key_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param GeneratePublicKeyRequest generate_public_key_request: (required) - :return: InlineResponse200 + :param GeneratePublicKeyRequest generate_public_key_request: + :return: FlexV1KeysPost200Response If the method is called asynchronously, returns the request thread. """ @@ -103,9 +103,6 @@ def generate_public_key_with_http_info(self, generate_public_key_request, **kwar ) params[key] = val del params['kwargs'] - # verify the required parameter 'generate_public_key_request' is set - if ('generate_public_key_request' not in params) or (params['generate_public_key_request'] is None): - raise ValueError("Missing the required parameter `generate_public_key_request` when calling `generate_public_key`") collection_formats = {} @@ -123,11 +120,11 @@ def generate_public_key_with_http_info(self, generate_public_key_request, **kwar if 'generate_public_key_request' in params: body_params = params['generate_public_key_request'] # HTTP header `Accept` - header_params['Accept'] = self.api_client. \ + header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client. \ + header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json']) # Authentication setting @@ -140,7 +137,7 @@ def generate_public_key_with_http_info(self, generate_public_key_request, **kwar body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse200', + response_type='FlexV1KeysPost200Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/CyberSource/apis/notification_of_changes_api.py b/CyberSource/apis/notification_of_changes_api.py new file mode 100644 index 00000000..f4157427 --- /dev/null +++ b/CyberSource/apis/notification_of_changes_api.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class NotificationOfChangesApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def get_notification_of_change_report(self, start_time, end_time, **kwargs): + """ + Get Notification Of Changes + Notification of Change Report + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_notification_of_change_report(start_time, end_time, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param datetime start_time: Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :param datetime end_time: Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :return: ReportingV3NotificationofChangesGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_notification_of_change_report_with_http_info(start_time, end_time, **kwargs) + else: + (data) = self.get_notification_of_change_report_with_http_info(start_time, end_time, **kwargs) + return data + + def get_notification_of_change_report_with_http_info(self, start_time, end_time, **kwargs): + """ + Get Notification Of Changes + Notification of Change Report + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_notification_of_change_report_with_http_info(start_time, end_time, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param datetime start_time: Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :param datetime end_time: Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :return: ReportingV3NotificationofChangesGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start_time', 'end_time'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_notification_of_change_report" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'start_time' is set + if ('start_time' not in params) or (params['start_time'] is None): + raise ValueError("Missing the required parameter `start_time` when calling `get_notification_of_change_report`") + # verify the required parameter 'end_time' is set + if ('end_time' not in params) or (params['end_time'] is None): + raise ValueError("Missing the required parameter `end_time` when calling `get_notification_of_change_report`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + '''if 'start_time' in params: + query_params.append(('startTime', params['start_time'])) + if 'end_time' in params: + query_params.append(('endTime', params['end_time']))''' + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/notification-of-changes?startTime='+start_time+'&endTime='+end_time, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportingV3NotificationofChangesGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/payment_api.py b/CyberSource/apis/payment_api.py deleted file mode 100644 index 2494a058..00000000 --- a/CyberSource/apis/payment_api.py +++ /dev/null @@ -1,255 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class PaymentApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, merchant_config, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - self.api_client.set_configaration(merchant_config) - - - def create_payment(self, create_payment_request, **kwargs): - """ - Process a Payment - Authorize the payment for the transaction. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_payment(create_payment_request, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param CreatePaymentRequest create_payment_request: (required) - :return: InlineResponse201 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.create_payment_with_http_info(create_payment_request, **kwargs) - else: - (data) = self.create_payment_with_http_info(create_payment_request, **kwargs) - return data - - def create_payment_with_http_info(self, create_payment_request, **kwargs): - """ - Process a Payment - Authorize the payment for the transaction. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_payment_with_http_info(create_payment_request, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param CreatePaymentRequest create_payment_request: (required) - :return: InlineResponse201 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['create_payment_request'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_payment" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'create_payment_request' is set - if ('create_payment_request' not in params) or (params['create_payment_request'] is None): - raise ValueError("Missing the required parameter `create_payment_request` when calling `create_payment`") - - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'create_payment_request' in params: - body_params = params['create_payment_request'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client. \ - select_header_accept(['application/hal+json;charset=utf-8']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client. \ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/pts/v2/payments/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse201', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_payment(self, id, **kwargs): - """ - Retrieve a Payment - Include the payment ID in the GET request to retrieve the payment details. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_payment(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The payment ID returned from a previous payment request. (required) - :return: InlineResponse2002 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_payment_with_http_info(id, **kwargs) - else: - (data) = self.get_payment_with_http_info(id, **kwargs) - return data - - def get_payment_with_http_info(self, id, **kwargs): - """ - Retrieve a Payment - Include the payment ID in the GET request to retrieve the payment details. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_payment_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The payment ID returned from a previous payment request. (required) - :return: InlineResponse2002 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_payment" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_payment`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client. \ - select_header_accept(['application/hal+json;charset=utf-8']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client. \ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/pts/v2/payments/'+id, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2002', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/CyberSource/apis/payment_instrument_api.py b/CyberSource/apis/payment_instrument_api.py deleted file mode 100644 index 5c414e07..00000000 --- a/CyberSource/apis/payment_instrument_api.py +++ /dev/null @@ -1,506 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class PaymentInstrumentApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, merchant_config, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - self.api_client.set_configaration(merchant_config) - - - def paymentinstruments_post(self, profile_id, body, **kwargs): - """ - Create a Payment Instrument - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.paymentinstruments_post(profile_id, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param Body2 body: Please specify the customers payment details for card or bank account. (required) - :return: InlineResponse2016 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.paymentinstruments_post_with_http_info(profile_id, body, **kwargs) - else: - (data) = self.paymentinstruments_post_with_http_info(profile_id, body, **kwargs) - return data - - def paymentinstruments_post_with_http_info(self, profile_id, body, **kwargs): - """ - Create a Payment Instrument - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.paymentinstruments_post_with_http_info(profile_id, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param Body2 body: Please specify the customers payment details for card or bank account. (required) - :return: InlineResponse2016 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['profile_id', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method paymentinstruments_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'profile_id' is set - if ('profile_id' not in params) or (params['profile_id'] is None): - raise ValueError("Missing the required parameter `profile_id` when calling `paymentinstruments_post`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `paymentinstruments_post`") - - '''if 'profile_id' in params and params['profile_id'] > 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `paymentinstruments_post`, must be a value less than or equal to `36`") - if 'profile_id' in params and params['profile_id'] < 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `paymentinstruments_post`, must be a value greater than or equal to `36`")''' - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - if 'profile_id' in params: - header_params['profile-id'] = params['profile_id'] - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/tms/v1/paymentinstruments', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2016', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def paymentinstruments_token_id_delete(self, profile_id, token_id, **kwargs): - """ - Delete a Payment Instrument - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.paymentinstruments_token_id_delete(profile_id, token_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param str token_id: The TokenId of a Payment Instrument. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, **kwargs) - else: - (data) = self.paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, **kwargs) - return data - - def paymentinstruments_token_id_delete_with_http_info(self, profile_id, token_id, **kwargs): - """ - Delete a Payment Instrument - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param str token_id: The TokenId of a Payment Instrument. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['profile_id', 'token_id'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method paymentinstruments_token_id_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'profile_id' is set - if ('profile_id' not in params) or (params['profile_id'] is None): - raise ValueError("Missing the required parameter `profile_id` when calling `paymentinstruments_token_id_delete`") - # verify the required parameter 'token_id' is set - if ('token_id' not in params) or (params['token_id'] is None): - raise ValueError("Missing the required parameter `token_id` when calling `paymentinstruments_token_id_delete`") - - '''if 'profile_id' in params and params['profile_id'] > 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `paymentinstruments_token_id_delete`, must be a value less than or equal to `36`") - if 'profile_id' in params and params['profile_id'] < 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `paymentinstruments_token_id_delete`, must be a value greater than or equal to `36`") - if 'token_id' in params and params['token_id'] > 32: - raise ValueError("Invalid value for parameter `token_id` when calling `paymentinstruments_token_id_delete`, must be a value less than or equal to `32`") - if 'token_id' in params and params['token_id'] < 16: - raise ValueError("Invalid value for parameter `token_id` when calling `paymentinstruments_token_id_delete`, must be a value greater than or equal to `16`")''' - - collection_formats = {} - - path_params = {} - if 'token_id' in params: - path_params['tokenId'] = params['token_id'] - - query_params = [] - - header_params = {} - if 'profile_id' in params: - header_params['profile-id'] = params['profile_id'] - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/tms/v1/paymentinstruments/'+token_id, 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def paymentinstruments_token_id_get(self, profile_id, token_id, **kwargs): - """ - Retrieve a Payment Instrument - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.paymentinstruments_token_id_get(profile_id, token_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param str token_id: The TokenId of a Payment Instrument. (required) - :return: InlineResponse2016 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.paymentinstruments_token_id_get_with_http_info(profile_id, token_id, **kwargs) - else: - (data) = self.paymentinstruments_token_id_get_with_http_info(profile_id, token_id, **kwargs) - return data - - def paymentinstruments_token_id_get_with_http_info(self, profile_id, token_id, **kwargs): - """ - Retrieve a Payment Instrument - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.paymentinstruments_token_id_get_with_http_info(profile_id, token_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param str token_id: The TokenId of a Payment Instrument. (required) - :return: InlineResponse2016 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['profile_id', 'token_id'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method paymentinstruments_token_id_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'profile_id' is set - if ('profile_id' not in params) or (params['profile_id'] is None): - raise ValueError("Missing the required parameter `profile_id` when calling `paymentinstruments_token_id_get`") - # verify the required parameter 'token_id' is set - if ('token_id' not in params) or (params['token_id'] is None): - raise ValueError("Missing the required parameter `token_id` when calling `paymentinstruments_token_id_get`") - - '''if 'profile_id' in params and params['profile_id'] > 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `paymentinstruments_token_id_get`, must be a value less than or equal to `36`") - if 'profile_id' in params and params['profile_id'] < 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `paymentinstruments_token_id_get`, must be a value greater than or equal to `36`") - if 'token_id' in params and params['token_id'] > 32: - raise ValueError("Invalid value for parameter `token_id` when calling `paymentinstruments_token_id_get`, must be a value less than or equal to `32`") - if 'token_id' in params and params['token_id'] < 16: - raise ValueError("Invalid value for parameter `token_id` when calling `paymentinstruments_token_id_get`, must be a value greater than or equal to `16`")''' - - collection_formats = {} - - path_params = {} - if 'token_id' in params: - path_params['tokenId'] = params['token_id'] - - query_params = [] - - header_params = {} - if 'profile_id' in params: - header_params['profile-id'] = params['profile_id'] - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/tms/v1/paymentinstruments/'+token_id, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2016', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def paymentinstruments_token_id_patch(self, profile_id, token_id, body, **kwargs): - """ - Update a Payment Instrument - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.paymentinstruments_token_id_patch(profile_id, token_id, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param str token_id: The TokenId of a Payment Instrument. (required) - :param Body3 body: Please specify the customers payment details. (required) - :return: InlineResponse2016 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, **kwargs) - else: - (data) = self.paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, **kwargs) - return data - - def paymentinstruments_token_id_patch_with_http_info(self, profile_id, token_id, body, **kwargs): - """ - Update a Payment Instrument - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str profile_id: The id of a profile containing user specific TMS configuration. (required) - :param str token_id: The TokenId of a Payment Instrument. (required) - :param Body3 body: Please specify the customers payment details. (required) - :return: InlineResponse2016 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['profile_id', 'token_id', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method paymentinstruments_token_id_patch" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'profile_id' is set - if ('profile_id' not in params) or (params['profile_id'] is None): - raise ValueError("Missing the required parameter `profile_id` when calling `paymentinstruments_token_id_patch`") - # verify the required parameter 'token_id' is set - if ('token_id' not in params) or (params['token_id'] is None): - raise ValueError("Missing the required parameter `token_id` when calling `paymentinstruments_token_id_patch`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `paymentinstruments_token_id_patch`") - - '''if 'profile_id' in params and params['profile_id'] > 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `paymentinstruments_token_id_patch`, must be a value less than or equal to `36`") - if 'profile_id' in params and params['profile_id'] < 36: - raise ValueError("Invalid value for parameter `profile_id` when calling `paymentinstruments_token_id_patch`, must be a value greater than or equal to `36`") - if 'token_id' in params and params['token_id'] > 32: - raise ValueError("Invalid value for parameter `token_id` when calling `paymentinstruments_token_id_patch`, must be a value less than or equal to `32`") - if 'token_id' in params and params['token_id'] < 16: - raise ValueError("Invalid value for parameter `token_id` when calling `paymentinstruments_token_id_patch`, must be a value greater than or equal to `16`")''' - - collection_formats = {} - - path_params = {} - if 'token_id' in params: - path_params['tokenId'] = params['token_id'] - - query_params = [] - - header_params = {} - if 'profile_id' in params: - header_params['profile-id'] = params['profile_id'] - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/tms/v1/paymentinstruments/'+token_id, 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2016', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/CyberSource/apis/payment_instruments_api.py b/CyberSource/apis/payment_instruments_api.py new file mode 100644 index 00000000..47fdf1de --- /dev/null +++ b/CyberSource/apis/payment_instruments_api.py @@ -0,0 +1,655 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class PaymentInstrumentsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def tms_v1_instrumentidentifiers_token_id_paymentinstruments_get(self, profile_id, token_id, **kwargs): + """ + Retrieve all Payment Instruments associated with an Instrument Identifier + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param str token_id: The TokenId of an Instrument Identifier. (required) + :param str offset: Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. + :param str limit: The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. + :return: TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, **kwargs) + else: + (data) = self.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, **kwargs) + return data + + def tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(self, profile_id, token_id, **kwargs): + """ + Retrieve all Payment Instruments associated with an Instrument Identifier + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param str token_id: The TokenId of an Instrument Identifier. (required) + :param str offset: Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. + :param str limit: The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. + :return: TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['profile_id', 'token_id', 'offset', 'limit'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method tms_v1_instrumentidentifiers_token_id_paymentinstruments_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'profile_id' is set + if ('profile_id' not in params) or (params['profile_id'] is None): + raise ValueError("Missing the required parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_paymentinstruments_get`") + # verify the required parameter 'token_id' is set + if ('token_id' not in params) or (params['token_id'] is None): + raise ValueError("Missing the required parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_paymentinstruments_get`") + + '''if 'profile_id' in params and params['profile_id'] > 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_paymentinstruments_get`, must be a value less than or equal to `36`") + if 'profile_id' in params and params['profile_id'] < 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_instrumentidentifiers_token_id_paymentinstruments_get`, must be a value greater than or equal to `36`") + if 'token_id' in params and params['token_id'] > 32: + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_paymentinstruments_get`, must be a value less than or equal to `32`") + if 'token_id' in params and params['token_id'] < 16: + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_instrumentidentifiers_token_id_paymentinstruments_get`, must be a value greater than or equal to `16`")''' + if 'offset' in params and params['offset'] < 0: + raise ValueError("Invalid value for parameter `offset` when calling `tms_v1_instrumentidentifiers_token_id_paymentinstruments_get`, must be a value greater than or equal to `0`") + if 'limit' in params and params['limit'] > 100: + raise ValueError("Invalid value for parameter `limit` when calling `tms_v1_instrumentidentifiers_token_id_paymentinstruments_get`, must be a value less than or equal to `100`") + if 'limit' in params and params['limit'] < 1: + raise ValueError("Invalid value for parameter `limit` when calling `tms_v1_instrumentidentifiers_token_id_paymentinstruments_get`, must be a value greater than or equal to `1`") + + collection_formats = {} + + path_params = {} + if 'token_id' in params: + path_params['tokenId'] = params['token_id'] + + query_params = [] + if 'offset' in params: + query_params.append(('offset', params['offset'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + + header_params = {} + if 'profile_id' in params: + header_params['profile-id'] = params['profile_id'] + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + #header_params['Content-Type'] = self.api_client.\ + #select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/tms/v1/instrumentidentifiers/'+token_id+'/paymentinstruments', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def tms_v1_paymentinstruments_post(self, profile_id, body, **kwargs): + """ + Create a Payment Instrument + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_paymentinstruments_post(profile_id, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param Body2 body: Please specify the customers payment details for card or bank account. (required) + :return: TmsV1PaymentinstrumentsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.tms_v1_paymentinstruments_post_with_http_info(profile_id, body, **kwargs) + else: + (data) = self.tms_v1_paymentinstruments_post_with_http_info(profile_id, body, **kwargs) + return data + + def tms_v1_paymentinstruments_post_with_http_info(self, profile_id, body, **kwargs): + """ + Create a Payment Instrument + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_paymentinstruments_post_with_http_info(profile_id, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param Body2 body: Please specify the customers payment details for card or bank account. (required) + :return: TmsV1PaymentinstrumentsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['profile_id', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method tms_v1_paymentinstruments_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'profile_id' is set + if ('profile_id' not in params) or (params['profile_id'] is None): + raise ValueError("Missing the required parameter `profile_id` when calling `tms_v1_paymentinstruments_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `tms_v1_paymentinstruments_post`") + + '''if 'profile_id' in params and params['profile_id'] > 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_paymentinstruments_post`, must be a value less than or equal to `36`") + if 'profile_id' in params and params['profile_id'] < 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_paymentinstruments_post`, must be a value greater than or equal to `36`")''' + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'profile_id' in params: + header_params['profile-id'] = params['profile_id'] + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + #header_params['Content-Type'] = self.api_client.\ + #select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/tms/v1/paymentinstruments', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TmsV1PaymentinstrumentsPost201Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def tms_v1_paymentinstruments_token_id_delete(self, profile_id, token_id, **kwargs): + """ + Delete a Payment Instrument + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_paymentinstruments_token_id_delete(profile_id, token_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param str token_id: The TokenId of a Payment Instrument. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.tms_v1_paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, **kwargs) + else: + (data) = self.tms_v1_paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, **kwargs) + return data + + def tms_v1_paymentinstruments_token_id_delete_with_http_info(self, profile_id, token_id, **kwargs): + """ + Delete a Payment Instrument + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param str token_id: The TokenId of a Payment Instrument. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['profile_id', 'token_id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method tms_v1_paymentinstruments_token_id_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'profile_id' is set + if ('profile_id' not in params) or (params['profile_id'] is None): + raise ValueError("Missing the required parameter `profile_id` when calling `tms_v1_paymentinstruments_token_id_delete`") + # verify the required parameter 'token_id' is set + if ('token_id' not in params) or (params['token_id'] is None): + raise ValueError("Missing the required parameter `token_id` when calling `tms_v1_paymentinstruments_token_id_delete`") + + '''if 'profile_id' in params and params['profile_id'] > 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_paymentinstruments_token_id_delete`, must be a value less than or equal to `36`") + if 'profile_id' in params and params['profile_id'] < 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_paymentinstruments_token_id_delete`, must be a value greater than or equal to `36`") + if 'token_id' in params and params['token_id'] > 32: + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_paymentinstruments_token_id_delete`, must be a value less than or equal to `32`") + if 'token_id' in params and params['token_id'] < 16: + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_paymentinstruments_token_id_delete`, must be a value greater than or equal to `16`")''' + + collection_formats = {} + + path_params = {} + if 'token_id' in params: + path_params['tokenId'] = params['token_id'] + + query_params = [] + + header_params = {} + if 'profile_id' in params: + header_params['profile-id'] = params['profile_id'] + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + #header_params['Content-Type'] = self.api_client.\ + #select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/tms/v1/paymentinstruments/'+token_id, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def tms_v1_paymentinstruments_token_id_get(self, profile_id, token_id, **kwargs): + """ + Retrieve a Payment Instrument + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_paymentinstruments_token_id_get(profile_id, token_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param str token_id: The TokenId of a Payment Instrument. (required) + :return: TmsV1PaymentinstrumentsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.tms_v1_paymentinstruments_token_id_get_with_http_info(profile_id, token_id, **kwargs) + else: + (data) = self.tms_v1_paymentinstruments_token_id_get_with_http_info(profile_id, token_id, **kwargs) + return data + + def tms_v1_paymentinstruments_token_id_get_with_http_info(self, profile_id, token_id, **kwargs): + """ + Retrieve a Payment Instrument + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_paymentinstruments_token_id_get_with_http_info(profile_id, token_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param str token_id: The TokenId of a Payment Instrument. (required) + :return: TmsV1PaymentinstrumentsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['profile_id', 'token_id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method tms_v1_paymentinstruments_token_id_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'profile_id' is set + if ('profile_id' not in params) or (params['profile_id'] is None): + raise ValueError("Missing the required parameter `profile_id` when calling `tms_v1_paymentinstruments_token_id_get`") + # verify the required parameter 'token_id' is set + if ('token_id' not in params) or (params['token_id'] is None): + raise ValueError("Missing the required parameter `token_id` when calling `tms_v1_paymentinstruments_token_id_get`") + + '''if 'profile_id' in params and params['profile_id'] > 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_paymentinstruments_token_id_get`, must be a value less than or equal to `36`") + if 'profile_id' in params and params['profile_id'] < 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_paymentinstruments_token_id_get`, must be a value greater than or equal to `36`") + if 'token_id' in params and params['token_id'] > 32: + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_paymentinstruments_token_id_get`, must be a value less than or equal to `32`") + if 'token_id' in params and params['token_id'] < 16: + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_paymentinstruments_token_id_get`, must be a value greater than or equal to `16`")''' + + collection_formats = {} + + path_params = {} + if 'token_id' in params: + path_params['tokenId'] = params['token_id'] + + query_params = [] + + header_params = {} + if 'profile_id' in params: + header_params['profile-id'] = params['profile_id'] + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + #header_params['Content-Type'] = self.api_client.\ + #select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/tms/v1/paymentinstruments/'+token_id, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TmsV1PaymentinstrumentsPost201Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def tms_v1_paymentinstruments_token_id_patch(self, profile_id, token_id, body, **kwargs): + """ + Update a Payment Instrument + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_paymentinstruments_token_id_patch(profile_id, token_id, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param str token_id: The TokenId of a Payment Instrument. (required) + :param Body3 body: Please specify the customers payment details. (required) + :return: TmsV1PaymentinstrumentsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.tms_v1_paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, **kwargs) + else: + (data) = self.tms_v1_paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, **kwargs) + return data + + def tms_v1_paymentinstruments_token_id_patch_with_http_info(self, profile_id, token_id, body, **kwargs): + """ + Update a Payment Instrument + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.tms_v1_paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str profile_id: The id of a profile containing user specific TMS configuration. (required) + :param str token_id: The TokenId of a Payment Instrument. (required) + :param Body3 body: Please specify the customers payment details. (required) + :return: TmsV1PaymentinstrumentsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['profile_id', 'token_id', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method tms_v1_paymentinstruments_token_id_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'profile_id' is set + if ('profile_id' not in params) or (params['profile_id'] is None): + raise ValueError("Missing the required parameter `profile_id` when calling `tms_v1_paymentinstruments_token_id_patch`") + # verify the required parameter 'token_id' is set + if ('token_id' not in params) or (params['token_id'] is None): + raise ValueError("Missing the required parameter `token_id` when calling `tms_v1_paymentinstruments_token_id_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `tms_v1_paymentinstruments_token_id_patch`") + + '''if 'profile_id' in params and params['profile_id'] > 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_paymentinstruments_token_id_patch`, must be a value less than or equal to `36`") + if 'profile_id' in params and params['profile_id'] < 36: + raise ValueError("Invalid value for parameter `profile_id` when calling `tms_v1_paymentinstruments_token_id_patch`, must be a value greater than or equal to `36`") + if 'token_id' in params and params['token_id'] > 32: + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_paymentinstruments_token_id_patch`, must be a value less than or equal to `32`") + if 'token_id' in params and params['token_id'] < 16: + raise ValueError("Invalid value for parameter `token_id` when calling `tms_v1_paymentinstruments_token_id_patch`, must be a value greater than or equal to `16`")''' + + collection_formats = {} + + path_params = {} + if 'token_id' in params: + path_params['tokenId'] = params['token_id'] + + query_params = [] + + header_params = {} + if 'profile_id' in params: + header_params['profile-id'] = params['profile_id'] + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json;charset=utf-8']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/tms/v1/paymentinstruments/'+token_id, 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TmsV1PaymentinstrumentsPost201Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/payments_api.py b/CyberSource/apis/payments_api.py new file mode 100644 index 00000000..3d67686b --- /dev/null +++ b/CyberSource/apis/payments_api.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class PaymentsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def create_payment(self, create_payment_request, **kwargs): + """ + Process a Payment + Authorize the payment for the transaction. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_payment(create_payment_request, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param CreatePaymentRequest create_payment_request: (required) + :return: PtsV2PaymentsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_payment_with_http_info(create_payment_request, **kwargs) + else: + (data) = self.create_payment_with_http_info(create_payment_request, **kwargs) + return data + + def create_payment_with_http_info(self, create_payment_request, **kwargs): + """ + Process a Payment + Authorize the payment for the transaction. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_payment_with_http_info(create_payment_request, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param CreatePaymentRequest create_payment_request: (required) + :return: PtsV2PaymentsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['create_payment_request'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_payment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'create_payment_request' is set + if ('create_payment_request' not in params) or (params['create_payment_request'] is None): + raise ValueError("Missing the required parameter `create_payment_request` when calling `create_payment`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'create_payment_request' in params: + body_params = params['create_payment_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client. \ + select_header_accept(['application/hal+json;charset=utf-8']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client. \ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/pts/v2/payments/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PtsV2PaymentsPost201Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/process_a_payout_api.py b/CyberSource/apis/process_a_payout_api.py new file mode 100644 index 00000000..12cbea87 --- /dev/null +++ b/CyberSource/apis/process_a_payout_api.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ProcessAPayoutApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def oct_create_payment(self, oct_create_payment_request, **kwargs): + """ + Process a Payout + Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT). + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oct_create_payment(oct_create_payment_request, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param PtsV2PayoutsPostResponse oct_create_payment_request: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.oct_create_payment_with_http_info(oct_create_payment_request, **kwargs) + else: + (data) = self.oct_create_payment_with_http_info(oct_create_payment_request, **kwargs) + return data + + def oct_create_payment_with_http_info(self, oct_create_payment_request, **kwargs): + """ + Process a Payout + Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT). + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.oct_create_payment_with_http_info(oct_create_payment_request, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param PtsV2PayoutsPostResponse oct_create_payment_request: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['oct_create_payment_request'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method oct_create_payment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'oct_create_payment_request' is set + if ('oct_create_payment_request' not in params) or (params['oct_create_payment_request'] is None): + raise ValueError("Missing the required parameter `oct_create_payment_request` when calling `oct_create_payment`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'oct_create_payment_request' in params: + body_params = params['oct_create_payment_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client. \ + select_header_accept(['application/hal+json;charset=utf-8']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client. \ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/pts/v2/payouts/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/purchase_and_refund_details_api.py b/CyberSource/apis/purchase_and_refund_details_api.py new file mode 100644 index 00000000..4484800d --- /dev/null +++ b/CyberSource/apis/purchase_and_refund_details_api.py @@ -0,0 +1,190 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class PurchaseAndRefundDetailsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def get_purchase_and_refund_details(self, start_time, end_time, **kwargs): + """ + Get Purchase and Refund details + Purchase And Refund Details Description + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_purchase_and_refund_details(start_time, end_time, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param datetime start_time: Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :param datetime end_time: Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :param str organization_id: Valid Cybersource Organization Id + :param str payment_subtype: Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit + :param str view_by: View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date + :param str group_name: Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds + :param int offset: Offset of the Purchase and Refund Results. + :param int limit: Results count per page. Range(1-2000) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_purchase_and_refund_details_with_http_info(start_time, end_time, **kwargs) + else: + (data) = self.get_purchase_and_refund_details_with_http_info(start_time, end_time, **kwargs) + return data + + def get_purchase_and_refund_details_with_http_info(self, start_time, end_time, **kwargs): + """ + Get Purchase and Refund details + Purchase And Refund Details Description + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_purchase_and_refund_details_with_http_info(start_time, end_time, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param datetime start_time: Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :param datetime end_time: Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :param str organization_id: Valid Cybersource Organization Id + :param str payment_subtype: Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit + :param str view_by: View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date + :param str group_name: Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds + :param int offset: Offset of the Purchase and Refund Results. + :param int limit: Results count per page. Range(1-2000) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start_time', 'end_time', 'organization_id', 'payment_subtype', 'view_by', 'group_name', 'offset', 'limit'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_purchase_and_refund_details" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'start_time' is set + if ('start_time' not in params) or (params['start_time'] is None): + raise ValueError("Missing the required parameter `start_time` when calling `get_purchase_and_refund_details`") + # verify the required parameter 'end_time' is set + if ('end_time' not in params) or (params['end_time'] is None): + raise ValueError("Missing the required parameter `end_time` when calling `get_purchase_and_refund_details`") + + if 'organization_id' in params and len(params['organization_id']) > 32: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_purchase_and_refund_details`, length must be less than or equal to `32`") + if 'organization_id' in params and len(params['organization_id']) < 1: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_purchase_and_refund_details`, length must be greater than or equal to `1`") + if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']): + raise ValueError("Invalid value for parameter `organization_id` when calling `get_purchase_and_refund_details`, must conform to the pattern `/[a-zA-Z0-9-_]+/`") + if 'limit' in params and params['limit'] > 2000: + raise ValueError("Invalid value for parameter `limit` when calling `get_purchase_and_refund_details`, must be a value less than or equal to `2000`") + if 'limit' in params and params['limit'] < 1: + raise ValueError("Invalid value for parameter `limit` when calling `get_purchase_and_refund_details`, must be a value greater than or equal to `1`") + + collection_formats = {} + + path_params = {} + + query_params = [] + '''if 'start_time' in params: + query_params.append(('startTime', params['start_time'])) + if 'end_time' in params: + query_params.append(('endTime', params['end_time']))''' + if 'organization_id' in params: + query_params.append(('organizationId', params['organization_id'])) + if 'payment_subtype' in params: + query_params.append(('paymentSubtype', params['payment_subtype'])) + if 'view_by' in params: + query_params.append(('viewBy', params['view_by'])) + if 'group_name' in params: + query_params.append(('groupName', params['group_name'])) + if 'offset' in params: + query_params.append(('offset', params['offset'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/purchase-refund-details?startTime='+start_time+'&endTime='+end_time, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/refund_api.py b/CyberSource/apis/refund_api.py index 8c202820..3b21ed6e 100644 --- a/CyberSource/apis/refund_api.py +++ b/CyberSource/apis/refund_api.py @@ -42,112 +42,6 @@ def __init__(self, merchant_config, api_client=None): self.api_client.set_configaration(merchant_config) - def get_refund(self, id, **kwargs): - """ - Retrieve a Refund - Include the refund ID in the GET request to to retrieve the refund details. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_refund(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The refund ID. This ID is returned from a previous refund request. (required) - :return: InlineResponse2005 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_refund_with_http_info(id, **kwargs) - else: - (data) = self.get_refund_with_http_info(id, **kwargs) - return data - - def get_refund_with_http_info(self, id, **kwargs): - """ - Retrieve a Refund - Include the refund ID in the GET request to to retrieve the refund details. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_refund_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The refund ID. This ID is returned from a previous refund request. (required) - :return: InlineResponse2005 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_refund" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_refund`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client. \ - select_header_accept(['application/hal+json;charset=utf-8']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client. \ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/pts/v2/refunds/'+id, 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2005', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def refund_capture(self, refund_capture_request, id, **kwargs): """ Refund a Capture @@ -164,7 +58,7 @@ def refund_capture(self, refund_capture_request, id, **kwargs): for asynchronous request. (optional) :param RefundCaptureRequest refund_capture_request: (required) :param str id: The capture ID. This ID is returned from a previous capture request. (required) - :return: InlineResponse2013 + :return: PtsV2PaymentsRefundPost201Response If the method is called asynchronously, returns the request thread. """ @@ -191,7 +85,7 @@ def refund_capture_with_http_info(self, refund_capture_request, id, **kwargs): for asynchronous request. (optional) :param RefundCaptureRequest refund_capture_request: (required) :param str id: The capture ID. This ID is returned from a previous capture request. (required) - :return: InlineResponse2013 + :return: PtsV2PaymentsRefundPost201Response If the method is called asynchronously, returns the request thread. """ @@ -253,7 +147,7 @@ def refund_capture_with_http_info(self, refund_capture_request, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2013', + response_type='PtsV2PaymentsRefundPost201Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -277,7 +171,7 @@ def refund_payment(self, refund_payment_request, id, **kwargs): for asynchronous request. (optional) :param RefundPaymentRequest refund_payment_request: (required) :param str id: The payment ID. This ID is returned from a previous payment request. (required) - :return: InlineResponse2013 + :return: PtsV2PaymentsRefundPost201Response If the method is called asynchronously, returns the request thread. """ @@ -304,7 +198,7 @@ def refund_payment_with_http_info(self, refund_payment_request, id, **kwargs): for asynchronous request. (optional) :param RefundPaymentRequest refund_payment_request: (required) :param str id: The payment ID. This ID is returned from a previous payment request. (required) - :return: InlineResponse2013 + :return: PtsV2PaymentsRefundPost201Response If the method is called asynchronously, returns the request thread. """ @@ -366,7 +260,7 @@ def refund_payment_with_http_info(self, refund_payment_request, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2013', + response_type='PtsV2PaymentsRefundPost201Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/CyberSource/apis/report_definitions_api.py b/CyberSource/apis/report_definitions_api.py new file mode 100644 index 00000000..2f99fe49 --- /dev/null +++ b/CyberSource/apis/report_definitions_api.py @@ -0,0 +1,268 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ReportDefinitionsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def get_resource_info_by_report_definition(self, report_definition_name, **kwargs): + """ + Get a single report definition information + The report definition name must be used as path parameter exclusive of each other + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_resource_info_by_report_definition(report_definition_name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_definition_name: Name of the Report definition to retrieve (required) + :param str organization_id: Valid Cybersource Organization Id + :return: ReportingV3ReportDefinitionsNameGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_resource_info_by_report_definition_with_http_info(report_definition_name, **kwargs) + else: + (data) = self.get_resource_info_by_report_definition_with_http_info(report_definition_name, **kwargs) + return data + + def get_resource_info_by_report_definition_with_http_info(self, report_definition_name, **kwargs): + """ + Get a single report definition information + The report definition name must be used as path parameter exclusive of each other + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_resource_info_by_report_definition_with_http_info(report_definition_name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_definition_name: Name of the Report definition to retrieve (required) + :param str organization_id: Valid Cybersource Organization Id + :return: ReportingV3ReportDefinitionsNameGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['report_definition_name', 'organization_id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_resource_info_by_report_definition" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'report_definition_name' is set + if ('report_definition_name' not in params) or (params['report_definition_name'] is None): + raise ValueError("Missing the required parameter `report_definition_name` when calling `get_resource_info_by_report_definition`") + + if 'organization_id' in params and len(params['organization_id']) > 32: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_resource_info_by_report_definition`, length must be less than or equal to `32`") + if 'organization_id' in params and len(params['organization_id']) < 1: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_resource_info_by_report_definition`, length must be greater than or equal to `1`") + if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']): + raise ValueError("Invalid value for parameter `organization_id` when calling `get_resource_info_by_report_definition`, must conform to the pattern `/[a-zA-Z0-9-_]+/`") + + collection_formats = {} + + path_params = {} + if 'report_definition_name' in params: + path_params['reportDefinitionName'] = params['report_definition_name'] + + query_params = [] + if 'organization_id' in params: + query_params.append(('organizationId', params['organization_id'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/report-definitions/'+report_definition_name, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportingV3ReportDefinitionsNameGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_resource_v2_info(self, **kwargs): + """ + Get reporting resource information + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_resource_v2_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str organization_id: Valid Cybersource Organization Id + :return: ReportingV3ReportDefinitionsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_resource_v2_info_with_http_info(**kwargs) + else: + (data) = self.get_resource_v2_info_with_http_info(**kwargs) + return data + + def get_resource_v2_info_with_http_info(self, **kwargs): + """ + Get reporting resource information + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_resource_v2_info_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str organization_id: Valid Cybersource Organization Id + :return: ReportingV3ReportDefinitionsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['organization_id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_resource_v2_info" % key + ) + params[key] = val + del params['kwargs'] + + if 'organization_id' in params and len(params['organization_id']) > 32: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_resource_v2_info`, length must be less than or equal to `32`") + if 'organization_id' in params and len(params['organization_id']) < 1: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_resource_v2_info`, length must be greater than or equal to `1`") + if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']): + raise ValueError("Invalid value for parameter `organization_id` when calling `get_resource_v2_info`, must conform to the pattern `/[a-zA-Z0-9-_]+/`") + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'organization_id' in params: + query_params.append(('organizationId', params['organization_id'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/report-definitions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportingV3ReportDefinitionsGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/report_downloads_api.py b/CyberSource/apis/report_downloads_api.py new file mode 100644 index 00000000..c38b7c54 --- /dev/null +++ b/CyberSource/apis/report_downloads_api.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ReportDownloadsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def download_report(self, report_date, report_name, **kwargs): + """ + Download a report + Download a report for the given report name on the specified date + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.download_report(report_date, report_name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param date report_date: Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + :param str report_name: Name of the report to download (required) + :param str organization_id: Valid Cybersource Organization Id + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.download_report_with_http_info(report_date, report_name, **kwargs) + else: + (data) = self.download_report_with_http_info(report_date, report_name, **kwargs) + return data + + def download_report_with_http_info(self, report_date, report_name, **kwargs): + """ + Download a report + Download a report for the given report name on the specified date + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.download_report_with_http_info(report_date, report_name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param date report_date: Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + :param str report_name: Name of the report to download (required) + :param str organization_id: Valid Cybersource Organization Id + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['report_date', 'report_name', 'organization_id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method download_report" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'report_date' is set + if ('report_date' not in params) or (params['report_date'] is None): + raise ValueError("Missing the required parameter `report_date` when calling `download_report`") + # verify the required parameter 'report_name' is set + if ('report_name' not in params) or (params['report_name'] is None): + raise ValueError("Missing the required parameter `report_name` when calling `download_report`") + + if 'organization_id' in params and len(params['organization_id']) > 32: + raise ValueError("Invalid value for parameter `organization_id` when calling `download_report`, length must be less than or equal to `32`") + if 'organization_id' in params and len(params['organization_id']) < 1: + raise ValueError("Invalid value for parameter `organization_id` when calling `download_report`, length must be greater than or equal to `1`") + if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']): + raise ValueError("Invalid value for parameter `organization_id` when calling `download_report`, must conform to the pattern `/[a-zA-Z0-9-_]+/`") + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'organization_id' in params: + query_params.append(('organizationId', params['organization_id'])) + if 'report_date' in params: + query_params.append(('reportDate', params['report_date'])) + if 'report_name' in params: + query_params.append(('reportName', params['report_name'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/xml', 'test/csv']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/report-downloads', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/report_subscriptions_api.py b/CyberSource/apis/report_subscriptions_api.py new file mode 100644 index 00000000..0302ab51 --- /dev/null +++ b/CyberSource/apis/report_subscriptions_api.py @@ -0,0 +1,478 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ReportSubscriptionsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def create_subscription(self, request_body, **kwargs): + """ + Create Report Subscription for a report name by organization + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_subscription(request_body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_name: Name of the Report to Create (required) + :param RequestBody request_body: Report subscription request payload (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_subscription_with_http_info(request_body, **kwargs) + else: + (data) = self.create_subscription_with_http_info(request_body, **kwargs) + return data + + def create_subscription_with_http_info(self,request_body, **kwargs): + """ + Create Report Subscription for a report name by organization + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_subscription_with_http_info(request_body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_name: Name of the Report to Create (required) + :param RequestBody request_body: Report subscription request payload (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['report_name', 'request_body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_subscription" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'report_name' is set + #if ('report_name' not in params) or (params['report_name'] is None): + #raise ValueError("Missing the required parameter `report_name` when calling `create_subscription`") + # verify the required parameter 'request_body' is set + if ('request_body' not in params) or (params['request_body'] is None): + raise ValueError("Missing the required parameter `request_body` when calling `create_subscription`") + + + collection_formats = {} + + path_params = {} + if 'report_name' in params: + path_params['reportName'] = params['report_name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request_body' in params: + body_params = params['request_body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/report-subscriptions/', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_subscription(self, report_name, **kwargs): + """ + Delete subscription of a report name by organization + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_subscription(report_name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_name: Name of the Report to Delete (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_subscription_with_http_info(report_name, **kwargs) + else: + (data) = self.delete_subscription_with_http_info(report_name, **kwargs) + return data + + def delete_subscription_with_http_info(self, report_name, **kwargs): + """ + Delete subscription of a report name by organization + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_subscription_with_http_info(report_name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_name: Name of the Report to Delete (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['report_name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_subscription" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'report_name' is set + if ('report_name' not in params) or (params['report_name'] is None): + raise ValueError("Missing the required parameter `report_name` when calling `delete_subscription`") + + if 'report_name' in params and len(params['report_name']) > 80: + raise ValueError("Invalid value for parameter `report_name` when calling `delete_subscription`, length must be less than or equal to `80`") + if 'report_name' in params and len(params['report_name']) < 1: + raise ValueError("Invalid value for parameter `report_name` when calling `delete_subscription`, length must be greater than or equal to `1`") + if 'report_name' in params and not re.search('[a-zA-Z0-9-_+]+', params['report_name']): + raise ValueError("Invalid value for parameter `report_name` when calling `delete_subscription`, must conform to the pattern `/[a-zA-Z0-9-_+]+/`") + + collection_formats = {} + + path_params = {} + if 'report_name' in params: + path_params['reportName'] = params['report_name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/report-subscriptions/'+report_name, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_all_subscriptions(self, **kwargs): + """ + Retrieve all subscriptions by organization + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_all_subscriptions(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: ReportingV3ReportSubscriptionsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_all_subscriptions_with_http_info(**kwargs) + else: + (data) = self.get_all_subscriptions_with_http_info(**kwargs) + return data + + def get_all_subscriptions_with_http_info(self, **kwargs): + """ + Retrieve all subscriptions by organization + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_all_subscriptions_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: ReportingV3ReportSubscriptionsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_all_subscriptions" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/report-subscriptions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportingV3ReportSubscriptionsGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_subscription(self, report_name, **kwargs): + """ + Retrieve subscription for a report name by organization + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_subscription(report_name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_name: Name of the Report to Retrieve (required) + :return: ReportingV3ReportSubscriptionsGet200ResponseSubscriptions + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_subscription_with_http_info(report_name, **kwargs) + else: + (data) = self.get_subscription_with_http_info(report_name, **kwargs) + return data + + def get_subscription_with_http_info(self, report_name, **kwargs): + """ + Retrieve subscription for a report name by organization + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_subscription_with_http_info(report_name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_name: Name of the Report to Retrieve (required) + :return: ReportingV3ReportSubscriptionsGet200ResponseSubscriptions + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['report_name'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_subscription" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'report_name' is set + if ('report_name' not in params) or (params['report_name'] is None): + raise ValueError("Missing the required parameter `report_name` when calling `get_subscription`") + + if 'report_name' in params and len(params['report_name']) > 80: + raise ValueError("Invalid value for parameter `report_name` when calling `get_subscription`, length must be less than or equal to `80`") + if 'report_name' in params and len(params['report_name']) < 1: + raise ValueError("Invalid value for parameter `report_name` when calling `get_subscription`, length must be greater than or equal to `1`") + if 'report_name' in params and not re.search('[a-zA-Z0-9-_+]+', params['report_name']): + raise ValueError("Invalid value for parameter `report_name` when calling `get_subscription`, must conform to the pattern `/[a-zA-Z0-9-_+]+/`") + + collection_formats = {} + + path_params = {} + if 'report_name' in params: + path_params['reportName'] = params['report_name'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/report-subscriptions/'+report_name, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportingV3ReportSubscriptionsGet200ResponseSubscriptions', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/reports_api.py b/CyberSource/apis/reports_api.py new file mode 100644 index 00000000..25f069f5 --- /dev/null +++ b/CyberSource/apis/reports_api.py @@ -0,0 +1,415 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ReportsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def create_report(self, request_body, **kwargs): + """ + Create Adhoc Report + Create one time report + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_report(request_body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param RequestBody1 request_body: Report subscription request payload (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_report_with_http_info(request_body, **kwargs) + else: + (data) = self.create_report_with_http_info(request_body, **kwargs) + return data + + def create_report_with_http_info(self, request_body, **kwargs): + """ + Create Adhoc Report + Create one time report + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_report_with_http_info(request_body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param RequestBody1 request_body: Report subscription request payload (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['request_body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_report" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'request_body' is set + if ('request_body' not in params) or (params['request_body'] is None): + raise ValueError("Missing the required parameter `request_body` when calling `create_report`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'request_body' in params: + body_params = params['request_body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client. \ + select_header_accept(['application/hal+json;charset=utf-8']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client. \ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/reports', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_report_by_report_id(self, report_id, **kwargs): + """ + Get Report based on reportId + ReportId is mandatory input + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_report_by_report_id(report_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_id: Valid Report Id (required) + :param str organization_id: Valid Cybersource Organization Id + :return: ReportingV3ReportsIdGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_report_by_report_id_with_http_info(report_id, **kwargs) + else: + (data) = self.get_report_by_report_id_with_http_info(report_id, **kwargs) + return data + + def get_report_by_report_id_with_http_info(self, report_id, **kwargs): + """ + Get Report based on reportId + ReportId is mandatory input + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_report_by_report_id_with_http_info(report_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_id: Valid Report Id (required) + :param str organization_id: Valid Cybersource Organization Id + :return: ReportingV3ReportsIdGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['report_id', 'organization_id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_report_by_report_id" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'report_id' is set + if ('report_id' not in params) or (params['report_id'] is None): + raise ValueError("Missing the required parameter `report_id` when calling `get_report_by_report_id`") + + if 'organization_id' in params and len(params['organization_id']) > 32: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_report_by_report_id`, length must be less than or equal to `32`") + if 'organization_id' in params and len(params['organization_id']) < 1: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_report_by_report_id`, length must be greater than or equal to `1`") + if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']): + raise ValueError("Invalid value for parameter `organization_id` when calling `get_report_by_report_id`, must conform to the pattern `/[a-zA-Z0-9-_]+/`") + + collection_formats = {} + + path_params = {} + if 'report_id' in params: + path_params['reportId'] = params['report_id'] + + query_params = [] + if 'organization_id' in params: + query_params.append(('organizationId', params['organization_id'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json', 'application/xml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/reports/'+report_id, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportingV3ReportsIdGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def search_reports(self, start_time, end_time, time_query_type, **kwargs): + """ + Retrieve available reports + Retrieve list of available reports + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.search_reports(start_time, end_time, time_query_type, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param datetime start_time: Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :param datetime end_time: Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :param str time_query_type: Specify time you woud like to search (required) + :param str organization_id: Valid Cybersource Organization Id + :param str report_mime_type: Valid Report Format + :param str report_frequency: Valid Report Frequency + :param str report_name: Valid Report Name + :param int report_definition_id: Valid Report Definition Id + :param str report_status: Valid Report Status + :return: ReportingV3ReportsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.search_reports_with_http_info(start_time, end_time, time_query_type, **kwargs) + else: + (data) = self.search_reports_with_http_info(start_time, end_time, time_query_type, **kwargs) + return data + + def search_reports_with_http_info(self, start_time, end_time, time_query_type, **kwargs): + """ + Retrieve available reports + Retrieve list of available reports + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.search_reports_with_http_info(start_time, end_time, time_query_type, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param datetime start_time: Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :param datetime end_time: Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX (required) + :param str time_query_type: Specify time you woud like to search (required) + :param str organization_id: Valid Cybersource Organization Id + :param str report_mime_type: Valid Report Format + :param str report_frequency: Valid Report Frequency + :param str report_name: Valid Report Name + :param int report_definition_id: Valid Report Definition Id + :param str report_status: Valid Report Status + :return: ReportingV3ReportsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start_time', 'end_time', 'time_query_type', 'organization_id', 'report_mime_type', 'report_frequency', 'report_name', 'report_definition_id', 'report_status'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method search_reports" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'start_time' is set + if ('start_time' not in params) or (params['start_time'] is None): + raise ValueError("Missing the required parameter `start_time` when calling `search_reports`") + # verify the required parameter 'end_time' is set + if ('end_time' not in params) or (params['end_time'] is None): + raise ValueError("Missing the required parameter `end_time` when calling `search_reports`") + # verify the required parameter 'time_query_type' is set + if ('time_query_type' not in params) or (params['time_query_type'] is None): + raise ValueError("Missing the required parameter `time_query_type` when calling `search_reports`") + + if 'organization_id' in params and len(params['organization_id']) > 32: + raise ValueError("Invalid value for parameter `organization_id` when calling `search_reports`, length must be less than or equal to `32`") + if 'organization_id' in params and len(params['organization_id']) < 1: + raise ValueError("Invalid value for parameter `organization_id` when calling `search_reports`, length must be greater than or equal to `1`") + if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']): + raise ValueError("Invalid value for parameter `organization_id` when calling `search_reports`, must conform to the pattern `/[a-zA-Z0-9-_]+/`") + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'organization_id' in params: + query_params.append(('organizationId', params['organization_id'])) + '''if 'start_time' in params: + query_params.append(('startTime', params['start_time'])) + if 'end_time' in params: + query_params.append(('endTime', params['end_time'])) + if 'time_query_type' in params: + query_params.append(('timeQueryType', params['time_query_type']))''' + if 'report_mime_type' in params: + query_params.append(('reportMimeType', params['report_mime_type'])) + if 'report_frequency' in params: + query_params.append(('reportFrequency', params['report_frequency'])) + if 'report_name' in params: + query_params.append(('reportName', params['report_name'])) + if 'report_definition_id' in params: + query_params.append(('reportDefinitionId', params['report_definition_id'])) + if 'report_status' in params: + query_params.append(('reportStatus', params['report_status'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/reporting/v3/reports?startTime='+start_time+'&endTime='+end_time+'&timeQueryType='+time_query_type, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportingV3ReportsGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/reversal_api.py b/CyberSource/apis/reversal_api.py index 1e1c9fba..1789d456 100644 --- a/CyberSource/apis/reversal_api.py +++ b/CyberSource/apis/reversal_api.py @@ -58,7 +58,7 @@ def auth_reversal(self, id, auth_reversal_request, **kwargs): for asynchronous request. (optional) :param str id: The payment ID returned from a previous payment request. (required) :param AuthReversalRequest auth_reversal_request: (required) - :return: InlineResponse2011 + :return: PtsV2PaymentsReversalsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -85,7 +85,7 @@ def auth_reversal_with_http_info(self, id, auth_reversal_request, **kwargs): for asynchronous request. (optional) :param str id: The payment ID returned from a previous payment request. (required) :param AuthReversalRequest auth_reversal_request: (required) - :return: InlineResponse2011 + :return: PtsV2PaymentsReversalsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -129,7 +129,6 @@ def auth_reversal_with_http_info(self, id, auth_reversal_request, **kwargs): body_params = None if 'auth_reversal_request' in params: body_params = params['auth_reversal_request'] - # HTTP header `Accept` header_params['Accept'] = self.api_client. \ select_header_accept(['application/hal+json;charset=utf-8']) @@ -148,109 +147,7 @@ def auth_reversal_with_http_info(self, id, auth_reversal_request, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2011', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_auth_reversal(self, id, **kwargs): - """ - Retrieve an Authorization Reversal - Include the authorization reversal ID in the GET request to retrieve the authorization reversal details. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_auth_reversal(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The authorization reversal ID returned from a previous authorization reversal request. (required) - :return: InlineResponse2003 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_auth_reversal_with_http_info(id, **kwargs) - else: - (data) = self.get_auth_reversal_with_http_info(id, **kwargs) - return data - - def get_auth_reversal_with_http_info(self, id, **kwargs): - """ - Retrieve an Authorization Reversal - Include the authorization reversal ID in the GET request to retrieve the authorization reversal details. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_auth_reversal_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The authorization reversal ID returned from a previous authorization reversal request. (required) - :return: InlineResponse2003 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_auth_reversal" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_auth_reversal`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/v2/reversals/{id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2003', + response_type='PtsV2PaymentsReversalsPost201Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/CyberSource/apis/search_transactions_api.py b/CyberSource/apis/search_transactions_api.py new file mode 100644 index 00000000..db2882ca --- /dev/null +++ b/CyberSource/apis/search_transactions_api.py @@ -0,0 +1,255 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class SearchTransactionsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def create_search(self, create_search_request, **kwargs): + """ + Create a search request + Create a search request. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_search(create_search_request, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param TssV2TransactionsPostResponse create_search_request: (required) + :return: TssV2TransactionsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_search_with_http_info(create_search_request, **kwargs) + else: + (data) = self.create_search_with_http_info(create_search_request, **kwargs) + return data + + def create_search_with_http_info(self, create_search_request, **kwargs): + """ + Create a search request + Create a search request. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_search_with_http_info(create_search_request, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param TssV2TransactionsPostResponse create_search_request: (required) + :return: TssV2TransactionsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['create_search_request'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_search" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'create_search_request' is set + if ('create_search_request' not in params) or (params['create_search_request'] is None): + raise ValueError("Missing the required parameter `create_search_request` when calling `create_search`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'create_search_request' in params: + body_params = params['create_search_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json;charset=utf-8']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/tss/v2/searches', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TssV2TransactionsPost201Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_search(self, id, **kwargs): + """ + Get Search results + Include the Search ID in the GET request to retrieve the search results. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_search(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: Search ID. (required) + :return: TssV2TransactionsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_search_with_http_info(id, **kwargs) + else: + (data) = self.get_search_with_http_info(id, **kwargs) + return data + + def get_search_with_http_info(self, id, **kwargs): + """ + Get Search results + Include the Search ID in the GET request to retrieve the search results. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_search_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: Search ID. (required) + :return: TssV2TransactionsPost201Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_search" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_search`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/tss/v2/searches/'+id, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TssV2TransactionsPost201Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/secure_file_share_api.py b/CyberSource/apis/secure_file_share_api.py new file mode 100644 index 00000000..8b2a953e --- /dev/null +++ b/CyberSource/apis/secure_file_share_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class SecureFileShareApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def get_file(self, file_id, **kwargs): + """ + Download a file with file identifier + Download a file for the given file identifier + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_file(file_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str file_id: Unique identifier for each file (required) + :param str organization_id: Valid Cybersource Organization Id + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_file_with_http_info(file_id, **kwargs) + else: + (data) = self.get_file_with_http_info(file_id, **kwargs) + return data + + def get_file_with_http_info(self, file_id, **kwargs): + """ + Download a file with file identifier + Download a file for the given file identifier + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_file_with_http_info(file_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str file_id: Unique identifier for each file (required) + :param str organization_id: Valid Cybersource Organization Id + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file_id', 'organization_id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_file" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'file_id' is set + if ('file_id' not in params) or (params['file_id'] is None): + raise ValueError("Missing the required parameter `file_id` when calling `get_file`") + + if 'organization_id' in params and len(params['organization_id']) > 32: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_file`, length must be less than or equal to `32`") + if 'organization_id' in params and len(params['organization_id']) < 1: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_file`, length must be greater than or equal to `1`") + if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']): + raise ValueError("Invalid value for parameter `organization_id` when calling `get_file`, must conform to the pattern `/[a-zA-Z0-9-_]+/`") + + collection_formats = {} + + path_params = {} + if 'file_id' in params: + path_params['fileId'] = params['file_id'] + + query_params = [] + if 'organization_id' in params: + query_params.append(('organizationId', params['organization_id'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/xml', 'text/csv', 'application/pdf']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/hal+json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/sfs/v1/files/'+file_id, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_file_details(self, start_date, end_date, **kwargs): + """ + Get list of files + Get list of files and it's information of them available inside the report directory + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_file_details(start_date, end_date, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param date start_date: Valid start date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + :param date end_date: Valid end date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + :param str organization_id: Valid Cybersource Organization Id + :return: V1FileDetailsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_file_details_with_http_info(start_date, end_date, **kwargs) + else: + (data) = self.get_file_details_with_http_info(start_date, end_date, **kwargs) + return data + + def get_file_details_with_http_info(self, start_date, end_date, **kwargs): + """ + Get list of files + Get list of files and it's information of them available inside the report directory + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_file_details_with_http_info(start_date, end_date, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param date start_date: Valid start date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + :param date end_date: Valid end date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd (required) + :param str organization_id: Valid Cybersource Organization Id + :return: V1FileDetailsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start_date', 'end_date', 'organization_id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_file_details" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'start_date' is set + if ('start_date' not in params) or (params['start_date'] is None): + raise ValueError("Missing the required parameter `start_date` when calling `get_file_details`") + # verify the required parameter 'end_date' is set + if ('end_date' not in params) or (params['end_date'] is None): + raise ValueError("Missing the required parameter `end_date` when calling `get_file_details`") + + if 'organization_id' in params and len(params['organization_id']) > 32: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_file_details`, length must be less than or equal to `32`") + if 'organization_id' in params and len(params['organization_id']) < 1: + raise ValueError("Invalid value for parameter `organization_id` when calling `get_file_details`, length must be greater than or equal to `1`") + if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']): + raise ValueError("Invalid value for parameter `organization_id` when calling `get_file_details`, must conform to the pattern `/[a-zA-Z0-9-_]+/`") + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start_date' in params: + query_params.append(('startDate', params['start_date'])) + if 'end_date' in params: + query_params.append(('endDate', params['end_date'])) + if 'organization_id' in params: + query_params.append(('organizationId', params['organization_id'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/sfs/v1/file-details', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1FileDetailsGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/tokenization_api.py b/CyberSource/apis/tokenization_api.py deleted file mode 100644 index 0106c170..00000000 --- a/CyberSource/apis/tokenization_api.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class TokenizationApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, merchant_config, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - self.api_client.set_configaration(merchant_config) - - - def tokenize(self, **kwargs): - """ - Tokenize card - Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.tokenize(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param TokenizeRequest tokenize_request: - :return: InlineResponse2001 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.tokenize_with_http_info(**kwargs) - else: - (data) = self.tokenize_with_http_info(**kwargs) - return data - - def tokenize_with_http_info(self, **kwargs): - """ - Tokenize card - Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.tokenize_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param TokenizeRequest tokenize_request: - :return: InlineResponse2001 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['tokenize_request'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method tokenize" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'tokenize_request' in params: - body_params = params['tokenize_request'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client. \ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client. \ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/flex/v1/tokens/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2001', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/CyberSource/apis/transaction_batch_api.py b/CyberSource/apis/transaction_batch_api.py new file mode 100644 index 00000000..c2fb32d0 --- /dev/null +++ b/CyberSource/apis/transaction_batch_api.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class TransactionBatchApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def pts_v1_transaction_batches_id_get(self, id, **kwargs): + """ + Get an individual batch file Details processed through the Offline Transaction Submission Services + Provide the search range + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.pts_v1_transaction_batches_id_get(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: The batch id assigned for the template. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.pts_v1_transaction_batches_id_get_with_http_info(id, **kwargs) + else: + (data) = self.pts_v1_transaction_batches_id_get_with_http_info(id, **kwargs) + return data + + def pts_v1_transaction_batches_id_get_with_http_info(self, id, **kwargs): + """ + Get an individual batch file Details processed through the Offline Transaction Submission Services + Provide the search range + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.pts_v1_transaction_batches_id_get_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: The batch id assigned for the template. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method pts_v1_transaction_batches_id_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `pts_v1_transaction_batches_id_get`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/pts/v1/transaction-batches/'+id, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/transaction_batches_api.py b/CyberSource/apis/transaction_batches_api.py new file mode 100644 index 00000000..2fca3891 --- /dev/null +++ b/CyberSource/apis/transaction_batches_api.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class TransactionBatchesApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def pts_v1_transaction_batches_get(self, start_time, end_time, **kwargs): + """ + Get a list of batch files processed through the Offline Transaction Submission Services + Provide the search range + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.pts_v1_transaction_batches_get(start_time, end_time, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param datetime start_time: Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + :param datetime end_time: Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + :return: PtsV1TransactionBatchesGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.pts_v1_transaction_batches_get_with_http_info(start_time, end_time, **kwargs) + else: + (data) = self.pts_v1_transaction_batches_get_with_http_info(start_time, end_time, **kwargs) + return data + + def pts_v1_transaction_batches_get_with_http_info(self, start_time, end_time, **kwargs): + """ + Get a list of batch files processed through the Offline Transaction Submission Services + Provide the search range + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.pts_v1_transaction_batches_get_with_http_info(start_time, end_time, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param datetime start_time: Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + :param datetime end_time: Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ (required) + :return: PtsV1TransactionBatchesGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start_time', 'end_time'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method pts_v1_transaction_batches_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'start_time' is set + if ('start_time' not in params) or (params['start_time'] is None): + raise ValueError("Missing the required parameter `start_time` when calling `pts_v1_transaction_batches_get`") + # verify the required parameter 'end_time' is set + if ('end_time' not in params) or (params['end_time'] is None): + raise ValueError("Missing the required parameter `end_time` when calling `pts_v1_transaction_batches_get`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + '''if 'start_time' in params: + query_params.append(('startTime', params['start_time'])) + if 'end_time' in params: + query_params.append(('endTime', params['end_time']))''' + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/pts/v1/transaction-batches?startTime='+start_time+'&endTime='+end_time, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PtsV1TransactionBatchesGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/transaction_details_api.py b/CyberSource/apis/transaction_details_api.py new file mode 100644 index 00000000..e21dabca --- /dev/null +++ b/CyberSource/apis/transaction_details_api.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class TransactionDetailsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def get_transaction(self, id, **kwargs): + """ + Retrieve a Transaction + Include the Request ID in the GET request to retrieve the transaction details. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_transaction(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: Request ID. (required) + :return: TssV2TransactionsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_transaction_with_http_info(id, **kwargs) + else: + (data) = self.get_transaction_with_http_info(id, **kwargs) + return data + + def get_transaction_with_http_info(self, id, **kwargs): + """ + Retrieve a Transaction + Include the Request ID in the GET request to retrieve the transaction details. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_transaction_with_http_info(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: Request ID. (required) + :return: TssV2TransactionsGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_transaction" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_transaction`") + + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/tss/v2/transactions/'+id, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TssV2TransactionsGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/user_management_api.py b/CyberSource/apis/user_management_api.py new file mode 100644 index 00000000..811feeda --- /dev/null +++ b/CyberSource/apis/user_management_api.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class UserManagementApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, merchant_config, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + self.api_client.set_configaration(merchant_config) + + + def get_users(self, **kwargs): + """ + Get user based on organization Id, username, permission and role + This endpoint is to get all the user information depending on the filter criteria passed in the query. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_users(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str organization_id: This is the orgId of the organization which the user belongs to. + :param str user_name: User ID of the user you want to get details on. + :param str permission_id: permission that you are trying to search user on. + :param str role_id: role of the user you are trying to search on. + :return: UmsV1UsersGet200Response + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_users_with_http_info(**kwargs) + else: + (data) = self.get_users_with_http_info(**kwargs) + return data + + def get_users_with_http_info(self, **kwargs): + """ + Get user based on organization Id, username, permission and role + This endpoint is to get all the user information depending on the filter criteria passed in the query. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_users_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str organization_id: This is the orgId of the organization which the user belongs to. + :param str user_name: User ID of the user you want to get details on. + :param str permission_id: permission that you are trying to search user on. + :param str role_id: role of the user you are trying to search on. + :return: UmsV1UsersGet200Response + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['organization_id', 'user_name', 'permission_id', 'role_id'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_users" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'organization_id' in params: + query_params.append(('organizationId', params['organization_id'])) + if 'user_name' in params: + query_params.append(('userName', params['user_name'])) + if 'permission_id' in params: + query_params.append(('permissionId', params['permission_id'])) + if 'role_id' in params: + query_params.append(('roleId', params['role_id'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/hal+json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json;charset=utf-8']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/ums/v1/users', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UmsV1UsersGet200Response', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/CyberSource/apis/void_api.py b/CyberSource/apis/void_api.py index 01218c8b..b91d554b 100644 --- a/CyberSource/apis/void_api.py +++ b/CyberSource/apis/void_api.py @@ -42,108 +42,6 @@ def __init__(self, merchant_config, api_client=None): self.api_client.set_configaration(merchant_config) - def get_void(self, id, **kwargs): - """ - Retrieve A Void - Include the void ID in the GET request to retrieve the void details. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_void(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The void ID returned from a previous void request. (required) - :return: InlineResponse2015 - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.get_void_with_http_info(id, **kwargs) - else: - (data) = self.get_void_with_http_info(id, **kwargs) - return data - - def get_void_with_http_info(self, id, **kwargs): - """ - Retrieve A Void - Include the void ID in the GET request to retrieve the void details. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_void_with_http_info(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: The void ID returned from a previous void request. (required) - :return: InlineResponse2015 - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_void" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_void`") - - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/v2/voids/{id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='InlineResponse2015', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def void_capture(self, void_capture_request, id, **kwargs): """ Void a Capture @@ -160,7 +58,7 @@ def void_capture(self, void_capture_request, id, **kwargs): for asynchronous request. (optional) :param VoidCaptureRequest void_capture_request: (required) :param str id: The capture ID returned from a previous capture request. (required) - :return: InlineResponse2015 + :return: PtsV2PaymentsVoidsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -187,7 +85,7 @@ def void_capture_with_http_info(self, void_capture_request, id, **kwargs): for asynchronous request. (optional) :param VoidCaptureRequest void_capture_request: (required) :param str id: The capture ID returned from a previous capture request. (required) - :return: InlineResponse2015 + :return: PtsV2PaymentsVoidsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -231,13 +129,13 @@ def void_capture_with_http_info(self, void_capture_request, id, **kwargs): body_params = None if 'void_capture_request' in params: body_params = params['void_capture_request'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client. \ - select_header_accept(['application/hal+json;charset=utf-8']) + # HTTP header `Accept` + header_params['Accept'] = self.api_client. \ + select_header_accept(['application/hal+json;charset=utf-8']) - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client. \ - select_header_content_type(['application/json']) + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client. \ + select_header_content_type(['application/json']) # Authentication setting auth_settings = [] @@ -249,7 +147,7 @@ def void_capture_with_http_info(self, void_capture_request, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2015', + response_type='PtsV2PaymentsVoidsPost201Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -273,7 +171,7 @@ def void_credit(self, void_credit_request, id, **kwargs): for asynchronous request. (optional) :param VoidCreditRequest void_credit_request: (required) :param str id: The credit ID returned from a previous credit request. (required) - :return: InlineResponse2015 + :return: PtsV2PaymentsVoidsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -300,7 +198,7 @@ def void_credit_with_http_info(self, void_credit_request, id, **kwargs): for asynchronous request. (optional) :param VoidCreditRequest void_credit_request: (required) :param str id: The credit ID returned from a previous credit request. (required) - :return: InlineResponse2015 + :return: PtsV2PaymentsVoidsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -362,7 +260,7 @@ def void_credit_with_http_info(self, void_credit_request, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2015', + response_type='PtsV2PaymentsVoidsPost201Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -386,7 +284,7 @@ def void_payment(self, void_payment_request, id, **kwargs): for asynchronous request. (optional) :param VoidPaymentRequest void_payment_request: (required) :param str id: The payment ID returned from a previous payment request. (required) - :return: InlineResponse2015 + :return: PtsV2PaymentsVoidsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -413,7 +311,7 @@ def void_payment_with_http_info(self, void_payment_request, id, **kwargs): for asynchronous request. (optional) :param VoidPaymentRequest void_payment_request: (required) :param str id: The payment ID returned from a previous payment request. (required) - :return: InlineResponse2015 + :return: PtsV2PaymentsVoidsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -475,7 +373,7 @@ def void_payment_with_http_info(self, void_payment_request, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2015', + response_type='PtsV2PaymentsVoidsPost201Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -499,7 +397,7 @@ def void_refund(self, void_refund_request, id, **kwargs): for asynchronous request. (optional) :param VoidRefundRequest void_refund_request: (required) :param str id: The refund ID returned from a previous refund request. (required) - :return: InlineResponse2015 + :return: PtsV2PaymentsVoidsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -526,7 +424,7 @@ def void_refund_with_http_info(self, void_refund_request, id, **kwargs): for asynchronous request. (optional) :param VoidRefundRequest void_refund_request: (required) :param str id: The refund ID returned from a previous refund request. (required) - :return: InlineResponse2015 + :return: PtsV2PaymentsVoidsPost201Response If the method is called asynchronously, returns the request thread. """ @@ -588,7 +486,7 @@ def void_refund_with_http_info(self, void_refund_request, id, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2015', + response_type='PtsV2PaymentsVoidsPost201Response', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/CyberSource/models/__init__.py b/CyberSource/models/__init__.py index f3f06ec9..f4773d08 100644 --- a/CyberSource/models/__init__.py +++ b/CyberSource/models/__init__.py @@ -26,225 +26,295 @@ from .der_public_key import DerPublicKey from .error import Error from .error_response import ErrorResponse +from .flex_v1_keys_post200_response import FlexV1KeysPost200Response +from .flex_v1_keys_post200_response_der import FlexV1KeysPost200ResponseDer +from .flex_v1_keys_post200_response_jwk import FlexV1KeysPost200ResponseJwk +from .flex_v1_tokens_post200_response import FlexV1TokensPost200Response +from .flexv1tokens_card_info import Flexv1tokensCardInfo from .generate_public_key_request import GeneratePublicKeyRequest -from .inline_response_200 import InlineResponse200 -from .inline_response_200_1 import InlineResponse2001 -from .inline_response_200_2 import InlineResponse2002 -from .inline_response_200_2_buyer_information import InlineResponse2002BuyerInformation -from .inline_response_200_2_device_information import InlineResponse2002DeviceInformation -from .inline_response_200_2_merchant_information import InlineResponse2002MerchantInformation -from .inline_response_200_2_order_information import InlineResponse2002OrderInformation -from .inline_response_200_2_order_information_amount_details import InlineResponse2002OrderInformationAmountDetails -from .inline_response_200_2_order_information_bill_to import InlineResponse2002OrderInformationBillTo -from .inline_response_200_2_order_information_invoice_details import InlineResponse2002OrderInformationInvoiceDetails -from .inline_response_200_2_order_information_line_items import InlineResponse2002OrderInformationLineItems -from .inline_response_200_2_order_information_ship_to import InlineResponse2002OrderInformationShipTo -from .inline_response_200_2_payment_information import InlineResponse2002PaymentInformation -from .inline_response_200_2_payment_information_card import InlineResponse2002PaymentInformationCard -from .inline_response_200_2_payment_information_tokenized_card import InlineResponse2002PaymentInformationTokenizedCard -from .inline_response_200_2_processing_information import InlineResponse2002ProcessingInformation -from .inline_response_200_2_processor_information import InlineResponse2002ProcessorInformation -from .inline_response_200_2_processor_information_avs import InlineResponse2002ProcessorInformationAvs -from .inline_response_200_2_processor_information_card_verification import InlineResponse2002ProcessorInformationCardVerification -from .inline_response_200_3 import InlineResponse2003 -from .inline_response_200_4 import InlineResponse2004 -from .inline_response_200_4_device_information import InlineResponse2004DeviceInformation -from .inline_response_200_4_order_information import InlineResponse2004OrderInformation -from .inline_response_200_4_order_information_amount_details import InlineResponse2004OrderInformationAmountDetails -from .inline_response_200_4_order_information_invoice_details import InlineResponse2004OrderInformationInvoiceDetails -from .inline_response_200_4_order_information_ship_to import InlineResponse2004OrderInformationShipTo -from .inline_response_200_4_processing_information import InlineResponse2004ProcessingInformation -from .inline_response_200_4_processing_information_authorization_options import InlineResponse2004ProcessingInformationAuthorizationOptions -from .inline_response_200_5 import InlineResponse2005 -from .inline_response_200_6 import InlineResponse2006 -from .inline_response_200_7 import InlineResponse2007 -from .inline_response_200_8 import InlineResponse2008 -from .inline_response_200_8__links import InlineResponse2008Links -from .inline_response_200_8__links_first import InlineResponse2008LinksFirst -from .inline_response_200_8__links_last import InlineResponse2008LinksLast -from .inline_response_200_8__links_next import InlineResponse2008LinksNext -from .inline_response_200_8__links_prev import InlineResponse2008LinksPrev -from .inline_response_200_8__links_self import InlineResponse2008LinksSelf -from .inline_response_200_der import InlineResponse200Der -from .inline_response_200_jwk import InlineResponse200Jwk -from .inline_response_201 import InlineResponse201 -from .inline_response_201_1 import InlineResponse2011 -from .inline_response_201_1_authorization_information import InlineResponse2011AuthorizationInformation -from .inline_response_201_1_processor_information import InlineResponse2011ProcessorInformation -from .inline_response_201_1_reversal_amount_details import InlineResponse2011ReversalAmountDetails -from .inline_response_201_2 import InlineResponse2012 -from .inline_response_201_2__links import InlineResponse2012Links -from .inline_response_201_2_order_information import InlineResponse2012OrderInformation -from .inline_response_201_2_order_information_amount_details import InlineResponse2012OrderInformationAmountDetails -from .inline_response_201_2_processor_information import InlineResponse2012ProcessorInformation -from .inline_response_201_3 import InlineResponse2013 -from .inline_response_201_3__links import InlineResponse2013Links -from .inline_response_201_3_order_information import InlineResponse2013OrderInformation -from .inline_response_201_3_processor_information import InlineResponse2013ProcessorInformation -from .inline_response_201_3_refund_amount_details import InlineResponse2013RefundAmountDetails -from .inline_response_201_4 import InlineResponse2014 -from .inline_response_201_4_credit_amount_details import InlineResponse2014CreditAmountDetails -from .inline_response_201_5 import InlineResponse2015 -from .inline_response_201_5_void_amount_details import InlineResponse2015VoidAmountDetails -from .inline_response_201_6 import InlineResponse2016 -from .inline_response_201_client_reference_information import InlineResponse201ClientReferenceInformation -from .inline_response_201__embedded import InlineResponse201Embedded -from .inline_response_201__embedded_capture import InlineResponse201EmbeddedCapture -from .inline_response_201__embedded_capture__links import InlineResponse201EmbeddedCaptureLinks -from .inline_response_201_error_information import InlineResponse201ErrorInformation -from .inline_response_201_error_information_details import InlineResponse201ErrorInformationDetails -from .inline_response_201__links import InlineResponse201Links -from .inline_response_201__links_self import InlineResponse201LinksSelf -from .inline_response_201_order_information import InlineResponse201OrderInformation -from .inline_response_201_order_information_amount_details import InlineResponse201OrderInformationAmountDetails -from .inline_response_201_order_information_invoice_details import InlineResponse201OrderInformationInvoiceDetails -from .inline_response_201_payment_information import InlineResponse201PaymentInformation -from .inline_response_201_payment_information_account_features import InlineResponse201PaymentInformationAccountFeatures -from .inline_response_201_payment_information_card import InlineResponse201PaymentInformationCard -from .inline_response_201_payment_information_tokenized_card import InlineResponse201PaymentInformationTokenizedCard -from .inline_response_201_point_of_sale_information import InlineResponse201PointOfSaleInformation -from .inline_response_201_point_of_sale_information_emv import InlineResponse201PointOfSaleInformationEmv -from .inline_response_201_processor_information import InlineResponse201ProcessorInformation -from .inline_response_201_processor_information_avs import InlineResponse201ProcessorInformationAvs -from .inline_response_201_processor_information_card_verification import InlineResponse201ProcessorInformationCardVerification -from .inline_response_201_processor_information_consumer_authentication_response import InlineResponse201ProcessorInformationConsumerAuthenticationResponse -from .inline_response_201_processor_information_customer import InlineResponse201ProcessorInformationCustomer -from .inline_response_201_processor_information_electronic_verification_results import InlineResponse201ProcessorInformationElectronicVerificationResults -from .inline_response_201_processor_information_issuer import InlineResponse201ProcessorInformationIssuer -from .inline_response_201_processor_information_merchant_advice import InlineResponse201ProcessorInformationMerchantAdvice from .inline_response_400 import InlineResponse400 -from .inline_response_400_1 import InlineResponse4001 -from .inline_response_400_2 import InlineResponse4002 -from .inline_response_400_3 import InlineResponse4003 -from .inline_response_400_4 import InlineResponse4004 -from .inline_response_400_5 import InlineResponse4005 -from .inline_response_400_6 import InlineResponse4006 -from .inline_response_409 import InlineResponse409 -from .inline_response_409__links import InlineResponse409Links -from .inline_response_409__links_payment_instruments import InlineResponse409LinksPaymentInstruments -from .inline_response_502 import InlineResponse502 from .inline_response_default import InlineResponseDefault from .inline_response_default__links import InlineResponseDefaultLinks from .inline_response_default__links_next import InlineResponseDefaultLinksNext from .inline_response_default_response_status import InlineResponseDefaultResponseStatus from .inline_response_default_response_status_details import InlineResponseDefaultResponseStatusDetails -from .instrumentidentifiers_bank_account import InstrumentidentifiersBankAccount -from .instrumentidentifiers_card import InstrumentidentifiersCard -from .instrumentidentifiers_details import InstrumentidentifiersDetails -from .instrumentidentifiers__links import InstrumentidentifiersLinks -from .instrumentidentifiers__links_self import InstrumentidentifiersLinksSelf -from .instrumentidentifiers_metadata import InstrumentidentifiersMetadata -from .instrumentidentifiers_processing_information import InstrumentidentifiersProcessingInformation -from .instrumentidentifiers_processing_information_authorization_options import InstrumentidentifiersProcessingInformationAuthorizationOptions -from .instrumentidentifiers_processing_information_authorization_options_initiator import InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator -from .instrumentidentifiers_merchant_initiated_transaction import InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction from .json_web_key import JsonWebKey from .key_parameters import KeyParameters from .key_result import KeyResult from .link import Link from .links import Links -from .oct_create_payment_request import OctCreatePaymentRequest -from .paymentinstruments_bank_account import PaymentinstrumentsBankAccount -from .paymentinstruments_bill_to import PaymentinstrumentsBillTo -from .paymentinstruments_buyer_information import PaymentinstrumentsBuyerInformation -from .paymentinstruments_buyer_information_issued_by import PaymentinstrumentsBuyerInformationIssuedBy -from .paymentinstruments_buyer_information_personal_identification import PaymentinstrumentsBuyerInformationPersonalIdentification -from .paymentinstruments_card import PaymentinstrumentsCard -from .paymentinstruments_instrument_identifier import PaymentinstrumentsInstrumentIdentifier -from .paymentinstruments_merchant_information import PaymentinstrumentsMerchantInformation -from .paymentinstruments_merchant_information_merchant_descriptor import PaymentinstrumentsMerchantInformationMerchantDescriptor -from .paymentinstruments_processing_information import PaymentinstrumentsProcessingInformation -from .paymentinstruments_processing_information_bank_transfer_options import PaymentinstrumentsProcessingInformationBankTransferOptions -from .paymentsflexv1tokens_card_info import Paymentsflexv1tokensCardInfo +from .pts_v1_transaction_batches_get200_response import PtsV1TransactionBatchesGet200Response +from .pts_v1_transaction_batches_get200_response__links import PtsV1TransactionBatchesGet200ResponseLinks +from .pts_v1_transaction_batches_get200_response__links_self import PtsV1TransactionBatchesGet200ResponseLinksSelf +from .pts_v1_transaction_batches_get200_response_transaction_batches import PtsV1TransactionBatchesGet200ResponseTransactionBatches +from .pts_v1_transaction_batches_get400_response import PtsV1TransactionBatchesGet400Response +from .pts_v1_transaction_batches_get400_response_error_information import PtsV1TransactionBatchesGet400ResponseErrorInformation +from .pts_v1_transaction_batches_get400_response_error_information_details import PtsV1TransactionBatchesGet400ResponseErrorInformationDetails +from .pts_v1_transaction_batches_get500_response import PtsV1TransactionBatchesGet500Response +from .pts_v1_transaction_batches_get500_response_error_information import PtsV1TransactionBatchesGet500ResponseErrorInformation +from .pts_v2_credits_post201_response import PtsV2CreditsPost201Response +from .pts_v2_credits_post201_response_credit_amount_details import PtsV2CreditsPost201ResponseCreditAmountDetails +from .pts_v2_payments_captures_post201_response import PtsV2PaymentsCapturesPost201Response +from .pts_v2_payments_captures_post201_response__links import PtsV2PaymentsCapturesPost201ResponseLinks +from .pts_v2_payments_captures_post201_response_order_information import PtsV2PaymentsCapturesPost201ResponseOrderInformation +from .pts_v2_payments_captures_post201_response_order_information_amount_details import PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails +from .pts_v2_payments_captures_post201_response_processor_information import PtsV2PaymentsCapturesPost201ResponseProcessorInformation +from .pts_v2_payments_captures_post400_response import PtsV2PaymentsCapturesPost400Response +from .pts_v2_payments_post201_response import PtsV2PaymentsPost201Response +from .pts_v2_payments_post201_response_client_reference_information import PtsV2PaymentsPost201ResponseClientReferenceInformation +from .pts_v2_payments_post201_response_error_information import PtsV2PaymentsPost201ResponseErrorInformation +from .pts_v2_payments_post201_response_error_information_details import PtsV2PaymentsPost201ResponseErrorInformationDetails +from .pts_v2_payments_post201_response__links import PtsV2PaymentsPost201ResponseLinks +from .pts_v2_payments_post201_response__links_self import PtsV2PaymentsPost201ResponseLinksSelf +from .pts_v2_payments_post201_response_order_information import PtsV2PaymentsPost201ResponseOrderInformation +from .pts_v2_payments_post201_response_order_information_amount_details import PtsV2PaymentsPost201ResponseOrderInformationAmountDetails +from .pts_v2_payments_post201_response_order_information_invoice_details import PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails +from .pts_v2_payments_post201_response_payment_information import PtsV2PaymentsPost201ResponsePaymentInformation +from .pts_v2_payments_post201_response_payment_information_account_features import PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures +from .pts_v2_payments_post201_response_payment_information_card import PtsV2PaymentsPost201ResponsePaymentInformationCard +from .pts_v2_payments_post201_response_payment_information_tokenized_card import PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard +from .pts_v2_payments_post201_response_point_of_sale_information import PtsV2PaymentsPost201ResponsePointOfSaleInformation +from .pts_v2_payments_post201_response_point_of_sale_information_emv import PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv +from .pts_v2_payments_post201_response_processor_information import PtsV2PaymentsPost201ResponseProcessorInformation +from .pts_v2_payments_post201_response_processor_information_avs import PtsV2PaymentsPost201ResponseProcessorInformationAvs +from .pts_v2_payments_post201_response_processor_information_card_verification import PtsV2PaymentsPost201ResponseProcessorInformationCardVerification +from .pts_v2_payments_post201_response_processor_information_consumer_authentication_response import PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse +from .pts_v2_payments_post201_response_processor_information_customer import PtsV2PaymentsPost201ResponseProcessorInformationCustomer +from .pts_v2_payments_post201_response_processor_information_electronic_verification_results import PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults +from .pts_v2_payments_post201_response_processor_information_issuer import PtsV2PaymentsPost201ResponseProcessorInformationIssuer +from .pts_v2_payments_post201_response_processor_information_merchant_advice import PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice +from .pts_v2_payments_post400_response import PtsV2PaymentsPost400Response +from .pts_v2_payments_post502_response import PtsV2PaymentsPost502Response +from .pts_v2_payments_refund_post201_response import PtsV2PaymentsRefundPost201Response +from .pts_v2_payments_refund_post201_response__links import PtsV2PaymentsRefundPost201ResponseLinks +from .pts_v2_payments_refund_post201_response_order_information import PtsV2PaymentsRefundPost201ResponseOrderInformation +from .pts_v2_payments_refund_post201_response_processor_information import PtsV2PaymentsRefundPost201ResponseProcessorInformation +from .pts_v2_payments_refund_post201_response_refund_amount_details import PtsV2PaymentsRefundPost201ResponseRefundAmountDetails +from .pts_v2_payments_refund_post400_response import PtsV2PaymentsRefundPost400Response +from .pts_v2_payments_reversals_post201_response import PtsV2PaymentsReversalsPost201Response +from .pts_v2_payments_reversals_post201_response_authorization_information import PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation +from .pts_v2_payments_reversals_post201_response__links import PtsV2PaymentsReversalsPost201ResponseLinks +from .pts_v2_payments_reversals_post201_response_processor_information import PtsV2PaymentsReversalsPost201ResponseProcessorInformation +from .pts_v2_payments_reversals_post201_response_reversal_amount_details import PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails +from .pts_v2_payments_reversals_post400_response import PtsV2PaymentsReversalsPost400Response +from .pts_v2_payments_voids_post201_response import PtsV2PaymentsVoidsPost201Response +from .pts_v2_payments_voids_post201_response_void_amount_details import PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails +from .pts_v2_payments_voids_post400_response import PtsV2PaymentsVoidsPost400Response +from .pts_v2_payouts_post400_response import PtsV2PayoutsPost400Response +from .pts_v2_payouts_post_response import PtsV2PayoutsPostResponse +from .ptsv2credits_point_of_sale_information import Ptsv2creditsPointOfSaleInformation +from .ptsv2credits_point_of_sale_information_emv import Ptsv2creditsPointOfSaleInformationEmv +from .ptsv2credits_processing_information import Ptsv2creditsProcessingInformation +from .ptsv2payments_aggregator_information import Ptsv2paymentsAggregatorInformation +from .ptsv2payments_aggregator_information_sub_merchant import Ptsv2paymentsAggregatorInformationSubMerchant +from .ptsv2payments_buyer_information import Ptsv2paymentsBuyerInformation +from .ptsv2payments_buyer_information_personal_identification import Ptsv2paymentsBuyerInformationPersonalIdentification +from .ptsv2payments_client_reference_information import Ptsv2paymentsClientReferenceInformation +from .ptsv2payments_consumer_authentication_information import Ptsv2paymentsConsumerAuthenticationInformation +from .ptsv2payments_device_information import Ptsv2paymentsDeviceInformation +from .ptsv2payments_merchant_defined_information import Ptsv2paymentsMerchantDefinedInformation +from .ptsv2payments_merchant_information import Ptsv2paymentsMerchantInformation +from .ptsv2payments_merchant_information_merchant_descriptor import Ptsv2paymentsMerchantInformationMerchantDescriptor +from .ptsv2payments_order_information import Ptsv2paymentsOrderInformation +from .ptsv2payments_order_information_amount_details import Ptsv2paymentsOrderInformationAmountDetails +from .ptsv2payments_order_information_amount_details_amex_additional_amounts import Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts +from .ptsv2payments_order_information_amount_details_surcharge import Ptsv2paymentsOrderInformationAmountDetailsSurcharge +from .ptsv2payments_order_information_amount_details_tax_details import Ptsv2paymentsOrderInformationAmountDetailsTaxDetails +from .ptsv2payments_order_information_bill_to import Ptsv2paymentsOrderInformationBillTo +from .ptsv2payments_order_information_invoice_details import Ptsv2paymentsOrderInformationInvoiceDetails +from .ptsv2payments_order_information_invoice_details_transaction_advice_addendum import Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum +from .ptsv2payments_order_information_line_items import Ptsv2paymentsOrderInformationLineItems +from .ptsv2payments_order_information_ship_to import Ptsv2paymentsOrderInformationShipTo +from .ptsv2payments_order_information_shipping_details import Ptsv2paymentsOrderInformationShippingDetails +from .ptsv2payments_payment_information import Ptsv2paymentsPaymentInformation +from .ptsv2payments_payment_information_card import Ptsv2paymentsPaymentInformationCard +from .ptsv2payments_payment_information_customer import Ptsv2paymentsPaymentInformationCustomer +from .ptsv2payments_payment_information_fluid_data import Ptsv2paymentsPaymentInformationFluidData +from .ptsv2payments_payment_information_tokenized_card import Ptsv2paymentsPaymentInformationTokenizedCard +from .ptsv2payments_point_of_sale_information import Ptsv2paymentsPointOfSaleInformation +from .ptsv2payments_point_of_sale_information_emv import Ptsv2paymentsPointOfSaleInformationEmv +from .ptsv2payments_processing_information import Ptsv2paymentsProcessingInformation +from .ptsv2payments_processing_information_authorization_options import Ptsv2paymentsProcessingInformationAuthorizationOptions +from .ptsv2payments_processing_information_authorization_options_initiator import Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator +from .ptsv2payments_merchant_initiated_transaction import Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction +from .ptsv2payments_processing_information_capture_options import Ptsv2paymentsProcessingInformationCaptureOptions +from .ptsv2payments_processing_information_issuer import Ptsv2paymentsProcessingInformationIssuer +from .ptsv2payments_processing_information_recurring_options import Ptsv2paymentsProcessingInformationRecurringOptions +from .ptsv2payments_recipient_information import Ptsv2paymentsRecipientInformation +from .ptsv2paymentsidcaptures_aggregator_information import Ptsv2paymentsidcapturesAggregatorInformation +from .ptsv2paymentsidcaptures_aggregator_information_sub_merchant import Ptsv2paymentsidcapturesAggregatorInformationSubMerchant +from .ptsv2paymentsidcaptures_buyer_information import Ptsv2paymentsidcapturesBuyerInformation +from .ptsv2paymentsidcaptures_merchant_information import Ptsv2paymentsidcapturesMerchantInformation +from .ptsv2paymentsidcaptures_order_information import Ptsv2paymentsidcapturesOrderInformation +from .ptsv2paymentsidcaptures_order_information_amount_details import Ptsv2paymentsidcapturesOrderInformationAmountDetails +from .ptsv2paymentsidcaptures_order_information_bill_to import Ptsv2paymentsidcapturesOrderInformationBillTo +from .ptsv2paymentsidcaptures_order_information_invoice_details import Ptsv2paymentsidcapturesOrderInformationInvoiceDetails +from .ptsv2paymentsidcaptures_order_information_ship_to import Ptsv2paymentsidcapturesOrderInformationShipTo +from .ptsv2paymentsidcaptures_order_information_shipping_details import Ptsv2paymentsidcapturesOrderInformationShippingDetails +from .ptsv2paymentsidcaptures_payment_information import Ptsv2paymentsidcapturesPaymentInformation +from .ptsv2paymentsidcaptures_point_of_sale_information import Ptsv2paymentsidcapturesPointOfSaleInformation +from .ptsv2paymentsidcaptures_point_of_sale_information_emv import Ptsv2paymentsidcapturesPointOfSaleInformationEmv +from .ptsv2paymentsidcaptures_processing_information import Ptsv2paymentsidcapturesProcessingInformation +from .ptsv2paymentsidcaptures_processing_information_authorization_options import Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions +from .ptsv2paymentsidcaptures_processing_information_capture_options import Ptsv2paymentsidcapturesProcessingInformationCaptureOptions +from .ptsv2paymentsidrefunds_merchant_information import Ptsv2paymentsidrefundsMerchantInformation +from .ptsv2paymentsidrefunds_order_information import Ptsv2paymentsidrefundsOrderInformation +from .ptsv2paymentsidrefunds_order_information_line_items import Ptsv2paymentsidrefundsOrderInformationLineItems +from .ptsv2paymentsidrefunds_payment_information import Ptsv2paymentsidrefundsPaymentInformation +from .ptsv2paymentsidrefunds_payment_information_card import Ptsv2paymentsidrefundsPaymentInformationCard +from .ptsv2paymentsidrefunds_point_of_sale_information import Ptsv2paymentsidrefundsPointOfSaleInformation +from .ptsv2paymentsidrefunds_processing_information import Ptsv2paymentsidrefundsProcessingInformation +from .ptsv2paymentsidrefunds_processing_information_recurring_options import Ptsv2paymentsidrefundsProcessingInformationRecurringOptions +from .ptsv2paymentsidreversals_client_reference_information import Ptsv2paymentsidreversalsClientReferenceInformation +from .ptsv2paymentsidreversals_order_information import Ptsv2paymentsidreversalsOrderInformation +from .ptsv2paymentsidreversals_order_information_line_items import Ptsv2paymentsidreversalsOrderInformationLineItems +from .ptsv2paymentsidreversals_point_of_sale_information import Ptsv2paymentsidreversalsPointOfSaleInformation +from .ptsv2paymentsidreversals_processing_information import Ptsv2paymentsidreversalsProcessingInformation +from .ptsv2paymentsidreversals_reversal_information import Ptsv2paymentsidreversalsReversalInformation +from .ptsv2paymentsidreversals_reversal_information_amount_details import Ptsv2paymentsidreversalsReversalInformationAmountDetails +from .ptsv2payouts_merchant_information import Ptsv2payoutsMerchantInformation +from .ptsv2payouts_merchant_information_merchant_descriptor import Ptsv2payoutsMerchantInformationMerchantDescriptor +from .ptsv2payouts_order_information import Ptsv2payoutsOrderInformation +from .ptsv2payouts_order_information_amount_details import Ptsv2payoutsOrderInformationAmountDetails +from .ptsv2payouts_order_information_amount_details_surcharge import Ptsv2payoutsOrderInformationAmountDetailsSurcharge +from .ptsv2payouts_order_information_bill_to import Ptsv2payoutsOrderInformationBillTo +from .ptsv2payouts_payment_information import Ptsv2payoutsPaymentInformation +from .ptsv2payouts_payment_information_card import Ptsv2payoutsPaymentInformationCard +from .ptsv2payouts_processing_information import Ptsv2payoutsProcessingInformation +from .ptsv2payouts_processing_information_payouts_options import Ptsv2payoutsProcessingInformationPayoutsOptions +from .ptsv2payouts_recipient_information import Ptsv2payoutsRecipientInformation +from .ptsv2payouts_sender_information import Ptsv2payoutsSenderInformation +from .ptsv2payouts_sender_information_account import Ptsv2payoutsSenderInformationAccount from .refund_capture_request import RefundCaptureRequest from .refund_payment_request import RefundPaymentRequest +from .reporting_v3_notificationof_changes_get200_response import ReportingV3NotificationofChangesGet200Response +from .reporting_v3_notificationof_changes_get200_response_notification_of_changes import ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges +from .reporting_v3_notificationof_changes_get400_response import ReportingV3NotificationofChangesGet400Response +from .reporting_v3_notificationof_changes_get400_response_fields import ReportingV3NotificationofChangesGet400ResponseFields +from .reporting_v3_report_definitions_get200_response import ReportingV3ReportDefinitionsGet200Response +from .reporting_v3_report_definitions_get200_response_report_definitions import ReportingV3ReportDefinitionsGet200ResponseReportDefinitions +from .reporting_v3_report_definitions_name_get200_response import ReportingV3ReportDefinitionsNameGet200Response +from .reporting_v3_report_definitions_name_get200_response_attributes import ReportingV3ReportDefinitionsNameGet200ResponseAttributes +from .reporting_v3_report_subscriptions_get200_response import ReportingV3ReportSubscriptionsGet200Response +from .reporting_v3_report_subscriptions_get200_response_report_preferences import ReportingV3ReportSubscriptionsGet200ResponseReportPreferences +from .reporting_v3_report_subscriptions_get200_response_subscriptions import ReportingV3ReportSubscriptionsGet200ResponseSubscriptions +from .reporting_v3_reports_get200_response import ReportingV3ReportsGet200Response +from .reporting_v3_reports_get200_response_reports import ReportingV3ReportsGet200ResponseReports +from .reporting_v3_reports_id_get200_response import ReportingV3ReportsIdGet200Response +from .request_body import RequestBody +from .request_body_1 import RequestBody1 from .response_status import ResponseStatus from .response_status_details import ResponseStatusDetails +from .tms_v1_instrumentidentifiers_delete409_response import TmsV1InstrumentidentifiersDelete409Response +from .tms_v1_instrumentidentifiers_delete409_response__links import TmsV1InstrumentidentifiersDelete409ResponseLinks +from .tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments import TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments +from .tms_v1_instrumentidentifiers_paymentinstruments_get200_response import TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response +from .tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks +from .tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst +from .tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast +from .tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext +from .tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev +from .tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf +from .tms_v1_instrumentidentifiers_post200_response import TmsV1InstrumentidentifiersPost200Response +from .tms_v1_paymentinstruments_post201_response import TmsV1PaymentinstrumentsPost201Response +from .tmsv1instrumentidentifiers_bank_account import Tmsv1instrumentidentifiersBankAccount +from .tmsv1instrumentidentifiers_card import Tmsv1instrumentidentifiersCard +from .tmsv1instrumentidentifiers_details import Tmsv1instrumentidentifiersDetails +from .tmsv1instrumentidentifiers__links import Tmsv1instrumentidentifiersLinks +from .tmsv1instrumentidentifiers__links_self import Tmsv1instrumentidentifiersLinksSelf +from .tmsv1instrumentidentifiers_metadata import Tmsv1instrumentidentifiersMetadata +from .tmsv1instrumentidentifiers_processing_information import Tmsv1instrumentidentifiersProcessingInformation +from .tmsv1instrumentidentifiers_processing_information_authorization_options import Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions +from .tmsv1instrumentidentifiers_processing_information_authorization_options_initiator import Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator +from .tmsv1instrumentidentifiers_merchant_initiated_transaction import Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction +from .tmsv1paymentinstruments_bank_account import Tmsv1paymentinstrumentsBankAccount +from .tmsv1paymentinstruments_bill_to import Tmsv1paymentinstrumentsBillTo +from .tmsv1paymentinstruments_buyer_information import Tmsv1paymentinstrumentsBuyerInformation +from .tmsv1paymentinstruments_buyer_information_issued_by import Tmsv1paymentinstrumentsBuyerInformationIssuedBy +from .tmsv1paymentinstruments_buyer_information_personal_identification import Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification +from .tmsv1paymentinstruments_card import Tmsv1paymentinstrumentsCard +from .tmsv1paymentinstruments_instrument_identifier import Tmsv1paymentinstrumentsInstrumentIdentifier +from .tmsv1paymentinstruments_merchant_information import Tmsv1paymentinstrumentsMerchantInformation +from .tmsv1paymentinstruments_merchant_information_merchant_descriptor import Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor +from .tmsv1paymentinstruments_processing_information import Tmsv1paymentinstrumentsProcessingInformation +from .tmsv1paymentinstruments_processing_information_bank_transfer_options import Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions from .tokenize_parameters import TokenizeParameters from .tokenize_request import TokenizeRequest from .tokenize_result import TokenizeResult -from .v2credits_point_of_sale_information import V2creditsPointOfSaleInformation -from .v2credits_point_of_sale_information_emv import V2creditsPointOfSaleInformationEmv -from .v2credits_processing_information import V2creditsProcessingInformation -from .v2payments_aggregator_information import V2paymentsAggregatorInformation -from .v2payments_aggregator_information_sub_merchant import V2paymentsAggregatorInformationSubMerchant -from .v2payments_buyer_information import V2paymentsBuyerInformation -from .v2payments_buyer_information_personal_identification import V2paymentsBuyerInformationPersonalIdentification -from .v2payments_client_reference_information import V2paymentsClientReferenceInformation -from .v2payments_consumer_authentication_information import V2paymentsConsumerAuthenticationInformation -from .v2payments_device_information import V2paymentsDeviceInformation -from .v2payments_merchant_defined_information import V2paymentsMerchantDefinedInformation -from .v2payments_merchant_information import V2paymentsMerchantInformation -from .v2payments_merchant_information_merchant_descriptor import V2paymentsMerchantInformationMerchantDescriptor -from .v2payments_order_information import V2paymentsOrderInformation -from .v2payments_order_information_amount_details import V2paymentsOrderInformationAmountDetails -from .v2payments_order_information_amount_details_amex_additional_amounts import V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts -from .v2payments_order_information_amount_details_surcharge import V2paymentsOrderInformationAmountDetailsSurcharge -from .v2payments_order_information_amount_details_tax_details import V2paymentsOrderInformationAmountDetailsTaxDetails -from .v2payments_order_information_bill_to import V2paymentsOrderInformationBillTo -from .v2payments_order_information_invoice_details import V2paymentsOrderInformationInvoiceDetails -from .v2payments_order_information_invoice_details_transaction_advice_addendum import V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum -from .v2payments_order_information_line_items import V2paymentsOrderInformationLineItems -from .v2payments_order_information_ship_to import V2paymentsOrderInformationShipTo -from .v2payments_order_information_shipping_details import V2paymentsOrderInformationShippingDetails -from .v2payments_payment_information import V2paymentsPaymentInformation -from .v2payments_payment_information_card import V2paymentsPaymentInformationCard -from .v2payments_payment_information_customer import V2paymentsPaymentInformationCustomer -from .v2payments_payment_information_fluid_data import V2paymentsPaymentInformationFluidData -from .v2payments_payment_information_tokenized_card import V2paymentsPaymentInformationTokenizedCard -from .v2payments_point_of_sale_information import V2paymentsPointOfSaleInformation -from .v2payments_point_of_sale_information_emv import V2paymentsPointOfSaleInformationEmv -from .v2payments_processing_information import V2paymentsProcessingInformation -from .v2payments_processing_information_authorization_options import V2paymentsProcessingInformationAuthorizationOptions -from .v2payments_processing_information_authorization_options_initiator import V2paymentsProcessingInformationAuthorizationOptionsInitiator -from .v2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction import V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction -from .v2payments_processing_information_capture_options import V2paymentsProcessingInformationCaptureOptions -from .v2payments_processing_information_issuer import V2paymentsProcessingInformationIssuer -from .v2payments_processing_information_recurring_options import V2paymentsProcessingInformationRecurringOptions -from .v2payments_recipient_information import V2paymentsRecipientInformation -from .v2paymentsidcaptures_aggregator_information import V2paymentsidcapturesAggregatorInformation -from .v2paymentsidcaptures_aggregator_information_sub_merchant import V2paymentsidcapturesAggregatorInformationSubMerchant -from .v2paymentsidcaptures_buyer_information import V2paymentsidcapturesBuyerInformation -from .v2paymentsidcaptures_merchant_information import V2paymentsidcapturesMerchantInformation -from .v2paymentsidcaptures_order_information import V2paymentsidcapturesOrderInformation -from .v2paymentsidcaptures_order_information_amount_details import V2paymentsidcapturesOrderInformationAmountDetails -from .v2paymentsidcaptures_order_information_bill_to import V2paymentsidcapturesOrderInformationBillTo -from .v2paymentsidcaptures_order_information_invoice_details import V2paymentsidcapturesOrderInformationInvoiceDetails -from .v2paymentsidcaptures_order_information_ship_to import V2paymentsidcapturesOrderInformationShipTo -from .v2paymentsidcaptures_order_information_shipping_details import V2paymentsidcapturesOrderInformationShippingDetails -from .v2paymentsidcaptures_payment_information import V2paymentsidcapturesPaymentInformation -from .v2paymentsidcaptures_point_of_sale_information import V2paymentsidcapturesPointOfSaleInformation -from .v2paymentsidcaptures_point_of_sale_information_emv import V2paymentsidcapturesPointOfSaleInformationEmv -from .v2paymentsidcaptures_processing_information import V2paymentsidcapturesProcessingInformation -from .v2paymentsidcaptures_processing_information_authorization_options import V2paymentsidcapturesProcessingInformationAuthorizationOptions -from .v2paymentsidcaptures_processing_information_capture_options import V2paymentsidcapturesProcessingInformationCaptureOptions -from .v2paymentsidrefunds_merchant_information import V2paymentsidrefundsMerchantInformation -from .v2paymentsidrefunds_order_information import V2paymentsidrefundsOrderInformation -from .v2paymentsidrefunds_order_information_line_items import V2paymentsidrefundsOrderInformationLineItems -from .v2paymentsidrefunds_payment_information import V2paymentsidrefundsPaymentInformation -from .v2paymentsidrefunds_payment_information_card import V2paymentsidrefundsPaymentInformationCard -from .v2paymentsidrefunds_point_of_sale_information import V2paymentsidrefundsPointOfSaleInformation -from .v2paymentsidrefunds_processing_information import V2paymentsidrefundsProcessingInformation -from .v2paymentsidrefunds_processing_information_recurring_options import V2paymentsidrefundsProcessingInformationRecurringOptions -from .v2paymentsidreversals_client_reference_information import V2paymentsidreversalsClientReferenceInformation -from .v2paymentsidreversals_order_information import V2paymentsidreversalsOrderInformation -from .v2paymentsidreversals_order_information_line_items import V2paymentsidreversalsOrderInformationLineItems -from .v2paymentsidreversals_point_of_sale_information import V2paymentsidreversalsPointOfSaleInformation -from .v2paymentsidreversals_processing_information import V2paymentsidreversalsProcessingInformation -from .v2paymentsidreversals_reversal_information import V2paymentsidreversalsReversalInformation -from .v2paymentsidreversals_reversal_information_amount_details import V2paymentsidreversalsReversalInformationAmountDetails -from .v2payouts_merchant_information import V2payoutsMerchantInformation -from .v2payouts_merchant_information_merchant_descriptor import V2payoutsMerchantInformationMerchantDescriptor -from .v2payouts_order_information import V2payoutsOrderInformation -from .v2payouts_order_information_amount_details import V2payoutsOrderInformationAmountDetails -from .v2payouts_order_information_bill_to import V2payoutsOrderInformationBillTo -from .v2payouts_payment_information import V2payoutsPaymentInformation -from .v2payouts_payment_information_card import V2payoutsPaymentInformationCard -from .v2payouts_processing_information import V2payoutsProcessingInformation -from .v2payouts_processing_information_payouts_options import V2payoutsProcessingInformationPayoutsOptions -from .v2payouts_recipient_information import V2payoutsRecipientInformation -from .v2payouts_sender_information import V2payoutsSenderInformation -from .v2payouts_sender_information_account import V2payoutsSenderInformationAccount +from .tss_v2_transactions_get200_response import TssV2TransactionsGet200Response +from .tss_v2_transactions_get200_response_application_information import TssV2TransactionsGet200ResponseApplicationInformation +from .tss_v2_transactions_get200_response_application_information_applications import TssV2TransactionsGet200ResponseApplicationInformationApplications +from .tss_v2_transactions_get200_response_buyer_information import TssV2TransactionsGet200ResponseBuyerInformation +from .tss_v2_transactions_get200_response_client_reference_information import TssV2TransactionsGet200ResponseClientReferenceInformation +from .tss_v2_transactions_get200_response_consumer_authentication_information import TssV2TransactionsGet200ResponseConsumerAuthenticationInformation +from .tss_v2_transactions_get200_response_device_information import TssV2TransactionsGet200ResponseDeviceInformation +from .tss_v2_transactions_get200_response_error_information import TssV2TransactionsGet200ResponseErrorInformation +from .tss_v2_transactions_get200_response_fraud_marking_information import TssV2TransactionsGet200ResponseFraudMarkingInformation +from .tss_v2_transactions_get200_response_installment_information import TssV2TransactionsGet200ResponseInstallmentInformation +from .tss_v2_transactions_get200_response_merchant_defined_information import TssV2TransactionsGet200ResponseMerchantDefinedInformation +from .tss_v2_transactions_get200_response_merchant_information import TssV2TransactionsGet200ResponseMerchantInformation +from .tss_v2_transactions_get200_response_merchant_information_merchant_descriptor import TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor +from .tss_v2_transactions_get200_response_order_information import TssV2TransactionsGet200ResponseOrderInformation +from .tss_v2_transactions_get200_response_order_information_amount_details import TssV2TransactionsGet200ResponseOrderInformationAmountDetails +from .tss_v2_transactions_get200_response_order_information_bill_to import TssV2TransactionsGet200ResponseOrderInformationBillTo +from .tss_v2_transactions_get200_response_order_information_line_items import TssV2TransactionsGet200ResponseOrderInformationLineItems +from .tss_v2_transactions_get200_response_order_information_ship_to import TssV2TransactionsGet200ResponseOrderInformationShipTo +from .tss_v2_transactions_get200_response_order_information_shipping_details import TssV2TransactionsGet200ResponseOrderInformationShippingDetails +from .tss_v2_transactions_get200_response_payment_information import TssV2TransactionsGet200ResponsePaymentInformation +from .tss_v2_transactions_get200_response_payment_information_account_features import TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures +from .tss_v2_transactions_get200_response_payment_information_bank import TssV2TransactionsGet200ResponsePaymentInformationBank +from .tss_v2_transactions_get200_response_payment_information_bank_account import TssV2TransactionsGet200ResponsePaymentInformationBankAccount +from .tss_v2_transactions_get200_response_payment_information_bank_mandate import TssV2TransactionsGet200ResponsePaymentInformationBankMandate +from .tss_v2_transactions_get200_response_payment_information_card import TssV2TransactionsGet200ResponsePaymentInformationCard +from .tss_v2_transactions_get200_response_payment_information_invoice import TssV2TransactionsGet200ResponsePaymentInformationInvoice +from .tss_v2_transactions_get200_response_payment_information_payment_type import TssV2TransactionsGet200ResponsePaymentInformationPaymentType +from .tss_v2_transactions_get200_response_point_of_sale_information import TssV2TransactionsGet200ResponsePointOfSaleInformation +from .tss_v2_transactions_get200_response_processing_information import TssV2TransactionsGet200ResponseProcessingInformation +from .tss_v2_transactions_get200_response_processing_information_authorization_options import TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions +from .tss_v2_transactions_get200_response_processing_information_bank_transfer_options import TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions +from .tss_v2_transactions_get200_response_processor_information import TssV2TransactionsGet200ResponseProcessorInformation +from .tss_v2_transactions_get200_response_processor_information_ach_verification import TssV2TransactionsGet200ResponseProcessorInformationAchVerification +from .tss_v2_transactions_get200_response_processor_information_card_verification import TssV2TransactionsGet200ResponseProcessorInformationCardVerification +from .tss_v2_transactions_get200_response_processor_information_electronic_verification_results import TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults +from .tss_v2_transactions_get200_response_processor_information_processor import TssV2TransactionsGet200ResponseProcessorInformationProcessor +from .tss_v2_transactions_get200_response_risk_information import TssV2TransactionsGet200ResponseRiskInformation +from .tss_v2_transactions_get200_response_risk_information_profile import TssV2TransactionsGet200ResponseRiskInformationProfile +from .tss_v2_transactions_get200_response_risk_information_score import TssV2TransactionsGet200ResponseRiskInformationScore +from .tss_v2_transactions_get200_response_sender_information import TssV2TransactionsGet200ResponseSenderInformation +from .tss_v2_transactions_post201_response import TssV2TransactionsPost201Response +from .tss_v2_transactions_post201_response__embedded import TssV2TransactionsPost201ResponseEmbedded +from .tss_v2_transactions_post201_response__embedded_buyer_information import TssV2TransactionsPost201ResponseEmbeddedBuyerInformation +from .tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation +from .tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation +from .tss_v2_transactions_post201_response__embedded_device_information import TssV2TransactionsPost201ResponseEmbeddedDeviceInformation +from .tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks +from .tss_v2_transactions_post201_response__embedded_merchant_information import TssV2TransactionsPost201ResponseEmbeddedMerchantInformation +from .tss_v2_transactions_post201_response__embedded_order_information import TssV2TransactionsPost201ResponseEmbeddedOrderInformation +from .tss_v2_transactions_post201_response__embedded_order_information_bill_to import TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo +from .tss_v2_transactions_post201_response__embedded_order_information_ship_to import TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo +from .tss_v2_transactions_post201_response__embedded_payment_information import TssV2TransactionsPost201ResponseEmbeddedPaymentInformation +from .tss_v2_transactions_post201_response__embedded_payment_information_card import TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard +from .tss_v2_transactions_post201_response__embedded_payment_information_payment_method import TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod +from .tss_v2_transactions_post201_response__embedded_point_of_sale_information import TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation +from .tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner import TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner +from .tss_v2_transactions_post201_response__embedded_processing_information import TssV2TransactionsPost201ResponseEmbeddedProcessingInformation +from .tss_v2_transactions_post201_response__embedded_processor_information import TssV2TransactionsPost201ResponseEmbeddedProcessorInformation +from .tss_v2_transactions_post201_response__embedded_risk_information import TssV2TransactionsPost201ResponseEmbeddedRiskInformation +from .tss_v2_transactions_post201_response__embedded_risk_information_providers import TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders +from .tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint import TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint +from .tss_v2_transactions_post201_response__embedded_transaction_summaries import TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries +from .tss_v2_transactions_post400_response import TssV2TransactionsPost400Response +from .tss_v2_transactions_post_response import TssV2TransactionsPostResponse +from .ums_v1_users_get200_response import UmsV1UsersGet200Response +from .ums_v1_users_get200_response_account_information import UmsV1UsersGet200ResponseAccountInformation +from .ums_v1_users_get200_response_contact_information import UmsV1UsersGet200ResponseContactInformation +from .ums_v1_users_get200_response_organization_information import UmsV1UsersGet200ResponseOrganizationInformation +from .ums_v1_users_get200_response_users import UmsV1UsersGet200ResponseUsers +from .v1_file_details_get200_response import V1FileDetailsGet200Response +from .v1_file_details_get200_response_file_details import V1FileDetailsGet200ResponseFileDetails +from .v1_file_details_get200_response__links import V1FileDetailsGet200ResponseLinks +from .v1_file_details_get200_response__links_files import V1FileDetailsGet200ResponseLinksFiles +from .v1_file_details_get200_response__links_self import V1FileDetailsGet200ResponseLinksSelf from .void_capture_request import VoidCaptureRequest from .void_credit_request import VoidCreditRequest from .void_payment_request import VoidPaymentRequest diff --git a/CyberSource/models/auth_reversal_request.py b/CyberSource/models/auth_reversal_request.py index a6e55e3c..40c7f03f 100644 --- a/CyberSource/models/auth_reversal_request.py +++ b/CyberSource/models/auth_reversal_request.py @@ -31,11 +31,11 @@ class AuthReversalRequest(object): and the value is json key in definition. """ swagger_types = { - 'client_reference_information': 'V2paymentsidreversalsClientReferenceInformation', - 'reversal_information': 'V2paymentsidreversalsReversalInformation', - 'processing_information': 'V2paymentsidreversalsProcessingInformation', - 'order_information': 'V2paymentsidreversalsOrderInformation', - 'point_of_sale_information': 'V2paymentsidreversalsPointOfSaleInformation' + 'client_reference_information': 'Ptsv2paymentsidreversalsClientReferenceInformation', + 'reversal_information': 'Ptsv2paymentsidreversalsReversalInformation', + 'processing_information': 'Ptsv2paymentsidreversalsProcessingInformation', + 'order_information': 'Ptsv2paymentsidreversalsOrderInformation', + 'point_of_sale_information': 'Ptsv2paymentsidreversalsPointOfSaleInformation' } attribute_map = { @@ -74,7 +74,7 @@ def client_reference_information(self): Gets the client_reference_information of this AuthReversalRequest. :return: The client_reference_information of this AuthReversalRequest. - :rtype: V2paymentsidreversalsClientReferenceInformation + :rtype: Ptsv2paymentsidreversalsClientReferenceInformation """ return self._client_reference_information @@ -84,7 +84,7 @@ def client_reference_information(self, client_reference_information): Sets the client_reference_information of this AuthReversalRequest. :param client_reference_information: The client_reference_information of this AuthReversalRequest. - :type: V2paymentsidreversalsClientReferenceInformation + :type: Ptsv2paymentsidreversalsClientReferenceInformation """ self._client_reference_information = client_reference_information @@ -95,7 +95,7 @@ def reversal_information(self): Gets the reversal_information of this AuthReversalRequest. :return: The reversal_information of this AuthReversalRequest. - :rtype: V2paymentsidreversalsReversalInformation + :rtype: Ptsv2paymentsidreversalsReversalInformation """ return self._reversal_information @@ -105,7 +105,7 @@ def reversal_information(self, reversal_information): Sets the reversal_information of this AuthReversalRequest. :param reversal_information: The reversal_information of this AuthReversalRequest. - :type: V2paymentsidreversalsReversalInformation + :type: Ptsv2paymentsidreversalsReversalInformation """ self._reversal_information = reversal_information @@ -116,7 +116,7 @@ def processing_information(self): Gets the processing_information of this AuthReversalRequest. :return: The processing_information of this AuthReversalRequest. - :rtype: V2paymentsidreversalsProcessingInformation + :rtype: Ptsv2paymentsidreversalsProcessingInformation """ return self._processing_information @@ -126,7 +126,7 @@ def processing_information(self, processing_information): Sets the processing_information of this AuthReversalRequest. :param processing_information: The processing_information of this AuthReversalRequest. - :type: V2paymentsidreversalsProcessingInformation + :type: Ptsv2paymentsidreversalsProcessingInformation """ self._processing_information = processing_information @@ -137,7 +137,7 @@ def order_information(self): Gets the order_information of this AuthReversalRequest. :return: The order_information of this AuthReversalRequest. - :rtype: V2paymentsidreversalsOrderInformation + :rtype: Ptsv2paymentsidreversalsOrderInformation """ return self._order_information @@ -147,7 +147,7 @@ def order_information(self, order_information): Sets the order_information of this AuthReversalRequest. :param order_information: The order_information of this AuthReversalRequest. - :type: V2paymentsidreversalsOrderInformation + :type: Ptsv2paymentsidreversalsOrderInformation """ self._order_information = order_information @@ -158,7 +158,7 @@ def point_of_sale_information(self): Gets the point_of_sale_information of this AuthReversalRequest. :return: The point_of_sale_information of this AuthReversalRequest. - :rtype: V2paymentsidreversalsPointOfSaleInformation + :rtype: Ptsv2paymentsidreversalsPointOfSaleInformation """ return self._point_of_sale_information @@ -168,7 +168,7 @@ def point_of_sale_information(self, point_of_sale_information): Sets the point_of_sale_information of this AuthReversalRequest. :param point_of_sale_information: The point_of_sale_information of this AuthReversalRequest. - :type: V2paymentsidreversalsPointOfSaleInformation + :type: Ptsv2paymentsidreversalsPointOfSaleInformation """ self._point_of_sale_information = point_of_sale_information diff --git a/CyberSource/models/body.py b/CyberSource/models/body.py index ed59b817..fecca8d0 100644 --- a/CyberSource/models/body.py +++ b/CyberSource/models/body.py @@ -31,14 +31,14 @@ class Body(object): and the value is json key in definition. """ swagger_types = { - 'links': 'InstrumentidentifiersLinks', + 'links': 'Tmsv1instrumentidentifiersLinks', 'id': 'str', 'object': 'str', 'state': 'str', - 'card': 'InstrumentidentifiersCard', - 'bank_account': 'InstrumentidentifiersBankAccount', - 'processing_information': 'InstrumentidentifiersProcessingInformation', - 'metadata': 'InstrumentidentifiersMetadata' + 'card': 'Tmsv1instrumentidentifiersCard', + 'bank_account': 'Tmsv1instrumentidentifiersBankAccount', + 'processing_information': 'Tmsv1instrumentidentifiersProcessingInformation', + 'metadata': 'Tmsv1instrumentidentifiersMetadata' } attribute_map = { @@ -89,7 +89,7 @@ def links(self): Gets the links of this Body. :return: The links of this Body. - :rtype: InstrumentidentifiersLinks + :rtype: Tmsv1instrumentidentifiersLinks """ return self._links @@ -99,7 +99,7 @@ def links(self, links): Sets the links of this Body. :param links: The links of this Body. - :type: InstrumentidentifiersLinks + :type: Tmsv1instrumentidentifiersLinks """ self._links = links @@ -191,7 +191,7 @@ def card(self): Gets the card of this Body. :return: The card of this Body. - :rtype: InstrumentidentifiersCard + :rtype: Tmsv1instrumentidentifiersCard """ return self._card @@ -201,7 +201,7 @@ def card(self, card): Sets the card of this Body. :param card: The card of this Body. - :type: InstrumentidentifiersCard + :type: Tmsv1instrumentidentifiersCard """ self._card = card @@ -212,7 +212,7 @@ def bank_account(self): Gets the bank_account of this Body. :return: The bank_account of this Body. - :rtype: InstrumentidentifiersBankAccount + :rtype: Tmsv1instrumentidentifiersBankAccount """ return self._bank_account @@ -222,7 +222,7 @@ def bank_account(self, bank_account): Sets the bank_account of this Body. :param bank_account: The bank_account of this Body. - :type: InstrumentidentifiersBankAccount + :type: Tmsv1instrumentidentifiersBankAccount """ self._bank_account = bank_account @@ -233,7 +233,7 @@ def processing_information(self): Gets the processing_information of this Body. :return: The processing_information of this Body. - :rtype: InstrumentidentifiersProcessingInformation + :rtype: Tmsv1instrumentidentifiersProcessingInformation """ return self._processing_information @@ -243,7 +243,7 @@ def processing_information(self, processing_information): Sets the processing_information of this Body. :param processing_information: The processing_information of this Body. - :type: InstrumentidentifiersProcessingInformation + :type: Tmsv1instrumentidentifiersProcessingInformation """ self._processing_information = processing_information @@ -254,7 +254,7 @@ def metadata(self): Gets the metadata of this Body. :return: The metadata of this Body. - :rtype: InstrumentidentifiersMetadata + :rtype: Tmsv1instrumentidentifiersMetadata """ return self._metadata @@ -264,7 +264,7 @@ def metadata(self, metadata): Sets the metadata of this Body. :param metadata: The metadata of this Body. - :type: InstrumentidentifiersMetadata + :type: Tmsv1instrumentidentifiersMetadata """ self._metadata = metadata diff --git a/CyberSource/models/body_1.py b/CyberSource/models/body_1.py index 1960091a..6dac3df6 100644 --- a/CyberSource/models/body_1.py +++ b/CyberSource/models/body_1.py @@ -31,7 +31,7 @@ class Body1(object): and the value is json key in definition. """ swagger_types = { - 'processing_information': 'InstrumentidentifiersProcessingInformation' + 'processing_information': 'Tmsv1instrumentidentifiersProcessingInformation' } attribute_map = { @@ -54,7 +54,7 @@ def processing_information(self): Gets the processing_information of this Body1. :return: The processing_information of this Body1. - :rtype: InstrumentidentifiersProcessingInformation + :rtype: Tmsv1instrumentidentifiersProcessingInformation """ return self._processing_information @@ -64,7 +64,7 @@ def processing_information(self, processing_information): Sets the processing_information of this Body1. :param processing_information: The processing_information of this Body1. - :type: InstrumentidentifiersProcessingInformation + :type: Tmsv1instrumentidentifiersProcessingInformation """ self._processing_information = processing_information diff --git a/CyberSource/models/body_2.py b/CyberSource/models/body_2.py index d91bcd9f..dac4e69f 100644 --- a/CyberSource/models/body_2.py +++ b/CyberSource/models/body_2.py @@ -31,18 +31,18 @@ class Body2(object): and the value is json key in definition. """ swagger_types = { - 'links': 'InstrumentidentifiersLinks', + 'links': 'Tmsv1instrumentidentifiersLinks', 'id': 'str', 'object': 'str', 'state': 'str', - 'bank_account': 'PaymentinstrumentsBankAccount', - 'card': 'PaymentinstrumentsCard', - 'buyer_information': 'PaymentinstrumentsBuyerInformation', - 'bill_to': 'PaymentinstrumentsBillTo', - 'processing_information': 'PaymentinstrumentsProcessingInformation', - 'merchant_information': 'PaymentinstrumentsMerchantInformation', - 'meta_data': 'InstrumentidentifiersMetadata', - 'instrument_identifier': 'PaymentinstrumentsInstrumentIdentifier' + 'bank_account': 'Tmsv1paymentinstrumentsBankAccount', + 'card': 'Tmsv1paymentinstrumentsCard', + 'buyer_information': 'Tmsv1paymentinstrumentsBuyerInformation', + 'bill_to': 'Tmsv1paymentinstrumentsBillTo', + 'processing_information': 'Tmsv1paymentinstrumentsProcessingInformation', + 'merchant_information': 'Tmsv1paymentinstrumentsMerchantInformation', + 'meta_data': 'Tmsv1instrumentidentifiersMetadata', + 'instrument_identifier': 'Tmsv1paymentinstrumentsInstrumentIdentifier' } attribute_map = { @@ -109,7 +109,7 @@ def links(self): Gets the links of this Body2. :return: The links of this Body2. - :rtype: InstrumentidentifiersLinks + :rtype: Tmsv1instrumentidentifiersLinks """ return self._links @@ -119,7 +119,7 @@ def links(self, links): Sets the links of this Body2. :param links: The links of this Body2. - :type: InstrumentidentifiersLinks + :type: Tmsv1instrumentidentifiersLinks """ self._links = links @@ -211,7 +211,7 @@ def bank_account(self): Gets the bank_account of this Body2. :return: The bank_account of this Body2. - :rtype: PaymentinstrumentsBankAccount + :rtype: Tmsv1paymentinstrumentsBankAccount """ return self._bank_account @@ -221,7 +221,7 @@ def bank_account(self, bank_account): Sets the bank_account of this Body2. :param bank_account: The bank_account of this Body2. - :type: PaymentinstrumentsBankAccount + :type: Tmsv1paymentinstrumentsBankAccount """ self._bank_account = bank_account @@ -232,7 +232,7 @@ def card(self): Gets the card of this Body2. :return: The card of this Body2. - :rtype: PaymentinstrumentsCard + :rtype: Tmsv1paymentinstrumentsCard """ return self._card @@ -242,7 +242,7 @@ def card(self, card): Sets the card of this Body2. :param card: The card of this Body2. - :type: PaymentinstrumentsCard + :type: Tmsv1paymentinstrumentsCard """ self._card = card @@ -253,7 +253,7 @@ def buyer_information(self): Gets the buyer_information of this Body2. :return: The buyer_information of this Body2. - :rtype: PaymentinstrumentsBuyerInformation + :rtype: Tmsv1paymentinstrumentsBuyerInformation """ return self._buyer_information @@ -263,7 +263,7 @@ def buyer_information(self, buyer_information): Sets the buyer_information of this Body2. :param buyer_information: The buyer_information of this Body2. - :type: PaymentinstrumentsBuyerInformation + :type: Tmsv1paymentinstrumentsBuyerInformation """ self._buyer_information = buyer_information @@ -274,7 +274,7 @@ def bill_to(self): Gets the bill_to of this Body2. :return: The bill_to of this Body2. - :rtype: PaymentinstrumentsBillTo + :rtype: Tmsv1paymentinstrumentsBillTo """ return self._bill_to @@ -284,7 +284,7 @@ def bill_to(self, bill_to): Sets the bill_to of this Body2. :param bill_to: The bill_to of this Body2. - :type: PaymentinstrumentsBillTo + :type: Tmsv1paymentinstrumentsBillTo """ self._bill_to = bill_to @@ -295,7 +295,7 @@ def processing_information(self): Gets the processing_information of this Body2. :return: The processing_information of this Body2. - :rtype: PaymentinstrumentsProcessingInformation + :rtype: Tmsv1paymentinstrumentsProcessingInformation """ return self._processing_information @@ -305,7 +305,7 @@ def processing_information(self, processing_information): Sets the processing_information of this Body2. :param processing_information: The processing_information of this Body2. - :type: PaymentinstrumentsProcessingInformation + :type: Tmsv1paymentinstrumentsProcessingInformation """ self._processing_information = processing_information @@ -316,7 +316,7 @@ def merchant_information(self): Gets the merchant_information of this Body2. :return: The merchant_information of this Body2. - :rtype: PaymentinstrumentsMerchantInformation + :rtype: Tmsv1paymentinstrumentsMerchantInformation """ return self._merchant_information @@ -326,7 +326,7 @@ def merchant_information(self, merchant_information): Sets the merchant_information of this Body2. :param merchant_information: The merchant_information of this Body2. - :type: PaymentinstrumentsMerchantInformation + :type: Tmsv1paymentinstrumentsMerchantInformation """ self._merchant_information = merchant_information @@ -337,7 +337,7 @@ def meta_data(self): Gets the meta_data of this Body2. :return: The meta_data of this Body2. - :rtype: InstrumentidentifiersMetadata + :rtype: Tmsv1instrumentidentifiersMetadata """ return self._meta_data @@ -347,7 +347,7 @@ def meta_data(self, meta_data): Sets the meta_data of this Body2. :param meta_data: The meta_data of this Body2. - :type: InstrumentidentifiersMetadata + :type: Tmsv1instrumentidentifiersMetadata """ self._meta_data = meta_data @@ -358,7 +358,7 @@ def instrument_identifier(self): Gets the instrument_identifier of this Body2. :return: The instrument_identifier of this Body2. - :rtype: PaymentinstrumentsInstrumentIdentifier + :rtype: Tmsv1paymentinstrumentsInstrumentIdentifier """ return self._instrument_identifier @@ -368,7 +368,7 @@ def instrument_identifier(self, instrument_identifier): Sets the instrument_identifier of this Body2. :param instrument_identifier: The instrument_identifier of this Body2. - :type: PaymentinstrumentsInstrumentIdentifier + :type: Tmsv1paymentinstrumentsInstrumentIdentifier """ self._instrument_identifier = instrument_identifier diff --git a/CyberSource/models/body_3.py b/CyberSource/models/body_3.py index 7454d448..c1a6c16d 100644 --- a/CyberSource/models/body_3.py +++ b/CyberSource/models/body_3.py @@ -31,18 +31,18 @@ class Body3(object): and the value is json key in definition. """ swagger_types = { - 'links': 'InstrumentidentifiersLinks', + 'links': 'Tmsv1instrumentidentifiersLinks', 'id': 'str', 'object': 'str', 'state': 'str', - 'bank_account': 'PaymentinstrumentsBankAccount', - 'card': 'PaymentinstrumentsCard', - 'buyer_information': 'PaymentinstrumentsBuyerInformation', - 'bill_to': 'PaymentinstrumentsBillTo', - 'processing_information': 'PaymentinstrumentsProcessingInformation', - 'merchant_information': 'PaymentinstrumentsMerchantInformation', - 'meta_data': 'InstrumentidentifiersMetadata', - 'instrument_identifier': 'PaymentinstrumentsInstrumentIdentifier' + 'bank_account': 'Tmsv1paymentinstrumentsBankAccount', + 'card': 'Tmsv1paymentinstrumentsCard', + 'buyer_information': 'Tmsv1paymentinstrumentsBuyerInformation', + 'bill_to': 'Tmsv1paymentinstrumentsBillTo', + 'processing_information': 'Tmsv1paymentinstrumentsProcessingInformation', + 'merchant_information': 'Tmsv1paymentinstrumentsMerchantInformation', + 'meta_data': 'Tmsv1instrumentidentifiersMetadata', + 'instrument_identifier': 'Tmsv1paymentinstrumentsInstrumentIdentifier' } attribute_map = { @@ -109,7 +109,7 @@ def links(self): Gets the links of this Body3. :return: The links of this Body3. - :rtype: InstrumentidentifiersLinks + :rtype: Tmsv1instrumentidentifiersLinks """ return self._links @@ -119,7 +119,7 @@ def links(self, links): Sets the links of this Body3. :param links: The links of this Body3. - :type: InstrumentidentifiersLinks + :type: Tmsv1instrumentidentifiersLinks """ self._links = links @@ -211,7 +211,7 @@ def bank_account(self): Gets the bank_account of this Body3. :return: The bank_account of this Body3. - :rtype: PaymentinstrumentsBankAccount + :rtype: Tmsv1paymentinstrumentsBankAccount """ return self._bank_account @@ -221,7 +221,7 @@ def bank_account(self, bank_account): Sets the bank_account of this Body3. :param bank_account: The bank_account of this Body3. - :type: PaymentinstrumentsBankAccount + :type: Tmsv1paymentinstrumentsBankAccount """ self._bank_account = bank_account @@ -232,7 +232,7 @@ def card(self): Gets the card of this Body3. :return: The card of this Body3. - :rtype: PaymentinstrumentsCard + :rtype: Tmsv1paymentinstrumentsCard """ return self._card @@ -242,7 +242,7 @@ def card(self, card): Sets the card of this Body3. :param card: The card of this Body3. - :type: PaymentinstrumentsCard + :type: Tmsv1paymentinstrumentsCard """ self._card = card @@ -253,7 +253,7 @@ def buyer_information(self): Gets the buyer_information of this Body3. :return: The buyer_information of this Body3. - :rtype: PaymentinstrumentsBuyerInformation + :rtype: Tmsv1paymentinstrumentsBuyerInformation """ return self._buyer_information @@ -263,7 +263,7 @@ def buyer_information(self, buyer_information): Sets the buyer_information of this Body3. :param buyer_information: The buyer_information of this Body3. - :type: PaymentinstrumentsBuyerInformation + :type: Tmsv1paymentinstrumentsBuyerInformation """ self._buyer_information = buyer_information @@ -274,7 +274,7 @@ def bill_to(self): Gets the bill_to of this Body3. :return: The bill_to of this Body3. - :rtype: PaymentinstrumentsBillTo + :rtype: Tmsv1paymentinstrumentsBillTo """ return self._bill_to @@ -284,7 +284,7 @@ def bill_to(self, bill_to): Sets the bill_to of this Body3. :param bill_to: The bill_to of this Body3. - :type: PaymentinstrumentsBillTo + :type: Tmsv1paymentinstrumentsBillTo """ self._bill_to = bill_to @@ -295,7 +295,7 @@ def processing_information(self): Gets the processing_information of this Body3. :return: The processing_information of this Body3. - :rtype: PaymentinstrumentsProcessingInformation + :rtype: Tmsv1paymentinstrumentsProcessingInformation """ return self._processing_information @@ -305,7 +305,7 @@ def processing_information(self, processing_information): Sets the processing_information of this Body3. :param processing_information: The processing_information of this Body3. - :type: PaymentinstrumentsProcessingInformation + :type: Tmsv1paymentinstrumentsProcessingInformation """ self._processing_information = processing_information @@ -316,7 +316,7 @@ def merchant_information(self): Gets the merchant_information of this Body3. :return: The merchant_information of this Body3. - :rtype: PaymentinstrumentsMerchantInformation + :rtype: Tmsv1paymentinstrumentsMerchantInformation """ return self._merchant_information @@ -326,7 +326,7 @@ def merchant_information(self, merchant_information): Sets the merchant_information of this Body3. :param merchant_information: The merchant_information of this Body3. - :type: PaymentinstrumentsMerchantInformation + :type: Tmsv1paymentinstrumentsMerchantInformation """ self._merchant_information = merchant_information @@ -337,7 +337,7 @@ def meta_data(self): Gets the meta_data of this Body3. :return: The meta_data of this Body3. - :rtype: InstrumentidentifiersMetadata + :rtype: Tmsv1instrumentidentifiersMetadata """ return self._meta_data @@ -347,7 +347,7 @@ def meta_data(self, meta_data): Sets the meta_data of this Body3. :param meta_data: The meta_data of this Body3. - :type: InstrumentidentifiersMetadata + :type: Tmsv1instrumentidentifiersMetadata """ self._meta_data = meta_data @@ -358,7 +358,7 @@ def instrument_identifier(self): Gets the instrument_identifier of this Body3. :return: The instrument_identifier of this Body3. - :rtype: PaymentinstrumentsInstrumentIdentifier + :rtype: Tmsv1paymentinstrumentsInstrumentIdentifier """ return self._instrument_identifier @@ -368,7 +368,7 @@ def instrument_identifier(self, instrument_identifier): Sets the instrument_identifier of this Body3. :param instrument_identifier: The instrument_identifier of this Body3. - :type: PaymentinstrumentsInstrumentIdentifier + :type: Tmsv1paymentinstrumentsInstrumentIdentifier """ self._instrument_identifier = instrument_identifier diff --git a/CyberSource/models/capture_payment_request.py b/CyberSource/models/capture_payment_request.py index 2e52e093..14a5af97 100644 --- a/CyberSource/models/capture_payment_request.py +++ b/CyberSource/models/capture_payment_request.py @@ -31,16 +31,16 @@ class CapturePaymentRequest(object): and the value is json key in definition. """ swagger_types = { - 'client_reference_information': 'V2paymentsClientReferenceInformation', - 'processing_information': 'V2paymentsidcapturesProcessingInformation', - 'payment_information': 'V2paymentsidcapturesPaymentInformation', - 'order_information': 'V2paymentsidcapturesOrderInformation', - 'buyer_information': 'V2paymentsidcapturesBuyerInformation', - 'device_information': 'V2paymentsDeviceInformation', - 'merchant_information': 'V2paymentsidcapturesMerchantInformation', - 'aggregator_information': 'V2paymentsidcapturesAggregatorInformation', - 'point_of_sale_information': 'V2paymentsidcapturesPointOfSaleInformation', - 'merchant_defined_information': 'list[V2paymentsMerchantDefinedInformation]' + 'client_reference_information': 'Ptsv2paymentsClientReferenceInformation', + 'processing_information': 'Ptsv2paymentsidcapturesProcessingInformation', + 'payment_information': 'Ptsv2paymentsidcapturesPaymentInformation', + 'order_information': 'Ptsv2paymentsidcapturesOrderInformation', + 'buyer_information': 'Ptsv2paymentsidcapturesBuyerInformation', + 'device_information': 'Ptsv2paymentsDeviceInformation', + 'merchant_information': 'Ptsv2paymentsidcapturesMerchantInformation', + 'aggregator_information': 'Ptsv2paymentsidcapturesAggregatorInformation', + 'point_of_sale_information': 'Ptsv2paymentsidcapturesPointOfSaleInformation', + 'merchant_defined_information': 'list[Ptsv2paymentsMerchantDefinedInformation]' } attribute_map = { @@ -99,7 +99,7 @@ def client_reference_information(self): Gets the client_reference_information of this CapturePaymentRequest. :return: The client_reference_information of this CapturePaymentRequest. - :rtype: V2paymentsClientReferenceInformation + :rtype: Ptsv2paymentsClientReferenceInformation """ return self._client_reference_information @@ -109,7 +109,7 @@ def client_reference_information(self, client_reference_information): Sets the client_reference_information of this CapturePaymentRequest. :param client_reference_information: The client_reference_information of this CapturePaymentRequest. - :type: V2paymentsClientReferenceInformation + :type: Ptsv2paymentsClientReferenceInformation """ self._client_reference_information = client_reference_information @@ -120,7 +120,7 @@ def processing_information(self): Gets the processing_information of this CapturePaymentRequest. :return: The processing_information of this CapturePaymentRequest. - :rtype: V2paymentsidcapturesProcessingInformation + :rtype: Ptsv2paymentsidcapturesProcessingInformation """ return self._processing_information @@ -130,7 +130,7 @@ def processing_information(self, processing_information): Sets the processing_information of this CapturePaymentRequest. :param processing_information: The processing_information of this CapturePaymentRequest. - :type: V2paymentsidcapturesProcessingInformation + :type: Ptsv2paymentsidcapturesProcessingInformation """ self._processing_information = processing_information @@ -141,7 +141,7 @@ def payment_information(self): Gets the payment_information of this CapturePaymentRequest. :return: The payment_information of this CapturePaymentRequest. - :rtype: V2paymentsidcapturesPaymentInformation + :rtype: Ptsv2paymentsidcapturesPaymentInformation """ return self._payment_information @@ -151,7 +151,7 @@ def payment_information(self, payment_information): Sets the payment_information of this CapturePaymentRequest. :param payment_information: The payment_information of this CapturePaymentRequest. - :type: V2paymentsidcapturesPaymentInformation + :type: Ptsv2paymentsidcapturesPaymentInformation """ self._payment_information = payment_information @@ -162,7 +162,7 @@ def order_information(self): Gets the order_information of this CapturePaymentRequest. :return: The order_information of this CapturePaymentRequest. - :rtype: V2paymentsidcapturesOrderInformation + :rtype: Ptsv2paymentsidcapturesOrderInformation """ return self._order_information @@ -172,7 +172,7 @@ def order_information(self, order_information): Sets the order_information of this CapturePaymentRequest. :param order_information: The order_information of this CapturePaymentRequest. - :type: V2paymentsidcapturesOrderInformation + :type: Ptsv2paymentsidcapturesOrderInformation """ self._order_information = order_information @@ -183,7 +183,7 @@ def buyer_information(self): Gets the buyer_information of this CapturePaymentRequest. :return: The buyer_information of this CapturePaymentRequest. - :rtype: V2paymentsidcapturesBuyerInformation + :rtype: Ptsv2paymentsidcapturesBuyerInformation """ return self._buyer_information @@ -193,7 +193,7 @@ def buyer_information(self, buyer_information): Sets the buyer_information of this CapturePaymentRequest. :param buyer_information: The buyer_information of this CapturePaymentRequest. - :type: V2paymentsidcapturesBuyerInformation + :type: Ptsv2paymentsidcapturesBuyerInformation """ self._buyer_information = buyer_information @@ -204,7 +204,7 @@ def device_information(self): Gets the device_information of this CapturePaymentRequest. :return: The device_information of this CapturePaymentRequest. - :rtype: V2paymentsDeviceInformation + :rtype: Ptsv2paymentsDeviceInformation """ return self._device_information @@ -214,7 +214,7 @@ def device_information(self, device_information): Sets the device_information of this CapturePaymentRequest. :param device_information: The device_information of this CapturePaymentRequest. - :type: V2paymentsDeviceInformation + :type: Ptsv2paymentsDeviceInformation """ self._device_information = device_information @@ -225,7 +225,7 @@ def merchant_information(self): Gets the merchant_information of this CapturePaymentRequest. :return: The merchant_information of this CapturePaymentRequest. - :rtype: V2paymentsidcapturesMerchantInformation + :rtype: Ptsv2paymentsidcapturesMerchantInformation """ return self._merchant_information @@ -235,7 +235,7 @@ def merchant_information(self, merchant_information): Sets the merchant_information of this CapturePaymentRequest. :param merchant_information: The merchant_information of this CapturePaymentRequest. - :type: V2paymentsidcapturesMerchantInformation + :type: Ptsv2paymentsidcapturesMerchantInformation """ self._merchant_information = merchant_information @@ -246,7 +246,7 @@ def aggregator_information(self): Gets the aggregator_information of this CapturePaymentRequest. :return: The aggregator_information of this CapturePaymentRequest. - :rtype: V2paymentsidcapturesAggregatorInformation + :rtype: Ptsv2paymentsidcapturesAggregatorInformation """ return self._aggregator_information @@ -256,7 +256,7 @@ def aggregator_information(self, aggregator_information): Sets the aggregator_information of this CapturePaymentRequest. :param aggregator_information: The aggregator_information of this CapturePaymentRequest. - :type: V2paymentsidcapturesAggregatorInformation + :type: Ptsv2paymentsidcapturesAggregatorInformation """ self._aggregator_information = aggregator_information @@ -267,7 +267,7 @@ def point_of_sale_information(self): Gets the point_of_sale_information of this CapturePaymentRequest. :return: The point_of_sale_information of this CapturePaymentRequest. - :rtype: V2paymentsidcapturesPointOfSaleInformation + :rtype: Ptsv2paymentsidcapturesPointOfSaleInformation """ return self._point_of_sale_information @@ -277,7 +277,7 @@ def point_of_sale_information(self, point_of_sale_information): Sets the point_of_sale_information of this CapturePaymentRequest. :param point_of_sale_information: The point_of_sale_information of this CapturePaymentRequest. - :type: V2paymentsidcapturesPointOfSaleInformation + :type: Ptsv2paymentsidcapturesPointOfSaleInformation """ self._point_of_sale_information = point_of_sale_information @@ -286,10 +286,10 @@ def point_of_sale_information(self, point_of_sale_information): def merchant_defined_information(self): """ Gets the merchant_defined_information of this CapturePaymentRequest. - TBD + Description of this field is not available. :return: The merchant_defined_information of this CapturePaymentRequest. - :rtype: list[V2paymentsMerchantDefinedInformation] + :rtype: list[Ptsv2paymentsMerchantDefinedInformation] """ return self._merchant_defined_information @@ -297,10 +297,10 @@ def merchant_defined_information(self): def merchant_defined_information(self, merchant_defined_information): """ Sets the merchant_defined_information of this CapturePaymentRequest. - TBD + Description of this field is not available. :param merchant_defined_information: The merchant_defined_information of this CapturePaymentRequest. - :type: list[V2paymentsMerchantDefinedInformation] + :type: list[Ptsv2paymentsMerchantDefinedInformation] """ self._merchant_defined_information = merchant_defined_information diff --git a/CyberSource/models/create_credit_request.py b/CyberSource/models/create_credit_request.py index 16fff7eb..ce71ce9d 100644 --- a/CyberSource/models/create_credit_request.py +++ b/CyberSource/models/create_credit_request.py @@ -31,16 +31,16 @@ class CreateCreditRequest(object): and the value is json key in definition. """ swagger_types = { - 'client_reference_information': 'V2paymentsClientReferenceInformation', - 'processing_information': 'V2creditsProcessingInformation', - 'payment_information': 'V2paymentsidrefundsPaymentInformation', - 'order_information': 'V2paymentsidrefundsOrderInformation', - 'buyer_information': 'V2paymentsidcapturesBuyerInformation', - 'device_information': 'V2paymentsDeviceInformation', - 'merchant_information': 'V2paymentsidrefundsMerchantInformation', - 'aggregator_information': 'V2paymentsidcapturesAggregatorInformation', - 'point_of_sale_information': 'V2creditsPointOfSaleInformation', - 'merchant_defined_information': 'list[V2paymentsMerchantDefinedInformation]' + 'client_reference_information': 'Ptsv2paymentsClientReferenceInformation', + 'processing_information': 'Ptsv2creditsProcessingInformation', + 'payment_information': 'Ptsv2paymentsidrefundsPaymentInformation', + 'order_information': 'Ptsv2paymentsidrefundsOrderInformation', + 'buyer_information': 'Ptsv2paymentsidcapturesBuyerInformation', + 'device_information': 'Ptsv2paymentsDeviceInformation', + 'merchant_information': 'Ptsv2paymentsidrefundsMerchantInformation', + 'aggregator_information': 'Ptsv2paymentsidcapturesAggregatorInformation', + 'point_of_sale_information': 'Ptsv2creditsPointOfSaleInformation', + 'merchant_defined_information': 'list[Ptsv2paymentsMerchantDefinedInformation]' } attribute_map = { @@ -99,7 +99,7 @@ def client_reference_information(self): Gets the client_reference_information of this CreateCreditRequest. :return: The client_reference_information of this CreateCreditRequest. - :rtype: V2paymentsClientReferenceInformation + :rtype: Ptsv2paymentsClientReferenceInformation """ return self._client_reference_information @@ -109,7 +109,7 @@ def client_reference_information(self, client_reference_information): Sets the client_reference_information of this CreateCreditRequest. :param client_reference_information: The client_reference_information of this CreateCreditRequest. - :type: V2paymentsClientReferenceInformation + :type: Ptsv2paymentsClientReferenceInformation """ self._client_reference_information = client_reference_information @@ -120,7 +120,7 @@ def processing_information(self): Gets the processing_information of this CreateCreditRequest. :return: The processing_information of this CreateCreditRequest. - :rtype: V2creditsProcessingInformation + :rtype: Ptsv2creditsProcessingInformation """ return self._processing_information @@ -130,7 +130,7 @@ def processing_information(self, processing_information): Sets the processing_information of this CreateCreditRequest. :param processing_information: The processing_information of this CreateCreditRequest. - :type: V2creditsProcessingInformation + :type: Ptsv2creditsProcessingInformation """ self._processing_information = processing_information @@ -141,7 +141,7 @@ def payment_information(self): Gets the payment_information of this CreateCreditRequest. :return: The payment_information of this CreateCreditRequest. - :rtype: V2paymentsidrefundsPaymentInformation + :rtype: Ptsv2paymentsidrefundsPaymentInformation """ return self._payment_information @@ -151,7 +151,7 @@ def payment_information(self, payment_information): Sets the payment_information of this CreateCreditRequest. :param payment_information: The payment_information of this CreateCreditRequest. - :type: V2paymentsidrefundsPaymentInformation + :type: Ptsv2paymentsidrefundsPaymentInformation """ self._payment_information = payment_information @@ -162,7 +162,7 @@ def order_information(self): Gets the order_information of this CreateCreditRequest. :return: The order_information of this CreateCreditRequest. - :rtype: V2paymentsidrefundsOrderInformation + :rtype: Ptsv2paymentsidrefundsOrderInformation """ return self._order_information @@ -172,7 +172,7 @@ def order_information(self, order_information): Sets the order_information of this CreateCreditRequest. :param order_information: The order_information of this CreateCreditRequest. - :type: V2paymentsidrefundsOrderInformation + :type: Ptsv2paymentsidrefundsOrderInformation """ self._order_information = order_information @@ -183,7 +183,7 @@ def buyer_information(self): Gets the buyer_information of this CreateCreditRequest. :return: The buyer_information of this CreateCreditRequest. - :rtype: V2paymentsidcapturesBuyerInformation + :rtype: Ptsv2paymentsidcapturesBuyerInformation """ return self._buyer_information @@ -193,7 +193,7 @@ def buyer_information(self, buyer_information): Sets the buyer_information of this CreateCreditRequest. :param buyer_information: The buyer_information of this CreateCreditRequest. - :type: V2paymentsidcapturesBuyerInformation + :type: Ptsv2paymentsidcapturesBuyerInformation """ self._buyer_information = buyer_information @@ -204,7 +204,7 @@ def device_information(self): Gets the device_information of this CreateCreditRequest. :return: The device_information of this CreateCreditRequest. - :rtype: V2paymentsDeviceInformation + :rtype: Ptsv2paymentsDeviceInformation """ return self._device_information @@ -214,7 +214,7 @@ def device_information(self, device_information): Sets the device_information of this CreateCreditRequest. :param device_information: The device_information of this CreateCreditRequest. - :type: V2paymentsDeviceInformation + :type: Ptsv2paymentsDeviceInformation """ self._device_information = device_information @@ -225,7 +225,7 @@ def merchant_information(self): Gets the merchant_information of this CreateCreditRequest. :return: The merchant_information of this CreateCreditRequest. - :rtype: V2paymentsidrefundsMerchantInformation + :rtype: Ptsv2paymentsidrefundsMerchantInformation """ return self._merchant_information @@ -235,7 +235,7 @@ def merchant_information(self, merchant_information): Sets the merchant_information of this CreateCreditRequest. :param merchant_information: The merchant_information of this CreateCreditRequest. - :type: V2paymentsidrefundsMerchantInformation + :type: Ptsv2paymentsidrefundsMerchantInformation """ self._merchant_information = merchant_information @@ -246,7 +246,7 @@ def aggregator_information(self): Gets the aggregator_information of this CreateCreditRequest. :return: The aggregator_information of this CreateCreditRequest. - :rtype: V2paymentsidcapturesAggregatorInformation + :rtype: Ptsv2paymentsidcapturesAggregatorInformation """ return self._aggregator_information @@ -256,7 +256,7 @@ def aggregator_information(self, aggregator_information): Sets the aggregator_information of this CreateCreditRequest. :param aggregator_information: The aggregator_information of this CreateCreditRequest. - :type: V2paymentsidcapturesAggregatorInformation + :type: Ptsv2paymentsidcapturesAggregatorInformation """ self._aggregator_information = aggregator_information @@ -267,7 +267,7 @@ def point_of_sale_information(self): Gets the point_of_sale_information of this CreateCreditRequest. :return: The point_of_sale_information of this CreateCreditRequest. - :rtype: V2creditsPointOfSaleInformation + :rtype: Ptsv2creditsPointOfSaleInformation """ return self._point_of_sale_information @@ -277,7 +277,7 @@ def point_of_sale_information(self, point_of_sale_information): Sets the point_of_sale_information of this CreateCreditRequest. :param point_of_sale_information: The point_of_sale_information of this CreateCreditRequest. - :type: V2creditsPointOfSaleInformation + :type: Ptsv2creditsPointOfSaleInformation """ self._point_of_sale_information = point_of_sale_information @@ -286,10 +286,10 @@ def point_of_sale_information(self, point_of_sale_information): def merchant_defined_information(self): """ Gets the merchant_defined_information of this CreateCreditRequest. - TBD + Description of this field is not available. :return: The merchant_defined_information of this CreateCreditRequest. - :rtype: list[V2paymentsMerchantDefinedInformation] + :rtype: list[Ptsv2paymentsMerchantDefinedInformation] """ return self._merchant_defined_information @@ -297,10 +297,10 @@ def merchant_defined_information(self): def merchant_defined_information(self, merchant_defined_information): """ Sets the merchant_defined_information of this CreateCreditRequest. - TBD + Description of this field is not available. :param merchant_defined_information: The merchant_defined_information of this CreateCreditRequest. - :type: list[V2paymentsMerchantDefinedInformation] + :type: list[Ptsv2paymentsMerchantDefinedInformation] """ self._merchant_defined_information = merchant_defined_information diff --git a/CyberSource/models/create_payment_request.py b/CyberSource/models/create_payment_request.py index ddb937bf..bb05c1b2 100644 --- a/CyberSource/models/create_payment_request.py +++ b/CyberSource/models/create_payment_request.py @@ -31,18 +31,18 @@ class CreatePaymentRequest(object): and the value is json key in definition. """ swagger_types = { - 'client_reference_information': 'V2paymentsClientReferenceInformation', - 'processing_information': 'V2paymentsProcessingInformation', - 'payment_information': 'V2paymentsPaymentInformation', - 'order_information': 'V2paymentsOrderInformation', - 'buyer_information': 'V2paymentsBuyerInformation', - 'recipient_information': 'V2paymentsRecipientInformation', - 'device_information': 'V2paymentsDeviceInformation', - 'merchant_information': 'V2paymentsMerchantInformation', - 'aggregator_information': 'V2paymentsAggregatorInformation', - 'consumer_authentication_information': 'V2paymentsConsumerAuthenticationInformation', - 'point_of_sale_information': 'V2paymentsPointOfSaleInformation', - 'merchant_defined_information': 'list[V2paymentsMerchantDefinedInformation]' + 'client_reference_information': 'Ptsv2paymentsClientReferenceInformation', + 'processing_information': 'Ptsv2paymentsProcessingInformation', + 'payment_information': 'Ptsv2paymentsPaymentInformation', + 'order_information': 'Ptsv2paymentsOrderInformation', + 'buyer_information': 'Ptsv2paymentsBuyerInformation', + 'recipient_information': 'Ptsv2paymentsRecipientInformation', + 'device_information': 'Ptsv2paymentsDeviceInformation', + 'merchant_information': 'Ptsv2paymentsMerchantInformation', + 'aggregator_information': 'Ptsv2paymentsAggregatorInformation', + 'consumer_authentication_information': 'Ptsv2paymentsConsumerAuthenticationInformation', + 'point_of_sale_information': 'Ptsv2paymentsPointOfSaleInformation', + 'merchant_defined_information': 'list[Ptsv2paymentsMerchantDefinedInformation]' } attribute_map = { @@ -109,7 +109,7 @@ def client_reference_information(self): Gets the client_reference_information of this CreatePaymentRequest. :return: The client_reference_information of this CreatePaymentRequest. - :rtype: V2paymentsClientReferenceInformation + :rtype: Ptsv2paymentsClientReferenceInformation """ return self._client_reference_information @@ -119,7 +119,7 @@ def client_reference_information(self, client_reference_information): Sets the client_reference_information of this CreatePaymentRequest. :param client_reference_information: The client_reference_information of this CreatePaymentRequest. - :type: V2paymentsClientReferenceInformation + :type: Ptsv2paymentsClientReferenceInformation """ self._client_reference_information = client_reference_information @@ -130,7 +130,7 @@ def processing_information(self): Gets the processing_information of this CreatePaymentRequest. :return: The processing_information of this CreatePaymentRequest. - :rtype: V2paymentsProcessingInformation + :rtype: Ptsv2paymentsProcessingInformation """ return self._processing_information @@ -140,7 +140,7 @@ def processing_information(self, processing_information): Sets the processing_information of this CreatePaymentRequest. :param processing_information: The processing_information of this CreatePaymentRequest. - :type: V2paymentsProcessingInformation + :type: Ptsv2paymentsProcessingInformation """ self._processing_information = processing_information @@ -151,7 +151,7 @@ def payment_information(self): Gets the payment_information of this CreatePaymentRequest. :return: The payment_information of this CreatePaymentRequest. - :rtype: V2paymentsPaymentInformation + :rtype: Ptsv2paymentsPaymentInformation """ return self._payment_information @@ -161,7 +161,7 @@ def payment_information(self, payment_information): Sets the payment_information of this CreatePaymentRequest. :param payment_information: The payment_information of this CreatePaymentRequest. - :type: V2paymentsPaymentInformation + :type: Ptsv2paymentsPaymentInformation """ self._payment_information = payment_information @@ -172,7 +172,7 @@ def order_information(self): Gets the order_information of this CreatePaymentRequest. :return: The order_information of this CreatePaymentRequest. - :rtype: V2paymentsOrderInformation + :rtype: Ptsv2paymentsOrderInformation """ return self._order_information @@ -182,7 +182,7 @@ def order_information(self, order_information): Sets the order_information of this CreatePaymentRequest. :param order_information: The order_information of this CreatePaymentRequest. - :type: V2paymentsOrderInformation + :type: Ptsv2paymentsOrderInformation """ self._order_information = order_information @@ -193,7 +193,7 @@ def buyer_information(self): Gets the buyer_information of this CreatePaymentRequest. :return: The buyer_information of this CreatePaymentRequest. - :rtype: V2paymentsBuyerInformation + :rtype: Ptsv2paymentsBuyerInformation """ return self._buyer_information @@ -203,7 +203,7 @@ def buyer_information(self, buyer_information): Sets the buyer_information of this CreatePaymentRequest. :param buyer_information: The buyer_information of this CreatePaymentRequest. - :type: V2paymentsBuyerInformation + :type: Ptsv2paymentsBuyerInformation """ self._buyer_information = buyer_information @@ -214,7 +214,7 @@ def recipient_information(self): Gets the recipient_information of this CreatePaymentRequest. :return: The recipient_information of this CreatePaymentRequest. - :rtype: V2paymentsRecipientInformation + :rtype: Ptsv2paymentsRecipientInformation """ return self._recipient_information @@ -224,7 +224,7 @@ def recipient_information(self, recipient_information): Sets the recipient_information of this CreatePaymentRequest. :param recipient_information: The recipient_information of this CreatePaymentRequest. - :type: V2paymentsRecipientInformation + :type: Ptsv2paymentsRecipientInformation """ self._recipient_information = recipient_information @@ -235,7 +235,7 @@ def device_information(self): Gets the device_information of this CreatePaymentRequest. :return: The device_information of this CreatePaymentRequest. - :rtype: V2paymentsDeviceInformation + :rtype: Ptsv2paymentsDeviceInformation """ return self._device_information @@ -245,7 +245,7 @@ def device_information(self, device_information): Sets the device_information of this CreatePaymentRequest. :param device_information: The device_information of this CreatePaymentRequest. - :type: V2paymentsDeviceInformation + :type: Ptsv2paymentsDeviceInformation """ self._device_information = device_information @@ -256,7 +256,7 @@ def merchant_information(self): Gets the merchant_information of this CreatePaymentRequest. :return: The merchant_information of this CreatePaymentRequest. - :rtype: V2paymentsMerchantInformation + :rtype: Ptsv2paymentsMerchantInformation """ return self._merchant_information @@ -266,7 +266,7 @@ def merchant_information(self, merchant_information): Sets the merchant_information of this CreatePaymentRequest. :param merchant_information: The merchant_information of this CreatePaymentRequest. - :type: V2paymentsMerchantInformation + :type: Ptsv2paymentsMerchantInformation """ self._merchant_information = merchant_information @@ -277,7 +277,7 @@ def aggregator_information(self): Gets the aggregator_information of this CreatePaymentRequest. :return: The aggregator_information of this CreatePaymentRequest. - :rtype: V2paymentsAggregatorInformation + :rtype: Ptsv2paymentsAggregatorInformation """ return self._aggregator_information @@ -287,7 +287,7 @@ def aggregator_information(self, aggregator_information): Sets the aggregator_information of this CreatePaymentRequest. :param aggregator_information: The aggregator_information of this CreatePaymentRequest. - :type: V2paymentsAggregatorInformation + :type: Ptsv2paymentsAggregatorInformation """ self._aggregator_information = aggregator_information @@ -298,7 +298,7 @@ def consumer_authentication_information(self): Gets the consumer_authentication_information of this CreatePaymentRequest. :return: The consumer_authentication_information of this CreatePaymentRequest. - :rtype: V2paymentsConsumerAuthenticationInformation + :rtype: Ptsv2paymentsConsumerAuthenticationInformation """ return self._consumer_authentication_information @@ -308,7 +308,7 @@ def consumer_authentication_information(self, consumer_authentication_informatio Sets the consumer_authentication_information of this CreatePaymentRequest. :param consumer_authentication_information: The consumer_authentication_information of this CreatePaymentRequest. - :type: V2paymentsConsumerAuthenticationInformation + :type: Ptsv2paymentsConsumerAuthenticationInformation """ self._consumer_authentication_information = consumer_authentication_information @@ -319,7 +319,7 @@ def point_of_sale_information(self): Gets the point_of_sale_information of this CreatePaymentRequest. :return: The point_of_sale_information of this CreatePaymentRequest. - :rtype: V2paymentsPointOfSaleInformation + :rtype: Ptsv2paymentsPointOfSaleInformation """ return self._point_of_sale_information @@ -329,7 +329,7 @@ def point_of_sale_information(self, point_of_sale_information): Sets the point_of_sale_information of this CreatePaymentRequest. :param point_of_sale_information: The point_of_sale_information of this CreatePaymentRequest. - :type: V2paymentsPointOfSaleInformation + :type: Ptsv2paymentsPointOfSaleInformation """ self._point_of_sale_information = point_of_sale_information @@ -338,10 +338,10 @@ def point_of_sale_information(self, point_of_sale_information): def merchant_defined_information(self): """ Gets the merchant_defined_information of this CreatePaymentRequest. - TBD + Description of this field is not available. :return: The merchant_defined_information of this CreatePaymentRequest. - :rtype: list[V2paymentsMerchantDefinedInformation] + :rtype: list[Ptsv2paymentsMerchantDefinedInformation] """ return self._merchant_defined_information @@ -349,10 +349,10 @@ def merchant_defined_information(self): def merchant_defined_information(self, merchant_defined_information): """ Sets the merchant_defined_information of this CreatePaymentRequest. - TBD + Description of this field is not available. :param merchant_defined_information: The merchant_defined_information of this CreatePaymentRequest. - :type: list[V2paymentsMerchantDefinedInformation] + :type: list[Ptsv2paymentsMerchantDefinedInformation] """ self._merchant_defined_information = merchant_defined_information diff --git a/CyberSource/models/flex_v1_keys_post200_response.py b/CyberSource/models/flex_v1_keys_post200_response.py new file mode 100644 index 00000000..985cad32 --- /dev/null +++ b/CyberSource/models/flex_v1_keys_post200_response.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FlexV1KeysPost200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key_id': 'str', + 'der': 'FlexV1KeysPost200ResponseDer', + 'jwk': 'FlexV1KeysPost200ResponseJwk' + } + + attribute_map = { + 'key_id': 'keyId', + 'der': 'der', + 'jwk': 'jwk' + } + + def __init__(self, key_id=None, der=None, jwk=None): + """ + FlexV1KeysPost200Response - a model defined in Swagger + """ + + self._key_id = None + self._der = None + self._jwk = None + + if key_id is not None: + self.key_id = key_id + if der is not None: + self.der = der + if jwk is not None: + self.jwk = jwk + + @property + def key_id(self): + """ + Gets the key_id of this FlexV1KeysPost200Response. + Unique identifier for the generated token. Used in the subsequent Tokenize Card request from your customer’s device or browser. + + :return: The key_id of this FlexV1KeysPost200Response. + :rtype: str + """ + return self._key_id + + @key_id.setter + def key_id(self, key_id): + """ + Sets the key_id of this FlexV1KeysPost200Response. + Unique identifier for the generated token. Used in the subsequent Tokenize Card request from your customer’s device or browser. + + :param key_id: The key_id of this FlexV1KeysPost200Response. + :type: str + """ + + self._key_id = key_id + + @property + def der(self): + """ + Gets the der of this FlexV1KeysPost200Response. + + :return: The der of this FlexV1KeysPost200Response. + :rtype: FlexV1KeysPost200ResponseDer + """ + return self._der + + @der.setter + def der(self, der): + """ + Sets the der of this FlexV1KeysPost200Response. + + :param der: The der of this FlexV1KeysPost200Response. + :type: FlexV1KeysPost200ResponseDer + """ + + self._der = der + + @property + def jwk(self): + """ + Gets the jwk of this FlexV1KeysPost200Response. + + :return: The jwk of this FlexV1KeysPost200Response. + :rtype: FlexV1KeysPost200ResponseJwk + """ + return self._jwk + + @jwk.setter + def jwk(self, jwk): + """ + Sets the jwk of this FlexV1KeysPost200Response. + + :param jwk: The jwk of this FlexV1KeysPost200Response. + :type: FlexV1KeysPost200ResponseJwk + """ + + self._jwk = jwk + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FlexV1KeysPost200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/flex_v1_keys_post200_response_der.py b/CyberSource/models/flex_v1_keys_post200_response_der.py new file mode 100644 index 00000000..db26a7f7 --- /dev/null +++ b/CyberSource/models/flex_v1_keys_post200_response_der.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FlexV1KeysPost200ResponseDer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'format': 'str', + 'algorithm': 'str', + 'public_key': 'str' + } + + attribute_map = { + 'format': 'format', + 'algorithm': 'algorithm', + 'public_key': 'publicKey' + } + + def __init__(self, format=None, algorithm=None, public_key=None): + """ + FlexV1KeysPost200ResponseDer - a model defined in Swagger + """ + + self._format = None + self._algorithm = None + self._public_key = None + + if format is not None: + self.format = format + if algorithm is not None: + self.algorithm = algorithm + if public_key is not None: + self.public_key = public_key + + @property + def format(self): + """ + Gets the format of this FlexV1KeysPost200ResponseDer. + Specifies the format of the public key; currently X.509. + + :return: The format of this FlexV1KeysPost200ResponseDer. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """ + Sets the format of this FlexV1KeysPost200ResponseDer. + Specifies the format of the public key; currently X.509. + + :param format: The format of this FlexV1KeysPost200ResponseDer. + :type: str + """ + + self._format = format + + @property + def algorithm(self): + """ + Gets the algorithm of this FlexV1KeysPost200ResponseDer. + Algorithm used to encrypt the public key. + + :return: The algorithm of this FlexV1KeysPost200ResponseDer. + :rtype: str + """ + return self._algorithm + + @algorithm.setter + def algorithm(self, algorithm): + """ + Sets the algorithm of this FlexV1KeysPost200ResponseDer. + Algorithm used to encrypt the public key. + + :param algorithm: The algorithm of this FlexV1KeysPost200ResponseDer. + :type: str + """ + + self._algorithm = algorithm + + @property + def public_key(self): + """ + Gets the public_key of this FlexV1KeysPost200ResponseDer. + Base64 encoded public key value. + + :return: The public_key of this FlexV1KeysPost200ResponseDer. + :rtype: str + """ + return self._public_key + + @public_key.setter + def public_key(self, public_key): + """ + Sets the public_key of this FlexV1KeysPost200ResponseDer. + Base64 encoded public key value. + + :param public_key: The public_key of this FlexV1KeysPost200ResponseDer. + :type: str + """ + + self._public_key = public_key + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FlexV1KeysPost200ResponseDer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/flex_v1_keys_post200_response_jwk.py b/CyberSource/models/flex_v1_keys_post200_response_jwk.py new file mode 100644 index 00000000..7b2973ed --- /dev/null +++ b/CyberSource/models/flex_v1_keys_post200_response_jwk.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FlexV1KeysPost200ResponseJwk(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'kty': 'str', + 'use': 'str', + 'kid': 'str', + 'n': 'str', + 'e': 'str' + } + + attribute_map = { + 'kty': 'kty', + 'use': 'use', + 'kid': 'kid', + 'n': 'n', + 'e': 'e' + } + + def __init__(self, kty=None, use=None, kid=None, n=None, e=None): + """ + FlexV1KeysPost200ResponseJwk - a model defined in Swagger + """ + + self._kty = None + self._use = None + self._kid = None + self._n = None + self._e = None + + if kty is not None: + self.kty = kty + if use is not None: + self.use = use + if kid is not None: + self.kid = kid + if n is not None: + self.n = n + if e is not None: + self.e = e + + @property + def kty(self): + """ + Gets the kty of this FlexV1KeysPost200ResponseJwk. + Algorithm used to encrypt the public key. + + :return: The kty of this FlexV1KeysPost200ResponseJwk. + :rtype: str + """ + return self._kty + + @kty.setter + def kty(self, kty): + """ + Sets the kty of this FlexV1KeysPost200ResponseJwk. + Algorithm used to encrypt the public key. + + :param kty: The kty of this FlexV1KeysPost200ResponseJwk. + :type: str + """ + + self._kty = kty + + @property + def use(self): + """ + Gets the use of this FlexV1KeysPost200ResponseJwk. + Defines whether to use the key for encryption (enc) or verifying a signature (sig). Always returned as enc. + + :return: The use of this FlexV1KeysPost200ResponseJwk. + :rtype: str + """ + return self._use + + @use.setter + def use(self, use): + """ + Sets the use of this FlexV1KeysPost200ResponseJwk. + Defines whether to use the key for encryption (enc) or verifying a signature (sig). Always returned as enc. + + :param use: The use of this FlexV1KeysPost200ResponseJwk. + :type: str + """ + + self._use = use + + @property + def kid(self): + """ + Gets the kid of this FlexV1KeysPost200ResponseJwk. + The key ID in JWK format. + + :return: The kid of this FlexV1KeysPost200ResponseJwk. + :rtype: str + """ + return self._kid + + @kid.setter + def kid(self, kid): + """ + Sets the kid of this FlexV1KeysPost200ResponseJwk. + The key ID in JWK format. + + :param kid: The kid of this FlexV1KeysPost200ResponseJwk. + :type: str + """ + + self._kid = kid + + @property + def n(self): + """ + Gets the n of this FlexV1KeysPost200ResponseJwk. + JWK RSA Modulus + + :return: The n of this FlexV1KeysPost200ResponseJwk. + :rtype: str + """ + return self._n + + @n.setter + def n(self, n): + """ + Sets the n of this FlexV1KeysPost200ResponseJwk. + JWK RSA Modulus + + :param n: The n of this FlexV1KeysPost200ResponseJwk. + :type: str + """ + + self._n = n + + @property + def e(self): + """ + Gets the e of this FlexV1KeysPost200ResponseJwk. + JWK RSA Exponent + + :return: The e of this FlexV1KeysPost200ResponseJwk. + :rtype: str + """ + return self._e + + @e.setter + def e(self, e): + """ + Sets the e of this FlexV1KeysPost200ResponseJwk. + JWK RSA Exponent + + :param e: The e of this FlexV1KeysPost200ResponseJwk. + :type: str + """ + + self._e = e + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FlexV1KeysPost200ResponseJwk): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/flex_v1_tokens_post200_response.py b/CyberSource/models/flex_v1_tokens_post200_response.py new file mode 100644 index 00000000..fe312b84 --- /dev/null +++ b/CyberSource/models/flex_v1_tokens_post200_response.py @@ -0,0 +1,319 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FlexV1TokensPost200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key_id': 'str', + 'token': 'str', + 'masked_pan': 'str', + 'card_type': 'str', + 'timestamp': 'int', + 'signed_fields': 'str', + 'signature': 'str', + 'discoverable_services': 'dict(str, object)' + } + + attribute_map = { + 'key_id': 'keyId', + 'token': 'token', + 'masked_pan': 'maskedPan', + 'card_type': 'cardType', + 'timestamp': 'timestamp', + 'signed_fields': 'signedFields', + 'signature': 'signature', + 'discoverable_services': 'discoverableServices' + } + + def __init__(self, key_id=None, token=None, masked_pan=None, card_type=None, timestamp=None, signed_fields=None, signature=None, discoverable_services=None): + """ + FlexV1TokensPost200Response - a model defined in Swagger + """ + + self._key_id = None + self._token = None + self._masked_pan = None + self._card_type = None + self._timestamp = None + self._signed_fields = None + self._signature = None + self._discoverable_services = None + + if key_id is not None: + self.key_id = key_id + if token is not None: + self.token = token + if masked_pan is not None: + self.masked_pan = masked_pan + if card_type is not None: + self.card_type = card_type + if timestamp is not None: + self.timestamp = timestamp + if signed_fields is not None: + self.signed_fields = signed_fields + if signature is not None: + self.signature = signature + if discoverable_services is not None: + self.discoverable_services = discoverable_services + + @property + def key_id(self): + """ + Gets the key_id of this FlexV1TokensPost200Response. + The Key ID. + + :return: The key_id of this FlexV1TokensPost200Response. + :rtype: str + """ + return self._key_id + + @key_id.setter + def key_id(self, key_id): + """ + Sets the key_id of this FlexV1TokensPost200Response. + The Key ID. + + :param key_id: The key_id of this FlexV1TokensPost200Response. + :type: str + """ + + self._key_id = key_id + + @property + def token(self): + """ + Gets the token of this FlexV1TokensPost200Response. + The generated token. The token replaces card data and is used as the Subscription ID in the CyberSource Simple Order API or SCMP API. + + :return: The token of this FlexV1TokensPost200Response. + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """ + Sets the token of this FlexV1TokensPost200Response. + The generated token. The token replaces card data and is used as the Subscription ID in the CyberSource Simple Order API or SCMP API. + + :param token: The token of this FlexV1TokensPost200Response. + :type: str + """ + + self._token = token + + @property + def masked_pan(self): + """ + Gets the masked_pan of this FlexV1TokensPost200Response. + The masked card number displaying the first 6 digits and the last 4 digits. + + :return: The masked_pan of this FlexV1TokensPost200Response. + :rtype: str + """ + return self._masked_pan + + @masked_pan.setter + def masked_pan(self, masked_pan): + """ + Sets the masked_pan of this FlexV1TokensPost200Response. + The masked card number displaying the first 6 digits and the last 4 digits. + + :param masked_pan: The masked_pan of this FlexV1TokensPost200Response. + :type: str + """ + + self._masked_pan = masked_pan + + @property + def card_type(self): + """ + Gets the card_type of this FlexV1TokensPost200Response. + The card type. + + :return: The card_type of this FlexV1TokensPost200Response. + :rtype: str + """ + return self._card_type + + @card_type.setter + def card_type(self, card_type): + """ + Sets the card_type of this FlexV1TokensPost200Response. + The card type. + + :param card_type: The card_type of this FlexV1TokensPost200Response. + :type: str + """ + + self._card_type = card_type + + @property + def timestamp(self): + """ + Gets the timestamp of this FlexV1TokensPost200Response. + The UTC date and time in milliseconds at which the signature was generated. + + :return: The timestamp of this FlexV1TokensPost200Response. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """ + Sets the timestamp of this FlexV1TokensPost200Response. + The UTC date and time in milliseconds at which the signature was generated. + + :param timestamp: The timestamp of this FlexV1TokensPost200Response. + :type: int + """ + + self._timestamp = timestamp + + @property + def signed_fields(self): + """ + Gets the signed_fields of this FlexV1TokensPost200Response. + Indicates which fields from the response make up the data that is used when verifying the response signature. See the [sample code] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/java/com/cybersource/flex/application/CheckoutController.java) on how to verify the signature. + + :return: The signed_fields of this FlexV1TokensPost200Response. + :rtype: str + """ + return self._signed_fields + + @signed_fields.setter + def signed_fields(self, signed_fields): + """ + Sets the signed_fields of this FlexV1TokensPost200Response. + Indicates which fields from the response make up the data that is used when verifying the response signature. See the [sample code] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/java/com/cybersource/flex/application/CheckoutController.java) on how to verify the signature. + + :param signed_fields: The signed_fields of this FlexV1TokensPost200Response. + :type: str + """ + + self._signed_fields = signed_fields + + @property + def signature(self): + """ + Gets the signature of this FlexV1TokensPost200Response. + Flex-generated digital signature. To ensure the values have not been tampered with while passing through the client, verify this server-side using the public key generated from the /keys resource. + + :return: The signature of this FlexV1TokensPost200Response. + :rtype: str + """ + return self._signature + + @signature.setter + def signature(self, signature): + """ + Sets the signature of this FlexV1TokensPost200Response. + Flex-generated digital signature. To ensure the values have not been tampered with while passing through the client, verify this server-side using the public key generated from the /keys resource. + + :param signature: The signature of this FlexV1TokensPost200Response. + :type: str + """ + + self._signature = signature + + @property + def discoverable_services(self): + """ + Gets the discoverable_services of this FlexV1TokensPost200Response. + + :return: The discoverable_services of this FlexV1TokensPost200Response. + :rtype: dict(str, object) + """ + return self._discoverable_services + + @discoverable_services.setter + def discoverable_services(self, discoverable_services): + """ + Sets the discoverable_services of this FlexV1TokensPost200Response. + + :param discoverable_services: The discoverable_services of this FlexV1TokensPost200Response. + :type: dict(str, object) + """ + + self._discoverable_services = discoverable_services + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FlexV1TokensPost200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/flexv1tokens_card_info.py b/CyberSource/models/flexv1tokens_card_info.py new file mode 100644 index 00000000..825b43e8 --- /dev/null +++ b/CyberSource/models/flexv1tokens_card_info.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Flexv1tokensCardInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'card_number': 'str', + 'card_expiration_month': 'str', + 'card_expiration_year': 'str', + 'card_type': 'str' + } + + attribute_map = { + 'card_number': 'cardNumber', + 'card_expiration_month': 'cardExpirationMonth', + 'card_expiration_year': 'cardExpirationYear', + 'card_type': 'cardType' + } + + def __init__(self, card_number=None, card_expiration_month=None, card_expiration_year=None, card_type=None): + """ + Flexv1tokensCardInfo - a model defined in Swagger + """ + + self._card_number = None + self._card_expiration_month = None + self._card_expiration_year = None + self._card_type = None + + if card_number is not None: + self.card_number = card_number + if card_expiration_month is not None: + self.card_expiration_month = card_expiration_month + if card_expiration_year is not None: + self.card_expiration_year = card_expiration_year + if card_type is not None: + self.card_type = card_type + + @property + def card_number(self): + """ + Gets the card_number of this Flexv1tokensCardInfo. + Encrypted or plain text card number. If the encryption type of “None” was used in the Generate Key request, this value can be set to the plaintext card number/Personal Account Number (PAN). If the encryption type of RsaOaep256 was used in the Generate Key request, this value needs to be the RSA OAEP 256 encrypted card number. The card number should be encrypted on the cardholders’ device. The [WebCrypto API] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/resources/public/flex.js) can be used with the JWK obtained in the Generate Key request. + + :return: The card_number of this Flexv1tokensCardInfo. + :rtype: str + """ + return self._card_number + + @card_number.setter + def card_number(self, card_number): + """ + Sets the card_number of this Flexv1tokensCardInfo. + Encrypted or plain text card number. If the encryption type of “None” was used in the Generate Key request, this value can be set to the plaintext card number/Personal Account Number (PAN). If the encryption type of RsaOaep256 was used in the Generate Key request, this value needs to be the RSA OAEP 256 encrypted card number. The card number should be encrypted on the cardholders’ device. The [WebCrypto API] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/resources/public/flex.js) can be used with the JWK obtained in the Generate Key request. + + :param card_number: The card_number of this Flexv1tokensCardInfo. + :type: str + """ + + self._card_number = card_number + + @property + def card_expiration_month(self): + """ + Gets the card_expiration_month of this Flexv1tokensCardInfo. + Two digit expiration month + + :return: The card_expiration_month of this Flexv1tokensCardInfo. + :rtype: str + """ + return self._card_expiration_month + + @card_expiration_month.setter + def card_expiration_month(self, card_expiration_month): + """ + Sets the card_expiration_month of this Flexv1tokensCardInfo. + Two digit expiration month + + :param card_expiration_month: The card_expiration_month of this Flexv1tokensCardInfo. + :type: str + """ + + self._card_expiration_month = card_expiration_month + + @property + def card_expiration_year(self): + """ + Gets the card_expiration_year of this Flexv1tokensCardInfo. + Four digit expiration year + + :return: The card_expiration_year of this Flexv1tokensCardInfo. + :rtype: str + """ + return self._card_expiration_year + + @card_expiration_year.setter + def card_expiration_year(self, card_expiration_year): + """ + Sets the card_expiration_year of this Flexv1tokensCardInfo. + Four digit expiration year + + :param card_expiration_year: The card_expiration_year of this Flexv1tokensCardInfo. + :type: str + """ + + self._card_expiration_year = card_expiration_year + + @property + def card_type(self): + """ + Gets the card_type of this Flexv1tokensCardInfo. + Card Type. This field is required. Refer to the CyberSource Credit Card Services documentation for supported card types. + + :return: The card_type of this Flexv1tokensCardInfo. + :rtype: str + """ + return self._card_type + + @card_type.setter + def card_type(self, card_type): + """ + Sets the card_type of this Flexv1tokensCardInfo. + Card Type. This field is required. Refer to the CyberSource Credit Card Services documentation for supported card types. + + :param card_type: The card_type of this Flexv1tokensCardInfo. + :type: str + """ + + self._card_type = card_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Flexv1tokensCardInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/generate_public_key_request.py b/CyberSource/models/generate_public_key_request.py index 82322a9a..4a84fd74 100644 --- a/CyberSource/models/generate_public_key_request.py +++ b/CyberSource/models/generate_public_key_request.py @@ -31,22 +31,51 @@ class GeneratePublicKeyRequest(object): and the value is json key in definition. """ swagger_types = { - 'encryption_type': 'str' + 'encryption_type': 'str', + 'target_origin': 'str', + 'unmasked_left': 'int', + 'unmasked_right': 'int', + 'enable_billing_address': 'bool', + 'currency': 'str', + 'enable_auto_auth': 'bool' } attribute_map = { - 'encryption_type': 'encryptionType' + 'encryption_type': 'encryptionType', + 'target_origin': 'targetOrigin', + 'unmasked_left': 'unmaskedLeft', + 'unmasked_right': 'unmaskedRight', + 'enable_billing_address': 'enableBillingAddress', + 'currency': 'currency', + 'enable_auto_auth': 'enableAutoAuth' } - def __init__(self, encryption_type=None): + def __init__(self, encryption_type=None, target_origin=None, unmasked_left=None, unmasked_right=None, enable_billing_address=None, currency=None, enable_auto_auth=None): """ GeneratePublicKeyRequest - a model defined in Swagger """ self._encryption_type = None + self._target_origin = None + self._unmasked_left = None + self._unmasked_right = None + self._enable_billing_address = None + self._currency = None + self._enable_auto_auth = None - if encryption_type is not None: - self.encryption_type = encryption_type + self.encryption_type = encryption_type + if target_origin is not None: + self.target_origin = target_origin + if unmasked_left is not None: + self.unmasked_left = unmasked_left + if unmasked_right is not None: + self.unmasked_right = unmasked_right + if enable_billing_address is not None: + self.enable_billing_address = enable_billing_address + if currency is not None: + self.currency = currency + if enable_auto_auth is not None: + self.enable_auto_auth = enable_auto_auth @property def encryption_type(self): @@ -68,9 +97,149 @@ def encryption_type(self, encryption_type): :param encryption_type: The encryption_type of this GeneratePublicKeyRequest. :type: str """ + #if encryption_type is None: + #raise ValueError("Invalid value for `encryption_type`, must not be `None`") self._encryption_type = encryption_type + @property + def target_origin(self): + """ + Gets the target_origin of this GeneratePublicKeyRequest. + This should only be used if using the Microform implementation. This is the protocol, URL, and if used, port number of the page that will host the Microform. Unless using http://localhost, the protocol must be https://. For example, if serving Microform on example.com, the targetOrigin is https://example.com The value is used to restrict the frame ancestor of the Microform. If there is a mismatch between this value and the frame ancestor, the Microfrom will not load. + + :return: The target_origin of this GeneratePublicKeyRequest. + :rtype: str + """ + return self._target_origin + + @target_origin.setter + def target_origin(self, target_origin): + """ + Sets the target_origin of this GeneratePublicKeyRequest. + This should only be used if using the Microform implementation. This is the protocol, URL, and if used, port number of the page that will host the Microform. Unless using http://localhost, the protocol must be https://. For example, if serving Microform on example.com, the targetOrigin is https://example.com The value is used to restrict the frame ancestor of the Microform. If there is a mismatch between this value and the frame ancestor, the Microfrom will not load. + + :param target_origin: The target_origin of this GeneratePublicKeyRequest. + :type: str + """ + + self._target_origin = target_origin + + @property + def unmasked_left(self): + """ + Gets the unmasked_left of this GeneratePublicKeyRequest. + Specifies the number of card number digits to be returned un-masked from the left. For example, setting this value to 6 will return: 411111XXXXXXXXXX Default value: 6 Maximum value: 6 + + :return: The unmasked_left of this GeneratePublicKeyRequest. + :rtype: int + """ + return self._unmasked_left + + @unmasked_left.setter + def unmasked_left(self, unmasked_left): + """ + Sets the unmasked_left of this GeneratePublicKeyRequest. + Specifies the number of card number digits to be returned un-masked from the left. For example, setting this value to 6 will return: 411111XXXXXXXXXX Default value: 6 Maximum value: 6 + + :param unmasked_left: The unmasked_left of this GeneratePublicKeyRequest. + :type: int + """ + + self._unmasked_left = unmasked_left + + @property + def unmasked_right(self): + """ + Gets the unmasked_right of this GeneratePublicKeyRequest. + Specifies the number of card number digits to be returned un-masked from the right. For example, setting this value to 4 will return: 411111XXXXXX1111 Default value: 4 Maximum value: 4 + + :return: The unmasked_right of this GeneratePublicKeyRequest. + :rtype: int + """ + return self._unmasked_right + + @unmasked_right.setter + def unmasked_right(self, unmasked_right): + """ + Sets the unmasked_right of this GeneratePublicKeyRequest. + Specifies the number of card number digits to be returned un-masked from the right. For example, setting this value to 4 will return: 411111XXXXXX1111 Default value: 4 Maximum value: 4 + + :param unmasked_right: The unmasked_right of this GeneratePublicKeyRequest. + :type: int + """ + + self._unmasked_right = unmasked_right + + @property + def enable_billing_address(self): + """ + Gets the enable_billing_address of this GeneratePublicKeyRequest. + Specifies whether or not 'dummy' address data should be specified in the create token request. If you have 'Relaxed AVS' enabled for your MID, this value can be set to False.Default value: true + + :return: The enable_billing_address of this GeneratePublicKeyRequest. + :rtype: bool + """ + return self._enable_billing_address + + @enable_billing_address.setter + def enable_billing_address(self, enable_billing_address): + """ + Sets the enable_billing_address of this GeneratePublicKeyRequest. + Specifies whether or not 'dummy' address data should be specified in the create token request. If you have 'Relaxed AVS' enabled for your MID, this value can be set to False.Default value: true + + :param enable_billing_address: The enable_billing_address of this GeneratePublicKeyRequest. + :type: bool + """ + + self._enable_billing_address = enable_billing_address + + @property + def currency(self): + """ + Gets the currency of this GeneratePublicKeyRequest. + Three character ISO currency code to be associated with the token. Required for legacy integrations. Default value: USD. + + :return: The currency of this GeneratePublicKeyRequest. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this GeneratePublicKeyRequest. + Three character ISO currency code to be associated with the token. Required for legacy integrations. Default value: USD. + + :param currency: The currency of this GeneratePublicKeyRequest. + :type: str + """ + + self._currency = currency + + @property + def enable_auto_auth(self): + """ + Gets the enable_auto_auth of this GeneratePublicKeyRequest. + Specifies whether or not an account verification authorization ($0 Authorization) is carried out on token creation. Default is false, as it is assumed a full or zero amount authorization will be carried out in a separate call from your server. + + :return: The enable_auto_auth of this GeneratePublicKeyRequest. + :rtype: bool + """ + return self._enable_auto_auth + + @enable_auto_auth.setter + def enable_auto_auth(self, enable_auto_auth): + """ + Sets the enable_auto_auth of this GeneratePublicKeyRequest. + Specifies whether or not an account verification authorization ($0 Authorization) is carried out on token creation. Default is false, as it is assumed a full or zero amount authorization will be carried out in a separate call from your server. + + :param enable_auto_auth: The enable_auto_auth of this GeneratePublicKeyRequest. + :type: bool + """ + + self._enable_auto_auth = enable_auto_auth + def to_dict(self): """ Returns the model properties as a dict diff --git a/CyberSource/models/inline_response_200.py b/CyberSource/models/inline_response_200.py deleted file mode 100644 index 424b38f7..00000000 --- a/CyberSource/models/inline_response_200.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse200(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'key_id': 'str', - 'der': 'InlineResponse200Der', - 'jwk': 'InlineResponse200Jwk' - } - - attribute_map = { - 'key_id': 'keyId', - 'der': 'der', - 'jwk': 'jwk' - } - - def __init__(self, key_id=None, der=None, jwk=None): - """ - InlineResponse200 - a model defined in Swagger - """ - - self._key_id = None - self._der = None - self._jwk = None - - if key_id is not None: - self.key_id = key_id - if der is not None: - self.der = der - if jwk is not None: - self.jwk = jwk - - @property - def key_id(self): - """ - Gets the key_id of this InlineResponse200. - Unique identifier for the generated token. Used in the subsequent Tokenize Card request from your customer’s device or browser. - - :return: The key_id of this InlineResponse200. - :rtype: str - """ - return self._key_id - - @key_id.setter - def key_id(self, key_id): - """ - Sets the key_id of this InlineResponse200. - Unique identifier for the generated token. Used in the subsequent Tokenize Card request from your customer’s device or browser. - - :param key_id: The key_id of this InlineResponse200. - :type: str - """ - - self._key_id = key_id - - @property - def der(self): - """ - Gets the der of this InlineResponse200. - - :return: The der of this InlineResponse200. - :rtype: InlineResponse200Der - """ - return self._der - - @der.setter - def der(self, der): - """ - Sets the der of this InlineResponse200. - - :param der: The der of this InlineResponse200. - :type: InlineResponse200Der - """ - - self._der = der - - @property - def jwk(self): - """ - Gets the jwk of this InlineResponse200. - - :return: The jwk of this InlineResponse200. - :rtype: InlineResponse200Jwk - """ - return self._jwk - - @jwk.setter - def jwk(self, jwk): - """ - Sets the jwk of this InlineResponse200. - - :param jwk: The jwk of this InlineResponse200. - :type: InlineResponse200Jwk - """ - - self._jwk = jwk - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse200): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_1.py b/CyberSource/models/inline_response_200_1.py deleted file mode 100644 index e63b10e7..00000000 --- a/CyberSource/models/inline_response_200_1.py +++ /dev/null @@ -1,319 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2001(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'key_id': 'str', - 'token': 'str', - 'masked_pan': 'str', - 'card_type': 'str', - 'timestamp': 'int', - 'signed_fields': 'str', - 'signature': 'str', - 'discoverable_services': 'dict(str, object)' - } - - attribute_map = { - 'key_id': 'keyId', - 'token': 'token', - 'masked_pan': 'maskedPan', - 'card_type': 'cardType', - 'timestamp': 'timestamp', - 'signed_fields': 'signedFields', - 'signature': 'signature', - 'discoverable_services': 'discoverableServices' - } - - def __init__(self, key_id=None, token=None, masked_pan=None, card_type=None, timestamp=None, signed_fields=None, signature=None, discoverable_services=None): - """ - InlineResponse2001 - a model defined in Swagger - """ - - self._key_id = None - self._token = None - self._masked_pan = None - self._card_type = None - self._timestamp = None - self._signed_fields = None - self._signature = None - self._discoverable_services = None - - if key_id is not None: - self.key_id = key_id - if token is not None: - self.token = token - if masked_pan is not None: - self.masked_pan = masked_pan - if card_type is not None: - self.card_type = card_type - if timestamp is not None: - self.timestamp = timestamp - if signed_fields is not None: - self.signed_fields = signed_fields - if signature is not None: - self.signature = signature - if discoverable_services is not None: - self.discoverable_services = discoverable_services - - @property - def key_id(self): - """ - Gets the key_id of this InlineResponse2001. - The Key ID. - - :return: The key_id of this InlineResponse2001. - :rtype: str - """ - return self._key_id - - @key_id.setter - def key_id(self, key_id): - """ - Sets the key_id of this InlineResponse2001. - The Key ID. - - :param key_id: The key_id of this InlineResponse2001. - :type: str - """ - - self._key_id = key_id - - @property - def token(self): - """ - Gets the token of this InlineResponse2001. - The generated token. The token replaces card data and is used as the Subscription ID in the CyberSource Simple Order API or SCMP API. - - :return: The token of this InlineResponse2001. - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """ - Sets the token of this InlineResponse2001. - The generated token. The token replaces card data and is used as the Subscription ID in the CyberSource Simple Order API or SCMP API. - - :param token: The token of this InlineResponse2001. - :type: str - """ - - self._token = token - - @property - def masked_pan(self): - """ - Gets the masked_pan of this InlineResponse2001. - The masked card number displaying the first 6 digits and the last 4 digits. - - :return: The masked_pan of this InlineResponse2001. - :rtype: str - """ - return self._masked_pan - - @masked_pan.setter - def masked_pan(self, masked_pan): - """ - Sets the masked_pan of this InlineResponse2001. - The masked card number displaying the first 6 digits and the last 4 digits. - - :param masked_pan: The masked_pan of this InlineResponse2001. - :type: str - """ - - self._masked_pan = masked_pan - - @property - def card_type(self): - """ - Gets the card_type of this InlineResponse2001. - The card type. - - :return: The card_type of this InlineResponse2001. - :rtype: str - """ - return self._card_type - - @card_type.setter - def card_type(self, card_type): - """ - Sets the card_type of this InlineResponse2001. - The card type. - - :param card_type: The card_type of this InlineResponse2001. - :type: str - """ - - self._card_type = card_type - - @property - def timestamp(self): - """ - Gets the timestamp of this InlineResponse2001. - The UTC date and time in milliseconds at which the signature was generated. - - :return: The timestamp of this InlineResponse2001. - :rtype: int - """ - return self._timestamp - - @timestamp.setter - def timestamp(self, timestamp): - """ - Sets the timestamp of this InlineResponse2001. - The UTC date and time in milliseconds at which the signature was generated. - - :param timestamp: The timestamp of this InlineResponse2001. - :type: int - """ - - self._timestamp = timestamp - - @property - def signed_fields(self): - """ - Gets the signed_fields of this InlineResponse2001. - Indicates which fields from the response make up the data that is used when verifying the response signature. See the [sample code] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/java/com/cybersource/flex/application/CheckoutController.java) on how to verify the signature. - - :return: The signed_fields of this InlineResponse2001. - :rtype: str - """ - return self._signed_fields - - @signed_fields.setter - def signed_fields(self, signed_fields): - """ - Sets the signed_fields of this InlineResponse2001. - Indicates which fields from the response make up the data that is used when verifying the response signature. See the [sample code] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/java/com/cybersource/flex/application/CheckoutController.java) on how to verify the signature. - - :param signed_fields: The signed_fields of this InlineResponse2001. - :type: str - """ - - self._signed_fields = signed_fields - - @property - def signature(self): - """ - Gets the signature of this InlineResponse2001. - Flex-generated digital signature. To ensure the values have not been tampered with while passing through the client, verify this server-side using the public key generated from the /keys resource. - - :return: The signature of this InlineResponse2001. - :rtype: str - """ - return self._signature - - @signature.setter - def signature(self, signature): - """ - Sets the signature of this InlineResponse2001. - Flex-generated digital signature. To ensure the values have not been tampered with while passing through the client, verify this server-side using the public key generated from the /keys resource. - - :param signature: The signature of this InlineResponse2001. - :type: str - """ - - self._signature = signature - - @property - def discoverable_services(self): - """ - Gets the discoverable_services of this InlineResponse2001. - - :return: The discoverable_services of this InlineResponse2001. - :rtype: dict(str, object) - """ - return self._discoverable_services - - @discoverable_services.setter - def discoverable_services(self, discoverable_services): - """ - Sets the discoverable_services of this InlineResponse2001. - - :param discoverable_services: The discoverable_services of this InlineResponse2001. - :type: dict(str, object) - """ - - self._discoverable_services = discoverable_services - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2001): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2.py b/CyberSource/models/inline_response_200_2.py deleted file mode 100644 index acd612d9..00000000 --- a/CyberSource/models/inline_response_200_2.py +++ /dev/null @@ -1,505 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse201Links', - 'embedded': 'InlineResponse201Embedded', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'reconciliation_id': 'str', - 'error_information': 'InlineResponse201ErrorInformation', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'processing_information': 'InlineResponse2002ProcessingInformation', - 'processor_information': 'InlineResponse2002ProcessorInformation', - 'payment_information': 'InlineResponse2002PaymentInformation', - 'order_information': 'InlineResponse2002OrderInformation', - 'buyer_information': 'InlineResponse2002BuyerInformation', - 'merchant_information': 'InlineResponse2002MerchantInformation', - 'device_information': 'InlineResponse2002DeviceInformation' - } - - attribute_map = { - 'links': '_links', - 'embedded': '_embedded', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reconciliation_id': 'reconciliationId', - 'error_information': 'errorInformation', - 'client_reference_information': 'clientReferenceInformation', - 'processing_information': 'processingInformation', - 'processor_information': 'processorInformation', - 'payment_information': 'paymentInformation', - 'order_information': 'orderInformation', - 'buyer_information': 'buyerInformation', - 'merchant_information': 'merchantInformation', - 'device_information': 'deviceInformation' - } - - def __init__(self, links=None, embedded=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, error_information=None, client_reference_information=None, processing_information=None, processor_information=None, payment_information=None, order_information=None, buyer_information=None, merchant_information=None, device_information=None): - """ - InlineResponse2002 - a model defined in Swagger - """ - - self._links = None - self._embedded = None - self._id = None - self._submit_time_utc = None - self._status = None - self._reconciliation_id = None - self._error_information = None - self._client_reference_information = None - self._processing_information = None - self._processor_information = None - self._payment_information = None - self._order_information = None - self._buyer_information = None - self._merchant_information = None - self._device_information = None - - if links is not None: - self.links = links - if embedded is not None: - self.embedded = embedded - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if error_information is not None: - self.error_information = error_information - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if processing_information is not None: - self.processing_information = processing_information - if processor_information is not None: - self.processor_information = processor_information - if payment_information is not None: - self.payment_information = payment_information - if order_information is not None: - self.order_information = order_information - if buyer_information is not None: - self.buyer_information = buyer_information - if merchant_information is not None: - self.merchant_information = merchant_information - if device_information is not None: - self.device_information = device_information - - @property - def links(self): - """ - Gets the links of this InlineResponse2002. - - :return: The links of this InlineResponse2002. - :rtype: InlineResponse201Links - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2002. - - :param links: The links of this InlineResponse2002. - :type: InlineResponse201Links - """ - - self._links = links - - @property - def embedded(self): - """ - Gets the embedded of this InlineResponse2002. - - :return: The embedded of this InlineResponse2002. - :rtype: InlineResponse201Embedded - """ - return self._embedded - - @embedded.setter - def embedded(self, embedded): - """ - Sets the embedded of this InlineResponse2002. - - :param embedded: The embedded of this InlineResponse2002. - :type: InlineResponse201Embedded - """ - - self._embedded = embedded - - @property - def id(self): - """ - Gets the id of this InlineResponse2002. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse2002. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2002. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse2002. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse2002. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse2002. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse2002. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse2002. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse2002. - The status of the submitted transaction. - - :return: The status of this InlineResponse2002. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse2002. - The status of the submitted transaction. - - :param status: The status of this InlineResponse2002. - :type: str - """ - allowed_values = ["AUTHORIZED", "PARTIAL_AUTHORIZED", "AUTHORIZED_PENDING_REVIEW", "DECLINED"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this InlineResponse2002. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :return: The reconciliation_id of this InlineResponse2002. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this InlineResponse2002. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :param reconciliation_id: The reconciliation_id of this InlineResponse2002. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def error_information(self): - """ - Gets the error_information of this InlineResponse2002. - - :return: The error_information of this InlineResponse2002. - :rtype: InlineResponse201ErrorInformation - """ - return self._error_information - - @error_information.setter - def error_information(self, error_information): - """ - Sets the error_information of this InlineResponse2002. - - :param error_information: The error_information of this InlineResponse2002. - :type: InlineResponse201ErrorInformation - """ - - self._error_information = error_information - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse2002. - - :return: The client_reference_information of this InlineResponse2002. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse2002. - - :param client_reference_information: The client_reference_information of this InlineResponse2002. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def processing_information(self): - """ - Gets the processing_information of this InlineResponse2002. - - :return: The processing_information of this InlineResponse2002. - :rtype: InlineResponse2002ProcessingInformation - """ - return self._processing_information - - @processing_information.setter - def processing_information(self, processing_information): - """ - Sets the processing_information of this InlineResponse2002. - - :param processing_information: The processing_information of this InlineResponse2002. - :type: InlineResponse2002ProcessingInformation - """ - - self._processing_information = processing_information - - @property - def processor_information(self): - """ - Gets the processor_information of this InlineResponse2002. - - :return: The processor_information of this InlineResponse2002. - :rtype: InlineResponse2002ProcessorInformation - """ - return self._processor_information - - @processor_information.setter - def processor_information(self, processor_information): - """ - Sets the processor_information of this InlineResponse2002. - - :param processor_information: The processor_information of this InlineResponse2002. - :type: InlineResponse2002ProcessorInformation - """ - - self._processor_information = processor_information - - @property - def payment_information(self): - """ - Gets the payment_information of this InlineResponse2002. - - :return: The payment_information of this InlineResponse2002. - :rtype: InlineResponse2002PaymentInformation - """ - return self._payment_information - - @payment_information.setter - def payment_information(self, payment_information): - """ - Sets the payment_information of this InlineResponse2002. - - :param payment_information: The payment_information of this InlineResponse2002. - :type: InlineResponse2002PaymentInformation - """ - - self._payment_information = payment_information - - @property - def order_information(self): - """ - Gets the order_information of this InlineResponse2002. - - :return: The order_information of this InlineResponse2002. - :rtype: InlineResponse2002OrderInformation - """ - return self._order_information - - @order_information.setter - def order_information(self, order_information): - """ - Sets the order_information of this InlineResponse2002. - - :param order_information: The order_information of this InlineResponse2002. - :type: InlineResponse2002OrderInformation - """ - - self._order_information = order_information - - @property - def buyer_information(self): - """ - Gets the buyer_information of this InlineResponse2002. - - :return: The buyer_information of this InlineResponse2002. - :rtype: InlineResponse2002BuyerInformation - """ - return self._buyer_information - - @buyer_information.setter - def buyer_information(self, buyer_information): - """ - Sets the buyer_information of this InlineResponse2002. - - :param buyer_information: The buyer_information of this InlineResponse2002. - :type: InlineResponse2002BuyerInformation - """ - - self._buyer_information = buyer_information - - @property - def merchant_information(self): - """ - Gets the merchant_information of this InlineResponse2002. - - :return: The merchant_information of this InlineResponse2002. - :rtype: InlineResponse2002MerchantInformation - """ - return self._merchant_information - - @merchant_information.setter - def merchant_information(self, merchant_information): - """ - Sets the merchant_information of this InlineResponse2002. - - :param merchant_information: The merchant_information of this InlineResponse2002. - :type: InlineResponse2002MerchantInformation - """ - - self._merchant_information = merchant_information - - @property - def device_information(self): - """ - Gets the device_information of this InlineResponse2002. - - :return: The device_information of this InlineResponse2002. - :rtype: InlineResponse2002DeviceInformation - """ - return self._device_information - - @device_information.setter - def device_information(self, device_information): - """ - Sets the device_information of this InlineResponse2002. - - :param device_information: The device_information of this InlineResponse2002. - :type: InlineResponse2002DeviceInformation - """ - - self._device_information = device_information - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_buyer_information.py b/CyberSource/models/inline_response_200_2_buyer_information.py deleted file mode 100644 index ad04c55b..00000000 --- a/CyberSource/models/inline_response_200_2_buyer_information.py +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002BuyerInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'merchant_customer_id': 'str', - 'date_of_birth': 'str', - 'vat_registration_number': 'str', - 'personal_identification': 'list[V2paymentsBuyerInformationPersonalIdentification]', - 'tax_id': 'str' - } - - attribute_map = { - 'merchant_customer_id': 'merchantCustomerId', - 'date_of_birth': 'dateOfBirth', - 'vat_registration_number': 'vatRegistrationNumber', - 'personal_identification': 'personalIdentification', - 'tax_id': 'taxId' - } - - def __init__(self, merchant_customer_id=None, date_of_birth=None, vat_registration_number=None, personal_identification=None, tax_id=None): - """ - InlineResponse2002BuyerInformation - a model defined in Swagger - """ - - self._merchant_customer_id = None - self._date_of_birth = None - self._vat_registration_number = None - self._personal_identification = None - self._tax_id = None - - if merchant_customer_id is not None: - self.merchant_customer_id = merchant_customer_id - if date_of_birth is not None: - self.date_of_birth = date_of_birth - if vat_registration_number is not None: - self.vat_registration_number = vat_registration_number - if personal_identification is not None: - self.personal_identification = personal_identification - if tax_id is not None: - self.tax_id = tax_id - - @property - def merchant_customer_id(self): - """ - Gets the merchant_customer_id of this InlineResponse2002BuyerInformation. - Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The merchant_customer_id of this InlineResponse2002BuyerInformation. - :rtype: str - """ - return self._merchant_customer_id - - @merchant_customer_id.setter - def merchant_customer_id(self, merchant_customer_id): - """ - Sets the merchant_customer_id of this InlineResponse2002BuyerInformation. - Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param merchant_customer_id: The merchant_customer_id of this InlineResponse2002BuyerInformation. - :type: str - """ - if merchant_customer_id is not None and len(merchant_customer_id) > 100: - raise ValueError("Invalid value for `merchant_customer_id`, length must be less than or equal to `100`") - - self._merchant_customer_id = merchant_customer_id - - @property - def date_of_birth(self): - """ - Gets the date_of_birth of this InlineResponse2002BuyerInformation. - Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - - :return: The date_of_birth of this InlineResponse2002BuyerInformation. - :rtype: str - """ - return self._date_of_birth - - @date_of_birth.setter - def date_of_birth(self, date_of_birth): - """ - Sets the date_of_birth of this InlineResponse2002BuyerInformation. - Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - - :param date_of_birth: The date_of_birth of this InlineResponse2002BuyerInformation. - :type: str - """ - if date_of_birth is not None and len(date_of_birth) > 8: - raise ValueError("Invalid value for `date_of_birth`, length must be less than or equal to `8`") - - self._date_of_birth = date_of_birth - - @property - def vat_registration_number(self): - """ - Gets the vat_registration_number of this InlineResponse2002BuyerInformation. - Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_registration_number of this InlineResponse2002BuyerInformation. - :rtype: str - """ - return self._vat_registration_number - - @vat_registration_number.setter - def vat_registration_number(self, vat_registration_number): - """ - Sets the vat_registration_number of this InlineResponse2002BuyerInformation. - Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_registration_number: The vat_registration_number of this InlineResponse2002BuyerInformation. - :type: str - """ - if vat_registration_number is not None and len(vat_registration_number) > 20: - raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `20`") - - self._vat_registration_number = vat_registration_number - - @property - def personal_identification(self): - """ - Gets the personal_identification of this InlineResponse2002BuyerInformation. - - :return: The personal_identification of this InlineResponse2002BuyerInformation. - :rtype: list[V2paymentsBuyerInformationPersonalIdentification] - """ - return self._personal_identification - - @personal_identification.setter - def personal_identification(self, personal_identification): - """ - Sets the personal_identification of this InlineResponse2002BuyerInformation. - - :param personal_identification: The personal_identification of this InlineResponse2002BuyerInformation. - :type: list[V2paymentsBuyerInformationPersonalIdentification] - """ - - self._personal_identification = personal_identification - - @property - def tax_id(self): - """ - Gets the tax_id of this InlineResponse2002BuyerInformation. - TBD - - :return: The tax_id of this InlineResponse2002BuyerInformation. - :rtype: str - """ - return self._tax_id - - @tax_id.setter - def tax_id(self, tax_id): - """ - Sets the tax_id of this InlineResponse2002BuyerInformation. - TBD - - :param tax_id: The tax_id of this InlineResponse2002BuyerInformation. - :type: str - """ - - self._tax_id = tax_id - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002BuyerInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_device_information.py b/CyberSource/models/inline_response_200_2_device_information.py deleted file mode 100644 index c2fb50c4..00000000 --- a/CyberSource/models/inline_response_200_2_device_information.py +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002DeviceInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'str', - 'fingerprint_id': 'str', - 'ip_address': 'str' - } - - attribute_map = { - 'id': 'id', - 'fingerprint_id': 'fingerprintId', - 'ip_address': 'ipAddress' - } - - def __init__(self, id=None, fingerprint_id=None, ip_address=None): - """ - InlineResponse2002DeviceInformation - a model defined in Swagger - """ - - self._id = None - self._fingerprint_id = None - self._ip_address = None - - if id is not None: - self.id = id - if fingerprint_id is not None: - self.fingerprint_id = fingerprint_id - if ip_address is not None: - self.ip_address = ip_address - - @property - def id(self): - """ - Gets the id of this InlineResponse2002DeviceInformation. - TBD - - :return: The id of this InlineResponse2002DeviceInformation. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2002DeviceInformation. - TBD - - :param id: The id of this InlineResponse2002DeviceInformation. - :type: str - """ - - self._id = id - - @property - def fingerprint_id(self): - """ - Gets the fingerprint_id of this InlineResponse2002DeviceInformation. - TBD - - :return: The fingerprint_id of this InlineResponse2002DeviceInformation. - :rtype: str - """ - return self._fingerprint_id - - @fingerprint_id.setter - def fingerprint_id(self, fingerprint_id): - """ - Sets the fingerprint_id of this InlineResponse2002DeviceInformation. - TBD - - :param fingerprint_id: The fingerprint_id of this InlineResponse2002DeviceInformation. - :type: str - """ - - self._fingerprint_id = fingerprint_id - - @property - def ip_address(self): - """ - Gets the ip_address of this InlineResponse2002DeviceInformation. - IP address of the customer. - - :return: The ip_address of this InlineResponse2002DeviceInformation. - :rtype: str - """ - return self._ip_address - - @ip_address.setter - def ip_address(self, ip_address): - """ - Sets the ip_address of this InlineResponse2002DeviceInformation. - IP address of the customer. - - :param ip_address: The ip_address of this InlineResponse2002DeviceInformation. - :type: str - """ - if ip_address is not None and len(ip_address) > 15: - raise ValueError("Invalid value for `ip_address`, length must be less than or equal to `15`") - - self._ip_address = ip_address - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002DeviceInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_merchant_information.py b/CyberSource/models/inline_response_200_2_merchant_information.py deleted file mode 100644 index 898b43d8..00000000 --- a/CyberSource/models/inline_response_200_2_merchant_information.py +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002MerchantInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'category_code': 'int', - 'vat_registration_number': 'str', - 'merchant_descriptor': 'V2paymentsMerchantInformationMerchantDescriptor' - } - - attribute_map = { - 'category_code': 'categoryCode', - 'vat_registration_number': 'vatRegistrationNumber', - 'merchant_descriptor': 'merchantDescriptor' - } - - def __init__(self, category_code=None, vat_registration_number=None, merchant_descriptor=None): - """ - InlineResponse2002MerchantInformation - a model defined in Swagger - """ - - self._category_code = None - self._vat_registration_number = None - self._merchant_descriptor = None - - if category_code is not None: - self.category_code = category_code - if vat_registration_number is not None: - self.vat_registration_number = vat_registration_number - if merchant_descriptor is not None: - self.merchant_descriptor = merchant_descriptor - - @property - def category_code(self): - """ - Gets the category_code of this InlineResponse2002MerchantInformation. - Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The category_code of this InlineResponse2002MerchantInformation. - :rtype: int - """ - return self._category_code - - @category_code.setter - def category_code(self, category_code): - """ - Sets the category_code of this InlineResponse2002MerchantInformation. - Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param category_code: The category_code of this InlineResponse2002MerchantInformation. - :type: int - """ - if category_code is not None and category_code > 9999: - raise ValueError("Invalid value for `category_code`, must be a value less than or equal to `9999`") - - self._category_code = category_code - - @property - def vat_registration_number(self): - """ - Gets the vat_registration_number of this InlineResponse2002MerchantInformation. - Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_registration_number of this InlineResponse2002MerchantInformation. - :rtype: str - """ - return self._vat_registration_number - - @vat_registration_number.setter - def vat_registration_number(self, vat_registration_number): - """ - Sets the vat_registration_number of this InlineResponse2002MerchantInformation. - Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_registration_number: The vat_registration_number of this InlineResponse2002MerchantInformation. - :type: str - """ - if vat_registration_number is not None and len(vat_registration_number) > 21: - raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `21`") - - self._vat_registration_number = vat_registration_number - - @property - def merchant_descriptor(self): - """ - Gets the merchant_descriptor of this InlineResponse2002MerchantInformation. - - :return: The merchant_descriptor of this InlineResponse2002MerchantInformation. - :rtype: V2paymentsMerchantInformationMerchantDescriptor - """ - return self._merchant_descriptor - - @merchant_descriptor.setter - def merchant_descriptor(self, merchant_descriptor): - """ - Sets the merchant_descriptor of this InlineResponse2002MerchantInformation. - - :param merchant_descriptor: The merchant_descriptor of this InlineResponse2002MerchantInformation. - :type: V2paymentsMerchantInformationMerchantDescriptor - """ - - self._merchant_descriptor = merchant_descriptor - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002MerchantInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_order_information.py b/CyberSource/models/inline_response_200_2_order_information.py deleted file mode 100644 index 84854dbf..00000000 --- a/CyberSource/models/inline_response_200_2_order_information.py +++ /dev/null @@ -1,253 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002OrderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'amount_details': 'InlineResponse2002OrderInformationAmountDetails', - 'bill_to': 'InlineResponse2002OrderInformationBillTo', - 'ship_to': 'InlineResponse2002OrderInformationShipTo', - 'line_items': 'list[InlineResponse2002OrderInformationLineItems]', - 'invoice_details': 'InlineResponse2002OrderInformationInvoiceDetails', - 'shipping_details': 'V2paymentsOrderInformationShippingDetails' - } - - attribute_map = { - 'amount_details': 'amountDetails', - 'bill_to': 'billTo', - 'ship_to': 'shipTo', - 'line_items': 'lineItems', - 'invoice_details': 'invoiceDetails', - 'shipping_details': 'shippingDetails' - } - - def __init__(self, amount_details=None, bill_to=None, ship_to=None, line_items=None, invoice_details=None, shipping_details=None): - """ - InlineResponse2002OrderInformation - a model defined in Swagger - """ - - self._amount_details = None - self._bill_to = None - self._ship_to = None - self._line_items = None - self._invoice_details = None - self._shipping_details = None - - if amount_details is not None: - self.amount_details = amount_details - if bill_to is not None: - self.bill_to = bill_to - if ship_to is not None: - self.ship_to = ship_to - if line_items is not None: - self.line_items = line_items - if invoice_details is not None: - self.invoice_details = invoice_details - if shipping_details is not None: - self.shipping_details = shipping_details - - @property - def amount_details(self): - """ - Gets the amount_details of this InlineResponse2002OrderInformation. - - :return: The amount_details of this InlineResponse2002OrderInformation. - :rtype: InlineResponse2002OrderInformationAmountDetails - """ - return self._amount_details - - @amount_details.setter - def amount_details(self, amount_details): - """ - Sets the amount_details of this InlineResponse2002OrderInformation. - - :param amount_details: The amount_details of this InlineResponse2002OrderInformation. - :type: InlineResponse2002OrderInformationAmountDetails - """ - - self._amount_details = amount_details - - @property - def bill_to(self): - """ - Gets the bill_to of this InlineResponse2002OrderInformation. - - :return: The bill_to of this InlineResponse2002OrderInformation. - :rtype: InlineResponse2002OrderInformationBillTo - """ - return self._bill_to - - @bill_to.setter - def bill_to(self, bill_to): - """ - Sets the bill_to of this InlineResponse2002OrderInformation. - - :param bill_to: The bill_to of this InlineResponse2002OrderInformation. - :type: InlineResponse2002OrderInformationBillTo - """ - - self._bill_to = bill_to - - @property - def ship_to(self): - """ - Gets the ship_to of this InlineResponse2002OrderInformation. - - :return: The ship_to of this InlineResponse2002OrderInformation. - :rtype: InlineResponse2002OrderInformationShipTo - """ - return self._ship_to - - @ship_to.setter - def ship_to(self, ship_to): - """ - Sets the ship_to of this InlineResponse2002OrderInformation. - - :param ship_to: The ship_to of this InlineResponse2002OrderInformation. - :type: InlineResponse2002OrderInformationShipTo - """ - - self._ship_to = ship_to - - @property - def line_items(self): - """ - Gets the line_items of this InlineResponse2002OrderInformation. - - :return: The line_items of this InlineResponse2002OrderInformation. - :rtype: list[InlineResponse2002OrderInformationLineItems] - """ - return self._line_items - - @line_items.setter - def line_items(self, line_items): - """ - Sets the line_items of this InlineResponse2002OrderInformation. - - :param line_items: The line_items of this InlineResponse2002OrderInformation. - :type: list[InlineResponse2002OrderInformationLineItems] - """ - - self._line_items = line_items - - @property - def invoice_details(self): - """ - Gets the invoice_details of this InlineResponse2002OrderInformation. - - :return: The invoice_details of this InlineResponse2002OrderInformation. - :rtype: InlineResponse2002OrderInformationInvoiceDetails - """ - return self._invoice_details - - @invoice_details.setter - def invoice_details(self, invoice_details): - """ - Sets the invoice_details of this InlineResponse2002OrderInformation. - - :param invoice_details: The invoice_details of this InlineResponse2002OrderInformation. - :type: InlineResponse2002OrderInformationInvoiceDetails - """ - - self._invoice_details = invoice_details - - @property - def shipping_details(self): - """ - Gets the shipping_details of this InlineResponse2002OrderInformation. - - :return: The shipping_details of this InlineResponse2002OrderInformation. - :rtype: V2paymentsOrderInformationShippingDetails - """ - return self._shipping_details - - @shipping_details.setter - def shipping_details(self, shipping_details): - """ - Sets the shipping_details of this InlineResponse2002OrderInformation. - - :param shipping_details: The shipping_details of this InlineResponse2002OrderInformation. - :type: V2paymentsOrderInformationShippingDetails - """ - - self._shipping_details = shipping_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002OrderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_order_information_amount_details.py b/CyberSource/models/inline_response_200_2_order_information_amount_details.py deleted file mode 100644 index 2c23d8b3..00000000 --- a/CyberSource/models/inline_response_200_2_order_information_amount_details.py +++ /dev/null @@ -1,363 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002OrderInformationAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'authorized_amount': 'str', - 'total_amount': 'str', - 'currency': 'str', - 'discount_amount': 'str', - 'duty_amount': 'str', - 'tax_amount': 'str', - 'national_tax_included': 'str', - 'freight_amount': 'str', - 'tax_details': 'list[V2paymentsOrderInformationAmountDetailsTaxDetails]' - } - - attribute_map = { - 'authorized_amount': 'authorizedAmount', - 'total_amount': 'totalAmount', - 'currency': 'currency', - 'discount_amount': 'discountAmount', - 'duty_amount': 'dutyAmount', - 'tax_amount': 'taxAmount', - 'national_tax_included': 'nationalTaxIncluded', - 'freight_amount': 'freightAmount', - 'tax_details': 'taxDetails' - } - - def __init__(self, authorized_amount=None, total_amount=None, currency=None, discount_amount=None, duty_amount=None, tax_amount=None, national_tax_included=None, freight_amount=None, tax_details=None): - """ - InlineResponse2002OrderInformationAmountDetails - a model defined in Swagger - """ - - self._authorized_amount = None - self._total_amount = None - self._currency = None - self._discount_amount = None - self._duty_amount = None - self._tax_amount = None - self._national_tax_included = None - self._freight_amount = None - self._tax_details = None - - if authorized_amount is not None: - self.authorized_amount = authorized_amount - if total_amount is not None: - self.total_amount = total_amount - if currency is not None: - self.currency = currency - if discount_amount is not None: - self.discount_amount = discount_amount - if duty_amount is not None: - self.duty_amount = duty_amount - if tax_amount is not None: - self.tax_amount = tax_amount - if national_tax_included is not None: - self.national_tax_included = national_tax_included - if freight_amount is not None: - self.freight_amount = freight_amount - if tax_details is not None: - self.tax_details = tax_details - - @property - def authorized_amount(self): - """ - Gets the authorized_amount of this InlineResponse2002OrderInformationAmountDetails. - Amount that was authorized. - - :return: The authorized_amount of this InlineResponse2002OrderInformationAmountDetails. - :rtype: str - """ - return self._authorized_amount - - @authorized_amount.setter - def authorized_amount(self, authorized_amount): - """ - Sets the authorized_amount of this InlineResponse2002OrderInformationAmountDetails. - Amount that was authorized. - - :param authorized_amount: The authorized_amount of this InlineResponse2002OrderInformationAmountDetails. - :type: str - """ - if authorized_amount is not None and len(authorized_amount) > 15: - raise ValueError("Invalid value for `authorized_amount`, length must be less than or equal to `15`") - - self._authorized_amount = authorized_amount - - @property - def total_amount(self): - """ - Gets the total_amount of this InlineResponse2002OrderInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The total_amount of this InlineResponse2002OrderInformationAmountDetails. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this InlineResponse2002OrderInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param total_amount: The total_amount of this InlineResponse2002OrderInformationAmountDetails. - :type: str - """ - if total_amount is not None and len(total_amount) > 19: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") - - self._total_amount = total_amount - - @property - def currency(self): - """ - Gets the currency of this InlineResponse2002OrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this InlineResponse2002OrderInformationAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this InlineResponse2002OrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this InlineResponse2002OrderInformationAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - @property - def discount_amount(self): - """ - Gets the discount_amount of this InlineResponse2002OrderInformationAmountDetails. - Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The discount_amount of this InlineResponse2002OrderInformationAmountDetails. - :rtype: str - """ - return self._discount_amount - - @discount_amount.setter - def discount_amount(self, discount_amount): - """ - Sets the discount_amount of this InlineResponse2002OrderInformationAmountDetails. - Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param discount_amount: The discount_amount of this InlineResponse2002OrderInformationAmountDetails. - :type: str - """ - if discount_amount is not None and len(discount_amount) > 15: - raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `15`") - - self._discount_amount = discount_amount - - @property - def duty_amount(self): - """ - Gets the duty_amount of this InlineResponse2002OrderInformationAmountDetails. - Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The duty_amount of this InlineResponse2002OrderInformationAmountDetails. - :rtype: str - """ - return self._duty_amount - - @duty_amount.setter - def duty_amount(self, duty_amount): - """ - Sets the duty_amount of this InlineResponse2002OrderInformationAmountDetails. - Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param duty_amount: The duty_amount of this InlineResponse2002OrderInformationAmountDetails. - :type: str - """ - if duty_amount is not None and len(duty_amount) > 15: - raise ValueError("Invalid value for `duty_amount`, length must be less than or equal to `15`") - - self._duty_amount = duty_amount - - @property - def tax_amount(self): - """ - Gets the tax_amount of this InlineResponse2002OrderInformationAmountDetails. - Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The tax_amount of this InlineResponse2002OrderInformationAmountDetails. - :rtype: str - """ - return self._tax_amount - - @tax_amount.setter - def tax_amount(self, tax_amount): - """ - Sets the tax_amount of this InlineResponse2002OrderInformationAmountDetails. - Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param tax_amount: The tax_amount of this InlineResponse2002OrderInformationAmountDetails. - :type: str - """ - if tax_amount is not None and len(tax_amount) > 12: - raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `12`") - - self._tax_amount = tax_amount - - @property - def national_tax_included(self): - """ - Gets the national_tax_included of this InlineResponse2002OrderInformationAmountDetails. - Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The national_tax_included of this InlineResponse2002OrderInformationAmountDetails. - :rtype: str - """ - return self._national_tax_included - - @national_tax_included.setter - def national_tax_included(self, national_tax_included): - """ - Sets the national_tax_included of this InlineResponse2002OrderInformationAmountDetails. - Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param national_tax_included: The national_tax_included of this InlineResponse2002OrderInformationAmountDetails. - :type: str - """ - if national_tax_included is not None and len(national_tax_included) > 1: - raise ValueError("Invalid value for `national_tax_included`, length must be less than or equal to `1`") - - self._national_tax_included = national_tax_included - - @property - def freight_amount(self): - """ - Gets the freight_amount of this InlineResponse2002OrderInformationAmountDetails. - Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The freight_amount of this InlineResponse2002OrderInformationAmountDetails. - :rtype: str - """ - return self._freight_amount - - @freight_amount.setter - def freight_amount(self, freight_amount): - """ - Sets the freight_amount of this InlineResponse2002OrderInformationAmountDetails. - Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param freight_amount: The freight_amount of this InlineResponse2002OrderInformationAmountDetails. - :type: str - """ - if freight_amount is not None and len(freight_amount) > 13: - raise ValueError("Invalid value for `freight_amount`, length must be less than or equal to `13`") - - self._freight_amount = freight_amount - - @property - def tax_details(self): - """ - Gets the tax_details of this InlineResponse2002OrderInformationAmountDetails. - - :return: The tax_details of this InlineResponse2002OrderInformationAmountDetails. - :rtype: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - return self._tax_details - - @tax_details.setter - def tax_details(self, tax_details): - """ - Sets the tax_details of this InlineResponse2002OrderInformationAmountDetails. - - :param tax_details: The tax_details of this InlineResponse2002OrderInformationAmountDetails. - :type: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - - self._tax_details = tax_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002OrderInformationAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_order_information_bill_to.py b/CyberSource/models/inline_response_200_2_order_information_bill_to.py deleted file mode 100644 index a5a0f261..00000000 --- a/CyberSource/models/inline_response_200_2_order_information_bill_to.py +++ /dev/null @@ -1,455 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002OrderInformationBillTo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'first_name': 'str', - 'last_name': 'str', - 'company': 'str', - 'address1': 'str', - 'address2': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'postal_code': 'str', - 'county': 'str', - 'country': 'str', - 'email': 'str', - 'phone_number': 'str' - } - - attribute_map = { - 'first_name': 'firstName', - 'last_name': 'lastName', - 'company': 'company', - 'address1': 'address1', - 'address2': 'address2', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'postal_code': 'postalCode', - 'county': 'county', - 'country': 'country', - 'email': 'email', - 'phone_number': 'phoneNumber' - } - - def __init__(self, first_name=None, last_name=None, company=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, county=None, country=None, email=None, phone_number=None): - """ - InlineResponse2002OrderInformationBillTo - a model defined in Swagger - """ - - self._first_name = None - self._last_name = None - self._company = None - self._address1 = None - self._address2 = None - self._locality = None - self._administrative_area = None - self._postal_code = None - self._county = None - self._country = None - self._email = None - self._phone_number = None - - if first_name is not None: - self.first_name = first_name - if last_name is not None: - self.last_name = last_name - if company is not None: - self.company = company - if address1 is not None: - self.address1 = address1 - if address2 is not None: - self.address2 = address2 - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if postal_code is not None: - self.postal_code = postal_code - if county is not None: - self.county = county - if country is not None: - self.country = country - if email is not None: - self.email = email - if phone_number is not None: - self.phone_number = phone_number - - @property - def first_name(self): - """ - Gets the first_name of this InlineResponse2002OrderInformationBillTo. - Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The first_name of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """ - Sets the first_name of this InlineResponse2002OrderInformationBillTo. - Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param first_name: The first_name of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if first_name is not None and len(first_name) > 60: - raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") - - self._first_name = first_name - - @property - def last_name(self): - """ - Gets the last_name of this InlineResponse2002OrderInformationBillTo. - Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The last_name of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this InlineResponse2002OrderInformationBillTo. - Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param last_name: The last_name of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if last_name is not None and len(last_name) > 60: - raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") - - self._last_name = last_name - - @property - def company(self): - """ - Gets the company of this InlineResponse2002OrderInformationBillTo. - Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The company of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._company - - @company.setter - def company(self, company): - """ - Sets the company of this InlineResponse2002OrderInformationBillTo. - Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param company: The company of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if company is not None and len(company) > 60: - raise ValueError("Invalid value for `company`, length must be less than or equal to `60`") - - self._company = company - - @property - def address1(self): - """ - Gets the address1 of this InlineResponse2002OrderInformationBillTo. - First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The address1 of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this InlineResponse2002OrderInformationBillTo. - First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param address1: The address1 of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if address1 is not None and len(address1) > 60: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") - - self._address1 = address1 - - @property - def address2(self): - """ - Gets the address2 of this InlineResponse2002OrderInformationBillTo. - Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The address2 of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._address2 - - @address2.setter - def address2(self, address2): - """ - Sets the address2 of this InlineResponse2002OrderInformationBillTo. - Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param address2: The address2 of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if address2 is not None and len(address2) > 60: - raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") - - self._address2 = address2 - - @property - def locality(self): - """ - Gets the locality of this InlineResponse2002OrderInformationBillTo. - City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The locality of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this InlineResponse2002OrderInformationBillTo. - City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param locality: The locality of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if locality is not None and len(locality) > 50: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this InlineResponse2002OrderInformationBillTo. - State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The administrative_area of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this InlineResponse2002OrderInformationBillTo. - State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param administrative_area: The administrative_area of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 2: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") - - self._administrative_area = administrative_area - - @property - def postal_code(self): - """ - Gets the postal_code of this InlineResponse2002OrderInformationBillTo. - Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The postal_code of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this InlineResponse2002OrderInformationBillTo. - Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param postal_code: The postal_code of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if postal_code is not None and len(postal_code) > 10: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") - - self._postal_code = postal_code - - @property - def county(self): - """ - Gets the county of this InlineResponse2002OrderInformationBillTo. - TBD - - :return: The county of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._county - - @county.setter - def county(self, county): - """ - Sets the county of this InlineResponse2002OrderInformationBillTo. - TBD - - :param county: The county of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - - self._county = county - - @property - def country(self): - """ - Gets the country of this InlineResponse2002OrderInformationBillTo. - Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The country of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this InlineResponse2002OrderInformationBillTo. - Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param country: The country of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - @property - def email(self): - """ - Gets the email of this InlineResponse2002OrderInformationBillTo. - Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The email of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """ - Sets the email of this InlineResponse2002OrderInformationBillTo. - Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param email: The email of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if email is not None and len(email) > 255: - raise ValueError("Invalid value for `email`, length must be less than or equal to `255`") - - self._email = email - - @property - def phone_number(self): - """ - Gets the phone_number of this InlineResponse2002OrderInformationBillTo. - Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The phone_number of this InlineResponse2002OrderInformationBillTo. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this InlineResponse2002OrderInformationBillTo. - Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param phone_number: The phone_number of this InlineResponse2002OrderInformationBillTo. - :type: str - """ - if phone_number is not None and len(phone_number) > 15: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") - - self._phone_number = phone_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002OrderInformationBillTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_order_information_invoice_details.py b/CyberSource/models/inline_response_200_2_order_information_invoice_details.py deleted file mode 100644 index b03411b3..00000000 --- a/CyberSource/models/inline_response_200_2_order_information_invoice_details.py +++ /dev/null @@ -1,327 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002OrderInformationInvoiceDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'purchase_order_number': 'str', - 'purchase_order_date': 'str', - 'taxable': 'bool', - 'vat_invoice_reference_number': 'str', - 'commodity_code': 'str', - 'merchandise_code': 'float', - 'transaction_advice_addendum': 'list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]', - 'level3_transmission_status': 'bool' - } - - attribute_map = { - 'purchase_order_number': 'purchaseOrderNumber', - 'purchase_order_date': 'purchaseOrderDate', - 'taxable': 'taxable', - 'vat_invoice_reference_number': 'vatInvoiceReferenceNumber', - 'commodity_code': 'commodityCode', - 'merchandise_code': 'merchandiseCode', - 'transaction_advice_addendum': 'transactionAdviceAddendum', - 'level3_transmission_status': 'level3TransmissionStatus' - } - - def __init__(self, purchase_order_number=None, purchase_order_date=None, taxable=None, vat_invoice_reference_number=None, commodity_code=None, merchandise_code=None, transaction_advice_addendum=None, level3_transmission_status=None): - """ - InlineResponse2002OrderInformationInvoiceDetails - a model defined in Swagger - """ - - self._purchase_order_number = None - self._purchase_order_date = None - self._taxable = None - self._vat_invoice_reference_number = None - self._commodity_code = None - self._merchandise_code = None - self._transaction_advice_addendum = None - self._level3_transmission_status = None - - if purchase_order_number is not None: - self.purchase_order_number = purchase_order_number - if purchase_order_date is not None: - self.purchase_order_date = purchase_order_date - if taxable is not None: - self.taxable = taxable - if vat_invoice_reference_number is not None: - self.vat_invoice_reference_number = vat_invoice_reference_number - if commodity_code is not None: - self.commodity_code = commodity_code - if merchandise_code is not None: - self.merchandise_code = merchandise_code - if transaction_advice_addendum is not None: - self.transaction_advice_addendum = transaction_advice_addendum - if level3_transmission_status is not None: - self.level3_transmission_status = level3_transmission_status - - @property - def purchase_order_number(self): - """ - Gets the purchase_order_number of this InlineResponse2002OrderInformationInvoiceDetails. - Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The purchase_order_number of this InlineResponse2002OrderInformationInvoiceDetails. - :rtype: str - """ - return self._purchase_order_number - - @purchase_order_number.setter - def purchase_order_number(self, purchase_order_number): - """ - Sets the purchase_order_number of this InlineResponse2002OrderInformationInvoiceDetails. - Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param purchase_order_number: The purchase_order_number of this InlineResponse2002OrderInformationInvoiceDetails. - :type: str - """ - if purchase_order_number is not None and len(purchase_order_number) > 25: - raise ValueError("Invalid value for `purchase_order_number`, length must be less than or equal to `25`") - - self._purchase_order_number = purchase_order_number - - @property - def purchase_order_date(self): - """ - Gets the purchase_order_date of this InlineResponse2002OrderInformationInvoiceDetails. - Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The purchase_order_date of this InlineResponse2002OrderInformationInvoiceDetails. - :rtype: str - """ - return self._purchase_order_date - - @purchase_order_date.setter - def purchase_order_date(self, purchase_order_date): - """ - Sets the purchase_order_date of this InlineResponse2002OrderInformationInvoiceDetails. - Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param purchase_order_date: The purchase_order_date of this InlineResponse2002OrderInformationInvoiceDetails. - :type: str - """ - if purchase_order_date is not None and len(purchase_order_date) > 10: - raise ValueError("Invalid value for `purchase_order_date`, length must be less than or equal to `10`") - - self._purchase_order_date = purchase_order_date - - @property - def taxable(self): - """ - Gets the taxable of this InlineResponse2002OrderInformationInvoiceDetails. - Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The taxable of this InlineResponse2002OrderInformationInvoiceDetails. - :rtype: bool - """ - return self._taxable - - @taxable.setter - def taxable(self, taxable): - """ - Sets the taxable of this InlineResponse2002OrderInformationInvoiceDetails. - Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param taxable: The taxable of this InlineResponse2002OrderInformationInvoiceDetails. - :type: bool - """ - - self._taxable = taxable - - @property - def vat_invoice_reference_number(self): - """ - Gets the vat_invoice_reference_number of this InlineResponse2002OrderInformationInvoiceDetails. - VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_invoice_reference_number of this InlineResponse2002OrderInformationInvoiceDetails. - :rtype: str - """ - return self._vat_invoice_reference_number - - @vat_invoice_reference_number.setter - def vat_invoice_reference_number(self, vat_invoice_reference_number): - """ - Sets the vat_invoice_reference_number of this InlineResponse2002OrderInformationInvoiceDetails. - VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_invoice_reference_number: The vat_invoice_reference_number of this InlineResponse2002OrderInformationInvoiceDetails. - :type: str - """ - if vat_invoice_reference_number is not None and len(vat_invoice_reference_number) > 15: - raise ValueError("Invalid value for `vat_invoice_reference_number`, length must be less than or equal to `15`") - - self._vat_invoice_reference_number = vat_invoice_reference_number - - @property - def commodity_code(self): - """ - Gets the commodity_code of this InlineResponse2002OrderInformationInvoiceDetails. - International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The commodity_code of this InlineResponse2002OrderInformationInvoiceDetails. - :rtype: str - """ - return self._commodity_code - - @commodity_code.setter - def commodity_code(self, commodity_code): - """ - Sets the commodity_code of this InlineResponse2002OrderInformationInvoiceDetails. - International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param commodity_code: The commodity_code of this InlineResponse2002OrderInformationInvoiceDetails. - :type: str - """ - if commodity_code is not None and len(commodity_code) > 4: - raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `4`") - - self._commodity_code = commodity_code - - @property - def merchandise_code(self): - """ - Gets the merchandise_code of this InlineResponse2002OrderInformationInvoiceDetails. - Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. - - :return: The merchandise_code of this InlineResponse2002OrderInformationInvoiceDetails. - :rtype: float - """ - return self._merchandise_code - - @merchandise_code.setter - def merchandise_code(self, merchandise_code): - """ - Sets the merchandise_code of this InlineResponse2002OrderInformationInvoiceDetails. - Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. - - :param merchandise_code: The merchandise_code of this InlineResponse2002OrderInformationInvoiceDetails. - :type: float - """ - - self._merchandise_code = merchandise_code - - @property - def transaction_advice_addendum(self): - """ - Gets the transaction_advice_addendum of this InlineResponse2002OrderInformationInvoiceDetails. - - :return: The transaction_advice_addendum of this InlineResponse2002OrderInformationInvoiceDetails. - :rtype: list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] - """ - return self._transaction_advice_addendum - - @transaction_advice_addendum.setter - def transaction_advice_addendum(self, transaction_advice_addendum): - """ - Sets the transaction_advice_addendum of this InlineResponse2002OrderInformationInvoiceDetails. - - :param transaction_advice_addendum: The transaction_advice_addendum of this InlineResponse2002OrderInformationInvoiceDetails. - :type: list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] - """ - - self._transaction_advice_addendum = transaction_advice_addendum - - @property - def level3_transmission_status(self): - """ - Gets the level3_transmission_status of this InlineResponse2002OrderInformationInvoiceDetails. - Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The level3_transmission_status of this InlineResponse2002OrderInformationInvoiceDetails. - :rtype: bool - """ - return self._level3_transmission_status - - @level3_transmission_status.setter - def level3_transmission_status(self, level3_transmission_status): - """ - Sets the level3_transmission_status of this InlineResponse2002OrderInformationInvoiceDetails. - Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param level3_transmission_status: The level3_transmission_status of this InlineResponse2002OrderInformationInvoiceDetails. - :type: bool - """ - - self._level3_transmission_status = level3_transmission_status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002OrderInformationInvoiceDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_order_information_line_items.py b/CyberSource/models/inline_response_200_2_order_information_line_items.py deleted file mode 100644 index ddcdc688..00000000 --- a/CyberSource/models/inline_response_200_2_order_information_line_items.py +++ /dev/null @@ -1,601 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002OrderInformationLineItems(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'product_code': 'str', - 'product_name': 'str', - 'product_sku': 'str', - 'quantity': 'float', - 'unit_price': 'str', - 'unit_of_measure': 'str', - 'total_amount': 'str', - 'tax_amount': 'str', - 'tax_rate': 'str', - 'tax_type_code': 'str', - 'amount_includes_tax': 'bool', - 'commodity_code': 'str', - 'discount_amount': 'str', - 'discount_applied': 'bool', - 'discount_rate': 'str', - 'invoice_number': 'str', - 'tax_details': 'list[V2paymentsOrderInformationAmountDetailsTaxDetails]' - } - - attribute_map = { - 'product_code': 'productCode', - 'product_name': 'productName', - 'product_sku': 'productSku', - 'quantity': 'quantity', - 'unit_price': 'unitPrice', - 'unit_of_measure': 'unitOfMeasure', - 'total_amount': 'totalAmount', - 'tax_amount': 'taxAmount', - 'tax_rate': 'taxRate', - 'tax_type_code': 'taxTypeCode', - 'amount_includes_tax': 'amountIncludesTax', - 'commodity_code': 'commodityCode', - 'discount_amount': 'discountAmount', - 'discount_applied': 'discountApplied', - 'discount_rate': 'discountRate', - 'invoice_number': 'invoiceNumber', - 'tax_details': 'taxDetails' - } - - def __init__(self, product_code=None, product_name=None, product_sku=None, quantity=None, unit_price=None, unit_of_measure=None, total_amount=None, tax_amount=None, tax_rate=None, tax_type_code=None, amount_includes_tax=None, commodity_code=None, discount_amount=None, discount_applied=None, discount_rate=None, invoice_number=None, tax_details=None): - """ - InlineResponse2002OrderInformationLineItems - a model defined in Swagger - """ - - self._product_code = None - self._product_name = None - self._product_sku = None - self._quantity = None - self._unit_price = None - self._unit_of_measure = None - self._total_amount = None - self._tax_amount = None - self._tax_rate = None - self._tax_type_code = None - self._amount_includes_tax = None - self._commodity_code = None - self._discount_amount = None - self._discount_applied = None - self._discount_rate = None - self._invoice_number = None - self._tax_details = None - - if product_code is not None: - self.product_code = product_code - if product_name is not None: - self.product_name = product_name - if product_sku is not None: - self.product_sku = product_sku - if quantity is not None: - self.quantity = quantity - if unit_price is not None: - self.unit_price = unit_price - if unit_of_measure is not None: - self.unit_of_measure = unit_of_measure - if total_amount is not None: - self.total_amount = total_amount - if tax_amount is not None: - self.tax_amount = tax_amount - if tax_rate is not None: - self.tax_rate = tax_rate - if tax_type_code is not None: - self.tax_type_code = tax_type_code - if amount_includes_tax is not None: - self.amount_includes_tax = amount_includes_tax - if commodity_code is not None: - self.commodity_code = commodity_code - if discount_amount is not None: - self.discount_amount = discount_amount - if discount_applied is not None: - self.discount_applied = discount_applied - if discount_rate is not None: - self.discount_rate = discount_rate - if invoice_number is not None: - self.invoice_number = invoice_number - if tax_details is not None: - self.tax_details = tax_details - - @property - def product_code(self): - """ - Gets the product_code of this InlineResponse2002OrderInformationLineItems. - Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. - - :return: The product_code of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._product_code - - @product_code.setter - def product_code(self, product_code): - """ - Sets the product_code of this InlineResponse2002OrderInformationLineItems. - Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. - - :param product_code: The product_code of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if product_code is not None and len(product_code) > 255: - raise ValueError("Invalid value for `product_code`, length must be less than or equal to `255`") - - self._product_code = product_code - - @property - def product_name(self): - """ - Gets the product_name of this InlineResponse2002OrderInformationLineItems. - For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. - - :return: The product_name of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._product_name - - @product_name.setter - def product_name(self, product_name): - """ - Sets the product_name of this InlineResponse2002OrderInformationLineItems. - For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. - - :param product_name: The product_name of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if product_name is not None and len(product_name) > 255: - raise ValueError("Invalid value for `product_name`, length must be less than or equal to `255`") - - self._product_name = product_name - - @property - def product_sku(self): - """ - Gets the product_sku of this InlineResponse2002OrderInformationLineItems. - Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. - - :return: The product_sku of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._product_sku - - @product_sku.setter - def product_sku(self, product_sku): - """ - Sets the product_sku of this InlineResponse2002OrderInformationLineItems. - Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. - - :param product_sku: The product_sku of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if product_sku is not None and len(product_sku) > 255: - raise ValueError("Invalid value for `product_sku`, length must be less than or equal to `255`") - - self._product_sku = product_sku - - @property - def quantity(self): - """ - Gets the quantity of this InlineResponse2002OrderInformationLineItems. - For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. - - :return: The quantity of this InlineResponse2002OrderInformationLineItems. - :rtype: float - """ - return self._quantity - - @quantity.setter - def quantity(self, quantity): - """ - Sets the quantity of this InlineResponse2002OrderInformationLineItems. - For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. - - :param quantity: The quantity of this InlineResponse2002OrderInformationLineItems. - :type: float - """ - if quantity is not None and quantity > 9999999999: - raise ValueError("Invalid value for `quantity`, must be a value less than or equal to `9999999999`") - if quantity is not None and quantity < 1: - raise ValueError("Invalid value for `quantity`, must be a value greater than or equal to `1`") - - self._quantity = quantity - - @property - def unit_price(self): - """ - Gets the unit_price of this InlineResponse2002OrderInformationLineItems. - Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The unit_price of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._unit_price - - @unit_price.setter - def unit_price(self, unit_price): - """ - Sets the unit_price of this InlineResponse2002OrderInformationLineItems. - Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param unit_price: The unit_price of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if unit_price is not None and len(unit_price) > 15: - raise ValueError("Invalid value for `unit_price`, length must be less than or equal to `15`") - - self._unit_price = unit_price - - @property - def unit_of_measure(self): - """ - Gets the unit_of_measure of this InlineResponse2002OrderInformationLineItems. - Unit of measure, or unit of measure code, for the item. - - :return: The unit_of_measure of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._unit_of_measure - - @unit_of_measure.setter - def unit_of_measure(self, unit_of_measure): - """ - Sets the unit_of_measure of this InlineResponse2002OrderInformationLineItems. - Unit of measure, or unit of measure code, for the item. - - :param unit_of_measure: The unit_of_measure of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if unit_of_measure is not None and len(unit_of_measure) > 12: - raise ValueError("Invalid value for `unit_of_measure`, length must be less than or equal to `12`") - - self._unit_of_measure = unit_of_measure - - @property - def total_amount(self): - """ - Gets the total_amount of this InlineResponse2002OrderInformationLineItems. - Total amount for the item. Normally calculated as the unit price x quantity. - - :return: The total_amount of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this InlineResponse2002OrderInformationLineItems. - Total amount for the item. Normally calculated as the unit price x quantity. - - :param total_amount: The total_amount of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if total_amount is not None and len(total_amount) > 13: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `13`") - - self._total_amount = total_amount - - @property - def tax_amount(self): - """ - Gets the tax_amount of this InlineResponse2002OrderInformationLineItems. - Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. - - :return: The tax_amount of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._tax_amount - - @tax_amount.setter - def tax_amount(self, tax_amount): - """ - Sets the tax_amount of this InlineResponse2002OrderInformationLineItems. - Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. - - :param tax_amount: The tax_amount of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if tax_amount is not None and len(tax_amount) > 15: - raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `15`") - - self._tax_amount = tax_amount - - @property - def tax_rate(self): - """ - Gets the tax_rate of this InlineResponse2002OrderInformationLineItems. - Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). - - :return: The tax_rate of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._tax_rate - - @tax_rate.setter - def tax_rate(self, tax_rate): - """ - Sets the tax_rate of this InlineResponse2002OrderInformationLineItems. - Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). - - :param tax_rate: The tax_rate of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if tax_rate is not None and len(tax_rate) > 7: - raise ValueError("Invalid value for `tax_rate`, length must be less than or equal to `7`") - - self._tax_rate = tax_rate - - @property - def tax_type_code(self): - """ - Gets the tax_type_code of this InlineResponse2002OrderInformationLineItems. - Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. - - :return: The tax_type_code of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._tax_type_code - - @tax_type_code.setter - def tax_type_code(self, tax_type_code): - """ - Sets the tax_type_code of this InlineResponse2002OrderInformationLineItems. - Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. - - :param tax_type_code: The tax_type_code of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if tax_type_code is not None and len(tax_type_code) > 4: - raise ValueError("Invalid value for `tax_type_code`, length must be less than or equal to `4`") - - self._tax_type_code = tax_type_code - - @property - def amount_includes_tax(self): - """ - Gets the amount_includes_tax of this InlineResponse2002OrderInformationLineItems. - Flag that indicates whether the tax amount is included in the Line Item Total. - - :return: The amount_includes_tax of this InlineResponse2002OrderInformationLineItems. - :rtype: bool - """ - return self._amount_includes_tax - - @amount_includes_tax.setter - def amount_includes_tax(self, amount_includes_tax): - """ - Sets the amount_includes_tax of this InlineResponse2002OrderInformationLineItems. - Flag that indicates whether the tax amount is included in the Line Item Total. - - :param amount_includes_tax: The amount_includes_tax of this InlineResponse2002OrderInformationLineItems. - :type: bool - """ - - self._amount_includes_tax = amount_includes_tax - - @property - def commodity_code(self): - """ - Gets the commodity_code of this InlineResponse2002OrderInformationLineItems. - Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. - - :return: The commodity_code of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._commodity_code - - @commodity_code.setter - def commodity_code(self, commodity_code): - """ - Sets the commodity_code of this InlineResponse2002OrderInformationLineItems. - Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. - - :param commodity_code: The commodity_code of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if commodity_code is not None and len(commodity_code) > 15: - raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `15`") - - self._commodity_code = commodity_code - - @property - def discount_amount(self): - """ - Gets the discount_amount of this InlineResponse2002OrderInformationLineItems. - Discount applied to the item. - - :return: The discount_amount of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._discount_amount - - @discount_amount.setter - def discount_amount(self, discount_amount): - """ - Sets the discount_amount of this InlineResponse2002OrderInformationLineItems. - Discount applied to the item. - - :param discount_amount: The discount_amount of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if discount_amount is not None and len(discount_amount) > 13: - raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `13`") - - self._discount_amount = discount_amount - - @property - def discount_applied(self): - """ - Gets the discount_applied of this InlineResponse2002OrderInformationLineItems. - Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. - - :return: The discount_applied of this InlineResponse2002OrderInformationLineItems. - :rtype: bool - """ - return self._discount_applied - - @discount_applied.setter - def discount_applied(self, discount_applied): - """ - Sets the discount_applied of this InlineResponse2002OrderInformationLineItems. - Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. - - :param discount_applied: The discount_applied of this InlineResponse2002OrderInformationLineItems. - :type: bool - """ - - self._discount_applied = discount_applied - - @property - def discount_rate(self): - """ - Gets the discount_rate of this InlineResponse2002OrderInformationLineItems. - Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) - - :return: The discount_rate of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._discount_rate - - @discount_rate.setter - def discount_rate(self, discount_rate): - """ - Sets the discount_rate of this InlineResponse2002OrderInformationLineItems. - Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) - - :param discount_rate: The discount_rate of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if discount_rate is not None and len(discount_rate) > 6: - raise ValueError("Invalid value for `discount_rate`, length must be less than or equal to `6`") - - self._discount_rate = discount_rate - - @property - def invoice_number(self): - """ - Gets the invoice_number of this InlineResponse2002OrderInformationLineItems. - Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. - - :return: The invoice_number of this InlineResponse2002OrderInformationLineItems. - :rtype: str - """ - return self._invoice_number - - @invoice_number.setter - def invoice_number(self, invoice_number): - """ - Sets the invoice_number of this InlineResponse2002OrderInformationLineItems. - Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. - - :param invoice_number: The invoice_number of this InlineResponse2002OrderInformationLineItems. - :type: str - """ - if invoice_number is not None and len(invoice_number) > 23: - raise ValueError("Invalid value for `invoice_number`, length must be less than or equal to `23`") - - self._invoice_number = invoice_number - - @property - def tax_details(self): - """ - Gets the tax_details of this InlineResponse2002OrderInformationLineItems. - - :return: The tax_details of this InlineResponse2002OrderInformationLineItems. - :rtype: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - return self._tax_details - - @tax_details.setter - def tax_details(self, tax_details): - """ - Sets the tax_details of this InlineResponse2002OrderInformationLineItems. - - :param tax_details: The tax_details of this InlineResponse2002OrderInformationLineItems. - :type: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - - self._tax_details = tax_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002OrderInformationLineItems): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_order_information_ship_to.py b/CyberSource/models/inline_response_200_2_order_information_ship_to.py deleted file mode 100644 index 13d908e1..00000000 --- a/CyberSource/models/inline_response_200_2_order_information_ship_to.py +++ /dev/null @@ -1,451 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002OrderInformationShipTo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'first_name': 'str', - 'last_name': 'str', - 'company': 'str', - 'address1': 'str', - 'address2': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'postal_code': 'str', - 'county': 'str', - 'country': 'str', - 'email': 'str', - 'phone_number': 'str' - } - - attribute_map = { - 'first_name': 'firstName', - 'last_name': 'lastName', - 'company': 'company', - 'address1': 'address1', - 'address2': 'address2', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'postal_code': 'postalCode', - 'county': 'county', - 'country': 'country', - 'email': 'email', - 'phone_number': 'phoneNumber' - } - - def __init__(self, first_name=None, last_name=None, company=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, county=None, country=None, email=None, phone_number=None): - """ - InlineResponse2002OrderInformationShipTo - a model defined in Swagger - """ - - self._first_name = None - self._last_name = None - self._company = None - self._address1 = None - self._address2 = None - self._locality = None - self._administrative_area = None - self._postal_code = None - self._county = None - self._country = None - self._email = None - self._phone_number = None - - if first_name is not None: - self.first_name = first_name - if last_name is not None: - self.last_name = last_name - if company is not None: - self.company = company - if address1 is not None: - self.address1 = address1 - if address2 is not None: - self.address2 = address2 - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if postal_code is not None: - self.postal_code = postal_code - if county is not None: - self.county = county - if country is not None: - self.country = country - if email is not None: - self.email = email - if phone_number is not None: - self.phone_number = phone_number - - @property - def first_name(self): - """ - Gets the first_name of this InlineResponse2002OrderInformationShipTo. - First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 - - :return: The first_name of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """ - Sets the first_name of this InlineResponse2002OrderInformationShipTo. - First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 - - :param first_name: The first_name of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - if first_name is not None and len(first_name) > 60: - raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") - - self._first_name = first_name - - @property - def last_name(self): - """ - Gets the last_name of this InlineResponse2002OrderInformationShipTo. - Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 - - :return: The last_name of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this InlineResponse2002OrderInformationShipTo. - Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 - - :param last_name: The last_name of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - if last_name is not None and len(last_name) > 60: - raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") - - self._last_name = last_name - - @property - def company(self): - """ - Gets the company of this InlineResponse2002OrderInformationShipTo. - TBD - - :return: The company of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._company - - @company.setter - def company(self, company): - """ - Sets the company of this InlineResponse2002OrderInformationShipTo. - TBD - - :param company: The company of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - - self._company = company - - @property - def address1(self): - """ - Gets the address1 of this InlineResponse2002OrderInformationShipTo. - First line of the shipping address. - - :return: The address1 of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this InlineResponse2002OrderInformationShipTo. - First line of the shipping address. - - :param address1: The address1 of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - if address1 is not None and len(address1) > 60: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") - - self._address1 = address1 - - @property - def address2(self): - """ - Gets the address2 of this InlineResponse2002OrderInformationShipTo. - Second line of the shipping address. - - :return: The address2 of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._address2 - - @address2.setter - def address2(self, address2): - """ - Sets the address2 of this InlineResponse2002OrderInformationShipTo. - Second line of the shipping address. - - :param address2: The address2 of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - if address2 is not None and len(address2) > 60: - raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") - - self._address2 = address2 - - @property - def locality(self): - """ - Gets the locality of this InlineResponse2002OrderInformationShipTo. - City of the shipping address. - - :return: The locality of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this InlineResponse2002OrderInformationShipTo. - City of the shipping address. - - :param locality: The locality of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - if locality is not None and len(locality) > 50: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this InlineResponse2002OrderInformationShipTo. - State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. - - :return: The administrative_area of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this InlineResponse2002OrderInformationShipTo. - State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. - - :param administrative_area: The administrative_area of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 2: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") - - self._administrative_area = administrative_area - - @property - def postal_code(self): - """ - Gets the postal_code of this InlineResponse2002OrderInformationShipTo. - Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 - - :return: The postal_code of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this InlineResponse2002OrderInformationShipTo. - Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 - - :param postal_code: The postal_code of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - if postal_code is not None and len(postal_code) > 10: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") - - self._postal_code = postal_code - - @property - def county(self): - """ - Gets the county of this InlineResponse2002OrderInformationShipTo. - TBD - - :return: The county of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._county - - @county.setter - def county(self, county): - """ - Sets the county of this InlineResponse2002OrderInformationShipTo. - TBD - - :param county: The county of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - - self._county = county - - @property - def country(self): - """ - Gets the country of this InlineResponse2002OrderInformationShipTo. - Country of the shipping address. Use the two character ISO Standard Country Codes. - - :return: The country of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this InlineResponse2002OrderInformationShipTo. - Country of the shipping address. Use the two character ISO Standard Country Codes. - - :param country: The country of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - @property - def email(self): - """ - Gets the email of this InlineResponse2002OrderInformationShipTo. - TBD - - :return: The email of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """ - Sets the email of this InlineResponse2002OrderInformationShipTo. - TBD - - :param email: The email of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - - self._email = email - - @property - def phone_number(self): - """ - Gets the phone_number of this InlineResponse2002OrderInformationShipTo. - Phone number for the shipping address. - - :return: The phone_number of this InlineResponse2002OrderInformationShipTo. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this InlineResponse2002OrderInformationShipTo. - Phone number for the shipping address. - - :param phone_number: The phone_number of this InlineResponse2002OrderInformationShipTo. - :type: str - """ - if phone_number is not None and len(phone_number) > 15: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") - - self._phone_number = phone_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002OrderInformationShipTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_payment_information.py b/CyberSource/models/inline_response_200_2_payment_information.py deleted file mode 100644 index 9ee73aa6..00000000 --- a/CyberSource/models/inline_response_200_2_payment_information.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002PaymentInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'card': 'InlineResponse2002PaymentInformationCard', - 'tokenized_card': 'InlineResponse2002PaymentInformationTokenizedCard' - } - - attribute_map = { - 'card': 'card', - 'tokenized_card': 'tokenizedCard' - } - - def __init__(self, card=None, tokenized_card=None): - """ - InlineResponse2002PaymentInformation - a model defined in Swagger - """ - - self._card = None - self._tokenized_card = None - - if card is not None: - self.card = card - if tokenized_card is not None: - self.tokenized_card = tokenized_card - - @property - def card(self): - """ - Gets the card of this InlineResponse2002PaymentInformation. - - :return: The card of this InlineResponse2002PaymentInformation. - :rtype: InlineResponse2002PaymentInformationCard - """ - return self._card - - @card.setter - def card(self, card): - """ - Sets the card of this InlineResponse2002PaymentInformation. - - :param card: The card of this InlineResponse2002PaymentInformation. - :type: InlineResponse2002PaymentInformationCard - """ - - self._card = card - - @property - def tokenized_card(self): - """ - Gets the tokenized_card of this InlineResponse2002PaymentInformation. - - :return: The tokenized_card of this InlineResponse2002PaymentInformation. - :rtype: InlineResponse2002PaymentInformationTokenizedCard - """ - return self._tokenized_card - - @tokenized_card.setter - def tokenized_card(self, tokenized_card): - """ - Sets the tokenized_card of this InlineResponse2002PaymentInformation. - - :param tokenized_card: The tokenized_card of this InlineResponse2002PaymentInformation. - :type: InlineResponse2002PaymentInformationTokenizedCard - """ - - self._tokenized_card = tokenized_card - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002PaymentInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_payment_information_card.py b/CyberSource/models/inline_response_200_2_payment_information_card.py deleted file mode 100644 index 9eb115a1..00000000 --- a/CyberSource/models/inline_response_200_2_payment_information_card.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002PaymentInformationCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'suffix': 'str', - 'expiration_month': 'str', - 'expiration_year': 'str', - 'type': 'str' - } - - attribute_map = { - 'suffix': 'suffix', - 'expiration_month': 'expirationMonth', - 'expiration_year': 'expirationYear', - 'type': 'type' - } - - def __init__(self, suffix=None, expiration_month=None, expiration_year=None, type=None): - """ - InlineResponse2002PaymentInformationCard - a model defined in Swagger - """ - - self._suffix = None - self._expiration_month = None - self._expiration_year = None - self._type = None - - if suffix is not None: - self.suffix = suffix - if expiration_month is not None: - self.expiration_month = expiration_month - if expiration_year is not None: - self.expiration_year = expiration_year - if type is not None: - self.type = type - - @property - def suffix(self): - """ - Gets the suffix of this InlineResponse2002PaymentInformationCard. - Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. - - :return: The suffix of this InlineResponse2002PaymentInformationCard. - :rtype: str - """ - return self._suffix - - @suffix.setter - def suffix(self, suffix): - """ - Sets the suffix of this InlineResponse2002PaymentInformationCard. - Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. - - :param suffix: The suffix of this InlineResponse2002PaymentInformationCard. - :type: str - """ - if suffix is not None and len(suffix) > 4: - raise ValueError("Invalid value for `suffix`, length must be less than or equal to `4`") - - self._suffix = suffix - - @property - def expiration_month(self): - """ - Gets the expiration_month of this InlineResponse2002PaymentInformationCard. - Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The expiration_month of this InlineResponse2002PaymentInformationCard. - :rtype: str - """ - return self._expiration_month - - @expiration_month.setter - def expiration_month(self, expiration_month): - """ - Sets the expiration_month of this InlineResponse2002PaymentInformationCard. - Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param expiration_month: The expiration_month of this InlineResponse2002PaymentInformationCard. - :type: str - """ - if expiration_month is not None and len(expiration_month) > 2: - raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") - - self._expiration_month = expiration_month - - @property - def expiration_year(self): - """ - Gets the expiration_year of this InlineResponse2002PaymentInformationCard. - Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The expiration_year of this InlineResponse2002PaymentInformationCard. - :rtype: str - """ - return self._expiration_year - - @expiration_year.setter - def expiration_year(self, expiration_year): - """ - Sets the expiration_year of this InlineResponse2002PaymentInformationCard. - Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param expiration_year: The expiration_year of this InlineResponse2002PaymentInformationCard. - :type: str - """ - if expiration_year is not None and len(expiration_year) > 4: - raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") - - self._expiration_year = expiration_year - - @property - def type(self): - """ - Gets the type of this InlineResponse2002PaymentInformationCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :return: The type of this InlineResponse2002PaymentInformationCard. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this InlineResponse2002PaymentInformationCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :param type: The type of this InlineResponse2002PaymentInformationCard. - :type: str - """ - if type is not None and len(type) > 3: - raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002PaymentInformationCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_payment_information_tokenized_card.py b/CyberSource/models/inline_response_200_2_payment_information_tokenized_card.py deleted file mode 100644 index ba99fdeb..00000000 --- a/CyberSource/models/inline_response_200_2_payment_information_tokenized_card.py +++ /dev/null @@ -1,247 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002PaymentInformationTokenizedCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'prefix': 'str', - 'suffix': 'str', - 'type': 'str', - 'expiration_month': 'str', - 'expiration_year': 'str' - } - - attribute_map = { - 'prefix': 'prefix', - 'suffix': 'suffix', - 'type': 'type', - 'expiration_month': 'expirationMonth', - 'expiration_year': 'expirationYear' - } - - def __init__(self, prefix=None, suffix=None, type=None, expiration_month=None, expiration_year=None): - """ - InlineResponse2002PaymentInformationTokenizedCard - a model defined in Swagger - """ - - self._prefix = None - self._suffix = None - self._type = None - self._expiration_month = None - self._expiration_year = None - - if prefix is not None: - self.prefix = prefix - if suffix is not None: - self.suffix = suffix - if type is not None: - self.type = type - if expiration_month is not None: - self.expiration_month = expiration_month - if expiration_year is not None: - self.expiration_year = expiration_year - - @property - def prefix(self): - """ - Gets the prefix of this InlineResponse2002PaymentInformationTokenizedCard. - First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. - - :return: The prefix of this InlineResponse2002PaymentInformationTokenizedCard. - :rtype: str - """ - return self._prefix - - @prefix.setter - def prefix(self, prefix): - """ - Sets the prefix of this InlineResponse2002PaymentInformationTokenizedCard. - First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. - - :param prefix: The prefix of this InlineResponse2002PaymentInformationTokenizedCard. - :type: str - """ - if prefix is not None and len(prefix) > 6: - raise ValueError("Invalid value for `prefix`, length must be less than or equal to `6`") - - self._prefix = prefix - - @property - def suffix(self): - """ - Gets the suffix of this InlineResponse2002PaymentInformationTokenizedCard. - Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. - - :return: The suffix of this InlineResponse2002PaymentInformationTokenizedCard. - :rtype: str - """ - return self._suffix - - @suffix.setter - def suffix(self, suffix): - """ - Sets the suffix of this InlineResponse2002PaymentInformationTokenizedCard. - Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. - - :param suffix: The suffix of this InlineResponse2002PaymentInformationTokenizedCard. - :type: str - """ - if suffix is not None and len(suffix) > 4: - raise ValueError("Invalid value for `suffix`, length must be less than or equal to `4`") - - self._suffix = suffix - - @property - def type(self): - """ - Gets the type of this InlineResponse2002PaymentInformationTokenizedCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :return: The type of this InlineResponse2002PaymentInformationTokenizedCard. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this InlineResponse2002PaymentInformationTokenizedCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :param type: The type of this InlineResponse2002PaymentInformationTokenizedCard. - :type: str - """ - if type is not None and len(type) > 3: - raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") - - self._type = type - - @property - def expiration_month(self): - """ - Gets the expiration_month of this InlineResponse2002PaymentInformationTokenizedCard. - Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. - - :return: The expiration_month of this InlineResponse2002PaymentInformationTokenizedCard. - :rtype: str - """ - return self._expiration_month - - @expiration_month.setter - def expiration_month(self, expiration_month): - """ - Sets the expiration_month of this InlineResponse2002PaymentInformationTokenizedCard. - Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. - - :param expiration_month: The expiration_month of this InlineResponse2002PaymentInformationTokenizedCard. - :type: str - """ - if expiration_month is not None and len(expiration_month) > 2: - raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") - - self._expiration_month = expiration_month - - @property - def expiration_year(self): - """ - Gets the expiration_year of this InlineResponse2002PaymentInformationTokenizedCard. - Four-digit year in which the payment network token expires. `Format: YYYY`. - - :return: The expiration_year of this InlineResponse2002PaymentInformationTokenizedCard. - :rtype: str - """ - return self._expiration_year - - @expiration_year.setter - def expiration_year(self, expiration_year): - """ - Sets the expiration_year of this InlineResponse2002PaymentInformationTokenizedCard. - Four-digit year in which the payment network token expires. `Format: YYYY`. - - :param expiration_year: The expiration_year of this InlineResponse2002PaymentInformationTokenizedCard. - :type: str - """ - if expiration_year is not None and len(expiration_year) > 4: - raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") - - self._expiration_year = expiration_year - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002PaymentInformationTokenizedCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_processing_information.py b/CyberSource/models/inline_response_200_2_processing_information.py deleted file mode 100644 index 27371929..00000000 --- a/CyberSource/models/inline_response_200_2_processing_information.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002ProcessingInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'payment_solution': 'str' - } - - attribute_map = { - 'payment_solution': 'paymentSolution' - } - - def __init__(self, payment_solution=None): - """ - InlineResponse2002ProcessingInformation - a model defined in Swagger - """ - - self._payment_solution = None - - if payment_solution is not None: - self.payment_solution = payment_solution - - @property - def payment_solution(self): - """ - Gets the payment_solution of this InlineResponse2002ProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :return: The payment_solution of this InlineResponse2002ProcessingInformation. - :rtype: str - """ - return self._payment_solution - - @payment_solution.setter - def payment_solution(self, payment_solution): - """ - Sets the payment_solution of this InlineResponse2002ProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :param payment_solution: The payment_solution of this InlineResponse2002ProcessingInformation. - :type: str - """ - if payment_solution is not None and len(payment_solution) > 12: - raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") - - self._payment_solution = payment_solution - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002ProcessingInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_processor_information.py b/CyberSource/models/inline_response_200_2_processor_information.py deleted file mode 100644 index 12c3b96f..00000000 --- a/CyberSource/models/inline_response_200_2_processor_information.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002ProcessorInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'approval_code': 'str', - 'card_verification': 'InlineResponse2002ProcessorInformationCardVerification', - 'avs': 'InlineResponse2002ProcessorInformationAvs', - 'transaction_id': 'str' - } - - attribute_map = { - 'approval_code': 'approvalCode', - 'card_verification': 'cardVerification', - 'avs': 'avs', - 'transaction_id': 'transactionId' - } - - def __init__(self, approval_code=None, card_verification=None, avs=None, transaction_id=None): - """ - InlineResponse2002ProcessorInformation - a model defined in Swagger - """ - - self._approval_code = None - self._card_verification = None - self._avs = None - self._transaction_id = None - - if approval_code is not None: - self.approval_code = approval_code - if card_verification is not None: - self.card_verification = card_verification - if avs is not None: - self.avs = avs - if transaction_id is not None: - self.transaction_id = transaction_id - - @property - def approval_code(self): - """ - Gets the approval_code of this InlineResponse2002ProcessorInformation. - Authorization code. Returned only when the processor returns this value. - - :return: The approval_code of this InlineResponse2002ProcessorInformation. - :rtype: str - """ - return self._approval_code - - @approval_code.setter - def approval_code(self, approval_code): - """ - Sets the approval_code of this InlineResponse2002ProcessorInformation. - Authorization code. Returned only when the processor returns this value. - - :param approval_code: The approval_code of this InlineResponse2002ProcessorInformation. - :type: str - """ - - self._approval_code = approval_code - - @property - def card_verification(self): - """ - Gets the card_verification of this InlineResponse2002ProcessorInformation. - - :return: The card_verification of this InlineResponse2002ProcessorInformation. - :rtype: InlineResponse2002ProcessorInformationCardVerification - """ - return self._card_verification - - @card_verification.setter - def card_verification(self, card_verification): - """ - Sets the card_verification of this InlineResponse2002ProcessorInformation. - - :param card_verification: The card_verification of this InlineResponse2002ProcessorInformation. - :type: InlineResponse2002ProcessorInformationCardVerification - """ - - self._card_verification = card_verification - - @property - def avs(self): - """ - Gets the avs of this InlineResponse2002ProcessorInformation. - - :return: The avs of this InlineResponse2002ProcessorInformation. - :rtype: InlineResponse2002ProcessorInformationAvs - """ - return self._avs - - @avs.setter - def avs(self, avs): - """ - Sets the avs of this InlineResponse2002ProcessorInformation. - - :param avs: The avs of this InlineResponse2002ProcessorInformation. - :type: InlineResponse2002ProcessorInformationAvs - """ - - self._avs = avs - - @property - def transaction_id(self): - """ - Gets the transaction_id of this InlineResponse2002ProcessorInformation. - Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. - - :return: The transaction_id of this InlineResponse2002ProcessorInformation. - :rtype: str - """ - return self._transaction_id - - @transaction_id.setter - def transaction_id(self, transaction_id): - """ - Sets the transaction_id of this InlineResponse2002ProcessorInformation. - Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. - - :param transaction_id: The transaction_id of this InlineResponse2002ProcessorInformation. - :type: str - """ - if transaction_id is not None and len(transaction_id) > 50: - raise ValueError("Invalid value for `transaction_id`, length must be less than or equal to `50`") - - self._transaction_id = transaction_id - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002ProcessorInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_processor_information_avs.py b/CyberSource/models/inline_response_200_2_processor_information_avs.py deleted file mode 100644 index cbac5dd9..00000000 --- a/CyberSource/models/inline_response_200_2_processor_information_avs.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002ProcessorInformationAvs(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'code': 'str' - } - - attribute_map = { - 'code': 'code' - } - - def __init__(self, code=None): - """ - InlineResponse2002ProcessorInformationAvs - a model defined in Swagger - """ - - self._code = None - - if code is not None: - self.code = code - - @property - def code(self): - """ - Gets the code of this InlineResponse2002ProcessorInformationAvs. - AVS result code. - - :return: The code of this InlineResponse2002ProcessorInformationAvs. - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this InlineResponse2002ProcessorInformationAvs. - AVS result code. - - :param code: The code of this InlineResponse2002ProcessorInformationAvs. - :type: str - """ - if code is not None and len(code) > 1: - raise ValueError("Invalid value for `code`, length must be less than or equal to `1`") - - self._code = code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002ProcessorInformationAvs): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_2_processor_information_card_verification.py b/CyberSource/models/inline_response_200_2_processor_information_card_verification.py deleted file mode 100644 index ba24de98..00000000 --- a/CyberSource/models/inline_response_200_2_processor_information_card_verification.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2002ProcessorInformationCardVerification(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'result_code': 'str' - } - - attribute_map = { - 'result_code': 'resultCode' - } - - def __init__(self, result_code=None): - """ - InlineResponse2002ProcessorInformationCardVerification - a model defined in Swagger - """ - - self._result_code = None - - if result_code is not None: - self.result_code = result_code - - @property - def result_code(self): - """ - Gets the result_code of this InlineResponse2002ProcessorInformationCardVerification. - CVN result code. - - :return: The result_code of this InlineResponse2002ProcessorInformationCardVerification. - :rtype: str - """ - return self._result_code - - @result_code.setter - def result_code(self, result_code): - """ - Sets the result_code of this InlineResponse2002ProcessorInformationCardVerification. - CVN result code. - - :param result_code: The result_code of this InlineResponse2002ProcessorInformationCardVerification. - :type: str - """ - if result_code is not None and len(result_code) > 1: - raise ValueError("Invalid value for `result_code`, length must be less than or equal to `1`") - - self._result_code = result_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2002ProcessorInformationCardVerification): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_3.py b/CyberSource/models/inline_response_200_3.py deleted file mode 100644 index 5dfae2c9..00000000 --- a/CyberSource/models/inline_response_200_3.py +++ /dev/null @@ -1,323 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2003(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse201EmbeddedCaptureLinks', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'reconciliation_id': 'str', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'processor_information': 'InlineResponse2011ProcessorInformation', - 'reversal_amount_details': 'InlineResponse2011ReversalAmountDetails' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reconciliation_id': 'reconciliationId', - 'client_reference_information': 'clientReferenceInformation', - 'processor_information': 'processorInformation', - 'reversal_amount_details': 'reversalAmountDetails' - } - - def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, processor_information=None, reversal_amount_details=None): - """ - InlineResponse2003 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._submit_time_utc = None - self._status = None - self._reconciliation_id = None - self._client_reference_information = None - self._processor_information = None - self._reversal_amount_details = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if processor_information is not None: - self.processor_information = processor_information - if reversal_amount_details is not None: - self.reversal_amount_details = reversal_amount_details - - @property - def links(self): - """ - Gets the links of this InlineResponse2003. - - :return: The links of this InlineResponse2003. - :rtype: InlineResponse201EmbeddedCaptureLinks - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2003. - - :param links: The links of this InlineResponse2003. - :type: InlineResponse201EmbeddedCaptureLinks - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2003. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse2003. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2003. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse2003. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse2003. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse2003. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse2003. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse2003. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse2003. - The status of the submitted transaction. - - :return: The status of this InlineResponse2003. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse2003. - The status of the submitted transaction. - - :param status: The status of this InlineResponse2003. - :type: str - """ - allowed_values = ["REVERSED"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this InlineResponse2003. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :return: The reconciliation_id of this InlineResponse2003. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this InlineResponse2003. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :param reconciliation_id: The reconciliation_id of this InlineResponse2003. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse2003. - - :return: The client_reference_information of this InlineResponse2003. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse2003. - - :param client_reference_information: The client_reference_information of this InlineResponse2003. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def processor_information(self): - """ - Gets the processor_information of this InlineResponse2003. - - :return: The processor_information of this InlineResponse2003. - :rtype: InlineResponse2011ProcessorInformation - """ - return self._processor_information - - @processor_information.setter - def processor_information(self, processor_information): - """ - Sets the processor_information of this InlineResponse2003. - - :param processor_information: The processor_information of this InlineResponse2003. - :type: InlineResponse2011ProcessorInformation - """ - - self._processor_information = processor_information - - @property - def reversal_amount_details(self): - """ - Gets the reversal_amount_details of this InlineResponse2003. - - :return: The reversal_amount_details of this InlineResponse2003. - :rtype: InlineResponse2011ReversalAmountDetails - """ - return self._reversal_amount_details - - @reversal_amount_details.setter - def reversal_amount_details(self, reversal_amount_details): - """ - Sets the reversal_amount_details of this InlineResponse2003. - - :param reversal_amount_details: The reversal_amount_details of this InlineResponse2003. - :type: InlineResponse2011ReversalAmountDetails - """ - - self._reversal_amount_details = reversal_amount_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2003): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_4.py b/CyberSource/models/inline_response_200_4.py deleted file mode 100644 index 2d620fac..00000000 --- a/CyberSource/models/inline_response_200_4.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2004(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse2012Links', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'reconciliation_id': 'str', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'processing_information': 'InlineResponse2004ProcessingInformation', - 'processor_information': 'InlineResponse2012ProcessorInformation', - 'order_information': 'InlineResponse2004OrderInformation', - 'buyer_information': 'V2paymentsidcapturesBuyerInformation', - 'merchant_information': 'InlineResponse2002MerchantInformation', - 'device_information': 'InlineResponse2004DeviceInformation' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reconciliation_id': 'reconciliationId', - 'client_reference_information': 'clientReferenceInformation', - 'processing_information': 'processingInformation', - 'processor_information': 'processorInformation', - 'order_information': 'orderInformation', - 'buyer_information': 'buyerInformation', - 'merchant_information': 'merchantInformation', - 'device_information': 'deviceInformation' - } - - def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, processing_information=None, processor_information=None, order_information=None, buyer_information=None, merchant_information=None, device_information=None): - """ - InlineResponse2004 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._submit_time_utc = None - self._status = None - self._reconciliation_id = None - self._client_reference_information = None - self._processing_information = None - self._processor_information = None - self._order_information = None - self._buyer_information = None - self._merchant_information = None - self._device_information = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if processing_information is not None: - self.processing_information = processing_information - if processor_information is not None: - self.processor_information = processor_information - if order_information is not None: - self.order_information = order_information - if buyer_information is not None: - self.buyer_information = buyer_information - if merchant_information is not None: - self.merchant_information = merchant_information - if device_information is not None: - self.device_information = device_information - - @property - def links(self): - """ - Gets the links of this InlineResponse2004. - - :return: The links of this InlineResponse2004. - :rtype: InlineResponse2012Links - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2004. - - :param links: The links of this InlineResponse2004. - :type: InlineResponse2012Links - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2004. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse2004. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2004. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse2004. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse2004. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse2004. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse2004. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse2004. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse2004. - The status of the submitted transaction. - - :return: The status of this InlineResponse2004. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse2004. - The status of the submitted transaction. - - :param status: The status of this InlineResponse2004. - :type: str - """ - allowed_values = ["PENDING", "TRANSMITTED", "BATCH_ERROR", "VOIDED"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this InlineResponse2004. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :return: The reconciliation_id of this InlineResponse2004. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this InlineResponse2004. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :param reconciliation_id: The reconciliation_id of this InlineResponse2004. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse2004. - - :return: The client_reference_information of this InlineResponse2004. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse2004. - - :param client_reference_information: The client_reference_information of this InlineResponse2004. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def processing_information(self): - """ - Gets the processing_information of this InlineResponse2004. - - :return: The processing_information of this InlineResponse2004. - :rtype: InlineResponse2004ProcessingInformation - """ - return self._processing_information - - @processing_information.setter - def processing_information(self, processing_information): - """ - Sets the processing_information of this InlineResponse2004. - - :param processing_information: The processing_information of this InlineResponse2004. - :type: InlineResponse2004ProcessingInformation - """ - - self._processing_information = processing_information - - @property - def processor_information(self): - """ - Gets the processor_information of this InlineResponse2004. - - :return: The processor_information of this InlineResponse2004. - :rtype: InlineResponse2012ProcessorInformation - """ - return self._processor_information - - @processor_information.setter - def processor_information(self, processor_information): - """ - Sets the processor_information of this InlineResponse2004. - - :param processor_information: The processor_information of this InlineResponse2004. - :type: InlineResponse2012ProcessorInformation - """ - - self._processor_information = processor_information - - @property - def order_information(self): - """ - Gets the order_information of this InlineResponse2004. - - :return: The order_information of this InlineResponse2004. - :rtype: InlineResponse2004OrderInformation - """ - return self._order_information - - @order_information.setter - def order_information(self, order_information): - """ - Sets the order_information of this InlineResponse2004. - - :param order_information: The order_information of this InlineResponse2004. - :type: InlineResponse2004OrderInformation - """ - - self._order_information = order_information - - @property - def buyer_information(self): - """ - Gets the buyer_information of this InlineResponse2004. - - :return: The buyer_information of this InlineResponse2004. - :rtype: V2paymentsidcapturesBuyerInformation - """ - return self._buyer_information - - @buyer_information.setter - def buyer_information(self, buyer_information): - """ - Sets the buyer_information of this InlineResponse2004. - - :param buyer_information: The buyer_information of this InlineResponse2004. - :type: V2paymentsidcapturesBuyerInformation - """ - - self._buyer_information = buyer_information - - @property - def merchant_information(self): - """ - Gets the merchant_information of this InlineResponse2004. - - :return: The merchant_information of this InlineResponse2004. - :rtype: InlineResponse2002MerchantInformation - """ - return self._merchant_information - - @merchant_information.setter - def merchant_information(self, merchant_information): - """ - Sets the merchant_information of this InlineResponse2004. - - :param merchant_information: The merchant_information of this InlineResponse2004. - :type: InlineResponse2002MerchantInformation - """ - - self._merchant_information = merchant_information - - @property - def device_information(self): - """ - Gets the device_information of this InlineResponse2004. - - :return: The device_information of this InlineResponse2004. - :rtype: InlineResponse2004DeviceInformation - """ - return self._device_information - - @device_information.setter - def device_information(self, device_information): - """ - Sets the device_information of this InlineResponse2004. - - :param device_information: The device_information of this InlineResponse2004. - :type: InlineResponse2004DeviceInformation - """ - - self._device_information = device_information - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2004): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_4_device_information.py b/CyberSource/models/inline_response_200_4_device_information.py deleted file mode 100644 index 0d2400fc..00000000 --- a/CyberSource/models/inline_response_200_4_device_information.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2004DeviceInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'ip_address': 'str' - } - - attribute_map = { - 'ip_address': 'ipAddress' - } - - def __init__(self, ip_address=None): - """ - InlineResponse2004DeviceInformation - a model defined in Swagger - """ - - self._ip_address = None - - if ip_address is not None: - self.ip_address = ip_address - - @property - def ip_address(self): - """ - Gets the ip_address of this InlineResponse2004DeviceInformation. - IP address of the customer. - - :return: The ip_address of this InlineResponse2004DeviceInformation. - :rtype: str - """ - return self._ip_address - - @ip_address.setter - def ip_address(self, ip_address): - """ - Sets the ip_address of this InlineResponse2004DeviceInformation. - IP address of the customer. - - :param ip_address: The ip_address of this InlineResponse2004DeviceInformation. - :type: str - """ - if ip_address is not None and len(ip_address) > 15: - raise ValueError("Invalid value for `ip_address`, length must be less than or equal to `15`") - - self._ip_address = ip_address - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2004DeviceInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_4_order_information.py b/CyberSource/models/inline_response_200_4_order_information.py deleted file mode 100644 index dbe7f5ce..00000000 --- a/CyberSource/models/inline_response_200_4_order_information.py +++ /dev/null @@ -1,253 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2004OrderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'amount_details': 'InlineResponse2004OrderInformationAmountDetails', - 'bill_to': 'InlineResponse2002OrderInformationBillTo', - 'ship_to': 'InlineResponse2004OrderInformationShipTo', - 'line_items': 'list[InlineResponse2002OrderInformationLineItems]', - 'invoice_details': 'InlineResponse2004OrderInformationInvoiceDetails', - 'shipping_details': 'V2paymentsidcapturesOrderInformationShippingDetails' - } - - attribute_map = { - 'amount_details': 'amountDetails', - 'bill_to': 'billTo', - 'ship_to': 'shipTo', - 'line_items': 'lineItems', - 'invoice_details': 'invoiceDetails', - 'shipping_details': 'shippingDetails' - } - - def __init__(self, amount_details=None, bill_to=None, ship_to=None, line_items=None, invoice_details=None, shipping_details=None): - """ - InlineResponse2004OrderInformation - a model defined in Swagger - """ - - self._amount_details = None - self._bill_to = None - self._ship_to = None - self._line_items = None - self._invoice_details = None - self._shipping_details = None - - if amount_details is not None: - self.amount_details = amount_details - if bill_to is not None: - self.bill_to = bill_to - if ship_to is not None: - self.ship_to = ship_to - if line_items is not None: - self.line_items = line_items - if invoice_details is not None: - self.invoice_details = invoice_details - if shipping_details is not None: - self.shipping_details = shipping_details - - @property - def amount_details(self): - """ - Gets the amount_details of this InlineResponse2004OrderInformation. - - :return: The amount_details of this InlineResponse2004OrderInformation. - :rtype: InlineResponse2004OrderInformationAmountDetails - """ - return self._amount_details - - @amount_details.setter - def amount_details(self, amount_details): - """ - Sets the amount_details of this InlineResponse2004OrderInformation. - - :param amount_details: The amount_details of this InlineResponse2004OrderInformation. - :type: InlineResponse2004OrderInformationAmountDetails - """ - - self._amount_details = amount_details - - @property - def bill_to(self): - """ - Gets the bill_to of this InlineResponse2004OrderInformation. - - :return: The bill_to of this InlineResponse2004OrderInformation. - :rtype: InlineResponse2002OrderInformationBillTo - """ - return self._bill_to - - @bill_to.setter - def bill_to(self, bill_to): - """ - Sets the bill_to of this InlineResponse2004OrderInformation. - - :param bill_to: The bill_to of this InlineResponse2004OrderInformation. - :type: InlineResponse2002OrderInformationBillTo - """ - - self._bill_to = bill_to - - @property - def ship_to(self): - """ - Gets the ship_to of this InlineResponse2004OrderInformation. - - :return: The ship_to of this InlineResponse2004OrderInformation. - :rtype: InlineResponse2004OrderInformationShipTo - """ - return self._ship_to - - @ship_to.setter - def ship_to(self, ship_to): - """ - Sets the ship_to of this InlineResponse2004OrderInformation. - - :param ship_to: The ship_to of this InlineResponse2004OrderInformation. - :type: InlineResponse2004OrderInformationShipTo - """ - - self._ship_to = ship_to - - @property - def line_items(self): - """ - Gets the line_items of this InlineResponse2004OrderInformation. - - :return: The line_items of this InlineResponse2004OrderInformation. - :rtype: list[InlineResponse2002OrderInformationLineItems] - """ - return self._line_items - - @line_items.setter - def line_items(self, line_items): - """ - Sets the line_items of this InlineResponse2004OrderInformation. - - :param line_items: The line_items of this InlineResponse2004OrderInformation. - :type: list[InlineResponse2002OrderInformationLineItems] - """ - - self._line_items = line_items - - @property - def invoice_details(self): - """ - Gets the invoice_details of this InlineResponse2004OrderInformation. - - :return: The invoice_details of this InlineResponse2004OrderInformation. - :rtype: InlineResponse2004OrderInformationInvoiceDetails - """ - return self._invoice_details - - @invoice_details.setter - def invoice_details(self, invoice_details): - """ - Sets the invoice_details of this InlineResponse2004OrderInformation. - - :param invoice_details: The invoice_details of this InlineResponse2004OrderInformation. - :type: InlineResponse2004OrderInformationInvoiceDetails - """ - - self._invoice_details = invoice_details - - @property - def shipping_details(self): - """ - Gets the shipping_details of this InlineResponse2004OrderInformation. - - :return: The shipping_details of this InlineResponse2004OrderInformation. - :rtype: V2paymentsidcapturesOrderInformationShippingDetails - """ - return self._shipping_details - - @shipping_details.setter - def shipping_details(self, shipping_details): - """ - Sets the shipping_details of this InlineResponse2004OrderInformation. - - :param shipping_details: The shipping_details of this InlineResponse2004OrderInformation. - :type: V2paymentsidcapturesOrderInformationShippingDetails - """ - - self._shipping_details = shipping_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2004OrderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_4_order_information_amount_details.py b/CyberSource/models/inline_response_200_4_order_information_amount_details.py deleted file mode 100644 index c86a07da..00000000 --- a/CyberSource/models/inline_response_200_4_order_information_amount_details.py +++ /dev/null @@ -1,333 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2004OrderInformationAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'total_amount': 'str', - 'currency': 'str', - 'discount_amount': 'str', - 'duty_amount': 'str', - 'tax_amount': 'str', - 'national_tax_included': 'str', - 'freight_amount': 'str', - 'tax_details': 'list[V2paymentsOrderInformationAmountDetailsTaxDetails]' - } - - attribute_map = { - 'total_amount': 'totalAmount', - 'currency': 'currency', - 'discount_amount': 'discountAmount', - 'duty_amount': 'dutyAmount', - 'tax_amount': 'taxAmount', - 'national_tax_included': 'nationalTaxIncluded', - 'freight_amount': 'freightAmount', - 'tax_details': 'taxDetails' - } - - def __init__(self, total_amount=None, currency=None, discount_amount=None, duty_amount=None, tax_amount=None, national_tax_included=None, freight_amount=None, tax_details=None): - """ - InlineResponse2004OrderInformationAmountDetails - a model defined in Swagger - """ - - self._total_amount = None - self._currency = None - self._discount_amount = None - self._duty_amount = None - self._tax_amount = None - self._national_tax_included = None - self._freight_amount = None - self._tax_details = None - - if total_amount is not None: - self.total_amount = total_amount - if currency is not None: - self.currency = currency - if discount_amount is not None: - self.discount_amount = discount_amount - if duty_amount is not None: - self.duty_amount = duty_amount - if tax_amount is not None: - self.tax_amount = tax_amount - if national_tax_included is not None: - self.national_tax_included = national_tax_included - if freight_amount is not None: - self.freight_amount = freight_amount - if tax_details is not None: - self.tax_details = tax_details - - @property - def total_amount(self): - """ - Gets the total_amount of this InlineResponse2004OrderInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The total_amount of this InlineResponse2004OrderInformationAmountDetails. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this InlineResponse2004OrderInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param total_amount: The total_amount of this InlineResponse2004OrderInformationAmountDetails. - :type: str - """ - if total_amount is not None and len(total_amount) > 19: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") - - self._total_amount = total_amount - - @property - def currency(self): - """ - Gets the currency of this InlineResponse2004OrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this InlineResponse2004OrderInformationAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this InlineResponse2004OrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this InlineResponse2004OrderInformationAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - @property - def discount_amount(self): - """ - Gets the discount_amount of this InlineResponse2004OrderInformationAmountDetails. - Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The discount_amount of this InlineResponse2004OrderInformationAmountDetails. - :rtype: str - """ - return self._discount_amount - - @discount_amount.setter - def discount_amount(self, discount_amount): - """ - Sets the discount_amount of this InlineResponse2004OrderInformationAmountDetails. - Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param discount_amount: The discount_amount of this InlineResponse2004OrderInformationAmountDetails. - :type: str - """ - if discount_amount is not None and len(discount_amount) > 15: - raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `15`") - - self._discount_amount = discount_amount - - @property - def duty_amount(self): - """ - Gets the duty_amount of this InlineResponse2004OrderInformationAmountDetails. - Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The duty_amount of this InlineResponse2004OrderInformationAmountDetails. - :rtype: str - """ - return self._duty_amount - - @duty_amount.setter - def duty_amount(self, duty_amount): - """ - Sets the duty_amount of this InlineResponse2004OrderInformationAmountDetails. - Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param duty_amount: The duty_amount of this InlineResponse2004OrderInformationAmountDetails. - :type: str - """ - if duty_amount is not None and len(duty_amount) > 15: - raise ValueError("Invalid value for `duty_amount`, length must be less than or equal to `15`") - - self._duty_amount = duty_amount - - @property - def tax_amount(self): - """ - Gets the tax_amount of this InlineResponse2004OrderInformationAmountDetails. - Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The tax_amount of this InlineResponse2004OrderInformationAmountDetails. - :rtype: str - """ - return self._tax_amount - - @tax_amount.setter - def tax_amount(self, tax_amount): - """ - Sets the tax_amount of this InlineResponse2004OrderInformationAmountDetails. - Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param tax_amount: The tax_amount of this InlineResponse2004OrderInformationAmountDetails. - :type: str - """ - if tax_amount is not None and len(tax_amount) > 12: - raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `12`") - - self._tax_amount = tax_amount - - @property - def national_tax_included(self): - """ - Gets the national_tax_included of this InlineResponse2004OrderInformationAmountDetails. - Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The national_tax_included of this InlineResponse2004OrderInformationAmountDetails. - :rtype: str - """ - return self._national_tax_included - - @national_tax_included.setter - def national_tax_included(self, national_tax_included): - """ - Sets the national_tax_included of this InlineResponse2004OrderInformationAmountDetails. - Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param national_tax_included: The national_tax_included of this InlineResponse2004OrderInformationAmountDetails. - :type: str - """ - if national_tax_included is not None and len(national_tax_included) > 1: - raise ValueError("Invalid value for `national_tax_included`, length must be less than or equal to `1`") - - self._national_tax_included = national_tax_included - - @property - def freight_amount(self): - """ - Gets the freight_amount of this InlineResponse2004OrderInformationAmountDetails. - Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The freight_amount of this InlineResponse2004OrderInformationAmountDetails. - :rtype: str - """ - return self._freight_amount - - @freight_amount.setter - def freight_amount(self, freight_amount): - """ - Sets the freight_amount of this InlineResponse2004OrderInformationAmountDetails. - Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param freight_amount: The freight_amount of this InlineResponse2004OrderInformationAmountDetails. - :type: str - """ - if freight_amount is not None and len(freight_amount) > 13: - raise ValueError("Invalid value for `freight_amount`, length must be less than or equal to `13`") - - self._freight_amount = freight_amount - - @property - def tax_details(self): - """ - Gets the tax_details of this InlineResponse2004OrderInformationAmountDetails. - - :return: The tax_details of this InlineResponse2004OrderInformationAmountDetails. - :rtype: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - return self._tax_details - - @tax_details.setter - def tax_details(self, tax_details): - """ - Sets the tax_details of this InlineResponse2004OrderInformationAmountDetails. - - :param tax_details: The tax_details of this InlineResponse2004OrderInformationAmountDetails. - :type: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - - self._tax_details = tax_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2004OrderInformationAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_4_order_information_invoice_details.py b/CyberSource/models/inline_response_200_4_order_information_invoice_details.py deleted file mode 100644 index ee961961..00000000 --- a/CyberSource/models/inline_response_200_4_order_information_invoice_details.py +++ /dev/null @@ -1,299 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2004OrderInformationInvoiceDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'purchase_order_number': 'str', - 'purchase_order_date': 'str', - 'taxable': 'bool', - 'vat_invoice_reference_number': 'str', - 'commodity_code': 'str', - 'transaction_advice_addendum': 'list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]', - 'level3_transmission_status': 'bool' - } - - attribute_map = { - 'purchase_order_number': 'purchaseOrderNumber', - 'purchase_order_date': 'purchaseOrderDate', - 'taxable': 'taxable', - 'vat_invoice_reference_number': 'vatInvoiceReferenceNumber', - 'commodity_code': 'commodityCode', - 'transaction_advice_addendum': 'transactionAdviceAddendum', - 'level3_transmission_status': 'level3TransmissionStatus' - } - - def __init__(self, purchase_order_number=None, purchase_order_date=None, taxable=None, vat_invoice_reference_number=None, commodity_code=None, transaction_advice_addendum=None, level3_transmission_status=None): - """ - InlineResponse2004OrderInformationInvoiceDetails - a model defined in Swagger - """ - - self._purchase_order_number = None - self._purchase_order_date = None - self._taxable = None - self._vat_invoice_reference_number = None - self._commodity_code = None - self._transaction_advice_addendum = None - self._level3_transmission_status = None - - if purchase_order_number is not None: - self.purchase_order_number = purchase_order_number - if purchase_order_date is not None: - self.purchase_order_date = purchase_order_date - if taxable is not None: - self.taxable = taxable - if vat_invoice_reference_number is not None: - self.vat_invoice_reference_number = vat_invoice_reference_number - if commodity_code is not None: - self.commodity_code = commodity_code - if transaction_advice_addendum is not None: - self.transaction_advice_addendum = transaction_advice_addendum - if level3_transmission_status is not None: - self.level3_transmission_status = level3_transmission_status - - @property - def purchase_order_number(self): - """ - Gets the purchase_order_number of this InlineResponse2004OrderInformationInvoiceDetails. - Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The purchase_order_number of this InlineResponse2004OrderInformationInvoiceDetails. - :rtype: str - """ - return self._purchase_order_number - - @purchase_order_number.setter - def purchase_order_number(self, purchase_order_number): - """ - Sets the purchase_order_number of this InlineResponse2004OrderInformationInvoiceDetails. - Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param purchase_order_number: The purchase_order_number of this InlineResponse2004OrderInformationInvoiceDetails. - :type: str - """ - if purchase_order_number is not None and len(purchase_order_number) > 25: - raise ValueError("Invalid value for `purchase_order_number`, length must be less than or equal to `25`") - - self._purchase_order_number = purchase_order_number - - @property - def purchase_order_date(self): - """ - Gets the purchase_order_date of this InlineResponse2004OrderInformationInvoiceDetails. - Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The purchase_order_date of this InlineResponse2004OrderInformationInvoiceDetails. - :rtype: str - """ - return self._purchase_order_date - - @purchase_order_date.setter - def purchase_order_date(self, purchase_order_date): - """ - Sets the purchase_order_date of this InlineResponse2004OrderInformationInvoiceDetails. - Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param purchase_order_date: The purchase_order_date of this InlineResponse2004OrderInformationInvoiceDetails. - :type: str - """ - if purchase_order_date is not None and len(purchase_order_date) > 10: - raise ValueError("Invalid value for `purchase_order_date`, length must be less than or equal to `10`") - - self._purchase_order_date = purchase_order_date - - @property - def taxable(self): - """ - Gets the taxable of this InlineResponse2004OrderInformationInvoiceDetails. - Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The taxable of this InlineResponse2004OrderInformationInvoiceDetails. - :rtype: bool - """ - return self._taxable - - @taxable.setter - def taxable(self, taxable): - """ - Sets the taxable of this InlineResponse2004OrderInformationInvoiceDetails. - Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param taxable: The taxable of this InlineResponse2004OrderInformationInvoiceDetails. - :type: bool - """ - - self._taxable = taxable - - @property - def vat_invoice_reference_number(self): - """ - Gets the vat_invoice_reference_number of this InlineResponse2004OrderInformationInvoiceDetails. - VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_invoice_reference_number of this InlineResponse2004OrderInformationInvoiceDetails. - :rtype: str - """ - return self._vat_invoice_reference_number - - @vat_invoice_reference_number.setter - def vat_invoice_reference_number(self, vat_invoice_reference_number): - """ - Sets the vat_invoice_reference_number of this InlineResponse2004OrderInformationInvoiceDetails. - VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_invoice_reference_number: The vat_invoice_reference_number of this InlineResponse2004OrderInformationInvoiceDetails. - :type: str - """ - if vat_invoice_reference_number is not None and len(vat_invoice_reference_number) > 15: - raise ValueError("Invalid value for `vat_invoice_reference_number`, length must be less than or equal to `15`") - - self._vat_invoice_reference_number = vat_invoice_reference_number - - @property - def commodity_code(self): - """ - Gets the commodity_code of this InlineResponse2004OrderInformationInvoiceDetails. - International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The commodity_code of this InlineResponse2004OrderInformationInvoiceDetails. - :rtype: str - """ - return self._commodity_code - - @commodity_code.setter - def commodity_code(self, commodity_code): - """ - Sets the commodity_code of this InlineResponse2004OrderInformationInvoiceDetails. - International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param commodity_code: The commodity_code of this InlineResponse2004OrderInformationInvoiceDetails. - :type: str - """ - if commodity_code is not None and len(commodity_code) > 4: - raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `4`") - - self._commodity_code = commodity_code - - @property - def transaction_advice_addendum(self): - """ - Gets the transaction_advice_addendum of this InlineResponse2004OrderInformationInvoiceDetails. - - :return: The transaction_advice_addendum of this InlineResponse2004OrderInformationInvoiceDetails. - :rtype: list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] - """ - return self._transaction_advice_addendum - - @transaction_advice_addendum.setter - def transaction_advice_addendum(self, transaction_advice_addendum): - """ - Sets the transaction_advice_addendum of this InlineResponse2004OrderInformationInvoiceDetails. - - :param transaction_advice_addendum: The transaction_advice_addendum of this InlineResponse2004OrderInformationInvoiceDetails. - :type: list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] - """ - - self._transaction_advice_addendum = transaction_advice_addendum - - @property - def level3_transmission_status(self): - """ - Gets the level3_transmission_status of this InlineResponse2004OrderInformationInvoiceDetails. - Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The level3_transmission_status of this InlineResponse2004OrderInformationInvoiceDetails. - :rtype: bool - """ - return self._level3_transmission_status - - @level3_transmission_status.setter - def level3_transmission_status(self, level3_transmission_status): - """ - Sets the level3_transmission_status of this InlineResponse2004OrderInformationInvoiceDetails. - Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param level3_transmission_status: The level3_transmission_status of this InlineResponse2004OrderInformationInvoiceDetails. - :type: bool - """ - - self._level3_transmission_status = level3_transmission_status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2004OrderInformationInvoiceDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_4_order_information_ship_to.py b/CyberSource/models/inline_response_200_4_order_information_ship_to.py deleted file mode 100644 index a57ed662..00000000 --- a/CyberSource/models/inline_response_200_4_order_information_ship_to.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2004OrderInformationShipTo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'administrative_area': 'str', - 'postal_code': 'str', - 'country': 'str' - } - - attribute_map = { - 'administrative_area': 'administrativeArea', - 'postal_code': 'postalCode', - 'country': 'country' - } - - def __init__(self, administrative_area=None, postal_code=None, country=None): - """ - InlineResponse2004OrderInformationShipTo - a model defined in Swagger - """ - - self._administrative_area = None - self._postal_code = None - self._country = None - - if administrative_area is not None: - self.administrative_area = administrative_area - if postal_code is not None: - self.postal_code = postal_code - if country is not None: - self.country = country - - @property - def administrative_area(self): - """ - Gets the administrative_area of this InlineResponse2004OrderInformationShipTo. - State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. - - :return: The administrative_area of this InlineResponse2004OrderInformationShipTo. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this InlineResponse2004OrderInformationShipTo. - State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. - - :param administrative_area: The administrative_area of this InlineResponse2004OrderInformationShipTo. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 2: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") - - self._administrative_area = administrative_area - - @property - def postal_code(self): - """ - Gets the postal_code of this InlineResponse2004OrderInformationShipTo. - Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 - - :return: The postal_code of this InlineResponse2004OrderInformationShipTo. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this InlineResponse2004OrderInformationShipTo. - Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 - - :param postal_code: The postal_code of this InlineResponse2004OrderInformationShipTo. - :type: str - """ - if postal_code is not None and len(postal_code) > 10: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") - - self._postal_code = postal_code - - @property - def country(self): - """ - Gets the country of this InlineResponse2004OrderInformationShipTo. - Country of the shipping address. Use the two character ISO Standard Country Codes. - - :return: The country of this InlineResponse2004OrderInformationShipTo. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this InlineResponse2004OrderInformationShipTo. - Country of the shipping address. Use the two character ISO Standard Country Codes. - - :param country: The country of this InlineResponse2004OrderInformationShipTo. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2004OrderInformationShipTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_4_processing_information.py b/CyberSource/models/inline_response_200_4_processing_information.py deleted file mode 100644 index 231cff2a..00000000 --- a/CyberSource/models/inline_response_200_4_processing_information.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2004ProcessingInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'payment_solution': 'str', - 'authorization_options': 'InlineResponse2004ProcessingInformationAuthorizationOptions' - } - - attribute_map = { - 'payment_solution': 'paymentSolution', - 'authorization_options': 'authorizationOptions' - } - - def __init__(self, payment_solution=None, authorization_options=None): - """ - InlineResponse2004ProcessingInformation - a model defined in Swagger - """ - - self._payment_solution = None - self._authorization_options = None - - if payment_solution is not None: - self.payment_solution = payment_solution - if authorization_options is not None: - self.authorization_options = authorization_options - - @property - def payment_solution(self): - """ - Gets the payment_solution of this InlineResponse2004ProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :return: The payment_solution of this InlineResponse2004ProcessingInformation. - :rtype: str - """ - return self._payment_solution - - @payment_solution.setter - def payment_solution(self, payment_solution): - """ - Sets the payment_solution of this InlineResponse2004ProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :param payment_solution: The payment_solution of this InlineResponse2004ProcessingInformation. - :type: str - """ - if payment_solution is not None and len(payment_solution) > 12: - raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") - - self._payment_solution = payment_solution - - @property - def authorization_options(self): - """ - Gets the authorization_options of this InlineResponse2004ProcessingInformation. - - :return: The authorization_options of this InlineResponse2004ProcessingInformation. - :rtype: InlineResponse2004ProcessingInformationAuthorizationOptions - """ - return self._authorization_options - - @authorization_options.setter - def authorization_options(self, authorization_options): - """ - Sets the authorization_options of this InlineResponse2004ProcessingInformation. - - :param authorization_options: The authorization_options of this InlineResponse2004ProcessingInformation. - :type: InlineResponse2004ProcessingInformationAuthorizationOptions - """ - - self._authorization_options = authorization_options - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2004ProcessingInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_4_processing_information_authorization_options.py b/CyberSource/models/inline_response_200_4_processing_information_authorization_options.py deleted file mode 100644 index bda4ca23..00000000 --- a/CyberSource/models/inline_response_200_4_processing_information_authorization_options.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2004ProcessingInformationAuthorizationOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'verbal_auth_code': 'str' - } - - attribute_map = { - 'verbal_auth_code': 'verbalAuthCode' - } - - def __init__(self, verbal_auth_code=None): - """ - InlineResponse2004ProcessingInformationAuthorizationOptions - a model defined in Swagger - """ - - self._verbal_auth_code = None - - if verbal_auth_code is not None: - self.verbal_auth_code = verbal_auth_code - - @property - def verbal_auth_code(self): - """ - Gets the verbal_auth_code of this InlineResponse2004ProcessingInformationAuthorizationOptions. - Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The verbal_auth_code of this InlineResponse2004ProcessingInformationAuthorizationOptions. - :rtype: str - """ - return self._verbal_auth_code - - @verbal_auth_code.setter - def verbal_auth_code(self, verbal_auth_code): - """ - Sets the verbal_auth_code of this InlineResponse2004ProcessingInformationAuthorizationOptions. - Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param verbal_auth_code: The verbal_auth_code of this InlineResponse2004ProcessingInformationAuthorizationOptions. - :type: str - """ - if verbal_auth_code is not None and len(verbal_auth_code) > 7: - raise ValueError("Invalid value for `verbal_auth_code`, length must be less than or equal to `7`") - - self._verbal_auth_code = verbal_auth_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2004ProcessingInformationAuthorizationOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_5.py b/CyberSource/models/inline_response_200_5.py deleted file mode 100644 index 1d9cd305..00000000 --- a/CyberSource/models/inline_response_200_5.py +++ /dev/null @@ -1,297 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2005(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse2013Links', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'reconciliation_id': 'str', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'refund_amount_details': 'InlineResponse2013RefundAmountDetails' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reconciliation_id': 'reconciliationId', - 'client_reference_information': 'clientReferenceInformation', - 'refund_amount_details': 'refundAmountDetails' - } - - def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, refund_amount_details=None): - """ - InlineResponse2005 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._submit_time_utc = None - self._status = None - self._reconciliation_id = None - self._client_reference_information = None - self._refund_amount_details = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if refund_amount_details is not None: - self.refund_amount_details = refund_amount_details - - @property - def links(self): - """ - Gets the links of this InlineResponse2005. - - :return: The links of this InlineResponse2005. - :rtype: InlineResponse2013Links - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2005. - - :param links: The links of this InlineResponse2005. - :type: InlineResponse2013Links - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2005. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse2005. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2005. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse2005. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse2005. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse2005. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse2005. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse2005. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse2005. - The status of the submitted transaction. - - :return: The status of this InlineResponse2005. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse2005. - The status of the submitted transaction. - - :param status: The status of this InlineResponse2005. - :type: str - """ - allowed_values = ["PENDING", "TRANSMITTED", "BATCH_ERROR", "VOIDED"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this InlineResponse2005. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :return: The reconciliation_id of this InlineResponse2005. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this InlineResponse2005. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :param reconciliation_id: The reconciliation_id of this InlineResponse2005. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse2005. - - :return: The client_reference_information of this InlineResponse2005. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse2005. - - :param client_reference_information: The client_reference_information of this InlineResponse2005. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def refund_amount_details(self): - """ - Gets the refund_amount_details of this InlineResponse2005. - - :return: The refund_amount_details of this InlineResponse2005. - :rtype: InlineResponse2013RefundAmountDetails - """ - return self._refund_amount_details - - @refund_amount_details.setter - def refund_amount_details(self, refund_amount_details): - """ - Sets the refund_amount_details of this InlineResponse2005. - - :param refund_amount_details: The refund_amount_details of this InlineResponse2005. - :type: InlineResponse2013RefundAmountDetails - """ - - self._refund_amount_details = refund_amount_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2005): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_6.py b/CyberSource/models/inline_response_200_6.py deleted file mode 100644 index 9fdc98a5..00000000 --- a/CyberSource/models/inline_response_200_6.py +++ /dev/null @@ -1,297 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2006(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse2013Links', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'reconciliation_id': 'str', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'credit_amount_details': 'InlineResponse2014CreditAmountDetails' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reconciliation_id': 'reconciliationId', - 'client_reference_information': 'clientReferenceInformation', - 'credit_amount_details': 'creditAmountDetails' - } - - def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, credit_amount_details=None): - """ - InlineResponse2006 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._submit_time_utc = None - self._status = None - self._reconciliation_id = None - self._client_reference_information = None - self._credit_amount_details = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if credit_amount_details is not None: - self.credit_amount_details = credit_amount_details - - @property - def links(self): - """ - Gets the links of this InlineResponse2006. - - :return: The links of this InlineResponse2006. - :rtype: InlineResponse2013Links - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2006. - - :param links: The links of this InlineResponse2006. - :type: InlineResponse2013Links - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2006. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse2006. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2006. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse2006. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse2006. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse2006. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse2006. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse2006. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse2006. - The status of the submitted transaction. - - :return: The status of this InlineResponse2006. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse2006. - The status of the submitted transaction. - - :param status: The status of this InlineResponse2006. - :type: str - """ - allowed_values = ["PENDING", "TRANSMITTED", "BATCH_ERROR", "VOIDED"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this InlineResponse2006. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :return: The reconciliation_id of this InlineResponse2006. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this InlineResponse2006. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :param reconciliation_id: The reconciliation_id of this InlineResponse2006. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse2006. - - :return: The client_reference_information of this InlineResponse2006. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse2006. - - :param client_reference_information: The client_reference_information of this InlineResponse2006. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def credit_amount_details(self): - """ - Gets the credit_amount_details of this InlineResponse2006. - - :return: The credit_amount_details of this InlineResponse2006. - :rtype: InlineResponse2014CreditAmountDetails - """ - return self._credit_amount_details - - @credit_amount_details.setter - def credit_amount_details(self, credit_amount_details): - """ - Sets the credit_amount_details of this InlineResponse2006. - - :param credit_amount_details: The credit_amount_details of this InlineResponse2006. - :type: InlineResponse2014CreditAmountDetails - """ - - self._credit_amount_details = credit_amount_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2006): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_7.py b/CyberSource/models/inline_response_200_7.py deleted file mode 100644 index 3a841246..00000000 --- a/CyberSource/models/inline_response_200_7.py +++ /dev/null @@ -1,323 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2007(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InstrumentidentifiersLinks', - 'id': 'str', - 'object': 'str', - 'state': 'str', - 'card': 'InstrumentidentifiersCard', - 'bank_account': 'InstrumentidentifiersBankAccount', - 'processing_information': 'InstrumentidentifiersProcessingInformation', - 'metadata': 'InstrumentidentifiersMetadata' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'object': 'object', - 'state': 'state', - 'card': 'card', - 'bank_account': 'bankAccount', - 'processing_information': 'processingInformation', - 'metadata': 'metadata' - } - - def __init__(self, links=None, id=None, object=None, state=None, card=None, bank_account=None, processing_information=None, metadata=None): - """ - InlineResponse2007 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._object = None - self._state = None - self._card = None - self._bank_account = None - self._processing_information = None - self._metadata = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if object is not None: - self.object = object - if state is not None: - self.state = state - if card is not None: - self.card = card - if bank_account is not None: - self.bank_account = bank_account - if processing_information is not None: - self.processing_information = processing_information - if metadata is not None: - self.metadata = metadata - - @property - def links(self): - """ - Gets the links of this InlineResponse2007. - - :return: The links of this InlineResponse2007. - :rtype: InstrumentidentifiersLinks - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2007. - - :param links: The links of this InlineResponse2007. - :type: InstrumentidentifiersLinks - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2007. - Unique identification number assigned by CyberSource to the submitted request. - - :return: The id of this InlineResponse2007. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2007. - Unique identification number assigned by CyberSource to the submitted request. - - :param id: The id of this InlineResponse2007. - :type: str - """ - - self._id = id - - @property - def object(self): - """ - Gets the object of this InlineResponse2007. - Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. - - :return: The object of this InlineResponse2007. - :rtype: str - """ - return self._object - - @object.setter - def object(self, object): - """ - Sets the object of this InlineResponse2007. - Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. - - :param object: The object of this InlineResponse2007. - :type: str - """ - allowed_values = ["instrumentIdentifier"] - if object not in allowed_values: - raise ValueError( - "Invalid value for `object` ({0}), must be one of {1}" - .format(object, allowed_values) - ) - - self._object = object - - @property - def state(self): - """ - Gets the state of this InlineResponse2007. - Current state of the token. - - :return: The state of this InlineResponse2007. - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """ - Sets the state of this InlineResponse2007. - Current state of the token. - - :param state: The state of this InlineResponse2007. - :type: str - """ - allowed_values = ["ACTIVE", "CLOSED"] - if state not in allowed_values: - raise ValueError( - "Invalid value for `state` ({0}), must be one of {1}" - .format(state, allowed_values) - ) - - self._state = state - - @property - def card(self): - """ - Gets the card of this InlineResponse2007. - - :return: The card of this InlineResponse2007. - :rtype: InstrumentidentifiersCard - """ - return self._card - - @card.setter - def card(self, card): - """ - Sets the card of this InlineResponse2007. - - :param card: The card of this InlineResponse2007. - :type: InstrumentidentifiersCard - """ - - self._card = card - - @property - def bank_account(self): - """ - Gets the bank_account of this InlineResponse2007. - - :return: The bank_account of this InlineResponse2007. - :rtype: InstrumentidentifiersBankAccount - """ - return self._bank_account - - @bank_account.setter - def bank_account(self, bank_account): - """ - Sets the bank_account of this InlineResponse2007. - - :param bank_account: The bank_account of this InlineResponse2007. - :type: InstrumentidentifiersBankAccount - """ - - self._bank_account = bank_account - - @property - def processing_information(self): - """ - Gets the processing_information of this InlineResponse2007. - - :return: The processing_information of this InlineResponse2007. - :rtype: InstrumentidentifiersProcessingInformation - """ - return self._processing_information - - @processing_information.setter - def processing_information(self, processing_information): - """ - Sets the processing_information of this InlineResponse2007. - - :param processing_information: The processing_information of this InlineResponse2007. - :type: InstrumentidentifiersProcessingInformation - """ - - self._processing_information = processing_information - - @property - def metadata(self): - """ - Gets the metadata of this InlineResponse2007. - - :return: The metadata of this InlineResponse2007. - :rtype: InstrumentidentifiersMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this InlineResponse2007. - - :param metadata: The metadata of this InlineResponse2007. - :type: InstrumentidentifiersMetadata - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2007): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_8.py b/CyberSource/models/inline_response_200_8.py deleted file mode 100644 index 5426a6ce..00000000 --- a/CyberSource/models/inline_response_200_8.py +++ /dev/null @@ -1,297 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2008(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse2008Links', - 'object': 'str', - 'offset': 'str', - 'limit': 'str', - 'count': 'str', - 'total': 'str', - 'embedded': 'object' - } - - attribute_map = { - 'links': '_links', - 'object': 'object', - 'offset': 'offset', - 'limit': 'limit', - 'count': 'count', - 'total': 'total', - 'embedded': '_embedded' - } - - def __init__(self, links=None, object=None, offset=None, limit=None, count=None, total=None, embedded=None): - """ - InlineResponse2008 - a model defined in Swagger - """ - - self._links = None - self._object = None - self._offset = None - self._limit = None - self._count = None - self._total = None - self._embedded = None - - if links is not None: - self.links = links - if object is not None: - self.object = object - if offset is not None: - self.offset = offset - if limit is not None: - self.limit = limit - if count is not None: - self.count = count - if total is not None: - self.total = total - if embedded is not None: - self.embedded = embedded - - @property - def links(self): - """ - Gets the links of this InlineResponse2008. - - :return: The links of this InlineResponse2008. - :rtype: InlineResponse2008Links - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2008. - - :param links: The links of this InlineResponse2008. - :type: InlineResponse2008Links - """ - - self._links = links - - @property - def object(self): - """ - Gets the object of this InlineResponse2008. - Shows the response is a collection of objects. - - :return: The object of this InlineResponse2008. - :rtype: str - """ - return self._object - - @object.setter - def object(self, object): - """ - Sets the object of this InlineResponse2008. - Shows the response is a collection of objects. - - :param object: The object of this InlineResponse2008. - :type: str - """ - allowed_values = ["collection"] - if object not in allowed_values: - raise ValueError( - "Invalid value for `object` ({0}), must be one of {1}" - .format(object, allowed_values) - ) - - self._object = object - - @property - def offset(self): - """ - Gets the offset of this InlineResponse2008. - The offset parameter supplied in the request. - - :return: The offset of this InlineResponse2008. - :rtype: str - """ - return self._offset - - @offset.setter - def offset(self, offset): - """ - Sets the offset of this InlineResponse2008. - The offset parameter supplied in the request. - - :param offset: The offset of this InlineResponse2008. - :type: str - """ - - self._offset = offset - - @property - def limit(self): - """ - Gets the limit of this InlineResponse2008. - The limit parameter supplied in the request. - - :return: The limit of this InlineResponse2008. - :rtype: str - """ - return self._limit - - @limit.setter - def limit(self, limit): - """ - Sets the limit of this InlineResponse2008. - The limit parameter supplied in the request. - - :param limit: The limit of this InlineResponse2008. - :type: str - """ - - self._limit = limit - - @property - def count(self): - """ - Gets the count of this InlineResponse2008. - The number of Payment Instruments returned in the array. - - :return: The count of this InlineResponse2008. - :rtype: str - """ - return self._count - - @count.setter - def count(self, count): - """ - Sets the count of this InlineResponse2008. - The number of Payment Instruments returned in the array. - - :param count: The count of this InlineResponse2008. - :type: str - """ - - self._count = count - - @property - def total(self): - """ - Gets the total of this InlineResponse2008. - The total number of Payment Instruments associated with the Instrument Identifier in the zero-based dataset. - - :return: The total of this InlineResponse2008. - :rtype: str - """ - return self._total - - @total.setter - def total(self, total): - """ - Sets the total of this InlineResponse2008. - The total number of Payment Instruments associated with the Instrument Identifier in the zero-based dataset. - - :param total: The total of this InlineResponse2008. - :type: str - """ - - self._total = total - - @property - def embedded(self): - """ - Gets the embedded of this InlineResponse2008. - Array of Payment Instruments returned for the supplied Instrument Identifier. - - :return: The embedded of this InlineResponse2008. - :rtype: object - """ - return self._embedded - - @embedded.setter - def embedded(self, embedded): - """ - Sets the embedded of this InlineResponse2008. - Array of Payment Instruments returned for the supplied Instrument Identifier. - - :param embedded: The embedded of this InlineResponse2008. - :type: object - """ - - self._embedded = embedded - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2008): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_8__links.py b/CyberSource/models/inline_response_200_8__links.py deleted file mode 100644 index e8fed3b3..00000000 --- a/CyberSource/models/inline_response_200_8__links.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2008Links(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - '_self': 'InlineResponse2008LinksSelf', - 'first': 'InlineResponse2008LinksFirst', - 'prev': 'InlineResponse2008LinksPrev', - 'next': 'InlineResponse2008LinksNext', - 'last': 'InlineResponse2008LinksLast' - } - - attribute_map = { - '_self': 'self', - 'first': 'first', - 'prev': 'prev', - 'next': 'next', - 'last': 'last' - } - - def __init__(self, _self=None, first=None, prev=None, next=None, last=None): - """ - InlineResponse2008Links - a model defined in Swagger - """ - - self.__self = None - self._first = None - self._prev = None - self._next = None - self._last = None - - if _self is not None: - self._self = _self - if first is not None: - self.first = first - if prev is not None: - self.prev = prev - if next is not None: - self.next = next - if last is not None: - self.last = last - - @property - def _self(self): - """ - Gets the _self of this InlineResponse2008Links. - - :return: The _self of this InlineResponse2008Links. - :rtype: InlineResponse2008LinksSelf - """ - return self.__self - - @_self.setter - def _self(self, _self): - """ - Sets the _self of this InlineResponse2008Links. - - :param _self: The _self of this InlineResponse2008Links. - :type: InlineResponse2008LinksSelf - """ - - self.__self = _self - - @property - def first(self): - """ - Gets the first of this InlineResponse2008Links. - - :return: The first of this InlineResponse2008Links. - :rtype: InlineResponse2008LinksFirst - """ - return self._first - - @first.setter - def first(self, first): - """ - Sets the first of this InlineResponse2008Links. - - :param first: The first of this InlineResponse2008Links. - :type: InlineResponse2008LinksFirst - """ - - self._first = first - - @property - def prev(self): - """ - Gets the prev of this InlineResponse2008Links. - - :return: The prev of this InlineResponse2008Links. - :rtype: InlineResponse2008LinksPrev - """ - return self._prev - - @prev.setter - def prev(self, prev): - """ - Sets the prev of this InlineResponse2008Links. - - :param prev: The prev of this InlineResponse2008Links. - :type: InlineResponse2008LinksPrev - """ - - self._prev = prev - - @property - def next(self): - """ - Gets the next of this InlineResponse2008Links. - - :return: The next of this InlineResponse2008Links. - :rtype: InlineResponse2008LinksNext - """ - return self._next - - @next.setter - def next(self, next): - """ - Sets the next of this InlineResponse2008Links. - - :param next: The next of this InlineResponse2008Links. - :type: InlineResponse2008LinksNext - """ - - self._next = next - - @property - def last(self): - """ - Gets the last of this InlineResponse2008Links. - - :return: The last of this InlineResponse2008Links. - :rtype: InlineResponse2008LinksLast - """ - return self._last - - @last.setter - def last(self, last): - """ - Sets the last of this InlineResponse2008Links. - - :param last: The last of this InlineResponse2008Links. - :type: InlineResponse2008LinksLast - """ - - self._last = last - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2008Links): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_8__links_first.py b/CyberSource/models/inline_response_200_8__links_first.py deleted file mode 100644 index a62d5659..00000000 --- a/CyberSource/models/inline_response_200_8__links_first.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2008LinksFirst(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'href': 'str' - } - - attribute_map = { - 'href': 'href' - } - - def __init__(self, href=None): - """ - InlineResponse2008LinksFirst - a model defined in Swagger - """ - - self._href = None - - if href is not None: - self.href = href - - @property - def href(self): - """ - Gets the href of this InlineResponse2008LinksFirst. - A link to the collection starting at offset zero for the supplied limit. - - :return: The href of this InlineResponse2008LinksFirst. - :rtype: str - """ - return self._href - - @href.setter - def href(self, href): - """ - Sets the href of this InlineResponse2008LinksFirst. - A link to the collection starting at offset zero for the supplied limit. - - :param href: The href of this InlineResponse2008LinksFirst. - :type: str - """ - - self._href = href - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2008LinksFirst): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_8__links_last.py b/CyberSource/models/inline_response_200_8__links_last.py deleted file mode 100644 index ab97c6ce..00000000 --- a/CyberSource/models/inline_response_200_8__links_last.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2008LinksLast(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'href': 'str' - } - - attribute_map = { - 'href': 'href' - } - - def __init__(self, href=None): - """ - InlineResponse2008LinksLast - a model defined in Swagger - """ - - self._href = None - - if href is not None: - self.href = href - - @property - def href(self): - """ - Gets the href of this InlineResponse2008LinksLast. - A link to the last collection containing the remaining objects. - - :return: The href of this InlineResponse2008LinksLast. - :rtype: str - """ - return self._href - - @href.setter - def href(self, href): - """ - Sets the href of this InlineResponse2008LinksLast. - A link to the last collection containing the remaining objects. - - :param href: The href of this InlineResponse2008LinksLast. - :type: str - """ - - self._href = href - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2008LinksLast): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_8__links_next.py b/CyberSource/models/inline_response_200_8__links_next.py deleted file mode 100644 index f9f5ac46..00000000 --- a/CyberSource/models/inline_response_200_8__links_next.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2008LinksNext(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'href': 'str' - } - - attribute_map = { - 'href': 'href' - } - - def __init__(self, href=None): - """ - InlineResponse2008LinksNext - a model defined in Swagger - """ - - self._href = None - - if href is not None: - self.href = href - - @property - def href(self): - """ - Gets the href of this InlineResponse2008LinksNext. - A link to the next collection starting at the supplied offset plus the supplied limit. - - :return: The href of this InlineResponse2008LinksNext. - :rtype: str - """ - return self._href - - @href.setter - def href(self, href): - """ - Sets the href of this InlineResponse2008LinksNext. - A link to the next collection starting at the supplied offset plus the supplied limit. - - :param href: The href of this InlineResponse2008LinksNext. - :type: str - """ - - self._href = href - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2008LinksNext): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_8__links_prev.py b/CyberSource/models/inline_response_200_8__links_prev.py deleted file mode 100644 index ac8543b9..00000000 --- a/CyberSource/models/inline_response_200_8__links_prev.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2008LinksPrev(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'href': 'str' - } - - attribute_map = { - 'href': 'href' - } - - def __init__(self, href=None): - """ - InlineResponse2008LinksPrev - a model defined in Swagger - """ - - self._href = None - - if href is not None: - self.href = href - - @property - def href(self): - """ - Gets the href of this InlineResponse2008LinksPrev. - - :return: The href of this InlineResponse2008LinksPrev. - :rtype: str - """ - return self._href - - @href.setter - def href(self, href): - """ - Sets the href of this InlineResponse2008LinksPrev. - - :param href: The href of this InlineResponse2008LinksPrev. - :type: str - """ - - self._href = href - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2008LinksPrev): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_8__links_self.py b/CyberSource/models/inline_response_200_8__links_self.py deleted file mode 100644 index 153437cc..00000000 --- a/CyberSource/models/inline_response_200_8__links_self.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2008LinksSelf(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'href': 'str' - } - - attribute_map = { - 'href': 'href' - } - - def __init__(self, href=None): - """ - InlineResponse2008LinksSelf - a model defined in Swagger - """ - - self._href = None - - if href is not None: - self.href = href - - @property - def href(self): - """ - Gets the href of this InlineResponse2008LinksSelf. - A link to the current requested collection. - - :return: The href of this InlineResponse2008LinksSelf. - :rtype: str - """ - return self._href - - @href.setter - def href(self, href): - """ - Sets the href of this InlineResponse2008LinksSelf. - A link to the current requested collection. - - :param href: The href of this InlineResponse2008LinksSelf. - :type: str - """ - - self._href = href - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2008LinksSelf): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_der.py b/CyberSource/models/inline_response_200_der.py deleted file mode 100644 index 726cade8..00000000 --- a/CyberSource/models/inline_response_200_der.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse200Der(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'format': 'str', - 'algorithm': 'str', - 'public_key': 'str' - } - - attribute_map = { - 'format': 'format', - 'algorithm': 'algorithm', - 'public_key': 'publicKey' - } - - def __init__(self, format=None, algorithm=None, public_key=None): - """ - InlineResponse200Der - a model defined in Swagger - """ - - self._format = None - self._algorithm = None - self._public_key = None - - if format is not None: - self.format = format - if algorithm is not None: - self.algorithm = algorithm - if public_key is not None: - self.public_key = public_key - - @property - def format(self): - """ - Gets the format of this InlineResponse200Der. - Specifies the format of the public key; currently X.509. - - :return: The format of this InlineResponse200Der. - :rtype: str - """ - return self._format - - @format.setter - def format(self, format): - """ - Sets the format of this InlineResponse200Der. - Specifies the format of the public key; currently X.509. - - :param format: The format of this InlineResponse200Der. - :type: str - """ - - self._format = format - - @property - def algorithm(self): - """ - Gets the algorithm of this InlineResponse200Der. - Algorithm used to encrypt the public key. - - :return: The algorithm of this InlineResponse200Der. - :rtype: str - """ - return self._algorithm - - @algorithm.setter - def algorithm(self, algorithm): - """ - Sets the algorithm of this InlineResponse200Der. - Algorithm used to encrypt the public key. - - :param algorithm: The algorithm of this InlineResponse200Der. - :type: str - """ - - self._algorithm = algorithm - - @property - def public_key(self): - """ - Gets the public_key of this InlineResponse200Der. - Base64 encoded public key value. - - :return: The public_key of this InlineResponse200Der. - :rtype: str - """ - return self._public_key - - @public_key.setter - def public_key(self, public_key): - """ - Sets the public_key of this InlineResponse200Der. - Base64 encoded public key value. - - :param public_key: The public_key of this InlineResponse200Der. - :type: str - """ - - self._public_key = public_key - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse200Der): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_200_jwk.py b/CyberSource/models/inline_response_200_jwk.py deleted file mode 100644 index cd146a1f..00000000 --- a/CyberSource/models/inline_response_200_jwk.py +++ /dev/null @@ -1,237 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse200Jwk(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'kty': 'str', - 'use': 'str', - 'kid': 'str', - 'n': 'str', - 'e': 'str' - } - - attribute_map = { - 'kty': 'kty', - 'use': 'use', - 'kid': 'kid', - 'n': 'n', - 'e': 'e' - } - - def __init__(self, kty=None, use=None, kid=None, n=None, e=None): - """ - InlineResponse200Jwk - a model defined in Swagger - """ - - self._kty = None - self._use = None - self._kid = None - self._n = None - self._e = None - - if kty is not None: - self.kty = kty - if use is not None: - self.use = use - if kid is not None: - self.kid = kid - if n is not None: - self.n = n - if e is not None: - self.e = e - - @property - def kty(self): - """ - Gets the kty of this InlineResponse200Jwk. - Algorithm used to encrypt the public key. - - :return: The kty of this InlineResponse200Jwk. - :rtype: str - """ - return self._kty - - @kty.setter - def kty(self, kty): - """ - Sets the kty of this InlineResponse200Jwk. - Algorithm used to encrypt the public key. - - :param kty: The kty of this InlineResponse200Jwk. - :type: str - """ - - self._kty = kty - - @property - def use(self): - """ - Gets the use of this InlineResponse200Jwk. - Defines whether to use the key for encryption (enc) or verifying a signature (sig). Always returned as enc. - - :return: The use of this InlineResponse200Jwk. - :rtype: str - """ - return self._use - - @use.setter - def use(self, use): - """ - Sets the use of this InlineResponse200Jwk. - Defines whether to use the key for encryption (enc) or verifying a signature (sig). Always returned as enc. - - :param use: The use of this InlineResponse200Jwk. - :type: str - """ - - self._use = use - - @property - def kid(self): - """ - Gets the kid of this InlineResponse200Jwk. - The key ID in JWK format. - - :return: The kid of this InlineResponse200Jwk. - :rtype: str - """ - return self._kid - - @kid.setter - def kid(self, kid): - """ - Sets the kid of this InlineResponse200Jwk. - The key ID in JWK format. - - :param kid: The kid of this InlineResponse200Jwk. - :type: str - """ - - self._kid = kid - - @property - def n(self): - """ - Gets the n of this InlineResponse200Jwk. - JWK RSA Modulus - - :return: The n of this InlineResponse200Jwk. - :rtype: str - """ - return self._n - - @n.setter - def n(self, n): - """ - Sets the n of this InlineResponse200Jwk. - JWK RSA Modulus - - :param n: The n of this InlineResponse200Jwk. - :type: str - """ - - self._n = n - - @property - def e(self): - """ - Gets the e of this InlineResponse200Jwk. - JWK RSA Exponent - - :return: The e of this InlineResponse200Jwk. - :rtype: str - """ - return self._e - - @e.setter - def e(self, e): - """ - Sets the e of this InlineResponse200Jwk. - JWK RSA Exponent - - :param e: The e of this InlineResponse200Jwk. - :type: str - """ - - self._e = e - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse200Jwk): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201.py b/CyberSource/models/inline_response_201.py deleted file mode 100644 index d7ae37a9..00000000 --- a/CyberSource/models/inline_response_201.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse201Links', - 'embedded': 'InlineResponse201Embedded', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'reconciliation_id': 'str', - 'error_information': 'InlineResponse201ErrorInformation', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'processor_information': 'InlineResponse201ProcessorInformation', - 'payment_information': 'InlineResponse201PaymentInformation', - 'order_information': 'InlineResponse201OrderInformation', - 'point_of_sale_information': 'InlineResponse201PointOfSaleInformation' - } - - attribute_map = { - 'links': '_links', - 'embedded': '_embedded', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reconciliation_id': 'reconciliationId', - 'error_information': 'errorInformation', - 'client_reference_information': 'clientReferenceInformation', - 'processor_information': 'processorInformation', - 'payment_information': 'paymentInformation', - 'order_information': 'orderInformation', - 'point_of_sale_information': 'pointOfSaleInformation' - } - - def __init__(self, links=None, embedded=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, error_information=None, client_reference_information=None, processor_information=None, payment_information=None, order_information=None, point_of_sale_information=None): - """ - InlineResponse201 - a model defined in Swagger - """ - - self._links = None - self._embedded = None - self._id = None - self._submit_time_utc = None - self._status = None - self._reconciliation_id = None - self._error_information = None - self._client_reference_information = None - self._processor_information = None - self._payment_information = None - self._order_information = None - self._point_of_sale_information = None - - if links is not None: - self.links = links - if embedded is not None: - self.embedded = embedded - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if error_information is not None: - self.error_information = error_information - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if processor_information is not None: - self.processor_information = processor_information - if payment_information is not None: - self.payment_information = payment_information - if order_information is not None: - self.order_information = order_information - if point_of_sale_information is not None: - self.point_of_sale_information = point_of_sale_information - - @property - def links(self): - """ - Gets the links of this InlineResponse201. - - :return: The links of this InlineResponse201. - :rtype: InlineResponse201Links - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse201. - - :param links: The links of this InlineResponse201. - :type: InlineResponse201Links - """ - - self._links = links - - @property - def embedded(self): - """ - Gets the embedded of this InlineResponse201. - - :return: The embedded of this InlineResponse201. - :rtype: InlineResponse201Embedded - """ - return self._embedded - - @embedded.setter - def embedded(self, embedded): - """ - Sets the embedded of this InlineResponse201. - - :param embedded: The embedded of this InlineResponse201. - :type: InlineResponse201Embedded - """ - - self._embedded = embedded - - @property - def id(self): - """ - Gets the id of this InlineResponse201. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse201. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse201. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse201. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse201. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse201. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse201. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse201. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse201. - The status of the submitted transaction. - - :return: The status of this InlineResponse201. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse201. - The status of the submitted transaction. - - :param status: The status of this InlineResponse201. - :type: str - """ - allowed_values = ["AUTHORIZED", "PARTIAL_AUTHORIZED", "AUTHORIZED_PENDING_REVIEW", "DECLINED"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this InlineResponse201. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :return: The reconciliation_id of this InlineResponse201. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this InlineResponse201. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :param reconciliation_id: The reconciliation_id of this InlineResponse201. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def error_information(self): - """ - Gets the error_information of this InlineResponse201. - - :return: The error_information of this InlineResponse201. - :rtype: InlineResponse201ErrorInformation - """ - return self._error_information - - @error_information.setter - def error_information(self, error_information): - """ - Sets the error_information of this InlineResponse201. - - :param error_information: The error_information of this InlineResponse201. - :type: InlineResponse201ErrorInformation - """ - - self._error_information = error_information - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse201. - - :return: The client_reference_information of this InlineResponse201. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse201. - - :param client_reference_information: The client_reference_information of this InlineResponse201. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def processor_information(self): - """ - Gets the processor_information of this InlineResponse201. - - :return: The processor_information of this InlineResponse201. - :rtype: InlineResponse201ProcessorInformation - """ - return self._processor_information - - @processor_information.setter - def processor_information(self, processor_information): - """ - Sets the processor_information of this InlineResponse201. - - :param processor_information: The processor_information of this InlineResponse201. - :type: InlineResponse201ProcessorInformation - """ - - self._processor_information = processor_information - - @property - def payment_information(self): - """ - Gets the payment_information of this InlineResponse201. - - :return: The payment_information of this InlineResponse201. - :rtype: InlineResponse201PaymentInformation - """ - return self._payment_information - - @payment_information.setter - def payment_information(self, payment_information): - """ - Sets the payment_information of this InlineResponse201. - - :param payment_information: The payment_information of this InlineResponse201. - :type: InlineResponse201PaymentInformation - """ - - self._payment_information = payment_information - - @property - def order_information(self): - """ - Gets the order_information of this InlineResponse201. - - :return: The order_information of this InlineResponse201. - :rtype: InlineResponse201OrderInformation - """ - return self._order_information - - @order_information.setter - def order_information(self, order_information): - """ - Sets the order_information of this InlineResponse201. - - :param order_information: The order_information of this InlineResponse201. - :type: InlineResponse201OrderInformation - """ - - self._order_information = order_information - - @property - def point_of_sale_information(self): - """ - Gets the point_of_sale_information of this InlineResponse201. - - :return: The point_of_sale_information of this InlineResponse201. - :rtype: InlineResponse201PointOfSaleInformation - """ - return self._point_of_sale_information - - @point_of_sale_information.setter - def point_of_sale_information(self, point_of_sale_information): - """ - Sets the point_of_sale_information of this InlineResponse201. - - :param point_of_sale_information: The point_of_sale_information of this InlineResponse201. - :type: InlineResponse201PointOfSaleInformation - """ - - self._point_of_sale_information = point_of_sale_information - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_1.py b/CyberSource/models/inline_response_201_1.py deleted file mode 100644 index 6ccb70cd..00000000 --- a/CyberSource/models/inline_response_201_1.py +++ /dev/null @@ -1,375 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2011(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse201EmbeddedCaptureLinks', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'reconciliation_id': 'str', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'reversal_amount_details': 'InlineResponse2011ReversalAmountDetails', - 'processor_information': 'InlineResponse2011ProcessorInformation', - 'authorization_information': 'InlineResponse2011AuthorizationInformation', - 'point_of_sale_information': 'V2paymentsidreversalsPointOfSaleInformation' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reconciliation_id': 'reconciliationId', - 'client_reference_information': 'clientReferenceInformation', - 'reversal_amount_details': 'reversalAmountDetails', - 'processor_information': 'processorInformation', - 'authorization_information': 'authorizationInformation', - 'point_of_sale_information': 'pointOfSaleInformation' - } - - def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, reversal_amount_details=None, processor_information=None, authorization_information=None, point_of_sale_information=None): - """ - InlineResponse2011 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._submit_time_utc = None - self._status = None - self._reconciliation_id = None - self._client_reference_information = None - self._reversal_amount_details = None - self._processor_information = None - self._authorization_information = None - self._point_of_sale_information = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if reversal_amount_details is not None: - self.reversal_amount_details = reversal_amount_details - if processor_information is not None: - self.processor_information = processor_information - if authorization_information is not None: - self.authorization_information = authorization_information - if point_of_sale_information is not None: - self.point_of_sale_information = point_of_sale_information - - @property - def links(self): - """ - Gets the links of this InlineResponse2011. - - :return: The links of this InlineResponse2011. - :rtype: InlineResponse201EmbeddedCaptureLinks - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2011. - - :param links: The links of this InlineResponse2011. - :type: InlineResponse201EmbeddedCaptureLinks - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2011. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse2011. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2011. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse2011. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse2011. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse2011. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse2011. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse2011. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse2011. - The status of the submitted transaction. - - :return: The status of this InlineResponse2011. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse2011. - The status of the submitted transaction. - - :param status: The status of this InlineResponse2011. - :type: str - """ - allowed_values = ["REVERSED"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this InlineResponse2011. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :return: The reconciliation_id of this InlineResponse2011. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this InlineResponse2011. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :param reconciliation_id: The reconciliation_id of this InlineResponse2011. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse2011. - - :return: The client_reference_information of this InlineResponse2011. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse2011. - - :param client_reference_information: The client_reference_information of this InlineResponse2011. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def reversal_amount_details(self): - """ - Gets the reversal_amount_details of this InlineResponse2011. - - :return: The reversal_amount_details of this InlineResponse2011. - :rtype: InlineResponse2011ReversalAmountDetails - """ - return self._reversal_amount_details - - @reversal_amount_details.setter - def reversal_amount_details(self, reversal_amount_details): - """ - Sets the reversal_amount_details of this InlineResponse2011. - - :param reversal_amount_details: The reversal_amount_details of this InlineResponse2011. - :type: InlineResponse2011ReversalAmountDetails - """ - - self._reversal_amount_details = reversal_amount_details - - @property - def processor_information(self): - """ - Gets the processor_information of this InlineResponse2011. - - :return: The processor_information of this InlineResponse2011. - :rtype: InlineResponse2011ProcessorInformation - """ - return self._processor_information - - @processor_information.setter - def processor_information(self, processor_information): - """ - Sets the processor_information of this InlineResponse2011. - - :param processor_information: The processor_information of this InlineResponse2011. - :type: InlineResponse2011ProcessorInformation - """ - - self._processor_information = processor_information - - @property - def authorization_information(self): - """ - Gets the authorization_information of this InlineResponse2011. - - :return: The authorization_information of this InlineResponse2011. - :rtype: InlineResponse2011AuthorizationInformation - """ - return self._authorization_information - - @authorization_information.setter - def authorization_information(self, authorization_information): - """ - Sets the authorization_information of this InlineResponse2011. - - :param authorization_information: The authorization_information of this InlineResponse2011. - :type: InlineResponse2011AuthorizationInformation - """ - - self._authorization_information = authorization_information - - @property - def point_of_sale_information(self): - """ - Gets the point_of_sale_information of this InlineResponse2011. - - :return: The point_of_sale_information of this InlineResponse2011. - :rtype: V2paymentsidreversalsPointOfSaleInformation - """ - return self._point_of_sale_information - - @point_of_sale_information.setter - def point_of_sale_information(self, point_of_sale_information): - """ - Sets the point_of_sale_information of this InlineResponse2011. - - :param point_of_sale_information: The point_of_sale_information of this InlineResponse2011. - :type: V2paymentsidreversalsPointOfSaleInformation - """ - - self._point_of_sale_information = point_of_sale_information - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2011): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_1_authorization_information.py b/CyberSource/models/inline_response_201_1_authorization_information.py deleted file mode 100644 index 28d83139..00000000 --- a/CyberSource/models/inline_response_201_1_authorization_information.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2011AuthorizationInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'approval_code': 'str', - 'reason_code': 'str' - } - - attribute_map = { - 'approval_code': 'approvalCode', - 'reason_code': 'reasonCode' - } - - def __init__(self, approval_code=None, reason_code=None): - """ - InlineResponse2011AuthorizationInformation - a model defined in Swagger - """ - - self._approval_code = None - self._reason_code = None - - if approval_code is not None: - self.approval_code = approval_code - if reason_code is not None: - self.reason_code = reason_code - - @property - def approval_code(self): - """ - Gets the approval_code of this InlineResponse2011AuthorizationInformation. - The authorization code returned by the processor. - - :return: The approval_code of this InlineResponse2011AuthorizationInformation. - :rtype: str - """ - return self._approval_code - - @approval_code.setter - def approval_code(self, approval_code): - """ - Sets the approval_code of this InlineResponse2011AuthorizationInformation. - The authorization code returned by the processor. - - :param approval_code: The approval_code of this InlineResponse2011AuthorizationInformation. - :type: str - """ - if approval_code is not None and len(approval_code) > 6: - raise ValueError("Invalid value for `approval_code`, length must be less than or equal to `6`") - - self._approval_code = approval_code - - @property - def reason_code(self): - """ - Gets the reason_code of this InlineResponse2011AuthorizationInformation. - Reply flag for the original transaction. - - :return: The reason_code of this InlineResponse2011AuthorizationInformation. - :rtype: str - """ - return self._reason_code - - @reason_code.setter - def reason_code(self, reason_code): - """ - Sets the reason_code of this InlineResponse2011AuthorizationInformation. - Reply flag for the original transaction. - - :param reason_code: The reason_code of this InlineResponse2011AuthorizationInformation. - :type: str - """ - if reason_code is not None and len(reason_code) > 50: - raise ValueError("Invalid value for `reason_code`, length must be less than or equal to `50`") - - self._reason_code = reason_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2011AuthorizationInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_1_processor_information.py b/CyberSource/models/inline_response_201_1_processor_information.py deleted file mode 100644 index f80548eb..00000000 --- a/CyberSource/models/inline_response_201_1_processor_information.py +++ /dev/null @@ -1,277 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2011ProcessorInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'transaction_id': 'str', - 'response_code': 'str', - 'response_category_code': 'str', - 'forwarded_acquirer_code': 'str', - 'master_card_service_code': 'str', - 'master_card_service_reply_code': 'str' - } - - attribute_map = { - 'transaction_id': 'transactionId', - 'response_code': 'responseCode', - 'response_category_code': 'responseCategoryCode', - 'forwarded_acquirer_code': 'forwardedAcquirerCode', - 'master_card_service_code': 'masterCardServiceCode', - 'master_card_service_reply_code': 'masterCardServiceReplyCode' - } - - def __init__(self, transaction_id=None, response_code=None, response_category_code=None, forwarded_acquirer_code=None, master_card_service_code=None, master_card_service_reply_code=None): - """ - InlineResponse2011ProcessorInformation - a model defined in Swagger - """ - - self._transaction_id = None - self._response_code = None - self._response_category_code = None - self._forwarded_acquirer_code = None - self._master_card_service_code = None - self._master_card_service_reply_code = None - - if transaction_id is not None: - self.transaction_id = transaction_id - if response_code is not None: - self.response_code = response_code - if response_category_code is not None: - self.response_category_code = response_category_code - if forwarded_acquirer_code is not None: - self.forwarded_acquirer_code = forwarded_acquirer_code - if master_card_service_code is not None: - self.master_card_service_code = master_card_service_code - if master_card_service_reply_code is not None: - self.master_card_service_reply_code = master_card_service_reply_code - - @property - def transaction_id(self): - """ - Gets the transaction_id of this InlineResponse2011ProcessorInformation. - Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 - - :return: The transaction_id of this InlineResponse2011ProcessorInformation. - :rtype: str - """ - return self._transaction_id - - @transaction_id.setter - def transaction_id(self, transaction_id): - """ - Sets the transaction_id of this InlineResponse2011ProcessorInformation. - Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 - - :param transaction_id: The transaction_id of this InlineResponse2011ProcessorInformation. - :type: str - """ - if transaction_id is not None and len(transaction_id) > 18: - raise ValueError("Invalid value for `transaction_id`, length must be less than or equal to `18`") - - self._transaction_id = transaction_id - - @property - def response_code(self): - """ - Gets the response_code of this InlineResponse2011ProcessorInformation. - For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. - - :return: The response_code of this InlineResponse2011ProcessorInformation. - :rtype: str - """ - return self._response_code - - @response_code.setter - def response_code(self, response_code): - """ - Sets the response_code of this InlineResponse2011ProcessorInformation. - For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. - - :param response_code: The response_code of this InlineResponse2011ProcessorInformation. - :type: str - """ - if response_code is not None and len(response_code) > 10: - raise ValueError("Invalid value for `response_code`, length must be less than or equal to `10`") - - self._response_code = response_code - - @property - def response_category_code(self): - """ - Gets the response_category_code of this InlineResponse2011ProcessorInformation. - Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 - - :return: The response_category_code of this InlineResponse2011ProcessorInformation. - :rtype: str - """ - return self._response_category_code - - @response_category_code.setter - def response_category_code(self, response_category_code): - """ - Sets the response_category_code of this InlineResponse2011ProcessorInformation. - Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 - - :param response_category_code: The response_category_code of this InlineResponse2011ProcessorInformation. - :type: str - """ - if response_category_code is not None and len(response_category_code) > 32: - raise ValueError("Invalid value for `response_category_code`, length must be less than or equal to `32`") - - self._response_category_code = response_category_code - - @property - def forwarded_acquirer_code(self): - """ - Gets the forwarded_acquirer_code of this InlineResponse2011ProcessorInformation. - Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. - - :return: The forwarded_acquirer_code of this InlineResponse2011ProcessorInformation. - :rtype: str - """ - return self._forwarded_acquirer_code - - @forwarded_acquirer_code.setter - def forwarded_acquirer_code(self, forwarded_acquirer_code): - """ - Sets the forwarded_acquirer_code of this InlineResponse2011ProcessorInformation. - Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. - - :param forwarded_acquirer_code: The forwarded_acquirer_code of this InlineResponse2011ProcessorInformation. - :type: str - """ - if forwarded_acquirer_code is not None and len(forwarded_acquirer_code) > 32: - raise ValueError("Invalid value for `forwarded_acquirer_code`, length must be less than or equal to `32`") - - self._forwarded_acquirer_code = forwarded_acquirer_code - - @property - def master_card_service_code(self): - """ - Gets the master_card_service_code of this InlineResponse2011ProcessorInformation. - Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service - - :return: The master_card_service_code of this InlineResponse2011ProcessorInformation. - :rtype: str - """ - return self._master_card_service_code - - @master_card_service_code.setter - def master_card_service_code(self, master_card_service_code): - """ - Sets the master_card_service_code of this InlineResponse2011ProcessorInformation. - Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service - - :param master_card_service_code: The master_card_service_code of this InlineResponse2011ProcessorInformation. - :type: str - """ - if master_card_service_code is not None and len(master_card_service_code) > 2: - raise ValueError("Invalid value for `master_card_service_code`, length must be less than or equal to `2`") - - self._master_card_service_code = master_card_service_code - - @property - def master_card_service_reply_code(self): - """ - Gets the master_card_service_reply_code of this InlineResponse2011ProcessorInformation. - Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. - - :return: The master_card_service_reply_code of this InlineResponse2011ProcessorInformation. - :rtype: str - """ - return self._master_card_service_reply_code - - @master_card_service_reply_code.setter - def master_card_service_reply_code(self, master_card_service_reply_code): - """ - Sets the master_card_service_reply_code of this InlineResponse2011ProcessorInformation. - Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. - - :param master_card_service_reply_code: The master_card_service_reply_code of this InlineResponse2011ProcessorInformation. - :type: str - """ - if master_card_service_reply_code is not None and len(master_card_service_reply_code) > 1: - raise ValueError("Invalid value for `master_card_service_reply_code`, length must be less than or equal to `1`") - - self._master_card_service_reply_code = master_card_service_reply_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2011ProcessorInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_1_reversal_amount_details.py b/CyberSource/models/inline_response_201_1_reversal_amount_details.py deleted file mode 100644 index 425deeee..00000000 --- a/CyberSource/models/inline_response_201_1_reversal_amount_details.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2011ReversalAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'reversed_amount': 'str', - 'original_transaction_amount': 'str', - 'currency': 'str' - } - - attribute_map = { - 'reversed_amount': 'reversedAmount', - 'original_transaction_amount': 'originalTransactionAmount', - 'currency': 'currency' - } - - def __init__(self, reversed_amount=None, original_transaction_amount=None, currency=None): - """ - InlineResponse2011ReversalAmountDetails - a model defined in Swagger - """ - - self._reversed_amount = None - self._original_transaction_amount = None - self._currency = None - - if reversed_amount is not None: - self.reversed_amount = reversed_amount - if original_transaction_amount is not None: - self.original_transaction_amount = original_transaction_amount - if currency is not None: - self.currency = currency - - @property - def reversed_amount(self): - """ - Gets the reversed_amount of this InlineResponse2011ReversalAmountDetails. - Total reversed amount. - - :return: The reversed_amount of this InlineResponse2011ReversalAmountDetails. - :rtype: str - """ - return self._reversed_amount - - @reversed_amount.setter - def reversed_amount(self, reversed_amount): - """ - Sets the reversed_amount of this InlineResponse2011ReversalAmountDetails. - Total reversed amount. - - :param reversed_amount: The reversed_amount of this InlineResponse2011ReversalAmountDetails. - :type: str - """ - if reversed_amount is not None and len(reversed_amount) > 15: - raise ValueError("Invalid value for `reversed_amount`, length must be less than or equal to `15`") - - self._reversed_amount = reversed_amount - - @property - def original_transaction_amount(self): - """ - Gets the original_transaction_amount of this InlineResponse2011ReversalAmountDetails. - Amount of the original transaction. - - :return: The original_transaction_amount of this InlineResponse2011ReversalAmountDetails. - :rtype: str - """ - return self._original_transaction_amount - - @original_transaction_amount.setter - def original_transaction_amount(self, original_transaction_amount): - """ - Sets the original_transaction_amount of this InlineResponse2011ReversalAmountDetails. - Amount of the original transaction. - - :param original_transaction_amount: The original_transaction_amount of this InlineResponse2011ReversalAmountDetails. - :type: str - """ - if original_transaction_amount is not None and len(original_transaction_amount) > 15: - raise ValueError("Invalid value for `original_transaction_amount`, length must be less than or equal to `15`") - - self._original_transaction_amount = original_transaction_amount - - @property - def currency(self): - """ - Gets the currency of this InlineResponse2011ReversalAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this InlineResponse2011ReversalAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this InlineResponse2011ReversalAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this InlineResponse2011ReversalAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2011ReversalAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_2.py b/CyberSource/models/inline_response_201_2.py deleted file mode 100644 index cd94f3a4..00000000 --- a/CyberSource/models/inline_response_201_2.py +++ /dev/null @@ -1,323 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2012(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse2012Links', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'reconciliation_id': 'str', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'processor_information': 'InlineResponse2012ProcessorInformation', - 'order_information': 'InlineResponse2012OrderInformation' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reconciliation_id': 'reconciliationId', - 'client_reference_information': 'clientReferenceInformation', - 'processor_information': 'processorInformation', - 'order_information': 'orderInformation' - } - - def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, processor_information=None, order_information=None): - """ - InlineResponse2012 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._submit_time_utc = None - self._status = None - self._reconciliation_id = None - self._client_reference_information = None - self._processor_information = None - self._order_information = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if processor_information is not None: - self.processor_information = processor_information - if order_information is not None: - self.order_information = order_information - - @property - def links(self): - """ - Gets the links of this InlineResponse2012. - - :return: The links of this InlineResponse2012. - :rtype: InlineResponse2012Links - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2012. - - :param links: The links of this InlineResponse2012. - :type: InlineResponse2012Links - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2012. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse2012. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2012. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse2012. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse2012. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse2012. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse2012. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse2012. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse2012. - The status of the submitted transaction. - - :return: The status of this InlineResponse2012. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse2012. - The status of the submitted transaction. - - :param status: The status of this InlineResponse2012. - :type: str - """ - allowed_values = ["PENDING"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this InlineResponse2012. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :return: The reconciliation_id of this InlineResponse2012. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this InlineResponse2012. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :param reconciliation_id: The reconciliation_id of this InlineResponse2012. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse2012. - - :return: The client_reference_information of this InlineResponse2012. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse2012. - - :param client_reference_information: The client_reference_information of this InlineResponse2012. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def processor_information(self): - """ - Gets the processor_information of this InlineResponse2012. - - :return: The processor_information of this InlineResponse2012. - :rtype: InlineResponse2012ProcessorInformation - """ - return self._processor_information - - @processor_information.setter - def processor_information(self, processor_information): - """ - Sets the processor_information of this InlineResponse2012. - - :param processor_information: The processor_information of this InlineResponse2012. - :type: InlineResponse2012ProcessorInformation - """ - - self._processor_information = processor_information - - @property - def order_information(self): - """ - Gets the order_information of this InlineResponse2012. - - :return: The order_information of this InlineResponse2012. - :rtype: InlineResponse2012OrderInformation - """ - return self._order_information - - @order_information.setter - def order_information(self, order_information): - """ - Sets the order_information of this InlineResponse2012. - - :param order_information: The order_information of this InlineResponse2012. - :type: InlineResponse2012OrderInformation - """ - - self._order_information = order_information - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2012): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_2__links.py b/CyberSource/models/inline_response_201_2__links.py deleted file mode 100644 index b62fc512..00000000 --- a/CyberSource/models/inline_response_201_2__links.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2012Links(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - '_self': 'InlineResponse201LinksSelf', - 'void': 'InlineResponse201LinksSelf', - 'refund': 'InlineResponse201LinksSelf' - } - - attribute_map = { - '_self': 'self', - 'void': 'void', - 'refund': 'refund' - } - - def __init__(self, _self=None, void=None, refund=None): - """ - InlineResponse2012Links - a model defined in Swagger - """ - - self.__self = None - self._void = None - self._refund = None - - if _self is not None: - self._self = _self - if void is not None: - self.void = void - if refund is not None: - self.refund = refund - - @property - def _self(self): - """ - Gets the _self of this InlineResponse2012Links. - - :return: The _self of this InlineResponse2012Links. - :rtype: InlineResponse201LinksSelf - """ - return self.__self - - @_self.setter - def _self(self, _self): - """ - Sets the _self of this InlineResponse2012Links. - - :param _self: The _self of this InlineResponse2012Links. - :type: InlineResponse201LinksSelf - """ - - self.__self = _self - - @property - def void(self): - """ - Gets the void of this InlineResponse2012Links. - - :return: The void of this InlineResponse2012Links. - :rtype: InlineResponse201LinksSelf - """ - return self._void - - @void.setter - def void(self, void): - """ - Sets the void of this InlineResponse2012Links. - - :param void: The void of this InlineResponse2012Links. - :type: InlineResponse201LinksSelf - """ - - self._void = void - - @property - def refund(self): - """ - Gets the refund of this InlineResponse2012Links. - - :return: The refund of this InlineResponse2012Links. - :rtype: InlineResponse201LinksSelf - """ - return self._refund - - @refund.setter - def refund(self, refund): - """ - Sets the refund of this InlineResponse2012Links. - - :param refund: The refund of this InlineResponse2012Links. - :type: InlineResponse201LinksSelf - """ - - self._refund = refund - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2012Links): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_2_order_information.py b/CyberSource/models/inline_response_201_2_order_information.py deleted file mode 100644 index 2d0863d8..00000000 --- a/CyberSource/models/inline_response_201_2_order_information.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2012OrderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'amount_details': 'InlineResponse2012OrderInformationAmountDetails', - 'invoice_details': 'InlineResponse201OrderInformationInvoiceDetails' - } - - attribute_map = { - 'amount_details': 'amountDetails', - 'invoice_details': 'invoiceDetails' - } - - def __init__(self, amount_details=None, invoice_details=None): - """ - InlineResponse2012OrderInformation - a model defined in Swagger - """ - - self._amount_details = None - self._invoice_details = None - - if amount_details is not None: - self.amount_details = amount_details - if invoice_details is not None: - self.invoice_details = invoice_details - - @property - def amount_details(self): - """ - Gets the amount_details of this InlineResponse2012OrderInformation. - - :return: The amount_details of this InlineResponse2012OrderInformation. - :rtype: InlineResponse2012OrderInformationAmountDetails - """ - return self._amount_details - - @amount_details.setter - def amount_details(self, amount_details): - """ - Sets the amount_details of this InlineResponse2012OrderInformation. - - :param amount_details: The amount_details of this InlineResponse2012OrderInformation. - :type: InlineResponse2012OrderInformationAmountDetails - """ - - self._amount_details = amount_details - - @property - def invoice_details(self): - """ - Gets the invoice_details of this InlineResponse2012OrderInformation. - - :return: The invoice_details of this InlineResponse2012OrderInformation. - :rtype: InlineResponse201OrderInformationInvoiceDetails - """ - return self._invoice_details - - @invoice_details.setter - def invoice_details(self, invoice_details): - """ - Sets the invoice_details of this InlineResponse2012OrderInformation. - - :param invoice_details: The invoice_details of this InlineResponse2012OrderInformation. - :type: InlineResponse201OrderInformationInvoiceDetails - """ - - self._invoice_details = invoice_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2012OrderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_2_order_information_amount_details.py b/CyberSource/models/inline_response_201_2_order_information_amount_details.py deleted file mode 100644 index 3574df34..00000000 --- a/CyberSource/models/inline_response_201_2_order_information_amount_details.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2012OrderInformationAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'total_amount': 'str', - 'currency': 'str' - } - - attribute_map = { - 'total_amount': 'totalAmount', - 'currency': 'currency' - } - - def __init__(self, total_amount=None, currency=None): - """ - InlineResponse2012OrderInformationAmountDetails - a model defined in Swagger - """ - - self._total_amount = None - self._currency = None - - if total_amount is not None: - self.total_amount = total_amount - if currency is not None: - self.currency = currency - - @property - def total_amount(self): - """ - Gets the total_amount of this InlineResponse2012OrderInformationAmountDetails. - Amount you requested for the capture. - - :return: The total_amount of this InlineResponse2012OrderInformationAmountDetails. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this InlineResponse2012OrderInformationAmountDetails. - Amount you requested for the capture. - - :param total_amount: The total_amount of this InlineResponse2012OrderInformationAmountDetails. - :type: str - """ - if total_amount is not None and len(total_amount) > 15: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `15`") - - self._total_amount = total_amount - - @property - def currency(self): - """ - Gets the currency of this InlineResponse2012OrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this InlineResponse2012OrderInformationAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this InlineResponse2012OrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this InlineResponse2012OrderInformationAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2012OrderInformationAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_2_processor_information.py b/CyberSource/models/inline_response_201_2_processor_information.py deleted file mode 100644 index a6dd9a1a..00000000 --- a/CyberSource/models/inline_response_201_2_processor_information.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2012ProcessorInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'transaction_id': 'str' - } - - attribute_map = { - 'transaction_id': 'transactionId' - } - - def __init__(self, transaction_id=None): - """ - InlineResponse2012ProcessorInformation - a model defined in Swagger - """ - - self._transaction_id = None - - if transaction_id is not None: - self.transaction_id = transaction_id - - @property - def transaction_id(self): - """ - Gets the transaction_id of this InlineResponse2012ProcessorInformation. - Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 - - :return: The transaction_id of this InlineResponse2012ProcessorInformation. - :rtype: str - """ - return self._transaction_id - - @transaction_id.setter - def transaction_id(self, transaction_id): - """ - Sets the transaction_id of this InlineResponse2012ProcessorInformation. - Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 - - :param transaction_id: The transaction_id of this InlineResponse2012ProcessorInformation. - :type: str - """ - if transaction_id is not None and len(transaction_id) > 18: - raise ValueError("Invalid value for `transaction_id`, length must be less than or equal to `18`") - - self._transaction_id = transaction_id - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2012ProcessorInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_3.py b/CyberSource/models/inline_response_201_3.py deleted file mode 100644 index 46b543e3..00000000 --- a/CyberSource/models/inline_response_201_3.py +++ /dev/null @@ -1,349 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2013(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse2013Links', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'reconciliation_id': 'str', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'refund_amount_details': 'InlineResponse2013RefundAmountDetails', - 'processor_information': 'InlineResponse2013ProcessorInformation', - 'order_information': 'InlineResponse2013OrderInformation' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reconciliation_id': 'reconciliationId', - 'client_reference_information': 'clientReferenceInformation', - 'refund_amount_details': 'refundAmountDetails', - 'processor_information': 'processorInformation', - 'order_information': 'orderInformation' - } - - def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, refund_amount_details=None, processor_information=None, order_information=None): - """ - InlineResponse2013 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._submit_time_utc = None - self._status = None - self._reconciliation_id = None - self._client_reference_information = None - self._refund_amount_details = None - self._processor_information = None - self._order_information = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if refund_amount_details is not None: - self.refund_amount_details = refund_amount_details - if processor_information is not None: - self.processor_information = processor_information - if order_information is not None: - self.order_information = order_information - - @property - def links(self): - """ - Gets the links of this InlineResponse2013. - - :return: The links of this InlineResponse2013. - :rtype: InlineResponse2013Links - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2013. - - :param links: The links of this InlineResponse2013. - :type: InlineResponse2013Links - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2013. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse2013. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2013. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse2013. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse2013. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse2013. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse2013. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse2013. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse2013. - The status of the submitted transaction. - - :return: The status of this InlineResponse2013. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse2013. - The status of the submitted transaction. - - :param status: The status of this InlineResponse2013. - :type: str - """ - allowed_values = ["PENDING"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this InlineResponse2013. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :return: The reconciliation_id of this InlineResponse2013. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this InlineResponse2013. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :param reconciliation_id: The reconciliation_id of this InlineResponse2013. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse2013. - - :return: The client_reference_information of this InlineResponse2013. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse2013. - - :param client_reference_information: The client_reference_information of this InlineResponse2013. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def refund_amount_details(self): - """ - Gets the refund_amount_details of this InlineResponse2013. - - :return: The refund_amount_details of this InlineResponse2013. - :rtype: InlineResponse2013RefundAmountDetails - """ - return self._refund_amount_details - - @refund_amount_details.setter - def refund_amount_details(self, refund_amount_details): - """ - Sets the refund_amount_details of this InlineResponse2013. - - :param refund_amount_details: The refund_amount_details of this InlineResponse2013. - :type: InlineResponse2013RefundAmountDetails - """ - - self._refund_amount_details = refund_amount_details - - @property - def processor_information(self): - """ - Gets the processor_information of this InlineResponse2013. - - :return: The processor_information of this InlineResponse2013. - :rtype: InlineResponse2013ProcessorInformation - """ - return self._processor_information - - @processor_information.setter - def processor_information(self, processor_information): - """ - Sets the processor_information of this InlineResponse2013. - - :param processor_information: The processor_information of this InlineResponse2013. - :type: InlineResponse2013ProcessorInformation - """ - - self._processor_information = processor_information - - @property - def order_information(self): - """ - Gets the order_information of this InlineResponse2013. - - :return: The order_information of this InlineResponse2013. - :rtype: InlineResponse2013OrderInformation - """ - return self._order_information - - @order_information.setter - def order_information(self, order_information): - """ - Sets the order_information of this InlineResponse2013. - - :param order_information: The order_information of this InlineResponse2013. - :type: InlineResponse2013OrderInformation - """ - - self._order_information = order_information - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2013): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_3__links.py b/CyberSource/models/inline_response_201_3__links.py deleted file mode 100644 index 2d798a3c..00000000 --- a/CyberSource/models/inline_response_201_3__links.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2013Links(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - '_self': 'InlineResponse201LinksSelf', - 'void': 'InlineResponse201LinksSelf' - } - - attribute_map = { - '_self': 'self', - 'void': 'void' - } - - def __init__(self, _self=None, void=None): - """ - InlineResponse2013Links - a model defined in Swagger - """ - - self.__self = None - self._void = None - - if _self is not None: - self._self = _self - if void is not None: - self.void = void - - @property - def _self(self): - """ - Gets the _self of this InlineResponse2013Links. - - :return: The _self of this InlineResponse2013Links. - :rtype: InlineResponse201LinksSelf - """ - return self.__self - - @_self.setter - def _self(self, _self): - """ - Sets the _self of this InlineResponse2013Links. - - :param _self: The _self of this InlineResponse2013Links. - :type: InlineResponse201LinksSelf - """ - - self.__self = _self - - @property - def void(self): - """ - Gets the void of this InlineResponse2013Links. - - :return: The void of this InlineResponse2013Links. - :rtype: InlineResponse201LinksSelf - """ - return self._void - - @void.setter - def void(self, void): - """ - Sets the void of this InlineResponse2013Links. - - :param void: The void of this InlineResponse2013Links. - :type: InlineResponse201LinksSelf - """ - - self._void = void - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2013Links): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_3_order_information.py b/CyberSource/models/inline_response_201_3_order_information.py deleted file mode 100644 index 55816bcc..00000000 --- a/CyberSource/models/inline_response_201_3_order_information.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2013OrderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'invoice_details': 'InlineResponse201OrderInformationInvoiceDetails' - } - - attribute_map = { - 'invoice_details': 'invoiceDetails' - } - - def __init__(self, invoice_details=None): - """ - InlineResponse2013OrderInformation - a model defined in Swagger - """ - - self._invoice_details = None - - if invoice_details is not None: - self.invoice_details = invoice_details - - @property - def invoice_details(self): - """ - Gets the invoice_details of this InlineResponse2013OrderInformation. - - :return: The invoice_details of this InlineResponse2013OrderInformation. - :rtype: InlineResponse201OrderInformationInvoiceDetails - """ - return self._invoice_details - - @invoice_details.setter - def invoice_details(self, invoice_details): - """ - Sets the invoice_details of this InlineResponse2013OrderInformation. - - :param invoice_details: The invoice_details of this InlineResponse2013OrderInformation. - :type: InlineResponse201OrderInformationInvoiceDetails - """ - - self._invoice_details = invoice_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2013OrderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_3_processor_information.py b/CyberSource/models/inline_response_201_3_processor_information.py deleted file mode 100644 index 76a8f638..00000000 --- a/CyberSource/models/inline_response_201_3_processor_information.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2013ProcessorInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'transaction_id': 'str', - 'forwarded_acquirer_code': 'str' - } - - attribute_map = { - 'transaction_id': 'transactionId', - 'forwarded_acquirer_code': 'forwardedAcquirerCode' - } - - def __init__(self, transaction_id=None, forwarded_acquirer_code=None): - """ - InlineResponse2013ProcessorInformation - a model defined in Swagger - """ - - self._transaction_id = None - self._forwarded_acquirer_code = None - - if transaction_id is not None: - self.transaction_id = transaction_id - if forwarded_acquirer_code is not None: - self.forwarded_acquirer_code = forwarded_acquirer_code - - @property - def transaction_id(self): - """ - Gets the transaction_id of this InlineResponse2013ProcessorInformation. - Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 - - :return: The transaction_id of this InlineResponse2013ProcessorInformation. - :rtype: str - """ - return self._transaction_id - - @transaction_id.setter - def transaction_id(self, transaction_id): - """ - Sets the transaction_id of this InlineResponse2013ProcessorInformation. - Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 - - :param transaction_id: The transaction_id of this InlineResponse2013ProcessorInformation. - :type: str - """ - if transaction_id is not None and len(transaction_id) > 18: - raise ValueError("Invalid value for `transaction_id`, length must be less than or equal to `18`") - - self._transaction_id = transaction_id - - @property - def forwarded_acquirer_code(self): - """ - Gets the forwarded_acquirer_code of this InlineResponse2013ProcessorInformation. - Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. - - :return: The forwarded_acquirer_code of this InlineResponse2013ProcessorInformation. - :rtype: str - """ - return self._forwarded_acquirer_code - - @forwarded_acquirer_code.setter - def forwarded_acquirer_code(self, forwarded_acquirer_code): - """ - Sets the forwarded_acquirer_code of this InlineResponse2013ProcessorInformation. - Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. - - :param forwarded_acquirer_code: The forwarded_acquirer_code of this InlineResponse2013ProcessorInformation. - :type: str - """ - if forwarded_acquirer_code is not None and len(forwarded_acquirer_code) > 32: - raise ValueError("Invalid value for `forwarded_acquirer_code`, length must be less than or equal to `32`") - - self._forwarded_acquirer_code = forwarded_acquirer_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2013ProcessorInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_3_refund_amount_details.py b/CyberSource/models/inline_response_201_3_refund_amount_details.py deleted file mode 100644 index 12fb61a8..00000000 --- a/CyberSource/models/inline_response_201_3_refund_amount_details.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2013RefundAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'refund_amount': 'str', - 'currency': 'str' - } - - attribute_map = { - 'refund_amount': 'refundAmount', - 'currency': 'currency' - } - - def __init__(self, refund_amount=None, currency=None): - """ - InlineResponse2013RefundAmountDetails - a model defined in Swagger - """ - - self._refund_amount = None - self._currency = None - - if refund_amount is not None: - self.refund_amount = refund_amount - if currency is not None: - self.currency = currency - - @property - def refund_amount(self): - """ - Gets the refund_amount of this InlineResponse2013RefundAmountDetails. - Total amount of the refund. - - :return: The refund_amount of this InlineResponse2013RefundAmountDetails. - :rtype: str - """ - return self._refund_amount - - @refund_amount.setter - def refund_amount(self, refund_amount): - """ - Sets the refund_amount of this InlineResponse2013RefundAmountDetails. - Total amount of the refund. - - :param refund_amount: The refund_amount of this InlineResponse2013RefundAmountDetails. - :type: str - """ - if refund_amount is not None and len(refund_amount) > 15: - raise ValueError("Invalid value for `refund_amount`, length must be less than or equal to `15`") - - self._refund_amount = refund_amount - - @property - def currency(self): - """ - Gets the currency of this InlineResponse2013RefundAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this InlineResponse2013RefundAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this InlineResponse2013RefundAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this InlineResponse2013RefundAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2013RefundAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_4.py b/CyberSource/models/inline_response_201_4.py deleted file mode 100644 index 9c89f770..00000000 --- a/CyberSource/models/inline_response_201_4.py +++ /dev/null @@ -1,349 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2014(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse2013Links', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'reconciliation_id': 'str', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'credit_amount_details': 'InlineResponse2014CreditAmountDetails', - 'processor_information': 'InlineResponse2013ProcessorInformation', - 'order_information': 'InlineResponse2013OrderInformation' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reconciliation_id': 'reconciliationId', - 'client_reference_information': 'clientReferenceInformation', - 'credit_amount_details': 'creditAmountDetails', - 'processor_information': 'processorInformation', - 'order_information': 'orderInformation' - } - - def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, credit_amount_details=None, processor_information=None, order_information=None): - """ - InlineResponse2014 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._submit_time_utc = None - self._status = None - self._reconciliation_id = None - self._client_reference_information = None - self._credit_amount_details = None - self._processor_information = None - self._order_information = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if credit_amount_details is not None: - self.credit_amount_details = credit_amount_details - if processor_information is not None: - self.processor_information = processor_information - if order_information is not None: - self.order_information = order_information - - @property - def links(self): - """ - Gets the links of this InlineResponse2014. - - :return: The links of this InlineResponse2014. - :rtype: InlineResponse2013Links - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2014. - - :param links: The links of this InlineResponse2014. - :type: InlineResponse2013Links - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2014. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse2014. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2014. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse2014. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse2014. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse2014. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse2014. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse2014. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse2014. - The status of the submitted transaction. - - :return: The status of this InlineResponse2014. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse2014. - The status of the submitted transaction. - - :param status: The status of this InlineResponse2014. - :type: str - """ - allowed_values = ["PENDING"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this InlineResponse2014. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :return: The reconciliation_id of this InlineResponse2014. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this InlineResponse2014. - The reconciliation id for the submitted transaction. This value is not returned for all processors. - - :param reconciliation_id: The reconciliation_id of this InlineResponse2014. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse2014. - - :return: The client_reference_information of this InlineResponse2014. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse2014. - - :param client_reference_information: The client_reference_information of this InlineResponse2014. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def credit_amount_details(self): - """ - Gets the credit_amount_details of this InlineResponse2014. - - :return: The credit_amount_details of this InlineResponse2014. - :rtype: InlineResponse2014CreditAmountDetails - """ - return self._credit_amount_details - - @credit_amount_details.setter - def credit_amount_details(self, credit_amount_details): - """ - Sets the credit_amount_details of this InlineResponse2014. - - :param credit_amount_details: The credit_amount_details of this InlineResponse2014. - :type: InlineResponse2014CreditAmountDetails - """ - - self._credit_amount_details = credit_amount_details - - @property - def processor_information(self): - """ - Gets the processor_information of this InlineResponse2014. - - :return: The processor_information of this InlineResponse2014. - :rtype: InlineResponse2013ProcessorInformation - """ - return self._processor_information - - @processor_information.setter - def processor_information(self, processor_information): - """ - Sets the processor_information of this InlineResponse2014. - - :param processor_information: The processor_information of this InlineResponse2014. - :type: InlineResponse2013ProcessorInformation - """ - - self._processor_information = processor_information - - @property - def order_information(self): - """ - Gets the order_information of this InlineResponse2014. - - :return: The order_information of this InlineResponse2014. - :rtype: InlineResponse2013OrderInformation - """ - return self._order_information - - @order_information.setter - def order_information(self, order_information): - """ - Sets the order_information of this InlineResponse2014. - - :param order_information: The order_information of this InlineResponse2014. - :type: InlineResponse2013OrderInformation - """ - - self._order_information = order_information - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2014): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_4_credit_amount_details.py b/CyberSource/models/inline_response_201_4_credit_amount_details.py deleted file mode 100644 index 7c15d153..00000000 --- a/CyberSource/models/inline_response_201_4_credit_amount_details.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2014CreditAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'credit_amount': 'str', - 'currency': 'str' - } - - attribute_map = { - 'credit_amount': 'creditAmount', - 'currency': 'currency' - } - - def __init__(self, credit_amount=None, currency=None): - """ - InlineResponse2014CreditAmountDetails - a model defined in Swagger - """ - - self._credit_amount = None - self._currency = None - - if credit_amount is not None: - self.credit_amount = credit_amount - if currency is not None: - self.currency = currency - - @property - def credit_amount(self): - """ - Gets the credit_amount of this InlineResponse2014CreditAmountDetails. - Total amount of the credit. - - :return: The credit_amount of this InlineResponse2014CreditAmountDetails. - :rtype: str - """ - return self._credit_amount - - @credit_amount.setter - def credit_amount(self, credit_amount): - """ - Sets the credit_amount of this InlineResponse2014CreditAmountDetails. - Total amount of the credit. - - :param credit_amount: The credit_amount of this InlineResponse2014CreditAmountDetails. - :type: str - """ - if credit_amount is not None and len(credit_amount) > 15: - raise ValueError("Invalid value for `credit_amount`, length must be less than or equal to `15`") - - self._credit_amount = credit_amount - - @property - def currency(self): - """ - Gets the currency of this InlineResponse2014CreditAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this InlineResponse2014CreditAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this InlineResponse2014CreditAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this InlineResponse2014CreditAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2014CreditAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_5.py b/CyberSource/models/inline_response_201_5.py deleted file mode 100644 index 24979323..00000000 --- a/CyberSource/models/inline_response_201_5.py +++ /dev/null @@ -1,267 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2015(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse201EmbeddedCaptureLinks', - 'id': 'str', - 'submit_time_utc': 'str', - 'status': 'str', - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'void_amount_details': 'InlineResponse2015VoidAmountDetails' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'client_reference_information': 'clientReferenceInformation', - 'void_amount_details': 'voidAmountDetails' - } - - def __init__(self, links=None, id=None, submit_time_utc=None, status=None, client_reference_information=None, void_amount_details=None): - """ - InlineResponse2015 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._submit_time_utc = None - self._status = None - self._client_reference_information = None - self._void_amount_details = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if void_amount_details is not None: - self.void_amount_details = void_amount_details - - @property - def links(self): - """ - Gets the links of this InlineResponse2015. - - :return: The links of this InlineResponse2015. - :rtype: InlineResponse201EmbeddedCaptureLinks - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2015. - - :param links: The links of this InlineResponse2015. - :type: InlineResponse201EmbeddedCaptureLinks - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2015. - An unique identification number assigned by CyberSource to identify the submitted request. - - :return: The id of this InlineResponse2015. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2015. - An unique identification number assigned by CyberSource to identify the submitted request. - - :param id: The id of this InlineResponse2015. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse2015. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse2015. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse2015. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse2015. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse2015. - The status of the submitted transaction. - - :return: The status of this InlineResponse2015. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse2015. - The status of the submitted transaction. - - :param status: The status of this InlineResponse2015. - :type: str - """ - allowed_values = ["VOIDED"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this InlineResponse2015. - - :return: The client_reference_information of this InlineResponse2015. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this InlineResponse2015. - - :param client_reference_information: The client_reference_information of this InlineResponse2015. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def void_amount_details(self): - """ - Gets the void_amount_details of this InlineResponse2015. - - :return: The void_amount_details of this InlineResponse2015. - :rtype: InlineResponse2015VoidAmountDetails - """ - return self._void_amount_details - - @void_amount_details.setter - def void_amount_details(self, void_amount_details): - """ - Sets the void_amount_details of this InlineResponse2015. - - :param void_amount_details: The void_amount_details of this InlineResponse2015. - :type: InlineResponse2015VoidAmountDetails - """ - - self._void_amount_details = void_amount_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2015): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_5_void_amount_details.py b/CyberSource/models/inline_response_201_5_void_amount_details.py deleted file mode 100644 index 7cdce141..00000000 --- a/CyberSource/models/inline_response_201_5_void_amount_details.py +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2015VoidAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'void_amount': 'str', - 'original_transaction_amount': 'str', - 'currency': 'str' - } - - attribute_map = { - 'void_amount': 'voidAmount', - 'original_transaction_amount': 'originalTransactionAmount', - 'currency': 'currency' - } - - def __init__(self, void_amount=None, original_transaction_amount=None, currency=None): - """ - InlineResponse2015VoidAmountDetails - a model defined in Swagger - """ - - self._void_amount = None - self._original_transaction_amount = None - self._currency = None - - if void_amount is not None: - self.void_amount = void_amount - if original_transaction_amount is not None: - self.original_transaction_amount = original_transaction_amount - if currency is not None: - self.currency = currency - - @property - def void_amount(self): - """ - Gets the void_amount of this InlineResponse2015VoidAmountDetails. - Total amount of the void. - - :return: The void_amount of this InlineResponse2015VoidAmountDetails. - :rtype: str - """ - return self._void_amount - - @void_amount.setter - def void_amount(self, void_amount): - """ - Sets the void_amount of this InlineResponse2015VoidAmountDetails. - Total amount of the void. - - :param void_amount: The void_amount of this InlineResponse2015VoidAmountDetails. - :type: str - """ - - self._void_amount = void_amount - - @property - def original_transaction_amount(self): - """ - Gets the original_transaction_amount of this InlineResponse2015VoidAmountDetails. - Amount of the original transaction. - - :return: The original_transaction_amount of this InlineResponse2015VoidAmountDetails. - :rtype: str - """ - return self._original_transaction_amount - - @original_transaction_amount.setter - def original_transaction_amount(self, original_transaction_amount): - """ - Sets the original_transaction_amount of this InlineResponse2015VoidAmountDetails. - Amount of the original transaction. - - :param original_transaction_amount: The original_transaction_amount of this InlineResponse2015VoidAmountDetails. - :type: str - """ - - self._original_transaction_amount = original_transaction_amount - - @property - def currency(self): - """ - Gets the currency of this InlineResponse2015VoidAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this InlineResponse2015VoidAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this InlineResponse2015VoidAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this InlineResponse2015VoidAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2015VoidAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_6.py b/CyberSource/models/inline_response_201_6.py deleted file mode 100644 index 7acc7786..00000000 --- a/CyberSource/models/inline_response_201_6.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse2016(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InstrumentidentifiersLinks', - 'id': 'str', - 'object': 'str', - 'state': 'str', - 'bank_account': 'PaymentinstrumentsBankAccount', - 'card': 'PaymentinstrumentsCard', - 'buyer_information': 'PaymentinstrumentsBuyerInformation', - 'bill_to': 'PaymentinstrumentsBillTo', - 'processing_information': 'PaymentinstrumentsProcessingInformation', - 'merchant_information': 'PaymentinstrumentsMerchantInformation', - 'meta_data': 'InstrumentidentifiersMetadata', - 'instrument_identifier': 'PaymentinstrumentsInstrumentIdentifier' - } - - attribute_map = { - 'links': '_links', - 'id': 'id', - 'object': 'object', - 'state': 'state', - 'bank_account': 'bankAccount', - 'card': 'card', - 'buyer_information': 'buyerInformation', - 'bill_to': 'billTo', - 'processing_information': 'processingInformation', - 'merchant_information': 'merchantInformation', - 'meta_data': 'metaData', - 'instrument_identifier': 'instrumentIdentifier' - } - - def __init__(self, links=None, id=None, object=None, state=None, bank_account=None, card=None, buyer_information=None, bill_to=None, processing_information=None, merchant_information=None, meta_data=None, instrument_identifier=None): - """ - InlineResponse2016 - a model defined in Swagger - """ - - self._links = None - self._id = None - self._object = None - self._state = None - self._bank_account = None - self._card = None - self._buyer_information = None - self._bill_to = None - self._processing_information = None - self._merchant_information = None - self._meta_data = None - self._instrument_identifier = None - - if links is not None: - self.links = links - if id is not None: - self.id = id - if object is not None: - self.object = object - if state is not None: - self.state = state - if bank_account is not None: - self.bank_account = bank_account - if card is not None: - self.card = card - if buyer_information is not None: - self.buyer_information = buyer_information - if bill_to is not None: - self.bill_to = bill_to - if processing_information is not None: - self.processing_information = processing_information - if merchant_information is not None: - self.merchant_information = merchant_information - if meta_data is not None: - self.meta_data = meta_data - if instrument_identifier is not None: - self.instrument_identifier = instrument_identifier - - @property - def links(self): - """ - Gets the links of this InlineResponse2016. - - :return: The links of this InlineResponse2016. - :rtype: InstrumentidentifiersLinks - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse2016. - - :param links: The links of this InlineResponse2016. - :type: InstrumentidentifiersLinks - """ - - self._links = links - - @property - def id(self): - """ - Gets the id of this InlineResponse2016. - Unique identification number assigned by CyberSource to the submitted request. - - :return: The id of this InlineResponse2016. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this InlineResponse2016. - Unique identification number assigned by CyberSource to the submitted request. - - :param id: The id of this InlineResponse2016. - :type: str - """ - - self._id = id - - @property - def object(self): - """ - Gets the object of this InlineResponse2016. - Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. - - :return: The object of this InlineResponse2016. - :rtype: str - """ - return self._object - - @object.setter - def object(self, object): - """ - Sets the object of this InlineResponse2016. - Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. - - :param object: The object of this InlineResponse2016. - :type: str - """ - allowed_values = ["paymentInstrument"] - if object not in allowed_values: - raise ValueError( - "Invalid value for `object` ({0}), must be one of {1}" - .format(object, allowed_values) - ) - - self._object = object - - @property - def state(self): - """ - Gets the state of this InlineResponse2016. - Current state of the token. - - :return: The state of this InlineResponse2016. - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """ - Sets the state of this InlineResponse2016. - Current state of the token. - - :param state: The state of this InlineResponse2016. - :type: str - """ - allowed_values = ["ACTIVE", "CLOSED"] - if state not in allowed_values: - raise ValueError( - "Invalid value for `state` ({0}), must be one of {1}" - .format(state, allowed_values) - ) - - self._state = state - - @property - def bank_account(self): - """ - Gets the bank_account of this InlineResponse2016. - - :return: The bank_account of this InlineResponse2016. - :rtype: PaymentinstrumentsBankAccount - """ - return self._bank_account - - @bank_account.setter - def bank_account(self, bank_account): - """ - Sets the bank_account of this InlineResponse2016. - - :param bank_account: The bank_account of this InlineResponse2016. - :type: PaymentinstrumentsBankAccount - """ - - self._bank_account = bank_account - - @property - def card(self): - """ - Gets the card of this InlineResponse2016. - - :return: The card of this InlineResponse2016. - :rtype: PaymentinstrumentsCard - """ - return self._card - - @card.setter - def card(self, card): - """ - Sets the card of this InlineResponse2016. - - :param card: The card of this InlineResponse2016. - :type: PaymentinstrumentsCard - """ - - self._card = card - - @property - def buyer_information(self): - """ - Gets the buyer_information of this InlineResponse2016. - - :return: The buyer_information of this InlineResponse2016. - :rtype: PaymentinstrumentsBuyerInformation - """ - return self._buyer_information - - @buyer_information.setter - def buyer_information(self, buyer_information): - """ - Sets the buyer_information of this InlineResponse2016. - - :param buyer_information: The buyer_information of this InlineResponse2016. - :type: PaymentinstrumentsBuyerInformation - """ - - self._buyer_information = buyer_information - - @property - def bill_to(self): - """ - Gets the bill_to of this InlineResponse2016. - - :return: The bill_to of this InlineResponse2016. - :rtype: PaymentinstrumentsBillTo - """ - return self._bill_to - - @bill_to.setter - def bill_to(self, bill_to): - """ - Sets the bill_to of this InlineResponse2016. - - :param bill_to: The bill_to of this InlineResponse2016. - :type: PaymentinstrumentsBillTo - """ - - self._bill_to = bill_to - - @property - def processing_information(self): - """ - Gets the processing_information of this InlineResponse2016. - - :return: The processing_information of this InlineResponse2016. - :rtype: PaymentinstrumentsProcessingInformation - """ - return self._processing_information - - @processing_information.setter - def processing_information(self, processing_information): - """ - Sets the processing_information of this InlineResponse2016. - - :param processing_information: The processing_information of this InlineResponse2016. - :type: PaymentinstrumentsProcessingInformation - """ - - self._processing_information = processing_information - - @property - def merchant_information(self): - """ - Gets the merchant_information of this InlineResponse2016. - - :return: The merchant_information of this InlineResponse2016. - :rtype: PaymentinstrumentsMerchantInformation - """ - return self._merchant_information - - @merchant_information.setter - def merchant_information(self, merchant_information): - """ - Sets the merchant_information of this InlineResponse2016. - - :param merchant_information: The merchant_information of this InlineResponse2016. - :type: PaymentinstrumentsMerchantInformation - """ - - self._merchant_information = merchant_information - - @property - def meta_data(self): - """ - Gets the meta_data of this InlineResponse2016. - - :return: The meta_data of this InlineResponse2016. - :rtype: InstrumentidentifiersMetadata - """ - return self._meta_data - - @meta_data.setter - def meta_data(self, meta_data): - """ - Sets the meta_data of this InlineResponse2016. - - :param meta_data: The meta_data of this InlineResponse2016. - :type: InstrumentidentifiersMetadata - """ - - self._meta_data = meta_data - - @property - def instrument_identifier(self): - """ - Gets the instrument_identifier of this InlineResponse2016. - - :return: The instrument_identifier of this InlineResponse2016. - :rtype: PaymentinstrumentsInstrumentIdentifier - """ - return self._instrument_identifier - - @instrument_identifier.setter - def instrument_identifier(self, instrument_identifier): - """ - Sets the instrument_identifier of this InlineResponse2016. - - :param instrument_identifier: The instrument_identifier of this InlineResponse2016. - :type: PaymentinstrumentsInstrumentIdentifier - """ - - self._instrument_identifier = instrument_identifier - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse2016): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201__embedded.py b/CyberSource/models/inline_response_201__embedded.py deleted file mode 100644 index 1b810f88..00000000 --- a/CyberSource/models/inline_response_201__embedded.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201Embedded(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'capture': 'InlineResponse201EmbeddedCapture' - } - - attribute_map = { - 'capture': 'capture' - } - - def __init__(self, capture=None): - """ - InlineResponse201Embedded - a model defined in Swagger - """ - - self._capture = None - - if capture is not None: - self.capture = capture - - @property - def capture(self): - """ - Gets the capture of this InlineResponse201Embedded. - - :return: The capture of this InlineResponse201Embedded. - :rtype: InlineResponse201EmbeddedCapture - """ - return self._capture - - @capture.setter - def capture(self, capture): - """ - Sets the capture of this InlineResponse201Embedded. - - :param capture: The capture of this InlineResponse201Embedded. - :type: InlineResponse201EmbeddedCapture - """ - - self._capture = capture - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201Embedded): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201__embedded_capture.py b/CyberSource/models/inline_response_201__embedded_capture.py deleted file mode 100644 index f2afb667..00000000 --- a/CyberSource/models/inline_response_201__embedded_capture.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201EmbeddedCapture(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'status': 'str', - 'links': 'InlineResponse201EmbeddedCaptureLinks' - } - - attribute_map = { - 'status': 'status', - 'links': '_links' - } - - def __init__(self, status=None, links=None): - """ - InlineResponse201EmbeddedCapture - a model defined in Swagger - """ - - self._status = None - self._links = None - - if status is not None: - self.status = status - if links is not None: - self.links = links - - @property - def status(self): - """ - Gets the status of this InlineResponse201EmbeddedCapture. - The status of the submitted transaction. - - :return: The status of this InlineResponse201EmbeddedCapture. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse201EmbeddedCapture. - The status of the submitted transaction. - - :param status: The status of this InlineResponse201EmbeddedCapture. - :type: str - """ - - self._status = status - - @property - def links(self): - """ - Gets the links of this InlineResponse201EmbeddedCapture. - - :return: The links of this InlineResponse201EmbeddedCapture. - :rtype: InlineResponse201EmbeddedCaptureLinks - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse201EmbeddedCapture. - - :param links: The links of this InlineResponse201EmbeddedCapture. - :type: InlineResponse201EmbeddedCaptureLinks - """ - - self._links = links - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201EmbeddedCapture): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201__embedded_capture__links.py b/CyberSource/models/inline_response_201__embedded_capture__links.py deleted file mode 100644 index aaa4487c..00000000 --- a/CyberSource/models/inline_response_201__embedded_capture__links.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201EmbeddedCaptureLinks(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - '_self': 'InlineResponse201LinksSelf' - } - - attribute_map = { - '_self': 'self' - } - - def __init__(self, _self=None): - """ - InlineResponse201EmbeddedCaptureLinks - a model defined in Swagger - """ - - self.__self = None - - if _self is not None: - self._self = _self - - @property - def _self(self): - """ - Gets the _self of this InlineResponse201EmbeddedCaptureLinks. - - :return: The _self of this InlineResponse201EmbeddedCaptureLinks. - :rtype: InlineResponse201LinksSelf - """ - return self.__self - - @_self.setter - def _self(self, _self): - """ - Sets the _self of this InlineResponse201EmbeddedCaptureLinks. - - :param _self: The _self of this InlineResponse201EmbeddedCaptureLinks. - :type: InlineResponse201LinksSelf - """ - - self.__self = _self - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201EmbeddedCaptureLinks): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201__links.py b/CyberSource/models/inline_response_201__links.py deleted file mode 100644 index 3af91345..00000000 --- a/CyberSource/models/inline_response_201__links.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201Links(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - '_self': 'InlineResponse201LinksSelf', - 'reversal': 'InlineResponse201LinksSelf', - 'capture': 'InlineResponse201LinksSelf' - } - - attribute_map = { - '_self': 'self', - 'reversal': 'reversal', - 'capture': 'capture' - } - - def __init__(self, _self=None, reversal=None, capture=None): - """ - InlineResponse201Links - a model defined in Swagger - """ - - self.__self = None - self._reversal = None - self._capture = None - - if _self is not None: - self._self = _self - if reversal is not None: - self.reversal = reversal - if capture is not None: - self.capture = capture - - @property - def _self(self): - """ - Gets the _self of this InlineResponse201Links. - - :return: The _self of this InlineResponse201Links. - :rtype: InlineResponse201LinksSelf - """ - return self.__self - - @_self.setter - def _self(self, _self): - """ - Sets the _self of this InlineResponse201Links. - - :param _self: The _self of this InlineResponse201Links. - :type: InlineResponse201LinksSelf - """ - - self.__self = _self - - @property - def reversal(self): - """ - Gets the reversal of this InlineResponse201Links. - - :return: The reversal of this InlineResponse201Links. - :rtype: InlineResponse201LinksSelf - """ - return self._reversal - - @reversal.setter - def reversal(self, reversal): - """ - Sets the reversal of this InlineResponse201Links. - - :param reversal: The reversal of this InlineResponse201Links. - :type: InlineResponse201LinksSelf - """ - - self._reversal = reversal - - @property - def capture(self): - """ - Gets the capture of this InlineResponse201Links. - - :return: The capture of this InlineResponse201Links. - :rtype: InlineResponse201LinksSelf - """ - return self._capture - - @capture.setter - def capture(self, capture): - """ - Sets the capture of this InlineResponse201Links. - - :param capture: The capture of this InlineResponse201Links. - :type: InlineResponse201LinksSelf - """ - - self._capture = capture - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201Links): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201__links_self.py b/CyberSource/models/inline_response_201__links_self.py deleted file mode 100644 index edfc833a..00000000 --- a/CyberSource/models/inline_response_201__links_self.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201LinksSelf(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'href': 'str', - 'method': 'str' - } - - attribute_map = { - 'href': 'href', - 'method': 'method' - } - - def __init__(self, href=None, method=None): - """ - InlineResponse201LinksSelf - a model defined in Swagger - """ - - self._href = None - self._method = None - - if href is not None: - self.href = href - if method is not None: - self.method = method - - @property - def href(self): - """ - Gets the href of this InlineResponse201LinksSelf. - URL - - :return: The href of this InlineResponse201LinksSelf. - :rtype: str - """ - return self._href - - @href.setter - def href(self, href): - """ - Sets the href of this InlineResponse201LinksSelf. - URL - - :param href: The href of this InlineResponse201LinksSelf. - :type: str - """ - - self._href = href - - @property - def method(self): - """ - Gets the method of this InlineResponse201LinksSelf. - HTTP method applied to above URL - - :return: The method of this InlineResponse201LinksSelf. - :rtype: str - """ - return self._method - - @method.setter - def method(self, method): - """ - Sets the method of this InlineResponse201LinksSelf. - HTTP method applied to above URL - - :param method: The method of this InlineResponse201LinksSelf. - :type: str - """ - - self._method = method - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201LinksSelf): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_client_reference_information.py b/CyberSource/models/inline_response_201_client_reference_information.py deleted file mode 100644 index 67da0d3a..00000000 --- a/CyberSource/models/inline_response_201_client_reference_information.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ClientReferenceInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'code': 'str' - } - - attribute_map = { - 'code': 'code' - } - - def __init__(self, code=None): - """ - InlineResponse201ClientReferenceInformation - a model defined in Swagger - """ - - self._code = None - - if code is not None: - self.code = code - - @property - def code(self): - """ - Gets the code of this InlineResponse201ClientReferenceInformation. - Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. - - :return: The code of this InlineResponse201ClientReferenceInformation. - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this InlineResponse201ClientReferenceInformation. - Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. - - :param code: The code of this InlineResponse201ClientReferenceInformation. - :type: str - """ - if code is not None and len(code) > 50: - raise ValueError("Invalid value for `code`, length must be less than or equal to `50`") - - self._code = code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ClientReferenceInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_error_information.py b/CyberSource/models/inline_response_201_error_information.py deleted file mode 100644 index db897961..00000000 --- a/CyberSource/models/inline_response_201_error_information.py +++ /dev/null @@ -1,185 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ErrorInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'reason': 'str', - 'message': 'str', - 'details': 'list[InlineResponse201ErrorInformationDetails]' - } - - attribute_map = { - 'reason': 'reason', - 'message': 'message', - 'details': 'details' - } - - def __init__(self, reason=None, message=None, details=None): - """ - InlineResponse201ErrorInformation - a model defined in Swagger - """ - - self._reason = None - self._message = None - self._details = None - - if reason is not None: - self.reason = reason - if message is not None: - self.message = message - if details is not None: - self.details = details - - @property - def reason(self): - """ - Gets the reason of this InlineResponse201ErrorInformation. - The reason of the status. - - :return: The reason of this InlineResponse201ErrorInformation. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this InlineResponse201ErrorInformation. - The reason of the status. - - :param reason: The reason of this InlineResponse201ErrorInformation. - :type: str - """ - allowed_values = ["AVS_FAILED", "CONTACT_PROCESSOR", "CV_FAILED", "EXPIRED_CARD", "PROCESSOR_DECLINED", "INSUFFICIENT_FUND", "STOLEN_LOST_CARD", "ISSUER_UNAVAILABLE", "UNAUTHORIZED_CARD", "CVN_NOT_MATCH", "EXCEEDS_CREDIT_LIMIT", "INVALID_CVN", "PAYMENT_REFUSED", "INVALID_ACCOUNT", "GENERAL_DECLINE"] - if reason not in allowed_values: - raise ValueError( - "Invalid value for `reason` ({0}), must be one of {1}" - .format(reason, allowed_values) - ) - - self._reason = reason - - @property - def message(self): - """ - Gets the message of this InlineResponse201ErrorInformation. - The detail message related to the status and reason listed above. - - :return: The message of this InlineResponse201ErrorInformation. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this InlineResponse201ErrorInformation. - The detail message related to the status and reason listed above. - - :param message: The message of this InlineResponse201ErrorInformation. - :type: str - """ - - self._message = message - - @property - def details(self): - """ - Gets the details of this InlineResponse201ErrorInformation. - - :return: The details of this InlineResponse201ErrorInformation. - :rtype: list[InlineResponse201ErrorInformationDetails] - """ - return self._details - - @details.setter - def details(self, details): - """ - Sets the details of this InlineResponse201ErrorInformation. - - :param details: The details of this InlineResponse201ErrorInformation. - :type: list[InlineResponse201ErrorInformationDetails] - """ - - self._details = details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ErrorInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_error_information_details.py b/CyberSource/models/inline_response_201_error_information_details.py deleted file mode 100644 index 383147eb..00000000 --- a/CyberSource/models/inline_response_201_error_information_details.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ErrorInformationDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'field': 'str', - 'reason': 'str' - } - - attribute_map = { - 'field': 'field', - 'reason': 'reason' - } - - def __init__(self, field=None, reason=None): - """ - InlineResponse201ErrorInformationDetails - a model defined in Swagger - """ - - self._field = None - self._reason = None - - if field is not None: - self.field = field - if reason is not None: - self.reason = reason - - @property - def field(self): - """ - Gets the field of this InlineResponse201ErrorInformationDetails. - This is the flattened JSON object field name/path that is either missing or invalid. - - :return: The field of this InlineResponse201ErrorInformationDetails. - :rtype: str - """ - return self._field - - @field.setter - def field(self, field): - """ - Sets the field of this InlineResponse201ErrorInformationDetails. - This is the flattened JSON object field name/path that is either missing or invalid. - - :param field: The field of this InlineResponse201ErrorInformationDetails. - :type: str - """ - - self._field = field - - @property - def reason(self): - """ - Gets the reason of this InlineResponse201ErrorInformationDetails. - Possible reasons for the error. - - :return: The reason of this InlineResponse201ErrorInformationDetails. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this InlineResponse201ErrorInformationDetails. - Possible reasons for the error. - - :param reason: The reason of this InlineResponse201ErrorInformationDetails. - :type: str - """ - allowed_values = ["MISSING_FIELD", "INVALID_DATA"] - if reason not in allowed_values: - raise ValueError( - "Invalid value for `reason` ({0}), must be one of {1}" - .format(reason, allowed_values) - ) - - self._reason = reason - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ErrorInformationDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_order_information.py b/CyberSource/models/inline_response_201_order_information.py deleted file mode 100644 index 2a46d899..00000000 --- a/CyberSource/models/inline_response_201_order_information.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201OrderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'amount_details': 'InlineResponse201OrderInformationAmountDetails', - 'invoice_details': 'InlineResponse201OrderInformationInvoiceDetails' - } - - attribute_map = { - 'amount_details': 'amountDetails', - 'invoice_details': 'invoiceDetails' - } - - def __init__(self, amount_details=None, invoice_details=None): - """ - InlineResponse201OrderInformation - a model defined in Swagger - """ - - self._amount_details = None - self._invoice_details = None - - if amount_details is not None: - self.amount_details = amount_details - if invoice_details is not None: - self.invoice_details = invoice_details - - @property - def amount_details(self): - """ - Gets the amount_details of this InlineResponse201OrderInformation. - - :return: The amount_details of this InlineResponse201OrderInformation. - :rtype: InlineResponse201OrderInformationAmountDetails - """ - return self._amount_details - - @amount_details.setter - def amount_details(self, amount_details): - """ - Sets the amount_details of this InlineResponse201OrderInformation. - - :param amount_details: The amount_details of this InlineResponse201OrderInformation. - :type: InlineResponse201OrderInformationAmountDetails - """ - - self._amount_details = amount_details - - @property - def invoice_details(self): - """ - Gets the invoice_details of this InlineResponse201OrderInformation. - - :return: The invoice_details of this InlineResponse201OrderInformation. - :rtype: InlineResponse201OrderInformationInvoiceDetails - """ - return self._invoice_details - - @invoice_details.setter - def invoice_details(self, invoice_details): - """ - Sets the invoice_details of this InlineResponse201OrderInformation. - - :param invoice_details: The invoice_details of this InlineResponse201OrderInformation. - :type: InlineResponse201OrderInformationInvoiceDetails - """ - - self._invoice_details = invoice_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201OrderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_order_information_amount_details.py b/CyberSource/models/inline_response_201_order_information_amount_details.py deleted file mode 100644 index b0f00ec5..00000000 --- a/CyberSource/models/inline_response_201_order_information_amount_details.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201OrderInformationAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'total_amount': 'str', - 'authorized_amount': 'str', - 'currency': 'str' - } - - attribute_map = { - 'total_amount': 'totalAmount', - 'authorized_amount': 'authorizedAmount', - 'currency': 'currency' - } - - def __init__(self, total_amount=None, authorized_amount=None, currency=None): - """ - InlineResponse201OrderInformationAmountDetails - a model defined in Swagger - """ - - self._total_amount = None - self._authorized_amount = None - self._currency = None - - if total_amount is not None: - self.total_amount = total_amount - if authorized_amount is not None: - self.authorized_amount = authorized_amount - if currency is not None: - self.currency = currency - - @property - def total_amount(self): - """ - Gets the total_amount of this InlineResponse201OrderInformationAmountDetails. - Amount you requested for the payment or capture. This value is returned for partial authorizations. - - :return: The total_amount of this InlineResponse201OrderInformationAmountDetails. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this InlineResponse201OrderInformationAmountDetails. - Amount you requested for the payment or capture. This value is returned for partial authorizations. - - :param total_amount: The total_amount of this InlineResponse201OrderInformationAmountDetails. - :type: str - """ - if total_amount is not None and len(total_amount) > 15: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `15`") - - self._total_amount = total_amount - - @property - def authorized_amount(self): - """ - Gets the authorized_amount of this InlineResponse201OrderInformationAmountDetails. - Amount that was authorized. - - :return: The authorized_amount of this InlineResponse201OrderInformationAmountDetails. - :rtype: str - """ - return self._authorized_amount - - @authorized_amount.setter - def authorized_amount(self, authorized_amount): - """ - Sets the authorized_amount of this InlineResponse201OrderInformationAmountDetails. - Amount that was authorized. - - :param authorized_amount: The authorized_amount of this InlineResponse201OrderInformationAmountDetails. - :type: str - """ - if authorized_amount is not None and len(authorized_amount) > 15: - raise ValueError("Invalid value for `authorized_amount`, length must be less than or equal to `15`") - - self._authorized_amount = authorized_amount - - @property - def currency(self): - """ - Gets the currency of this InlineResponse201OrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this InlineResponse201OrderInformationAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this InlineResponse201OrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this InlineResponse201OrderInformationAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201OrderInformationAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_order_information_invoice_details.py b/CyberSource/models/inline_response_201_order_information_invoice_details.py deleted file mode 100644 index f315953a..00000000 --- a/CyberSource/models/inline_response_201_order_information_invoice_details.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201OrderInformationInvoiceDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'level3_transmission_status': 'bool' - } - - attribute_map = { - 'level3_transmission_status': 'level3TransmissionStatus' - } - - def __init__(self, level3_transmission_status=None): - """ - InlineResponse201OrderInformationInvoiceDetails - a model defined in Swagger - """ - - self._level3_transmission_status = None - - if level3_transmission_status is not None: - self.level3_transmission_status = level3_transmission_status - - @property - def level3_transmission_status(self): - """ - Gets the level3_transmission_status of this InlineResponse201OrderInformationInvoiceDetails. - Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The level3_transmission_status of this InlineResponse201OrderInformationInvoiceDetails. - :rtype: bool - """ - return self._level3_transmission_status - - @level3_transmission_status.setter - def level3_transmission_status(self, level3_transmission_status): - """ - Sets the level3_transmission_status of this InlineResponse201OrderInformationInvoiceDetails. - Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param level3_transmission_status: The level3_transmission_status of this InlineResponse201OrderInformationInvoiceDetails. - :type: bool - """ - - self._level3_transmission_status = level3_transmission_status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201OrderInformationInvoiceDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_payment_information.py b/CyberSource/models/inline_response_201_payment_information.py deleted file mode 100644 index fcd0a302..00000000 --- a/CyberSource/models/inline_response_201_payment_information.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201PaymentInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'card': 'InlineResponse201PaymentInformationCard', - 'tokenized_card': 'InlineResponse201PaymentInformationTokenizedCard', - 'account_features': 'InlineResponse201PaymentInformationAccountFeatures' - } - - attribute_map = { - 'card': 'card', - 'tokenized_card': 'tokenizedCard', - 'account_features': 'accountFeatures' - } - - def __init__(self, card=None, tokenized_card=None, account_features=None): - """ - InlineResponse201PaymentInformation - a model defined in Swagger - """ - - self._card = None - self._tokenized_card = None - self._account_features = None - - if card is not None: - self.card = card - if tokenized_card is not None: - self.tokenized_card = tokenized_card - if account_features is not None: - self.account_features = account_features - - @property - def card(self): - """ - Gets the card of this InlineResponse201PaymentInformation. - - :return: The card of this InlineResponse201PaymentInformation. - :rtype: InlineResponse201PaymentInformationCard - """ - return self._card - - @card.setter - def card(self, card): - """ - Sets the card of this InlineResponse201PaymentInformation. - - :param card: The card of this InlineResponse201PaymentInformation. - :type: InlineResponse201PaymentInformationCard - """ - - self._card = card - - @property - def tokenized_card(self): - """ - Gets the tokenized_card of this InlineResponse201PaymentInformation. - - :return: The tokenized_card of this InlineResponse201PaymentInformation. - :rtype: InlineResponse201PaymentInformationTokenizedCard - """ - return self._tokenized_card - - @tokenized_card.setter - def tokenized_card(self, tokenized_card): - """ - Sets the tokenized_card of this InlineResponse201PaymentInformation. - - :param tokenized_card: The tokenized_card of this InlineResponse201PaymentInformation. - :type: InlineResponse201PaymentInformationTokenizedCard - """ - - self._tokenized_card = tokenized_card - - @property - def account_features(self): - """ - Gets the account_features of this InlineResponse201PaymentInformation. - - :return: The account_features of this InlineResponse201PaymentInformation. - :rtype: InlineResponse201PaymentInformationAccountFeatures - """ - return self._account_features - - @account_features.setter - def account_features(self, account_features): - """ - Sets the account_features of this InlineResponse201PaymentInformation. - - :param account_features: The account_features of this InlineResponse201PaymentInformation. - :type: InlineResponse201PaymentInformationAccountFeatures - """ - - self._account_features = account_features - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201PaymentInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_payment_information_account_features.py b/CyberSource/models/inline_response_201_payment_information_account_features.py deleted file mode 100644 index 66622e5c..00000000 --- a/CyberSource/models/inline_response_201_payment_information_account_features.py +++ /dev/null @@ -1,611 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201PaymentInformationAccountFeatures(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'account_type': 'str', - 'account_status': 'str', - 'balance_amount': 'str', - 'balance_amount_type': 'str', - 'currency': 'str', - 'balance_sign': 'str', - 'affluence_indicator': 'str', - 'category': 'str', - 'commercial': 'str', - 'group': 'str', - 'health_care': 'str', - 'payroll': 'str', - 'level3_eligible': 'str', - 'pinless_debit': 'str', - 'signature_debit': 'str', - 'prepaid': 'str', - 'regulated': 'str' - } - - attribute_map = { - 'account_type': 'accountType', - 'account_status': 'accountStatus', - 'balance_amount': 'balanceAmount', - 'balance_amount_type': 'balanceAmountType', - 'currency': 'currency', - 'balance_sign': 'balanceSign', - 'affluence_indicator': 'affluenceIndicator', - 'category': 'category', - 'commercial': 'commercial', - 'group': 'group', - 'health_care': 'healthCare', - 'payroll': 'payroll', - 'level3_eligible': 'level3Eligible', - 'pinless_debit': 'pinlessDebit', - 'signature_debit': 'signatureDebit', - 'prepaid': 'prepaid', - 'regulated': 'regulated' - } - - def __init__(self, account_type=None, account_status=None, balance_amount=None, balance_amount_type=None, currency=None, balance_sign=None, affluence_indicator=None, category=None, commercial=None, group=None, health_care=None, payroll=None, level3_eligible=None, pinless_debit=None, signature_debit=None, prepaid=None, regulated=None): - """ - InlineResponse201PaymentInformationAccountFeatures - a model defined in Swagger - """ - - self._account_type = None - self._account_status = None - self._balance_amount = None - self._balance_amount_type = None - self._currency = None - self._balance_sign = None - self._affluence_indicator = None - self._category = None - self._commercial = None - self._group = None - self._health_care = None - self._payroll = None - self._level3_eligible = None - self._pinless_debit = None - self._signature_debit = None - self._prepaid = None - self._regulated = None - - if account_type is not None: - self.account_type = account_type - if account_status is not None: - self.account_status = account_status - if balance_amount is not None: - self.balance_amount = balance_amount - if balance_amount_type is not None: - self.balance_amount_type = balance_amount_type - if currency is not None: - self.currency = currency - if balance_sign is not None: - self.balance_sign = balance_sign - if affluence_indicator is not None: - self.affluence_indicator = affluence_indicator - if category is not None: - self.category = category - if commercial is not None: - self.commercial = commercial - if group is not None: - self.group = group - if health_care is not None: - self.health_care = health_care - if payroll is not None: - self.payroll = payroll - if level3_eligible is not None: - self.level3_eligible = level3_eligible - if pinless_debit is not None: - self.pinless_debit = pinless_debit - if signature_debit is not None: - self.signature_debit = signature_debit - if prepaid is not None: - self.prepaid = prepaid - if regulated is not None: - self.regulated = regulated - - @property - def account_type(self): - """ - Gets the account_type of this InlineResponse201PaymentInformationAccountFeatures. - Type of account. This value is returned only if you requested a balance inquiry. Possible values: - **00**: Not applicable or not specified - **10**: Savings account - **20**: Checking account - **30**: Credit card account - **40**: Universal account - - :return: The account_type of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._account_type - - @account_type.setter - def account_type(self, account_type): - """ - Sets the account_type of this InlineResponse201PaymentInformationAccountFeatures. - Type of account. This value is returned only if you requested a balance inquiry. Possible values: - **00**: Not applicable or not specified - **10**: Savings account - **20**: Checking account - **30**: Credit card account - **40**: Universal account - - :param account_type: The account_type of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if account_type is not None and len(account_type) > 2: - raise ValueError("Invalid value for `account_type`, length must be less than or equal to `2`") - - self._account_type = account_type - - @property - def account_status(self): - """ - Gets the account_status of this InlineResponse201PaymentInformationAccountFeatures. - Possible values: - **N**: Nonregulated - **R**: Regulated `Note` This field is returned only for CyberSource through VisaNet. - - :return: The account_status of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._account_status - - @account_status.setter - def account_status(self, account_status): - """ - Sets the account_status of this InlineResponse201PaymentInformationAccountFeatures. - Possible values: - **N**: Nonregulated - **R**: Regulated `Note` This field is returned only for CyberSource through VisaNet. - - :param account_status: The account_status of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if account_status is not None and len(account_status) > 1: - raise ValueError("Invalid value for `account_status`, length must be less than or equal to `1`") - - self._account_status = account_status - - @property - def balance_amount(self): - """ - Gets the balance_amount of this InlineResponse201PaymentInformationAccountFeatures. - Remaining balance on the account. - - :return: The balance_amount of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._balance_amount - - @balance_amount.setter - def balance_amount(self, balance_amount): - """ - Sets the balance_amount of this InlineResponse201PaymentInformationAccountFeatures. - Remaining balance on the account. - - :param balance_amount: The balance_amount of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if balance_amount is not None and len(balance_amount) > 12: - raise ValueError("Invalid value for `balance_amount`, length must be less than or equal to `12`") - - self._balance_amount = balance_amount - - @property - def balance_amount_type(self): - """ - Gets the balance_amount_type of this InlineResponse201PaymentInformationAccountFeatures. - Type of amount. This value is returned only if you requested a balance inquiry. The issuer determines the value that is returned. Possible values for deposit accounts: - **01**: Current ledger (posted) balance. - **02**: Current available balance, which is typically the ledger balance less outstanding authorizations. Some depository institutions also include pending deposits and the credit or overdraft line associated with the account. Possible values for credit card accounts: - **01**: Credit amount remaining for customer (open to buy). - **02**: Credit limit. - - :return: The balance_amount_type of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._balance_amount_type - - @balance_amount_type.setter - def balance_amount_type(self, balance_amount_type): - """ - Sets the balance_amount_type of this InlineResponse201PaymentInformationAccountFeatures. - Type of amount. This value is returned only if you requested a balance inquiry. The issuer determines the value that is returned. Possible values for deposit accounts: - **01**: Current ledger (posted) balance. - **02**: Current available balance, which is typically the ledger balance less outstanding authorizations. Some depository institutions also include pending deposits and the credit or overdraft line associated with the account. Possible values for credit card accounts: - **01**: Credit amount remaining for customer (open to buy). - **02**: Credit limit. - - :param balance_amount_type: The balance_amount_type of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if balance_amount_type is not None and len(balance_amount_type) > 2: - raise ValueError("Invalid value for `balance_amount_type`, length must be less than or equal to `2`") - - self._balance_amount_type = balance_amount_type - - @property - def currency(self): - """ - Gets the currency of this InlineResponse201PaymentInformationAccountFeatures. - Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. - - :return: The currency of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this InlineResponse201PaymentInformationAccountFeatures. - Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. - - :param currency: The currency of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if currency is not None and len(currency) > 5: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `5`") - - self._currency = currency - - @property - def balance_sign(self): - """ - Gets the balance_sign of this InlineResponse201PaymentInformationAccountFeatures. - Sign for the remaining balance on the account. Returned only when the processor returns this value. Possible values: - - :return: The balance_sign of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._balance_sign - - @balance_sign.setter - def balance_sign(self, balance_sign): - """ - Sets the balance_sign of this InlineResponse201PaymentInformationAccountFeatures. - Sign for the remaining balance on the account. Returned only when the processor returns this value. Possible values: - - :param balance_sign: The balance_sign of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - allowed_values = ["+", "-"] - if balance_sign not in allowed_values: - raise ValueError( - "Invalid value for `balance_sign` ({0}), must be one of {1}" - .format(balance_sign, allowed_values) - ) - - self._balance_sign = balance_sign - - @property - def affluence_indicator(self): - """ - Gets the affluence_indicator of this InlineResponse201PaymentInformationAccountFeatures. - **Chase Paymentech Solutions** Indicates whether a customer has high credit limits. This information enables you to market high cost items to these customers and to understand the kinds of cards that high income customers are using. This field is supported for Visa, Mastercard, Discover, and Diners Club. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown **Litle** Flag that indicates that a Visa cardholder or Mastercard cardholder is in one of the affluent categories. Possible values: - **AFFLUENT**: High income customer with high spending pattern (>100k USD annual income and >40k USD annual card usage). - **MASS AFFLUENT**: High income customer (>100k USD annual income). **Processor specific maximum length**: - Chase Paymentech Solutions: 1 - Litle: 13 - - :return: The affluence_indicator of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._affluence_indicator - - @affluence_indicator.setter - def affluence_indicator(self, affluence_indicator): - """ - Sets the affluence_indicator of this InlineResponse201PaymentInformationAccountFeatures. - **Chase Paymentech Solutions** Indicates whether a customer has high credit limits. This information enables you to market high cost items to these customers and to understand the kinds of cards that high income customers are using. This field is supported for Visa, Mastercard, Discover, and Diners Club. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown **Litle** Flag that indicates that a Visa cardholder or Mastercard cardholder is in one of the affluent categories. Possible values: - **AFFLUENT**: High income customer with high spending pattern (>100k USD annual income and >40k USD annual card usage). - **MASS AFFLUENT**: High income customer (>100k USD annual income). **Processor specific maximum length**: - Chase Paymentech Solutions: 1 - Litle: 13 - - :param affluence_indicator: The affluence_indicator of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if affluence_indicator is not None and len(affluence_indicator) > 13: - raise ValueError("Invalid value for `affluence_indicator`, length must be less than or equal to `13`") - - self._affluence_indicator = affluence_indicator - - @property - def category(self): - """ - Gets the category of this InlineResponse201PaymentInformationAccountFeatures. - **CyberSource through VisaNet** Visa product ID. **GPN** Visa or Mastercard product ID. **Litle** Type of card used in the transaction. The only possible value is: - PREPAID: Prepaid Card **RBS WorldPay Atlanta** Type of card used in the transaction. Possible values: - **B**: Business Card - **O**: Noncommercial Card - **R**: Corporate Card - **S**: Purchase Card - **Blank**: Purchase card not supported **Maximum length for processors**: - CyberSource through VisaNet: 3 - GPN: 3 - Litle: 7 - RBS WorldPay Atlanta: 1 - - :return: The category of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._category - - @category.setter - def category(self, category): - """ - Sets the category of this InlineResponse201PaymentInformationAccountFeatures. - **CyberSource through VisaNet** Visa product ID. **GPN** Visa or Mastercard product ID. **Litle** Type of card used in the transaction. The only possible value is: - PREPAID: Prepaid Card **RBS WorldPay Atlanta** Type of card used in the transaction. Possible values: - **B**: Business Card - **O**: Noncommercial Card - **R**: Corporate Card - **S**: Purchase Card - **Blank**: Purchase card not supported **Maximum length for processors**: - CyberSource through VisaNet: 3 - GPN: 3 - Litle: 7 - RBS WorldPay Atlanta: 1 - - :param category: The category of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if category is not None and len(category) > 7: - raise ValueError("Invalid value for `category`, length must be less than or equal to `7`") - - self._category = category - - @property - def commercial(self): - """ - Gets the commercial of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a commercial card, which enables you to include Level II data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :return: The commercial of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._commercial - - @commercial.setter - def commercial(self, commercial): - """ - Sets the commercial of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a commercial card, which enables you to include Level II data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :param commercial: The commercial of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if commercial is not None and len(commercial) > 1: - raise ValueError("Invalid value for `commercial`, length must be less than or equal to `1`") - - self._commercial = commercial - - @property - def group(self): - """ - Gets the group of this InlineResponse201PaymentInformationAccountFeatures. - Type of commercial card. This field is supported only for CyberSource through VisaNet. Possible values: - **B**: Business card - **R**: Corporate card - **S**: Purchasing card - **0**: Noncommercial card - - :return: The group of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._group - - @group.setter - def group(self, group): - """ - Sets the group of this InlineResponse201PaymentInformationAccountFeatures. - Type of commercial card. This field is supported only for CyberSource through VisaNet. Possible values: - **B**: Business card - **R**: Corporate card - **S**: Purchasing card - **0**: Noncommercial card - - :param group: The group of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if group is not None and len(group) > 1: - raise ValueError("Invalid value for `group`, length must be less than or equal to `1`") - - self._group = group - - @property - def health_care(self): - """ - Gets the health_care of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a healthcare card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :return: The health_care of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._health_care - - @health_care.setter - def health_care(self, health_care): - """ - Sets the health_care of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a healthcare card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :param health_care: The health_care of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if health_care is not None and len(health_care) > 1: - raise ValueError("Invalid value for `health_care`, length must be less than or equal to `1`") - - self._health_care = health_care - - @property - def payroll(self): - """ - Gets the payroll of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a payroll card. This field is supported for Visa, Discover, Diners Club, and JCB on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :return: The payroll of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._payroll - - @payroll.setter - def payroll(self, payroll): - """ - Sets the payroll of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a payroll card. This field is supported for Visa, Discover, Diners Club, and JCB on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :param payroll: The payroll of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if payroll is not None and len(payroll) > 1: - raise ValueError("Invalid value for `payroll`, length must be less than or equal to `1`") - - self._payroll = payroll - - @property - def level3_eligible(self): - """ - Gets the level3_eligible of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is eligible for Level III interchange fees, which enables you to include Level III data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :return: The level3_eligible of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._level3_eligible - - @level3_eligible.setter - def level3_eligible(self, level3_eligible): - """ - Sets the level3_eligible of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is eligible for Level III interchange fees, which enables you to include Level III data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :param level3_eligible: The level3_eligible of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if level3_eligible is not None and len(level3_eligible) > 1: - raise ValueError("Invalid value for `level3_eligible`, length must be less than or equal to `1`") - - self._level3_eligible = level3_eligible - - @property - def pinless_debit(self): - """ - Gets the pinless_debit of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a PINless debit card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :return: The pinless_debit of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._pinless_debit - - @pinless_debit.setter - def pinless_debit(self, pinless_debit): - """ - Sets the pinless_debit of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a PINless debit card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :param pinless_debit: The pinless_debit of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if pinless_debit is not None and len(pinless_debit) > 1: - raise ValueError("Invalid value for `pinless_debit`, length must be less than or equal to `1`") - - self._pinless_debit = pinless_debit - - @property - def signature_debit(self): - """ - Gets the signature_debit of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a signature debit card. This information enables you to alter the way an order is processed. For example, you might not want to reauthorize a transaction for a signature debit card, or you might want to perform reversals promptly for a signature debit card. This field is supported for Visa, Mastercard, and Maestro (International) on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :return: The signature_debit of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._signature_debit - - @signature_debit.setter - def signature_debit(self, signature_debit): - """ - Sets the signature_debit of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a signature debit card. This information enables you to alter the way an order is processed. For example, you might not want to reauthorize a transaction for a signature debit card, or you might want to perform reversals promptly for a signature debit card. This field is supported for Visa, Mastercard, and Maestro (International) on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :param signature_debit: The signature_debit of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if signature_debit is not None and len(signature_debit) > 1: - raise ValueError("Invalid value for `signature_debit`, length must be less than or equal to `1`") - - self._signature_debit = signature_debit - - @property - def prepaid(self): - """ - Gets the prepaid of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a prepaid card. This information enables you to determine when a gift card or prepaid card is presented for use when establishing a new recurring, installment, or deferred billing relationship. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :return: The prepaid of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._prepaid - - @prepaid.setter - def prepaid(self, prepaid): - """ - Sets the prepaid of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is a prepaid card. This information enables you to determine when a gift card or prepaid card is presented for use when establishing a new recurring, installment, or deferred billing relationship. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown - - :param prepaid: The prepaid of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if prepaid is not None and len(prepaid) > 1: - raise ValueError("Invalid value for `prepaid`, length must be less than or equal to `1`") - - self._prepaid = prepaid - - @property - def regulated(self): - """ - Gets the regulated of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is regulated according to the Durbin Amendment. If the card is regulated, the card issuer is subject to price caps and interchange rules. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes (assets greater than 10B USD) - **N**: No (assets less than 10B USD) - **X**: Not applicable / Unknown - - :return: The regulated of this InlineResponse201PaymentInformationAccountFeatures. - :rtype: str - """ - return self._regulated - - @regulated.setter - def regulated(self, regulated): - """ - Sets the regulated of this InlineResponse201PaymentInformationAccountFeatures. - Indicates whether the card is regulated according to the Durbin Amendment. If the card is regulated, the card issuer is subject to price caps and interchange rules. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes (assets greater than 10B USD) - **N**: No (assets less than 10B USD) - **X**: Not applicable / Unknown - - :param regulated: The regulated of this InlineResponse201PaymentInformationAccountFeatures. - :type: str - """ - if regulated is not None and len(regulated) > 1: - raise ValueError("Invalid value for `regulated`, length must be less than or equal to `1`") - - self._regulated = regulated - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201PaymentInformationAccountFeatures): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_payment_information_card.py b/CyberSource/models/inline_response_201_payment_information_card.py deleted file mode 100644 index ccafded4..00000000 --- a/CyberSource/models/inline_response_201_payment_information_card.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201PaymentInformationCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'suffix': 'str' - } - - attribute_map = { - 'suffix': 'suffix' - } - - def __init__(self, suffix=None): - """ - InlineResponse201PaymentInformationCard - a model defined in Swagger - """ - - self._suffix = None - - if suffix is not None: - self.suffix = suffix - - @property - def suffix(self): - """ - Gets the suffix of this InlineResponse201PaymentInformationCard. - Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. - - :return: The suffix of this InlineResponse201PaymentInformationCard. - :rtype: str - """ - return self._suffix - - @suffix.setter - def suffix(self, suffix): - """ - Sets the suffix of this InlineResponse201PaymentInformationCard. - Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. - - :param suffix: The suffix of this InlineResponse201PaymentInformationCard. - :type: str - """ - if suffix is not None and len(suffix) > 4: - raise ValueError("Invalid value for `suffix`, length must be less than or equal to `4`") - - self._suffix = suffix - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201PaymentInformationCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_payment_information_tokenized_card.py b/CyberSource/models/inline_response_201_payment_information_tokenized_card.py deleted file mode 100644 index 5f8797bb..00000000 --- a/CyberSource/models/inline_response_201_payment_information_tokenized_card.py +++ /dev/null @@ -1,307 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201PaymentInformationTokenizedCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'prefix': 'str', - 'suffix': 'str', - 'type': 'str', - 'assurance_level': 'str', - 'expiration_month': 'str', - 'expiration_year': 'str', - 'requestor_id': 'str' - } - - attribute_map = { - 'prefix': 'prefix', - 'suffix': 'suffix', - 'type': 'type', - 'assurance_level': 'assuranceLevel', - 'expiration_month': 'expirationMonth', - 'expiration_year': 'expirationYear', - 'requestor_id': 'requestorId' - } - - def __init__(self, prefix=None, suffix=None, type=None, assurance_level=None, expiration_month=None, expiration_year=None, requestor_id=None): - """ - InlineResponse201PaymentInformationTokenizedCard - a model defined in Swagger - """ - - self._prefix = None - self._suffix = None - self._type = None - self._assurance_level = None - self._expiration_month = None - self._expiration_year = None - self._requestor_id = None - - if prefix is not None: - self.prefix = prefix - if suffix is not None: - self.suffix = suffix - if type is not None: - self.type = type - if assurance_level is not None: - self.assurance_level = assurance_level - if expiration_month is not None: - self.expiration_month = expiration_month - if expiration_year is not None: - self.expiration_year = expiration_year - if requestor_id is not None: - self.requestor_id = requestor_id - - @property - def prefix(self): - """ - Gets the prefix of this InlineResponse201PaymentInformationTokenizedCard. - First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. - - :return: The prefix of this InlineResponse201PaymentInformationTokenizedCard. - :rtype: str - """ - return self._prefix - - @prefix.setter - def prefix(self, prefix): - """ - Sets the prefix of this InlineResponse201PaymentInformationTokenizedCard. - First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. - - :param prefix: The prefix of this InlineResponse201PaymentInformationTokenizedCard. - :type: str - """ - if prefix is not None and len(prefix) > 6: - raise ValueError("Invalid value for `prefix`, length must be less than or equal to `6`") - - self._prefix = prefix - - @property - def suffix(self): - """ - Gets the suffix of this InlineResponse201PaymentInformationTokenizedCard. - Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. - - :return: The suffix of this InlineResponse201PaymentInformationTokenizedCard. - :rtype: str - """ - return self._suffix - - @suffix.setter - def suffix(self, suffix): - """ - Sets the suffix of this InlineResponse201PaymentInformationTokenizedCard. - Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. - - :param suffix: The suffix of this InlineResponse201PaymentInformationTokenizedCard. - :type: str - """ - if suffix is not None and len(suffix) > 4: - raise ValueError("Invalid value for `suffix`, length must be less than or equal to `4`") - - self._suffix = suffix - - @property - def type(self): - """ - Gets the type of this InlineResponse201PaymentInformationTokenizedCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :return: The type of this InlineResponse201PaymentInformationTokenizedCard. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this InlineResponse201PaymentInformationTokenizedCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :param type: The type of this InlineResponse201PaymentInformationTokenizedCard. - :type: str - """ - if type is not None and len(type) > 3: - raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") - - self._type = type - - @property - def assurance_level(self): - """ - Gets the assurance_level of this InlineResponse201PaymentInformationTokenizedCard. - Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. - - :return: The assurance_level of this InlineResponse201PaymentInformationTokenizedCard. - :rtype: str - """ - return self._assurance_level - - @assurance_level.setter - def assurance_level(self, assurance_level): - """ - Sets the assurance_level of this InlineResponse201PaymentInformationTokenizedCard. - Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. - - :param assurance_level: The assurance_level of this InlineResponse201PaymentInformationTokenizedCard. - :type: str - """ - if assurance_level is not None and len(assurance_level) > 2: - raise ValueError("Invalid value for `assurance_level`, length must be less than or equal to `2`") - - self._assurance_level = assurance_level - - @property - def expiration_month(self): - """ - Gets the expiration_month of this InlineResponse201PaymentInformationTokenizedCard. - Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. - - :return: The expiration_month of this InlineResponse201PaymentInformationTokenizedCard. - :rtype: str - """ - return self._expiration_month - - @expiration_month.setter - def expiration_month(self, expiration_month): - """ - Sets the expiration_month of this InlineResponse201PaymentInformationTokenizedCard. - Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. - - :param expiration_month: The expiration_month of this InlineResponse201PaymentInformationTokenizedCard. - :type: str - """ - if expiration_month is not None and len(expiration_month) > 2: - raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") - - self._expiration_month = expiration_month - - @property - def expiration_year(self): - """ - Gets the expiration_year of this InlineResponse201PaymentInformationTokenizedCard. - Four-digit year in which the payment network token expires. `Format: YYYY`. - - :return: The expiration_year of this InlineResponse201PaymentInformationTokenizedCard. - :rtype: str - """ - return self._expiration_year - - @expiration_year.setter - def expiration_year(self, expiration_year): - """ - Sets the expiration_year of this InlineResponse201PaymentInformationTokenizedCard. - Four-digit year in which the payment network token expires. `Format: YYYY`. - - :param expiration_year: The expiration_year of this InlineResponse201PaymentInformationTokenizedCard. - :type: str - """ - if expiration_year is not None and len(expiration_year) > 4: - raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") - - self._expiration_year = expiration_year - - @property - def requestor_id(self): - """ - Gets the requestor_id of this InlineResponse201PaymentInformationTokenizedCard. - Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. - - :return: The requestor_id of this InlineResponse201PaymentInformationTokenizedCard. - :rtype: str - """ - return self._requestor_id - - @requestor_id.setter - def requestor_id(self, requestor_id): - """ - Sets the requestor_id of this InlineResponse201PaymentInformationTokenizedCard. - Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. - - :param requestor_id: The requestor_id of this InlineResponse201PaymentInformationTokenizedCard. - :type: str - """ - if requestor_id is not None and len(requestor_id) > 11: - raise ValueError("Invalid value for `requestor_id`, length must be less than or equal to `11`") - - self._requestor_id = requestor_id - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201PaymentInformationTokenizedCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_point_of_sale_information.py b/CyberSource/models/inline_response_201_point_of_sale_information.py deleted file mode 100644 index 52e3a460..00000000 --- a/CyberSource/models/inline_response_201_point_of_sale_information.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201PointOfSaleInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'emv': 'InlineResponse201PointOfSaleInformationEmv', - 'amex_capn_data': 'str' - } - - attribute_map = { - 'emv': 'emv', - 'amex_capn_data': 'amexCapnData' - } - - def __init__(self, emv=None, amex_capn_data=None): - """ - InlineResponse201PointOfSaleInformation - a model defined in Swagger - """ - - self._emv = None - self._amex_capn_data = None - - if emv is not None: - self.emv = emv - if amex_capn_data is not None: - self.amex_capn_data = amex_capn_data - - @property - def emv(self): - """ - Gets the emv of this InlineResponse201PointOfSaleInformation. - - :return: The emv of this InlineResponse201PointOfSaleInformation. - :rtype: InlineResponse201PointOfSaleInformationEmv - """ - return self._emv - - @emv.setter - def emv(self, emv): - """ - Sets the emv of this InlineResponse201PointOfSaleInformation. - - :param emv: The emv of this InlineResponse201PointOfSaleInformation. - :type: InlineResponse201PointOfSaleInformationEmv - """ - - self._emv = emv - - @property - def amex_capn_data(self): - """ - Gets the amex_capn_data of this InlineResponse201PointOfSaleInformation. - Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. - - :return: The amex_capn_data of this InlineResponse201PointOfSaleInformation. - :rtype: str - """ - return self._amex_capn_data - - @amex_capn_data.setter - def amex_capn_data(self, amex_capn_data): - """ - Sets the amex_capn_data of this InlineResponse201PointOfSaleInformation. - Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. - - :param amex_capn_data: The amex_capn_data of this InlineResponse201PointOfSaleInformation. - :type: str - """ - if amex_capn_data is not None and len(amex_capn_data) > 12: - raise ValueError("Invalid value for `amex_capn_data`, length must be less than or equal to `12`") - - self._amex_capn_data = amex_capn_data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201PointOfSaleInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_point_of_sale_information_emv.py b/CyberSource/models/inline_response_201_point_of_sale_information_emv.py deleted file mode 100644 index 8eb5f232..00000000 --- a/CyberSource/models/inline_response_201_point_of_sale_information_emv.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201PointOfSaleInformationEmv(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'tags': 'str' - } - - attribute_map = { - 'tags': 'tags' - } - - def __init__(self, tags=None): - """ - InlineResponse201PointOfSaleInformationEmv - a model defined in Swagger - """ - - self._tags = None - - if tags is not None: - self.tags = tags - - @property - def tags(self): - """ - Gets the tags of this InlineResponse201PointOfSaleInformationEmv. - EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram - - :return: The tags of this InlineResponse201PointOfSaleInformationEmv. - :rtype: str - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this InlineResponse201PointOfSaleInformationEmv. - EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram - - :param tags: The tags of this InlineResponse201PointOfSaleInformationEmv. - :type: str - """ - if tags is not None and len(tags) > 1998: - raise ValueError("Invalid value for `tags`, length must be less than or equal to `1998`") - - self._tags = tags - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201PointOfSaleInformationEmv): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_processor_information.py b/CyberSource/models/inline_response_201_processor_information.py deleted file mode 100644 index 1ed218c7..00000000 --- a/CyberSource/models/inline_response_201_processor_information.py +++ /dev/null @@ -1,813 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ProcessorInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'approval_code': 'str', - 'transaction_id': 'str', - 'network_transaction_id': 'str', - 'provider_transaction_id': 'str', - 'response_code': 'str', - 'response_code_source': 'str', - 'response_details': 'str', - 'response_category_code': 'str', - 'forwarded_acquirer_code': 'str', - 'avs': 'InlineResponse201ProcessorInformationAvs', - 'card_verification': 'InlineResponse201ProcessorInformationCardVerification', - 'merchant_advice': 'InlineResponse201ProcessorInformationMerchantAdvice', - 'electronic_verification_results': 'InlineResponse201ProcessorInformationElectronicVerificationResults', - 'customer': 'InlineResponse201ProcessorInformationCustomer', - 'consumer_authentication_response': 'InlineResponse201ProcessorInformationConsumerAuthenticationResponse', - 'issuer': 'InlineResponse201ProcessorInformationIssuer', - 'system_trace_audit_number': 'str', - 'payment_account_reference_number': 'str', - 'transaction_integrity_code': 'str', - 'amex_verbal_auth_reference_number': 'str', - 'sales_slip_number': 'float', - 'master_card_service_code': 'str', - 'master_card_service_reply_code': 'str', - 'master_card_authentication_type': 'str', - 'name': 'str' - } - - attribute_map = { - 'approval_code': 'approvalCode', - 'transaction_id': 'transactionId', - 'network_transaction_id': 'networkTransactionId', - 'provider_transaction_id': 'providerTransactionId', - 'response_code': 'responseCode', - 'response_code_source': 'responseCodeSource', - 'response_details': 'responseDetails', - 'response_category_code': 'responseCategoryCode', - 'forwarded_acquirer_code': 'forwardedAcquirerCode', - 'avs': 'avs', - 'card_verification': 'cardVerification', - 'merchant_advice': 'merchantAdvice', - 'electronic_verification_results': 'electronicVerificationResults', - 'customer': 'customer', - 'consumer_authentication_response': 'consumerAuthenticationResponse', - 'issuer': 'issuer', - 'system_trace_audit_number': 'systemTraceAuditNumber', - 'payment_account_reference_number': 'paymentAccountReferenceNumber', - 'transaction_integrity_code': 'transactionIntegrityCode', - 'amex_verbal_auth_reference_number': 'amexVerbalAuthReferenceNumber', - 'sales_slip_number': 'salesSlipNumber', - 'master_card_service_code': 'masterCardServiceCode', - 'master_card_service_reply_code': 'masterCardServiceReplyCode', - 'master_card_authentication_type': 'masterCardAuthenticationType', - 'name': 'name' - } - - def __init__(self, approval_code=None, transaction_id=None, network_transaction_id=None, provider_transaction_id=None, response_code=None, response_code_source=None, response_details=None, response_category_code=None, forwarded_acquirer_code=None, avs=None, card_verification=None, merchant_advice=None, electronic_verification_results=None, customer=None, consumer_authentication_response=None, issuer=None, system_trace_audit_number=None, payment_account_reference_number=None, transaction_integrity_code=None, amex_verbal_auth_reference_number=None, sales_slip_number=None, master_card_service_code=None, master_card_service_reply_code=None, master_card_authentication_type=None, name=None): - """ - InlineResponse201ProcessorInformation - a model defined in Swagger - """ - - self._approval_code = None - self._transaction_id = None - self._network_transaction_id = None - self._provider_transaction_id = None - self._response_code = None - self._response_code_source = None - self._response_details = None - self._response_category_code = None - self._forwarded_acquirer_code = None - self._avs = None - self._card_verification = None - self._merchant_advice = None - self._electronic_verification_results = None - self._customer = None - self._consumer_authentication_response = None - self._issuer = None - self._system_trace_audit_number = None - self._payment_account_reference_number = None - self._transaction_integrity_code = None - self._amex_verbal_auth_reference_number = None - self._sales_slip_number = None - self._master_card_service_code = None - self._master_card_service_reply_code = None - self._master_card_authentication_type = None - self._name = None - - if approval_code is not None: - self.approval_code = approval_code - if transaction_id is not None: - self.transaction_id = transaction_id - if network_transaction_id is not None: - self.network_transaction_id = network_transaction_id - if provider_transaction_id is not None: - self.provider_transaction_id = provider_transaction_id - if response_code is not None: - self.response_code = response_code - if response_code_source is not None: - self.response_code_source = response_code_source - if response_details is not None: - self.response_details = response_details - if response_category_code is not None: - self.response_category_code = response_category_code - if forwarded_acquirer_code is not None: - self.forwarded_acquirer_code = forwarded_acquirer_code - if avs is not None: - self.avs = avs - if card_verification is not None: - self.card_verification = card_verification - if merchant_advice is not None: - self.merchant_advice = merchant_advice - if electronic_verification_results is not None: - self.electronic_verification_results = electronic_verification_results - if customer is not None: - self.customer = customer - if consumer_authentication_response is not None: - self.consumer_authentication_response = consumer_authentication_response - if issuer is not None: - self.issuer = issuer - if system_trace_audit_number is not None: - self.system_trace_audit_number = system_trace_audit_number - if payment_account_reference_number is not None: - self.payment_account_reference_number = payment_account_reference_number - if transaction_integrity_code is not None: - self.transaction_integrity_code = transaction_integrity_code - if amex_verbal_auth_reference_number is not None: - self.amex_verbal_auth_reference_number = amex_verbal_auth_reference_number - if sales_slip_number is not None: - self.sales_slip_number = sales_slip_number - if master_card_service_code is not None: - self.master_card_service_code = master_card_service_code - if master_card_service_reply_code is not None: - self.master_card_service_reply_code = master_card_service_reply_code - if master_card_authentication_type is not None: - self.master_card_authentication_type = master_card_authentication_type - if name is not None: - self.name = name - - @property - def approval_code(self): - """ - Gets the approval_code of this InlineResponse201ProcessorInformation. - Authorization code. Returned only when the processor returns this value. - - :return: The approval_code of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._approval_code - - @approval_code.setter - def approval_code(self, approval_code): - """ - Sets the approval_code of this InlineResponse201ProcessorInformation. - Authorization code. Returned only when the processor returns this value. - - :param approval_code: The approval_code of this InlineResponse201ProcessorInformation. - :type: str - """ - - self._approval_code = approval_code - - @property - def transaction_id(self): - """ - Gets the transaction_id of this InlineResponse201ProcessorInformation. - Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. - - :return: The transaction_id of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._transaction_id - - @transaction_id.setter - def transaction_id(self, transaction_id): - """ - Sets the transaction_id of this InlineResponse201ProcessorInformation. - Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. - - :param transaction_id: The transaction_id of this InlineResponse201ProcessorInformation. - :type: str - """ - if transaction_id is not None and len(transaction_id) > 50: - raise ValueError("Invalid value for `transaction_id`, length must be less than or equal to `50`") - - self._transaction_id = transaction_id - - @property - def network_transaction_id(self): - """ - Gets the network_transaction_id of this InlineResponse201ProcessorInformation. - TBD - - :return: The network_transaction_id of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._network_transaction_id - - @network_transaction_id.setter - def network_transaction_id(self, network_transaction_id): - """ - Sets the network_transaction_id of this InlineResponse201ProcessorInformation. - TBD - - :param network_transaction_id: The network_transaction_id of this InlineResponse201ProcessorInformation. - :type: str - """ - - self._network_transaction_id = network_transaction_id - - @property - def provider_transaction_id(self): - """ - Gets the provider_transaction_id of this InlineResponse201ProcessorInformation. - TBD - - :return: The provider_transaction_id of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._provider_transaction_id - - @provider_transaction_id.setter - def provider_transaction_id(self, provider_transaction_id): - """ - Sets the provider_transaction_id of this InlineResponse201ProcessorInformation. - TBD - - :param provider_transaction_id: The provider_transaction_id of this InlineResponse201ProcessorInformation. - :type: str - """ - - self._provider_transaction_id = provider_transaction_id - - @property - def response_code(self): - """ - Gets the response_code of this InlineResponse201ProcessorInformation. - For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. - - :return: The response_code of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._response_code - - @response_code.setter - def response_code(self, response_code): - """ - Sets the response_code of this InlineResponse201ProcessorInformation. - For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. - - :param response_code: The response_code of this InlineResponse201ProcessorInformation. - :type: str - """ - if response_code is not None and len(response_code) > 10: - raise ValueError("Invalid value for `response_code`, length must be less than or equal to `10`") - - self._response_code = response_code - - @property - def response_code_source(self): - """ - Gets the response_code_source of this InlineResponse201ProcessorInformation. - Used by Visa only and contains the response source/reason code that identifies the source of the response decision. - - :return: The response_code_source of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._response_code_source - - @response_code_source.setter - def response_code_source(self, response_code_source): - """ - Sets the response_code_source of this InlineResponse201ProcessorInformation. - Used by Visa only and contains the response source/reason code that identifies the source of the response decision. - - :param response_code_source: The response_code_source of this InlineResponse201ProcessorInformation. - :type: str - """ - if response_code_source is not None and len(response_code_source) > 1: - raise ValueError("Invalid value for `response_code_source`, length must be less than or equal to `1`") - - self._response_code_source = response_code_source - - @property - def response_details(self): - """ - Gets the response_details of this InlineResponse201ProcessorInformation. - This field might contain information about a decline. This field is supported only for **CyberSource through VisaNet**. - - :return: The response_details of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._response_details - - @response_details.setter - def response_details(self, response_details): - """ - Sets the response_details of this InlineResponse201ProcessorInformation. - This field might contain information about a decline. This field is supported only for **CyberSource through VisaNet**. - - :param response_details: The response_details of this InlineResponse201ProcessorInformation. - :type: str - """ - if response_details is not None and len(response_details) > 255: - raise ValueError("Invalid value for `response_details`, length must be less than or equal to `255`") - - self._response_details = response_details - - @property - def response_category_code(self): - """ - Gets the response_category_code of this InlineResponse201ProcessorInformation. - Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 - - :return: The response_category_code of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._response_category_code - - @response_category_code.setter - def response_category_code(self, response_category_code): - """ - Sets the response_category_code of this InlineResponse201ProcessorInformation. - Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 - - :param response_category_code: The response_category_code of this InlineResponse201ProcessorInformation. - :type: str - """ - if response_category_code is not None and len(response_category_code) > 32: - raise ValueError("Invalid value for `response_category_code`, length must be less than or equal to `32`") - - self._response_category_code = response_category_code - - @property - def forwarded_acquirer_code(self): - """ - Gets the forwarded_acquirer_code of this InlineResponse201ProcessorInformation. - Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. - - :return: The forwarded_acquirer_code of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._forwarded_acquirer_code - - @forwarded_acquirer_code.setter - def forwarded_acquirer_code(self, forwarded_acquirer_code): - """ - Sets the forwarded_acquirer_code of this InlineResponse201ProcessorInformation. - Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. - - :param forwarded_acquirer_code: The forwarded_acquirer_code of this InlineResponse201ProcessorInformation. - :type: str - """ - if forwarded_acquirer_code is not None and len(forwarded_acquirer_code) > 32: - raise ValueError("Invalid value for `forwarded_acquirer_code`, length must be less than or equal to `32`") - - self._forwarded_acquirer_code = forwarded_acquirer_code - - @property - def avs(self): - """ - Gets the avs of this InlineResponse201ProcessorInformation. - - :return: The avs of this InlineResponse201ProcessorInformation. - :rtype: InlineResponse201ProcessorInformationAvs - """ - return self._avs - - @avs.setter - def avs(self, avs): - """ - Sets the avs of this InlineResponse201ProcessorInformation. - - :param avs: The avs of this InlineResponse201ProcessorInformation. - :type: InlineResponse201ProcessorInformationAvs - """ - - self._avs = avs - - @property - def card_verification(self): - """ - Gets the card_verification of this InlineResponse201ProcessorInformation. - - :return: The card_verification of this InlineResponse201ProcessorInformation. - :rtype: InlineResponse201ProcessorInformationCardVerification - """ - return self._card_verification - - @card_verification.setter - def card_verification(self, card_verification): - """ - Sets the card_verification of this InlineResponse201ProcessorInformation. - - :param card_verification: The card_verification of this InlineResponse201ProcessorInformation. - :type: InlineResponse201ProcessorInformationCardVerification - """ - - self._card_verification = card_verification - - @property - def merchant_advice(self): - """ - Gets the merchant_advice of this InlineResponse201ProcessorInformation. - - :return: The merchant_advice of this InlineResponse201ProcessorInformation. - :rtype: InlineResponse201ProcessorInformationMerchantAdvice - """ - return self._merchant_advice - - @merchant_advice.setter - def merchant_advice(self, merchant_advice): - """ - Sets the merchant_advice of this InlineResponse201ProcessorInformation. - - :param merchant_advice: The merchant_advice of this InlineResponse201ProcessorInformation. - :type: InlineResponse201ProcessorInformationMerchantAdvice - """ - - self._merchant_advice = merchant_advice - - @property - def electronic_verification_results(self): - """ - Gets the electronic_verification_results of this InlineResponse201ProcessorInformation. - - :return: The electronic_verification_results of this InlineResponse201ProcessorInformation. - :rtype: InlineResponse201ProcessorInformationElectronicVerificationResults - """ - return self._electronic_verification_results - - @electronic_verification_results.setter - def electronic_verification_results(self, electronic_verification_results): - """ - Sets the electronic_verification_results of this InlineResponse201ProcessorInformation. - - :param electronic_verification_results: The electronic_verification_results of this InlineResponse201ProcessorInformation. - :type: InlineResponse201ProcessorInformationElectronicVerificationResults - """ - - self._electronic_verification_results = electronic_verification_results - - @property - def customer(self): - """ - Gets the customer of this InlineResponse201ProcessorInformation. - - :return: The customer of this InlineResponse201ProcessorInformation. - :rtype: InlineResponse201ProcessorInformationCustomer - """ - return self._customer - - @customer.setter - def customer(self, customer): - """ - Sets the customer of this InlineResponse201ProcessorInformation. - - :param customer: The customer of this InlineResponse201ProcessorInformation. - :type: InlineResponse201ProcessorInformationCustomer - """ - - self._customer = customer - - @property - def consumer_authentication_response(self): - """ - Gets the consumer_authentication_response of this InlineResponse201ProcessorInformation. - - :return: The consumer_authentication_response of this InlineResponse201ProcessorInformation. - :rtype: InlineResponse201ProcessorInformationConsumerAuthenticationResponse - """ - return self._consumer_authentication_response - - @consumer_authentication_response.setter - def consumer_authentication_response(self, consumer_authentication_response): - """ - Sets the consumer_authentication_response of this InlineResponse201ProcessorInformation. - - :param consumer_authentication_response: The consumer_authentication_response of this InlineResponse201ProcessorInformation. - :type: InlineResponse201ProcessorInformationConsumerAuthenticationResponse - """ - - self._consumer_authentication_response = consumer_authentication_response - - @property - def issuer(self): - """ - Gets the issuer of this InlineResponse201ProcessorInformation. - - :return: The issuer of this InlineResponse201ProcessorInformation. - :rtype: InlineResponse201ProcessorInformationIssuer - """ - return self._issuer - - @issuer.setter - def issuer(self, issuer): - """ - Sets the issuer of this InlineResponse201ProcessorInformation. - - :param issuer: The issuer of this InlineResponse201ProcessorInformation. - :type: InlineResponse201ProcessorInformationIssuer - """ - - self._issuer = issuer - - @property - def system_trace_audit_number(self): - """ - Gets the system_trace_audit_number of this InlineResponse201ProcessorInformation. - This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. **American Express Direct** System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. **CyberSource through VisaNet** System trace number that must be printed on the customer’s receipt. - - :return: The system_trace_audit_number of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._system_trace_audit_number - - @system_trace_audit_number.setter - def system_trace_audit_number(self, system_trace_audit_number): - """ - Sets the system_trace_audit_number of this InlineResponse201ProcessorInformation. - This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. **American Express Direct** System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. **CyberSource through VisaNet** System trace number that must be printed on the customer’s receipt. - - :param system_trace_audit_number: The system_trace_audit_number of this InlineResponse201ProcessorInformation. - :type: str - """ - if system_trace_audit_number is not None and len(system_trace_audit_number) > 6: - raise ValueError("Invalid value for `system_trace_audit_number`, length must be less than or equal to `6`") - - self._system_trace_audit_number = system_trace_audit_number - - @property - def payment_account_reference_number(self): - """ - Gets the payment_account_reference_number of this InlineResponse201ProcessorInformation. - Visa-generated reference number that identifies a card-present transaction for which youprovided one of the following: - Visa primary account number (PAN) - Visa-generated token for a PAN This reference number serves as a link to the cardholder account and to all transactions for that account. - - :return: The payment_account_reference_number of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._payment_account_reference_number - - @payment_account_reference_number.setter - def payment_account_reference_number(self, payment_account_reference_number): - """ - Sets the payment_account_reference_number of this InlineResponse201ProcessorInformation. - Visa-generated reference number that identifies a card-present transaction for which youprovided one of the following: - Visa primary account number (PAN) - Visa-generated token for a PAN This reference number serves as a link to the cardholder account and to all transactions for that account. - - :param payment_account_reference_number: The payment_account_reference_number of this InlineResponse201ProcessorInformation. - :type: str - """ - if payment_account_reference_number is not None and len(payment_account_reference_number) > 32: - raise ValueError("Invalid value for `payment_account_reference_number`, length must be less than or equal to `32`") - - self._payment_account_reference_number = payment_account_reference_number - - @property - def transaction_integrity_code(self): - """ - Gets the transaction_integrity_code of this InlineResponse201ProcessorInformation. - Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - **A1**: EMV or token in a secure, trusted environment - **B1**: EMV or chip equivalent - **C1**: Magnetic stripe - **E1**: Key entered - **U0**: Unclassified For card-not-present transactions, possible values: - **A2**: Digital transactions - **B2**: Authenticated checkout - **C2**: Transaction validation - **D2**: Enhanced data - **E2**: Generic messaging - **U0**: Unclassified For information about these values, contact Mastercard or your acquirer. - - :return: The transaction_integrity_code of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._transaction_integrity_code - - @transaction_integrity_code.setter - def transaction_integrity_code(self, transaction_integrity_code): - """ - Sets the transaction_integrity_code of this InlineResponse201ProcessorInformation. - Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - **A1**: EMV or token in a secure, trusted environment - **B1**: EMV or chip equivalent - **C1**: Magnetic stripe - **E1**: Key entered - **U0**: Unclassified For card-not-present transactions, possible values: - **A2**: Digital transactions - **B2**: Authenticated checkout - **C2**: Transaction validation - **D2**: Enhanced data - **E2**: Generic messaging - **U0**: Unclassified For information about these values, contact Mastercard or your acquirer. - - :param transaction_integrity_code: The transaction_integrity_code of this InlineResponse201ProcessorInformation. - :type: str - """ - if transaction_integrity_code is not None and len(transaction_integrity_code) > 2: - raise ValueError("Invalid value for `transaction_integrity_code`, length must be less than or equal to `2`") - - self._transaction_integrity_code = transaction_integrity_code - - @property - def amex_verbal_auth_reference_number(self): - """ - Gets the amex_verbal_auth_reference_number of this InlineResponse201ProcessorInformation. - Referral response number for a verbal authorization with FDMS Nashville when using an American Express card. Give this number to American Express when you call them for the verbal authorization. - - :return: The amex_verbal_auth_reference_number of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._amex_verbal_auth_reference_number - - @amex_verbal_auth_reference_number.setter - def amex_verbal_auth_reference_number(self, amex_verbal_auth_reference_number): - """ - Sets the amex_verbal_auth_reference_number of this InlineResponse201ProcessorInformation. - Referral response number for a verbal authorization with FDMS Nashville when using an American Express card. Give this number to American Express when you call them for the verbal authorization. - - :param amex_verbal_auth_reference_number: The amex_verbal_auth_reference_number of this InlineResponse201ProcessorInformation. - :type: str - """ - if amex_verbal_auth_reference_number is not None and len(amex_verbal_auth_reference_number) > 6: - raise ValueError("Invalid value for `amex_verbal_auth_reference_number`, length must be less than or equal to `6`") - - self._amex_verbal_auth_reference_number = amex_verbal_auth_reference_number - - @property - def sales_slip_number(self): - """ - Gets the sales_slip_number of this InlineResponse201ProcessorInformation. - Transaction identifier that CyberSource generates. You have the option of printing the sales slip number on the receipt. This field is supported only for **JCN Gateway**. - - :return: The sales_slip_number of this InlineResponse201ProcessorInformation. - :rtype: float - """ - return self._sales_slip_number - - @sales_slip_number.setter - def sales_slip_number(self, sales_slip_number): - """ - Sets the sales_slip_number of this InlineResponse201ProcessorInformation. - Transaction identifier that CyberSource generates. You have the option of printing the sales slip number on the receipt. This field is supported only for **JCN Gateway**. - - :param sales_slip_number: The sales_slip_number of this InlineResponse201ProcessorInformation. - :type: float - """ - if sales_slip_number is not None and sales_slip_number > 99999: - raise ValueError("Invalid value for `sales_slip_number`, must be a value less than or equal to `99999`") - - self._sales_slip_number = sales_slip_number - - @property - def master_card_service_code(self): - """ - Gets the master_card_service_code of this InlineResponse201ProcessorInformation. - Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service - - :return: The master_card_service_code of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._master_card_service_code - - @master_card_service_code.setter - def master_card_service_code(self, master_card_service_code): - """ - Sets the master_card_service_code of this InlineResponse201ProcessorInformation. - Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service - - :param master_card_service_code: The master_card_service_code of this InlineResponse201ProcessorInformation. - :type: str - """ - if master_card_service_code is not None and len(master_card_service_code) > 2: - raise ValueError("Invalid value for `master_card_service_code`, length must be less than or equal to `2`") - - self._master_card_service_code = master_card_service_code - - @property - def master_card_service_reply_code(self): - """ - Gets the master_card_service_reply_code of this InlineResponse201ProcessorInformation. - Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. - - :return: The master_card_service_reply_code of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._master_card_service_reply_code - - @master_card_service_reply_code.setter - def master_card_service_reply_code(self, master_card_service_reply_code): - """ - Sets the master_card_service_reply_code of this InlineResponse201ProcessorInformation. - Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. - - :param master_card_service_reply_code: The master_card_service_reply_code of this InlineResponse201ProcessorInformation. - :type: str - """ - if master_card_service_reply_code is not None and len(master_card_service_reply_code) > 1: - raise ValueError("Invalid value for `master_card_service_reply_code`, length must be less than or equal to `1`") - - self._master_card_service_reply_code = master_card_service_reply_code - - @property - def master_card_authentication_type(self): - """ - Gets the master_card_authentication_type of this InlineResponse201ProcessorInformation. - Type of authentication for which the transaction qualifies as determined by the Mastercard authentication service, which confirms the identity of the cardholder. Mastercard provides this value to CyberSource. Possible values: - **1**: Transaction qualifies for Mastercard authentication type 1. - **2**: Transaction qualifies for Mastercard authentication type 2. - - :return: The master_card_authentication_type of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._master_card_authentication_type - - @master_card_authentication_type.setter - def master_card_authentication_type(self, master_card_authentication_type): - """ - Sets the master_card_authentication_type of this InlineResponse201ProcessorInformation. - Type of authentication for which the transaction qualifies as determined by the Mastercard authentication service, which confirms the identity of the cardholder. Mastercard provides this value to CyberSource. Possible values: - **1**: Transaction qualifies for Mastercard authentication type 1. - **2**: Transaction qualifies for Mastercard authentication type 2. - - :param master_card_authentication_type: The master_card_authentication_type of this InlineResponse201ProcessorInformation. - :type: str - """ - if master_card_authentication_type is not None and len(master_card_authentication_type) > 1: - raise ValueError("Invalid value for `master_card_authentication_type`, length must be less than or equal to `1`") - - self._master_card_authentication_type = master_card_authentication_type - - @property - def name(self): - """ - Gets the name of this InlineResponse201ProcessorInformation. - Name of the Processor. - - :return: The name of this InlineResponse201ProcessorInformation. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this InlineResponse201ProcessorInformation. - Name of the Processor. - - :param name: The name of this InlineResponse201ProcessorInformation. - :type: str - """ - if name is not None and len(name) > 30: - raise ValueError("Invalid value for `name`, length must be less than or equal to `30`") - - self._name = name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ProcessorInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_processor_information_avs.py b/CyberSource/models/inline_response_201_processor_information_avs.py deleted file mode 100644 index 04865575..00000000 --- a/CyberSource/models/inline_response_201_processor_information_avs.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ProcessorInformationAvs(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'code': 'str', - 'code_raw': 'str' - } - - attribute_map = { - 'code': 'code', - 'code_raw': 'codeRaw' - } - - def __init__(self, code=None, code_raw=None): - """ - InlineResponse201ProcessorInformationAvs - a model defined in Swagger - """ - - self._code = None - self._code_raw = None - - if code is not None: - self.code = code - if code_raw is not None: - self.code_raw = code_raw - - @property - def code(self): - """ - Gets the code of this InlineResponse201ProcessorInformationAvs. - AVS result code. - - :return: The code of this InlineResponse201ProcessorInformationAvs. - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this InlineResponse201ProcessorInformationAvs. - AVS result code. - - :param code: The code of this InlineResponse201ProcessorInformationAvs. - :type: str - """ - if code is not None and len(code) > 1: - raise ValueError("Invalid value for `code`, length must be less than or equal to `1`") - - self._code = code - - @property - def code_raw(self): - """ - Gets the code_raw of this InlineResponse201ProcessorInformationAvs. - AVS result code sent directly from the processor. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of AVS. Use for debugging purposes only. - - :return: The code_raw of this InlineResponse201ProcessorInformationAvs. - :rtype: str - """ - return self._code_raw - - @code_raw.setter - def code_raw(self, code_raw): - """ - Sets the code_raw of this InlineResponse201ProcessorInformationAvs. - AVS result code sent directly from the processor. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of AVS. Use for debugging purposes only. - - :param code_raw: The code_raw of this InlineResponse201ProcessorInformationAvs. - :type: str - """ - if code_raw is not None and len(code_raw) > 10: - raise ValueError("Invalid value for `code_raw`, length must be less than or equal to `10`") - - self._code_raw = code_raw - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ProcessorInformationAvs): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_processor_information_card_verification.py b/CyberSource/models/inline_response_201_processor_information_card_verification.py deleted file mode 100644 index 074c14a2..00000000 --- a/CyberSource/models/inline_response_201_processor_information_card_verification.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ProcessorInformationCardVerification(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'result_code': 'str', - 'result_code_raw': 'str' - } - - attribute_map = { - 'result_code': 'resultCode', - 'result_code_raw': 'resultCodeRaw' - } - - def __init__(self, result_code=None, result_code_raw=None): - """ - InlineResponse201ProcessorInformationCardVerification - a model defined in Swagger - """ - - self._result_code = None - self._result_code_raw = None - - if result_code is not None: - self.result_code = result_code - if result_code_raw is not None: - self.result_code_raw = result_code_raw - - @property - def result_code(self): - """ - Gets the result_code of this InlineResponse201ProcessorInformationCardVerification. - CVN result code. - - :return: The result_code of this InlineResponse201ProcessorInformationCardVerification. - :rtype: str - """ - return self._result_code - - @result_code.setter - def result_code(self, result_code): - """ - Sets the result_code of this InlineResponse201ProcessorInformationCardVerification. - CVN result code. - - :param result_code: The result_code of this InlineResponse201ProcessorInformationCardVerification. - :type: str - """ - if result_code is not None and len(result_code) > 1: - raise ValueError("Invalid value for `result_code`, length must be less than or equal to `1`") - - self._result_code = result_code - - @property - def result_code_raw(self): - """ - Gets the result_code_raw of this InlineResponse201ProcessorInformationCardVerification. - CVN result code sent directly from the processor. Returned only when the processor returns this value. `Important` Do not use this field to evaluate the result of card verification. Use for debugging purposes only. - - :return: The result_code_raw of this InlineResponse201ProcessorInformationCardVerification. - :rtype: str - """ - return self._result_code_raw - - @result_code_raw.setter - def result_code_raw(self, result_code_raw): - """ - Sets the result_code_raw of this InlineResponse201ProcessorInformationCardVerification. - CVN result code sent directly from the processor. Returned only when the processor returns this value. `Important` Do not use this field to evaluate the result of card verification. Use for debugging purposes only. - - :param result_code_raw: The result_code_raw of this InlineResponse201ProcessorInformationCardVerification. - :type: str - """ - if result_code_raw is not None and len(result_code_raw) > 10: - raise ValueError("Invalid value for `result_code_raw`, length must be less than or equal to `10`") - - self._result_code_raw = result_code_raw - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ProcessorInformationCardVerification): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_processor_information_consumer_authentication_response.py b/CyberSource/models/inline_response_201_processor_information_consumer_authentication_response.py deleted file mode 100644 index 60ee4888..00000000 --- a/CyberSource/models/inline_response_201_processor_information_consumer_authentication_response.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ProcessorInformationConsumerAuthenticationResponse(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'code': 'str', - 'code_raw': 'str' - } - - attribute_map = { - 'code': 'code', - 'code_raw': 'codeRaw' - } - - def __init__(self, code=None, code_raw=None): - """ - InlineResponse201ProcessorInformationConsumerAuthenticationResponse - a model defined in Swagger - """ - - self._code = None - self._code_raw = None - - if code is not None: - self.code = code - if code_raw is not None: - self.code_raw = code_raw - - @property - def code(self): - """ - Gets the code of this InlineResponse201ProcessorInformationConsumerAuthenticationResponse. - Mapped response code for Verified by Visa and American Express SafeKey: - - :return: The code of this InlineResponse201ProcessorInformationConsumerAuthenticationResponse. - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this InlineResponse201ProcessorInformationConsumerAuthenticationResponse. - Mapped response code for Verified by Visa and American Express SafeKey: - - :param code: The code of this InlineResponse201ProcessorInformationConsumerAuthenticationResponse. - :type: str - """ - if code is not None and len(code) > 3: - raise ValueError("Invalid value for `code`, length must be less than or equal to `3`") - - self._code = code - - @property - def code_raw(self): - """ - Gets the code_raw of this InlineResponse201ProcessorInformationConsumerAuthenticationResponse. - Raw response code sent directly from the processor for Verified by Visa and American Express SafeKey: - - :return: The code_raw of this InlineResponse201ProcessorInformationConsumerAuthenticationResponse. - :rtype: str - """ - return self._code_raw - - @code_raw.setter - def code_raw(self, code_raw): - """ - Sets the code_raw of this InlineResponse201ProcessorInformationConsumerAuthenticationResponse. - Raw response code sent directly from the processor for Verified by Visa and American Express SafeKey: - - :param code_raw: The code_raw of this InlineResponse201ProcessorInformationConsumerAuthenticationResponse. - :type: str - """ - if code_raw is not None and len(code_raw) > 3: - raise ValueError("Invalid value for `code_raw`, length must be less than or equal to `3`") - - self._code_raw = code_raw - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ProcessorInformationConsumerAuthenticationResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_processor_information_customer.py b/CyberSource/models/inline_response_201_processor_information_customer.py deleted file mode 100644 index daa59b33..00000000 --- a/CyberSource/models/inline_response_201_processor_information_customer.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ProcessorInformationCustomer(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'personal_id_result': 'str' - } - - attribute_map = { - 'personal_id_result': 'personalIdResult' - } - - def __init__(self, personal_id_result=None): - """ - InlineResponse201ProcessorInformationCustomer - a model defined in Swagger - """ - - self._personal_id_result = None - - if personal_id_result is not None: - self.personal_id_result = personal_id_result - - @property - def personal_id_result(self): - """ - Gets the personal_id_result of this InlineResponse201ProcessorInformationCustomer. - Personal identifier result. This field is supported only for Redecard in Brazil for CyberSource Latin American Processing. If you included _buyerInformation.personalIdentification[].ID_ in the request, this value indicates whether or not _buyerInformation.personalIdentification[].ID_ matched a value in a record on file. Returned only when the personal ID result is returned by the processor. Possible values: - **Y**: Match - **N**: No match - **K**: Not supported - **U**: Unknown - **Z**: No response returned - - :return: The personal_id_result of this InlineResponse201ProcessorInformationCustomer. - :rtype: str - """ - return self._personal_id_result - - @personal_id_result.setter - def personal_id_result(self, personal_id_result): - """ - Sets the personal_id_result of this InlineResponse201ProcessorInformationCustomer. - Personal identifier result. This field is supported only for Redecard in Brazil for CyberSource Latin American Processing. If you included _buyerInformation.personalIdentification[].ID_ in the request, this value indicates whether or not _buyerInformation.personalIdentification[].ID_ matched a value in a record on file. Returned only when the personal ID result is returned by the processor. Possible values: - **Y**: Match - **N**: No match - **K**: Not supported - **U**: Unknown - **Z**: No response returned - - :param personal_id_result: The personal_id_result of this InlineResponse201ProcessorInformationCustomer. - :type: str - """ - if personal_id_result is not None and len(personal_id_result) > 1: - raise ValueError("Invalid value for `personal_id_result`, length must be less than or equal to `1`") - - self._personal_id_result = personal_id_result - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ProcessorInformationCustomer): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_processor_information_electronic_verification_results.py b/CyberSource/models/inline_response_201_processor_information_electronic_verification_results.py deleted file mode 100644 index 3bb8677e..00000000 --- a/CyberSource/models/inline_response_201_processor_information_electronic_verification_results.py +++ /dev/null @@ -1,457 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ProcessorInformationElectronicVerificationResults(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'code': 'str', - 'code_raw': 'str', - 'email': 'str', - 'email_raw': 'str', - 'phone_number': 'str', - 'phone_number_raw': 'str', - 'postal_code': 'str', - 'postal_code_raw': 'str', - 'street': 'str', - 'street_raw': 'str', - 'name': 'str', - 'name_raw': 'str' - } - - attribute_map = { - 'code': 'code', - 'code_raw': 'codeRaw', - 'email': 'email', - 'email_raw': 'emailRaw', - 'phone_number': 'phoneNumber', - 'phone_number_raw': 'phoneNumberRaw', - 'postal_code': 'postalCode', - 'postal_code_raw': 'postalCodeRaw', - 'street': 'street', - 'street_raw': 'streetRaw', - 'name': 'name', - 'name_raw': 'nameRaw' - } - - def __init__(self, code=None, code_raw=None, email=None, email_raw=None, phone_number=None, phone_number_raw=None, postal_code=None, postal_code_raw=None, street=None, street_raw=None, name=None, name_raw=None): - """ - InlineResponse201ProcessorInformationElectronicVerificationResults - a model defined in Swagger - """ - - self._code = None - self._code_raw = None - self._email = None - self._email_raw = None - self._phone_number = None - self._phone_number_raw = None - self._postal_code = None - self._postal_code_raw = None - self._street = None - self._street_raw = None - self._name = None - self._name_raw = None - - if code is not None: - self.code = code - if code_raw is not None: - self.code_raw = code_raw - if email is not None: - self.email = email - if email_raw is not None: - self.email_raw = email_raw - if phone_number is not None: - self.phone_number = phone_number - if phone_number_raw is not None: - self.phone_number_raw = phone_number_raw - if postal_code is not None: - self.postal_code = postal_code - if postal_code_raw is not None: - self.postal_code_raw = postal_code_raw - if street is not None: - self.street = street - if street_raw is not None: - self.street_raw = street_raw - if name is not None: - self.name = name - if name_raw is not None: - self.name_raw = name_raw - - @property - def code(self): - """ - Gets the code of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Mapped Electronic Verification response code for the customer’s name. - - :return: The code of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Mapped Electronic Verification response code for the customer’s name. - - :param code: The code of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if code is not None and len(code) > 1: - raise ValueError("Invalid value for `code`, length must be less than or equal to `1`") - - self._code = code - - @property - def code_raw(self): - """ - Gets the code_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Raw Electronic Verification response code from the processor for the customer’s last name - - :return: The code_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._code_raw - - @code_raw.setter - def code_raw(self, code_raw): - """ - Sets the code_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Raw Electronic Verification response code from the processor for the customer’s last name - - :param code_raw: The code_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if code_raw is not None and len(code_raw) > 1: - raise ValueError("Invalid value for `code_raw`, length must be less than or equal to `1`") - - self._code_raw = code_raw - - @property - def email(self): - """ - Gets the email of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Mapped Electronic Verification response code for the customer’s email address. - - :return: The email of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """ - Sets the email of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Mapped Electronic Verification response code for the customer’s email address. - - :param email: The email of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if email is not None and len(email) > 1: - raise ValueError("Invalid value for `email`, length must be less than or equal to `1`") - - self._email = email - - @property - def email_raw(self): - """ - Gets the email_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Raw Electronic Verification response code from the processor for the customer’s email address. - - :return: The email_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._email_raw - - @email_raw.setter - def email_raw(self, email_raw): - """ - Sets the email_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Raw Electronic Verification response code from the processor for the customer’s email address. - - :param email_raw: The email_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if email_raw is not None and len(email_raw) > 1: - raise ValueError("Invalid value for `email_raw`, length must be less than or equal to `1`") - - self._email_raw = email_raw - - @property - def phone_number(self): - """ - Gets the phone_number of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Mapped Electronic Verification response code for the customer’s phone number. - - :return: The phone_number of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Mapped Electronic Verification response code for the customer’s phone number. - - :param phone_number: The phone_number of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if phone_number is not None and len(phone_number) > 1: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `1`") - - self._phone_number = phone_number - - @property - def phone_number_raw(self): - """ - Gets the phone_number_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Raw Electronic Verification response code from the processor for the customer’s phone number. - - :return: The phone_number_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._phone_number_raw - - @phone_number_raw.setter - def phone_number_raw(self, phone_number_raw): - """ - Sets the phone_number_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Raw Electronic Verification response code from the processor for the customer’s phone number. - - :param phone_number_raw: The phone_number_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if phone_number_raw is not None and len(phone_number_raw) > 1: - raise ValueError("Invalid value for `phone_number_raw`, length must be less than or equal to `1`") - - self._phone_number_raw = phone_number_raw - - @property - def postal_code(self): - """ - Gets the postal_code of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Mapped Electronic Verification response code for the customer’s postal code. - - :return: The postal_code of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Mapped Electronic Verification response code for the customer’s postal code. - - :param postal_code: The postal_code of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if postal_code is not None and len(postal_code) > 1: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `1`") - - self._postal_code = postal_code - - @property - def postal_code_raw(self): - """ - Gets the postal_code_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Raw Electronic Verification response code from the processor for the customer’s postal code. - - :return: The postal_code_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._postal_code_raw - - @postal_code_raw.setter - def postal_code_raw(self, postal_code_raw): - """ - Sets the postal_code_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Raw Electronic Verification response code from the processor for the customer’s postal code. - - :param postal_code_raw: The postal_code_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if postal_code_raw is not None and len(postal_code_raw) > 1: - raise ValueError("Invalid value for `postal_code_raw`, length must be less than or equal to `1`") - - self._postal_code_raw = postal_code_raw - - @property - def street(self): - """ - Gets the street of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Mapped Electronic Verification response code for the customer’s street address. - - :return: The street of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._street - - @street.setter - def street(self, street): - """ - Sets the street of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Mapped Electronic Verification response code for the customer’s street address. - - :param street: The street of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if street is not None and len(street) > 1: - raise ValueError("Invalid value for `street`, length must be less than or equal to `1`") - - self._street = street - - @property - def street_raw(self): - """ - Gets the street_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Raw Electronic Verification response code from the processor for the customer’s street address. - - :return: The street_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._street_raw - - @street_raw.setter - def street_raw(self, street_raw): - """ - Sets the street_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - Raw Electronic Verification response code from the processor for the customer’s street address. - - :param street_raw: The street_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if street_raw is not None and len(street_raw) > 1: - raise ValueError("Invalid value for `street_raw`, length must be less than or equal to `1`") - - self._street_raw = street_raw - - @property - def name(self): - """ - Gets the name of this InlineResponse201ProcessorInformationElectronicVerificationResults. - TODO - - :return: The name of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this InlineResponse201ProcessorInformationElectronicVerificationResults. - TODO - - :param name: The name of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if name is not None and len(name) > 30: - raise ValueError("Invalid value for `name`, length must be less than or equal to `30`") - - self._name = name - - @property - def name_raw(self): - """ - Gets the name_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - TODO - - :return: The name_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :rtype: str - """ - return self._name_raw - - @name_raw.setter - def name_raw(self, name_raw): - """ - Sets the name_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - TODO - - :param name_raw: The name_raw of this InlineResponse201ProcessorInformationElectronicVerificationResults. - :type: str - """ - if name_raw is not None and len(name_raw) > 30: - raise ValueError("Invalid value for `name_raw`, length must be less than or equal to `30`") - - self._name_raw = name_raw - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ProcessorInformationElectronicVerificationResults): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_processor_information_issuer.py b/CyberSource/models/inline_response_201_processor_information_issuer.py deleted file mode 100644 index c21f87ec..00000000 --- a/CyberSource/models/inline_response_201_processor_information_issuer.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ProcessorInformationIssuer(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'country': 'str', - 'discretionary_data': 'str' - } - - attribute_map = { - 'country': 'country', - 'discretionary_data': 'discretionaryData' - } - - def __init__(self, country=None, discretionary_data=None): - """ - InlineResponse201ProcessorInformationIssuer - a model defined in Swagger - """ - - self._country = None - self._discretionary_data = None - - if country is not None: - self.country = country - if discretionary_data is not None: - self.discretionary_data = discretionary_data - - @property - def country(self): - """ - Gets the country of this InlineResponse201ProcessorInformationIssuer. - Country in which the card was issued. This information enables you to determine whether the card was issued domestically or internationally. Use the two-character ISO Standard Country Codes. This field is supported for Visa, Mastercard, Discover, Diners Club, JCB, and Maestro (International) on Chase Paymentech Solutions. - - :return: The country of this InlineResponse201ProcessorInformationIssuer. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this InlineResponse201ProcessorInformationIssuer. - Country in which the card was issued. This information enables you to determine whether the card was issued domestically or internationally. Use the two-character ISO Standard Country Codes. This field is supported for Visa, Mastercard, Discover, Diners Club, JCB, and Maestro (International) on Chase Paymentech Solutions. - - :param country: The country of this InlineResponse201ProcessorInformationIssuer. - :type: str - """ - if country is not None and len(country) > 3: - raise ValueError("Invalid value for `country`, length must be less than or equal to `3`") - - self._country = country - - @property - def discretionary_data(self): - """ - Gets the discretionary_data of this InlineResponse201ProcessorInformationIssuer. - Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. - - :return: The discretionary_data of this InlineResponse201ProcessorInformationIssuer. - :rtype: str - """ - return self._discretionary_data - - @discretionary_data.setter - def discretionary_data(self, discretionary_data): - """ - Sets the discretionary_data of this InlineResponse201ProcessorInformationIssuer. - Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. - - :param discretionary_data: The discretionary_data of this InlineResponse201ProcessorInformationIssuer. - :type: str - """ - if discretionary_data is not None and len(discretionary_data) > 255: - raise ValueError("Invalid value for `discretionary_data`, length must be less than or equal to `255`") - - self._discretionary_data = discretionary_data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ProcessorInformationIssuer): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_201_processor_information_merchant_advice.py b/CyberSource/models/inline_response_201_processor_information_merchant_advice.py deleted file mode 100644 index 7e63e1e1..00000000 --- a/CyberSource/models/inline_response_201_processor_information_merchant_advice.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse201ProcessorInformationMerchantAdvice(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'code': 'str', - 'code_raw': 'str' - } - - attribute_map = { - 'code': 'code', - 'code_raw': 'codeRaw' - } - - def __init__(self, code=None, code_raw=None): - """ - InlineResponse201ProcessorInformationMerchantAdvice - a model defined in Swagger - """ - - self._code = None - self._code_raw = None - - if code is not None: - self.code = code - if code_raw is not None: - self.code_raw = code_raw - - @property - def code(self): - """ - Gets the code of this InlineResponse201ProcessorInformationMerchantAdvice. - Reason the recurring payment transaction was declined. For some processors, this field is used only for Mastercard. For other processors, this field is used for Visa and Mastercard. And for other processors, this field is not implemented. Possible values: - **00**: Response not provided. - **01**: New account information is available. Obtain the new information. - **02**: Try again later. - **03**: Do not try again. Obtain another type of payment from the customer. - **04**: Problem with a token or a partial shipment indicator. - **21**: Recurring payment cancellation service. - **99**: An unknown value was returned from the processor. - - :return: The code of this InlineResponse201ProcessorInformationMerchantAdvice. - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this InlineResponse201ProcessorInformationMerchantAdvice. - Reason the recurring payment transaction was declined. For some processors, this field is used only for Mastercard. For other processors, this field is used for Visa and Mastercard. And for other processors, this field is not implemented. Possible values: - **00**: Response not provided. - **01**: New account information is available. Obtain the new information. - **02**: Try again later. - **03**: Do not try again. Obtain another type of payment from the customer. - **04**: Problem with a token or a partial shipment indicator. - **21**: Recurring payment cancellation service. - **99**: An unknown value was returned from the processor. - - :param code: The code of this InlineResponse201ProcessorInformationMerchantAdvice. - :type: str - """ - if code is not None and len(code) > 2: - raise ValueError("Invalid value for `code`, length must be less than or equal to `2`") - - self._code = code - - @property - def code_raw(self): - """ - Gets the code_raw of this InlineResponse201ProcessorInformationMerchantAdvice. - Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. For processor-specific information, see the auth_merchant_advice_code_raw field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The code_raw of this InlineResponse201ProcessorInformationMerchantAdvice. - :rtype: str - """ - return self._code_raw - - @code_raw.setter - def code_raw(self, code_raw): - """ - Sets the code_raw of this InlineResponse201ProcessorInformationMerchantAdvice. - Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. For processor-specific information, see the auth_merchant_advice_code_raw field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param code_raw: The code_raw of this InlineResponse201ProcessorInformationMerchantAdvice. - :type: str - """ - if code_raw is not None and len(code_raw) > 2: - raise ValueError("Invalid value for `code_raw`, length must be less than or equal to `2`") - - self._code_raw = code_raw - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse201ProcessorInformationMerchantAdvice): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_400.py b/CyberSource/models/inline_response_400.py index 7fbe8814..61699ea6 100644 --- a/CyberSource/models/inline_response_400.py +++ b/CyberSource/models/inline_response_400.py @@ -31,129 +31,59 @@ class InlineResponse400(object): and the value is json key in definition. """ swagger_types = { - 'submit_time_utc': 'str', - 'status': 'str', - 'reason': 'str', + 'type': 'str', 'message': 'str', - 'details': 'list[InlineResponse201ErrorInformationDetails]' + 'details': 'Tmsv1instrumentidentifiersDetails' } attribute_map = { - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reason': 'reason', + 'type': 'type', 'message': 'message', 'details': 'details' } - def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): + def __init__(self, type=None, message=None, details=None): """ InlineResponse400 - a model defined in Swagger """ - self._submit_time_utc = None - self._status = None - self._reason = None + self._type = None self._message = None self._details = None - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reason is not None: - self.reason = reason + if type is not None: + self.type = type if message is not None: self.message = message if details is not None: self.details = details @property - def submit_time_utc(self): + def type(self): """ - Gets the submit_time_utc of this InlineResponse400. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + Gets the type of this InlineResponse400. - :return: The submit_time_utc of this InlineResponse400. + :return: The type of this InlineResponse400. :rtype: str """ - return self._submit_time_utc + return self._type - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): + @type.setter + def type(self, type): """ - Sets the submit_time_utc of this InlineResponse400. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + Sets the type of this InlineResponse400. - :param submit_time_utc: The submit_time_utc of this InlineResponse400. + :param type: The type of this InlineResponse400. :type: str """ - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse400. - The status of the submitted transaction. - - :return: The status of this InlineResponse400. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse400. - The status of the submitted transaction. - - :param status: The status of this InlineResponse400. - :type: str - """ - allowed_values = ["INVALID_REQUEST"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reason(self): - """ - Gets the reason of this InlineResponse400. - The reason of the status. - - :return: The reason of this InlineResponse400. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this InlineResponse400. - The reason of the status. - - :param reason: The reason of this InlineResponse400. - :type: str - """ - allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_CARD", "CARD_TYPE_NOT_ACCEPTED", "INVALID_MERCHANT_CONFIGURATION", "PROCESSOR_UNAVAILABLE", "INVALID_AMOUNT", "INVALID_CARD_TYPE", "DEBIT_CARD_USEAGE_EXCEEDD_LIMIT"] - if reason not in allowed_values: - raise ValueError( - "Invalid value for `reason` ({0}), must be one of {1}" - .format(reason, allowed_values) - ) - - self._reason = reason + self._type = type @property def message(self): """ Gets the message of this InlineResponse400. - The detail message related to the status and reason listed above. + The detailed message related to the type stated above. :return: The message of this InlineResponse400. :rtype: str @@ -164,7 +94,7 @@ def message(self): def message(self, message): """ Sets the message of this InlineResponse400. - The detail message related to the status and reason listed above. + The detailed message related to the type stated above. :param message: The message of this InlineResponse400. :type: str @@ -178,7 +108,7 @@ def details(self): Gets the details of this InlineResponse400. :return: The details of this InlineResponse400. - :rtype: list[InlineResponse201ErrorInformationDetails] + :rtype: Tmsv1instrumentidentifiersDetails """ return self._details @@ -188,7 +118,7 @@ def details(self, details): Sets the details of this InlineResponse400. :param details: The details of this InlineResponse400. - :type: list[InlineResponse201ErrorInformationDetails] + :type: Tmsv1instrumentidentifiersDetails """ self._details = details diff --git a/CyberSource/models/inline_response_400_1.py b/CyberSource/models/inline_response_400_1.py deleted file mode 100644 index f0f35f53..00000000 --- a/CyberSource/models/inline_response_400_1.py +++ /dev/null @@ -1,247 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse4001(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'submit_time_utc': 'str', - 'status': 'str', - 'reason': 'str', - 'message': 'str', - 'details': 'list[InlineResponse201ErrorInformationDetails]' - } - - attribute_map = { - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reason': 'reason', - 'message': 'message', - 'details': 'details' - } - - def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): - """ - InlineResponse4001 - a model defined in Swagger - """ - - self._submit_time_utc = None - self._status = None - self._reason = None - self._message = None - self._details = None - - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reason is not None: - self.reason = reason - if message is not None: - self.message = message - if details is not None: - self.details = details - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse4001. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse4001. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse4001. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse4001. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse4001. - The status of the submitted transaction. - - :return: The status of this InlineResponse4001. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse4001. - The status of the submitted transaction. - - :param status: The status of this InlineResponse4001. - :type: str - """ - allowed_values = ["INVALID_REQUEST"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reason(self): - """ - Gets the reason of this InlineResponse4001. - The reason of the status. - - :return: The reason of this InlineResponse4001. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this InlineResponse4001. - The reason of the status. - - :param reason: The reason of this InlineResponse4001. - :type: str - """ - allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_MERCHANT_CONFIGURATION", "AUTH_ALREADY_REVERSED", "MISSING_AUTH", "TRANSACTION_ALREADY_REVERSED_OR_SETTLED"] - if reason not in allowed_values: - raise ValueError( - "Invalid value for `reason` ({0}), must be one of {1}" - .format(reason, allowed_values) - ) - - self._reason = reason - - @property - def message(self): - """ - Gets the message of this InlineResponse4001. - The detail message related to the status and reason listed above. - - :return: The message of this InlineResponse4001. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this InlineResponse4001. - The detail message related to the status and reason listed above. - - :param message: The message of this InlineResponse4001. - :type: str - """ - - self._message = message - - @property - def details(self): - """ - Gets the details of this InlineResponse4001. - - :return: The details of this InlineResponse4001. - :rtype: list[InlineResponse201ErrorInformationDetails] - """ - return self._details - - @details.setter - def details(self, details): - """ - Sets the details of this InlineResponse4001. - - :param details: The details of this InlineResponse4001. - :type: list[InlineResponse201ErrorInformationDetails] - """ - - self._details = details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse4001): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_400_2.py b/CyberSource/models/inline_response_400_2.py deleted file mode 100644 index d2ee2f3e..00000000 --- a/CyberSource/models/inline_response_400_2.py +++ /dev/null @@ -1,247 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse4002(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'submit_time_utc': 'str', - 'status': 'str', - 'reason': 'str', - 'message': 'str', - 'details': 'list[InlineResponse201ErrorInformationDetails]' - } - - attribute_map = { - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reason': 'reason', - 'message': 'message', - 'details': 'details' - } - - def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): - """ - InlineResponse4002 - a model defined in Swagger - """ - - self._submit_time_utc = None - self._status = None - self._reason = None - self._message = None - self._details = None - - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reason is not None: - self.reason = reason - if message is not None: - self.message = message - if details is not None: - self.details = details - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse4002. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse4002. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse4002. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse4002. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse4002. - The status of the submitted transaction. - - :return: The status of this InlineResponse4002. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse4002. - The status of the submitted transaction. - - :param status: The status of this InlineResponse4002. - :type: str - """ - allowed_values = ["INVALID_REQUEST"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reason(self): - """ - Gets the reason of this InlineResponse4002. - The reason of the status. - - :return: The reason of this InlineResponse4002. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this InlineResponse4002. - The reason of the status. - - :param reason: The reason of this InlineResponse4002. - :type: str - """ - allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_MERCHANT_CONFIGURATION", "EXCEEDS_AUTH_AMOUNT", "AUTH_ALREADY_REVERSED", "TRANSACTION_ALREADY_SETTLED", "MISSING_AUTH", "TRANSACTION_ALREADY_REVERSED_OR_SETTLED"] - if reason not in allowed_values: - raise ValueError( - "Invalid value for `reason` ({0}), must be one of {1}" - .format(reason, allowed_values) - ) - - self._reason = reason - - @property - def message(self): - """ - Gets the message of this InlineResponse4002. - The detail message related to the status and reason listed above. - - :return: The message of this InlineResponse4002. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this InlineResponse4002. - The detail message related to the status and reason listed above. - - :param message: The message of this InlineResponse4002. - :type: str - """ - - self._message = message - - @property - def details(self): - """ - Gets the details of this InlineResponse4002. - - :return: The details of this InlineResponse4002. - :rtype: list[InlineResponse201ErrorInformationDetails] - """ - return self._details - - @details.setter - def details(self, details): - """ - Sets the details of this InlineResponse4002. - - :param details: The details of this InlineResponse4002. - :type: list[InlineResponse201ErrorInformationDetails] - """ - - self._details = details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse4002): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_400_3.py b/CyberSource/models/inline_response_400_3.py deleted file mode 100644 index 25443c85..00000000 --- a/CyberSource/models/inline_response_400_3.py +++ /dev/null @@ -1,247 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse4003(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'submit_time_utc': 'str', - 'status': 'str', - 'reason': 'str', - 'message': 'str', - 'details': 'list[InlineResponse201ErrorInformationDetails]' - } - - attribute_map = { - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reason': 'reason', - 'message': 'message', - 'details': 'details' - } - - def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): - """ - InlineResponse4003 - a model defined in Swagger - """ - - self._submit_time_utc = None - self._status = None - self._reason = None - self._message = None - self._details = None - - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reason is not None: - self.reason = reason - if message is not None: - self.message = message - if details is not None: - self.details = details - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse4003. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse4003. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse4003. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse4003. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse4003. - The status of the submitted transaction. - - :return: The status of this InlineResponse4003. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse4003. - The status of the submitted transaction. - - :param status: The status of this InlineResponse4003. - :type: str - """ - allowed_values = ["INVALID_REQUEST"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reason(self): - """ - Gets the reason of this InlineResponse4003. - The reason of the status. - - :return: The reason of this InlineResponse4003. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this InlineResponse4003. - The reason of the status. - - :param reason: The reason of this InlineResponse4003. - :type: str - """ - allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_CARD", "INVALID_MERCHANT_CONFIGURATION", "CAPTURE_ALREADY_VOIDED", "ACCOUNT_NOT_ALLOWED_CREDIT"] - if reason not in allowed_values: - raise ValueError( - "Invalid value for `reason` ({0}), must be one of {1}" - .format(reason, allowed_values) - ) - - self._reason = reason - - @property - def message(self): - """ - Gets the message of this InlineResponse4003. - The detail message related to the status and reason listed above. - - :return: The message of this InlineResponse4003. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this InlineResponse4003. - The detail message related to the status and reason listed above. - - :param message: The message of this InlineResponse4003. - :type: str - """ - - self._message = message - - @property - def details(self): - """ - Gets the details of this InlineResponse4003. - - :return: The details of this InlineResponse4003. - :rtype: list[InlineResponse201ErrorInformationDetails] - """ - return self._details - - @details.setter - def details(self, details): - """ - Sets the details of this InlineResponse4003. - - :param details: The details of this InlineResponse4003. - :type: list[InlineResponse201ErrorInformationDetails] - """ - - self._details = details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse4003): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_400_4.py b/CyberSource/models/inline_response_400_4.py deleted file mode 100644 index 8797edea..00000000 --- a/CyberSource/models/inline_response_400_4.py +++ /dev/null @@ -1,247 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse4004(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'submit_time_utc': 'str', - 'status': 'str', - 'reason': 'str', - 'message': 'str', - 'details': 'list[InlineResponse201ErrorInformationDetails]' - } - - attribute_map = { - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reason': 'reason', - 'message': 'message', - 'details': 'details' - } - - def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): - """ - InlineResponse4004 - a model defined in Swagger - """ - - self._submit_time_utc = None - self._status = None - self._reason = None - self._message = None - self._details = None - - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reason is not None: - self.reason = reason - if message is not None: - self.message = message - if details is not None: - self.details = details - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse4004. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse4004. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse4004. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse4004. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse4004. - The status of the submitted transaction. - - :return: The status of this InlineResponse4004. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse4004. - The status of the submitted transaction. - - :param status: The status of this InlineResponse4004. - :type: str - """ - allowed_values = ["INVALID_REQUEST"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reason(self): - """ - Gets the reason of this InlineResponse4004. - The reason of the status. - - :return: The reason of this InlineResponse4004. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this InlineResponse4004. - The reason of the status. - - :param reason: The reason of this InlineResponse4004. - :type: str - """ - allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_MERCHANT_CONFIGURATION", "NOT_VOIDABLE"] - if reason not in allowed_values: - raise ValueError( - "Invalid value for `reason` ({0}), must be one of {1}" - .format(reason, allowed_values) - ) - - self._reason = reason - - @property - def message(self): - """ - Gets the message of this InlineResponse4004. - The detail message related to the status and reason listed above. - - :return: The message of this InlineResponse4004. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this InlineResponse4004. - The detail message related to the status and reason listed above. - - :param message: The message of this InlineResponse4004. - :type: str - """ - - self._message = message - - @property - def details(self): - """ - Gets the details of this InlineResponse4004. - - :return: The details of this InlineResponse4004. - :rtype: list[InlineResponse201ErrorInformationDetails] - """ - return self._details - - @details.setter - def details(self, details): - """ - Sets the details of this InlineResponse4004. - - :param details: The details of this InlineResponse4004. - :type: list[InlineResponse201ErrorInformationDetails] - """ - - self._details = details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse4004): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_400_5.py b/CyberSource/models/inline_response_400_5.py deleted file mode 100644 index b3f34109..00000000 --- a/CyberSource/models/inline_response_400_5.py +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse4005(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'submit_time_utc': 'str', - 'status': 'str', - 'reason': 'str', - 'message': 'str', - 'details': 'list[InlineResponse201ErrorInformationDetails]' - } - - attribute_map = { - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reason': 'reason', - 'message': 'message', - 'details': 'details' - } - - def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): - """ - InlineResponse4005 - a model defined in Swagger - """ - - self._submit_time_utc = None - self._status = None - self._reason = None - self._message = None - self._details = None - - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reason is not None: - self.reason = reason - if message is not None: - self.message = message - if details is not None: - self.details = details - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse4005. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse4005. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse4005. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse4005. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse4005. - The status of the submitted transaction. - - :return: The status of this InlineResponse4005. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse4005. - The status of the submitted transaction. - - :param status: The status of this InlineResponse4005. - :type: str - """ - - self._status = status - - @property - def reason(self): - """ - Gets the reason of this InlineResponse4005. - The reason of the status. - - :return: The reason of this InlineResponse4005. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this InlineResponse4005. - The reason of the status. - - :param reason: The reason of this InlineResponse4005. - :type: str - """ - allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_MERCHANT_CONFIGURATION", "INVALID_AMOUNT", "DEBIT_CARD_USEAGE_EXCEEDD_LIMIT"] - if reason not in allowed_values: - raise ValueError( - "Invalid value for `reason` ({0}), must be one of {1}" - .format(reason, allowed_values) - ) - - self._reason = reason - - @property - def message(self): - """ - Gets the message of this InlineResponse4005. - The detail message related to the status and reason listed above. Possible value is: - Your aggregator or acquirer is not accepting transactions from you at this time. - Your aggregator or acquirer is not accepting this transaction. - CyberSource declined the request because the credit card has expired. You might also receive this value if the expiration date you provided does not match the date the issuing bank has on file. - The bank declined the transaction. - The merchant reference number for this authorization request matches the merchant reference number of another authorization request that you sent within the past 15 minutes. Resend the request with a unique merchant reference number. - The credit card number did not pass CyberSource basic checks. - Data provided is not consistent with the request. For example, you requested a product with negative cost. - The request is missing a required field. - - :return: The message of this InlineResponse4005. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this InlineResponse4005. - The detail message related to the status and reason listed above. Possible value is: - Your aggregator or acquirer is not accepting transactions from you at this time. - Your aggregator or acquirer is not accepting this transaction. - CyberSource declined the request because the credit card has expired. You might also receive this value if the expiration date you provided does not match the date the issuing bank has on file. - The bank declined the transaction. - The merchant reference number for this authorization request matches the merchant reference number of another authorization request that you sent within the past 15 minutes. Resend the request with a unique merchant reference number. - The credit card number did not pass CyberSource basic checks. - Data provided is not consistent with the request. For example, you requested a product with negative cost. - The request is missing a required field. - - :param message: The message of this InlineResponse4005. - :type: str - """ - - self._message = message - - @property - def details(self): - """ - Gets the details of this InlineResponse4005. - - :return: The details of this InlineResponse4005. - :rtype: list[InlineResponse201ErrorInformationDetails] - """ - return self._details - - @details.setter - def details(self, details): - """ - Sets the details of this InlineResponse4005. - - :param details: The details of this InlineResponse4005. - :type: list[InlineResponse201ErrorInformationDetails] - """ - - self._details = details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse4005): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_400_6.py b/CyberSource/models/inline_response_400_6.py deleted file mode 100644 index e17feb6f..00000000 --- a/CyberSource/models/inline_response_400_6.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse4006(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'str', - 'message': 'str', - 'details': 'InstrumentidentifiersDetails' - } - - attribute_map = { - 'type': 'type', - 'message': 'message', - 'details': 'details' - } - - def __init__(self, type=None, message=None, details=None): - """ - InlineResponse4006 - a model defined in Swagger - """ - - self._type = None - self._message = None - self._details = None - - if type is not None: - self.type = type - if message is not None: - self.message = message - if details is not None: - self.details = details - - @property - def type(self): - """ - Gets the type of this InlineResponse4006. - - :return: The type of this InlineResponse4006. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this InlineResponse4006. - - :param type: The type of this InlineResponse4006. - :type: str - """ - - self._type = type - - @property - def message(self): - """ - Gets the message of this InlineResponse4006. - The detailed message related to the type stated above. - - :return: The message of this InlineResponse4006. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this InlineResponse4006. - The detailed message related to the type stated above. - - :param message: The message of this InlineResponse4006. - :type: str - """ - - self._message = message - - @property - def details(self): - """ - Gets the details of this InlineResponse4006. - - :return: The details of this InlineResponse4006. - :rtype: InstrumentidentifiersDetails - """ - return self._details - - @details.setter - def details(self, details): - """ - Sets the details of this InlineResponse4006. - - :param details: The details of this InlineResponse4006. - :type: InstrumentidentifiersDetails - """ - - self._details = details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse4006): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_409.py b/CyberSource/models/inline_response_409.py deleted file mode 100644 index fb478ab8..00000000 --- a/CyberSource/models/inline_response_409.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse409(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InlineResponse409Links' - } - - attribute_map = { - 'links': '_links' - } - - def __init__(self, links=None): - """ - InlineResponse409 - a model defined in Swagger - """ - - self._links = None - - if links is not None: - self.links = links - - @property - def links(self): - """ - Gets the links of this InlineResponse409. - - :return: The links of this InlineResponse409. - :rtype: InlineResponse409Links - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this InlineResponse409. - - :param links: The links of this InlineResponse409. - :type: InlineResponse409Links - """ - - self._links = links - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse409): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_409__links.py b/CyberSource/models/inline_response_409__links.py deleted file mode 100644 index bfbfd32d..00000000 --- a/CyberSource/models/inline_response_409__links.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse409Links(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'payment_instruments': 'InlineResponse409LinksPaymentInstruments' - } - - attribute_map = { - 'payment_instruments': 'paymentInstruments' - } - - def __init__(self, payment_instruments=None): - """ - InlineResponse409Links - a model defined in Swagger - """ - - self._payment_instruments = None - - if payment_instruments is not None: - self.payment_instruments = payment_instruments - - @property - def payment_instruments(self): - """ - Gets the payment_instruments of this InlineResponse409Links. - - :return: The payment_instruments of this InlineResponse409Links. - :rtype: InlineResponse409LinksPaymentInstruments - """ - return self._payment_instruments - - @payment_instruments.setter - def payment_instruments(self, payment_instruments): - """ - Sets the payment_instruments of this InlineResponse409Links. - - :param payment_instruments: The payment_instruments of this InlineResponse409Links. - :type: InlineResponse409LinksPaymentInstruments - """ - - self._payment_instruments = payment_instruments - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse409Links): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_409__links_payment_instruments.py b/CyberSource/models/inline_response_409__links_payment_instruments.py deleted file mode 100644 index 77c4e8ca..00000000 --- a/CyberSource/models/inline_response_409__links_payment_instruments.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse409LinksPaymentInstruments(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'href': 'str' - } - - attribute_map = { - 'href': 'href' - } - - def __init__(self, href=None): - """ - InlineResponse409LinksPaymentInstruments - a model defined in Swagger - """ - - self._href = None - - if href is not None: - self.href = href - - @property - def href(self): - """ - Gets the href of this InlineResponse409LinksPaymentInstruments. - - :return: The href of this InlineResponse409LinksPaymentInstruments. - :rtype: str - """ - return self._href - - @href.setter - def href(self, href): - """ - Sets the href of this InlineResponse409LinksPaymentInstruments. - - :param href: The href of this InlineResponse409LinksPaymentInstruments. - :type: str - """ - - self._href = href - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse409LinksPaymentInstruments): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/inline_response_502.py b/CyberSource/models/inline_response_502.py deleted file mode 100644 index 481647e1..00000000 --- a/CyberSource/models/inline_response_502.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InlineResponse502(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'submit_time_utc': 'str', - 'status': 'str', - 'reason': 'str', - 'message': 'str' - } - - attribute_map = { - 'submit_time_utc': 'submitTimeUtc', - 'status': 'status', - 'reason': 'reason', - 'message': 'message' - } - - def __init__(self, submit_time_utc=None, status=None, reason=None, message=None): - """ - InlineResponse502 - a model defined in Swagger - """ - - self._submit_time_utc = None - self._status = None - self._reason = None - self._message = None - - if submit_time_utc is not None: - self.submit_time_utc = submit_time_utc - if status is not None: - self.status = status - if reason is not None: - self.reason = reason - if message is not None: - self.message = message - - @property - def submit_time_utc(self): - """ - Gets the submit_time_utc of this InlineResponse502. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :return: The submit_time_utc of this InlineResponse502. - :rtype: str - """ - return self._submit_time_utc - - @submit_time_utc.setter - def submit_time_utc(self, submit_time_utc): - """ - Sets the submit_time_utc of this InlineResponse502. - Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. - - :param submit_time_utc: The submit_time_utc of this InlineResponse502. - :type: str - """ - - self._submit_time_utc = submit_time_utc - - @property - def status(self): - """ - Gets the status of this InlineResponse502. - The status of the submitted transaction. - - :return: The status of this InlineResponse502. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this InlineResponse502. - The status of the submitted transaction. - - :param status: The status of this InlineResponse502. - :type: str - """ - allowed_values = ["SERVER_ERROR"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - @property - def reason(self): - """ - Gets the reason of this InlineResponse502. - The reason of the status. - - :return: The reason of this InlineResponse502. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this InlineResponse502. - The reason of the status. - - :param reason: The reason of this InlineResponse502. - :type: str - """ - allowed_values = ["SYSTEM_ERROR", "SERVER_TIMEOUT", "SERVICE_TIMEOUT", "PROCESSOR_TIMEOUT"] - if reason not in allowed_values: - raise ValueError( - "Invalid value for `reason` ({0}), must be one of {1}" - .format(reason, allowed_values) - ) - - self._reason = reason - - @property - def message(self): - """ - Gets the message of this InlineResponse502. - The detail message related to the status and reason listed above. - - :return: The message of this InlineResponse502. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this InlineResponse502. - The detail message related to the status and reason listed above. - - :param message: The message of this InlineResponse502. - :type: str - """ - - self._message = message - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InlineResponse502): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/instrumentidentifiers__links.py b/CyberSource/models/instrumentidentifiers__links.py deleted file mode 100644 index da8e78d2..00000000 --- a/CyberSource/models/instrumentidentifiers__links.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InstrumentidentifiersLinks(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - '_self': 'InstrumentidentifiersLinksSelf', - 'ancestor': 'InstrumentidentifiersLinksSelf', - 'successor': 'InstrumentidentifiersLinksSelf' - } - - attribute_map = { - '_self': 'self', - 'ancestor': 'ancestor', - 'successor': 'successor' - } - - def __init__(self, _self=None, ancestor=None, successor=None): - """ - InstrumentidentifiersLinks - a model defined in Swagger - """ - - self.__self = None - self._ancestor = None - self._successor = None - - if _self is not None: - self._self = _self - if ancestor is not None: - self.ancestor = ancestor - if successor is not None: - self.successor = successor - - @property - def _self(self): - """ - Gets the _self of this InstrumentidentifiersLinks. - - :return: The _self of this InstrumentidentifiersLinks. - :rtype: InstrumentidentifiersLinksSelf - """ - return self.__self - - @_self.setter - def _self(self, _self): - """ - Sets the _self of this InstrumentidentifiersLinks. - - :param _self: The _self of this InstrumentidentifiersLinks. - :type: InstrumentidentifiersLinksSelf - """ - - self.__self = _self - - @property - def ancestor(self): - """ - Gets the ancestor of this InstrumentidentifiersLinks. - - :return: The ancestor of this InstrumentidentifiersLinks. - :rtype: InstrumentidentifiersLinksSelf - """ - return self._ancestor - - @ancestor.setter - def ancestor(self, ancestor): - """ - Sets the ancestor of this InstrumentidentifiersLinks. - - :param ancestor: The ancestor of this InstrumentidentifiersLinks. - :type: InstrumentidentifiersLinksSelf - """ - - self._ancestor = ancestor - - @property - def successor(self): - """ - Gets the successor of this InstrumentidentifiersLinks. - - :return: The successor of this InstrumentidentifiersLinks. - :rtype: InstrumentidentifiersLinksSelf - """ - return self._successor - - @successor.setter - def successor(self, successor): - """ - Sets the successor of this InstrumentidentifiersLinks. - - :param successor: The successor of this InstrumentidentifiersLinks. - :type: InstrumentidentifiersLinksSelf - """ - - self._successor = successor - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InstrumentidentifiersLinks): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/instrumentidentifiers__links_self.py b/CyberSource/models/instrumentidentifiers__links_self.py deleted file mode 100644 index ac4c32c7..00000000 --- a/CyberSource/models/instrumentidentifiers__links_self.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InstrumentidentifiersLinksSelf(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'href': 'str' - } - - attribute_map = { - 'href': 'href' - } - - def __init__(self, href=None): - """ - InstrumentidentifiersLinksSelf - a model defined in Swagger - """ - - self._href = None - - if href is not None: - self.href = href - - @property - def href(self): - """ - Gets the href of this InstrumentidentifiersLinksSelf. - - :return: The href of this InstrumentidentifiersLinksSelf. - :rtype: str - """ - return self._href - - @href.setter - def href(self, href): - """ - Sets the href of this InstrumentidentifiersLinksSelf. - - :param href: The href of this InstrumentidentifiersLinksSelf. - :type: str - """ - - self._href = href - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InstrumentidentifiersLinksSelf): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/instrumentidentifiers_bank_account.py b/CyberSource/models/instrumentidentifiers_bank_account.py deleted file mode 100644 index 33c076a4..00000000 --- a/CyberSource/models/instrumentidentifiers_bank_account.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InstrumentidentifiersBankAccount(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'number': 'str', - 'routing_number': 'str' - } - - attribute_map = { - 'number': 'number', - 'routing_number': 'routingNumber' - } - - def __init__(self, number=None, routing_number=None): - """ - InstrumentidentifiersBankAccount - a model defined in Swagger - """ - - self._number = None - self._routing_number = None - - if number is not None: - self.number = number - if routing_number is not None: - self.routing_number = routing_number - - @property - def number(self): - """ - Gets the number of this InstrumentidentifiersBankAccount. - Bank account number. - - :return: The number of this InstrumentidentifiersBankAccount. - :rtype: str - """ - return self._number - - @number.setter - def number(self, number): - """ - Sets the number of this InstrumentidentifiersBankAccount. - Bank account number. - - :param number: The number of this InstrumentidentifiersBankAccount. - :type: str - """ - - self._number = number - - @property - def routing_number(self): - """ - Gets the routing_number of this InstrumentidentifiersBankAccount. - Routing number. - - :return: The routing_number of this InstrumentidentifiersBankAccount. - :rtype: str - """ - return self._routing_number - - @routing_number.setter - def routing_number(self, routing_number): - """ - Sets the routing_number of this InstrumentidentifiersBankAccount. - Routing number. - - :param routing_number: The routing_number of this InstrumentidentifiersBankAccount. - :type: str - """ - - self._routing_number = routing_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InstrumentidentifiersBankAccount): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/instrumentidentifiers_card.py b/CyberSource/models/instrumentidentifiers_card.py deleted file mode 100644 index 5bd92512..00000000 --- a/CyberSource/models/instrumentidentifiers_card.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InstrumentidentifiersCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'number': 'str' - } - - attribute_map = { - 'number': 'number' - } - - def __init__(self, number=None): - """ - InstrumentidentifiersCard - a model defined in Swagger - """ - - self._number = None - - if number is not None: - self.number = number - - @property - def number(self): - """ - Gets the number of this InstrumentidentifiersCard. - Credit card number (PAN). - - :return: The number of this InstrumentidentifiersCard. - :rtype: str - """ - return self._number - - @number.setter - def number(self, number): - """ - Sets the number of this InstrumentidentifiersCard. - Credit card number (PAN). - - :param number: The number of this InstrumentidentifiersCard. - :type: str - """ - - self._number = number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InstrumentidentifiersCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/instrumentidentifiers_details.py b/CyberSource/models/instrumentidentifiers_details.py deleted file mode 100644 index c83f88af..00000000 --- a/CyberSource/models/instrumentidentifiers_details.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InstrumentidentifiersDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'location': 'str' - } - - attribute_map = { - 'name': 'name', - 'location': 'location' - } - - def __init__(self, name=None, location=None): - """ - InstrumentidentifiersDetails - a model defined in Swagger - """ - - self._name = None - self._location = None - - if name is not None: - self.name = name - if location is not None: - self.location = location - - @property - def name(self): - """ - Gets the name of this InstrumentidentifiersDetails. - The name of the field that threw the error. - - :return: The name of this InstrumentidentifiersDetails. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this InstrumentidentifiersDetails. - The name of the field that threw the error. - - :param name: The name of this InstrumentidentifiersDetails. - :type: str - """ - - self._name = name - - @property - def location(self): - """ - Gets the location of this InstrumentidentifiersDetails. - The location of the field that threw the error. - - :return: The location of this InstrumentidentifiersDetails. - :rtype: str - """ - return self._location - - @location.setter - def location(self, location): - """ - Sets the location of this InstrumentidentifiersDetails. - The location of the field that threw the error. - - :param location: The location of this InstrumentidentifiersDetails. - :type: str - """ - - self._location = location - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InstrumentidentifiersDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/instrumentidentifiers_merchant_initiated_transaction.py b/CyberSource/models/instrumentidentifiers_merchant_initiated_transaction.py deleted file mode 100644 index c18d1ac4..00000000 --- a/CyberSource/models/instrumentidentifiers_merchant_initiated_transaction.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'previous_transaction_id': 'str' - } - - attribute_map = { - 'previous_transaction_id': 'previousTransactionId' - } - - def __init__(self, previous_transaction_id=None): - """ - InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - a model defined in Swagger - """ - - self._previous_transaction_id = None - - if previous_transaction_id is not None: - self.previous_transaction_id = previous_transaction_id - - @property - def previous_transaction_id(self): - """ - Gets the previous_transaction_id of this InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - Previous Consumer Initiated Transaction Id. - - :return: The previous_transaction_id of this InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - :rtype: str - """ - return self._previous_transaction_id - - @previous_transaction_id.setter - def previous_transaction_id(self, previous_transaction_id): - """ - Sets the previous_transaction_id of this InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - Previous Consumer Initiated Transaction Id. - - :param previous_transaction_id: The previous_transaction_id of this InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - :type: str - """ - - self._previous_transaction_id = previous_transaction_id - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/instrumentidentifiers_metadata.py b/CyberSource/models/instrumentidentifiers_metadata.py deleted file mode 100644 index 25270c70..00000000 --- a/CyberSource/models/instrumentidentifiers_metadata.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InstrumentidentifiersMetadata(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'creator': 'str' - } - - attribute_map = { - 'creator': 'creator' - } - - def __init__(self, creator=None): - """ - InstrumentidentifiersMetadata - a model defined in Swagger - """ - - self._creator = None - - if creator is not None: - self.creator = creator - - @property - def creator(self): - """ - Gets the creator of this InstrumentidentifiersMetadata. - The creator of the token. - - :return: The creator of this InstrumentidentifiersMetadata. - :rtype: str - """ - return self._creator - - @creator.setter - def creator(self, creator): - """ - Sets the creator of this InstrumentidentifiersMetadata. - The creator of the token. - - :param creator: The creator of this InstrumentidentifiersMetadata. - :type: str - """ - - self._creator = creator - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InstrumentidentifiersMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/instrumentidentifiers_processing_information.py b/CyberSource/models/instrumentidentifiers_processing_information.py deleted file mode 100644 index 87e66ff5..00000000 --- a/CyberSource/models/instrumentidentifiers_processing_information.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InstrumentidentifiersProcessingInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'authorization_options': 'InstrumentidentifiersProcessingInformationAuthorizationOptions' - } - - attribute_map = { - 'authorization_options': 'authorizationOptions' - } - - def __init__(self, authorization_options=None): - """ - InstrumentidentifiersProcessingInformation - a model defined in Swagger - """ - - self._authorization_options = None - - if authorization_options is not None: - self.authorization_options = authorization_options - - @property - def authorization_options(self): - """ - Gets the authorization_options of this InstrumentidentifiersProcessingInformation. - - :return: The authorization_options of this InstrumentidentifiersProcessingInformation. - :rtype: InstrumentidentifiersProcessingInformationAuthorizationOptions - """ - return self._authorization_options - - @authorization_options.setter - def authorization_options(self, authorization_options): - """ - Sets the authorization_options of this InstrumentidentifiersProcessingInformation. - - :param authorization_options: The authorization_options of this InstrumentidentifiersProcessingInformation. - :type: InstrumentidentifiersProcessingInformationAuthorizationOptions - """ - - self._authorization_options = authorization_options - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InstrumentidentifiersProcessingInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/instrumentidentifiers_processing_information_authorization_options.py b/CyberSource/models/instrumentidentifiers_processing_information_authorization_options.py deleted file mode 100644 index 9bd85c27..00000000 --- a/CyberSource/models/instrumentidentifiers_processing_information_authorization_options.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InstrumentidentifiersProcessingInformationAuthorizationOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'initiator': 'InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator' - } - - attribute_map = { - 'initiator': 'initiator' - } - - def __init__(self, initiator=None): - """ - InstrumentidentifiersProcessingInformationAuthorizationOptions - a model defined in Swagger - """ - - self._initiator = None - - if initiator is not None: - self.initiator = initiator - - @property - def initiator(self): - """ - Gets the initiator of this InstrumentidentifiersProcessingInformationAuthorizationOptions. - - :return: The initiator of this InstrumentidentifiersProcessingInformationAuthorizationOptions. - :rtype: InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator - """ - return self._initiator - - @initiator.setter - def initiator(self, initiator): - """ - Sets the initiator of this InstrumentidentifiersProcessingInformationAuthorizationOptions. - - :param initiator: The initiator of this InstrumentidentifiersProcessingInformationAuthorizationOptions. - :type: InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator - """ - - self._initiator = initiator - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InstrumentidentifiersProcessingInformationAuthorizationOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/instrumentidentifiers_processing_information_authorization_options_initiator.py b/CyberSource/models/instrumentidentifiers_processing_information_authorization_options_initiator.py deleted file mode 100644 index 363d1205..00000000 --- a/CyberSource/models/instrumentidentifiers_processing_information_authorization_options_initiator.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'merchant_initiated_transaction': 'InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction' - } - - attribute_map = { - 'merchant_initiated_transaction': 'merchantInitiatedTransaction' - } - - def __init__(self, merchant_initiated_transaction=None): - """ - InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator - a model defined in Swagger - """ - - self._merchant_initiated_transaction = None - - if merchant_initiated_transaction is not None: - self.merchant_initiated_transaction = merchant_initiated_transaction - - @property - def merchant_initiated_transaction(self): - """ - Gets the merchant_initiated_transaction of this InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator. - - :return: The merchant_initiated_transaction of this InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator. - :rtype: InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - """ - return self._merchant_initiated_transaction - - @merchant_initiated_transaction.setter - def merchant_initiated_transaction(self, merchant_initiated_transaction): - """ - Sets the merchant_initiated_transaction of this InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator. - - :param merchant_initiated_transaction: The merchant_initiated_transaction of this InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator. - :type: InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - """ - - self._merchant_initiated_transaction = merchant_initiated_transaction - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/key_result.py b/CyberSource/models/key_result.py index b88d2b63..27b3530b 100644 --- a/CyberSource/models/key_result.py +++ b/CyberSource/models/key_result.py @@ -32,8 +32,8 @@ class KeyResult(object): """ swagger_types = { 'key_id': 'str', - 'der': 'InlineResponse200Der', - 'jwk': 'InlineResponse200Jwk' + 'der': 'FlexV1KeysPost200ResponseDer', + 'jwk': 'FlexV1KeysPost200ResponseJwk' } attribute_map = { @@ -87,7 +87,7 @@ def der(self): Gets the der of this KeyResult. :return: The der of this KeyResult. - :rtype: InlineResponse200Der + :rtype: FlexV1KeysPost200ResponseDer """ return self._der @@ -97,7 +97,7 @@ def der(self, der): Sets the der of this KeyResult. :param der: The der of this KeyResult. - :type: InlineResponse200Der + :type: FlexV1KeysPost200ResponseDer """ self._der = der @@ -108,7 +108,7 @@ def jwk(self): Gets the jwk of this KeyResult. :return: The jwk of this KeyResult. - :rtype: InlineResponse200Jwk + :rtype: FlexV1KeysPost200ResponseJwk """ return self._jwk @@ -118,7 +118,7 @@ def jwk(self, jwk): Sets the jwk of this KeyResult. :param jwk: The jwk of this KeyResult. - :type: InlineResponse200Jwk + :type: FlexV1KeysPost200ResponseJwk """ self._jwk = jwk diff --git a/CyberSource/models/oct_create_payment_request.py b/CyberSource/models/oct_create_payment_request.py deleted file mode 100644 index 15909d73..00000000 --- a/CyberSource/models/oct_create_payment_request.py +++ /dev/null @@ -1,279 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class OctCreatePaymentRequest(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'client_reference_information': 'InlineResponse201ClientReferenceInformation', - 'order_information': 'V2payoutsOrderInformation', - 'merchant_information': 'V2payoutsMerchantInformation', - 'recipient_information': 'V2payoutsRecipientInformation', - 'sender_information': 'V2payoutsSenderInformation', - 'processing_information': 'V2payoutsProcessingInformation', - 'payment_information': 'V2payoutsPaymentInformation' - } - - attribute_map = { - 'client_reference_information': 'clientReferenceInformation', - 'order_information': 'orderInformation', - 'merchant_information': 'merchantInformation', - 'recipient_information': 'recipientInformation', - 'sender_information': 'senderInformation', - 'processing_information': 'processingInformation', - 'payment_information': 'paymentInformation' - } - - def __init__(self, client_reference_information=None, order_information=None, merchant_information=None, recipient_information=None, sender_information=None, processing_information=None, payment_information=None): - """ - OctCreatePaymentRequest - a model defined in Swagger - """ - - self._client_reference_information = None - self._order_information = None - self._merchant_information = None - self._recipient_information = None - self._sender_information = None - self._processing_information = None - self._payment_information = None - - if client_reference_information is not None: - self.client_reference_information = client_reference_information - if order_information is not None: - self.order_information = order_information - if merchant_information is not None: - self.merchant_information = merchant_information - if recipient_information is not None: - self.recipient_information = recipient_information - if sender_information is not None: - self.sender_information = sender_information - if processing_information is not None: - self.processing_information = processing_information - if payment_information is not None: - self.payment_information = payment_information - - @property - def client_reference_information(self): - """ - Gets the client_reference_information of this OctCreatePaymentRequest. - - :return: The client_reference_information of this OctCreatePaymentRequest. - :rtype: InlineResponse201ClientReferenceInformation - """ - return self._client_reference_information - - @client_reference_information.setter - def client_reference_information(self, client_reference_information): - """ - Sets the client_reference_information of this OctCreatePaymentRequest. - - :param client_reference_information: The client_reference_information of this OctCreatePaymentRequest. - :type: InlineResponse201ClientReferenceInformation - """ - - self._client_reference_information = client_reference_information - - @property - def order_information(self): - """ - Gets the order_information of this OctCreatePaymentRequest. - - :return: The order_information of this OctCreatePaymentRequest. - :rtype: V2payoutsOrderInformation - """ - return self._order_information - - @order_information.setter - def order_information(self, order_information): - """ - Sets the order_information of this OctCreatePaymentRequest. - - :param order_information: The order_information of this OctCreatePaymentRequest. - :type: V2payoutsOrderInformation - """ - - self._order_information = order_information - - @property - def merchant_information(self): - """ - Gets the merchant_information of this OctCreatePaymentRequest. - - :return: The merchant_information of this OctCreatePaymentRequest. - :rtype: V2payoutsMerchantInformation - """ - return self._merchant_information - - @merchant_information.setter - def merchant_information(self, merchant_information): - """ - Sets the merchant_information of this OctCreatePaymentRequest. - - :param merchant_information: The merchant_information of this OctCreatePaymentRequest. - :type: V2payoutsMerchantInformation - """ - - self._merchant_information = merchant_information - - @property - def recipient_information(self): - """ - Gets the recipient_information of this OctCreatePaymentRequest. - - :return: The recipient_information of this OctCreatePaymentRequest. - :rtype: V2payoutsRecipientInformation - """ - return self._recipient_information - - @recipient_information.setter - def recipient_information(self, recipient_information): - """ - Sets the recipient_information of this OctCreatePaymentRequest. - - :param recipient_information: The recipient_information of this OctCreatePaymentRequest. - :type: V2payoutsRecipientInformation - """ - - self._recipient_information = recipient_information - - @property - def sender_information(self): - """ - Gets the sender_information of this OctCreatePaymentRequest. - - :return: The sender_information of this OctCreatePaymentRequest. - :rtype: V2payoutsSenderInformation - """ - return self._sender_information - - @sender_information.setter - def sender_information(self, sender_information): - """ - Sets the sender_information of this OctCreatePaymentRequest. - - :param sender_information: The sender_information of this OctCreatePaymentRequest. - :type: V2payoutsSenderInformation - """ - - self._sender_information = sender_information - - @property - def processing_information(self): - """ - Gets the processing_information of this OctCreatePaymentRequest. - - :return: The processing_information of this OctCreatePaymentRequest. - :rtype: V2payoutsProcessingInformation - """ - return self._processing_information - - @processing_information.setter - def processing_information(self, processing_information): - """ - Sets the processing_information of this OctCreatePaymentRequest. - - :param processing_information: The processing_information of this OctCreatePaymentRequest. - :type: V2payoutsProcessingInformation - """ - - self._processing_information = processing_information - - @property - def payment_information(self): - """ - Gets the payment_information of this OctCreatePaymentRequest. - - :return: The payment_information of this OctCreatePaymentRequest. - :rtype: V2payoutsPaymentInformation - """ - return self._payment_information - - @payment_information.setter - def payment_information(self, payment_information): - """ - Sets the payment_information of this OctCreatePaymentRequest. - - :param payment_information: The payment_information of this OctCreatePaymentRequest. - :type: V2payoutsPaymentInformation - """ - - self._payment_information = payment_information - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, OctCreatePaymentRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_bank_account.py b/CyberSource/models/paymentinstruments_bank_account.py deleted file mode 100644 index 38819734..00000000 --- a/CyberSource/models/paymentinstruments_bank_account.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsBankAccount(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'str' - } - - attribute_map = { - 'type': 'type' - } - - def __init__(self, type=None): - """ - PaymentinstrumentsBankAccount - a model defined in Swagger - """ - - self._type = None - - if type is not None: - self.type = type - - @property - def type(self): - """ - Gets the type of this PaymentinstrumentsBankAccount. - Type of Bank Account. - - :return: The type of this PaymentinstrumentsBankAccount. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this PaymentinstrumentsBankAccount. - Type of Bank Account. - - :param type: The type of this PaymentinstrumentsBankAccount. - :type: str - """ - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsBankAccount): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_bill_to.py b/CyberSource/models/paymentinstruments_bill_to.py deleted file mode 100644 index 6b743a59..00000000 --- a/CyberSource/models/paymentinstruments_bill_to.py +++ /dev/null @@ -1,405 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsBillTo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'first_name': 'str', - 'last_name': 'str', - 'company': 'str', - 'address1': 'str', - 'address2': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'postal_code': 'str', - 'country': 'str', - 'email': 'str', - 'phone_number': 'str' - } - - attribute_map = { - 'first_name': 'firstName', - 'last_name': 'lastName', - 'company': 'company', - 'address1': 'address1', - 'address2': 'address2', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'postal_code': 'postalCode', - 'country': 'country', - 'email': 'email', - 'phone_number': 'phoneNumber' - } - - def __init__(self, first_name=None, last_name=None, company=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, country=None, email=None, phone_number=None): - """ - PaymentinstrumentsBillTo - a model defined in Swagger - """ - - self._first_name = None - self._last_name = None - self._company = None - self._address1 = None - self._address2 = None - self._locality = None - self._administrative_area = None - self._postal_code = None - self._country = None - self._email = None - self._phone_number = None - - if first_name is not None: - self.first_name = first_name - if last_name is not None: - self.last_name = last_name - if company is not None: - self.company = company - if address1 is not None: - self.address1 = address1 - if address2 is not None: - self.address2 = address2 - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if postal_code is not None: - self.postal_code = postal_code - if country is not None: - self.country = country - if email is not None: - self.email = email - if phone_number is not None: - self.phone_number = phone_number - - @property - def first_name(self): - """ - Gets the first_name of this PaymentinstrumentsBillTo. - Bill to First Name. - - :return: The first_name of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """ - Sets the first_name of this PaymentinstrumentsBillTo. - Bill to First Name. - - :param first_name: The first_name of this PaymentinstrumentsBillTo. - :type: str - """ - - self._first_name = first_name - - @property - def last_name(self): - """ - Gets the last_name of this PaymentinstrumentsBillTo. - Bill to Last Name. - - :return: The last_name of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this PaymentinstrumentsBillTo. - Bill to Last Name. - - :param last_name: The last_name of this PaymentinstrumentsBillTo. - :type: str - """ - - self._last_name = last_name - - @property - def company(self): - """ - Gets the company of this PaymentinstrumentsBillTo. - Bill to Company. - - :return: The company of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._company - - @company.setter - def company(self, company): - """ - Sets the company of this PaymentinstrumentsBillTo. - Bill to Company. - - :param company: The company of this PaymentinstrumentsBillTo. - :type: str - """ - - self._company = company - - @property - def address1(self): - """ - Gets the address1 of this PaymentinstrumentsBillTo. - Bill to Address Line 1. - - :return: The address1 of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this PaymentinstrumentsBillTo. - Bill to Address Line 1. - - :param address1: The address1 of this PaymentinstrumentsBillTo. - :type: str - """ - - self._address1 = address1 - - @property - def address2(self): - """ - Gets the address2 of this PaymentinstrumentsBillTo. - Bill to Address Line 2. - - :return: The address2 of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._address2 - - @address2.setter - def address2(self, address2): - """ - Sets the address2 of this PaymentinstrumentsBillTo. - Bill to Address Line 2. - - :param address2: The address2 of this PaymentinstrumentsBillTo. - :type: str - """ - - self._address2 = address2 - - @property - def locality(self): - """ - Gets the locality of this PaymentinstrumentsBillTo. - Bill to City. - - :return: The locality of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this PaymentinstrumentsBillTo. - Bill to City. - - :param locality: The locality of this PaymentinstrumentsBillTo. - :type: str - """ - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this PaymentinstrumentsBillTo. - Bill to State. - - :return: The administrative_area of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this PaymentinstrumentsBillTo. - Bill to State. - - :param administrative_area: The administrative_area of this PaymentinstrumentsBillTo. - :type: str - """ - - self._administrative_area = administrative_area - - @property - def postal_code(self): - """ - Gets the postal_code of this PaymentinstrumentsBillTo. - Bill to Postal Code. - - :return: The postal_code of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this PaymentinstrumentsBillTo. - Bill to Postal Code. - - :param postal_code: The postal_code of this PaymentinstrumentsBillTo. - :type: str - """ - - self._postal_code = postal_code - - @property - def country(self): - """ - Gets the country of this PaymentinstrumentsBillTo. - Bill to Country. Accepts input in the ISO 3166-1 standard, stores as ISO 3166-1-Alpha-2 - - :return: The country of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this PaymentinstrumentsBillTo. - Bill to Country. Accepts input in the ISO 3166-1 standard, stores as ISO 3166-1-Alpha-2 - - :param country: The country of this PaymentinstrumentsBillTo. - :type: str - """ - - self._country = country - - @property - def email(self): - """ - Gets the email of this PaymentinstrumentsBillTo. - Valid Bill to Email. - - :return: The email of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """ - Sets the email of this PaymentinstrumentsBillTo. - Valid Bill to Email. - - :param email: The email of this PaymentinstrumentsBillTo. - :type: str - """ - - self._email = email - - @property - def phone_number(self): - """ - Gets the phone_number of this PaymentinstrumentsBillTo. - Bill to Phone Number. - - :return: The phone_number of this PaymentinstrumentsBillTo. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this PaymentinstrumentsBillTo. - Bill to Phone Number. - - :param phone_number: The phone_number of this PaymentinstrumentsBillTo. - :type: str - """ - - self._phone_number = phone_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsBillTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_buyer_information.py b/CyberSource/models/paymentinstruments_buyer_information.py deleted file mode 100644 index 33086c40..00000000 --- a/CyberSource/models/paymentinstruments_buyer_information.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsBuyerInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'company_tax_id': 'str', - 'currency': 'str', - 'date_o_birth': 'str', - 'personal_identification': 'list[PaymentinstrumentsBuyerInformationPersonalIdentification]' - } - - attribute_map = { - 'company_tax_id': 'companyTaxID', - 'currency': 'currency', - 'date_o_birth': 'dateOBirth', - 'personal_identification': 'personalIdentification' - } - - def __init__(self, company_tax_id=None, currency=None, date_o_birth=None, personal_identification=None): - """ - PaymentinstrumentsBuyerInformation - a model defined in Swagger - """ - - self._company_tax_id = None - self._currency = None - self._date_o_birth = None - self._personal_identification = None - - if company_tax_id is not None: - self.company_tax_id = company_tax_id - if currency is not None: - self.currency = currency - if date_o_birth is not None: - self.date_o_birth = date_o_birth - if personal_identification is not None: - self.personal_identification = personal_identification - - @property - def company_tax_id(self): - """ - Gets the company_tax_id of this PaymentinstrumentsBuyerInformation. - Company Tax ID. - - :return: The company_tax_id of this PaymentinstrumentsBuyerInformation. - :rtype: str - """ - return self._company_tax_id - - @company_tax_id.setter - def company_tax_id(self, company_tax_id): - """ - Sets the company_tax_id of this PaymentinstrumentsBuyerInformation. - Company Tax ID. - - :param company_tax_id: The company_tax_id of this PaymentinstrumentsBuyerInformation. - :type: str - """ - - self._company_tax_id = company_tax_id - - @property - def currency(self): - """ - Gets the currency of this PaymentinstrumentsBuyerInformation. - Currency. Accepts input in the ISO 4217 standard, stores as ISO 4217 Alpha - - :return: The currency of this PaymentinstrumentsBuyerInformation. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this PaymentinstrumentsBuyerInformation. - Currency. Accepts input in the ISO 4217 standard, stores as ISO 4217 Alpha - - :param currency: The currency of this PaymentinstrumentsBuyerInformation. - :type: str - """ - - self._currency = currency - - @property - def date_o_birth(self): - """ - Gets the date_o_birth of this PaymentinstrumentsBuyerInformation. - Date of birth YYYY-MM-DD. - - :return: The date_o_birth of this PaymentinstrumentsBuyerInformation. - :rtype: str - """ - return self._date_o_birth - - @date_o_birth.setter - def date_o_birth(self, date_o_birth): - """ - Sets the date_o_birth of this PaymentinstrumentsBuyerInformation. - Date of birth YYYY-MM-DD. - - :param date_o_birth: The date_o_birth of this PaymentinstrumentsBuyerInformation. - :type: str - """ - - self._date_o_birth = date_o_birth - - @property - def personal_identification(self): - """ - Gets the personal_identification of this PaymentinstrumentsBuyerInformation. - - :return: The personal_identification of this PaymentinstrumentsBuyerInformation. - :rtype: list[PaymentinstrumentsBuyerInformationPersonalIdentification] - """ - return self._personal_identification - - @personal_identification.setter - def personal_identification(self, personal_identification): - """ - Sets the personal_identification of this PaymentinstrumentsBuyerInformation. - - :param personal_identification: The personal_identification of this PaymentinstrumentsBuyerInformation. - :type: list[PaymentinstrumentsBuyerInformationPersonalIdentification] - """ - - self._personal_identification = personal_identification - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsBuyerInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_buyer_information_issued_by.py b/CyberSource/models/paymentinstruments_buyer_information_issued_by.py deleted file mode 100644 index 29c96991..00000000 --- a/CyberSource/models/paymentinstruments_buyer_information_issued_by.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsBuyerInformationIssuedBy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'administrative_area': 'str' - } - - attribute_map = { - 'administrative_area': 'administrativeArea' - } - - def __init__(self, administrative_area=None): - """ - PaymentinstrumentsBuyerInformationIssuedBy - a model defined in Swagger - """ - - self._administrative_area = None - - if administrative_area is not None: - self.administrative_area = administrative_area - - @property - def administrative_area(self): - """ - Gets the administrative_area of this PaymentinstrumentsBuyerInformationIssuedBy. - State or province where the identification was issued. - - :return: The administrative_area of this PaymentinstrumentsBuyerInformationIssuedBy. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this PaymentinstrumentsBuyerInformationIssuedBy. - State or province where the identification was issued. - - :param administrative_area: The administrative_area of this PaymentinstrumentsBuyerInformationIssuedBy. - :type: str - """ - - self._administrative_area = administrative_area - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsBuyerInformationIssuedBy): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_buyer_information_personal_identification.py b/CyberSource/models/paymentinstruments_buyer_information_personal_identification.py deleted file mode 100644 index d4486eb7..00000000 --- a/CyberSource/models/paymentinstruments_buyer_information_personal_identification.py +++ /dev/null @@ -1,179 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsBuyerInformationPersonalIdentification(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'str', - 'type': 'str', - 'issued_by': 'PaymentinstrumentsBuyerInformationIssuedBy' - } - - attribute_map = { - 'id': 'id', - 'type': 'type', - 'issued_by': 'issuedBy' - } - - def __init__(self, id=None, type=None, issued_by=None): - """ - PaymentinstrumentsBuyerInformationPersonalIdentification - a model defined in Swagger - """ - - self._id = None - self._type = None - self._issued_by = None - - if id is not None: - self.id = id - if type is not None: - self.type = type - if issued_by is not None: - self.issued_by = issued_by - - @property - def id(self): - """ - Gets the id of this PaymentinstrumentsBuyerInformationPersonalIdentification. - Identification Number. - - :return: The id of this PaymentinstrumentsBuyerInformationPersonalIdentification. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this PaymentinstrumentsBuyerInformationPersonalIdentification. - Identification Number. - - :param id: The id of this PaymentinstrumentsBuyerInformationPersonalIdentification. - :type: str - """ - - self._id = id - - @property - def type(self): - """ - Gets the type of this PaymentinstrumentsBuyerInformationPersonalIdentification. - Type of personal identification. - - :return: The type of this PaymentinstrumentsBuyerInformationPersonalIdentification. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this PaymentinstrumentsBuyerInformationPersonalIdentification. - Type of personal identification. - - :param type: The type of this PaymentinstrumentsBuyerInformationPersonalIdentification. - :type: str - """ - - self._type = type - - @property - def issued_by(self): - """ - Gets the issued_by of this PaymentinstrumentsBuyerInformationPersonalIdentification. - - :return: The issued_by of this PaymentinstrumentsBuyerInformationPersonalIdentification. - :rtype: PaymentinstrumentsBuyerInformationIssuedBy - """ - return self._issued_by - - @issued_by.setter - def issued_by(self, issued_by): - """ - Sets the issued_by of this PaymentinstrumentsBuyerInformationPersonalIdentification. - - :param issued_by: The issued_by of this PaymentinstrumentsBuyerInformationPersonalIdentification. - :type: PaymentinstrumentsBuyerInformationIssuedBy - """ - - self._issued_by = issued_by - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsBuyerInformationPersonalIdentification): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_card.py b/CyberSource/models/paymentinstruments_card.py deleted file mode 100644 index 55f28d96..00000000 --- a/CyberSource/models/paymentinstruments_card.py +++ /dev/null @@ -1,299 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'expiration_month': 'str', - 'expiration_year': 'str', - 'type': 'str', - 'issue_number': 'str', - 'start_month': 'str', - 'start_year': 'str', - 'use_as': 'str' - } - - attribute_map = { - 'expiration_month': 'expirationMonth', - 'expiration_year': 'expirationYear', - 'type': 'type', - 'issue_number': 'issueNumber', - 'start_month': 'startMonth', - 'start_year': 'startYear', - 'use_as': 'useAs' - } - - def __init__(self, expiration_month=None, expiration_year=None, type=None, issue_number=None, start_month=None, start_year=None, use_as=None): - """ - PaymentinstrumentsCard - a model defined in Swagger - """ - - self._expiration_month = None - self._expiration_year = None - self._type = None - self._issue_number = None - self._start_month = None - self._start_year = None - self._use_as = None - - if expiration_month is not None: - self.expiration_month = expiration_month - if expiration_year is not None: - self.expiration_year = expiration_year - if type is not None: - self.type = type - if issue_number is not None: - self.issue_number = issue_number - if start_month is not None: - self.start_month = start_month - if start_year is not None: - self.start_year = start_year - if use_as is not None: - self.use_as = use_as - - @property - def expiration_month(self): - """ - Gets the expiration_month of this PaymentinstrumentsCard. - Credit card expiration month. - - :return: The expiration_month of this PaymentinstrumentsCard. - :rtype: str - """ - return self._expiration_month - - @expiration_month.setter - def expiration_month(self, expiration_month): - """ - Sets the expiration_month of this PaymentinstrumentsCard. - Credit card expiration month. - - :param expiration_month: The expiration_month of this PaymentinstrumentsCard. - :type: str - """ - - self._expiration_month = expiration_month - - @property - def expiration_year(self): - """ - Gets the expiration_year of this PaymentinstrumentsCard. - Credit card expiration year. - - :return: The expiration_year of this PaymentinstrumentsCard. - :rtype: str - """ - return self._expiration_year - - @expiration_year.setter - def expiration_year(self, expiration_year): - """ - Sets the expiration_year of this PaymentinstrumentsCard. - Credit card expiration year. - - :param expiration_year: The expiration_year of this PaymentinstrumentsCard. - :type: str - """ - - self._expiration_year = expiration_year - - @property - def type(self): - """ - Gets the type of this PaymentinstrumentsCard. - Credit card brand. - - :return: The type of this PaymentinstrumentsCard. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this PaymentinstrumentsCard. - Credit card brand. - - :param type: The type of this PaymentinstrumentsCard. - :type: str - """ - allowed_values = ["visa", "mastercard", "american express", "discover", "diners club", "carte blanche", "jcb", "optima", "twinpay credit", "twinpay debit", "walmart", "enroute", "lowes consumer", "home depot consumer", "mbna", "dicks sportswear", "casual corner", "sears", "jal", "disney", "maestro uk domestic", "sams club consumer", "sams club business", "nicos", "bill me later", "bebe", "restoration hardware", "delta online", "solo", "visa electron", "dankort", "laser", "carte bleue", "carta si", "pinless debit", "encoded account", "uatp", "household", "maestro international", "ge money uk", "korean cards", "style", "jcrew", "payease china processing ewallet", "payease china processing bank transfer", "meijer private label", "hipercard", "aura", "redecard", "orico", "elo", "capital one private label", "synchrony private label", "china union pay"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" - .format(type, allowed_values) - ) - - self._type = type - - @property - def issue_number(self): - """ - Gets the issue_number of this PaymentinstrumentsCard. - Credit card issue number. - - :return: The issue_number of this PaymentinstrumentsCard. - :rtype: str - """ - return self._issue_number - - @issue_number.setter - def issue_number(self, issue_number): - """ - Sets the issue_number of this PaymentinstrumentsCard. - Credit card issue number. - - :param issue_number: The issue_number of this PaymentinstrumentsCard. - :type: str - """ - - self._issue_number = issue_number - - @property - def start_month(self): - """ - Gets the start_month of this PaymentinstrumentsCard. - Credit card start month. - - :return: The start_month of this PaymentinstrumentsCard. - :rtype: str - """ - return self._start_month - - @start_month.setter - def start_month(self, start_month): - """ - Sets the start_month of this PaymentinstrumentsCard. - Credit card start month. - - :param start_month: The start_month of this PaymentinstrumentsCard. - :type: str - """ - - self._start_month = start_month - - @property - def start_year(self): - """ - Gets the start_year of this PaymentinstrumentsCard. - Credit card start year. - - :return: The start_year of this PaymentinstrumentsCard. - :rtype: str - """ - return self._start_year - - @start_year.setter - def start_year(self, start_year): - """ - Sets the start_year of this PaymentinstrumentsCard. - Credit card start year. - - :param start_year: The start_year of this PaymentinstrumentsCard. - :type: str - """ - - self._start_year = start_year - - @property - def use_as(self): - """ - Gets the use_as of this PaymentinstrumentsCard. - Card Use As Field. Supported value of \"pinless debit\" only. Only for use with Pinless Debit tokens. - - :return: The use_as of this PaymentinstrumentsCard. - :rtype: str - """ - return self._use_as - - @use_as.setter - def use_as(self, use_as): - """ - Sets the use_as of this PaymentinstrumentsCard. - Card Use As Field. Supported value of \"pinless debit\" only. Only for use with Pinless Debit tokens. - - :param use_as: The use_as of this PaymentinstrumentsCard. - :type: str - """ - - self._use_as = use_as - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_instrument_identifier.py b/CyberSource/models/paymentinstruments_instrument_identifier.py deleted file mode 100644 index d9557362..00000000 --- a/CyberSource/models/paymentinstruments_instrument_identifier.py +++ /dev/null @@ -1,323 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsInstrumentIdentifier(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'links': 'InstrumentidentifiersLinks', - 'object': 'str', - 'state': 'str', - 'id': 'str', - 'card': 'InstrumentidentifiersCard', - 'bank_account': 'InstrumentidentifiersBankAccount', - 'processing_information': 'InstrumentidentifiersProcessingInformation', - 'metadata': 'InstrumentidentifiersMetadata' - } - - attribute_map = { - 'links': '_links', - 'object': 'object', - 'state': 'state', - 'id': 'id', - 'card': 'card', - 'bank_account': 'bankAccount', - 'processing_information': 'processingInformation', - 'metadata': 'metadata' - } - - def __init__(self, links=None, object=None, state=None, id=None, card=None, bank_account=None, processing_information=None, metadata=None): - """ - PaymentinstrumentsInstrumentIdentifier - a model defined in Swagger - """ - - self._links = None - self._object = None - self._state = None - self._id = None - self._card = None - self._bank_account = None - self._processing_information = None - self._metadata = None - - if links is not None: - self.links = links - if object is not None: - self.object = object - if state is not None: - self.state = state - if id is not None: - self.id = id - if card is not None: - self.card = card - if bank_account is not None: - self.bank_account = bank_account - if processing_information is not None: - self.processing_information = processing_information - if metadata is not None: - self.metadata = metadata - - @property - def links(self): - """ - Gets the links of this PaymentinstrumentsInstrumentIdentifier. - - :return: The links of this PaymentinstrumentsInstrumentIdentifier. - :rtype: InstrumentidentifiersLinks - """ - return self._links - - @links.setter - def links(self, links): - """ - Sets the links of this PaymentinstrumentsInstrumentIdentifier. - - :param links: The links of this PaymentinstrumentsInstrumentIdentifier. - :type: InstrumentidentifiersLinks - """ - - self._links = links - - @property - def object(self): - """ - Gets the object of this PaymentinstrumentsInstrumentIdentifier. - Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. - - :return: The object of this PaymentinstrumentsInstrumentIdentifier. - :rtype: str - """ - return self._object - - @object.setter - def object(self, object): - """ - Sets the object of this PaymentinstrumentsInstrumentIdentifier. - Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. - - :param object: The object of this PaymentinstrumentsInstrumentIdentifier. - :type: str - """ - allowed_values = ["instrumentIdentifier"] - if object not in allowed_values: - raise ValueError( - "Invalid value for `object` ({0}), must be one of {1}" - .format(object, allowed_values) - ) - - self._object = object - - @property - def state(self): - """ - Gets the state of this PaymentinstrumentsInstrumentIdentifier. - Current state of the token. - - :return: The state of this PaymentinstrumentsInstrumentIdentifier. - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """ - Sets the state of this PaymentinstrumentsInstrumentIdentifier. - Current state of the token. - - :param state: The state of this PaymentinstrumentsInstrumentIdentifier. - :type: str - """ - allowed_values = ["ACTIVE", "CLOSED"] - if state not in allowed_values: - raise ValueError( - "Invalid value for `state` ({0}), must be one of {1}" - .format(state, allowed_values) - ) - - self._state = state - - @property - def id(self): - """ - Gets the id of this PaymentinstrumentsInstrumentIdentifier. - The id of the existing instrument identifier to be linked to the newly created payment instrument. - - :return: The id of this PaymentinstrumentsInstrumentIdentifier. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this PaymentinstrumentsInstrumentIdentifier. - The id of the existing instrument identifier to be linked to the newly created payment instrument. - - :param id: The id of this PaymentinstrumentsInstrumentIdentifier. - :type: str - """ - - self._id = id - - @property - def card(self): - """ - Gets the card of this PaymentinstrumentsInstrumentIdentifier. - - :return: The card of this PaymentinstrumentsInstrumentIdentifier. - :rtype: InstrumentidentifiersCard - """ - return self._card - - @card.setter - def card(self, card): - """ - Sets the card of this PaymentinstrumentsInstrumentIdentifier. - - :param card: The card of this PaymentinstrumentsInstrumentIdentifier. - :type: InstrumentidentifiersCard - """ - - self._card = card - - @property - def bank_account(self): - """ - Gets the bank_account of this PaymentinstrumentsInstrumentIdentifier. - - :return: The bank_account of this PaymentinstrumentsInstrumentIdentifier. - :rtype: InstrumentidentifiersBankAccount - """ - return self._bank_account - - @bank_account.setter - def bank_account(self, bank_account): - """ - Sets the bank_account of this PaymentinstrumentsInstrumentIdentifier. - - :param bank_account: The bank_account of this PaymentinstrumentsInstrumentIdentifier. - :type: InstrumentidentifiersBankAccount - """ - - self._bank_account = bank_account - - @property - def processing_information(self): - """ - Gets the processing_information of this PaymentinstrumentsInstrumentIdentifier. - - :return: The processing_information of this PaymentinstrumentsInstrumentIdentifier. - :rtype: InstrumentidentifiersProcessingInformation - """ - return self._processing_information - - @processing_information.setter - def processing_information(self, processing_information): - """ - Sets the processing_information of this PaymentinstrumentsInstrumentIdentifier. - - :param processing_information: The processing_information of this PaymentinstrumentsInstrumentIdentifier. - :type: InstrumentidentifiersProcessingInformation - """ - - self._processing_information = processing_information - - @property - def metadata(self): - """ - Gets the metadata of this PaymentinstrumentsInstrumentIdentifier. - - :return: The metadata of this PaymentinstrumentsInstrumentIdentifier. - :rtype: InstrumentidentifiersMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """ - Sets the metadata of this PaymentinstrumentsInstrumentIdentifier. - - :param metadata: The metadata of this PaymentinstrumentsInstrumentIdentifier. - :type: InstrumentidentifiersMetadata - """ - - self._metadata = metadata - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsInstrumentIdentifier): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_merchant_information.py b/CyberSource/models/paymentinstruments_merchant_information.py deleted file mode 100644 index 4ab126cc..00000000 --- a/CyberSource/models/paymentinstruments_merchant_information.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsMerchantInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'merchant_descriptor': 'PaymentinstrumentsMerchantInformationMerchantDescriptor' - } - - attribute_map = { - 'merchant_descriptor': 'merchantDescriptor' - } - - def __init__(self, merchant_descriptor=None): - """ - PaymentinstrumentsMerchantInformation - a model defined in Swagger - """ - - self._merchant_descriptor = None - - if merchant_descriptor is not None: - self.merchant_descriptor = merchant_descriptor - - @property - def merchant_descriptor(self): - """ - Gets the merchant_descriptor of this PaymentinstrumentsMerchantInformation. - - :return: The merchant_descriptor of this PaymentinstrumentsMerchantInformation. - :rtype: PaymentinstrumentsMerchantInformationMerchantDescriptor - """ - return self._merchant_descriptor - - @merchant_descriptor.setter - def merchant_descriptor(self, merchant_descriptor): - """ - Sets the merchant_descriptor of this PaymentinstrumentsMerchantInformation. - - :param merchant_descriptor: The merchant_descriptor of this PaymentinstrumentsMerchantInformation. - :type: PaymentinstrumentsMerchantInformationMerchantDescriptor - """ - - self._merchant_descriptor = merchant_descriptor - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsMerchantInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_merchant_information_merchant_descriptor.py b/CyberSource/models/paymentinstruments_merchant_information_merchant_descriptor.py deleted file mode 100644 index e192bf19..00000000 --- a/CyberSource/models/paymentinstruments_merchant_information_merchant_descriptor.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsMerchantInformationMerchantDescriptor(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'alternate_name': 'str' - } - - attribute_map = { - 'alternate_name': 'alternateName' - } - - def __init__(self, alternate_name=None): - """ - PaymentinstrumentsMerchantInformationMerchantDescriptor - a model defined in Swagger - """ - - self._alternate_name = None - - if alternate_name is not None: - self.alternate_name = alternate_name - - @property - def alternate_name(self): - """ - Gets the alternate_name of this PaymentinstrumentsMerchantInformationMerchantDescriptor. - Alternate information for your business. This API field overrides the company entry description value in your CyberSource account. - - :return: The alternate_name of this PaymentinstrumentsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._alternate_name - - @alternate_name.setter - def alternate_name(self, alternate_name): - """ - Sets the alternate_name of this PaymentinstrumentsMerchantInformationMerchantDescriptor. - Alternate information for your business. This API field overrides the company entry description value in your CyberSource account. - - :param alternate_name: The alternate_name of this PaymentinstrumentsMerchantInformationMerchantDescriptor. - :type: str - """ - - self._alternate_name = alternate_name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsMerchantInformationMerchantDescriptor): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_processing_information.py b/CyberSource/models/paymentinstruments_processing_information.py deleted file mode 100644 index ebac7341..00000000 --- a/CyberSource/models/paymentinstruments_processing_information.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsProcessingInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'bill_payment_program_enabled': 'bool', - 'bank_transfer_options': 'PaymentinstrumentsProcessingInformationBankTransferOptions' - } - - attribute_map = { - 'bill_payment_program_enabled': 'billPaymentProgramEnabled', - 'bank_transfer_options': 'bankTransferOptions' - } - - def __init__(self, bill_payment_program_enabled=None, bank_transfer_options=None): - """ - PaymentinstrumentsProcessingInformation - a model defined in Swagger - """ - - self._bill_payment_program_enabled = None - self._bank_transfer_options = None - - if bill_payment_program_enabled is not None: - self.bill_payment_program_enabled = bill_payment_program_enabled - if bank_transfer_options is not None: - self.bank_transfer_options = bank_transfer_options - - @property - def bill_payment_program_enabled(self): - """ - Gets the bill_payment_program_enabled of this PaymentinstrumentsProcessingInformation. - Bill Payment Program Enabled. - - :return: The bill_payment_program_enabled of this PaymentinstrumentsProcessingInformation. - :rtype: bool - """ - return self._bill_payment_program_enabled - - @bill_payment_program_enabled.setter - def bill_payment_program_enabled(self, bill_payment_program_enabled): - """ - Sets the bill_payment_program_enabled of this PaymentinstrumentsProcessingInformation. - Bill Payment Program Enabled. - - :param bill_payment_program_enabled: The bill_payment_program_enabled of this PaymentinstrumentsProcessingInformation. - :type: bool - """ - - self._bill_payment_program_enabled = bill_payment_program_enabled - - @property - def bank_transfer_options(self): - """ - Gets the bank_transfer_options of this PaymentinstrumentsProcessingInformation. - - :return: The bank_transfer_options of this PaymentinstrumentsProcessingInformation. - :rtype: PaymentinstrumentsProcessingInformationBankTransferOptions - """ - return self._bank_transfer_options - - @bank_transfer_options.setter - def bank_transfer_options(self, bank_transfer_options): - """ - Sets the bank_transfer_options of this PaymentinstrumentsProcessingInformation. - - :param bank_transfer_options: The bank_transfer_options of this PaymentinstrumentsProcessingInformation. - :type: PaymentinstrumentsProcessingInformationBankTransferOptions - """ - - self._bank_transfer_options = bank_transfer_options - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsProcessingInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentinstruments_processing_information_bank_transfer_options.py b/CyberSource/models/paymentinstruments_processing_information_bank_transfer_options.py deleted file mode 100644 index 2547e427..00000000 --- a/CyberSource/models/paymentinstruments_processing_information_bank_transfer_options.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PaymentinstrumentsProcessingInformationBankTransferOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'sec_code': 'str' - } - - attribute_map = { - 'sec_code': 'SECCode' - } - - def __init__(self, sec_code=None): - """ - PaymentinstrumentsProcessingInformationBankTransferOptions - a model defined in Swagger - """ - - self._sec_code = None - - if sec_code is not None: - self.sec_code = sec_code - - @property - def sec_code(self): - """ - Gets the sec_code of this PaymentinstrumentsProcessingInformationBankTransferOptions. - Authorization method used for the transaction.(acceptable values are CCD, PPD, TEL, WEB). - - :return: The sec_code of this PaymentinstrumentsProcessingInformationBankTransferOptions. - :rtype: str - """ - return self._sec_code - - @sec_code.setter - def sec_code(self, sec_code): - """ - Sets the sec_code of this PaymentinstrumentsProcessingInformationBankTransferOptions. - Authorization method used for the transaction.(acceptable values are CCD, PPD, TEL, WEB). - - :param sec_code: The sec_code of this PaymentinstrumentsProcessingInformationBankTransferOptions. - :type: str - """ - - self._sec_code = sec_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PaymentinstrumentsProcessingInformationBankTransferOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/paymentsflexv1tokens_card_info.py b/CyberSource/models/paymentsflexv1tokens_card_info.py deleted file mode 100644 index 7ba4cfc5..00000000 --- a/CyberSource/models/paymentsflexv1tokens_card_info.py +++ /dev/null @@ -1,209 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class Paymentsflexv1tokensCardInfo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'card_number': 'str', - 'card_expiration_month': 'str', - 'card_expiration_year': 'str', - 'card_type': 'str' - } - - attribute_map = { - 'card_number': 'cardNumber', - 'card_expiration_month': 'cardExpirationMonth', - 'card_expiration_year': 'cardExpirationYear', - 'card_type': 'cardType' - } - - def __init__(self, card_number=None, card_expiration_month=None, card_expiration_year=None, card_type=None): - """ - Paymentsflexv1tokensCardInfo - a model defined in Swagger - """ - - self._card_number = None - self._card_expiration_month = None - self._card_expiration_year = None - self._card_type = None - - if card_number is not None: - self.card_number = card_number - if card_expiration_month is not None: - self.card_expiration_month = card_expiration_month - if card_expiration_year is not None: - self.card_expiration_year = card_expiration_year - if card_type is not None: - self.card_type = card_type - - @property - def card_number(self): - """ - Gets the card_number of this Paymentsflexv1tokensCardInfo. - Encrypted or plain text card number. If the encryption type of “None” was used in the Generate Key request, this value can be set to the plaintext card number/Personal Account Number (PAN). If the encryption type of RsaOaep256 was used in the Generate Key request, this value needs to be the RSA OAEP 256 encrypted card number. The card number should be encrypted on the cardholders’ device. The [WebCrypto API] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/resources/public/flex.js) can be used with the JWK obtained in the Generate Key request. - - :return: The card_number of this Paymentsflexv1tokensCardInfo. - :rtype: str - """ - return self._card_number - - @card_number.setter - def card_number(self, card_number): - """ - Sets the card_number of this Paymentsflexv1tokensCardInfo. - Encrypted or plain text card number. If the encryption type of “None” was used in the Generate Key request, this value can be set to the plaintext card number/Personal Account Number (PAN). If the encryption type of RsaOaep256 was used in the Generate Key request, this value needs to be the RSA OAEP 256 encrypted card number. The card number should be encrypted on the cardholders’ device. The [WebCrypto API] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/resources/public/flex.js) can be used with the JWK obtained in the Generate Key request. - - :param card_number: The card_number of this Paymentsflexv1tokensCardInfo. - :type: str - """ - - self._card_number = card_number - - @property - def card_expiration_month(self): - """ - Gets the card_expiration_month of this Paymentsflexv1tokensCardInfo. - Two digit expiration month - - :return: The card_expiration_month of this Paymentsflexv1tokensCardInfo. - :rtype: str - """ - return self._card_expiration_month - - @card_expiration_month.setter - def card_expiration_month(self, card_expiration_month): - """ - Sets the card_expiration_month of this Paymentsflexv1tokensCardInfo. - Two digit expiration month - - :param card_expiration_month: The card_expiration_month of this Paymentsflexv1tokensCardInfo. - :type: str - """ - - self._card_expiration_month = card_expiration_month - - @property - def card_expiration_year(self): - """ - Gets the card_expiration_year of this Paymentsflexv1tokensCardInfo. - Four digit expiration year - - :return: The card_expiration_year of this Paymentsflexv1tokensCardInfo. - :rtype: str - """ - return self._card_expiration_year - - @card_expiration_year.setter - def card_expiration_year(self, card_expiration_year): - """ - Sets the card_expiration_year of this Paymentsflexv1tokensCardInfo. - Four digit expiration year - - :param card_expiration_year: The card_expiration_year of this Paymentsflexv1tokensCardInfo. - :type: str - """ - - self._card_expiration_year = card_expiration_year - - @property - def card_type(self): - """ - Gets the card_type of this Paymentsflexv1tokensCardInfo. - Card Type. This field is required. Refer to the CyberSource Credit Card Services documentation for supported card types. - - :return: The card_type of this Paymentsflexv1tokensCardInfo. - :rtype: str - """ - return self._card_type - - @card_type.setter - def card_type(self, card_type): - """ - Sets the card_type of this Paymentsflexv1tokensCardInfo. - Card Type. This field is required. Refer to the CyberSource Credit Card Services documentation for supported card types. - - :param card_type: The card_type of this Paymentsflexv1tokensCardInfo. - :type: str - """ - - self._card_type = card_type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, Paymentsflexv1tokensCardInfo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/pts_v1_transaction_batches_get200_response.py b/CyberSource/models/pts_v1_transaction_batches_get200_response.py new file mode 100644 index 00000000..b364b509 --- /dev/null +++ b/CyberSource/models/pts_v1_transaction_batches_get200_response.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV1TransactionBatchesGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'transaction_batches': 'list[PtsV1TransactionBatchesGet200ResponseTransactionBatches]', + 'links': 'PtsV1TransactionBatchesGet200ResponseLinks', + 'submit_time_utc': 'str' + } + + attribute_map = { + 'transaction_batches': 'transactionBatches', + 'links': '_links', + 'submit_time_utc': 'submitTimeUtc' + } + + def __init__(self, transaction_batches=None, links=None, submit_time_utc=None): + """ + PtsV1TransactionBatchesGet200Response - a model defined in Swagger + """ + + self._transaction_batches = None + self._links = None + self._submit_time_utc = None + + if transaction_batches is not None: + self.transaction_batches = transaction_batches + if links is not None: + self.links = links + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + + @property + def transaction_batches(self): + """ + Gets the transaction_batches of this PtsV1TransactionBatchesGet200Response. + + :return: The transaction_batches of this PtsV1TransactionBatchesGet200Response. + :rtype: list[PtsV1TransactionBatchesGet200ResponseTransactionBatches] + """ + return self._transaction_batches + + @transaction_batches.setter + def transaction_batches(self, transaction_batches): + """ + Sets the transaction_batches of this PtsV1TransactionBatchesGet200Response. + + :param transaction_batches: The transaction_batches of this PtsV1TransactionBatchesGet200Response. + :type: list[PtsV1TransactionBatchesGet200ResponseTransactionBatches] + """ + + self._transaction_batches = transaction_batches + + @property + def links(self): + """ + Gets the links of this PtsV1TransactionBatchesGet200Response. + + :return: The links of this PtsV1TransactionBatchesGet200Response. + :rtype: PtsV1TransactionBatchesGet200ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this PtsV1TransactionBatchesGet200Response. + + :param links: The links of this PtsV1TransactionBatchesGet200Response. + :type: PtsV1TransactionBatchesGet200ResponseLinks + """ + + self._links = links + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV1TransactionBatchesGet200Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV1TransactionBatchesGet200Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV1TransactionBatchesGet200Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV1TransactionBatchesGet200Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV1TransactionBatchesGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v1_transaction_batches_get200_response__links.py b/CyberSource/models/pts_v1_transaction_batches_get200_response__links.py new file mode 100644 index 00000000..3e691977 --- /dev/null +++ b/CyberSource/models/pts_v1_transaction_batches_get200_response__links.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV1TransactionBatchesGet200ResponseLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + '_self': 'PtsV1TransactionBatchesGet200ResponseLinksSelf' + } + + attribute_map = { + '_self': 'self' + } + + def __init__(self, _self=None): + """ + PtsV1TransactionBatchesGet200ResponseLinks - a model defined in Swagger + """ + + self.__self = None + + if _self is not None: + self._self = _self + + @property + def _self(self): + """ + Gets the _self of this PtsV1TransactionBatchesGet200ResponseLinks. + + :return: The _self of this PtsV1TransactionBatchesGet200ResponseLinks. + :rtype: PtsV1TransactionBatchesGet200ResponseLinksSelf + """ + return self.__self + + @_self.setter + def _self(self, _self): + """ + Sets the _self of this PtsV1TransactionBatchesGet200ResponseLinks. + + :param _self: The _self of this PtsV1TransactionBatchesGet200ResponseLinks. + :type: PtsV1TransactionBatchesGet200ResponseLinksSelf + """ + + self.__self = _self + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV1TransactionBatchesGet200ResponseLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v1_transaction_batches_get200_response__links_self.py b/CyberSource/models/pts_v1_transaction_batches_get200_response__links_self.py new file mode 100644 index 00000000..a9c0f44e --- /dev/null +++ b/CyberSource/models/pts_v1_transaction_batches_get200_response__links_self.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV1TransactionBatchesGet200ResponseLinksSelf(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str', + 'method': 'str' + } + + attribute_map = { + 'href': 'href', + 'method': 'method' + } + + def __init__(self, href=None, method=None): + """ + PtsV1TransactionBatchesGet200ResponseLinksSelf - a model defined in Swagger + """ + + self._href = None + self._method = None + + if href is not None: + self.href = href + if method is not None: + self.method = method + + @property + def href(self): + """ + Gets the href of this PtsV1TransactionBatchesGet200ResponseLinksSelf. + + :return: The href of this PtsV1TransactionBatchesGet200ResponseLinksSelf. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this PtsV1TransactionBatchesGet200ResponseLinksSelf. + + :param href: The href of this PtsV1TransactionBatchesGet200ResponseLinksSelf. + :type: str + """ + + self._href = href + + @property + def method(self): + """ + Gets the method of this PtsV1TransactionBatchesGet200ResponseLinksSelf. + + :return: The method of this PtsV1TransactionBatchesGet200ResponseLinksSelf. + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """ + Sets the method of this PtsV1TransactionBatchesGet200ResponseLinksSelf. + + :param method: The method of this PtsV1TransactionBatchesGet200ResponseLinksSelf. + :type: str + """ + + self._method = method + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV1TransactionBatchesGet200ResponseLinksSelf): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v1_transaction_batches_get200_response_transaction_batches.py b/CyberSource/models/pts_v1_transaction_batches_get200_response_transaction_batches.py new file mode 100644 index 00000000..e072fa88 --- /dev/null +++ b/CyberSource/models/pts_v1_transaction_batches_get200_response_transaction_batches.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV1TransactionBatchesGet200ResponseTransactionBatches(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'upload_date': 'str', + 'completion_date': 'str', + 'transaction_count': 'int', + 'accepted_transaction_count': 'int', + 'rejected_transaction_count': 'str', + 'status': 'str' + } + + attribute_map = { + 'id': 'id', + 'upload_date': 'uploadDate', + 'completion_date': 'completionDate', + 'transaction_count': 'transactionCount', + 'accepted_transaction_count': 'acceptedTransactionCount', + 'rejected_transaction_count': 'rejectedTransactionCount', + 'status': 'status' + } + + def __init__(self, id=None, upload_date=None, completion_date=None, transaction_count=None, accepted_transaction_count=None, rejected_transaction_count=None, status=None): + """ + PtsV1TransactionBatchesGet200ResponseTransactionBatches - a model defined in Swagger + """ + + self._id = None + self._upload_date = None + self._completion_date = None + self._transaction_count = None + self._accepted_transaction_count = None + self._rejected_transaction_count = None + self._status = None + + if id is not None: + self.id = id + if upload_date is not None: + self.upload_date = upload_date + if completion_date is not None: + self.completion_date = completion_date + if transaction_count is not None: + self.transaction_count = transaction_count + if accepted_transaction_count is not None: + self.accepted_transaction_count = accepted_transaction_count + if rejected_transaction_count is not None: + self.rejected_transaction_count = rejected_transaction_count + if status is not None: + self.status = status + + @property + def id(self): + """ + Gets the id of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + Unique identifier assigned to the batch file. + + :return: The id of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + Unique identifier assigned to the batch file. + + :param id: The id of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :type: str + """ + if id is not None and len(id) > 8: + raise ValueError("Invalid value for `id`, length must be less than or equal to `8`") + if id is not None and len(id) < 1: + raise ValueError("Invalid value for `id`, length must be greater than or equal to `1`") + if id is not None and not re.search('^[a-zA-Z0-9_+-]*$', id): + raise ValueError("Invalid value for `id`, must be a follow pattern or equal to `/^[a-zA-Z0-9_+-]*$/`") + + self._id = id + + @property + def upload_date(self): + """ + Gets the upload_date of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + Date when the batch template was update. + + :return: The upload_date of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :rtype: str + """ + return self._upload_date + + @upload_date.setter + def upload_date(self, upload_date): + """ + Sets the upload_date of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + Date when the batch template was update. + + :param upload_date: The upload_date of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :type: str + """ + + self._upload_date = upload_date + + @property + def completion_date(self): + """ + Gets the completion_date of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + The date when the batch template processing completed. + + :return: The completion_date of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :rtype: str + """ + return self._completion_date + + @completion_date.setter + def completion_date(self, completion_date): + """ + Sets the completion_date of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + The date when the batch template processing completed. + + :param completion_date: The completion_date of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :type: str + """ + + self._completion_date = completion_date + + @property + def transaction_count(self): + """ + Gets the transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + Number of transactions in the transaction. + + :return: The transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :rtype: int + """ + return self._transaction_count + + @transaction_count.setter + def transaction_count(self, transaction_count): + """ + Sets the transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + Number of transactions in the transaction. + + :param transaction_count: The transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :type: int + """ + + self._transaction_count = transaction_count + + @property + def accepted_transaction_count(self): + """ + Gets the accepted_transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + Number of transactions accepted. + + :return: The accepted_transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :rtype: int + """ + return self._accepted_transaction_count + + @accepted_transaction_count.setter + def accepted_transaction_count(self, accepted_transaction_count): + """ + Sets the accepted_transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + Number of transactions accepted. + + :param accepted_transaction_count: The accepted_transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :type: int + """ + + self._accepted_transaction_count = accepted_transaction_count + + @property + def rejected_transaction_count(self): + """ + Gets the rejected_transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + Number of transactions rejected. + + :return: The rejected_transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :rtype: str + """ + return self._rejected_transaction_count + + @rejected_transaction_count.setter + def rejected_transaction_count(self, rejected_transaction_count): + """ + Sets the rejected_transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + Number of transactions rejected. + + :param rejected_transaction_count: The rejected_transaction_count of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :type: str + """ + + self._rejected_transaction_count = rejected_transaction_count + + @property + def status(self): + """ + Gets the status of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + The status of you batch template processing. + + :return: The status of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + The status of you batch template processing. + + :param status: The status of this PtsV1TransactionBatchesGet200ResponseTransactionBatches. + :type: str + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV1TransactionBatchesGet200ResponseTransactionBatches): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v1_transaction_batches_get400_response.py b/CyberSource/models/pts_v1_transaction_batches_get400_response.py new file mode 100644 index 00000000..e5b38992 --- /dev/null +++ b/CyberSource/models/pts_v1_transaction_batches_get400_response.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV1TransactionBatchesGet400Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'error_information': 'PtsV1TransactionBatchesGet400ResponseErrorInformation', + 'submit_time_utc': 'str' + } + + attribute_map = { + 'error_information': 'errorInformation', + 'submit_time_utc': 'submitTimeUtc' + } + + def __init__(self, error_information=None, submit_time_utc=None): + """ + PtsV1TransactionBatchesGet400Response - a model defined in Swagger + """ + + self._error_information = None + self._submit_time_utc = None + + if error_information is not None: + self.error_information = error_information + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + + @property + def error_information(self): + """ + Gets the error_information of this PtsV1TransactionBatchesGet400Response. + + :return: The error_information of this PtsV1TransactionBatchesGet400Response. + :rtype: PtsV1TransactionBatchesGet400ResponseErrorInformation + """ + return self._error_information + + @error_information.setter + def error_information(self, error_information): + """ + Sets the error_information of this PtsV1TransactionBatchesGet400Response. + + :param error_information: The error_information of this PtsV1TransactionBatchesGet400Response. + :type: PtsV1TransactionBatchesGet400ResponseErrorInformation + """ + + self._error_information = error_information + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV1TransactionBatchesGet400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV1TransactionBatchesGet400Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV1TransactionBatchesGet400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV1TransactionBatchesGet400Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV1TransactionBatchesGet400Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v1_transaction_batches_get400_response_error_information.py b/CyberSource/models/pts_v1_transaction_batches_get400_response_error_information.py new file mode 100644 index 00000000..c0e0c5a2 --- /dev/null +++ b/CyberSource/models/pts_v1_transaction_batches_get400_response_error_information.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV1TransactionBatchesGet400ResponseErrorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reason': 'str', + 'message': 'str', + 'details': 'list[PtsV1TransactionBatchesGet400ResponseErrorInformationDetails]' + } + + attribute_map = { + 'reason': 'reason', + 'message': 'message', + 'details': 'details' + } + + def __init__(self, reason=None, message=None, details=None): + """ + PtsV1TransactionBatchesGet400ResponseErrorInformation - a model defined in Swagger + """ + + self._reason = None + self._message = None + self._details = None + + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + if details is not None: + self.details = details + + @property + def reason(self): + """ + Gets the reason of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + + :return: The reason of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + + :param reason: The reason of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + :type: str + """ + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + + :return: The message of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + + :param message: The message of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + :type: str + """ + + self._message = message + + @property + def details(self): + """ + Gets the details of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + + :return: The details of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + :rtype: list[PtsV1TransactionBatchesGet400ResponseErrorInformationDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + + :param details: The details of this PtsV1TransactionBatchesGet400ResponseErrorInformation. + :type: list[PtsV1TransactionBatchesGet400ResponseErrorInformationDetails] + """ + + self._details = details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV1TransactionBatchesGet400ResponseErrorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v1_transaction_batches_get400_response_error_information_details.py b/CyberSource/models/pts_v1_transaction_batches_get400_response_error_information_details.py new file mode 100644 index 00000000..4a32a18a --- /dev/null +++ b/CyberSource/models/pts_v1_transaction_batches_get400_response_error_information_details.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV1TransactionBatchesGet400ResponseErrorInformationDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'field': 'str', + 'message': 'str' + } + + attribute_map = { + 'field': 'field', + 'message': 'message' + } + + def __init__(self, field=None, message=None): + """ + PtsV1TransactionBatchesGet400ResponseErrorInformationDetails - a model defined in Swagger + """ + + self._field = None + self._message = None + + if field is not None: + self.field = field + if message is not None: + self.message = message + + @property + def field(self): + """ + Gets the field of this PtsV1TransactionBatchesGet400ResponseErrorInformationDetails. + This is the flattened JSON object field name/path that is either missing or invalid. + + :return: The field of this PtsV1TransactionBatchesGet400ResponseErrorInformationDetails. + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """ + Sets the field of this PtsV1TransactionBatchesGet400ResponseErrorInformationDetails. + This is the flattened JSON object field name/path that is either missing or invalid. + + :param field: The field of this PtsV1TransactionBatchesGet400ResponseErrorInformationDetails. + :type: str + """ + + self._field = field + + @property + def message(self): + """ + Gets the message of this PtsV1TransactionBatchesGet400ResponseErrorInformationDetails. + The detailed message related to the status and reason listed above. + + :return: The message of this PtsV1TransactionBatchesGet400ResponseErrorInformationDetails. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV1TransactionBatchesGet400ResponseErrorInformationDetails. + The detailed message related to the status and reason listed above. + + :param message: The message of this PtsV1TransactionBatchesGet400ResponseErrorInformationDetails. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV1TransactionBatchesGet400ResponseErrorInformationDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v1_transaction_batches_get500_response.py b/CyberSource/models/pts_v1_transaction_batches_get500_response.py new file mode 100644 index 00000000..f7bfe09a --- /dev/null +++ b/CyberSource/models/pts_v1_transaction_batches_get500_response.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV1TransactionBatchesGet500Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'error_information': 'PtsV1TransactionBatchesGet500ResponseErrorInformation', + 'submit_time_utc': 'str' + } + + attribute_map = { + 'error_information': 'errorInformation', + 'submit_time_utc': 'submitTimeUtc' + } + + def __init__(self, error_information=None, submit_time_utc=None): + """ + PtsV1TransactionBatchesGet500Response - a model defined in Swagger + """ + + self._error_information = None + self._submit_time_utc = None + + if error_information is not None: + self.error_information = error_information + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + + @property + def error_information(self): + """ + Gets the error_information of this PtsV1TransactionBatchesGet500Response. + + :return: The error_information of this PtsV1TransactionBatchesGet500Response. + :rtype: PtsV1TransactionBatchesGet500ResponseErrorInformation + """ + return self._error_information + + @error_information.setter + def error_information(self, error_information): + """ + Sets the error_information of this PtsV1TransactionBatchesGet500Response. + + :param error_information: The error_information of this PtsV1TransactionBatchesGet500Response. + :type: PtsV1TransactionBatchesGet500ResponseErrorInformation + """ + + self._error_information = error_information + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV1TransactionBatchesGet500Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV1TransactionBatchesGet500Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV1TransactionBatchesGet500Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV1TransactionBatchesGet500Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV1TransactionBatchesGet500Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v1_transaction_batches_get500_response_error_information.py b/CyberSource/models/pts_v1_transaction_batches_get500_response_error_information.py new file mode 100644 index 00000000..4bb8770b --- /dev/null +++ b/CyberSource/models/pts_v1_transaction_batches_get500_response_error_information.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV1TransactionBatchesGet500ResponseErrorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reason': 'str', + 'message': 'str' + } + + attribute_map = { + 'reason': 'reason', + 'message': 'message' + } + + def __init__(self, reason=None, message=None): + """ + PtsV1TransactionBatchesGet500ResponseErrorInformation - a model defined in Swagger + """ + + self._reason = None + self._message = None + + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + + @property + def reason(self): + """ + Gets the reason of this PtsV1TransactionBatchesGet500ResponseErrorInformation. + The reason of status + + :return: The reason of this PtsV1TransactionBatchesGet500ResponseErrorInformation. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV1TransactionBatchesGet500ResponseErrorInformation. + The reason of status + + :param reason: The reason of this PtsV1TransactionBatchesGet500ResponseErrorInformation. + :type: str + """ + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV1TransactionBatchesGet500ResponseErrorInformation. + The detailed message related to the status and reason listed above. + + :return: The message of this PtsV1TransactionBatchesGet500ResponseErrorInformation. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV1TransactionBatchesGet500ResponseErrorInformation. + The detailed message related to the status and reason listed above. + + :param message: The message of this PtsV1TransactionBatchesGet500ResponseErrorInformation. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV1TransactionBatchesGet500ResponseErrorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_credits_post201_response.py b/CyberSource/models/pts_v2_credits_post201_response.py new file mode 100644 index 00000000..e1e7a502 --- /dev/null +++ b/CyberSource/models/pts_v2_credits_post201_response.py @@ -0,0 +1,349 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2CreditsPost201Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'PtsV2PaymentsRefundPost201ResponseLinks', + 'id': 'str', + 'submit_time_utc': 'str', + 'status': 'str', + 'reconciliation_id': 'str', + 'client_reference_information': 'PtsV2PaymentsPost201ResponseClientReferenceInformation', + 'credit_amount_details': 'PtsV2CreditsPost201ResponseCreditAmountDetails', + 'processor_information': 'PtsV2PaymentsRefundPost201ResponseProcessorInformation', + 'order_information': 'PtsV2PaymentsRefundPost201ResponseOrderInformation' + } + + attribute_map = { + 'links': '_links', + 'id': 'id', + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reconciliation_id': 'reconciliationId', + 'client_reference_information': 'clientReferenceInformation', + 'credit_amount_details': 'creditAmountDetails', + 'processor_information': 'processorInformation', + 'order_information': 'orderInformation' + } + + def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, credit_amount_details=None, processor_information=None, order_information=None): + """ + PtsV2CreditsPost201Response - a model defined in Swagger + """ + + self._links = None + self._id = None + self._submit_time_utc = None + self._status = None + self._reconciliation_id = None + self._client_reference_information = None + self._credit_amount_details = None + self._processor_information = None + self._order_information = None + + if links is not None: + self.links = links + if id is not None: + self.id = id + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if client_reference_information is not None: + self.client_reference_information = client_reference_information + if credit_amount_details is not None: + self.credit_amount_details = credit_amount_details + if processor_information is not None: + self.processor_information = processor_information + if order_information is not None: + self.order_information = order_information + + @property + def links(self): + """ + Gets the links of this PtsV2CreditsPost201Response. + + :return: The links of this PtsV2CreditsPost201Response. + :rtype: PtsV2PaymentsRefundPost201ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this PtsV2CreditsPost201Response. + + :param links: The links of this PtsV2CreditsPost201Response. + :type: PtsV2PaymentsRefundPost201ResponseLinks + """ + + self._links = links + + @property + def id(self): + """ + Gets the id of this PtsV2CreditsPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :return: The id of this PtsV2CreditsPost201Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this PtsV2CreditsPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :param id: The id of this PtsV2CreditsPost201Response. + :type: str + """ + if id is not None and len(id) > 26: + raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") + + self._id = id + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2CreditsPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2CreditsPost201Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2CreditsPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2CreditsPost201Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2CreditsPost201Response. + The status of the submitted transaction. + + :return: The status of this PtsV2CreditsPost201Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2CreditsPost201Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2CreditsPost201Response. + :type: str + """ + allowed_values = ["PENDING"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this PtsV2CreditsPost201Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :return: The reconciliation_id of this PtsV2CreditsPost201Response. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this PtsV2CreditsPost201Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :param reconciliation_id: The reconciliation_id of this PtsV2CreditsPost201Response. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def client_reference_information(self): + """ + Gets the client_reference_information of this PtsV2CreditsPost201Response. + + :return: The client_reference_information of this PtsV2CreditsPost201Response. + :rtype: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + return self._client_reference_information + + @client_reference_information.setter + def client_reference_information(self, client_reference_information): + """ + Sets the client_reference_information of this PtsV2CreditsPost201Response. + + :param client_reference_information: The client_reference_information of this PtsV2CreditsPost201Response. + :type: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + + self._client_reference_information = client_reference_information + + @property + def credit_amount_details(self): + """ + Gets the credit_amount_details of this PtsV2CreditsPost201Response. + + :return: The credit_amount_details of this PtsV2CreditsPost201Response. + :rtype: PtsV2CreditsPost201ResponseCreditAmountDetails + """ + return self._credit_amount_details + + @credit_amount_details.setter + def credit_amount_details(self, credit_amount_details): + """ + Sets the credit_amount_details of this PtsV2CreditsPost201Response. + + :param credit_amount_details: The credit_amount_details of this PtsV2CreditsPost201Response. + :type: PtsV2CreditsPost201ResponseCreditAmountDetails + """ + + self._credit_amount_details = credit_amount_details + + @property + def processor_information(self): + """ + Gets the processor_information of this PtsV2CreditsPost201Response. + + :return: The processor_information of this PtsV2CreditsPost201Response. + :rtype: PtsV2PaymentsRefundPost201ResponseProcessorInformation + """ + return self._processor_information + + @processor_information.setter + def processor_information(self, processor_information): + """ + Sets the processor_information of this PtsV2CreditsPost201Response. + + :param processor_information: The processor_information of this PtsV2CreditsPost201Response. + :type: PtsV2PaymentsRefundPost201ResponseProcessorInformation + """ + + self._processor_information = processor_information + + @property + def order_information(self): + """ + Gets the order_information of this PtsV2CreditsPost201Response. + + :return: The order_information of this PtsV2CreditsPost201Response. + :rtype: PtsV2PaymentsRefundPost201ResponseOrderInformation + """ + return self._order_information + + @order_information.setter + def order_information(self, order_information): + """ + Sets the order_information of this PtsV2CreditsPost201Response. + + :param order_information: The order_information of this PtsV2CreditsPost201Response. + :type: PtsV2PaymentsRefundPost201ResponseOrderInformation + """ + + self._order_information = order_information + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2CreditsPost201Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_credits_post201_response_credit_amount_details.py b/CyberSource/models/pts_v2_credits_post201_response_credit_amount_details.py new file mode 100644 index 00000000..5420c671 --- /dev/null +++ b/CyberSource/models/pts_v2_credits_post201_response_credit_amount_details.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2CreditsPost201ResponseCreditAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'credit_amount': 'str', + 'currency': 'str' + } + + attribute_map = { + 'credit_amount': 'creditAmount', + 'currency': 'currency' + } + + def __init__(self, credit_amount=None, currency=None): + """ + PtsV2CreditsPost201ResponseCreditAmountDetails - a model defined in Swagger + """ + + self._credit_amount = None + self._currency = None + + if credit_amount is not None: + self.credit_amount = credit_amount + if currency is not None: + self.currency = currency + + @property + def credit_amount(self): + """ + Gets the credit_amount of this PtsV2CreditsPost201ResponseCreditAmountDetails. + Total amount of the credit. + + :return: The credit_amount of this PtsV2CreditsPost201ResponseCreditAmountDetails. + :rtype: str + """ + return self._credit_amount + + @credit_amount.setter + def credit_amount(self, credit_amount): + """ + Sets the credit_amount of this PtsV2CreditsPost201ResponseCreditAmountDetails. + Total amount of the credit. + + :param credit_amount: The credit_amount of this PtsV2CreditsPost201ResponseCreditAmountDetails. + :type: str + """ + if credit_amount is not None and len(credit_amount) > 15: + raise ValueError("Invalid value for `credit_amount`, length must be less than or equal to `15`") + + self._credit_amount = credit_amount + + @property + def currency(self): + """ + Gets the currency of this PtsV2CreditsPost201ResponseCreditAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this PtsV2CreditsPost201ResponseCreditAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this PtsV2CreditsPost201ResponseCreditAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this PtsV2CreditsPost201ResponseCreditAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2CreditsPost201ResponseCreditAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_captures_post201_response.py b/CyberSource/models/pts_v2_payments_captures_post201_response.py new file mode 100644 index 00000000..9491d68a --- /dev/null +++ b/CyberSource/models/pts_v2_payments_captures_post201_response.py @@ -0,0 +1,323 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsCapturesPost201Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'PtsV2PaymentsCapturesPost201ResponseLinks', + 'id': 'str', + 'submit_time_utc': 'str', + 'status': 'str', + 'reconciliation_id': 'str', + 'client_reference_information': 'PtsV2PaymentsPost201ResponseClientReferenceInformation', + 'processor_information': 'PtsV2PaymentsCapturesPost201ResponseProcessorInformation', + 'order_information': 'PtsV2PaymentsCapturesPost201ResponseOrderInformation' + } + + attribute_map = { + 'links': '_links', + 'id': 'id', + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reconciliation_id': 'reconciliationId', + 'client_reference_information': 'clientReferenceInformation', + 'processor_information': 'processorInformation', + 'order_information': 'orderInformation' + } + + def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, processor_information=None, order_information=None): + """ + PtsV2PaymentsCapturesPost201Response - a model defined in Swagger + """ + + self._links = None + self._id = None + self._submit_time_utc = None + self._status = None + self._reconciliation_id = None + self._client_reference_information = None + self._processor_information = None + self._order_information = None + + if links is not None: + self.links = links + if id is not None: + self.id = id + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if client_reference_information is not None: + self.client_reference_information = client_reference_information + if processor_information is not None: + self.processor_information = processor_information + if order_information is not None: + self.order_information = order_information + + @property + def links(self): + """ + Gets the links of this PtsV2PaymentsCapturesPost201Response. + + :return: The links of this PtsV2PaymentsCapturesPost201Response. + :rtype: PtsV2PaymentsCapturesPost201ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this PtsV2PaymentsCapturesPost201Response. + + :param links: The links of this PtsV2PaymentsCapturesPost201Response. + :type: PtsV2PaymentsCapturesPost201ResponseLinks + """ + + self._links = links + + @property + def id(self): + """ + Gets the id of this PtsV2PaymentsCapturesPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :return: The id of this PtsV2PaymentsCapturesPost201Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this PtsV2PaymentsCapturesPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :param id: The id of this PtsV2PaymentsCapturesPost201Response. + :type: str + """ + if id is not None and len(id) > 26: + raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") + + self._id = id + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsCapturesPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsCapturesPost201Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsCapturesPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsCapturesPost201Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsCapturesPost201Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsCapturesPost201Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsCapturesPost201Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsCapturesPost201Response. + :type: str + """ + allowed_values = ["PENDING"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this PtsV2PaymentsCapturesPost201Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :return: The reconciliation_id of this PtsV2PaymentsCapturesPost201Response. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this PtsV2PaymentsCapturesPost201Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :param reconciliation_id: The reconciliation_id of this PtsV2PaymentsCapturesPost201Response. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def client_reference_information(self): + """ + Gets the client_reference_information of this PtsV2PaymentsCapturesPost201Response. + + :return: The client_reference_information of this PtsV2PaymentsCapturesPost201Response. + :rtype: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + return self._client_reference_information + + @client_reference_information.setter + def client_reference_information(self, client_reference_information): + """ + Sets the client_reference_information of this PtsV2PaymentsCapturesPost201Response. + + :param client_reference_information: The client_reference_information of this PtsV2PaymentsCapturesPost201Response. + :type: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + + self._client_reference_information = client_reference_information + + @property + def processor_information(self): + """ + Gets the processor_information of this PtsV2PaymentsCapturesPost201Response. + + :return: The processor_information of this PtsV2PaymentsCapturesPost201Response. + :rtype: PtsV2PaymentsCapturesPost201ResponseProcessorInformation + """ + return self._processor_information + + @processor_information.setter + def processor_information(self, processor_information): + """ + Sets the processor_information of this PtsV2PaymentsCapturesPost201Response. + + :param processor_information: The processor_information of this PtsV2PaymentsCapturesPost201Response. + :type: PtsV2PaymentsCapturesPost201ResponseProcessorInformation + """ + + self._processor_information = processor_information + + @property + def order_information(self): + """ + Gets the order_information of this PtsV2PaymentsCapturesPost201Response. + + :return: The order_information of this PtsV2PaymentsCapturesPost201Response. + :rtype: PtsV2PaymentsCapturesPost201ResponseOrderInformation + """ + return self._order_information + + @order_information.setter + def order_information(self, order_information): + """ + Sets the order_information of this PtsV2PaymentsCapturesPost201Response. + + :param order_information: The order_information of this PtsV2PaymentsCapturesPost201Response. + :type: PtsV2PaymentsCapturesPost201ResponseOrderInformation + """ + + self._order_information = order_information + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsCapturesPost201Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_captures_post201_response__links.py b/CyberSource/models/pts_v2_payments_captures_post201_response__links.py new file mode 100644 index 00000000..f45ae38b --- /dev/null +++ b/CyberSource/models/pts_v2_payments_captures_post201_response__links.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsCapturesPost201ResponseLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + '_self': 'PtsV2PaymentsPost201ResponseLinksSelf', + 'void': 'PtsV2PaymentsPost201ResponseLinksSelf', + 'refund': 'PtsV2PaymentsPost201ResponseLinksSelf' + } + + attribute_map = { + '_self': 'self', + 'void': 'void', + 'refund': 'refund' + } + + def __init__(self, _self=None, void=None, refund=None): + """ + PtsV2PaymentsCapturesPost201ResponseLinks - a model defined in Swagger + """ + + self.__self = None + self._void = None + self._refund = None + + if _self is not None: + self._self = _self + if void is not None: + self.void = void + if refund is not None: + self.refund = refund + + @property + def _self(self): + """ + Gets the _self of this PtsV2PaymentsCapturesPost201ResponseLinks. + + :return: The _self of this PtsV2PaymentsCapturesPost201ResponseLinks. + :rtype: PtsV2PaymentsPost201ResponseLinksSelf + """ + return self.__self + + @_self.setter + def _self(self, _self): + """ + Sets the _self of this PtsV2PaymentsCapturesPost201ResponseLinks. + + :param _self: The _self of this PtsV2PaymentsCapturesPost201ResponseLinks. + :type: PtsV2PaymentsPost201ResponseLinksSelf + """ + + self.__self = _self + + @property + def void(self): + """ + Gets the void of this PtsV2PaymentsCapturesPost201ResponseLinks. + + :return: The void of this PtsV2PaymentsCapturesPost201ResponseLinks. + :rtype: PtsV2PaymentsPost201ResponseLinksSelf + """ + return self._void + + @void.setter + def void(self, void): + """ + Sets the void of this PtsV2PaymentsCapturesPost201ResponseLinks. + + :param void: The void of this PtsV2PaymentsCapturesPost201ResponseLinks. + :type: PtsV2PaymentsPost201ResponseLinksSelf + """ + + self._void = void + + @property + def refund(self): + """ + Gets the refund of this PtsV2PaymentsCapturesPost201ResponseLinks. + + :return: The refund of this PtsV2PaymentsCapturesPost201ResponseLinks. + :rtype: PtsV2PaymentsPost201ResponseLinksSelf + """ + return self._refund + + @refund.setter + def refund(self, refund): + """ + Sets the refund of this PtsV2PaymentsCapturesPost201ResponseLinks. + + :param refund: The refund of this PtsV2PaymentsCapturesPost201ResponseLinks. + :type: PtsV2PaymentsPost201ResponseLinksSelf + """ + + self._refund = refund + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsCapturesPost201ResponseLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_captures_post201_response_order_information.py b/CyberSource/models/pts_v2_payments_captures_post201_response_order_information.py new file mode 100644 index 00000000..4e7f92c8 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_captures_post201_response_order_information.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsCapturesPost201ResponseOrderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amount_details': 'PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails', + 'invoice_details': 'PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails' + } + + attribute_map = { + 'amount_details': 'amountDetails', + 'invoice_details': 'invoiceDetails' + } + + def __init__(self, amount_details=None, invoice_details=None): + """ + PtsV2PaymentsCapturesPost201ResponseOrderInformation - a model defined in Swagger + """ + + self._amount_details = None + self._invoice_details = None + + if amount_details is not None: + self.amount_details = amount_details + if invoice_details is not None: + self.invoice_details = invoice_details + + @property + def amount_details(self): + """ + Gets the amount_details of this PtsV2PaymentsCapturesPost201ResponseOrderInformation. + + :return: The amount_details of this PtsV2PaymentsCapturesPost201ResponseOrderInformation. + :rtype: PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails + """ + return self._amount_details + + @amount_details.setter + def amount_details(self, amount_details): + """ + Sets the amount_details of this PtsV2PaymentsCapturesPost201ResponseOrderInformation. + + :param amount_details: The amount_details of this PtsV2PaymentsCapturesPost201ResponseOrderInformation. + :type: PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails + """ + + self._amount_details = amount_details + + @property + def invoice_details(self): + """ + Gets the invoice_details of this PtsV2PaymentsCapturesPost201ResponseOrderInformation. + + :return: The invoice_details of this PtsV2PaymentsCapturesPost201ResponseOrderInformation. + :rtype: PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails + """ + return self._invoice_details + + @invoice_details.setter + def invoice_details(self, invoice_details): + """ + Sets the invoice_details of this PtsV2PaymentsCapturesPost201ResponseOrderInformation. + + :param invoice_details: The invoice_details of this PtsV2PaymentsCapturesPost201ResponseOrderInformation. + :type: PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails + """ + + self._invoice_details = invoice_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsCapturesPost201ResponseOrderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_captures_post201_response_order_information_amount_details.py b/CyberSource/models/pts_v2_payments_captures_post201_response_order_information_amount_details.py new file mode 100644 index 00000000..e4c549e1 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_captures_post201_response_order_information_amount_details.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'total_amount': 'str', + 'currency': 'str' + } + + attribute_map = { + 'total_amount': 'totalAmount', + 'currency': 'currency' + } + + def __init__(self, total_amount=None, currency=None): + """ + PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails - a model defined in Swagger + """ + + self._total_amount = None + self._currency = None + + if total_amount is not None: + self.total_amount = total_amount + if currency is not None: + self.currency = currency + + @property + def total_amount(self): + """ + Gets the total_amount of this PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails. + Amount you requested for the capture. + + :return: The total_amount of this PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails. + :rtype: str + """ + return self._total_amount + + @total_amount.setter + def total_amount(self, total_amount): + """ + Sets the total_amount of this PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails. + Amount you requested for the capture. + + :param total_amount: The total_amount of this PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails. + :type: str + """ + if total_amount is not None and len(total_amount) > 15: + raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `15`") + + self._total_amount = total_amount + + @property + def currency(self): + """ + Gets the currency of this PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_captures_post201_response_processor_information.py b/CyberSource/models/pts_v2_payments_captures_post201_response_processor_information.py new file mode 100644 index 00000000..91893cb0 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_captures_post201_response_processor_information.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsCapturesPost201ResponseProcessorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'transaction_id': 'str' + } + + attribute_map = { + 'transaction_id': 'transactionId' + } + + def __init__(self, transaction_id=None): + """ + PtsV2PaymentsCapturesPost201ResponseProcessorInformation - a model defined in Swagger + """ + + self._transaction_id = None + + if transaction_id is not None: + self.transaction_id = transaction_id + + @property + def transaction_id(self): + """ + Gets the transaction_id of this PtsV2PaymentsCapturesPost201ResponseProcessorInformation. + Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 + + :return: The transaction_id of this PtsV2PaymentsCapturesPost201ResponseProcessorInformation. + :rtype: str + """ + return self._transaction_id + + @transaction_id.setter + def transaction_id(self, transaction_id): + """ + Sets the transaction_id of this PtsV2PaymentsCapturesPost201ResponseProcessorInformation. + Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 + + :param transaction_id: The transaction_id of this PtsV2PaymentsCapturesPost201ResponseProcessorInformation. + :type: str + """ + if transaction_id is not None and len(transaction_id) > 18: + raise ValueError("Invalid value for `transaction_id`, length must be less than or equal to `18`") + + self._transaction_id = transaction_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsCapturesPost201ResponseProcessorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_captures_post400_response.py b/CyberSource/models/pts_v2_payments_captures_post400_response.py new file mode 100644 index 00000000..fb2c7ff4 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_captures_post400_response.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsCapturesPost400Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'submit_time_utc': 'str', + 'status': 'str', + 'reason': 'str', + 'message': 'str', + 'details': 'list[PtsV2PaymentsPost201ResponseErrorInformationDetails]' + } + + attribute_map = { + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reason': 'reason', + 'message': 'message', + 'details': 'details' + } + + def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): + """ + PtsV2PaymentsCapturesPost400Response - a model defined in Swagger + """ + + self._submit_time_utc = None + self._status = None + self._reason = None + self._message = None + self._details = None + + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + if details is not None: + self.details = details + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsCapturesPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsCapturesPost400Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsCapturesPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsCapturesPost400Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsCapturesPost400Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsCapturesPost400Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsCapturesPost400Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsCapturesPost400Response. + :type: str + """ + allowed_values = ["INVALID_REQUEST"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsCapturesPost400Response. + The reason of the status. + + :return: The reason of this PtsV2PaymentsCapturesPost400Response. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsCapturesPost400Response. + The reason of the status. + + :param reason: The reason of this PtsV2PaymentsCapturesPost400Response. + :type: str + """ + allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_MERCHANT_CONFIGURATION", "EXCEEDS_AUTH_AMOUNT", "AUTH_ALREADY_REVERSED", "TRANSACTION_ALREADY_SETTLED", "MISSING_AUTH", "TRANSACTION_ALREADY_REVERSED_OR_SETTLED"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsCapturesPost400Response. + The detail message related to the status and reason listed above. + + :return: The message of this PtsV2PaymentsCapturesPost400Response. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsCapturesPost400Response. + The detail message related to the status and reason listed above. + + :param message: The message of this PtsV2PaymentsCapturesPost400Response. + :type: str + """ + + self._message = message + + @property + def details(self): + """ + Gets the details of this PtsV2PaymentsCapturesPost400Response. + + :return: The details of this PtsV2PaymentsCapturesPost400Response. + :rtype: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this PtsV2PaymentsCapturesPost400Response. + + :param details: The details of this PtsV2PaymentsCapturesPost400Response. + :type: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + + self._details = details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsCapturesPost400Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response.py b/CyberSource/models/pts_v2_payments_post201_response.py new file mode 100644 index 00000000..ff0fbde3 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response.py @@ -0,0 +1,401 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'PtsV2PaymentsPost201ResponseLinks', + 'id': 'str', + 'submit_time_utc': 'str', + 'status': 'str', + 'reconciliation_id': 'str', + 'error_information': 'PtsV2PaymentsPost201ResponseErrorInformation', + 'client_reference_information': 'PtsV2PaymentsPost201ResponseClientReferenceInformation', + 'processor_information': 'PtsV2PaymentsPost201ResponseProcessorInformation', + 'payment_information': 'PtsV2PaymentsPost201ResponsePaymentInformation', + 'order_information': 'PtsV2PaymentsPost201ResponseOrderInformation', + 'point_of_sale_information': 'PtsV2PaymentsPost201ResponsePointOfSaleInformation' + } + + attribute_map = { + 'links': '_links', + 'id': 'id', + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reconciliation_id': 'reconciliationId', + 'error_information': 'errorInformation', + 'client_reference_information': 'clientReferenceInformation', + 'processor_information': 'processorInformation', + 'payment_information': 'paymentInformation', + 'order_information': 'orderInformation', + 'point_of_sale_information': 'pointOfSaleInformation' + } + + def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, error_information=None, client_reference_information=None, processor_information=None, payment_information=None, order_information=None, point_of_sale_information=None): + """ + PtsV2PaymentsPost201Response - a model defined in Swagger + """ + + self._links = None + self._id = None + self._submit_time_utc = None + self._status = None + self._reconciliation_id = None + self._error_information = None + self._client_reference_information = None + self._processor_information = None + self._payment_information = None + self._order_information = None + self._point_of_sale_information = None + + if links is not None: + self.links = links + if id is not None: + self.id = id + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if error_information is not None: + self.error_information = error_information + if client_reference_information is not None: + self.client_reference_information = client_reference_information + if processor_information is not None: + self.processor_information = processor_information + if payment_information is not None: + self.payment_information = payment_information + if order_information is not None: + self.order_information = order_information + if point_of_sale_information is not None: + self.point_of_sale_information = point_of_sale_information + + @property + def links(self): + """ + Gets the links of this PtsV2PaymentsPost201Response. + + :return: The links of this PtsV2PaymentsPost201Response. + :rtype: PtsV2PaymentsPost201ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this PtsV2PaymentsPost201Response. + + :param links: The links of this PtsV2PaymentsPost201Response. + :type: PtsV2PaymentsPost201ResponseLinks + """ + + self._links = links + + @property + def id(self): + """ + Gets the id of this PtsV2PaymentsPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :return: The id of this PtsV2PaymentsPost201Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this PtsV2PaymentsPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :param id: The id of this PtsV2PaymentsPost201Response. + :type: str + """ + if id is not None and len(id) > 26: + raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") + + self._id = id + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsPost201Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsPost201Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsPost201Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsPost201Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsPost201Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsPost201Response. + :type: str + """ + allowed_values = ["AUTHORIZED", "PARTIAL_AUTHORIZED", "AUTHORIZED_PENDING_REVIEW", "DECLINED"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this PtsV2PaymentsPost201Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :return: The reconciliation_id of this PtsV2PaymentsPost201Response. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this PtsV2PaymentsPost201Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :param reconciliation_id: The reconciliation_id of this PtsV2PaymentsPost201Response. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def error_information(self): + """ + Gets the error_information of this PtsV2PaymentsPost201Response. + + :return: The error_information of this PtsV2PaymentsPost201Response. + :rtype: PtsV2PaymentsPost201ResponseErrorInformation + """ + return self._error_information + + @error_information.setter + def error_information(self, error_information): + """ + Sets the error_information of this PtsV2PaymentsPost201Response. + + :param error_information: The error_information of this PtsV2PaymentsPost201Response. + :type: PtsV2PaymentsPost201ResponseErrorInformation + """ + + self._error_information = error_information + + @property + def client_reference_information(self): + """ + Gets the client_reference_information of this PtsV2PaymentsPost201Response. + + :return: The client_reference_information of this PtsV2PaymentsPost201Response. + :rtype: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + return self._client_reference_information + + @client_reference_information.setter + def client_reference_information(self, client_reference_information): + """ + Sets the client_reference_information of this PtsV2PaymentsPost201Response. + + :param client_reference_information: The client_reference_information of this PtsV2PaymentsPost201Response. + :type: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + + self._client_reference_information = client_reference_information + + @property + def processor_information(self): + """ + Gets the processor_information of this PtsV2PaymentsPost201Response. + + :return: The processor_information of this PtsV2PaymentsPost201Response. + :rtype: PtsV2PaymentsPost201ResponseProcessorInformation + """ + return self._processor_information + + @processor_information.setter + def processor_information(self, processor_information): + """ + Sets the processor_information of this PtsV2PaymentsPost201Response. + + :param processor_information: The processor_information of this PtsV2PaymentsPost201Response. + :type: PtsV2PaymentsPost201ResponseProcessorInformation + """ + + self._processor_information = processor_information + + @property + def payment_information(self): + """ + Gets the payment_information of this PtsV2PaymentsPost201Response. + + :return: The payment_information of this PtsV2PaymentsPost201Response. + :rtype: PtsV2PaymentsPost201ResponsePaymentInformation + """ + return self._payment_information + + @payment_information.setter + def payment_information(self, payment_information): + """ + Sets the payment_information of this PtsV2PaymentsPost201Response. + + :param payment_information: The payment_information of this PtsV2PaymentsPost201Response. + :type: PtsV2PaymentsPost201ResponsePaymentInformation + """ + + self._payment_information = payment_information + + @property + def order_information(self): + """ + Gets the order_information of this PtsV2PaymentsPost201Response. + + :return: The order_information of this PtsV2PaymentsPost201Response. + :rtype: PtsV2PaymentsPost201ResponseOrderInformation + """ + return self._order_information + + @order_information.setter + def order_information(self, order_information): + """ + Sets the order_information of this PtsV2PaymentsPost201Response. + + :param order_information: The order_information of this PtsV2PaymentsPost201Response. + :type: PtsV2PaymentsPost201ResponseOrderInformation + """ + + self._order_information = order_information + + @property + def point_of_sale_information(self): + """ + Gets the point_of_sale_information of this PtsV2PaymentsPost201Response. + + :return: The point_of_sale_information of this PtsV2PaymentsPost201Response. + :rtype: PtsV2PaymentsPost201ResponsePointOfSaleInformation + """ + return self._point_of_sale_information + + @point_of_sale_information.setter + def point_of_sale_information(self, point_of_sale_information): + """ + Sets the point_of_sale_information of this PtsV2PaymentsPost201Response. + + :param point_of_sale_information: The point_of_sale_information of this PtsV2PaymentsPost201Response. + :type: PtsV2PaymentsPost201ResponsePointOfSaleInformation + """ + + self._point_of_sale_information = point_of_sale_information + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response__links.py b/CyberSource/models/pts_v2_payments_post201_response__links.py new file mode 100644 index 00000000..7487a9d5 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response__links.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + '_self': 'PtsV2PaymentsPost201ResponseLinksSelf', + 'reversal': 'PtsV2PaymentsPost201ResponseLinksSelf', + 'capture': 'PtsV2PaymentsPost201ResponseLinksSelf' + } + + attribute_map = { + '_self': 'self', + 'reversal': 'reversal', + 'capture': 'capture' + } + + def __init__(self, _self=None, reversal=None, capture=None): + """ + PtsV2PaymentsPost201ResponseLinks - a model defined in Swagger + """ + + self.__self = None + self._reversal = None + self._capture = None + + if _self is not None: + self._self = _self + if reversal is not None: + self.reversal = reversal + if capture is not None: + self.capture = capture + + @property + def _self(self): + """ + Gets the _self of this PtsV2PaymentsPost201ResponseLinks. + + :return: The _self of this PtsV2PaymentsPost201ResponseLinks. + :rtype: PtsV2PaymentsPost201ResponseLinksSelf + """ + return self.__self + + @_self.setter + def _self(self, _self): + """ + Sets the _self of this PtsV2PaymentsPost201ResponseLinks. + + :param _self: The _self of this PtsV2PaymentsPost201ResponseLinks. + :type: PtsV2PaymentsPost201ResponseLinksSelf + """ + + self.__self = _self + + @property + def reversal(self): + """ + Gets the reversal of this PtsV2PaymentsPost201ResponseLinks. + + :return: The reversal of this PtsV2PaymentsPost201ResponseLinks. + :rtype: PtsV2PaymentsPost201ResponseLinksSelf + """ + return self._reversal + + @reversal.setter + def reversal(self, reversal): + """ + Sets the reversal of this PtsV2PaymentsPost201ResponseLinks. + + :param reversal: The reversal of this PtsV2PaymentsPost201ResponseLinks. + :type: PtsV2PaymentsPost201ResponseLinksSelf + """ + + self._reversal = reversal + + @property + def capture(self): + """ + Gets the capture of this PtsV2PaymentsPost201ResponseLinks. + + :return: The capture of this PtsV2PaymentsPost201ResponseLinks. + :rtype: PtsV2PaymentsPost201ResponseLinksSelf + """ + return self._capture + + @capture.setter + def capture(self, capture): + """ + Sets the capture of this PtsV2PaymentsPost201ResponseLinks. + + :param capture: The capture of this PtsV2PaymentsPost201ResponseLinks. + :type: PtsV2PaymentsPost201ResponseLinksSelf + """ + + self._capture = capture + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response__links_self.py b/CyberSource/models/pts_v2_payments_post201_response__links_self.py new file mode 100644 index 00000000..437c8495 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response__links_self.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseLinksSelf(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str', + 'method': 'str' + } + + attribute_map = { + 'href': 'href', + 'method': 'method' + } + + def __init__(self, href=None, method=None): + """ + PtsV2PaymentsPost201ResponseLinksSelf - a model defined in Swagger + """ + + self._href = None + self._method = None + + if href is not None: + self.href = href + if method is not None: + self.method = method + + @property + def href(self): + """ + Gets the href of this PtsV2PaymentsPost201ResponseLinksSelf. + URL + + :return: The href of this PtsV2PaymentsPost201ResponseLinksSelf. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this PtsV2PaymentsPost201ResponseLinksSelf. + URL + + :param href: The href of this PtsV2PaymentsPost201ResponseLinksSelf. + :type: str + """ + + self._href = href + + @property + def method(self): + """ + Gets the method of this PtsV2PaymentsPost201ResponseLinksSelf. + HTTP method applied to above URL + + :return: The method of this PtsV2PaymentsPost201ResponseLinksSelf. + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """ + Sets the method of this PtsV2PaymentsPost201ResponseLinksSelf. + HTTP method applied to above URL + + :param method: The method of this PtsV2PaymentsPost201ResponseLinksSelf. + :type: str + """ + + self._method = method + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseLinksSelf): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_client_reference_information.py b/CyberSource/models/pts_v2_payments_post201_response_client_reference_information.py new file mode 100644 index 00000000..8d8eda6f --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_client_reference_information.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseClientReferenceInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str' + } + + attribute_map = { + 'code': 'code' + } + + def __init__(self, code=None): + """ + PtsV2PaymentsPost201ResponseClientReferenceInformation - a model defined in Swagger + """ + + self._code = None + + if code is not None: + self.code = code + + @property + def code(self): + """ + Gets the code of this PtsV2PaymentsPost201ResponseClientReferenceInformation. + Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + + :return: The code of this PtsV2PaymentsPost201ResponseClientReferenceInformation. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this PtsV2PaymentsPost201ResponseClientReferenceInformation. + Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + + :param code: The code of this PtsV2PaymentsPost201ResponseClientReferenceInformation. + :type: str + """ + if code is not None and len(code) > 50: + raise ValueError("Invalid value for `code`, length must be less than or equal to `50`") + + self._code = code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseClientReferenceInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_error_information.py b/CyberSource/models/pts_v2_payments_post201_response_error_information.py new file mode 100644 index 00000000..1bb30498 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_error_information.py @@ -0,0 +1,185 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseErrorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reason': 'str', + 'message': 'str', + 'details': 'list[PtsV2PaymentsPost201ResponseErrorInformationDetails]' + } + + attribute_map = { + 'reason': 'reason', + 'message': 'message', + 'details': 'details' + } + + def __init__(self, reason=None, message=None, details=None): + """ + PtsV2PaymentsPost201ResponseErrorInformation - a model defined in Swagger + """ + + self._reason = None + self._message = None + self._details = None + + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + if details is not None: + self.details = details + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsPost201ResponseErrorInformation. + The reason of the status. + + :return: The reason of this PtsV2PaymentsPost201ResponseErrorInformation. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsPost201ResponseErrorInformation. + The reason of the status. + + :param reason: The reason of this PtsV2PaymentsPost201ResponseErrorInformation. + :type: str + """ + allowed_values = ["AVS_FAILED", "CONTACT_PROCESSOR", "CV_FAILED", "EXPIRED_CARD", "PROCESSOR_DECLINED", "INSUFFICIENT_FUND", "STOLEN_LOST_CARD", "ISSUER_UNAVAILABLE", "UNAUTHORIZED_CARD", "CVN_NOT_MATCH", "EXCEEDS_CREDIT_LIMIT", "INVALID_CVN", "PAYMENT_REFUSED", "INVALID_ACCOUNT", "GENERAL_DECLINE"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsPost201ResponseErrorInformation. + The detail message related to the status and reason listed above. + + :return: The message of this PtsV2PaymentsPost201ResponseErrorInformation. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsPost201ResponseErrorInformation. + The detail message related to the status and reason listed above. + + :param message: The message of this PtsV2PaymentsPost201ResponseErrorInformation. + :type: str + """ + + self._message = message + + @property + def details(self): + """ + Gets the details of this PtsV2PaymentsPost201ResponseErrorInformation. + + :return: The details of this PtsV2PaymentsPost201ResponseErrorInformation. + :rtype: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this PtsV2PaymentsPost201ResponseErrorInformation. + + :param details: The details of this PtsV2PaymentsPost201ResponseErrorInformation. + :type: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + + self._details = details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseErrorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_error_information_details.py b/CyberSource/models/pts_v2_payments_post201_response_error_information_details.py new file mode 100644 index 00000000..dad762e2 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_error_information_details.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseErrorInformationDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'field': 'str', + 'reason': 'str' + } + + attribute_map = { + 'field': 'field', + 'reason': 'reason' + } + + def __init__(self, field=None, reason=None): + """ + PtsV2PaymentsPost201ResponseErrorInformationDetails - a model defined in Swagger + """ + + self._field = None + self._reason = None + + if field is not None: + self.field = field + if reason is not None: + self.reason = reason + + @property + def field(self): + """ + Gets the field of this PtsV2PaymentsPost201ResponseErrorInformationDetails. + This is the flattened JSON object field name/path that is either missing or invalid. + + :return: The field of this PtsV2PaymentsPost201ResponseErrorInformationDetails. + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """ + Sets the field of this PtsV2PaymentsPost201ResponseErrorInformationDetails. + This is the flattened JSON object field name/path that is either missing or invalid. + + :param field: The field of this PtsV2PaymentsPost201ResponseErrorInformationDetails. + :type: str + """ + + self._field = field + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsPost201ResponseErrorInformationDetails. + Possible reasons for the error. + + :return: The reason of this PtsV2PaymentsPost201ResponseErrorInformationDetails. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsPost201ResponseErrorInformationDetails. + Possible reasons for the error. + + :param reason: The reason of this PtsV2PaymentsPost201ResponseErrorInformationDetails. + :type: str + """ + allowed_values = ["MISSING_FIELD", "INVALID_DATA"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) + + self._reason = reason + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseErrorInformationDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_order_information.py b/CyberSource/models/pts_v2_payments_post201_response_order_information.py new file mode 100644 index 00000000..cd19500d --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_order_information.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseOrderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amount_details': 'PtsV2PaymentsPost201ResponseOrderInformationAmountDetails', + 'invoice_details': 'PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails' + } + + attribute_map = { + 'amount_details': 'amountDetails', + 'invoice_details': 'invoiceDetails' + } + + def __init__(self, amount_details=None, invoice_details=None): + """ + PtsV2PaymentsPost201ResponseOrderInformation - a model defined in Swagger + """ + + self._amount_details = None + self._invoice_details = None + + if amount_details is not None: + self.amount_details = amount_details + if invoice_details is not None: + self.invoice_details = invoice_details + + @property + def amount_details(self): + """ + Gets the amount_details of this PtsV2PaymentsPost201ResponseOrderInformation. + + :return: The amount_details of this PtsV2PaymentsPost201ResponseOrderInformation. + :rtype: PtsV2PaymentsPost201ResponseOrderInformationAmountDetails + """ + return self._amount_details + + @amount_details.setter + def amount_details(self, amount_details): + """ + Sets the amount_details of this PtsV2PaymentsPost201ResponseOrderInformation. + + :param amount_details: The amount_details of this PtsV2PaymentsPost201ResponseOrderInformation. + :type: PtsV2PaymentsPost201ResponseOrderInformationAmountDetails + """ + + self._amount_details = amount_details + + @property + def invoice_details(self): + """ + Gets the invoice_details of this PtsV2PaymentsPost201ResponseOrderInformation. + + :return: The invoice_details of this PtsV2PaymentsPost201ResponseOrderInformation. + :rtype: PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails + """ + return self._invoice_details + + @invoice_details.setter + def invoice_details(self, invoice_details): + """ + Sets the invoice_details of this PtsV2PaymentsPost201ResponseOrderInformation. + + :param invoice_details: The invoice_details of this PtsV2PaymentsPost201ResponseOrderInformation. + :type: PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails + """ + + self._invoice_details = invoice_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseOrderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_order_information_amount_details.py b/CyberSource/models/pts_v2_payments_post201_response_order_information_amount_details.py new file mode 100644 index 00000000..eaf3a883 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_order_information_amount_details.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseOrderInformationAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'total_amount': 'str', + 'authorized_amount': 'str', + 'currency': 'str' + } + + attribute_map = { + 'total_amount': 'totalAmount', + 'authorized_amount': 'authorizedAmount', + 'currency': 'currency' + } + + def __init__(self, total_amount=None, authorized_amount=None, currency=None): + """ + PtsV2PaymentsPost201ResponseOrderInformationAmountDetails - a model defined in Swagger + """ + + self._total_amount = None + self._authorized_amount = None + self._currency = None + + if total_amount is not None: + self.total_amount = total_amount + if authorized_amount is not None: + self.authorized_amount = authorized_amount + if currency is not None: + self.currency = currency + + @property + def total_amount(self): + """ + Gets the total_amount of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + Amount you requested for the payment or capture. This value is returned for partial authorizations. + + :return: The total_amount of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + :rtype: str + """ + return self._total_amount + + @total_amount.setter + def total_amount(self, total_amount): + """ + Sets the total_amount of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + Amount you requested for the payment or capture. This value is returned for partial authorizations. + + :param total_amount: The total_amount of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + :type: str + """ + if total_amount is not None and len(total_amount) > 15: + raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `15`") + + self._total_amount = total_amount + + @property + def authorized_amount(self): + """ + Gets the authorized_amount of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + Amount that was authorized. + + :return: The authorized_amount of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + :rtype: str + """ + return self._authorized_amount + + @authorized_amount.setter + def authorized_amount(self, authorized_amount): + """ + Sets the authorized_amount of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + Amount that was authorized. + + :param authorized_amount: The authorized_amount of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + :type: str + """ + if authorized_amount is not None and len(authorized_amount) > 15: + raise ValueError("Invalid value for `authorized_amount`, length must be less than or equal to `15`") + + self._authorized_amount = authorized_amount + + @property + def currency(self): + """ + Gets the currency of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this PtsV2PaymentsPost201ResponseOrderInformationAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseOrderInformationAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_order_information_invoice_details.py b/CyberSource/models/pts_v2_payments_post201_response_order_information_invoice_details.py new file mode 100644 index 00000000..2133b404 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_order_information_invoice_details.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'level3_transmission_status': 'bool' + } + + attribute_map = { + 'level3_transmission_status': 'level3TransmissionStatus' + } + + def __init__(self, level3_transmission_status=None): + """ + PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails - a model defined in Swagger + """ + + self._level3_transmission_status = None + + if level3_transmission_status is not None: + self.level3_transmission_status = level3_transmission_status + + @property + def level3_transmission_status(self): + """ + Gets the level3_transmission_status of this PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails. + Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The level3_transmission_status of this PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails. + :rtype: bool + """ + return self._level3_transmission_status + + @level3_transmission_status.setter + def level3_transmission_status(self, level3_transmission_status): + """ + Sets the level3_transmission_status of this PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails. + Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param level3_transmission_status: The level3_transmission_status of this PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails. + :type: bool + """ + + self._level3_transmission_status = level3_transmission_status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_payment_information.py b/CyberSource/models/pts_v2_payments_post201_response_payment_information.py new file mode 100644 index 00000000..526e5e5e --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_payment_information.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponsePaymentInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'card': 'PtsV2PaymentsPost201ResponsePaymentInformationCard', + 'tokenized_card': 'PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard', + 'account_features': 'PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures' + } + + attribute_map = { + 'card': 'card', + 'tokenized_card': 'tokenizedCard', + 'account_features': 'accountFeatures' + } + + def __init__(self, card=None, tokenized_card=None, account_features=None): + """ + PtsV2PaymentsPost201ResponsePaymentInformation - a model defined in Swagger + """ + + self._card = None + self._tokenized_card = None + self._account_features = None + + if card is not None: + self.card = card + if tokenized_card is not None: + self.tokenized_card = tokenized_card + if account_features is not None: + self.account_features = account_features + + @property + def card(self): + """ + Gets the card of this PtsV2PaymentsPost201ResponsePaymentInformation. + + :return: The card of this PtsV2PaymentsPost201ResponsePaymentInformation. + :rtype: PtsV2PaymentsPost201ResponsePaymentInformationCard + """ + return self._card + + @card.setter + def card(self, card): + """ + Sets the card of this PtsV2PaymentsPost201ResponsePaymentInformation. + + :param card: The card of this PtsV2PaymentsPost201ResponsePaymentInformation. + :type: PtsV2PaymentsPost201ResponsePaymentInformationCard + """ + + self._card = card + + @property + def tokenized_card(self): + """ + Gets the tokenized_card of this PtsV2PaymentsPost201ResponsePaymentInformation. + + :return: The tokenized_card of this PtsV2PaymentsPost201ResponsePaymentInformation. + :rtype: PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard + """ + return self._tokenized_card + + @tokenized_card.setter + def tokenized_card(self, tokenized_card): + """ + Sets the tokenized_card of this PtsV2PaymentsPost201ResponsePaymentInformation. + + :param tokenized_card: The tokenized_card of this PtsV2PaymentsPost201ResponsePaymentInformation. + :type: PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard + """ + + self._tokenized_card = tokenized_card + + @property + def account_features(self): + """ + Gets the account_features of this PtsV2PaymentsPost201ResponsePaymentInformation. + + :return: The account_features of this PtsV2PaymentsPost201ResponsePaymentInformation. + :rtype: PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures + """ + return self._account_features + + @account_features.setter + def account_features(self, account_features): + """ + Sets the account_features of this PtsV2PaymentsPost201ResponsePaymentInformation. + + :param account_features: The account_features of this PtsV2PaymentsPost201ResponsePaymentInformation. + :type: PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures + """ + + self._account_features = account_features + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponsePaymentInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_payment_information_account_features.py b/CyberSource/models/pts_v2_payments_post201_response_payment_information_account_features.py new file mode 100644 index 00000000..e72f2dae --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_payment_information_account_features.py @@ -0,0 +1,611 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_type': 'str', + 'account_status': 'str', + 'balance_amount': 'str', + 'balance_amount_type': 'str', + 'currency': 'str', + 'balance_sign': 'str', + 'affluence_indicator': 'str', + 'category': 'str', + 'commercial': 'str', + 'group': 'str', + 'health_care': 'str', + 'payroll': 'str', + 'level3_eligible': 'str', + 'pinless_debit': 'str', + 'signature_debit': 'str', + 'prepaid': 'str', + 'regulated': 'str' + } + + attribute_map = { + 'account_type': 'accountType', + 'account_status': 'accountStatus', + 'balance_amount': 'balanceAmount', + 'balance_amount_type': 'balanceAmountType', + 'currency': 'currency', + 'balance_sign': 'balanceSign', + 'affluence_indicator': 'affluenceIndicator', + 'category': 'category', + 'commercial': 'commercial', + 'group': 'group', + 'health_care': 'healthCare', + 'payroll': 'payroll', + 'level3_eligible': 'level3Eligible', + 'pinless_debit': 'pinlessDebit', + 'signature_debit': 'signatureDebit', + 'prepaid': 'prepaid', + 'regulated': 'regulated' + } + + def __init__(self, account_type=None, account_status=None, balance_amount=None, balance_amount_type=None, currency=None, balance_sign=None, affluence_indicator=None, category=None, commercial=None, group=None, health_care=None, payroll=None, level3_eligible=None, pinless_debit=None, signature_debit=None, prepaid=None, regulated=None): + """ + PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures - a model defined in Swagger + """ + + self._account_type = None + self._account_status = None + self._balance_amount = None + self._balance_amount_type = None + self._currency = None + self._balance_sign = None + self._affluence_indicator = None + self._category = None + self._commercial = None + self._group = None + self._health_care = None + self._payroll = None + self._level3_eligible = None + self._pinless_debit = None + self._signature_debit = None + self._prepaid = None + self._regulated = None + + if account_type is not None: + self.account_type = account_type + if account_status is not None: + self.account_status = account_status + if balance_amount is not None: + self.balance_amount = balance_amount + if balance_amount_type is not None: + self.balance_amount_type = balance_amount_type + if currency is not None: + self.currency = currency + if balance_sign is not None: + self.balance_sign = balance_sign + if affluence_indicator is not None: + self.affluence_indicator = affluence_indicator + if category is not None: + self.category = category + if commercial is not None: + self.commercial = commercial + if group is not None: + self.group = group + if health_care is not None: + self.health_care = health_care + if payroll is not None: + self.payroll = payroll + if level3_eligible is not None: + self.level3_eligible = level3_eligible + if pinless_debit is not None: + self.pinless_debit = pinless_debit + if signature_debit is not None: + self.signature_debit = signature_debit + if prepaid is not None: + self.prepaid = prepaid + if regulated is not None: + self.regulated = regulated + + @property + def account_type(self): + """ + Gets the account_type of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Type of account. This value is returned only if you requested a balance inquiry. Possible values: - **00**: Not applicable or not specified - **10**: Savings account - **20**: Checking account - **30**: Credit card account - **40**: Universal account + + :return: The account_type of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._account_type + + @account_type.setter + def account_type(self, account_type): + """ + Sets the account_type of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Type of account. This value is returned only if you requested a balance inquiry. Possible values: - **00**: Not applicable or not specified - **10**: Savings account - **20**: Checking account - **30**: Credit card account - **40**: Universal account + + :param account_type: The account_type of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if account_type is not None and len(account_type) > 2: + raise ValueError("Invalid value for `account_type`, length must be less than or equal to `2`") + + self._account_type = account_type + + @property + def account_status(self): + """ + Gets the account_status of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Possible values: - **N**: Nonregulated - **R**: Regulated `Note` This field is returned only for CyberSource through VisaNet. + + :return: The account_status of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._account_status + + @account_status.setter + def account_status(self, account_status): + """ + Sets the account_status of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Possible values: - **N**: Nonregulated - **R**: Regulated `Note` This field is returned only for CyberSource through VisaNet. + + :param account_status: The account_status of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if account_status is not None and len(account_status) > 1: + raise ValueError("Invalid value for `account_status`, length must be less than or equal to `1`") + + self._account_status = account_status + + @property + def balance_amount(self): + """ + Gets the balance_amount of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Remaining balance on the account. + + :return: The balance_amount of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._balance_amount + + @balance_amount.setter + def balance_amount(self, balance_amount): + """ + Sets the balance_amount of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Remaining balance on the account. + + :param balance_amount: The balance_amount of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if balance_amount is not None and len(balance_amount) > 12: + raise ValueError("Invalid value for `balance_amount`, length must be less than or equal to `12`") + + self._balance_amount = balance_amount + + @property + def balance_amount_type(self): + """ + Gets the balance_amount_type of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Type of amount. This value is returned only if you requested a balance inquiry. The issuer determines the value that is returned. Possible values for deposit accounts: - **01**: Current ledger (posted) balance. - **02**: Current available balance, which is typically the ledger balance less outstanding authorizations. Some depository institutions also include pending deposits and the credit or overdraft line associated with the account. Possible values for credit card accounts: - **01**: Credit amount remaining for customer (open to buy). - **02**: Credit limit. + + :return: The balance_amount_type of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._balance_amount_type + + @balance_amount_type.setter + def balance_amount_type(self, balance_amount_type): + """ + Sets the balance_amount_type of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Type of amount. This value is returned only if you requested a balance inquiry. The issuer determines the value that is returned. Possible values for deposit accounts: - **01**: Current ledger (posted) balance. - **02**: Current available balance, which is typically the ledger balance less outstanding authorizations. Some depository institutions also include pending deposits and the credit or overdraft line associated with the account. Possible values for credit card accounts: - **01**: Credit amount remaining for customer (open to buy). - **02**: Credit limit. + + :param balance_amount_type: The balance_amount_type of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if balance_amount_type is not None and len(balance_amount_type) > 2: + raise ValueError("Invalid value for `balance_amount_type`, length must be less than or equal to `2`") + + self._balance_amount_type = balance_amount_type + + @property + def currency(self): + """ + Gets the currency of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. + + :return: The currency of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. + + :param currency: The currency of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if currency is not None and len(currency) > 5: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `5`") + + self._currency = currency + + @property + def balance_sign(self): + """ + Gets the balance_sign of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Sign for the remaining balance on the account. Returned only when the processor returns this value. Possible values: + + :return: The balance_sign of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._balance_sign + + @balance_sign.setter + def balance_sign(self, balance_sign): + """ + Sets the balance_sign of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Sign for the remaining balance on the account. Returned only when the processor returns this value. Possible values: + + :param balance_sign: The balance_sign of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + allowed_values = ["+", "-"] + if balance_sign not in allowed_values: + raise ValueError( + "Invalid value for `balance_sign` ({0}), must be one of {1}" + .format(balance_sign, allowed_values) + ) + + self._balance_sign = balance_sign + + @property + def affluence_indicator(self): + """ + Gets the affluence_indicator of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + **Chase Paymentech Solutions** Indicates whether a customer has high credit limits. This information enables you to market high cost items to these customers and to understand the kinds of cards that high income customers are using. This field is supported for Visa, Mastercard, Discover, and Diners Club. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown **Litle** Flag that indicates that a Visa cardholder or Mastercard cardholder is in one of the affluent categories. Possible values: - **AFFLUENT**: High income customer with high spending pattern (>100k USD annual income and >40k USD annual card usage). - **MASS AFFLUENT**: High income customer (>100k USD annual income). **Processor specific maximum length**: - Chase Paymentech Solutions: 1 - Litle: 13 + + :return: The affluence_indicator of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._affluence_indicator + + @affluence_indicator.setter + def affluence_indicator(self, affluence_indicator): + """ + Sets the affluence_indicator of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + **Chase Paymentech Solutions** Indicates whether a customer has high credit limits. This information enables you to market high cost items to these customers and to understand the kinds of cards that high income customers are using. This field is supported for Visa, Mastercard, Discover, and Diners Club. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown **Litle** Flag that indicates that a Visa cardholder or Mastercard cardholder is in one of the affluent categories. Possible values: - **AFFLUENT**: High income customer with high spending pattern (>100k USD annual income and >40k USD annual card usage). - **MASS AFFLUENT**: High income customer (>100k USD annual income). **Processor specific maximum length**: - Chase Paymentech Solutions: 1 - Litle: 13 + + :param affluence_indicator: The affluence_indicator of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if affluence_indicator is not None and len(affluence_indicator) > 13: + raise ValueError("Invalid value for `affluence_indicator`, length must be less than or equal to `13`") + + self._affluence_indicator = affluence_indicator + + @property + def category(self): + """ + Gets the category of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + **CyberSource through VisaNet** Visa product ID. **GPN** Visa or Mastercard product ID. **Litle** Type of card used in the transaction. The only possible value is: - PREPAID: Prepaid Card **RBS WorldPay Atlanta** Type of card used in the transaction. Possible values: - **B**: Business Card - **O**: Noncommercial Card - **R**: Corporate Card - **S**: Purchase Card - **Blank**: Purchase card not supported **Maximum length for processors**: - CyberSource through VisaNet: 3 - GPN: 3 - Litle: 7 - RBS WorldPay Atlanta: 1 + + :return: The category of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """ + Sets the category of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + **CyberSource through VisaNet** Visa product ID. **GPN** Visa or Mastercard product ID. **Litle** Type of card used in the transaction. The only possible value is: - PREPAID: Prepaid Card **RBS WorldPay Atlanta** Type of card used in the transaction. Possible values: - **B**: Business Card - **O**: Noncommercial Card - **R**: Corporate Card - **S**: Purchase Card - **Blank**: Purchase card not supported **Maximum length for processors**: - CyberSource through VisaNet: 3 - GPN: 3 - Litle: 7 - RBS WorldPay Atlanta: 1 + + :param category: The category of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if category is not None and len(category) > 7: + raise ValueError("Invalid value for `category`, length must be less than or equal to `7`") + + self._category = category + + @property + def commercial(self): + """ + Gets the commercial of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a commercial card, which enables you to include Level II data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :return: The commercial of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._commercial + + @commercial.setter + def commercial(self, commercial): + """ + Sets the commercial of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a commercial card, which enables you to include Level II data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :param commercial: The commercial of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if commercial is not None and len(commercial) > 1: + raise ValueError("Invalid value for `commercial`, length must be less than or equal to `1`") + + self._commercial = commercial + + @property + def group(self): + """ + Gets the group of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Type of commercial card. This field is supported only for CyberSource through VisaNet. Possible values: - **B**: Business card - **R**: Corporate card - **S**: Purchasing card - **0**: Noncommercial card + + :return: The group of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """ + Sets the group of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Type of commercial card. This field is supported only for CyberSource through VisaNet. Possible values: - **B**: Business card - **R**: Corporate card - **S**: Purchasing card - **0**: Noncommercial card + + :param group: The group of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if group is not None and len(group) > 1: + raise ValueError("Invalid value for `group`, length must be less than or equal to `1`") + + self._group = group + + @property + def health_care(self): + """ + Gets the health_care of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a healthcare card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :return: The health_care of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._health_care + + @health_care.setter + def health_care(self, health_care): + """ + Sets the health_care of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a healthcare card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :param health_care: The health_care of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if health_care is not None and len(health_care) > 1: + raise ValueError("Invalid value for `health_care`, length must be less than or equal to `1`") + + self._health_care = health_care + + @property + def payroll(self): + """ + Gets the payroll of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a payroll card. This field is supported for Visa, Discover, Diners Club, and JCB on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :return: The payroll of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._payroll + + @payroll.setter + def payroll(self, payroll): + """ + Sets the payroll of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a payroll card. This field is supported for Visa, Discover, Diners Club, and JCB on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :param payroll: The payroll of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if payroll is not None and len(payroll) > 1: + raise ValueError("Invalid value for `payroll`, length must be less than or equal to `1`") + + self._payroll = payroll + + @property + def level3_eligible(self): + """ + Gets the level3_eligible of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is eligible for Level III interchange fees, which enables you to include Level III data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :return: The level3_eligible of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._level3_eligible + + @level3_eligible.setter + def level3_eligible(self, level3_eligible): + """ + Sets the level3_eligible of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is eligible for Level III interchange fees, which enables you to include Level III data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :param level3_eligible: The level3_eligible of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if level3_eligible is not None and len(level3_eligible) > 1: + raise ValueError("Invalid value for `level3_eligible`, length must be less than or equal to `1`") + + self._level3_eligible = level3_eligible + + @property + def pinless_debit(self): + """ + Gets the pinless_debit of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a PINless debit card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :return: The pinless_debit of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._pinless_debit + + @pinless_debit.setter + def pinless_debit(self, pinless_debit): + """ + Sets the pinless_debit of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a PINless debit card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :param pinless_debit: The pinless_debit of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if pinless_debit is not None and len(pinless_debit) > 1: + raise ValueError("Invalid value for `pinless_debit`, length must be less than or equal to `1`") + + self._pinless_debit = pinless_debit + + @property + def signature_debit(self): + """ + Gets the signature_debit of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a signature debit card. This information enables you to alter the way an order is processed. For example, you might not want to reauthorize a transaction for a signature debit card, or you might want to perform reversals promptly for a signature debit card. This field is supported for Visa, Mastercard, and Maestro (International) on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :return: The signature_debit of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._signature_debit + + @signature_debit.setter + def signature_debit(self, signature_debit): + """ + Sets the signature_debit of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a signature debit card. This information enables you to alter the way an order is processed. For example, you might not want to reauthorize a transaction for a signature debit card, or you might want to perform reversals promptly for a signature debit card. This field is supported for Visa, Mastercard, and Maestro (International) on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :param signature_debit: The signature_debit of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if signature_debit is not None and len(signature_debit) > 1: + raise ValueError("Invalid value for `signature_debit`, length must be less than or equal to `1`") + + self._signature_debit = signature_debit + + @property + def prepaid(self): + """ + Gets the prepaid of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a prepaid card. This information enables you to determine when a gift card or prepaid card is presented for use when establishing a new recurring, installment, or deferred billing relationship. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :return: The prepaid of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._prepaid + + @prepaid.setter + def prepaid(self, prepaid): + """ + Sets the prepaid of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is a prepaid card. This information enables you to determine when a gift card or prepaid card is presented for use when establishing a new recurring, installment, or deferred billing relationship. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown + + :param prepaid: The prepaid of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if prepaid is not None and len(prepaid) > 1: + raise ValueError("Invalid value for `prepaid`, length must be less than or equal to `1`") + + self._prepaid = prepaid + + @property + def regulated(self): + """ + Gets the regulated of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is regulated according to the Durbin Amendment. If the card is regulated, the card issuer is subject to price caps and interchange rules. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes (assets greater than 10B USD) - **N**: No (assets less than 10B USD) - **X**: Not applicable / Unknown + + :return: The regulated of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._regulated + + @regulated.setter + def regulated(self, regulated): + """ + Sets the regulated of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + Indicates whether the card is regulated according to the Durbin Amendment. If the card is regulated, the card issuer is subject to price caps and interchange rules. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes (assets greater than 10B USD) - **N**: No (assets less than 10B USD) - **X**: Not applicable / Unknown + + :param regulated: The regulated of this PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures. + :type: str + """ + if regulated is not None and len(regulated) > 1: + raise ValueError("Invalid value for `regulated`, length must be less than or equal to `1`") + + self._regulated = regulated + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_payment_information_card.py b/CyberSource/models/pts_v2_payments_post201_response_payment_information_card.py new file mode 100644 index 00000000..f8ec0cf5 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_payment_information_card.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponsePaymentInformationCard(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'suffix': 'str' + } + + attribute_map = { + 'suffix': 'suffix' + } + + def __init__(self, suffix=None): + """ + PtsV2PaymentsPost201ResponsePaymentInformationCard - a model defined in Swagger + """ + + self._suffix = None + + if suffix is not None: + self.suffix = suffix + + @property + def suffix(self): + """ + Gets the suffix of this PtsV2PaymentsPost201ResponsePaymentInformationCard. + Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. + + :return: The suffix of this PtsV2PaymentsPost201ResponsePaymentInformationCard. + :rtype: str + """ + return self._suffix + + @suffix.setter + def suffix(self, suffix): + """ + Sets the suffix of this PtsV2PaymentsPost201ResponsePaymentInformationCard. + Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. + + :param suffix: The suffix of this PtsV2PaymentsPost201ResponsePaymentInformationCard. + :type: str + """ + if suffix is not None and len(suffix) > 4: + raise ValueError("Invalid value for `suffix`, length must be less than or equal to `4`") + + self._suffix = suffix + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponsePaymentInformationCard): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_payment_information_tokenized_card.py b/CyberSource/models/pts_v2_payments_post201_response_payment_information_tokenized_card.py new file mode 100644 index 00000000..91e0e4e4 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_payment_information_tokenized_card.py @@ -0,0 +1,307 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'prefix': 'str', + 'suffix': 'str', + 'type': 'str', + 'assurance_level': 'str', + 'expiration_month': 'str', + 'expiration_year': 'str', + 'requestor_id': 'str' + } + + attribute_map = { + 'prefix': 'prefix', + 'suffix': 'suffix', + 'type': 'type', + 'assurance_level': 'assuranceLevel', + 'expiration_month': 'expirationMonth', + 'expiration_year': 'expirationYear', + 'requestor_id': 'requestorId' + } + + def __init__(self, prefix=None, suffix=None, type=None, assurance_level=None, expiration_month=None, expiration_year=None, requestor_id=None): + """ + PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard - a model defined in Swagger + """ + + self._prefix = None + self._suffix = None + self._type = None + self._assurance_level = None + self._expiration_month = None + self._expiration_year = None + self._requestor_id = None + + if prefix is not None: + self.prefix = prefix + if suffix is not None: + self.suffix = suffix + if type is not None: + self.type = type + if assurance_level is not None: + self.assurance_level = assurance_level + if expiration_month is not None: + self.expiration_month = expiration_month + if expiration_year is not None: + self.expiration_year = expiration_year + if requestor_id is not None: + self.requestor_id = requestor_id + + @property + def prefix(self): + """ + Gets the prefix of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. + + :return: The prefix of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """ + Sets the prefix of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. + + :param prefix: The prefix of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :type: str + """ + if prefix is not None and len(prefix) > 6: + raise ValueError("Invalid value for `prefix`, length must be less than or equal to `6`") + + self._prefix = prefix + + @property + def suffix(self): + """ + Gets the suffix of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. + + :return: The suffix of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :rtype: str + """ + return self._suffix + + @suffix.setter + def suffix(self, suffix): + """ + Sets the suffix of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. + + :param suffix: The suffix of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :type: str + """ + if suffix is not None and len(suffix) > 4: + raise ValueError("Invalid value for `suffix`, length must be less than or equal to `4`") + + self._suffix = suffix + + @property + def type(self): + """ + Gets the type of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :return: The type of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :param type: The type of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :type: str + """ + if type is not None and len(type) > 3: + raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") + + self._type = type + + @property + def assurance_level(self): + """ + Gets the assurance_level of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. + + :return: The assurance_level of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :rtype: str + """ + return self._assurance_level + + @assurance_level.setter + def assurance_level(self, assurance_level): + """ + Sets the assurance_level of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. + + :param assurance_level: The assurance_level of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :type: str + """ + if assurance_level is not None and len(assurance_level) > 2: + raise ValueError("Invalid value for `assurance_level`, length must be less than or equal to `2`") + + self._assurance_level = assurance_level + + @property + def expiration_month(self): + """ + Gets the expiration_month of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. + + :return: The expiration_month of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :rtype: str + """ + return self._expiration_month + + @expiration_month.setter + def expiration_month(self, expiration_month): + """ + Sets the expiration_month of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. + + :param expiration_month: The expiration_month of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :type: str + """ + if expiration_month is not None and len(expiration_month) > 2: + raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") + + self._expiration_month = expiration_month + + @property + def expiration_year(self): + """ + Gets the expiration_year of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Four-digit year in which the payment network token expires. `Format: YYYY`. + + :return: The expiration_year of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :rtype: str + """ + return self._expiration_year + + @expiration_year.setter + def expiration_year(self, expiration_year): + """ + Sets the expiration_year of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Four-digit year in which the payment network token expires. `Format: YYYY`. + + :param expiration_year: The expiration_year of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :type: str + """ + if expiration_year is not None and len(expiration_year) > 4: + raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") + + self._expiration_year = expiration_year + + @property + def requestor_id(self): + """ + Gets the requestor_id of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. + + :return: The requestor_id of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :rtype: str + """ + return self._requestor_id + + @requestor_id.setter + def requestor_id(self, requestor_id): + """ + Sets the requestor_id of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. + + :param requestor_id: The requestor_id of this PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard. + :type: str + """ + if requestor_id is not None and len(requestor_id) > 11: + raise ValueError("Invalid value for `requestor_id`, length must be less than or equal to `11`") + + self._requestor_id = requestor_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_point_of_sale_information.py b/CyberSource/models/pts_v2_payments_post201_response_point_of_sale_information.py new file mode 100644 index 00000000..e439f068 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_point_of_sale_information.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponsePointOfSaleInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'emv': 'PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv', + 'amex_capn_data': 'str' + } + + attribute_map = { + 'emv': 'emv', + 'amex_capn_data': 'amexCapnData' + } + + def __init__(self, emv=None, amex_capn_data=None): + """ + PtsV2PaymentsPost201ResponsePointOfSaleInformation - a model defined in Swagger + """ + + self._emv = None + self._amex_capn_data = None + + if emv is not None: + self.emv = emv + if amex_capn_data is not None: + self.amex_capn_data = amex_capn_data + + @property + def emv(self): + """ + Gets the emv of this PtsV2PaymentsPost201ResponsePointOfSaleInformation. + + :return: The emv of this PtsV2PaymentsPost201ResponsePointOfSaleInformation. + :rtype: PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv + """ + return self._emv + + @emv.setter + def emv(self, emv): + """ + Sets the emv of this PtsV2PaymentsPost201ResponsePointOfSaleInformation. + + :param emv: The emv of this PtsV2PaymentsPost201ResponsePointOfSaleInformation. + :type: PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv + """ + + self._emv = emv + + @property + def amex_capn_data(self): + """ + Gets the amex_capn_data of this PtsV2PaymentsPost201ResponsePointOfSaleInformation. + Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. + + :return: The amex_capn_data of this PtsV2PaymentsPost201ResponsePointOfSaleInformation. + :rtype: str + """ + return self._amex_capn_data + + @amex_capn_data.setter + def amex_capn_data(self, amex_capn_data): + """ + Sets the amex_capn_data of this PtsV2PaymentsPost201ResponsePointOfSaleInformation. + Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. + + :param amex_capn_data: The amex_capn_data of this PtsV2PaymentsPost201ResponsePointOfSaleInformation. + :type: str + """ + if amex_capn_data is not None and len(amex_capn_data) > 12: + raise ValueError("Invalid value for `amex_capn_data`, length must be less than or equal to `12`") + + self._amex_capn_data = amex_capn_data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponsePointOfSaleInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_point_of_sale_information_emv.py b/CyberSource/models/pts_v2_payments_post201_response_point_of_sale_information_emv.py new file mode 100644 index 00000000..f1c8ee9e --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_point_of_sale_information_emv.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tags': 'str' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """ + PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv - a model defined in Swagger + """ + + self._tags = None + + if tags is not None: + self.tags = tags + + @property + def tags(self): + """ + Gets the tags of this PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv. + EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram + + :return: The tags of this PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv. + EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram + + :param tags: The tags of this PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv. + :type: str + """ + if tags is not None and len(tags) > 1998: + raise ValueError("Invalid value for `tags`, length must be less than or equal to `1998`") + + self._tags = tags + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_processor_information.py b/CyberSource/models/pts_v2_payments_post201_response_processor_information.py new file mode 100644 index 00000000..2f23a972 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_processor_information.py @@ -0,0 +1,813 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseProcessorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'approval_code': 'str', + 'transaction_id': 'str', + 'network_transaction_id': 'str', + 'provider_transaction_id': 'str', + 'response_code': 'str', + 'response_code_source': 'str', + 'response_details': 'str', + 'response_category_code': 'str', + 'forwarded_acquirer_code': 'str', + 'avs': 'PtsV2PaymentsPost201ResponseProcessorInformationAvs', + 'card_verification': 'PtsV2PaymentsPost201ResponseProcessorInformationCardVerification', + 'merchant_advice': 'PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice', + 'electronic_verification_results': 'PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults', + 'customer': 'PtsV2PaymentsPost201ResponseProcessorInformationCustomer', + 'consumer_authentication_response': 'PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse', + 'issuer': 'PtsV2PaymentsPost201ResponseProcessorInformationIssuer', + 'system_trace_audit_number': 'str', + 'payment_account_reference_number': 'str', + 'transaction_integrity_code': 'str', + 'amex_verbal_auth_reference_number': 'str', + 'sales_slip_number': 'float', + 'master_card_service_code': 'str', + 'master_card_service_reply_code': 'str', + 'master_card_authentication_type': 'str', + 'name': 'str' + } + + attribute_map = { + 'approval_code': 'approvalCode', + 'transaction_id': 'transactionId', + 'network_transaction_id': 'networkTransactionId', + 'provider_transaction_id': 'providerTransactionId', + 'response_code': 'responseCode', + 'response_code_source': 'responseCodeSource', + 'response_details': 'responseDetails', + 'response_category_code': 'responseCategoryCode', + 'forwarded_acquirer_code': 'forwardedAcquirerCode', + 'avs': 'avs', + 'card_verification': 'cardVerification', + 'merchant_advice': 'merchantAdvice', + 'electronic_verification_results': 'electronicVerificationResults', + 'customer': 'customer', + 'consumer_authentication_response': 'consumerAuthenticationResponse', + 'issuer': 'issuer', + 'system_trace_audit_number': 'systemTraceAuditNumber', + 'payment_account_reference_number': 'paymentAccountReferenceNumber', + 'transaction_integrity_code': 'transactionIntegrityCode', + 'amex_verbal_auth_reference_number': 'amexVerbalAuthReferenceNumber', + 'sales_slip_number': 'salesSlipNumber', + 'master_card_service_code': 'masterCardServiceCode', + 'master_card_service_reply_code': 'masterCardServiceReplyCode', + 'master_card_authentication_type': 'masterCardAuthenticationType', + 'name': 'name' + } + + def __init__(self, approval_code=None, transaction_id=None, network_transaction_id=None, provider_transaction_id=None, response_code=None, response_code_source=None, response_details=None, response_category_code=None, forwarded_acquirer_code=None, avs=None, card_verification=None, merchant_advice=None, electronic_verification_results=None, customer=None, consumer_authentication_response=None, issuer=None, system_trace_audit_number=None, payment_account_reference_number=None, transaction_integrity_code=None, amex_verbal_auth_reference_number=None, sales_slip_number=None, master_card_service_code=None, master_card_service_reply_code=None, master_card_authentication_type=None, name=None): + """ + PtsV2PaymentsPost201ResponseProcessorInformation - a model defined in Swagger + """ + + self._approval_code = None + self._transaction_id = None + self._network_transaction_id = None + self._provider_transaction_id = None + self._response_code = None + self._response_code_source = None + self._response_details = None + self._response_category_code = None + self._forwarded_acquirer_code = None + self._avs = None + self._card_verification = None + self._merchant_advice = None + self._electronic_verification_results = None + self._customer = None + self._consumer_authentication_response = None + self._issuer = None + self._system_trace_audit_number = None + self._payment_account_reference_number = None + self._transaction_integrity_code = None + self._amex_verbal_auth_reference_number = None + self._sales_slip_number = None + self._master_card_service_code = None + self._master_card_service_reply_code = None + self._master_card_authentication_type = None + self._name = None + + if approval_code is not None: + self.approval_code = approval_code + if transaction_id is not None: + self.transaction_id = transaction_id + if network_transaction_id is not None: + self.network_transaction_id = network_transaction_id + if provider_transaction_id is not None: + self.provider_transaction_id = provider_transaction_id + if response_code is not None: + self.response_code = response_code + if response_code_source is not None: + self.response_code_source = response_code_source + if response_details is not None: + self.response_details = response_details + if response_category_code is not None: + self.response_category_code = response_category_code + if forwarded_acquirer_code is not None: + self.forwarded_acquirer_code = forwarded_acquirer_code + if avs is not None: + self.avs = avs + if card_verification is not None: + self.card_verification = card_verification + if merchant_advice is not None: + self.merchant_advice = merchant_advice + if electronic_verification_results is not None: + self.electronic_verification_results = electronic_verification_results + if customer is not None: + self.customer = customer + if consumer_authentication_response is not None: + self.consumer_authentication_response = consumer_authentication_response + if issuer is not None: + self.issuer = issuer + if system_trace_audit_number is not None: + self.system_trace_audit_number = system_trace_audit_number + if payment_account_reference_number is not None: + self.payment_account_reference_number = payment_account_reference_number + if transaction_integrity_code is not None: + self.transaction_integrity_code = transaction_integrity_code + if amex_verbal_auth_reference_number is not None: + self.amex_verbal_auth_reference_number = amex_verbal_auth_reference_number + if sales_slip_number is not None: + self.sales_slip_number = sales_slip_number + if master_card_service_code is not None: + self.master_card_service_code = master_card_service_code + if master_card_service_reply_code is not None: + self.master_card_service_reply_code = master_card_service_reply_code + if master_card_authentication_type is not None: + self.master_card_authentication_type = master_card_authentication_type + if name is not None: + self.name = name + + @property + def approval_code(self): + """ + Gets the approval_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Authorization code. Returned only when the processor returns this value. + + :return: The approval_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._approval_code + + @approval_code.setter + def approval_code(self, approval_code): + """ + Sets the approval_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Authorization code. Returned only when the processor returns this value. + + :param approval_code: The approval_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + + self._approval_code = approval_code + + @property + def transaction_id(self): + """ + Gets the transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. + + :return: The transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._transaction_id + + @transaction_id.setter + def transaction_id(self, transaction_id): + """ + Sets the transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. + + :param transaction_id: The transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if transaction_id is not None and len(transaction_id) > 50: + raise ValueError("Invalid value for `transaction_id`, length must be less than or equal to `50`") + + self._transaction_id = transaction_id + + @property + def network_transaction_id(self): + """ + Gets the network_transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + Description of this field is not available. + + :return: The network_transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._network_transaction_id + + @network_transaction_id.setter + def network_transaction_id(self, network_transaction_id): + """ + Sets the network_transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + Description of this field is not available. + + :param network_transaction_id: The network_transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + + self._network_transaction_id = network_transaction_id + + @property + def provider_transaction_id(self): + """ + Gets the provider_transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + Description of this field is not available. + + :return: The provider_transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._provider_transaction_id + + @provider_transaction_id.setter + def provider_transaction_id(self, provider_transaction_id): + """ + Sets the provider_transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + Description of this field is not available. + + :param provider_transaction_id: The provider_transaction_id of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + + self._provider_transaction_id = provider_transaction_id + + @property + def response_code(self): + """ + Gets the response_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. + + :return: The response_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._response_code + + @response_code.setter + def response_code(self, response_code): + """ + Sets the response_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. + + :param response_code: The response_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if response_code is not None and len(response_code) > 10: + raise ValueError("Invalid value for `response_code`, length must be less than or equal to `10`") + + self._response_code = response_code + + @property + def response_code_source(self): + """ + Gets the response_code_source of this PtsV2PaymentsPost201ResponseProcessorInformation. + Used by Visa only and contains the response source/reason code that identifies the source of the response decision. + + :return: The response_code_source of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._response_code_source + + @response_code_source.setter + def response_code_source(self, response_code_source): + """ + Sets the response_code_source of this PtsV2PaymentsPost201ResponseProcessorInformation. + Used by Visa only and contains the response source/reason code that identifies the source of the response decision. + + :param response_code_source: The response_code_source of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if response_code_source is not None and len(response_code_source) > 1: + raise ValueError("Invalid value for `response_code_source`, length must be less than or equal to `1`") + + self._response_code_source = response_code_source + + @property + def response_details(self): + """ + Gets the response_details of this PtsV2PaymentsPost201ResponseProcessorInformation. + This field might contain information about a decline. This field is supported only for **CyberSource through VisaNet**. + + :return: The response_details of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._response_details + + @response_details.setter + def response_details(self, response_details): + """ + Sets the response_details of this PtsV2PaymentsPost201ResponseProcessorInformation. + This field might contain information about a decline. This field is supported only for **CyberSource through VisaNet**. + + :param response_details: The response_details of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if response_details is not None and len(response_details) > 255: + raise ValueError("Invalid value for `response_details`, length must be less than or equal to `255`") + + self._response_details = response_details + + @property + def response_category_code(self): + """ + Gets the response_category_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 + + :return: The response_category_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._response_category_code + + @response_category_code.setter + def response_category_code(self, response_category_code): + """ + Sets the response_category_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 + + :param response_category_code: The response_category_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if response_category_code is not None and len(response_category_code) > 32: + raise ValueError("Invalid value for `response_category_code`, length must be less than or equal to `32`") + + self._response_category_code = response_category_code + + @property + def forwarded_acquirer_code(self): + """ + Gets the forwarded_acquirer_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. + + :return: The forwarded_acquirer_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._forwarded_acquirer_code + + @forwarded_acquirer_code.setter + def forwarded_acquirer_code(self, forwarded_acquirer_code): + """ + Sets the forwarded_acquirer_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. + + :param forwarded_acquirer_code: The forwarded_acquirer_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if forwarded_acquirer_code is not None and len(forwarded_acquirer_code) > 32: + raise ValueError("Invalid value for `forwarded_acquirer_code`, length must be less than or equal to `32`") + + self._forwarded_acquirer_code = forwarded_acquirer_code + + @property + def avs(self): + """ + Gets the avs of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :return: The avs of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: PtsV2PaymentsPost201ResponseProcessorInformationAvs + """ + return self._avs + + @avs.setter + def avs(self, avs): + """ + Sets the avs of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :param avs: The avs of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: PtsV2PaymentsPost201ResponseProcessorInformationAvs + """ + + self._avs = avs + + @property + def card_verification(self): + """ + Gets the card_verification of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :return: The card_verification of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: PtsV2PaymentsPost201ResponseProcessorInformationCardVerification + """ + return self._card_verification + + @card_verification.setter + def card_verification(self, card_verification): + """ + Sets the card_verification of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :param card_verification: The card_verification of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: PtsV2PaymentsPost201ResponseProcessorInformationCardVerification + """ + + self._card_verification = card_verification + + @property + def merchant_advice(self): + """ + Gets the merchant_advice of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :return: The merchant_advice of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice + """ + return self._merchant_advice + + @merchant_advice.setter + def merchant_advice(self, merchant_advice): + """ + Sets the merchant_advice of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :param merchant_advice: The merchant_advice of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice + """ + + self._merchant_advice = merchant_advice + + @property + def electronic_verification_results(self): + """ + Gets the electronic_verification_results of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :return: The electronic_verification_results of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults + """ + return self._electronic_verification_results + + @electronic_verification_results.setter + def electronic_verification_results(self, electronic_verification_results): + """ + Sets the electronic_verification_results of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :param electronic_verification_results: The electronic_verification_results of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults + """ + + self._electronic_verification_results = electronic_verification_results + + @property + def customer(self): + """ + Gets the customer of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :return: The customer of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: PtsV2PaymentsPost201ResponseProcessorInformationCustomer + """ + return self._customer + + @customer.setter + def customer(self, customer): + """ + Sets the customer of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :param customer: The customer of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: PtsV2PaymentsPost201ResponseProcessorInformationCustomer + """ + + self._customer = customer + + @property + def consumer_authentication_response(self): + """ + Gets the consumer_authentication_response of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :return: The consumer_authentication_response of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse + """ + return self._consumer_authentication_response + + @consumer_authentication_response.setter + def consumer_authentication_response(self, consumer_authentication_response): + """ + Sets the consumer_authentication_response of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :param consumer_authentication_response: The consumer_authentication_response of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse + """ + + self._consumer_authentication_response = consumer_authentication_response + + @property + def issuer(self): + """ + Gets the issuer of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :return: The issuer of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: PtsV2PaymentsPost201ResponseProcessorInformationIssuer + """ + return self._issuer + + @issuer.setter + def issuer(self, issuer): + """ + Sets the issuer of this PtsV2PaymentsPost201ResponseProcessorInformation. + + :param issuer: The issuer of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: PtsV2PaymentsPost201ResponseProcessorInformationIssuer + """ + + self._issuer = issuer + + @property + def system_trace_audit_number(self): + """ + Gets the system_trace_audit_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. **American Express Direct** System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. **CyberSource through VisaNet** System trace number that must be printed on the customer’s receipt. + + :return: The system_trace_audit_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._system_trace_audit_number + + @system_trace_audit_number.setter + def system_trace_audit_number(self, system_trace_audit_number): + """ + Sets the system_trace_audit_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. **American Express Direct** System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. **CyberSource through VisaNet** System trace number that must be printed on the customer’s receipt. + + :param system_trace_audit_number: The system_trace_audit_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if system_trace_audit_number is not None and len(system_trace_audit_number) > 6: + raise ValueError("Invalid value for `system_trace_audit_number`, length must be less than or equal to `6`") + + self._system_trace_audit_number = system_trace_audit_number + + @property + def payment_account_reference_number(self): + """ + Gets the payment_account_reference_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + Visa-generated reference number that identifies a card-present transaction for which youprovided one of the following: - Visa primary account number (PAN) - Visa-generated token for a PAN This reference number serves as a link to the cardholder account and to all transactions for that account. + + :return: The payment_account_reference_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._payment_account_reference_number + + @payment_account_reference_number.setter + def payment_account_reference_number(self, payment_account_reference_number): + """ + Sets the payment_account_reference_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + Visa-generated reference number that identifies a card-present transaction for which youprovided one of the following: - Visa primary account number (PAN) - Visa-generated token for a PAN This reference number serves as a link to the cardholder account and to all transactions for that account. + + :param payment_account_reference_number: The payment_account_reference_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if payment_account_reference_number is not None and len(payment_account_reference_number) > 32: + raise ValueError("Invalid value for `payment_account_reference_number`, length must be less than or equal to `32`") + + self._payment_account_reference_number = payment_account_reference_number + + @property + def transaction_integrity_code(self): + """ + Gets the transaction_integrity_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - **A1**: EMV or token in a secure, trusted environment - **B1**: EMV or chip equivalent - **C1**: Magnetic stripe - **E1**: Key entered - **U0**: Unclassified For card-not-present transactions, possible values: - **A2**: Digital transactions - **B2**: Authenticated checkout - **C2**: Transaction validation - **D2**: Enhanced data - **E2**: Generic messaging - **U0**: Unclassified For information about these values, contact Mastercard or your acquirer. + + :return: The transaction_integrity_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._transaction_integrity_code + + @transaction_integrity_code.setter + def transaction_integrity_code(self, transaction_integrity_code): + """ + Sets the transaction_integrity_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - **A1**: EMV or token in a secure, trusted environment - **B1**: EMV or chip equivalent - **C1**: Magnetic stripe - **E1**: Key entered - **U0**: Unclassified For card-not-present transactions, possible values: - **A2**: Digital transactions - **B2**: Authenticated checkout - **C2**: Transaction validation - **D2**: Enhanced data - **E2**: Generic messaging - **U0**: Unclassified For information about these values, contact Mastercard or your acquirer. + + :param transaction_integrity_code: The transaction_integrity_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if transaction_integrity_code is not None and len(transaction_integrity_code) > 2: + raise ValueError("Invalid value for `transaction_integrity_code`, length must be less than or equal to `2`") + + self._transaction_integrity_code = transaction_integrity_code + + @property + def amex_verbal_auth_reference_number(self): + """ + Gets the amex_verbal_auth_reference_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + Referral response number for a verbal authorization with FDMS Nashville when using an American Express card. Give this number to American Express when you call them for the verbal authorization. + + :return: The amex_verbal_auth_reference_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._amex_verbal_auth_reference_number + + @amex_verbal_auth_reference_number.setter + def amex_verbal_auth_reference_number(self, amex_verbal_auth_reference_number): + """ + Sets the amex_verbal_auth_reference_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + Referral response number for a verbal authorization with FDMS Nashville when using an American Express card. Give this number to American Express when you call them for the verbal authorization. + + :param amex_verbal_auth_reference_number: The amex_verbal_auth_reference_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if amex_verbal_auth_reference_number is not None and len(amex_verbal_auth_reference_number) > 6: + raise ValueError("Invalid value for `amex_verbal_auth_reference_number`, length must be less than or equal to `6`") + + self._amex_verbal_auth_reference_number = amex_verbal_auth_reference_number + + @property + def sales_slip_number(self): + """ + Gets the sales_slip_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + Transaction identifier that CyberSource generates. You have the option of printing the sales slip number on the receipt. This field is supported only for **JCN Gateway**. + + :return: The sales_slip_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: float + """ + return self._sales_slip_number + + @sales_slip_number.setter + def sales_slip_number(self, sales_slip_number): + """ + Sets the sales_slip_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + Transaction identifier that CyberSource generates. You have the option of printing the sales slip number on the receipt. This field is supported only for **JCN Gateway**. + + :param sales_slip_number: The sales_slip_number of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: float + """ + if sales_slip_number is not None and sales_slip_number > 99999: + raise ValueError("Invalid value for `sales_slip_number`, must be a value less than or equal to `99999`") + + self._sales_slip_number = sales_slip_number + + @property + def master_card_service_code(self): + """ + Gets the master_card_service_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service + + :return: The master_card_service_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._master_card_service_code + + @master_card_service_code.setter + def master_card_service_code(self, master_card_service_code): + """ + Sets the master_card_service_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service + + :param master_card_service_code: The master_card_service_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if master_card_service_code is not None and len(master_card_service_code) > 2: + raise ValueError("Invalid value for `master_card_service_code`, length must be less than or equal to `2`") + + self._master_card_service_code = master_card_service_code + + @property + def master_card_service_reply_code(self): + """ + Gets the master_card_service_reply_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. + + :return: The master_card_service_reply_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._master_card_service_reply_code + + @master_card_service_reply_code.setter + def master_card_service_reply_code(self, master_card_service_reply_code): + """ + Sets the master_card_service_reply_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. + + :param master_card_service_reply_code: The master_card_service_reply_code of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if master_card_service_reply_code is not None and len(master_card_service_reply_code) > 1: + raise ValueError("Invalid value for `master_card_service_reply_code`, length must be less than or equal to `1`") + + self._master_card_service_reply_code = master_card_service_reply_code + + @property + def master_card_authentication_type(self): + """ + Gets the master_card_authentication_type of this PtsV2PaymentsPost201ResponseProcessorInformation. + Type of authentication for which the transaction qualifies as determined by the Mastercard authentication service, which confirms the identity of the cardholder. Mastercard provides this value to CyberSource. Possible values: - **1**: Transaction qualifies for Mastercard authentication type 1. - **2**: Transaction qualifies for Mastercard authentication type 2. + + :return: The master_card_authentication_type of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._master_card_authentication_type + + @master_card_authentication_type.setter + def master_card_authentication_type(self, master_card_authentication_type): + """ + Sets the master_card_authentication_type of this PtsV2PaymentsPost201ResponseProcessorInformation. + Type of authentication for which the transaction qualifies as determined by the Mastercard authentication service, which confirms the identity of the cardholder. Mastercard provides this value to CyberSource. Possible values: - **1**: Transaction qualifies for Mastercard authentication type 1. - **2**: Transaction qualifies for Mastercard authentication type 2. + + :param master_card_authentication_type: The master_card_authentication_type of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if master_card_authentication_type is not None and len(master_card_authentication_type) > 1: + raise ValueError("Invalid value for `master_card_authentication_type`, length must be less than or equal to `1`") + + self._master_card_authentication_type = master_card_authentication_type + + @property + def name(self): + """ + Gets the name of this PtsV2PaymentsPost201ResponseProcessorInformation. + Name of the Processor. + + :return: The name of this PtsV2PaymentsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this PtsV2PaymentsPost201ResponseProcessorInformation. + Name of the Processor. + + :param name: The name of this PtsV2PaymentsPost201ResponseProcessorInformation. + :type: str + """ + if name is not None and len(name) > 30: + raise ValueError("Invalid value for `name`, length must be less than or equal to `30`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseProcessorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_processor_information_avs.py b/CyberSource/models/pts_v2_payments_post201_response_processor_information_avs.py new file mode 100644 index 00000000..1bd3b274 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_processor_information_avs.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseProcessorInformationAvs(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'code_raw': 'str' + } + + attribute_map = { + 'code': 'code', + 'code_raw': 'codeRaw' + } + + def __init__(self, code=None, code_raw=None): + """ + PtsV2PaymentsPost201ResponseProcessorInformationAvs - a model defined in Swagger + """ + + self._code = None + self._code_raw = None + + if code is not None: + self.code = code + if code_raw is not None: + self.code_raw = code_raw + + @property + def code(self): + """ + Gets the code of this PtsV2PaymentsPost201ResponseProcessorInformationAvs. + AVS result code. + + :return: The code of this PtsV2PaymentsPost201ResponseProcessorInformationAvs. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this PtsV2PaymentsPost201ResponseProcessorInformationAvs. + AVS result code. + + :param code: The code of this PtsV2PaymentsPost201ResponseProcessorInformationAvs. + :type: str + """ + #if code is not None and len(code) > 1: + #raise ValueError("Invalid value for `code`, length must be less than or equal to `1`") + + self._code = code + + @property + def code_raw(self): + """ + Gets the code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationAvs. + AVS result code sent directly from the processor. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of AVS. Use for debugging purposes only. + + :return: The code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationAvs. + :rtype: str + """ + return self._code_raw + + @code_raw.setter + def code_raw(self, code_raw): + """ + Sets the code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationAvs. + AVS result code sent directly from the processor. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of AVS. Use for debugging purposes only. + + :param code_raw: The code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationAvs. + :type: str + """ + if code_raw is not None and len(code_raw) > 10: + raise ValueError("Invalid value for `code_raw`, length must be less than or equal to `10`") + + self._code_raw = code_raw + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseProcessorInformationAvs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_processor_information_card_verification.py b/CyberSource/models/pts_v2_payments_post201_response_processor_information_card_verification.py new file mode 100644 index 00000000..63f0c0a4 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_processor_information_card_verification.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseProcessorInformationCardVerification(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'result_code': 'str', + 'result_code_raw': 'str' + } + + attribute_map = { + 'result_code': 'resultCode', + 'result_code_raw': 'resultCodeRaw' + } + + def __init__(self, result_code=None, result_code_raw=None): + """ + PtsV2PaymentsPost201ResponseProcessorInformationCardVerification - a model defined in Swagger + """ + + self._result_code = None + self._result_code_raw = None + + if result_code is not None: + self.result_code = result_code + if result_code_raw is not None: + self.result_code_raw = result_code_raw + + @property + def result_code(self): + """ + Gets the result_code of this PtsV2PaymentsPost201ResponseProcessorInformationCardVerification. + CVN result code. + + :return: The result_code of this PtsV2PaymentsPost201ResponseProcessorInformationCardVerification. + :rtype: str + """ + return self._result_code + + @result_code.setter + def result_code(self, result_code): + """ + Sets the result_code of this PtsV2PaymentsPost201ResponseProcessorInformationCardVerification. + CVN result code. + + :param result_code: The result_code of this PtsV2PaymentsPost201ResponseProcessorInformationCardVerification. + :type: str + """ + if result_code is not None and len(result_code) > 1: + raise ValueError("Invalid value for `result_code`, length must be less than or equal to `1`") + + self._result_code = result_code + + @property + def result_code_raw(self): + """ + Gets the result_code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationCardVerification. + CVN result code sent directly from the processor. Returned only when the processor returns this value. `Important` Do not use this field to evaluate the result of card verification. Use for debugging purposes only. + + :return: The result_code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationCardVerification. + :rtype: str + """ + return self._result_code_raw + + @result_code_raw.setter + def result_code_raw(self, result_code_raw): + """ + Sets the result_code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationCardVerification. + CVN result code sent directly from the processor. Returned only when the processor returns this value. `Important` Do not use this field to evaluate the result of card verification. Use for debugging purposes only. + + :param result_code_raw: The result_code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationCardVerification. + :type: str + """ + if result_code_raw is not None and len(result_code_raw) > 10: + raise ValueError("Invalid value for `result_code_raw`, length must be less than or equal to `10`") + + self._result_code_raw = result_code_raw + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseProcessorInformationCardVerification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response.py b/CyberSource/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response.py new file mode 100644 index 00000000..0334f8df --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'code_raw': 'str' + } + + attribute_map = { + 'code': 'code', + 'code_raw': 'codeRaw' + } + + def __init__(self, code=None, code_raw=None): + """ + PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse - a model defined in Swagger + """ + + self._code = None + self._code_raw = None + + if code is not None: + self.code = code + if code_raw is not None: + self.code_raw = code_raw + + @property + def code(self): + """ + Gets the code of this PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse. + Mapped response code for Verified by Visa and American Express SafeKey: + + :return: The code of this PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse. + Mapped response code for Verified by Visa and American Express SafeKey: + + :param code: The code of this PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse. + :type: str + """ + if code is not None and len(code) > 3: + raise ValueError("Invalid value for `code`, length must be less than or equal to `3`") + + self._code = code + + @property + def code_raw(self): + """ + Gets the code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse. + Raw response code sent directly from the processor for Verified by Visa and American Express SafeKey: + + :return: The code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse. + :rtype: str + """ + return self._code_raw + + @code_raw.setter + def code_raw(self, code_raw): + """ + Sets the code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse. + Raw response code sent directly from the processor for Verified by Visa and American Express SafeKey: + + :param code_raw: The code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse. + :type: str + """ + if code_raw is not None and len(code_raw) > 3: + raise ValueError("Invalid value for `code_raw`, length must be less than or equal to `3`") + + self._code_raw = code_raw + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_processor_information_customer.py b/CyberSource/models/pts_v2_payments_post201_response_processor_information_customer.py new file mode 100644 index 00000000..9dae7b08 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_processor_information_customer.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseProcessorInformationCustomer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'personal_id_result': 'str' + } + + attribute_map = { + 'personal_id_result': 'personalIdResult' + } + + def __init__(self, personal_id_result=None): + """ + PtsV2PaymentsPost201ResponseProcessorInformationCustomer - a model defined in Swagger + """ + + self._personal_id_result = None + + if personal_id_result is not None: + self.personal_id_result = personal_id_result + + @property + def personal_id_result(self): + """ + Gets the personal_id_result of this PtsV2PaymentsPost201ResponseProcessorInformationCustomer. + Personal identifier result. This field is supported only for Redecard in Brazil for CyberSource Latin American Processing. If you included _buyerInformation.personalIdentification[].ID_ in the request, this value indicates whether or not _buyerInformation.personalIdentification[].ID_ matched a value in a record on file. Returned only when the personal ID result is returned by the processor. Possible values: - **Y**: Match - **N**: No match - **K**: Not supported - **U**: Unknown - **Z**: No response returned + + :return: The personal_id_result of this PtsV2PaymentsPost201ResponseProcessorInformationCustomer. + :rtype: str + """ + return self._personal_id_result + + @personal_id_result.setter + def personal_id_result(self, personal_id_result): + """ + Sets the personal_id_result of this PtsV2PaymentsPost201ResponseProcessorInformationCustomer. + Personal identifier result. This field is supported only for Redecard in Brazil for CyberSource Latin American Processing. If you included _buyerInformation.personalIdentification[].ID_ in the request, this value indicates whether or not _buyerInformation.personalIdentification[].ID_ matched a value in a record on file. Returned only when the personal ID result is returned by the processor. Possible values: - **Y**: Match - **N**: No match - **K**: Not supported - **U**: Unknown - **Z**: No response returned + + :param personal_id_result: The personal_id_result of this PtsV2PaymentsPost201ResponseProcessorInformationCustomer. + :type: str + """ + if personal_id_result is not None and len(personal_id_result) > 1: + raise ValueError("Invalid value for `personal_id_result`, length must be less than or equal to `1`") + + self._personal_id_result = personal_id_result + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseProcessorInformationCustomer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.py b/CyberSource/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.py new file mode 100644 index 00000000..5025be23 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.py @@ -0,0 +1,457 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'code_raw': 'str', + 'email': 'str', + 'email_raw': 'str', + 'phone_number': 'str', + 'phone_number_raw': 'str', + 'postal_code': 'str', + 'postal_code_raw': 'str', + 'street': 'str', + 'street_raw': 'str', + 'name': 'str', + 'name_raw': 'str' + } + + attribute_map = { + 'code': 'code', + 'code_raw': 'codeRaw', + 'email': 'email', + 'email_raw': 'emailRaw', + 'phone_number': 'phoneNumber', + 'phone_number_raw': 'phoneNumberRaw', + 'postal_code': 'postalCode', + 'postal_code_raw': 'postalCodeRaw', + 'street': 'street', + 'street_raw': 'streetRaw', + 'name': 'name', + 'name_raw': 'nameRaw' + } + + def __init__(self, code=None, code_raw=None, email=None, email_raw=None, phone_number=None, phone_number_raw=None, postal_code=None, postal_code_raw=None, street=None, street_raw=None, name=None, name_raw=None): + """ + PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults - a model defined in Swagger + """ + + self._code = None + self._code_raw = None + self._email = None + self._email_raw = None + self._phone_number = None + self._phone_number_raw = None + self._postal_code = None + self._postal_code_raw = None + self._street = None + self._street_raw = None + self._name = None + self._name_raw = None + + if code is not None: + self.code = code + if code_raw is not None: + self.code_raw = code_raw + if email is not None: + self.email = email + if email_raw is not None: + self.email_raw = email_raw + if phone_number is not None: + self.phone_number = phone_number + if phone_number_raw is not None: + self.phone_number_raw = phone_number_raw + if postal_code is not None: + self.postal_code = postal_code + if postal_code_raw is not None: + self.postal_code_raw = postal_code_raw + if street is not None: + self.street = street + if street_raw is not None: + self.street_raw = street_raw + if name is not None: + self.name = name + if name_raw is not None: + self.name_raw = name_raw + + @property + def code(self): + """ + Gets the code of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s name. + + :return: The code of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s name. + + :param code: The code of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if code is not None and len(code) > 1: + raise ValueError("Invalid value for `code`, length must be less than or equal to `1`") + + self._code = code + + @property + def code_raw(self): + """ + Gets the code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s last name + + :return: The code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._code_raw + + @code_raw.setter + def code_raw(self, code_raw): + """ + Sets the code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s last name + + :param code_raw: The code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if code_raw is not None and len(code_raw) > 1: + raise ValueError("Invalid value for `code_raw`, length must be less than or equal to `1`") + + self._code_raw = code_raw + + @property + def email(self): + """ + Gets the email of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s email address. + + :return: The email of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s email address. + + :param email: The email of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if email is not None and len(email) > 1: + raise ValueError("Invalid value for `email`, length must be less than or equal to `1`") + + self._email = email + + @property + def email_raw(self): + """ + Gets the email_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s email address. + + :return: The email_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._email_raw + + @email_raw.setter + def email_raw(self, email_raw): + """ + Sets the email_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s email address. + + :param email_raw: The email_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if email_raw is not None and len(email_raw) > 1: + raise ValueError("Invalid value for `email_raw`, length must be less than or equal to `1`") + + self._email_raw = email_raw + + @property + def phone_number(self): + """ + Gets the phone_number of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s phone number. + + :return: The phone_number of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s phone number. + + :param phone_number: The phone_number of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if phone_number is not None and len(phone_number) > 1: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `1`") + + self._phone_number = phone_number + + @property + def phone_number_raw(self): + """ + Gets the phone_number_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s phone number. + + :return: The phone_number_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._phone_number_raw + + @phone_number_raw.setter + def phone_number_raw(self, phone_number_raw): + """ + Sets the phone_number_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s phone number. + + :param phone_number_raw: The phone_number_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if phone_number_raw is not None and len(phone_number_raw) > 1: + raise ValueError("Invalid value for `phone_number_raw`, length must be less than or equal to `1`") + + self._phone_number_raw = phone_number_raw + + @property + def postal_code(self): + """ + Gets the postal_code of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s postal code. + + :return: The postal_code of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s postal code. + + :param postal_code: The postal_code of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if postal_code is not None and len(postal_code) > 1: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `1`") + + self._postal_code = postal_code + + @property + def postal_code_raw(self): + """ + Gets the postal_code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s postal code. + + :return: The postal_code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._postal_code_raw + + @postal_code_raw.setter + def postal_code_raw(self, postal_code_raw): + """ + Sets the postal_code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s postal code. + + :param postal_code_raw: The postal_code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if postal_code_raw is not None and len(postal_code_raw) > 1: + raise ValueError("Invalid value for `postal_code_raw`, length must be less than or equal to `1`") + + self._postal_code_raw = postal_code_raw + + @property + def street(self): + """ + Gets the street of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s street address. + + :return: The street of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._street + + @street.setter + def street(self, street): + """ + Sets the street of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s street address. + + :param street: The street of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if street is not None and len(street) > 1: + raise ValueError("Invalid value for `street`, length must be less than or equal to `1`") + + self._street = street + + @property + def street_raw(self): + """ + Gets the street_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s street address. + + :return: The street_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._street_raw + + @street_raw.setter + def street_raw(self, street_raw): + """ + Sets the street_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s street address. + + :param street_raw: The street_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if street_raw is not None and len(street_raw) > 1: + raise ValueError("Invalid value for `street_raw`, length must be less than or equal to `1`") + + self._street_raw = street_raw + + @property + def name(self): + """ + Gets the name of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + TODO + + :return: The name of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + TODO + + :param name: The name of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if name is not None and len(name) > 30: + raise ValueError("Invalid value for `name`, length must be less than or equal to `30`") + + self._name = name + + @property + def name_raw(self): + """ + Gets the name_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + TODO + + :return: The name_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._name_raw + + @name_raw.setter + def name_raw(self, name_raw): + """ + Sets the name_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + TODO + + :param name_raw: The name_raw of this PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if name_raw is not None and len(name_raw) > 30: + raise ValueError("Invalid value for `name_raw`, length must be less than or equal to `30`") + + self._name_raw = name_raw + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_processor_information_issuer.py b/CyberSource/models/pts_v2_payments_post201_response_processor_information_issuer.py new file mode 100644 index 00000000..e3c2f4b2 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_processor_information_issuer.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseProcessorInformationIssuer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'country': 'str', + 'discretionary_data': 'str' + } + + attribute_map = { + 'country': 'country', + 'discretionary_data': 'discretionaryData' + } + + def __init__(self, country=None, discretionary_data=None): + """ + PtsV2PaymentsPost201ResponseProcessorInformationIssuer - a model defined in Swagger + """ + + self._country = None + self._discretionary_data = None + + if country is not None: + self.country = country + if discretionary_data is not None: + self.discretionary_data = discretionary_data + + @property + def country(self): + """ + Gets the country of this PtsV2PaymentsPost201ResponseProcessorInformationIssuer. + Country in which the card was issued. This information enables you to determine whether the card was issued domestically or internationally. Use the two-character ISO Standard Country Codes. This field is supported for Visa, Mastercard, Discover, Diners Club, JCB, and Maestro (International) on Chase Paymentech Solutions. + + :return: The country of this PtsV2PaymentsPost201ResponseProcessorInformationIssuer. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this PtsV2PaymentsPost201ResponseProcessorInformationIssuer. + Country in which the card was issued. This information enables you to determine whether the card was issued domestically or internationally. Use the two-character ISO Standard Country Codes. This field is supported for Visa, Mastercard, Discover, Diners Club, JCB, and Maestro (International) on Chase Paymentech Solutions. + + :param country: The country of this PtsV2PaymentsPost201ResponseProcessorInformationIssuer. + :type: str + """ + if country is not None and len(country) > 3: + raise ValueError("Invalid value for `country`, length must be less than or equal to `3`") + + self._country = country + + @property + def discretionary_data(self): + """ + Gets the discretionary_data of this PtsV2PaymentsPost201ResponseProcessorInformationIssuer. + Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. + + :return: The discretionary_data of this PtsV2PaymentsPost201ResponseProcessorInformationIssuer. + :rtype: str + """ + return self._discretionary_data + + @discretionary_data.setter + def discretionary_data(self, discretionary_data): + """ + Sets the discretionary_data of this PtsV2PaymentsPost201ResponseProcessorInformationIssuer. + Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. + + :param discretionary_data: The discretionary_data of this PtsV2PaymentsPost201ResponseProcessorInformationIssuer. + :type: str + """ + if discretionary_data is not None and len(discretionary_data) > 255: + raise ValueError("Invalid value for `discretionary_data`, length must be less than or equal to `255`") + + self._discretionary_data = discretionary_data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseProcessorInformationIssuer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_processor_information_merchant_advice.py b/CyberSource/models/pts_v2_payments_post201_response_processor_information_merchant_advice.py new file mode 100644 index 00000000..756dd13e --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_processor_information_merchant_advice.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'code_raw': 'str' + } + + attribute_map = { + 'code': 'code', + 'code_raw': 'codeRaw' + } + + def __init__(self, code=None, code_raw=None): + """ + PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice - a model defined in Swagger + """ + + self._code = None + self._code_raw = None + + if code is not None: + self.code = code + if code_raw is not None: + self.code_raw = code_raw + + @property + def code(self): + """ + Gets the code of this PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice. + Reason the recurring payment transaction was declined. For some processors, this field is used only for Mastercard. For other processors, this field is used for Visa and Mastercard. And for other processors, this field is not implemented. Possible values: - **00**: Response not provided. - **01**: New account information is available. Obtain the new information. - **02**: Try again later. - **03**: Do not try again. Obtain another type of payment from the customer. - **04**: Problem with a token or a partial shipment indicator. - **21**: Recurring payment cancellation service. - **99**: An unknown value was returned from the processor. + + :return: The code of this PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice. + Reason the recurring payment transaction was declined. For some processors, this field is used only for Mastercard. For other processors, this field is used for Visa and Mastercard. And for other processors, this field is not implemented. Possible values: - **00**: Response not provided. - **01**: New account information is available. Obtain the new information. - **02**: Try again later. - **03**: Do not try again. Obtain another type of payment from the customer. - **04**: Problem with a token or a partial shipment indicator. - **21**: Recurring payment cancellation service. - **99**: An unknown value was returned from the processor. + + :param code: The code of this PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice. + :type: str + """ + if code is not None and len(code) > 2: + raise ValueError("Invalid value for `code`, length must be less than or equal to `2`") + + self._code = code + + @property + def code_raw(self): + """ + Gets the code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice. + Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. For processor-specific information, see the auth_merchant_advice_code_raw field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice. + :rtype: str + """ + return self._code_raw + + @code_raw.setter + def code_raw(self, code_raw): + """ + Sets the code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice. + Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. For processor-specific information, see the auth_merchant_advice_code_raw field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param code_raw: The code_raw of this PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice. + :type: str + """ + if code_raw is not None and len(code_raw) > 2: + raise ValueError("Invalid value for `code_raw`, length must be less than or equal to `2`") + + self._code_raw = code_raw + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post400_response.py b/CyberSource/models/pts_v2_payments_post400_response.py new file mode 100644 index 00000000..c4cff50b --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post400_response.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost400Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'submit_time_utc': 'str', + 'status': 'str', + 'reason': 'str', + 'message': 'str', + 'details': 'list[PtsV2PaymentsPost201ResponseErrorInformationDetails]' + } + + attribute_map = { + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reason': 'reason', + 'message': 'message', + 'details': 'details' + } + + def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): + """ + PtsV2PaymentsPost400Response - a model defined in Swagger + """ + + self._submit_time_utc = None + self._status = None + self._reason = None + self._message = None + self._details = None + + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + if details is not None: + self.details = details + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsPost400Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsPost400Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsPost400Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsPost400Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsPost400Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsPost400Response. + :type: str + """ + allowed_values = ["INVALID_REQUEST"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsPost400Response. + The reason of the status. + + :return: The reason of this PtsV2PaymentsPost400Response. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsPost400Response. + The reason of the status. + + :param reason: The reason of this PtsV2PaymentsPost400Response. + :type: str + """ + allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_CARD", "CARD_TYPE_NOT_ACCEPTED", "INVALID_MERCHANT_CONFIGURATION", "PROCESSOR_UNAVAILABLE", "INVALID_AMOUNT", "INVALID_CARD_TYPE", "DEBIT_CARD_USEAGE_EXCEEDD_LIMIT"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsPost400Response. + The detail message related to the status and reason listed above. + + :return: The message of this PtsV2PaymentsPost400Response. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsPost400Response. + The detail message related to the status and reason listed above. + + :param message: The message of this PtsV2PaymentsPost400Response. + :type: str + """ + + self._message = message + + @property + def details(self): + """ + Gets the details of this PtsV2PaymentsPost400Response. + + :return: The details of this PtsV2PaymentsPost400Response. + :rtype: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this PtsV2PaymentsPost400Response. + + :param details: The details of this PtsV2PaymentsPost400Response. + :type: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + + self._details = details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost400Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post502_response.py b/CyberSource/models/pts_v2_payments_post502_response.py new file mode 100644 index 00000000..b96acc9b --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post502_response.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost502Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'submit_time_utc': 'str', + 'status': 'str', + 'reason': 'str', + 'message': 'str' + } + + attribute_map = { + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reason': 'reason', + 'message': 'message' + } + + def __init__(self, submit_time_utc=None, status=None, reason=None, message=None): + """ + PtsV2PaymentsPost502Response - a model defined in Swagger + """ + + self._submit_time_utc = None + self._status = None + self._reason = None + self._message = None + + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsPost502Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsPost502Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsPost502Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsPost502Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsPost502Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsPost502Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsPost502Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsPost502Response. + :type: str + """ + allowed_values = ["SERVER_ERROR"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsPost502Response. + The reason of the status. + + :return: The reason of this PtsV2PaymentsPost502Response. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsPost502Response. + The reason of the status. + + :param reason: The reason of this PtsV2PaymentsPost502Response. + :type: str + """ + allowed_values = ["SYSTEM_ERROR", "SERVER_TIMEOUT", "SERVICE_TIMEOUT", "PROCESSOR_TIMEOUT"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsPost502Response. + The detail message related to the status and reason listed above. + + :return: The message of this PtsV2PaymentsPost502Response. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsPost502Response. + The detail message related to the status and reason listed above. + + :param message: The message of this PtsV2PaymentsPost502Response. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost502Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_refund_post201_response.py b/CyberSource/models/pts_v2_payments_refund_post201_response.py new file mode 100644 index 00000000..4131effc --- /dev/null +++ b/CyberSource/models/pts_v2_payments_refund_post201_response.py @@ -0,0 +1,349 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsRefundPost201Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'PtsV2PaymentsRefundPost201ResponseLinks', + 'id': 'str', + 'submit_time_utc': 'str', + 'status': 'str', + 'reconciliation_id': 'str', + 'client_reference_information': 'PtsV2PaymentsPost201ResponseClientReferenceInformation', + 'refund_amount_details': 'PtsV2PaymentsRefundPost201ResponseRefundAmountDetails', + 'processor_information': 'PtsV2PaymentsRefundPost201ResponseProcessorInformation', + 'order_information': 'PtsV2PaymentsRefundPost201ResponseOrderInformation' + } + + attribute_map = { + 'links': '_links', + 'id': 'id', + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reconciliation_id': 'reconciliationId', + 'client_reference_information': 'clientReferenceInformation', + 'refund_amount_details': 'refundAmountDetails', + 'processor_information': 'processorInformation', + 'order_information': 'orderInformation' + } + + def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, refund_amount_details=None, processor_information=None, order_information=None): + """ + PtsV2PaymentsRefundPost201Response - a model defined in Swagger + """ + + self._links = None + self._id = None + self._submit_time_utc = None + self._status = None + self._reconciliation_id = None + self._client_reference_information = None + self._refund_amount_details = None + self._processor_information = None + self._order_information = None + + if links is not None: + self.links = links + if id is not None: + self.id = id + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if client_reference_information is not None: + self.client_reference_information = client_reference_information + if refund_amount_details is not None: + self.refund_amount_details = refund_amount_details + if processor_information is not None: + self.processor_information = processor_information + if order_information is not None: + self.order_information = order_information + + @property + def links(self): + """ + Gets the links of this PtsV2PaymentsRefundPost201Response. + + :return: The links of this PtsV2PaymentsRefundPost201Response. + :rtype: PtsV2PaymentsRefundPost201ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this PtsV2PaymentsRefundPost201Response. + + :param links: The links of this PtsV2PaymentsRefundPost201Response. + :type: PtsV2PaymentsRefundPost201ResponseLinks + """ + + self._links = links + + @property + def id(self): + """ + Gets the id of this PtsV2PaymentsRefundPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :return: The id of this PtsV2PaymentsRefundPost201Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this PtsV2PaymentsRefundPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :param id: The id of this PtsV2PaymentsRefundPost201Response. + :type: str + """ + if id is not None and len(id) > 26: + raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") + + self._id = id + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsRefundPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsRefundPost201Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsRefundPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsRefundPost201Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsRefundPost201Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsRefundPost201Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsRefundPost201Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsRefundPost201Response. + :type: str + """ + allowed_values = ["PENDING"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this PtsV2PaymentsRefundPost201Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :return: The reconciliation_id of this PtsV2PaymentsRefundPost201Response. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this PtsV2PaymentsRefundPost201Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :param reconciliation_id: The reconciliation_id of this PtsV2PaymentsRefundPost201Response. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def client_reference_information(self): + """ + Gets the client_reference_information of this PtsV2PaymentsRefundPost201Response. + + :return: The client_reference_information of this PtsV2PaymentsRefundPost201Response. + :rtype: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + return self._client_reference_information + + @client_reference_information.setter + def client_reference_information(self, client_reference_information): + """ + Sets the client_reference_information of this PtsV2PaymentsRefundPost201Response. + + :param client_reference_information: The client_reference_information of this PtsV2PaymentsRefundPost201Response. + :type: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + + self._client_reference_information = client_reference_information + + @property + def refund_amount_details(self): + """ + Gets the refund_amount_details of this PtsV2PaymentsRefundPost201Response. + + :return: The refund_amount_details of this PtsV2PaymentsRefundPost201Response. + :rtype: PtsV2PaymentsRefundPost201ResponseRefundAmountDetails + """ + return self._refund_amount_details + + @refund_amount_details.setter + def refund_amount_details(self, refund_amount_details): + """ + Sets the refund_amount_details of this PtsV2PaymentsRefundPost201Response. + + :param refund_amount_details: The refund_amount_details of this PtsV2PaymentsRefundPost201Response. + :type: PtsV2PaymentsRefundPost201ResponseRefundAmountDetails + """ + + self._refund_amount_details = refund_amount_details + + @property + def processor_information(self): + """ + Gets the processor_information of this PtsV2PaymentsRefundPost201Response. + + :return: The processor_information of this PtsV2PaymentsRefundPost201Response. + :rtype: PtsV2PaymentsRefundPost201ResponseProcessorInformation + """ + return self._processor_information + + @processor_information.setter + def processor_information(self, processor_information): + """ + Sets the processor_information of this PtsV2PaymentsRefundPost201Response. + + :param processor_information: The processor_information of this PtsV2PaymentsRefundPost201Response. + :type: PtsV2PaymentsRefundPost201ResponseProcessorInformation + """ + + self._processor_information = processor_information + + @property + def order_information(self): + """ + Gets the order_information of this PtsV2PaymentsRefundPost201Response. + + :return: The order_information of this PtsV2PaymentsRefundPost201Response. + :rtype: PtsV2PaymentsRefundPost201ResponseOrderInformation + """ + return self._order_information + + @order_information.setter + def order_information(self, order_information): + """ + Sets the order_information of this PtsV2PaymentsRefundPost201Response. + + :param order_information: The order_information of this PtsV2PaymentsRefundPost201Response. + :type: PtsV2PaymentsRefundPost201ResponseOrderInformation + """ + + self._order_information = order_information + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsRefundPost201Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_refund_post201_response__links.py b/CyberSource/models/pts_v2_payments_refund_post201_response__links.py new file mode 100644 index 00000000..8631c7c4 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_refund_post201_response__links.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsRefundPost201ResponseLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + '_self': 'PtsV2PaymentsPost201ResponseLinksSelf', + 'void': 'PtsV2PaymentsPost201ResponseLinksSelf' + } + + attribute_map = { + '_self': 'self', + 'void': 'void' + } + + def __init__(self, _self=None, void=None): + """ + PtsV2PaymentsRefundPost201ResponseLinks - a model defined in Swagger + """ + + self.__self = None + self._void = None + + if _self is not None: + self._self = _self + if void is not None: + self.void = void + + @property + def _self(self): + """ + Gets the _self of this PtsV2PaymentsRefundPost201ResponseLinks. + + :return: The _self of this PtsV2PaymentsRefundPost201ResponseLinks. + :rtype: PtsV2PaymentsPost201ResponseLinksSelf + """ + return self.__self + + @_self.setter + def _self(self, _self): + """ + Sets the _self of this PtsV2PaymentsRefundPost201ResponseLinks. + + :param _self: The _self of this PtsV2PaymentsRefundPost201ResponseLinks. + :type: PtsV2PaymentsPost201ResponseLinksSelf + """ + + self.__self = _self + + @property + def void(self): + """ + Gets the void of this PtsV2PaymentsRefundPost201ResponseLinks. + + :return: The void of this PtsV2PaymentsRefundPost201ResponseLinks. + :rtype: PtsV2PaymentsPost201ResponseLinksSelf + """ + return self._void + + @void.setter + def void(self, void): + """ + Sets the void of this PtsV2PaymentsRefundPost201ResponseLinks. + + :param void: The void of this PtsV2PaymentsRefundPost201ResponseLinks. + :type: PtsV2PaymentsPost201ResponseLinksSelf + """ + + self._void = void + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsRefundPost201ResponseLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_refund_post201_response_order_information.py b/CyberSource/models/pts_v2_payments_refund_post201_response_order_information.py new file mode 100644 index 00000000..e8d72932 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_refund_post201_response_order_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsRefundPost201ResponseOrderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'invoice_details': 'PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails' + } + + attribute_map = { + 'invoice_details': 'invoiceDetails' + } + + def __init__(self, invoice_details=None): + """ + PtsV2PaymentsRefundPost201ResponseOrderInformation - a model defined in Swagger + """ + + self._invoice_details = None + + if invoice_details is not None: + self.invoice_details = invoice_details + + @property + def invoice_details(self): + """ + Gets the invoice_details of this PtsV2PaymentsRefundPost201ResponseOrderInformation. + + :return: The invoice_details of this PtsV2PaymentsRefundPost201ResponseOrderInformation. + :rtype: PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails + """ + return self._invoice_details + + @invoice_details.setter + def invoice_details(self, invoice_details): + """ + Sets the invoice_details of this PtsV2PaymentsRefundPost201ResponseOrderInformation. + + :param invoice_details: The invoice_details of this PtsV2PaymentsRefundPost201ResponseOrderInformation. + :type: PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails + """ + + self._invoice_details = invoice_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsRefundPost201ResponseOrderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_refund_post201_response_processor_information.py b/CyberSource/models/pts_v2_payments_refund_post201_response_processor_information.py new file mode 100644 index 00000000..bf788d6a --- /dev/null +++ b/CyberSource/models/pts_v2_payments_refund_post201_response_processor_information.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsRefundPost201ResponseProcessorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'transaction_id': 'str', + 'forwarded_acquirer_code': 'str' + } + + attribute_map = { + 'transaction_id': 'transactionId', + 'forwarded_acquirer_code': 'forwardedAcquirerCode' + } + + def __init__(self, transaction_id=None, forwarded_acquirer_code=None): + """ + PtsV2PaymentsRefundPost201ResponseProcessorInformation - a model defined in Swagger + """ + + self._transaction_id = None + self._forwarded_acquirer_code = None + + if transaction_id is not None: + self.transaction_id = transaction_id + if forwarded_acquirer_code is not None: + self.forwarded_acquirer_code = forwarded_acquirer_code + + @property + def transaction_id(self): + """ + Gets the transaction_id of this PtsV2PaymentsRefundPost201ResponseProcessorInformation. + Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 + + :return: The transaction_id of this PtsV2PaymentsRefundPost201ResponseProcessorInformation. + :rtype: str + """ + return self._transaction_id + + @transaction_id.setter + def transaction_id(self, transaction_id): + """ + Sets the transaction_id of this PtsV2PaymentsRefundPost201ResponseProcessorInformation. + Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 + + :param transaction_id: The transaction_id of this PtsV2PaymentsRefundPost201ResponseProcessorInformation. + :type: str + """ + if transaction_id is not None and len(transaction_id) > 18: + raise ValueError("Invalid value for `transaction_id`, length must be less than or equal to `18`") + + self._transaction_id = transaction_id + + @property + def forwarded_acquirer_code(self): + """ + Gets the forwarded_acquirer_code of this PtsV2PaymentsRefundPost201ResponseProcessorInformation. + Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. + + :return: The forwarded_acquirer_code of this PtsV2PaymentsRefundPost201ResponseProcessorInformation. + :rtype: str + """ + return self._forwarded_acquirer_code + + @forwarded_acquirer_code.setter + def forwarded_acquirer_code(self, forwarded_acquirer_code): + """ + Sets the forwarded_acquirer_code of this PtsV2PaymentsRefundPost201ResponseProcessorInformation. + Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. + + :param forwarded_acquirer_code: The forwarded_acquirer_code of this PtsV2PaymentsRefundPost201ResponseProcessorInformation. + :type: str + """ + if forwarded_acquirer_code is not None and len(forwarded_acquirer_code) > 32: + raise ValueError("Invalid value for `forwarded_acquirer_code`, length must be less than or equal to `32`") + + self._forwarded_acquirer_code = forwarded_acquirer_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsRefundPost201ResponseProcessorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_refund_post201_response_refund_amount_details.py b/CyberSource/models/pts_v2_payments_refund_post201_response_refund_amount_details.py new file mode 100644 index 00000000..a74d9467 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_refund_post201_response_refund_amount_details.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsRefundPost201ResponseRefundAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'refund_amount': 'str', + 'currency': 'str' + } + + attribute_map = { + 'refund_amount': 'refundAmount', + 'currency': 'currency' + } + + def __init__(self, refund_amount=None, currency=None): + """ + PtsV2PaymentsRefundPost201ResponseRefundAmountDetails - a model defined in Swagger + """ + + self._refund_amount = None + self._currency = None + + if refund_amount is not None: + self.refund_amount = refund_amount + if currency is not None: + self.currency = currency + + @property + def refund_amount(self): + """ + Gets the refund_amount of this PtsV2PaymentsRefundPost201ResponseRefundAmountDetails. + Total amount of the refund. + + :return: The refund_amount of this PtsV2PaymentsRefundPost201ResponseRefundAmountDetails. + :rtype: str + """ + return self._refund_amount + + @refund_amount.setter + def refund_amount(self, refund_amount): + """ + Sets the refund_amount of this PtsV2PaymentsRefundPost201ResponseRefundAmountDetails. + Total amount of the refund. + + :param refund_amount: The refund_amount of this PtsV2PaymentsRefundPost201ResponseRefundAmountDetails. + :type: str + """ + if refund_amount is not None and len(refund_amount) > 15: + raise ValueError("Invalid value for `refund_amount`, length must be less than or equal to `15`") + + self._refund_amount = refund_amount + + @property + def currency(self): + """ + Gets the currency of this PtsV2PaymentsRefundPost201ResponseRefundAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this PtsV2PaymentsRefundPost201ResponseRefundAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this PtsV2PaymentsRefundPost201ResponseRefundAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this PtsV2PaymentsRefundPost201ResponseRefundAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsRefundPost201ResponseRefundAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_refund_post400_response.py b/CyberSource/models/pts_v2_payments_refund_post400_response.py new file mode 100644 index 00000000..8053eb56 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_refund_post400_response.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsRefundPost400Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'submit_time_utc': 'str', + 'status': 'str', + 'reason': 'str', + 'message': 'str', + 'details': 'list[PtsV2PaymentsPost201ResponseErrorInformationDetails]' + } + + attribute_map = { + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reason': 'reason', + 'message': 'message', + 'details': 'details' + } + + def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): + """ + PtsV2PaymentsRefundPost400Response - a model defined in Swagger + """ + + self._submit_time_utc = None + self._status = None + self._reason = None + self._message = None + self._details = None + + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + if details is not None: + self.details = details + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsRefundPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsRefundPost400Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsRefundPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsRefundPost400Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsRefundPost400Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsRefundPost400Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsRefundPost400Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsRefundPost400Response. + :type: str + """ + allowed_values = ["INVALID_REQUEST"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsRefundPost400Response. + The reason of the status. + + :return: The reason of this PtsV2PaymentsRefundPost400Response. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsRefundPost400Response. + The reason of the status. + + :param reason: The reason of this PtsV2PaymentsRefundPost400Response. + :type: str + """ + allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_CARD", "INVALID_MERCHANT_CONFIGURATION", "CAPTURE_ALREADY_VOIDED", "ACCOUNT_NOT_ALLOWED_CREDIT"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsRefundPost400Response. + The detail message related to the status and reason listed above. + + :return: The message of this PtsV2PaymentsRefundPost400Response. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsRefundPost400Response. + The detail message related to the status and reason listed above. + + :param message: The message of this PtsV2PaymentsRefundPost400Response. + :type: str + """ + + self._message = message + + @property + def details(self): + """ + Gets the details of this PtsV2PaymentsRefundPost400Response. + + :return: The details of this PtsV2PaymentsRefundPost400Response. + :rtype: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this PtsV2PaymentsRefundPost400Response. + + :param details: The details of this PtsV2PaymentsRefundPost400Response. + :type: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + + self._details = details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsRefundPost400Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_reversals_post201_response.py b/CyberSource/models/pts_v2_payments_reversals_post201_response.py new file mode 100644 index 00000000..125f2b04 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_reversals_post201_response.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsReversalsPost201Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'PtsV2PaymentsReversalsPost201ResponseLinks', + 'id': 'str', + 'submit_time_utc': 'str', + 'status': 'str', + 'reconciliation_id': 'str', + 'client_reference_information': 'PtsV2PaymentsPost201ResponseClientReferenceInformation', + 'reversal_amount_details': 'PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails', + 'processor_information': 'PtsV2PaymentsReversalsPost201ResponseProcessorInformation', + 'authorization_information': 'PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation', + 'point_of_sale_information': 'Ptsv2paymentsidreversalsPointOfSaleInformation' + } + + attribute_map = { + 'links': '_links', + 'id': 'id', + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reconciliation_id': 'reconciliationId', + 'client_reference_information': 'clientReferenceInformation', + 'reversal_amount_details': 'reversalAmountDetails', + 'processor_information': 'processorInformation', + 'authorization_information': 'authorizationInformation', + 'point_of_sale_information': 'pointOfSaleInformation' + } + + def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, client_reference_information=None, reversal_amount_details=None, processor_information=None, authorization_information=None, point_of_sale_information=None): + """ + PtsV2PaymentsReversalsPost201Response - a model defined in Swagger + """ + + self._links = None + self._id = None + self._submit_time_utc = None + self._status = None + self._reconciliation_id = None + self._client_reference_information = None + self._reversal_amount_details = None + self._processor_information = None + self._authorization_information = None + self._point_of_sale_information = None + + if links is not None: + self.links = links + if id is not None: + self.id = id + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if client_reference_information is not None: + self.client_reference_information = client_reference_information + if reversal_amount_details is not None: + self.reversal_amount_details = reversal_amount_details + if processor_information is not None: + self.processor_information = processor_information + if authorization_information is not None: + self.authorization_information = authorization_information + if point_of_sale_information is not None: + self.point_of_sale_information = point_of_sale_information + + @property + def links(self): + """ + Gets the links of this PtsV2PaymentsReversalsPost201Response. + + :return: The links of this PtsV2PaymentsReversalsPost201Response. + :rtype: PtsV2PaymentsReversalsPost201ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this PtsV2PaymentsReversalsPost201Response. + + :param links: The links of this PtsV2PaymentsReversalsPost201Response. + :type: PtsV2PaymentsReversalsPost201ResponseLinks + """ + + self._links = links + + @property + def id(self): + """ + Gets the id of this PtsV2PaymentsReversalsPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :return: The id of this PtsV2PaymentsReversalsPost201Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this PtsV2PaymentsReversalsPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :param id: The id of this PtsV2PaymentsReversalsPost201Response. + :type: str + """ + if id is not None and len(id) > 26: + raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") + + self._id = id + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsReversalsPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsReversalsPost201Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsReversalsPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsReversalsPost201Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsReversalsPost201Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsReversalsPost201Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsReversalsPost201Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsReversalsPost201Response. + :type: str + """ + allowed_values = ["REVERSED"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this PtsV2PaymentsReversalsPost201Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :return: The reconciliation_id of this PtsV2PaymentsReversalsPost201Response. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this PtsV2PaymentsReversalsPost201Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :param reconciliation_id: The reconciliation_id of this PtsV2PaymentsReversalsPost201Response. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def client_reference_information(self): + """ + Gets the client_reference_information of this PtsV2PaymentsReversalsPost201Response. + + :return: The client_reference_information of this PtsV2PaymentsReversalsPost201Response. + :rtype: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + return self._client_reference_information + + @client_reference_information.setter + def client_reference_information(self, client_reference_information): + """ + Sets the client_reference_information of this PtsV2PaymentsReversalsPost201Response. + + :param client_reference_information: The client_reference_information of this PtsV2PaymentsReversalsPost201Response. + :type: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + + self._client_reference_information = client_reference_information + + @property + def reversal_amount_details(self): + """ + Gets the reversal_amount_details of this PtsV2PaymentsReversalsPost201Response. + + :return: The reversal_amount_details of this PtsV2PaymentsReversalsPost201Response. + :rtype: PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails + """ + return self._reversal_amount_details + + @reversal_amount_details.setter + def reversal_amount_details(self, reversal_amount_details): + """ + Sets the reversal_amount_details of this PtsV2PaymentsReversalsPost201Response. + + :param reversal_amount_details: The reversal_amount_details of this PtsV2PaymentsReversalsPost201Response. + :type: PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails + """ + + self._reversal_amount_details = reversal_amount_details + + @property + def processor_information(self): + """ + Gets the processor_information of this PtsV2PaymentsReversalsPost201Response. + + :return: The processor_information of this PtsV2PaymentsReversalsPost201Response. + :rtype: PtsV2PaymentsReversalsPost201ResponseProcessorInformation + """ + return self._processor_information + + @processor_information.setter + def processor_information(self, processor_information): + """ + Sets the processor_information of this PtsV2PaymentsReversalsPost201Response. + + :param processor_information: The processor_information of this PtsV2PaymentsReversalsPost201Response. + :type: PtsV2PaymentsReversalsPost201ResponseProcessorInformation + """ + + self._processor_information = processor_information + + @property + def authorization_information(self): + """ + Gets the authorization_information of this PtsV2PaymentsReversalsPost201Response. + + :return: The authorization_information of this PtsV2PaymentsReversalsPost201Response. + :rtype: PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation + """ + return self._authorization_information + + @authorization_information.setter + def authorization_information(self, authorization_information): + """ + Sets the authorization_information of this PtsV2PaymentsReversalsPost201Response. + + :param authorization_information: The authorization_information of this PtsV2PaymentsReversalsPost201Response. + :type: PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation + """ + + self._authorization_information = authorization_information + + @property + def point_of_sale_information(self): + """ + Gets the point_of_sale_information of this PtsV2PaymentsReversalsPost201Response. + + :return: The point_of_sale_information of this PtsV2PaymentsReversalsPost201Response. + :rtype: Ptsv2paymentsidreversalsPointOfSaleInformation + """ + return self._point_of_sale_information + + @point_of_sale_information.setter + def point_of_sale_information(self, point_of_sale_information): + """ + Sets the point_of_sale_information of this PtsV2PaymentsReversalsPost201Response. + + :param point_of_sale_information: The point_of_sale_information of this PtsV2PaymentsReversalsPost201Response. + :type: Ptsv2paymentsidreversalsPointOfSaleInformation + """ + + self._point_of_sale_information = point_of_sale_information + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsReversalsPost201Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_reversals_post201_response__links.py b/CyberSource/models/pts_v2_payments_reversals_post201_response__links.py new file mode 100644 index 00000000..6db98de8 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_reversals_post201_response__links.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsReversalsPost201ResponseLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + '_self': 'PtsV2PaymentsPost201ResponseLinksSelf' + } + + attribute_map = { + '_self': 'self' + } + + def __init__(self, _self=None): + """ + PtsV2PaymentsReversalsPost201ResponseLinks - a model defined in Swagger + """ + + self.__self = None + + if _self is not None: + self._self = _self + + @property + def _self(self): + """ + Gets the _self of this PtsV2PaymentsReversalsPost201ResponseLinks. + + :return: The _self of this PtsV2PaymentsReversalsPost201ResponseLinks. + :rtype: PtsV2PaymentsPost201ResponseLinksSelf + """ + return self.__self + + @_self.setter + def _self(self, _self): + """ + Sets the _self of this PtsV2PaymentsReversalsPost201ResponseLinks. + + :param _self: The _self of this PtsV2PaymentsReversalsPost201ResponseLinks. + :type: PtsV2PaymentsPost201ResponseLinksSelf + """ + + self.__self = _self + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsReversalsPost201ResponseLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_reversals_post201_response_authorization_information.py b/CyberSource/models/pts_v2_payments_reversals_post201_response_authorization_information.py new file mode 100644 index 00000000..432ff738 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_reversals_post201_response_authorization_information.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'approval_code': 'str', + 'reason_code': 'str' + } + + attribute_map = { + 'approval_code': 'approvalCode', + 'reason_code': 'reasonCode' + } + + def __init__(self, approval_code=None, reason_code=None): + """ + PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation - a model defined in Swagger + """ + + self._approval_code = None + self._reason_code = None + + if approval_code is not None: + self.approval_code = approval_code + if reason_code is not None: + self.reason_code = reason_code + + @property + def approval_code(self): + """ + Gets the approval_code of this PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation. + The authorization code returned by the processor. + + :return: The approval_code of this PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation. + :rtype: str + """ + return self._approval_code + + @approval_code.setter + def approval_code(self, approval_code): + """ + Sets the approval_code of this PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation. + The authorization code returned by the processor. + + :param approval_code: The approval_code of this PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation. + :type: str + """ + if approval_code is not None and len(approval_code) > 6: + raise ValueError("Invalid value for `approval_code`, length must be less than or equal to `6`") + + self._approval_code = approval_code + + @property + def reason_code(self): + """ + Gets the reason_code of this PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation. + Reply flag for the original transaction. + + :return: The reason_code of this PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation. + :rtype: str + """ + return self._reason_code + + @reason_code.setter + def reason_code(self, reason_code): + """ + Sets the reason_code of this PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation. + Reply flag for the original transaction. + + :param reason_code: The reason_code of this PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation. + :type: str + """ + if reason_code is not None and len(reason_code) > 50: + raise ValueError("Invalid value for `reason_code`, length must be less than or equal to `50`") + + self._reason_code = reason_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_reversals_post201_response_processor_information.py b/CyberSource/models/pts_v2_payments_reversals_post201_response_processor_information.py new file mode 100644 index 00000000..63de56ae --- /dev/null +++ b/CyberSource/models/pts_v2_payments_reversals_post201_response_processor_information.py @@ -0,0 +1,277 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsReversalsPost201ResponseProcessorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'transaction_id': 'str', + 'response_code': 'str', + 'response_category_code': 'str', + 'forwarded_acquirer_code': 'str', + 'master_card_service_code': 'str', + 'master_card_service_reply_code': 'str' + } + + attribute_map = { + 'transaction_id': 'transactionId', + 'response_code': 'responseCode', + 'response_category_code': 'responseCategoryCode', + 'forwarded_acquirer_code': 'forwardedAcquirerCode', + 'master_card_service_code': 'masterCardServiceCode', + 'master_card_service_reply_code': 'masterCardServiceReplyCode' + } + + def __init__(self, transaction_id=None, response_code=None, response_category_code=None, forwarded_acquirer_code=None, master_card_service_code=None, master_card_service_reply_code=None): + """ + PtsV2PaymentsReversalsPost201ResponseProcessorInformation - a model defined in Swagger + """ + + self._transaction_id = None + self._response_code = None + self._response_category_code = None + self._forwarded_acquirer_code = None + self._master_card_service_code = None + self._master_card_service_reply_code = None + + if transaction_id is not None: + self.transaction_id = transaction_id + if response_code is not None: + self.response_code = response_code + if response_category_code is not None: + self.response_category_code = response_category_code + if forwarded_acquirer_code is not None: + self.forwarded_acquirer_code = forwarded_acquirer_code + if master_card_service_code is not None: + self.master_card_service_code = master_card_service_code + if master_card_service_reply_code is not None: + self.master_card_service_reply_code = master_card_service_reply_code + + @property + def transaction_id(self): + """ + Gets the transaction_id of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 + + :return: The transaction_id of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._transaction_id + + @transaction_id.setter + def transaction_id(self, transaction_id): + """ + Sets the transaction_id of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 + + :param transaction_id: The transaction_id of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :type: str + """ + if transaction_id is not None and len(transaction_id) > 18: + raise ValueError("Invalid value for `transaction_id`, length must be less than or equal to `18`") + + self._transaction_id = transaction_id + + @property + def response_code(self): + """ + Gets the response_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. + + :return: The response_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._response_code + + @response_code.setter + def response_code(self, response_code): + """ + Sets the response_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. + + :param response_code: The response_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :type: str + """ + if response_code is not None and len(response_code) > 10: + raise ValueError("Invalid value for `response_code`, length must be less than or equal to `10`") + + self._response_code = response_code + + @property + def response_category_code(self): + """ + Gets the response_category_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 + + :return: The response_category_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._response_category_code + + @response_category_code.setter + def response_category_code(self, response_category_code): + """ + Sets the response_category_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 + + :param response_category_code: The response_category_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :type: str + """ + if response_category_code is not None and len(response_category_code) > 32: + raise ValueError("Invalid value for `response_category_code`, length must be less than or equal to `32`") + + self._response_category_code = response_category_code + + @property + def forwarded_acquirer_code(self): + """ + Gets the forwarded_acquirer_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. + + :return: The forwarded_acquirer_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._forwarded_acquirer_code + + @forwarded_acquirer_code.setter + def forwarded_acquirer_code(self, forwarded_acquirer_code): + """ + Sets the forwarded_acquirer_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. + + :param forwarded_acquirer_code: The forwarded_acquirer_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :type: str + """ + if forwarded_acquirer_code is not None and len(forwarded_acquirer_code) > 32: + raise ValueError("Invalid value for `forwarded_acquirer_code`, length must be less than or equal to `32`") + + self._forwarded_acquirer_code = forwarded_acquirer_code + + @property + def master_card_service_code(self): + """ + Gets the master_card_service_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service + + :return: The master_card_service_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._master_card_service_code + + @master_card_service_code.setter + def master_card_service_code(self, master_card_service_code): + """ + Sets the master_card_service_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service + + :param master_card_service_code: The master_card_service_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :type: str + """ + if master_card_service_code is not None and len(master_card_service_code) > 2: + raise ValueError("Invalid value for `master_card_service_code`, length must be less than or equal to `2`") + + self._master_card_service_code = master_card_service_code + + @property + def master_card_service_reply_code(self): + """ + Gets the master_card_service_reply_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. + + :return: The master_card_service_reply_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :rtype: str + """ + return self._master_card_service_reply_code + + @master_card_service_reply_code.setter + def master_card_service_reply_code(self, master_card_service_reply_code): + """ + Sets the master_card_service_reply_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. + + :param master_card_service_reply_code: The master_card_service_reply_code of this PtsV2PaymentsReversalsPost201ResponseProcessorInformation. + :type: str + """ + if master_card_service_reply_code is not None and len(master_card_service_reply_code) > 1: + raise ValueError("Invalid value for `master_card_service_reply_code`, length must be less than or equal to `1`") + + self._master_card_service_reply_code = master_card_service_reply_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsReversalsPost201ResponseProcessorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.py b/CyberSource/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.py new file mode 100644 index 00000000..f89b21e5 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reversed_amount': 'str', + 'original_transaction_amount': 'str', + 'currency': 'str' + } + + attribute_map = { + 'reversed_amount': 'reversedAmount', + 'original_transaction_amount': 'originalTransactionAmount', + 'currency': 'currency' + } + + def __init__(self, reversed_amount=None, original_transaction_amount=None, currency=None): + """ + PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails - a model defined in Swagger + """ + + self._reversed_amount = None + self._original_transaction_amount = None + self._currency = None + + if reversed_amount is not None: + self.reversed_amount = reversed_amount + if original_transaction_amount is not None: + self.original_transaction_amount = original_transaction_amount + if currency is not None: + self.currency = currency + + @property + def reversed_amount(self): + """ + Gets the reversed_amount of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + Total reversed amount. + + :return: The reversed_amount of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + :rtype: str + """ + return self._reversed_amount + + @reversed_amount.setter + def reversed_amount(self, reversed_amount): + """ + Sets the reversed_amount of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + Total reversed amount. + + :param reversed_amount: The reversed_amount of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + :type: str + """ + if reversed_amount is not None and len(reversed_amount) > 15: + raise ValueError("Invalid value for `reversed_amount`, length must be less than or equal to `15`") + + self._reversed_amount = reversed_amount + + @property + def original_transaction_amount(self): + """ + Gets the original_transaction_amount of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + Amount of the original transaction. + + :return: The original_transaction_amount of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + :rtype: str + """ + return self._original_transaction_amount + + @original_transaction_amount.setter + def original_transaction_amount(self, original_transaction_amount): + """ + Sets the original_transaction_amount of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + Amount of the original transaction. + + :param original_transaction_amount: The original_transaction_amount of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + :type: str + """ + if original_transaction_amount is not None and len(original_transaction_amount) > 15: + raise ValueError("Invalid value for `original_transaction_amount`, length must be less than or equal to `15`") + + self._original_transaction_amount = original_transaction_amount + + @property + def currency(self): + """ + Gets the currency of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_reversals_post400_response.py b/CyberSource/models/pts_v2_payments_reversals_post400_response.py new file mode 100644 index 00000000..407c08b6 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_reversals_post400_response.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsReversalsPost400Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'submit_time_utc': 'str', + 'status': 'str', + 'reason': 'str', + 'message': 'str', + 'details': 'list[PtsV2PaymentsPost201ResponseErrorInformationDetails]' + } + + attribute_map = { + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reason': 'reason', + 'message': 'message', + 'details': 'details' + } + + def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): + """ + PtsV2PaymentsReversalsPost400Response - a model defined in Swagger + """ + + self._submit_time_utc = None + self._status = None + self._reason = None + self._message = None + self._details = None + + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + if details is not None: + self.details = details + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsReversalsPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsReversalsPost400Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsReversalsPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsReversalsPost400Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsReversalsPost400Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsReversalsPost400Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsReversalsPost400Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsReversalsPost400Response. + :type: str + """ + allowed_values = ["INVALID_REQUEST"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsReversalsPost400Response. + The reason of the status. + + :return: The reason of this PtsV2PaymentsReversalsPost400Response. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsReversalsPost400Response. + The reason of the status. + + :param reason: The reason of this PtsV2PaymentsReversalsPost400Response. + :type: str + """ + allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_MERCHANT_CONFIGURATION", "AUTH_ALREADY_REVERSED", "MISSING_AUTH", "TRANSACTION_ALREADY_REVERSED_OR_SETTLED"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsReversalsPost400Response. + The detail message related to the status and reason listed above. + + :return: The message of this PtsV2PaymentsReversalsPost400Response. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsReversalsPost400Response. + The detail message related to the status and reason listed above. + + :param message: The message of this PtsV2PaymentsReversalsPost400Response. + :type: str + """ + + self._message = message + + @property + def details(self): + """ + Gets the details of this PtsV2PaymentsReversalsPost400Response. + + :return: The details of this PtsV2PaymentsReversalsPost400Response. + :rtype: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this PtsV2PaymentsReversalsPost400Response. + + :param details: The details of this PtsV2PaymentsReversalsPost400Response. + :type: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + + self._details = details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsReversalsPost400Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_voids_post201_response.py b/CyberSource/models/pts_v2_payments_voids_post201_response.py new file mode 100644 index 00000000..606c9d3a --- /dev/null +++ b/CyberSource/models/pts_v2_payments_voids_post201_response.py @@ -0,0 +1,267 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsVoidsPost201Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'PtsV2PaymentsReversalsPost201ResponseLinks', + 'id': 'str', + 'submit_time_utc': 'str', + 'status': 'str', + 'client_reference_information': 'PtsV2PaymentsPost201ResponseClientReferenceInformation', + 'void_amount_details': 'PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails' + } + + attribute_map = { + 'links': '_links', + 'id': 'id', + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'client_reference_information': 'clientReferenceInformation', + 'void_amount_details': 'voidAmountDetails' + } + + def __init__(self, links=None, id=None, submit_time_utc=None, status=None, client_reference_information=None, void_amount_details=None): + """ + PtsV2PaymentsVoidsPost201Response - a model defined in Swagger + """ + + self._links = None + self._id = None + self._submit_time_utc = None + self._status = None + self._client_reference_information = None + self._void_amount_details = None + + if links is not None: + self.links = links + if id is not None: + self.id = id + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if client_reference_information is not None: + self.client_reference_information = client_reference_information + if void_amount_details is not None: + self.void_amount_details = void_amount_details + + @property + def links(self): + """ + Gets the links of this PtsV2PaymentsVoidsPost201Response. + + :return: The links of this PtsV2PaymentsVoidsPost201Response. + :rtype: PtsV2PaymentsReversalsPost201ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this PtsV2PaymentsVoidsPost201Response. + + :param links: The links of this PtsV2PaymentsVoidsPost201Response. + :type: PtsV2PaymentsReversalsPost201ResponseLinks + """ + + self._links = links + + @property + def id(self): + """ + Gets the id of this PtsV2PaymentsVoidsPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :return: The id of this PtsV2PaymentsVoidsPost201Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this PtsV2PaymentsVoidsPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :param id: The id of this PtsV2PaymentsVoidsPost201Response. + :type: str + """ + if id is not None and len(id) > 26: + raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") + + self._id = id + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsVoidsPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsVoidsPost201Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsVoidsPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsVoidsPost201Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsVoidsPost201Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsVoidsPost201Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsVoidsPost201Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsVoidsPost201Response. + :type: str + """ + allowed_values = ["VOIDED"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def client_reference_information(self): + """ + Gets the client_reference_information of this PtsV2PaymentsVoidsPost201Response. + + :return: The client_reference_information of this PtsV2PaymentsVoidsPost201Response. + :rtype: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + return self._client_reference_information + + @client_reference_information.setter + def client_reference_information(self, client_reference_information): + """ + Sets the client_reference_information of this PtsV2PaymentsVoidsPost201Response. + + :param client_reference_information: The client_reference_information of this PtsV2PaymentsVoidsPost201Response. + :type: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + + self._client_reference_information = client_reference_information + + @property + def void_amount_details(self): + """ + Gets the void_amount_details of this PtsV2PaymentsVoidsPost201Response. + + :return: The void_amount_details of this PtsV2PaymentsVoidsPost201Response. + :rtype: PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails + """ + return self._void_amount_details + + @void_amount_details.setter + def void_amount_details(self, void_amount_details): + """ + Sets the void_amount_details of this PtsV2PaymentsVoidsPost201Response. + + :param void_amount_details: The void_amount_details of this PtsV2PaymentsVoidsPost201Response. + :type: PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails + """ + + self._void_amount_details = void_amount_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsVoidsPost201Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_voids_post201_response_void_amount_details.py b/CyberSource/models/pts_v2_payments_voids_post201_response_void_amount_details.py new file mode 100644 index 00000000..28cfa7d8 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_voids_post201_response_void_amount_details.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'void_amount': 'str', + 'original_transaction_amount': 'str', + 'currency': 'str' + } + + attribute_map = { + 'void_amount': 'voidAmount', + 'original_transaction_amount': 'originalTransactionAmount', + 'currency': 'currency' + } + + def __init__(self, void_amount=None, original_transaction_amount=None, currency=None): + """ + PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails - a model defined in Swagger + """ + + self._void_amount = None + self._original_transaction_amount = None + self._currency = None + + if void_amount is not None: + self.void_amount = void_amount + if original_transaction_amount is not None: + self.original_transaction_amount = original_transaction_amount + if currency is not None: + self.currency = currency + + @property + def void_amount(self): + """ + Gets the void_amount of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + Total amount of the void. + + :return: The void_amount of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + :rtype: str + """ + return self._void_amount + + @void_amount.setter + def void_amount(self, void_amount): + """ + Sets the void_amount of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + Total amount of the void. + + :param void_amount: The void_amount of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + :type: str + """ + + self._void_amount = void_amount + + @property + def original_transaction_amount(self): + """ + Gets the original_transaction_amount of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + Amount of the original transaction. + + :return: The original_transaction_amount of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + :rtype: str + """ + return self._original_transaction_amount + + @original_transaction_amount.setter + def original_transaction_amount(self, original_transaction_amount): + """ + Sets the original_transaction_amount of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + Amount of the original transaction. + + :param original_transaction_amount: The original_transaction_amount of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + :type: str + """ + + self._original_transaction_amount = original_transaction_amount + + @property + def currency(self): + """ + Gets the currency of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_voids_post400_response.py b/CyberSource/models/pts_v2_payments_voids_post400_response.py new file mode 100644 index 00000000..e2cb805a --- /dev/null +++ b/CyberSource/models/pts_v2_payments_voids_post400_response.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsVoidsPost400Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'submit_time_utc': 'str', + 'status': 'str', + 'reason': 'str', + 'message': 'str', + 'details': 'list[PtsV2PaymentsPost201ResponseErrorInformationDetails]' + } + + attribute_map = { + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reason': 'reason', + 'message': 'message', + 'details': 'details' + } + + def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): + """ + PtsV2PaymentsVoidsPost400Response - a model defined in Swagger + """ + + self._submit_time_utc = None + self._status = None + self._reason = None + self._message = None + self._details = None + + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + if details is not None: + self.details = details + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PaymentsVoidsPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PaymentsVoidsPost400Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PaymentsVoidsPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PaymentsVoidsPost400Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsVoidsPost400Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PaymentsVoidsPost400Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsVoidsPost400Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PaymentsVoidsPost400Response. + :type: str + """ + allowed_values = ["INVALID_REQUEST"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsVoidsPost400Response. + The reason of the status. + + :return: The reason of this PtsV2PaymentsVoidsPost400Response. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsVoidsPost400Response. + The reason of the status. + + :param reason: The reason of this PtsV2PaymentsVoidsPost400Response. + :type: str + """ + allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_MERCHANT_CONFIGURATION", "NOT_VOIDABLE"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsVoidsPost400Response. + The detail message related to the status and reason listed above. + + :return: The message of this PtsV2PaymentsVoidsPost400Response. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsVoidsPost400Response. + The detail message related to the status and reason listed above. + + :param message: The message of this PtsV2PaymentsVoidsPost400Response. + :type: str + """ + + self._message = message + + @property + def details(self): + """ + Gets the details of this PtsV2PaymentsVoidsPost400Response. + + :return: The details of this PtsV2PaymentsVoidsPost400Response. + :rtype: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this PtsV2PaymentsVoidsPost400Response. + + :param details: The details of this PtsV2PaymentsVoidsPost400Response. + :type: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + + self._details = details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsVoidsPost400Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payouts_post400_response.py b/CyberSource/models/pts_v2_payouts_post400_response.py new file mode 100644 index 00000000..00025190 --- /dev/null +++ b/CyberSource/models/pts_v2_payouts_post400_response.py @@ -0,0 +1,241 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PayoutsPost400Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'submit_time_utc': 'str', + 'status': 'str', + 'reason': 'str', + 'message': 'str', + 'details': 'list[PtsV2PaymentsPost201ResponseErrorInformationDetails]' + } + + attribute_map = { + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'reason': 'reason', + 'message': 'message', + 'details': 'details' + } + + def __init__(self, submit_time_utc=None, status=None, reason=None, message=None, details=None): + """ + PtsV2PayoutsPost400Response - a model defined in Swagger + """ + + self._submit_time_utc = None + self._status = None + self._reason = None + self._message = None + self._details = None + + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + if details is not None: + self.details = details + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this PtsV2PayoutsPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this PtsV2PayoutsPost400Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this PtsV2PayoutsPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this PtsV2PayoutsPost400Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this PtsV2PayoutsPost400Response. + The status of the submitted transaction. + + :return: The status of this PtsV2PayoutsPost400Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PayoutsPost400Response. + The status of the submitted transaction. + + :param status: The status of this PtsV2PayoutsPost400Response. + :type: str + """ + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PayoutsPost400Response. + The reason of the status. + + :return: The reason of this PtsV2PayoutsPost400Response. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PayoutsPost400Response. + The reason of the status. + + :param reason: The reason of this PtsV2PayoutsPost400Response. + :type: str + """ + allowed_values = ["MISSING_FIELD", "INVALID_DATA", "DUPLICATE_REQUEST", "INVALID_MERCHANT_CONFIGURATION", "INVALID_AMOUNT", "DEBIT_CARD_USEAGE_EXCEEDD_LIMIT"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PayoutsPost400Response. + The detail message related to the status and reason listed above. Possible value is: - Your aggregator or acquirer is not accepting transactions from you at this time. - Your aggregator or acquirer is not accepting this transaction. - CyberSource declined the request because the credit card has expired. You might also receive this value if the expiration date you provided does not match the date the issuing bank has on file. - The bank declined the transaction. - The merchant reference number for this authorization request matches the merchant reference number of another authorization request that you sent within the past 15 minutes. Resend the request with a unique merchant reference number. - The credit card number did not pass CyberSource basic checks. - Data provided is not consistent with the request. For example, you requested a product with negative cost. - The request is missing a required field. + + :return: The message of this PtsV2PayoutsPost400Response. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PayoutsPost400Response. + The detail message related to the status and reason listed above. Possible value is: - Your aggregator or acquirer is not accepting transactions from you at this time. - Your aggregator or acquirer is not accepting this transaction. - CyberSource declined the request because the credit card has expired. You might also receive this value if the expiration date you provided does not match the date the issuing bank has on file. - The bank declined the transaction. - The merchant reference number for this authorization request matches the merchant reference number of another authorization request that you sent within the past 15 minutes. Resend the request with a unique merchant reference number. - The credit card number did not pass CyberSource basic checks. - Data provided is not consistent with the request. For example, you requested a product with negative cost. - The request is missing a required field. + + :param message: The message of this PtsV2PayoutsPost400Response. + :type: str + """ + + self._message = message + + @property + def details(self): + """ + Gets the details of this PtsV2PayoutsPost400Response. + + :return: The details of this PtsV2PayoutsPost400Response. + :rtype: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this PtsV2PayoutsPost400Response. + + :param details: The details of this PtsV2PayoutsPost400Response. + :type: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + + self._details = details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PayoutsPost400Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payouts_post_response.py b/CyberSource/models/pts_v2_payouts_post_response.py new file mode 100644 index 00000000..95a15db9 --- /dev/null +++ b/CyberSource/models/pts_v2_payouts_post_response.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PayoutsPostResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'client_reference_information': 'PtsV2PaymentsPost201ResponseClientReferenceInformation', + 'order_information': 'Ptsv2payoutsOrderInformation', + 'merchant_information': 'Ptsv2payoutsMerchantInformation', + 'recipient_information': 'Ptsv2payoutsRecipientInformation', + 'sender_information': 'Ptsv2payoutsSenderInformation', + 'processing_information': 'Ptsv2payoutsProcessingInformation', + 'payment_information': 'Ptsv2payoutsPaymentInformation' + } + + attribute_map = { + 'client_reference_information': 'clientReferenceInformation', + 'order_information': 'orderInformation', + 'merchant_information': 'merchantInformation', + 'recipient_information': 'recipientInformation', + 'sender_information': 'senderInformation', + 'processing_information': 'processingInformation', + 'payment_information': 'paymentInformation' + } + + def __init__(self, client_reference_information=None, order_information=None, merchant_information=None, recipient_information=None, sender_information=None, processing_information=None, payment_information=None): + """ + PtsV2PayoutsPostResponse - a model defined in Swagger + """ + + self._client_reference_information = None + self._order_information = None + self._merchant_information = None + self._recipient_information = None + self._sender_information = None + self._processing_information = None + self._payment_information = None + + if client_reference_information is not None: + self.client_reference_information = client_reference_information + if order_information is not None: + self.order_information = order_information + if merchant_information is not None: + self.merchant_information = merchant_information + if recipient_information is not None: + self.recipient_information = recipient_information + if sender_information is not None: + self.sender_information = sender_information + if processing_information is not None: + self.processing_information = processing_information + if payment_information is not None: + self.payment_information = payment_information + + @property + def client_reference_information(self): + """ + Gets the client_reference_information of this PtsV2PayoutsPostResponse. + + :return: The client_reference_information of this PtsV2PayoutsPostResponse. + :rtype: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + return self._client_reference_information + + @client_reference_information.setter + def client_reference_information(self, client_reference_information): + """ + Sets the client_reference_information of this PtsV2PayoutsPostResponse. + + :param client_reference_information: The client_reference_information of this PtsV2PayoutsPostResponse. + :type: PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + + self._client_reference_information = client_reference_information + + @property + def order_information(self): + """ + Gets the order_information of this PtsV2PayoutsPostResponse. + + :return: The order_information of this PtsV2PayoutsPostResponse. + :rtype: Ptsv2payoutsOrderInformation + """ + return self._order_information + + @order_information.setter + def order_information(self, order_information): + """ + Sets the order_information of this PtsV2PayoutsPostResponse. + + :param order_information: The order_information of this PtsV2PayoutsPostResponse. + :type: Ptsv2payoutsOrderInformation + """ + + self._order_information = order_information + + @property + def merchant_information(self): + """ + Gets the merchant_information of this PtsV2PayoutsPostResponse. + + :return: The merchant_information of this PtsV2PayoutsPostResponse. + :rtype: Ptsv2payoutsMerchantInformation + """ + return self._merchant_information + + @merchant_information.setter + def merchant_information(self, merchant_information): + """ + Sets the merchant_information of this PtsV2PayoutsPostResponse. + + :param merchant_information: The merchant_information of this PtsV2PayoutsPostResponse. + :type: Ptsv2payoutsMerchantInformation + """ + + self._merchant_information = merchant_information + + @property + def recipient_information(self): + """ + Gets the recipient_information of this PtsV2PayoutsPostResponse. + + :return: The recipient_information of this PtsV2PayoutsPostResponse. + :rtype: Ptsv2payoutsRecipientInformation + """ + return self._recipient_information + + @recipient_information.setter + def recipient_information(self, recipient_information): + """ + Sets the recipient_information of this PtsV2PayoutsPostResponse. + + :param recipient_information: The recipient_information of this PtsV2PayoutsPostResponse. + :type: Ptsv2payoutsRecipientInformation + """ + + self._recipient_information = recipient_information + + @property + def sender_information(self): + """ + Gets the sender_information of this PtsV2PayoutsPostResponse. + + :return: The sender_information of this PtsV2PayoutsPostResponse. + :rtype: Ptsv2payoutsSenderInformation + """ + return self._sender_information + + @sender_information.setter + def sender_information(self, sender_information): + """ + Sets the sender_information of this PtsV2PayoutsPostResponse. + + :param sender_information: The sender_information of this PtsV2PayoutsPostResponse. + :type: Ptsv2payoutsSenderInformation + """ + + self._sender_information = sender_information + + @property + def processing_information(self): + """ + Gets the processing_information of this PtsV2PayoutsPostResponse. + + :return: The processing_information of this PtsV2PayoutsPostResponse. + :rtype: Ptsv2payoutsProcessingInformation + """ + return self._processing_information + + @processing_information.setter + def processing_information(self, processing_information): + """ + Sets the processing_information of this PtsV2PayoutsPostResponse. + + :param processing_information: The processing_information of this PtsV2PayoutsPostResponse. + :type: Ptsv2payoutsProcessingInformation + """ + + self._processing_information = processing_information + + @property + def payment_information(self): + """ + Gets the payment_information of this PtsV2PayoutsPostResponse. + + :return: The payment_information of this PtsV2PayoutsPostResponse. + :rtype: Ptsv2payoutsPaymentInformation + """ + return self._payment_information + + @payment_information.setter + def payment_information(self, payment_information): + """ + Sets the payment_information of this PtsV2PayoutsPostResponse. + + :param payment_information: The payment_information of this PtsV2PayoutsPostResponse. + :type: Ptsv2payoutsPaymentInformation + """ + + self._payment_information = payment_information + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PayoutsPostResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2credits_point_of_sale_information.py b/CyberSource/models/ptsv2credits_point_of_sale_information.py new file mode 100644 index 00000000..582b7810 --- /dev/null +++ b/CyberSource/models/ptsv2credits_point_of_sale_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2creditsPointOfSaleInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'emv': 'Ptsv2creditsPointOfSaleInformationEmv' + } + + attribute_map = { + 'emv': 'emv' + } + + def __init__(self, emv=None): + """ + Ptsv2creditsPointOfSaleInformation - a model defined in Swagger + """ + + self._emv = None + + if emv is not None: + self.emv = emv + + @property + def emv(self): + """ + Gets the emv of this Ptsv2creditsPointOfSaleInformation. + + :return: The emv of this Ptsv2creditsPointOfSaleInformation. + :rtype: Ptsv2creditsPointOfSaleInformationEmv + """ + return self._emv + + @emv.setter + def emv(self, emv): + """ + Sets the emv of this Ptsv2creditsPointOfSaleInformation. + + :param emv: The emv of this Ptsv2creditsPointOfSaleInformation. + :type: Ptsv2creditsPointOfSaleInformationEmv + """ + + self._emv = emv + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2creditsPointOfSaleInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2credits_point_of_sale_information_emv.py b/CyberSource/models/ptsv2credits_point_of_sale_information_emv.py new file mode 100644 index 00000000..1e96126d --- /dev/null +++ b/CyberSource/models/ptsv2credits_point_of_sale_information_emv.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2creditsPointOfSaleInformationEmv(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tags': 'str', + 'fallback': 'bool', + 'fallback_condition': 'float' + } + + attribute_map = { + 'tags': 'tags', + 'fallback': 'fallback', + 'fallback_condition': 'fallbackCondition' + } + + def __init__(self, tags=None, fallback=False, fallback_condition=None): + """ + Ptsv2creditsPointOfSaleInformationEmv - a model defined in Swagger + """ + + self._tags = None + self._fallback = None + self._fallback_condition = None + + if tags is not None: + self.tags = tags + if fallback is not None: + self.fallback = fallback + if fallback_condition is not None: + self.fallback_condition = fallback_condition + + @property + def tags(self): + """ + Gets the tags of this Ptsv2creditsPointOfSaleInformationEmv. + EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram + + :return: The tags of this Ptsv2creditsPointOfSaleInformationEmv. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this Ptsv2creditsPointOfSaleInformationEmv. + EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram + + :param tags: The tags of this Ptsv2creditsPointOfSaleInformationEmv. + :type: str + """ + if tags is not None and len(tags) > 1998: + raise ValueError("Invalid value for `tags`, length must be less than or equal to `1998`") + + self._tags = tags + + @property + def fallback(self): + """ + Gets the fallback of this Ptsv2creditsPointOfSaleInformationEmv. + Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. + + :return: The fallback of this Ptsv2creditsPointOfSaleInformationEmv. + :rtype: bool + """ + return self._fallback + + @fallback.setter + def fallback(self, fallback): + """ + Sets the fallback of this Ptsv2creditsPointOfSaleInformationEmv. + Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. + + :param fallback: The fallback of this Ptsv2creditsPointOfSaleInformationEmv. + :type: bool + """ + + self._fallback = fallback + + @property + def fallback_condition(self): + """ + Gets the fallback_condition of this Ptsv2creditsPointOfSaleInformationEmv. + Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. + + :return: The fallback_condition of this Ptsv2creditsPointOfSaleInformationEmv. + :rtype: float + """ + return self._fallback_condition + + @fallback_condition.setter + def fallback_condition(self, fallback_condition): + """ + Sets the fallback_condition of this Ptsv2creditsPointOfSaleInformationEmv. + Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. + + :param fallback_condition: The fallback_condition of this Ptsv2creditsPointOfSaleInformationEmv. + :type: float + """ + + self._fallback_condition = fallback_condition + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2creditsPointOfSaleInformationEmv): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2credits_processing_information.py b/CyberSource/models/ptsv2credits_processing_information.py new file mode 100644 index 00000000..ac715b44 --- /dev/null +++ b/CyberSource/models/ptsv2credits_processing_information.py @@ -0,0 +1,363 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2creditsProcessingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'commerce_indicator': 'str', + 'processor_id': 'str', + 'payment_solution': 'str', + 'reconciliation_id': 'str', + 'link_id': 'str', + 'report_group': 'str', + 'visa_checkout_id': 'str', + 'purchase_level': 'str', + 'recurring_options': 'Ptsv2paymentsidrefundsProcessingInformationRecurringOptions' + } + + attribute_map = { + 'commerce_indicator': 'commerceIndicator', + 'processor_id': 'processorId', + 'payment_solution': 'paymentSolution', + 'reconciliation_id': 'reconciliationId', + 'link_id': 'linkId', + 'report_group': 'reportGroup', + 'visa_checkout_id': 'visaCheckoutId', + 'purchase_level': 'purchaseLevel', + 'recurring_options': 'recurringOptions' + } + + def __init__(self, commerce_indicator=None, processor_id=None, payment_solution=None, reconciliation_id=None, link_id=None, report_group=None, visa_checkout_id=None, purchase_level=None, recurring_options=None): + """ + Ptsv2creditsProcessingInformation - a model defined in Swagger + """ + + self._commerce_indicator = None + self._processor_id = None + self._payment_solution = None + self._reconciliation_id = None + self._link_id = None + self._report_group = None + self._visa_checkout_id = None + self._purchase_level = None + self._recurring_options = None + + if commerce_indicator is not None: + self.commerce_indicator = commerce_indicator + if processor_id is not None: + self.processor_id = processor_id + if payment_solution is not None: + self.payment_solution = payment_solution + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if link_id is not None: + self.link_id = link_id + if report_group is not None: + self.report_group = report_group + if visa_checkout_id is not None: + self.visa_checkout_id = visa_checkout_id + if purchase_level is not None: + self.purchase_level = purchase_level + if recurring_options is not None: + self.recurring_options = recurring_options + + @property + def commerce_indicator(self): + """ + Gets the commerce_indicator of this Ptsv2creditsProcessingInformation. + Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. + + :return: The commerce_indicator of this Ptsv2creditsProcessingInformation. + :rtype: str + """ + return self._commerce_indicator + + @commerce_indicator.setter + def commerce_indicator(self, commerce_indicator): + """ + Sets the commerce_indicator of this Ptsv2creditsProcessingInformation. + Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. + + :param commerce_indicator: The commerce_indicator of this Ptsv2creditsProcessingInformation. + :type: str + """ + if commerce_indicator is not None and len(commerce_indicator) > 20: + raise ValueError("Invalid value for `commerce_indicator`, length must be less than or equal to `20`") + + self._commerce_indicator = commerce_indicator + + @property + def processor_id(self): + """ + Gets the processor_id of this Ptsv2creditsProcessingInformation. + Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. + + :return: The processor_id of this Ptsv2creditsProcessingInformation. + :rtype: str + """ + return self._processor_id + + @processor_id.setter + def processor_id(self, processor_id): + """ + Sets the processor_id of this Ptsv2creditsProcessingInformation. + Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. + + :param processor_id: The processor_id of this Ptsv2creditsProcessingInformation. + :type: str + """ + if processor_id is not None and len(processor_id) > 3: + raise ValueError("Invalid value for `processor_id`, length must be less than or equal to `3`") + + self._processor_id = processor_id + + @property + def payment_solution(self): + """ + Gets the payment_solution of this Ptsv2creditsProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :return: The payment_solution of this Ptsv2creditsProcessingInformation. + :rtype: str + """ + return self._payment_solution + + @payment_solution.setter + def payment_solution(self, payment_solution): + """ + Sets the payment_solution of this Ptsv2creditsProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :param payment_solution: The payment_solution of this Ptsv2creditsProcessingInformation. + :type: str + """ + if payment_solution is not None and len(payment_solution) > 12: + raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") + + self._payment_solution = payment_solution + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this Ptsv2creditsProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :return: The reconciliation_id of this Ptsv2creditsProcessingInformation. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this Ptsv2creditsProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :param reconciliation_id: The reconciliation_id of this Ptsv2creditsProcessingInformation. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def link_id(self): + """ + Gets the link_id of this Ptsv2creditsProcessingInformation. + Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. + + :return: The link_id of this Ptsv2creditsProcessingInformation. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """ + Sets the link_id of this Ptsv2creditsProcessingInformation. + Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. + + :param link_id: The link_id of this Ptsv2creditsProcessingInformation. + :type: str + """ + if link_id is not None and len(link_id) > 26: + raise ValueError("Invalid value for `link_id`, length must be less than or equal to `26`") + + self._link_id = link_id + + @property + def report_group(self): + """ + Gets the report_group of this Ptsv2creditsProcessingInformation. + Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. + + :return: The report_group of this Ptsv2creditsProcessingInformation. + :rtype: str + """ + return self._report_group + + @report_group.setter + def report_group(self, report_group): + """ + Sets the report_group of this Ptsv2creditsProcessingInformation. + Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. + + :param report_group: The report_group of this Ptsv2creditsProcessingInformation. + :type: str + """ + if report_group is not None and len(report_group) > 25: + raise ValueError("Invalid value for `report_group`, length must be less than or equal to `25`") + + self._report_group = report_group + + @property + def visa_checkout_id(self): + """ + Gets the visa_checkout_id of this Ptsv2creditsProcessingInformation. + Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. + + :return: The visa_checkout_id of this Ptsv2creditsProcessingInformation. + :rtype: str + """ + return self._visa_checkout_id + + @visa_checkout_id.setter + def visa_checkout_id(self, visa_checkout_id): + """ + Sets the visa_checkout_id of this Ptsv2creditsProcessingInformation. + Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. + + :param visa_checkout_id: The visa_checkout_id of this Ptsv2creditsProcessingInformation. + :type: str + """ + if visa_checkout_id is not None and len(visa_checkout_id) > 48: + raise ValueError("Invalid value for `visa_checkout_id`, length must be less than or equal to `48`") + + self._visa_checkout_id = visa_checkout_id + + @property + def purchase_level(self): + """ + Gets the purchase_level of this Ptsv2creditsProcessingInformation. + Set this field to 3 to indicate that the request includes Level III data. + + :return: The purchase_level of this Ptsv2creditsProcessingInformation. + :rtype: str + """ + return self._purchase_level + + @purchase_level.setter + def purchase_level(self, purchase_level): + """ + Sets the purchase_level of this Ptsv2creditsProcessingInformation. + Set this field to 3 to indicate that the request includes Level III data. + + :param purchase_level: The purchase_level of this Ptsv2creditsProcessingInformation. + :type: str + """ + if purchase_level is not None and len(purchase_level) > 1: + raise ValueError("Invalid value for `purchase_level`, length must be less than or equal to `1`") + + self._purchase_level = purchase_level + + @property + def recurring_options(self): + """ + Gets the recurring_options of this Ptsv2creditsProcessingInformation. + + :return: The recurring_options of this Ptsv2creditsProcessingInformation. + :rtype: Ptsv2paymentsidrefundsProcessingInformationRecurringOptions + """ + return self._recurring_options + + @recurring_options.setter + def recurring_options(self, recurring_options): + """ + Sets the recurring_options of this Ptsv2creditsProcessingInformation. + + :param recurring_options: The recurring_options of this Ptsv2creditsProcessingInformation. + :type: Ptsv2paymentsidrefundsProcessingInformationRecurringOptions + """ + + self._recurring_options = recurring_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2creditsProcessingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_aggregator_information.py b/CyberSource/models/ptsv2payments_aggregator_information.py new file mode 100644 index 00000000..ad412347 --- /dev/null +++ b/CyberSource/models/ptsv2payments_aggregator_information.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsAggregatorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'aggregator_id': 'str', + 'name': 'str', + 'sub_merchant': 'Ptsv2paymentsAggregatorInformationSubMerchant' + } + + attribute_map = { + 'aggregator_id': 'aggregatorId', + 'name': 'name', + 'sub_merchant': 'subMerchant' + } + + def __init__(self, aggregator_id=None, name=None, sub_merchant=None): + """ + Ptsv2paymentsAggregatorInformation - a model defined in Swagger + """ + + self._aggregator_id = None + self._name = None + self._sub_merchant = None + + if aggregator_id is not None: + self.aggregator_id = aggregator_id + if name is not None: + self.name = name + if sub_merchant is not None: + self.sub_merchant = sub_merchant + + @property + def aggregator_id(self): + """ + Gets the aggregator_id of this Ptsv2paymentsAggregatorInformation. + Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The aggregator_id of this Ptsv2paymentsAggregatorInformation. + :rtype: str + """ + return self._aggregator_id + + @aggregator_id.setter + def aggregator_id(self, aggregator_id): + """ + Sets the aggregator_id of this Ptsv2paymentsAggregatorInformation. + Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param aggregator_id: The aggregator_id of this Ptsv2paymentsAggregatorInformation. + :type: str + """ + if aggregator_id is not None and len(aggregator_id) > 20: + raise ValueError("Invalid value for `aggregator_id`, length must be less than or equal to `20`") + + self._aggregator_id = aggregator_id + + @property + def name(self): + """ + Gets the name of this Ptsv2paymentsAggregatorInformation. + Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The name of this Ptsv2paymentsAggregatorInformation. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Ptsv2paymentsAggregatorInformation. + Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param name: The name of this Ptsv2paymentsAggregatorInformation. + :type: str + """ + if name is not None and len(name) > 37: + raise ValueError("Invalid value for `name`, length must be less than or equal to `37`") + + self._name = name + + @property + def sub_merchant(self): + """ + Gets the sub_merchant of this Ptsv2paymentsAggregatorInformation. + + :return: The sub_merchant of this Ptsv2paymentsAggregatorInformation. + :rtype: Ptsv2paymentsAggregatorInformationSubMerchant + """ + return self._sub_merchant + + @sub_merchant.setter + def sub_merchant(self, sub_merchant): + """ + Sets the sub_merchant of this Ptsv2paymentsAggregatorInformation. + + :param sub_merchant: The sub_merchant of this Ptsv2paymentsAggregatorInformation. + :type: Ptsv2paymentsAggregatorInformationSubMerchant + """ + + self._sub_merchant = sub_merchant + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsAggregatorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_aggregator_information_sub_merchant.py b/CyberSource/models/ptsv2payments_aggregator_information_sub_merchant.py new file mode 100644 index 00000000..7c88943d --- /dev/null +++ b/CyberSource/models/ptsv2payments_aggregator_information_sub_merchant.py @@ -0,0 +1,397 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsAggregatorInformationSubMerchant(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'card_acceptor_id': 'str', + 'name': 'str', + 'address1': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'region': 'str', + 'postal_code': 'str', + 'country': 'str', + 'email': 'str', + 'phone_number': 'str' + } + + attribute_map = { + 'card_acceptor_id': 'cardAcceptorId', + 'name': 'name', + 'address1': 'address1', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'region': 'region', + 'postal_code': 'postalCode', + 'country': 'country', + 'email': 'email', + 'phone_number': 'phoneNumber' + } + + def __init__(self, card_acceptor_id=None, name=None, address1=None, locality=None, administrative_area=None, region=None, postal_code=None, country=None, email=None, phone_number=None): + """ + Ptsv2paymentsAggregatorInformationSubMerchant - a model defined in Swagger + """ + + self._card_acceptor_id = None + self._name = None + self._address1 = None + self._locality = None + self._administrative_area = None + self._region = None + self._postal_code = None + self._country = None + self._email = None + self._phone_number = None + + if card_acceptor_id is not None: + self.card_acceptor_id = card_acceptor_id + if name is not None: + self.name = name + if address1 is not None: + self.address1 = address1 + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if region is not None: + self.region = region + if postal_code is not None: + self.postal_code = postal_code + if country is not None: + self.country = country + if email is not None: + self.email = email + if phone_number is not None: + self.phone_number = phone_number + + @property + def card_acceptor_id(self): + """ + Gets the card_acceptor_id of this Ptsv2paymentsAggregatorInformationSubMerchant. + Unique identifier assigned by the payment card company to the sub-merchant. + + :return: The card_acceptor_id of this Ptsv2paymentsAggregatorInformationSubMerchant. + :rtype: str + """ + return self._card_acceptor_id + + @card_acceptor_id.setter + def card_acceptor_id(self, card_acceptor_id): + """ + Sets the card_acceptor_id of this Ptsv2paymentsAggregatorInformationSubMerchant. + Unique identifier assigned by the payment card company to the sub-merchant. + + :param card_acceptor_id: The card_acceptor_id of this Ptsv2paymentsAggregatorInformationSubMerchant. + :type: str + """ + if card_acceptor_id is not None and len(card_acceptor_id) > 15: + raise ValueError("Invalid value for `card_acceptor_id`, length must be less than or equal to `15`") + + self._card_acceptor_id = card_acceptor_id + + @property + def name(self): + """ + Gets the name of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s business name. + + :return: The name of this Ptsv2paymentsAggregatorInformationSubMerchant. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s business name. + + :param name: The name of this Ptsv2paymentsAggregatorInformationSubMerchant. + :type: str + """ + if name is not None and len(name) > 37: + raise ValueError("Invalid value for `name`, length must be less than or equal to `37`") + + self._name = name + + @property + def address1(self): + """ + Gets the address1 of this Ptsv2paymentsAggregatorInformationSubMerchant. + First line of the sub-merchant’s street address. + + :return: The address1 of this Ptsv2paymentsAggregatorInformationSubMerchant. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this Ptsv2paymentsAggregatorInformationSubMerchant. + First line of the sub-merchant’s street address. + + :param address1: The address1 of this Ptsv2paymentsAggregatorInformationSubMerchant. + :type: str + """ + if address1 is not None and len(address1) > 38: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `38`") + + self._address1 = address1 + + @property + def locality(self): + """ + Gets the locality of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s city. + + :return: The locality of this Ptsv2paymentsAggregatorInformationSubMerchant. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s city. + + :param locality: The locality of this Ptsv2paymentsAggregatorInformationSubMerchant. + :type: str + """ + if locality is not None and len(locality) > 21: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `21`") + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. + + :return: The administrative_area of this Ptsv2paymentsAggregatorInformationSubMerchant. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. + + :param administrative_area: The administrative_area of this Ptsv2paymentsAggregatorInformationSubMerchant. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 3: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `3`") + + self._administrative_area = administrative_area + + @property + def region(self): + """ + Gets the region of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s region. Example `NE` indicates that the sub-merchant is in the northeast region. + + :return: The region of this Ptsv2paymentsAggregatorInformationSubMerchant. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """ + Sets the region of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s region. Example `NE` indicates that the sub-merchant is in the northeast region. + + :param region: The region of this Ptsv2paymentsAggregatorInformationSubMerchant. + :type: str + """ + if region is not None and len(region) > 3: + raise ValueError("Invalid value for `region`, length must be less than or equal to `3`") + + self._region = region + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2paymentsAggregatorInformationSubMerchant. + Partial postal code for the sub-merchant’s address. + + :return: The postal_code of this Ptsv2paymentsAggregatorInformationSubMerchant. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2paymentsAggregatorInformationSubMerchant. + Partial postal code for the sub-merchant’s address. + + :param postal_code: The postal_code of this Ptsv2paymentsAggregatorInformationSubMerchant. + :type: str + """ + if postal_code is not None and len(postal_code) > 15: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `15`") + + self._postal_code = postal_code + + @property + def country(self): + """ + Gets the country of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s country. Use the two-character ISO Standard Country Codes. + + :return: The country of this Ptsv2paymentsAggregatorInformationSubMerchant. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s country. Use the two-character ISO Standard Country Codes. + + :param country: The country of this Ptsv2paymentsAggregatorInformationSubMerchant. + :type: str + """ + if country is not None and len(country) > 3: + raise ValueError("Invalid value for `country`, length must be less than or equal to `3`") + + self._country = country + + @property + def email(self): + """ + Gets the email of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 + + :return: The email of this Ptsv2paymentsAggregatorInformationSubMerchant. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 + + :param email: The email of this Ptsv2paymentsAggregatorInformationSubMerchant. + :type: str + """ + if email is not None and len(email) > 40: + raise ValueError("Invalid value for `email`, length must be less than or equal to `40`") + + self._email = email + + @property + def phone_number(self): + """ + Gets the phone_number of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 + + :return: The phone_number of this Ptsv2paymentsAggregatorInformationSubMerchant. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this Ptsv2paymentsAggregatorInformationSubMerchant. + Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 + + :param phone_number: The phone_number of this Ptsv2paymentsAggregatorInformationSubMerchant. + :type: str + """ + if phone_number is not None and len(phone_number) > 20: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `20`") + + self._phone_number = phone_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsAggregatorInformationSubMerchant): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_buyer_information.py b/CyberSource/models/ptsv2payments_buyer_information.py new file mode 100644 index 00000000..0f2a367a --- /dev/null +++ b/CyberSource/models/ptsv2payments_buyer_information.py @@ -0,0 +1,243 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsBuyerInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_customer_id': 'str', + 'date_of_birth': 'str', + 'vat_registration_number': 'str', + 'personal_identification': 'list[Ptsv2paymentsBuyerInformationPersonalIdentification]', + 'hashed_password': 'str' + } + + attribute_map = { + 'merchant_customer_id': 'merchantCustomerId', + 'date_of_birth': 'dateOfBirth', + 'vat_registration_number': 'vatRegistrationNumber', + 'personal_identification': 'personalIdentification', + 'hashed_password': 'hashedPassword' + } + + def __init__(self, merchant_customer_id=None, date_of_birth=None, vat_registration_number=None, personal_identification=None, hashed_password=None): + """ + Ptsv2paymentsBuyerInformation - a model defined in Swagger + """ + + self._merchant_customer_id = None + self._date_of_birth = None + self._vat_registration_number = None + self._personal_identification = None + self._hashed_password = None + + if merchant_customer_id is not None: + self.merchant_customer_id = merchant_customer_id + if date_of_birth is not None: + self.date_of_birth = date_of_birth + if vat_registration_number is not None: + self.vat_registration_number = vat_registration_number + if personal_identification is not None: + self.personal_identification = personal_identification + if hashed_password is not None: + self.hashed_password = hashed_password + + @property + def merchant_customer_id(self): + """ + Gets the merchant_customer_id of this Ptsv2paymentsBuyerInformation. + Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The merchant_customer_id of this Ptsv2paymentsBuyerInformation. + :rtype: str + """ + return self._merchant_customer_id + + @merchant_customer_id.setter + def merchant_customer_id(self, merchant_customer_id): + """ + Sets the merchant_customer_id of this Ptsv2paymentsBuyerInformation. + Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param merchant_customer_id: The merchant_customer_id of this Ptsv2paymentsBuyerInformation. + :type: str + """ + if merchant_customer_id is not None and len(merchant_customer_id) > 100: + raise ValueError("Invalid value for `merchant_customer_id`, length must be less than or equal to `100`") + + self._merchant_customer_id = merchant_customer_id + + @property + def date_of_birth(self): + """ + Gets the date_of_birth of this Ptsv2paymentsBuyerInformation. + Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + + :return: The date_of_birth of this Ptsv2paymentsBuyerInformation. + :rtype: str + """ + return self._date_of_birth + + @date_of_birth.setter + def date_of_birth(self, date_of_birth): + """ + Sets the date_of_birth of this Ptsv2paymentsBuyerInformation. + Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + + :param date_of_birth: The date_of_birth of this Ptsv2paymentsBuyerInformation. + :type: str + """ + if date_of_birth is not None and len(date_of_birth) > 8: + raise ValueError("Invalid value for `date_of_birth`, length must be less than or equal to `8`") + + self._date_of_birth = date_of_birth + + @property + def vat_registration_number(self): + """ + Gets the vat_registration_number of this Ptsv2paymentsBuyerInformation. + Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The vat_registration_number of this Ptsv2paymentsBuyerInformation. + :rtype: str + """ + return self._vat_registration_number + + @vat_registration_number.setter + def vat_registration_number(self, vat_registration_number): + """ + Sets the vat_registration_number of this Ptsv2paymentsBuyerInformation. + Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param vat_registration_number: The vat_registration_number of this Ptsv2paymentsBuyerInformation. + :type: str + """ + if vat_registration_number is not None and len(vat_registration_number) > 20: + raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `20`") + + self._vat_registration_number = vat_registration_number + + @property + def personal_identification(self): + """ + Gets the personal_identification of this Ptsv2paymentsBuyerInformation. + + :return: The personal_identification of this Ptsv2paymentsBuyerInformation. + :rtype: list[Ptsv2paymentsBuyerInformationPersonalIdentification] + """ + return self._personal_identification + + @personal_identification.setter + def personal_identification(self, personal_identification): + """ + Sets the personal_identification of this Ptsv2paymentsBuyerInformation. + + :param personal_identification: The personal_identification of this Ptsv2paymentsBuyerInformation. + :type: list[Ptsv2paymentsBuyerInformationPersonalIdentification] + """ + + self._personal_identification = personal_identification + + @property + def hashed_password(self): + """ + Gets the hashed_password of this Ptsv2paymentsBuyerInformation. + TODO + + :return: The hashed_password of this Ptsv2paymentsBuyerInformation. + :rtype: str + """ + return self._hashed_password + + @hashed_password.setter + def hashed_password(self, hashed_password): + """ + Sets the hashed_password of this Ptsv2paymentsBuyerInformation. + TODO + + :param hashed_password: The hashed_password of this Ptsv2paymentsBuyerInformation. + :type: str + """ + if hashed_password is not None and len(hashed_password) > 100: + raise ValueError("Invalid value for `hashed_password`, length must be less than or equal to `100`") + + self._hashed_password = hashed_password + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsBuyerInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_buyer_information_personal_identification.py b/CyberSource/models/ptsv2payments_buyer_information_personal_identification.py new file mode 100644 index 00000000..58d807be --- /dev/null +++ b/CyberSource/models/ptsv2payments_buyer_information_personal_identification.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsBuyerInformationPersonalIdentification(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'id': 'str', + 'issued_by': 'str' + } + + attribute_map = { + 'type': 'type', + 'id': 'id', + 'issued_by': 'issuedBy' + } + + def __init__(self, type=None, id=None, issued_by=None): + """ + Ptsv2paymentsBuyerInformationPersonalIdentification - a model defined in Swagger + """ + + self._type = None + self._id = None + self._issued_by = None + + if type is not None: + self.type = type + if id is not None: + self.id = id + if issued_by is not None: + self.issued_by = issued_by + + @property + def type(self): + """ + Gets the type of this Ptsv2paymentsBuyerInformationPersonalIdentification. + + :return: The type of this Ptsv2paymentsBuyerInformationPersonalIdentification. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Ptsv2paymentsBuyerInformationPersonalIdentification. + + :param type: The type of this Ptsv2paymentsBuyerInformationPersonalIdentification. + :type: str + """ + allowed_values = ["ssn", "driverlicense"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) + + self._type = type + + @property + def id(self): + """ + Gets the id of this Ptsv2paymentsBuyerInformationPersonalIdentification. + Personal Identifier for the customer based on various type. This field is supported only on the processors listed in this description. For processor-specific information, see the personal_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The id of this Ptsv2paymentsBuyerInformationPersonalIdentification. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Ptsv2paymentsBuyerInformationPersonalIdentification. + Personal Identifier for the customer based on various type. This field is supported only on the processors listed in this description. For processor-specific information, see the personal_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param id: The id of this Ptsv2paymentsBuyerInformationPersonalIdentification. + :type: str + """ + if id is not None and len(id) > 26: + raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") + + self._id = id + + @property + def issued_by(self): + """ + Gets the issued_by of this Ptsv2paymentsBuyerInformationPersonalIdentification. + Description of this field is not available. + + :return: The issued_by of this Ptsv2paymentsBuyerInformationPersonalIdentification. + :rtype: str + """ + return self._issued_by + + @issued_by.setter + def issued_by(self, issued_by): + """ + Sets the issued_by of this Ptsv2paymentsBuyerInformationPersonalIdentification. + Description of this field is not available. + + :param issued_by: The issued_by of this Ptsv2paymentsBuyerInformationPersonalIdentification. + :type: str + """ + + self._issued_by = issued_by + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsBuyerInformationPersonalIdentification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_client_reference_information.py b/CyberSource/models/ptsv2payments_client_reference_information.py new file mode 100644 index 00000000..14cd3c49 --- /dev/null +++ b/CyberSource/models/ptsv2payments_client_reference_information.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsClientReferenceInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'transaction_id': 'str', + 'comments': 'str' + } + + attribute_map = { + 'code': 'code', + 'transaction_id': 'transactionId', + 'comments': 'comments' + } + + def __init__(self, code=None, transaction_id=None, comments=None): + """ + Ptsv2paymentsClientReferenceInformation - a model defined in Swagger + """ + + self._code = None + self._transaction_id = None + self._comments = None + + if code is not None: + self.code = code + if transaction_id is not None: + self.transaction_id = transaction_id + if comments is not None: + self.comments = comments + + @property + def code(self): + """ + Gets the code of this Ptsv2paymentsClientReferenceInformation. + Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + + :return: The code of this Ptsv2paymentsClientReferenceInformation. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this Ptsv2paymentsClientReferenceInformation. + Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + + :param code: The code of this Ptsv2paymentsClientReferenceInformation. + :type: str + """ + if code is not None and len(code) > 50: + raise ValueError("Invalid value for `code`, length must be less than or equal to `50`") + + self._code = code + + @property + def transaction_id(self): + """ + Gets the transaction_id of this Ptsv2paymentsClientReferenceInformation. + Identifier that you assign to the transaction. See \"Merchant-Initiated Reversals and Voids,\" page 176 + + :return: The transaction_id of this Ptsv2paymentsClientReferenceInformation. + :rtype: str + """ + return self._transaction_id + + @transaction_id.setter + def transaction_id(self, transaction_id): + """ + Sets the transaction_id of this Ptsv2paymentsClientReferenceInformation. + Identifier that you assign to the transaction. See \"Merchant-Initiated Reversals and Voids,\" page 176 + + :param transaction_id: The transaction_id of this Ptsv2paymentsClientReferenceInformation. + :type: str + """ + + self._transaction_id = transaction_id + + @property + def comments(self): + """ + Gets the comments of this Ptsv2paymentsClientReferenceInformation. + Comments + + :return: The comments of this Ptsv2paymentsClientReferenceInformation. + :rtype: str + """ + return self._comments + + @comments.setter + def comments(self, comments): + """ + Sets the comments of this Ptsv2paymentsClientReferenceInformation. + Comments + + :param comments: The comments of this Ptsv2paymentsClientReferenceInformation. + :type: str + """ + + self._comments = comments + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsClientReferenceInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_consumer_authentication_information.py b/CyberSource/models/ptsv2payments_consumer_authentication_information.py new file mode 100644 index 00000000..1a93e356 --- /dev/null +++ b/CyberSource/models/ptsv2payments_consumer_authentication_information.py @@ -0,0 +1,337 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsConsumerAuthenticationInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cavv': 'str', + 'cavv_algorithm': 'str', + 'eci_raw': 'str', + 'pares_status': 'str', + 'veres_enrolled': 'str', + 'xid': 'str', + 'ucaf_authentication_data': 'str', + 'ucaf_collection_indicator': 'str' + } + + attribute_map = { + 'cavv': 'cavv', + 'cavv_algorithm': 'cavvAlgorithm', + 'eci_raw': 'eciRaw', + 'pares_status': 'paresStatus', + 'veres_enrolled': 'veresEnrolled', + 'xid': 'xid', + 'ucaf_authentication_data': 'ucafAuthenticationData', + 'ucaf_collection_indicator': 'ucafCollectionIndicator' + } + + def __init__(self, cavv=None, cavv_algorithm=None, eci_raw=None, pares_status=None, veres_enrolled=None, xid=None, ucaf_authentication_data=None, ucaf_collection_indicator=None): + """ + Ptsv2paymentsConsumerAuthenticationInformation - a model defined in Swagger + """ + + self._cavv = None + self._cavv_algorithm = None + self._eci_raw = None + self._pares_status = None + self._veres_enrolled = None + self._xid = None + self._ucaf_authentication_data = None + self._ucaf_collection_indicator = None + + if cavv is not None: + self.cavv = cavv + if cavv_algorithm is not None: + self.cavv_algorithm = cavv_algorithm + if eci_raw is not None: + self.eci_raw = eci_raw + if pares_status is not None: + self.pares_status = pares_status + if veres_enrolled is not None: + self.veres_enrolled = veres_enrolled + if xid is not None: + self.xid = xid + if ucaf_authentication_data is not None: + self.ucaf_authentication_data = ucaf_authentication_data + if ucaf_collection_indicator is not None: + self.ucaf_collection_indicator = ucaf_collection_indicator + + @property + def cavv(self): + """ + Gets the cavv of this Ptsv2paymentsConsumerAuthenticationInformation. + Cardholder authentication verification value (CAVV). + + :return: The cavv of this Ptsv2paymentsConsumerAuthenticationInformation. + :rtype: str + """ + return self._cavv + + @cavv.setter + def cavv(self, cavv): + """ + Sets the cavv of this Ptsv2paymentsConsumerAuthenticationInformation. + Cardholder authentication verification value (CAVV). + + :param cavv: The cavv of this Ptsv2paymentsConsumerAuthenticationInformation. + :type: str + """ + if cavv is not None and len(cavv) > 40: + raise ValueError("Invalid value for `cavv`, length must be less than or equal to `40`") + + self._cavv = cavv + + @property + def cavv_algorithm(self): + """ + Gets the cavv_algorithm of this Ptsv2paymentsConsumerAuthenticationInformation. + Algorithm used to generate the CAVV for Verified by Visa or the UCAF authentication data for Mastercard SecureCode. + + :return: The cavv_algorithm of this Ptsv2paymentsConsumerAuthenticationInformation. + :rtype: str + """ + return self._cavv_algorithm + + @cavv_algorithm.setter + def cavv_algorithm(self, cavv_algorithm): + """ + Sets the cavv_algorithm of this Ptsv2paymentsConsumerAuthenticationInformation. + Algorithm used to generate the CAVV for Verified by Visa or the UCAF authentication data for Mastercard SecureCode. + + :param cavv_algorithm: The cavv_algorithm of this Ptsv2paymentsConsumerAuthenticationInformation. + :type: str + """ + if cavv_algorithm is not None and len(cavv_algorithm) > 1: + raise ValueError("Invalid value for `cavv_algorithm`, length must be less than or equal to `1`") + + self._cavv_algorithm = cavv_algorithm + + @property + def eci_raw(self): + """ + Gets the eci_raw of this Ptsv2paymentsConsumerAuthenticationInformation. + Raw electronic commerce indicator (ECI). + + :return: The eci_raw of this Ptsv2paymentsConsumerAuthenticationInformation. + :rtype: str + """ + return self._eci_raw + + @eci_raw.setter + def eci_raw(self, eci_raw): + """ + Sets the eci_raw of this Ptsv2paymentsConsumerAuthenticationInformation. + Raw electronic commerce indicator (ECI). + + :param eci_raw: The eci_raw of this Ptsv2paymentsConsumerAuthenticationInformation. + :type: str + """ + if eci_raw is not None and len(eci_raw) > 2: + raise ValueError("Invalid value for `eci_raw`, length must be less than or equal to `2`") + + self._eci_raw = eci_raw + + @property + def pares_status(self): + """ + Gets the pares_status of this Ptsv2paymentsConsumerAuthenticationInformation. + Payer authentication response status. + + :return: The pares_status of this Ptsv2paymentsConsumerAuthenticationInformation. + :rtype: str + """ + return self._pares_status + + @pares_status.setter + def pares_status(self, pares_status): + """ + Sets the pares_status of this Ptsv2paymentsConsumerAuthenticationInformation. + Payer authentication response status. + + :param pares_status: The pares_status of this Ptsv2paymentsConsumerAuthenticationInformation. + :type: str + """ + if pares_status is not None and len(pares_status) > 1: + raise ValueError("Invalid value for `pares_status`, length must be less than or equal to `1`") + + self._pares_status = pares_status + + @property + def veres_enrolled(self): + """ + Gets the veres_enrolled of this Ptsv2paymentsConsumerAuthenticationInformation. + Verification response enrollment status. + + :return: The veres_enrolled of this Ptsv2paymentsConsumerAuthenticationInformation. + :rtype: str + """ + return self._veres_enrolled + + @veres_enrolled.setter + def veres_enrolled(self, veres_enrolled): + """ + Sets the veres_enrolled of this Ptsv2paymentsConsumerAuthenticationInformation. + Verification response enrollment status. + + :param veres_enrolled: The veres_enrolled of this Ptsv2paymentsConsumerAuthenticationInformation. + :type: str + """ + if veres_enrolled is not None and len(veres_enrolled) > 1: + raise ValueError("Invalid value for `veres_enrolled`, length must be less than or equal to `1`") + + self._veres_enrolled = veres_enrolled + + @property + def xid(self): + """ + Gets the xid of this Ptsv2paymentsConsumerAuthenticationInformation. + Transaction identifier. + + :return: The xid of this Ptsv2paymentsConsumerAuthenticationInformation. + :rtype: str + """ + return self._xid + + @xid.setter + def xid(self, xid): + """ + Sets the xid of this Ptsv2paymentsConsumerAuthenticationInformation. + Transaction identifier. + + :param xid: The xid of this Ptsv2paymentsConsumerAuthenticationInformation. + :type: str + """ + if xid is not None and len(xid) > 40: + raise ValueError("Invalid value for `xid`, length must be less than or equal to `40`") + + self._xid = xid + + @property + def ucaf_authentication_data(self): + """ + Gets the ucaf_authentication_data of this Ptsv2paymentsConsumerAuthenticationInformation. + Universal cardholder authentication field (UCAF) data. + + :return: The ucaf_authentication_data of this Ptsv2paymentsConsumerAuthenticationInformation. + :rtype: str + """ + return self._ucaf_authentication_data + + @ucaf_authentication_data.setter + def ucaf_authentication_data(self, ucaf_authentication_data): + """ + Sets the ucaf_authentication_data of this Ptsv2paymentsConsumerAuthenticationInformation. + Universal cardholder authentication field (UCAF) data. + + :param ucaf_authentication_data: The ucaf_authentication_data of this Ptsv2paymentsConsumerAuthenticationInformation. + :type: str + """ + if ucaf_authentication_data is not None and len(ucaf_authentication_data) > 32: + raise ValueError("Invalid value for `ucaf_authentication_data`, length must be less than or equal to `32`") + + self._ucaf_authentication_data = ucaf_authentication_data + + @property + def ucaf_collection_indicator(self): + """ + Gets the ucaf_collection_indicator of this Ptsv2paymentsConsumerAuthenticationInformation. + Universal cardholder authentication field (UCAF) collection indicator. + + :return: The ucaf_collection_indicator of this Ptsv2paymentsConsumerAuthenticationInformation. + :rtype: str + """ + return self._ucaf_collection_indicator + + @ucaf_collection_indicator.setter + def ucaf_collection_indicator(self, ucaf_collection_indicator): + """ + Sets the ucaf_collection_indicator of this Ptsv2paymentsConsumerAuthenticationInformation. + Universal cardholder authentication field (UCAF) collection indicator. + + :param ucaf_collection_indicator: The ucaf_collection_indicator of this Ptsv2paymentsConsumerAuthenticationInformation. + :type: str + """ + if ucaf_collection_indicator is not None and len(ucaf_collection_indicator) > 1: + raise ValueError("Invalid value for `ucaf_collection_indicator`, length must be less than or equal to `1`") + + self._ucaf_collection_indicator = ucaf_collection_indicator + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsConsumerAuthenticationInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_device_information.py b/CyberSource/models/ptsv2payments_device_information.py new file mode 100644 index 00000000..09d8b44b --- /dev/null +++ b/CyberSource/models/ptsv2payments_device_information.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsDeviceInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'host_name': 'str', + 'ip_address': 'str', + 'user_agent': 'str' + } + + attribute_map = { + 'host_name': 'hostName', + 'ip_address': 'ipAddress', + 'user_agent': 'userAgent' + } + + def __init__(self, host_name=None, ip_address=None, user_agent=None): + """ + Ptsv2paymentsDeviceInformation - a model defined in Swagger + """ + + self._host_name = None + self._ip_address = None + self._user_agent = None + + if host_name is not None: + self.host_name = host_name + if ip_address is not None: + self.ip_address = ip_address + if user_agent is not None: + self.user_agent = user_agent + + @property + def host_name(self): + """ + Gets the host_name of this Ptsv2paymentsDeviceInformation. + DNS resolved hostname from above _ipAddress_. + + :return: The host_name of this Ptsv2paymentsDeviceInformation. + :rtype: str + """ + return self._host_name + + @host_name.setter + def host_name(self, host_name): + """ + Sets the host_name of this Ptsv2paymentsDeviceInformation. + DNS resolved hostname from above _ipAddress_. + + :param host_name: The host_name of this Ptsv2paymentsDeviceInformation. + :type: str + """ + if host_name is not None and len(host_name) > 60: + raise ValueError("Invalid value for `host_name`, length must be less than or equal to `60`") + + self._host_name = host_name + + @property + def ip_address(self): + """ + Gets the ip_address of this Ptsv2paymentsDeviceInformation. + IP address of the customer. + + :return: The ip_address of this Ptsv2paymentsDeviceInformation. + :rtype: str + """ + return self._ip_address + + @ip_address.setter + def ip_address(self, ip_address): + """ + Sets the ip_address of this Ptsv2paymentsDeviceInformation. + IP address of the customer. + + :param ip_address: The ip_address of this Ptsv2paymentsDeviceInformation. + :type: str + """ + if ip_address is not None and len(ip_address) > 15: + raise ValueError("Invalid value for `ip_address`, length must be less than or equal to `15`") + + self._ip_address = ip_address + + @property + def user_agent(self): + """ + Gets the user_agent of this Ptsv2paymentsDeviceInformation. + Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser. + + :return: The user_agent of this Ptsv2paymentsDeviceInformation. + :rtype: str + """ + return self._user_agent + + @user_agent.setter + def user_agent(self, user_agent): + """ + Sets the user_agent of this Ptsv2paymentsDeviceInformation. + Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser. + + :param user_agent: The user_agent of this Ptsv2paymentsDeviceInformation. + :type: str + """ + if user_agent is not None and len(user_agent) > 40: + raise ValueError("Invalid value for `user_agent`, length must be less than or equal to `40`") + + self._user_agent = user_agent + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsDeviceInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_merchant_defined_information.py b/CyberSource/models/ptsv2payments_merchant_defined_information.py new file mode 100644 index 00000000..a7398f34 --- /dev/null +++ b/CyberSource/models/ptsv2payments_merchant_defined_information.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsMerchantDefinedInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key': 'str', + 'value': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None): + """ + Ptsv2paymentsMerchantDefinedInformation - a model defined in Swagger + """ + + self._key = None + self._value = None + + if key is not None: + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """ + Gets the key of this Ptsv2paymentsMerchantDefinedInformation. + Description of this field is not available. + + :return: The key of this Ptsv2paymentsMerchantDefinedInformation. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this Ptsv2paymentsMerchantDefinedInformation. + Description of this field is not available. + + :param key: The key of this Ptsv2paymentsMerchantDefinedInformation. + :type: str + """ + if key is not None and len(key) > 50: + raise ValueError("Invalid value for `key`, length must be less than or equal to `50`") + + self._key = key + + @property + def value(self): + """ + Gets the value of this Ptsv2paymentsMerchantDefinedInformation. + Description of this field is not available. + + :return: The value of this Ptsv2paymentsMerchantDefinedInformation. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this Ptsv2paymentsMerchantDefinedInformation. + Description of this field is not available. + + :param value: The value of this Ptsv2paymentsMerchantDefinedInformation. + :type: str + """ + if value is not None and len(value) > 255: + raise ValueError("Invalid value for `value`, length must be less than or equal to `255`") + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsMerchantDefinedInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_merchant_information.py b/CyberSource/models/ptsv2payments_merchant_information.py new file mode 100644 index 00000000..d16b7b6e --- /dev/null +++ b/CyberSource/models/ptsv2payments_merchant_information.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsMerchantInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_descriptor': 'Ptsv2paymentsMerchantInformationMerchantDescriptor', + 'sales_organization_id': 'str', + 'category_code': 'int', + 'vat_registration_number': 'str', + 'card_acceptor_reference_number': 'str', + 'transaction_local_date_time': 'str' + } + + attribute_map = { + 'merchant_descriptor': 'merchantDescriptor', + 'sales_organization_id': 'salesOrganizationId', + 'category_code': 'categoryCode', + 'vat_registration_number': 'vatRegistrationNumber', + 'card_acceptor_reference_number': 'cardAcceptorReferenceNumber', + 'transaction_local_date_time': 'transactionLocalDateTime' + } + + def __init__(self, merchant_descriptor=None, sales_organization_id=None, category_code=None, vat_registration_number=None, card_acceptor_reference_number=None, transaction_local_date_time=None): + """ + Ptsv2paymentsMerchantInformation - a model defined in Swagger + """ + + self._merchant_descriptor = None + self._sales_organization_id = None + self._category_code = None + self._vat_registration_number = None + self._card_acceptor_reference_number = None + self._transaction_local_date_time = None + + if merchant_descriptor is not None: + self.merchant_descriptor = merchant_descriptor + if sales_organization_id is not None: + self.sales_organization_id = sales_organization_id + if category_code is not None: + self.category_code = category_code + if vat_registration_number is not None: + self.vat_registration_number = vat_registration_number + if card_acceptor_reference_number is not None: + self.card_acceptor_reference_number = card_acceptor_reference_number + if transaction_local_date_time is not None: + self.transaction_local_date_time = transaction_local_date_time + + @property + def merchant_descriptor(self): + """ + Gets the merchant_descriptor of this Ptsv2paymentsMerchantInformation. + + :return: The merchant_descriptor of this Ptsv2paymentsMerchantInformation. + :rtype: Ptsv2paymentsMerchantInformationMerchantDescriptor + """ + return self._merchant_descriptor + + @merchant_descriptor.setter + def merchant_descriptor(self, merchant_descriptor): + """ + Sets the merchant_descriptor of this Ptsv2paymentsMerchantInformation. + + :param merchant_descriptor: The merchant_descriptor of this Ptsv2paymentsMerchantInformation. + :type: Ptsv2paymentsMerchantInformationMerchantDescriptor + """ + + self._merchant_descriptor = merchant_descriptor + + @property + def sales_organization_id(self): + """ + Gets the sales_organization_id of this Ptsv2paymentsMerchantInformation. + Company ID assigned to an independent sales organization. Get this value from Mastercard. For processor-specific information, see the sales_organization_ID field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The sales_organization_id of this Ptsv2paymentsMerchantInformation. + :rtype: str + """ + return self._sales_organization_id + + @sales_organization_id.setter + def sales_organization_id(self, sales_organization_id): + """ + Sets the sales_organization_id of this Ptsv2paymentsMerchantInformation. + Company ID assigned to an independent sales organization. Get this value from Mastercard. For processor-specific information, see the sales_organization_ID field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param sales_organization_id: The sales_organization_id of this Ptsv2paymentsMerchantInformation. + :type: str + """ + if sales_organization_id is not None and len(sales_organization_id) > 11: + raise ValueError("Invalid value for `sales_organization_id`, length must be less than or equal to `11`") + + self._sales_organization_id = sales_organization_id + + @property + def category_code(self): + """ + Gets the category_code of this Ptsv2paymentsMerchantInformation. + Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The category_code of this Ptsv2paymentsMerchantInformation. + :rtype: int + """ + return self._category_code + + @category_code.setter + def category_code(self, category_code): + """ + Sets the category_code of this Ptsv2paymentsMerchantInformation. + Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param category_code: The category_code of this Ptsv2paymentsMerchantInformation. + :type: int + """ + if category_code is not None and category_code > 9999: + raise ValueError("Invalid value for `category_code`, must be a value less than or equal to `9999`") + + self._category_code = category_code + + @property + def vat_registration_number(self): + """ + Gets the vat_registration_number of this Ptsv2paymentsMerchantInformation. + Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The vat_registration_number of this Ptsv2paymentsMerchantInformation. + :rtype: str + """ + return self._vat_registration_number + + @vat_registration_number.setter + def vat_registration_number(self, vat_registration_number): + """ + Sets the vat_registration_number of this Ptsv2paymentsMerchantInformation. + Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param vat_registration_number: The vat_registration_number of this Ptsv2paymentsMerchantInformation. + :type: str + """ + if vat_registration_number is not None and len(vat_registration_number) > 21: + raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `21`") + + self._vat_registration_number = vat_registration_number + + @property + def card_acceptor_reference_number(self): + """ + Gets the card_acceptor_reference_number of this Ptsv2paymentsMerchantInformation. + Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The card_acceptor_reference_number of this Ptsv2paymentsMerchantInformation. + :rtype: str + """ + return self._card_acceptor_reference_number + + @card_acceptor_reference_number.setter + def card_acceptor_reference_number(self, card_acceptor_reference_number): + """ + Sets the card_acceptor_reference_number of this Ptsv2paymentsMerchantInformation. + Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param card_acceptor_reference_number: The card_acceptor_reference_number of this Ptsv2paymentsMerchantInformation. + :type: str + """ + if card_acceptor_reference_number is not None and len(card_acceptor_reference_number) > 25: + raise ValueError("Invalid value for `card_acceptor_reference_number`, length must be less than or equal to `25`") + + self._card_acceptor_reference_number = card_acceptor_reference_number + + @property + def transaction_local_date_time(self): + """ + Gets the transaction_local_date_time of this Ptsv2paymentsMerchantInformation. + Local date and time at your physical location. Include both the date and time in this field or leave it blank. This field is supported only for **CyberSource through VisaNet**. For processor-specific information, see the transaction_local_date_time field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) `Format: YYYYMMDDhhmmss`, where: - YYYY = year - MM = month - DD = day - hh = hour - mm = minutes - ss = seconds + + :return: The transaction_local_date_time of this Ptsv2paymentsMerchantInformation. + :rtype: str + """ + return self._transaction_local_date_time + + @transaction_local_date_time.setter + def transaction_local_date_time(self, transaction_local_date_time): + """ + Sets the transaction_local_date_time of this Ptsv2paymentsMerchantInformation. + Local date and time at your physical location. Include both the date and time in this field or leave it blank. This field is supported only for **CyberSource through VisaNet**. For processor-specific information, see the transaction_local_date_time field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) `Format: YYYYMMDDhhmmss`, where: - YYYY = year - MM = month - DD = day - hh = hour - mm = minutes - ss = seconds + + :param transaction_local_date_time: The transaction_local_date_time of this Ptsv2paymentsMerchantInformation. + :type: str + """ + if transaction_local_date_time is not None and len(transaction_local_date_time) > 14: + raise ValueError("Invalid value for `transaction_local_date_time`, length must be less than or equal to `14`") + + self._transaction_local_date_time = transaction_local_date_time + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsMerchantInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_merchant_information_merchant_descriptor.py b/CyberSource/models/ptsv2payments_merchant_information_merchant_descriptor.py new file mode 100644 index 00000000..8e8e9df9 --- /dev/null +++ b/CyberSource/models/ptsv2payments_merchant_information_merchant_descriptor.py @@ -0,0 +1,337 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsMerchantInformationMerchantDescriptor(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'alternate_name': 'str', + 'contact': 'str', + 'address1': 'str', + 'locality': 'str', + 'country': 'str', + 'postal_code': 'str', + 'administrative_area': 'str' + } + + attribute_map = { + 'name': 'name', + 'alternate_name': 'alternateName', + 'contact': 'contact', + 'address1': 'address1', + 'locality': 'locality', + 'country': 'country', + 'postal_code': 'postalCode', + 'administrative_area': 'administrativeArea' + } + + def __init__(self, name=None, alternate_name=None, contact=None, address1=None, locality=None, country=None, postal_code=None, administrative_area=None): + """ + Ptsv2paymentsMerchantInformationMerchantDescriptor - a model defined in Swagger + """ + + self._name = None + self._alternate_name = None + self._contact = None + self._address1 = None + self._locality = None + self._country = None + self._postal_code = None + self._administrative_area = None + + if name is not None: + self.name = name + if alternate_name is not None: + self.alternate_name = alternate_name + if contact is not None: + self.contact = contact + if address1 is not None: + self.address1 = address1 + if locality is not None: + self.locality = locality + if country is not None: + self.country = country + if postal_code is not None: + self.postal_code = postal_code + if administrative_area is not None: + self.administrative_area = administrative_area + + @property + def name(self): + """ + Gets the name of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) + + :return: The name of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) + + :param name: The name of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :type: str + """ + if name is not None and len(name) > 23: + raise ValueError("Invalid value for `name`, length must be less than or equal to `23`") + + self._name = name + + @property + def alternate_name(self): + """ + Gets the alternate_name of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The alternate_name of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._alternate_name + + @alternate_name.setter + def alternate_name(self, alternate_name): + """ + Sets the alternate_name of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param alternate_name: The alternate_name of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :type: str + """ + if alternate_name is not None and len(alternate_name) > 13: + raise ValueError("Invalid value for `alternate_name`, length must be less than or equal to `13`") + + self._alternate_name = alternate_name + + @property + def contact(self): + """ + Gets the contact of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) + + :return: The contact of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._contact + + @contact.setter + def contact(self, contact): + """ + Sets the contact of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) + + :param contact: The contact of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :type: str + """ + if contact is not None and len(contact) > 14: + raise ValueError("Invalid value for `contact`, length must be less than or equal to `14`") + + self._contact = contact + + @property + def address1(self): + """ + Gets the address1 of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The address1 of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param address1: The address1 of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :type: str + """ + if address1 is not None and len(address1) > 60: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") + + self._address1 = address1 + + @property + def locality(self): + """ + Gets the locality of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The locality of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param locality: The locality of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :type: str + """ + if locality is not None and len(locality) > 13: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `13`") + + self._locality = locality + + @property + def country(self): + """ + Gets the country of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The country of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param country: The country of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The postal_code of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param postal_code: The postal_code of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :type: str + """ + if postal_code is not None and len(postal_code) > 14: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `14`") + + self._postal_code = postal_code + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The administrative_area of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param administrative_area: The administrative_area of this Ptsv2paymentsMerchantInformationMerchantDescriptor. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 3: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `3`") + + self._administrative_area = administrative_area + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsMerchantInformationMerchantDescriptor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_merchant_initiated_transaction.py b/CyberSource/models/ptsv2payments_merchant_initiated_transaction.py new file mode 100644 index 00000000..8b1db347 --- /dev/null +++ b/CyberSource/models/ptsv2payments_merchant_initiated_transaction.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reason': 'str', + 'previous_transaction_id': 'str' + } + + attribute_map = { + 'reason': 'reason', + 'previous_transaction_id': 'previousTransactionId' + } + + def __init__(self, reason=None, previous_transaction_id=None): + """ + Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - a model defined in Swagger + """ + + self._reason = None + self._previous_transaction_id = None + + if reason is not None: + self.reason = reason + if previous_transaction_id is not None: + self.previous_transaction_id = previous_transaction_id + + @property + def reason(self): + """ + Gets the reason of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + Reason for the merchant-initiated transaction. Possible values: - **1**: Resubmission - **2**: Delayed charge - **3**: Reauthorization for split shipment - **4**: No show - **5**: Account top up This field is not required for installment payments or recurring payments or when _reAuth.first_ is true. It is required for all other merchant-initiated transactions. This field is supported only for Visa transactions on CyberSource through VisaNet. + + :return: The reason of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + Reason for the merchant-initiated transaction. Possible values: - **1**: Resubmission - **2**: Delayed charge - **3**: Reauthorization for split shipment - **4**: No show - **5**: Account top up This field is not required for installment payments or recurring payments or when _reAuth.first_ is true. It is required for all other merchant-initiated transactions. This field is supported only for Visa transactions on CyberSource through VisaNet. + + :param reason: The reason of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + :type: str + """ + if reason is not None and len(reason) > 1: + raise ValueError("Invalid value for `reason`, length must be less than or equal to `1`") + + self._reason = reason + + @property + def previous_transaction_id(self): + """ + Gets the previous_transaction_id of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + Transaction identifier that was returned in the payment response field _processorInformation.transactionID_ in the reply message for either the original merchant initiated payment in the series or the previous merchant-initiated payment in the series.

If the current payment request includes a token instead of an account number, the following time limits apply for the value of this field: For a **resubmission**, the transaction ID must be less than 14 days old. For a **delayed charge** or **reauthorization**, the transaction ID must be less than 30 days old. The value for this field does not correspond to any data in the TC 33 capture file. This field is supported only for Visa transactions on CyberSource through VisaNet. + + :return: The previous_transaction_id of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + :rtype: str + """ + return self._previous_transaction_id + + @previous_transaction_id.setter + def previous_transaction_id(self, previous_transaction_id): + """ + Sets the previous_transaction_id of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + Transaction identifier that was returned in the payment response field _processorInformation.transactionID_ in the reply message for either the original merchant initiated payment in the series or the previous merchant-initiated payment in the series.

If the current payment request includes a token instead of an account number, the following time limits apply for the value of this field: For a **resubmission**, the transaction ID must be less than 14 days old. For a **delayed charge** or **reauthorization**, the transaction ID must be less than 30 days old. The value for this field does not correspond to any data in the TC 33 capture file. This field is supported only for Visa transactions on CyberSource through VisaNet. + + :param previous_transaction_id: The previous_transaction_id of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + :type: str + """ + if previous_transaction_id is not None and len(previous_transaction_id) > 15: + raise ValueError("Invalid value for `previous_transaction_id`, length must be less than or equal to `15`") + + self._previous_transaction_id = previous_transaction_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information.py b/CyberSource/models/ptsv2payments_order_information.py new file mode 100644 index 00000000..f0890705 --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amount_details': 'Ptsv2paymentsOrderInformationAmountDetails', + 'bill_to': 'Ptsv2paymentsOrderInformationBillTo', + 'ship_to': 'Ptsv2paymentsOrderInformationShipTo', + 'line_items': 'list[Ptsv2paymentsOrderInformationLineItems]', + 'invoice_details': 'Ptsv2paymentsOrderInformationInvoiceDetails', + 'shipping_details': 'Ptsv2paymentsOrderInformationShippingDetails' + } + + attribute_map = { + 'amount_details': 'amountDetails', + 'bill_to': 'billTo', + 'ship_to': 'shipTo', + 'line_items': 'lineItems', + 'invoice_details': 'invoiceDetails', + 'shipping_details': 'shippingDetails' + } + + def __init__(self, amount_details=None, bill_to=None, ship_to=None, line_items=None, invoice_details=None, shipping_details=None): + """ + Ptsv2paymentsOrderInformation - a model defined in Swagger + """ + + self._amount_details = None + self._bill_to = None + self._ship_to = None + self._line_items = None + self._invoice_details = None + self._shipping_details = None + + if amount_details is not None: + self.amount_details = amount_details + if bill_to is not None: + self.bill_to = bill_to + if ship_to is not None: + self.ship_to = ship_to + if line_items is not None: + self.line_items = line_items + if invoice_details is not None: + self.invoice_details = invoice_details + if shipping_details is not None: + self.shipping_details = shipping_details + + @property + def amount_details(self): + """ + Gets the amount_details of this Ptsv2paymentsOrderInformation. + + :return: The amount_details of this Ptsv2paymentsOrderInformation. + :rtype: Ptsv2paymentsOrderInformationAmountDetails + """ + return self._amount_details + + @amount_details.setter + def amount_details(self, amount_details): + """ + Sets the amount_details of this Ptsv2paymentsOrderInformation. + + :param amount_details: The amount_details of this Ptsv2paymentsOrderInformation. + :type: Ptsv2paymentsOrderInformationAmountDetails + """ + + self._amount_details = amount_details + + @property + def bill_to(self): + """ + Gets the bill_to of this Ptsv2paymentsOrderInformation. + + :return: The bill_to of this Ptsv2paymentsOrderInformation. + :rtype: Ptsv2paymentsOrderInformationBillTo + """ + return self._bill_to + + @bill_to.setter + def bill_to(self, bill_to): + """ + Sets the bill_to of this Ptsv2paymentsOrderInformation. + + :param bill_to: The bill_to of this Ptsv2paymentsOrderInformation. + :type: Ptsv2paymentsOrderInformationBillTo + """ + + self._bill_to = bill_to + + @property + def ship_to(self): + """ + Gets the ship_to of this Ptsv2paymentsOrderInformation. + + :return: The ship_to of this Ptsv2paymentsOrderInformation. + :rtype: Ptsv2paymentsOrderInformationShipTo + """ + return self._ship_to + + @ship_to.setter + def ship_to(self, ship_to): + """ + Sets the ship_to of this Ptsv2paymentsOrderInformation. + + :param ship_to: The ship_to of this Ptsv2paymentsOrderInformation. + :type: Ptsv2paymentsOrderInformationShipTo + """ + + self._ship_to = ship_to + + @property + def line_items(self): + """ + Gets the line_items of this Ptsv2paymentsOrderInformation. + + :return: The line_items of this Ptsv2paymentsOrderInformation. + :rtype: list[Ptsv2paymentsOrderInformationLineItems] + """ + return self._line_items + + @line_items.setter + def line_items(self, line_items): + """ + Sets the line_items of this Ptsv2paymentsOrderInformation. + + :param line_items: The line_items of this Ptsv2paymentsOrderInformation. + :type: list[Ptsv2paymentsOrderInformationLineItems] + """ + + self._line_items = line_items + + @property + def invoice_details(self): + """ + Gets the invoice_details of this Ptsv2paymentsOrderInformation. + + :return: The invoice_details of this Ptsv2paymentsOrderInformation. + :rtype: Ptsv2paymentsOrderInformationInvoiceDetails + """ + return self._invoice_details + + @invoice_details.setter + def invoice_details(self, invoice_details): + """ + Sets the invoice_details of this Ptsv2paymentsOrderInformation. + + :param invoice_details: The invoice_details of this Ptsv2paymentsOrderInformation. + :type: Ptsv2paymentsOrderInformationInvoiceDetails + """ + + self._invoice_details = invoice_details + + @property + def shipping_details(self): + """ + Gets the shipping_details of this Ptsv2paymentsOrderInformation. + + :return: The shipping_details of this Ptsv2paymentsOrderInformation. + :rtype: Ptsv2paymentsOrderInformationShippingDetails + """ + return self._shipping_details + + @shipping_details.setter + def shipping_details(self, shipping_details): + """ + Sets the shipping_details of this Ptsv2paymentsOrderInformation. + + :param shipping_details: The shipping_details of this Ptsv2paymentsOrderInformation. + :type: Ptsv2paymentsOrderInformationShippingDetails + """ + + self._shipping_details = shipping_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information_amount_details.py b/CyberSource/models/ptsv2payments_order_information_amount_details.py new file mode 100644 index 00000000..294cb5d3 --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information_amount_details.py @@ -0,0 +1,655 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformationAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'total_amount': 'str', + 'currency': 'str', + 'discount_amount': 'str', + 'duty_amount': 'str', + 'tax_amount': 'str', + 'national_tax_included': 'str', + 'tax_applied_after_discount': 'str', + 'tax_applied_level': 'str', + 'tax_type_code': 'str', + 'freight_amount': 'str', + 'foreign_amount': 'str', + 'foreign_currency': 'str', + 'exchange_rate': 'str', + 'exchange_rate_time_stamp': 'str', + 'surcharge': 'Ptsv2paymentsOrderInformationAmountDetailsSurcharge', + 'settlement_amount': 'str', + 'settlement_currency': 'str', + 'amex_additional_amounts': 'list[Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts]', + 'tax_details': 'list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails]' + } + + attribute_map = { + 'total_amount': 'totalAmount', + 'currency': 'currency', + 'discount_amount': 'discountAmount', + 'duty_amount': 'dutyAmount', + 'tax_amount': 'taxAmount', + 'national_tax_included': 'nationalTaxIncluded', + 'tax_applied_after_discount': 'taxAppliedAfterDiscount', + 'tax_applied_level': 'taxAppliedLevel', + 'tax_type_code': 'taxTypeCode', + 'freight_amount': 'freightAmount', + 'foreign_amount': 'foreignAmount', + 'foreign_currency': 'foreignCurrency', + 'exchange_rate': 'exchangeRate', + 'exchange_rate_time_stamp': 'exchangeRateTimeStamp', + 'surcharge': 'surcharge', + 'settlement_amount': 'settlementAmount', + 'settlement_currency': 'settlementCurrency', + 'amex_additional_amounts': 'amexAdditionalAmounts', + 'tax_details': 'taxDetails' + } + + def __init__(self, total_amount=None, currency=None, discount_amount=None, duty_amount=None, tax_amount=None, national_tax_included=None, tax_applied_after_discount=None, tax_applied_level=None, tax_type_code=None, freight_amount=None, foreign_amount=None, foreign_currency=None, exchange_rate=None, exchange_rate_time_stamp=None, surcharge=None, settlement_amount=None, settlement_currency=None, amex_additional_amounts=None, tax_details=None): + """ + Ptsv2paymentsOrderInformationAmountDetails - a model defined in Swagger + """ + + self._total_amount = None + self._currency = None + self._discount_amount = None + self._duty_amount = None + self._tax_amount = None + self._national_tax_included = None + self._tax_applied_after_discount = None + self._tax_applied_level = None + self._tax_type_code = None + self._freight_amount = None + self._foreign_amount = None + self._foreign_currency = None + self._exchange_rate = None + self._exchange_rate_time_stamp = None + self._surcharge = None + self._settlement_amount = None + self._settlement_currency = None + self._amex_additional_amounts = None + self._tax_details = None + + if total_amount is not None: + self.total_amount = total_amount + if currency is not None: + self.currency = currency + if discount_amount is not None: + self.discount_amount = discount_amount + if duty_amount is not None: + self.duty_amount = duty_amount + if tax_amount is not None: + self.tax_amount = tax_amount + if national_tax_included is not None: + self.national_tax_included = national_tax_included + if tax_applied_after_discount is not None: + self.tax_applied_after_discount = tax_applied_after_discount + if tax_applied_level is not None: + self.tax_applied_level = tax_applied_level + if tax_type_code is not None: + self.tax_type_code = tax_type_code + if freight_amount is not None: + self.freight_amount = freight_amount + if foreign_amount is not None: + self.foreign_amount = foreign_amount + if foreign_currency is not None: + self.foreign_currency = foreign_currency + if exchange_rate is not None: + self.exchange_rate = exchange_rate + if exchange_rate_time_stamp is not None: + self.exchange_rate_time_stamp = exchange_rate_time_stamp + if surcharge is not None: + self.surcharge = surcharge + if settlement_amount is not None: + self.settlement_amount = settlement_amount + if settlement_currency is not None: + self.settlement_currency = settlement_currency + if amex_additional_amounts is not None: + self.amex_additional_amounts = amex_additional_amounts + if tax_details is not None: + self.tax_details = tax_details + + @property + def total_amount(self): + """ + Gets the total_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The total_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._total_amount + + @total_amount.setter + def total_amount(self, total_amount): + """ + Sets the total_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param total_amount: The total_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if total_amount is not None and len(total_amount) > 19: + raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") + + self._total_amount = total_amount + + @property + def currency(self): + """ + Gets the currency of this Ptsv2paymentsOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this Ptsv2paymentsOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + @property + def discount_amount(self): + """ + Gets the discount_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The discount_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._discount_amount + + @discount_amount.setter + def discount_amount(self, discount_amount): + """ + Sets the discount_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param discount_amount: The discount_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if discount_amount is not None and len(discount_amount) > 15: + raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `15`") + + self._discount_amount = discount_amount + + @property + def duty_amount(self): + """ + Gets the duty_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The duty_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._duty_amount + + @duty_amount.setter + def duty_amount(self, duty_amount): + """ + Sets the duty_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param duty_amount: The duty_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if duty_amount is not None and len(duty_amount) > 15: + raise ValueError("Invalid value for `duty_amount`, length must be less than or equal to `15`") + + self._duty_amount = duty_amount + + @property + def tax_amount(self): + """ + Gets the tax_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The tax_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._tax_amount + + @tax_amount.setter + def tax_amount(self, tax_amount): + """ + Sets the tax_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param tax_amount: The tax_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if tax_amount is not None and len(tax_amount) > 12: + raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `12`") + + self._tax_amount = tax_amount + + @property + def national_tax_included(self): + """ + Gets the national_tax_included of this Ptsv2paymentsOrderInformationAmountDetails. + Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The national_tax_included of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._national_tax_included + + @national_tax_included.setter + def national_tax_included(self, national_tax_included): + """ + Sets the national_tax_included of this Ptsv2paymentsOrderInformationAmountDetails. + Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param national_tax_included: The national_tax_included of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if national_tax_included is not None and len(national_tax_included) > 1: + raise ValueError("Invalid value for `national_tax_included`, length must be less than or equal to `1`") + + self._national_tax_included = national_tax_included + + @property + def tax_applied_after_discount(self): + """ + Gets the tax_applied_after_discount of this Ptsv2paymentsOrderInformationAmountDetails. + Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The tax_applied_after_discount of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._tax_applied_after_discount + + @tax_applied_after_discount.setter + def tax_applied_after_discount(self, tax_applied_after_discount): + """ + Sets the tax_applied_after_discount of this Ptsv2paymentsOrderInformationAmountDetails. + Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param tax_applied_after_discount: The tax_applied_after_discount of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if tax_applied_after_discount is not None and len(tax_applied_after_discount) > 1: + raise ValueError("Invalid value for `tax_applied_after_discount`, length must be less than or equal to `1`") + + self._tax_applied_after_discount = tax_applied_after_discount + + @property + def tax_applied_level(self): + """ + Gets the tax_applied_level of this Ptsv2paymentsOrderInformationAmountDetails. + Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The tax_applied_level of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._tax_applied_level + + @tax_applied_level.setter + def tax_applied_level(self, tax_applied_level): + """ + Sets the tax_applied_level of this Ptsv2paymentsOrderInformationAmountDetails. + Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param tax_applied_level: The tax_applied_level of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if tax_applied_level is not None and len(tax_applied_level) > 1: + raise ValueError("Invalid value for `tax_applied_level`, length must be less than or equal to `1`") + + self._tax_applied_level = tax_applied_level + + @property + def tax_type_code(self): + """ + Gets the tax_type_code of this Ptsv2paymentsOrderInformationAmountDetails. + For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The tax_type_code of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._tax_type_code + + @tax_type_code.setter + def tax_type_code(self, tax_type_code): + """ + Sets the tax_type_code of this Ptsv2paymentsOrderInformationAmountDetails. + For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param tax_type_code: The tax_type_code of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if tax_type_code is not None and len(tax_type_code) > 3: + raise ValueError("Invalid value for `tax_type_code`, length must be less than or equal to `3`") + + self._tax_type_code = tax_type_code + + @property + def freight_amount(self): + """ + Gets the freight_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The freight_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._freight_amount + + @freight_amount.setter + def freight_amount(self, freight_amount): + """ + Sets the freight_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param freight_amount: The freight_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if freight_amount is not None and len(freight_amount) > 13: + raise ValueError("Invalid value for `freight_amount`, length must be less than or equal to `13`") + + self._freight_amount = freight_amount + + @property + def foreign_amount(self): + """ + Gets the foreign_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The foreign_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._foreign_amount + + @foreign_amount.setter + def foreign_amount(self, foreign_amount): + """ + Sets the foreign_amount of this Ptsv2paymentsOrderInformationAmountDetails. + Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param foreign_amount: The foreign_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if foreign_amount is not None and len(foreign_amount) > 15: + raise ValueError("Invalid value for `foreign_amount`, length must be less than or equal to `15`") + + self._foreign_amount = foreign_amount + + @property + def foreign_currency(self): + """ + Gets the foreign_currency of this Ptsv2paymentsOrderInformationAmountDetails. + Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The foreign_currency of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._foreign_currency + + @foreign_currency.setter + def foreign_currency(self, foreign_currency): + """ + Sets the foreign_currency of this Ptsv2paymentsOrderInformationAmountDetails. + Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param foreign_currency: The foreign_currency of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if foreign_currency is not None and len(foreign_currency) > 5: + raise ValueError("Invalid value for `foreign_currency`, length must be less than or equal to `5`") + + self._foreign_currency = foreign_currency + + @property + def exchange_rate(self): + """ + Gets the exchange_rate of this Ptsv2paymentsOrderInformationAmountDetails. + Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The exchange_rate of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._exchange_rate + + @exchange_rate.setter + def exchange_rate(self, exchange_rate): + """ + Sets the exchange_rate of this Ptsv2paymentsOrderInformationAmountDetails. + Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param exchange_rate: The exchange_rate of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if exchange_rate is not None and len(exchange_rate) > 13: + raise ValueError("Invalid value for `exchange_rate`, length must be less than or equal to `13`") + + self._exchange_rate = exchange_rate + + @property + def exchange_rate_time_stamp(self): + """ + Gets the exchange_rate_time_stamp of this Ptsv2paymentsOrderInformationAmountDetails. + Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The exchange_rate_time_stamp of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._exchange_rate_time_stamp + + @exchange_rate_time_stamp.setter + def exchange_rate_time_stamp(self, exchange_rate_time_stamp): + """ + Sets the exchange_rate_time_stamp of this Ptsv2paymentsOrderInformationAmountDetails. + Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param exchange_rate_time_stamp: The exchange_rate_time_stamp of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if exchange_rate_time_stamp is not None and len(exchange_rate_time_stamp) > 14: + raise ValueError("Invalid value for `exchange_rate_time_stamp`, length must be less than or equal to `14`") + + self._exchange_rate_time_stamp = exchange_rate_time_stamp + + @property + def surcharge(self): + """ + Gets the surcharge of this Ptsv2paymentsOrderInformationAmountDetails. + + :return: The surcharge of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: Ptsv2paymentsOrderInformationAmountDetailsSurcharge + """ + return self._surcharge + + @surcharge.setter + def surcharge(self, surcharge): + """ + Sets the surcharge of this Ptsv2paymentsOrderInformationAmountDetails. + + :param surcharge: The surcharge of this Ptsv2paymentsOrderInformationAmountDetails. + :type: Ptsv2paymentsOrderInformationAmountDetailsSurcharge + """ + + self._surcharge = surcharge + + @property + def settlement_amount(self): + """ + Gets the settlement_amount of this Ptsv2paymentsOrderInformationAmountDetails. + This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. + + :return: The settlement_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._settlement_amount + + @settlement_amount.setter + def settlement_amount(self, settlement_amount): + """ + Sets the settlement_amount of this Ptsv2paymentsOrderInformationAmountDetails. + This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. + + :param settlement_amount: The settlement_amount of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if settlement_amount is not None and len(settlement_amount) > 12: + raise ValueError("Invalid value for `settlement_amount`, length must be less than or equal to `12`") + + self._settlement_amount = settlement_amount + + @property + def settlement_currency(self): + """ + Gets the settlement_currency of this Ptsv2paymentsOrderInformationAmountDetails. + This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. + + :return: The settlement_currency of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: str + """ + return self._settlement_currency + + @settlement_currency.setter + def settlement_currency(self, settlement_currency): + """ + Sets the settlement_currency of this Ptsv2paymentsOrderInformationAmountDetails. + This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. + + :param settlement_currency: The settlement_currency of this Ptsv2paymentsOrderInformationAmountDetails. + :type: str + """ + if settlement_currency is not None and len(settlement_currency) > 3: + raise ValueError("Invalid value for `settlement_currency`, length must be less than or equal to `3`") + + self._settlement_currency = settlement_currency + + @property + def amex_additional_amounts(self): + """ + Gets the amex_additional_amounts of this Ptsv2paymentsOrderInformationAmountDetails. + + :return: The amex_additional_amounts of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: list[Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts] + """ + return self._amex_additional_amounts + + @amex_additional_amounts.setter + def amex_additional_amounts(self, amex_additional_amounts): + """ + Sets the amex_additional_amounts of this Ptsv2paymentsOrderInformationAmountDetails. + + :param amex_additional_amounts: The amex_additional_amounts of this Ptsv2paymentsOrderInformationAmountDetails. + :type: list[Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts] + """ + + self._amex_additional_amounts = amex_additional_amounts + + @property + def tax_details(self): + """ + Gets the tax_details of this Ptsv2paymentsOrderInformationAmountDetails. + + :return: The tax_details of this Ptsv2paymentsOrderInformationAmountDetails. + :rtype: list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails] + """ + return self._tax_details + + @tax_details.setter + def tax_details(self, tax_details): + """ + Sets the tax_details of this Ptsv2paymentsOrderInformationAmountDetails. + + :param tax_details: The tax_details of this Ptsv2paymentsOrderInformationAmountDetails. + :type: list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails] + """ + + self._tax_details = tax_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformationAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.py b/CyberSource/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.py new file mode 100644 index 00000000..2c263dfd --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'amount': 'str' + } + + attribute_map = { + 'code': 'code', + 'amount': 'amount' + } + + def __init__(self, code=None, amount=None): + """ + Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts - a model defined in Swagger + """ + + self._code = None + self._amount = None + + if code is not None: + self.code = code + if amount is not None: + self.amount = amount + + @property + def code(self): + """ + Gets the code of this Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. + Additional amount type. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The code of this Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. + Additional amount type. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param code: The code of this Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. + :type: str + """ + if code is not None and len(code) > 3: + raise ValueError("Invalid value for `code`, length must be less than or equal to `3`") + + self._code = code + + @property + def amount(self): + """ + Gets the amount of this Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. + Additional amount. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The amount of this Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. + :rtype: str + """ + return self._amount + + @amount.setter + def amount(self, amount): + """ + Sets the amount of this Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. + Additional amount. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param amount: The amount of this Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. + :type: str + """ + if amount is not None and len(amount) > 12: + raise ValueError("Invalid value for `amount`, length must be less than or equal to `12`") + + self._amount = amount + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information_amount_details_surcharge.py b/CyberSource/models/ptsv2payments_order_information_amount_details_surcharge.py new file mode 100644 index 00000000..c04b25e6 --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information_amount_details_surcharge.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformationAmountDetailsSurcharge(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amount': 'str', + 'description': 'str' + } + + attribute_map = { + 'amount': 'amount', + 'description': 'description' + } + + def __init__(self, amount=None, description=None): + """ + Ptsv2paymentsOrderInformationAmountDetailsSurcharge - a model defined in Swagger + """ + + self._amount = None + self._description = None + + if amount is not None: + self.amount = amount + if description is not None: + self.description = description + + @property + def amount(self): + """ + Gets the amount of this Ptsv2paymentsOrderInformationAmountDetailsSurcharge. + The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The amount of this Ptsv2paymentsOrderInformationAmountDetailsSurcharge. + :rtype: str + """ + return self._amount + + @amount.setter + def amount(self, amount): + """ + Sets the amount of this Ptsv2paymentsOrderInformationAmountDetailsSurcharge. + The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param amount: The amount of this Ptsv2paymentsOrderInformationAmountDetailsSurcharge. + :type: str + """ + if amount is not None and len(amount) > 15: + raise ValueError("Invalid value for `amount`, length must be less than or equal to `15`") + + self._amount = amount + + @property + def description(self): + """ + Gets the description of this Ptsv2paymentsOrderInformationAmountDetailsSurcharge. + Description of this field is not available. + + :return: The description of this Ptsv2paymentsOrderInformationAmountDetailsSurcharge. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this Ptsv2paymentsOrderInformationAmountDetailsSurcharge. + Description of this field is not available. + + :param description: The description of this Ptsv2paymentsOrderInformationAmountDetailsSurcharge. + :type: str + """ + + self._description = description + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformationAmountDetailsSurcharge): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information_amount_details_tax_details.py b/CyberSource/models/ptsv2payments_order_information_amount_details_tax_details.py new file mode 100644 index 00000000..4fb2e132 --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information_amount_details_tax_details.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformationAmountDetailsTaxDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'amount': 'str', + 'rate': 'str', + 'code': 'str', + 'tax_id': 'str', + 'applied': 'bool' + } + + attribute_map = { + 'type': 'type', + 'amount': 'amount', + 'rate': 'rate', + 'code': 'code', + 'tax_id': 'taxId', + 'applied': 'applied' + } + + def __init__(self, type=None, amount=None, rate=None, code=None, tax_id=None, applied=None): + """ + Ptsv2paymentsOrderInformationAmountDetailsTaxDetails - a model defined in Swagger + """ + + self._type = None + self._amount = None + self._rate = None + self._code = None + self._tax_id = None + self._applied = None + + if type is not None: + self.type = type + if amount is not None: + self.amount = amount + if rate is not None: + self.rate = rate + if code is not None: + self.code = code + if tax_id is not None: + self.tax_id = tax_id + if applied is not None: + self.applied = applied + + @property + def type(self): + """ + Gets the type of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + This is used to determine what type of tax related data should be inclued under _taxDetails_ object. + + :return: The type of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + This is used to determine what type of tax related data should be inclued under _taxDetails_ object. + + :param type: The type of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :type: str + """ + allowed_values = ["alternate", "local", "national", "vat"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) + + self._type = type + + @property + def amount(self): + """ + Gets the amount of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + Please see below table for related decription based on above _type_ field. | type | amount description | |-----------|--------------------| | alternate | Total amount of alternate tax for the order. | | local | Sales tax for the order. | | national | National tax for the order. | | vat | Total amount of VAT or other tax included in the order. | + + :return: The amount of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :rtype: str + """ + return self._amount + + @amount.setter + def amount(self, amount): + """ + Sets the amount of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + Please see below table for related decription based on above _type_ field. | type | amount description | |-----------|--------------------| | alternate | Total amount of alternate tax for the order. | | local | Sales tax for the order. | | national | National tax for the order. | | vat | Total amount of VAT or other tax included in the order. | + + :param amount: The amount of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :type: str + """ + if amount is not None and len(amount) > 13: + raise ValueError("Invalid value for `amount`, length must be less than or equal to `13`") + + self._amount = amount + + @property + def rate(self): + """ + Gets the rate of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + Rate of VAT or other tax for the order. Example 0.040 (=4%) Valid range: 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated) + + :return: The rate of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :rtype: str + """ + return self._rate + + @rate.setter + def rate(self, rate): + """ + Sets the rate of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + Rate of VAT or other tax for the order. Example 0.040 (=4%) Valid range: 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated) + + :param rate: The rate of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :type: str + """ + if rate is not None and len(rate) > 6: + raise ValueError("Invalid value for `rate`, length must be less than or equal to `6`") + + self._rate = rate + + @property + def code(self): + """ + Gets the code of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. + + :return: The code of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. + + :param code: The code of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :type: str + """ + if code is not None and len(code) > 4: + raise ValueError("Invalid value for `code`, length must be less than or equal to `4`") + + self._code = code + + @property + def tax_id(self): + """ + Gets the tax_id of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + Your tax ID number to use for the alternate tax amount. Required if you set alternate tax amount to any value, including zero. You may send this field without sending alternate tax amount. + + :return: The tax_id of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :rtype: str + """ + return self._tax_id + + @tax_id.setter + def tax_id(self, tax_id): + """ + Sets the tax_id of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + Your tax ID number to use for the alternate tax amount. Required if you set alternate tax amount to any value, including zero. You may send this field without sending alternate tax amount. + + :param tax_id: The tax_id of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :type: str + """ + if tax_id is not None and len(tax_id) > 15: + raise ValueError("Invalid value for `tax_id`, length must be less than or equal to `15`") + + self._tax_id = tax_id + + @property + def applied(self): + """ + Gets the applied of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + The tax is applied. Valid value is `true` or `false`. + + :return: The applied of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :rtype: bool + """ + return self._applied + + @applied.setter + def applied(self, applied): + """ + Sets the applied of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + The tax is applied. Valid value is `true` or `false`. + + :param applied: The applied of this Ptsv2paymentsOrderInformationAmountDetailsTaxDetails. + :type: bool + """ + + self._applied = applied + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformationAmountDetailsTaxDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information_bill_to.py b/CyberSource/models/ptsv2payments_order_information_bill_to.py new file mode 100644 index 00000000..7c635b25 --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information_bill_to.py @@ -0,0 +1,611 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformationBillTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first_name': 'str', + 'last_name': 'str', + 'middle_name': 'str', + 'name_suffix': 'str', + 'title': 'str', + 'company': 'str', + 'address1': 'str', + 'address2': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'postal_code': 'str', + 'country': 'str', + 'district': 'str', + 'building_number': 'str', + 'email': 'str', + 'phone_number': 'str', + 'phone_type': 'str' + } + + attribute_map = { + 'first_name': 'firstName', + 'last_name': 'lastName', + 'middle_name': 'middleName', + 'name_suffix': 'nameSuffix', + 'title': 'title', + 'company': 'company', + 'address1': 'address1', + 'address2': 'address2', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'postal_code': 'postalCode', + 'country': 'country', + 'district': 'district', + 'building_number': 'buildingNumber', + 'email': 'email', + 'phone_number': 'phoneNumber', + 'phone_type': 'phoneType' + } + + def __init__(self, first_name=None, last_name=None, middle_name=None, name_suffix=None, title=None, company=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, country=None, district=None, building_number=None, email=None, phone_number=None, phone_type=None): + """ + Ptsv2paymentsOrderInformationBillTo - a model defined in Swagger + """ + + self._first_name = None + self._last_name = None + self._middle_name = None + self._name_suffix = None + self._title = None + self._company = None + self._address1 = None + self._address2 = None + self._locality = None + self._administrative_area = None + self._postal_code = None + self._country = None + self._district = None + self._building_number = None + self._email = None + self._phone_number = None + self._phone_type = None + + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if middle_name is not None: + self.middle_name = middle_name + if name_suffix is not None: + self.name_suffix = name_suffix + if title is not None: + self.title = title + if company is not None: + self.company = company + if address1 is not None: + self.address1 = address1 + if address2 is not None: + self.address2 = address2 + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if postal_code is not None: + self.postal_code = postal_code + if country is not None: + self.country = country + if district is not None: + self.district = district + if building_number is not None: + self.building_number = building_number + if email is not None: + self.email = email + if phone_number is not None: + self.phone_number = phone_number + if phone_type is not None: + self.phone_type = phone_type + + @property + def first_name(self): + """ + Gets the first_name of this Ptsv2paymentsOrderInformationBillTo. + Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The first_name of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this Ptsv2paymentsOrderInformationBillTo. + Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param first_name: The first_name of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if first_name is not None and len(first_name) > 60: + raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") + + self._first_name = first_name + + @property + def last_name(self): + """ + Gets the last_name of this Ptsv2paymentsOrderInformationBillTo. + Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The last_name of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this Ptsv2paymentsOrderInformationBillTo. + Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param last_name: The last_name of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if last_name is not None and len(last_name) > 60: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") + + self._last_name = last_name + + @property + def middle_name(self): + """ + Gets the middle_name of this Ptsv2paymentsOrderInformationBillTo. + Customer’s middle name. + + :return: The middle_name of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._middle_name + + @middle_name.setter + def middle_name(self, middle_name): + """ + Sets the middle_name of this Ptsv2paymentsOrderInformationBillTo. + Customer’s middle name. + + :param middle_name: The middle_name of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if middle_name is not None and len(middle_name) > 60: + raise ValueError("Invalid value for `middle_name`, length must be less than or equal to `60`") + + self._middle_name = middle_name + + @property + def name_suffix(self): + """ + Gets the name_suffix of this Ptsv2paymentsOrderInformationBillTo. + Customer’s name suffix. + + :return: The name_suffix of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._name_suffix + + @name_suffix.setter + def name_suffix(self, name_suffix): + """ + Sets the name_suffix of this Ptsv2paymentsOrderInformationBillTo. + Customer’s name suffix. + + :param name_suffix: The name_suffix of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if name_suffix is not None and len(name_suffix) > 60: + raise ValueError("Invalid value for `name_suffix`, length must be less than or equal to `60`") + + self._name_suffix = name_suffix + + @property + def title(self): + """ + Gets the title of this Ptsv2paymentsOrderInformationBillTo. + Title. + + :return: The title of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """ + Sets the title of this Ptsv2paymentsOrderInformationBillTo. + Title. + + :param title: The title of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if title is not None and len(title) > 60: + raise ValueError("Invalid value for `title`, length must be less than or equal to `60`") + + self._title = title + + @property + def company(self): + """ + Gets the company of this Ptsv2paymentsOrderInformationBillTo. + Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The company of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._company + + @company.setter + def company(self, company): + """ + Sets the company of this Ptsv2paymentsOrderInformationBillTo. + Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param company: The company of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if company is not None and len(company) > 60: + raise ValueError("Invalid value for `company`, length must be less than or equal to `60`") + + self._company = company + + @property + def address1(self): + """ + Gets the address1 of this Ptsv2paymentsOrderInformationBillTo. + First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The address1 of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this Ptsv2paymentsOrderInformationBillTo. + First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param address1: The address1 of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if address1 is not None and len(address1) > 60: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") + + self._address1 = address1 + + @property + def address2(self): + """ + Gets the address2 of this Ptsv2paymentsOrderInformationBillTo. + Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The address2 of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._address2 + + @address2.setter + def address2(self, address2): + """ + Sets the address2 of this Ptsv2paymentsOrderInformationBillTo. + Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param address2: The address2 of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if address2 is not None and len(address2) > 60: + raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") + + self._address2 = address2 + + @property + def locality(self): + """ + Gets the locality of this Ptsv2paymentsOrderInformationBillTo. + City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The locality of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Ptsv2paymentsOrderInformationBillTo. + City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param locality: The locality of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if locality is not None and len(locality) > 50: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2paymentsOrderInformationBillTo. + State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The administrative_area of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2paymentsOrderInformationBillTo. + State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param administrative_area: The administrative_area of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 2: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") + + self._administrative_area = administrative_area + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2paymentsOrderInformationBillTo. + Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The postal_code of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2paymentsOrderInformationBillTo. + Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param postal_code: The postal_code of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if postal_code is not None and len(postal_code) > 10: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") + + self._postal_code = postal_code + + @property + def country(self): + """ + Gets the country of this Ptsv2paymentsOrderInformationBillTo. + Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The country of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Ptsv2paymentsOrderInformationBillTo. + Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param country: The country of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def district(self): + """ + Gets the district of this Ptsv2paymentsOrderInformationBillTo. + Customer’s neighborhood, community, or region (a barrio in Brazil) within the city or municipality. This field is available only on **Cielo**. + + :return: The district of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._district + + @district.setter + def district(self, district): + """ + Sets the district of this Ptsv2paymentsOrderInformationBillTo. + Customer’s neighborhood, community, or region (a barrio in Brazil) within the city or municipality. This field is available only on **Cielo**. + + :param district: The district of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if district is not None and len(district) > 50: + raise ValueError("Invalid value for `district`, length must be less than or equal to `50`") + + self._district = district + + @property + def building_number(self): + """ + Gets the building_number of this Ptsv2paymentsOrderInformationBillTo. + Building number in the street address. This field is supported only for: - Cielo transactions. - Redecard customer validation with CyberSource Latin American Processing. + + :return: The building_number of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._building_number + + @building_number.setter + def building_number(self, building_number): + """ + Sets the building_number of this Ptsv2paymentsOrderInformationBillTo. + Building number in the street address. This field is supported only for: - Cielo transactions. - Redecard customer validation with CyberSource Latin American Processing. + + :param building_number: The building_number of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if building_number is not None and len(building_number) > 256: + raise ValueError("Invalid value for `building_number`, length must be less than or equal to `256`") + + self._building_number = building_number + + @property + def email(self): + """ + Gets the email of this Ptsv2paymentsOrderInformationBillTo. + Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The email of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this Ptsv2paymentsOrderInformationBillTo. + Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param email: The email of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if email is not None and len(email) > 255: + raise ValueError("Invalid value for `email`, length must be less than or equal to `255`") + + self._email = email + + @property + def phone_number(self): + """ + Gets the phone_number of this Ptsv2paymentsOrderInformationBillTo. + Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The phone_number of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this Ptsv2paymentsOrderInformationBillTo. + Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param phone_number: The phone_number of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + if phone_number is not None and len(phone_number) > 15: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") + + self._phone_number = phone_number + + @property + def phone_type(self): + """ + Gets the phone_type of this Ptsv2paymentsOrderInformationBillTo. + Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work + + :return: The phone_type of this Ptsv2paymentsOrderInformationBillTo. + :rtype: str + """ + return self._phone_type + + @phone_type.setter + def phone_type(self, phone_type): + """ + Sets the phone_type of this Ptsv2paymentsOrderInformationBillTo. + Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work + + :param phone_type: The phone_type of this Ptsv2paymentsOrderInformationBillTo. + :type: str + """ + allowed_values = ["day", "home", "night", "work"] + if phone_type not in allowed_values: + raise ValueError( + "Invalid value for `phone_type` ({0}), must be one of {1}" + .format(phone_type, allowed_values) + ) + + self._phone_type = phone_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformationBillTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information_invoice_details.py b/CyberSource/models/ptsv2payments_order_information_invoice_details.py new file mode 100644 index 00000000..cc62f043 --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information_invoice_details.py @@ -0,0 +1,413 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformationInvoiceDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'invoice_number': 'str', + 'barcode_number': 'str', + 'expiration_date': 'str', + 'purchase_order_number': 'str', + 'purchase_order_date': 'str', + 'purchase_contact_name': 'str', + 'taxable': 'bool', + 'vat_invoice_reference_number': 'str', + 'commodity_code': 'str', + 'merchandise_code': 'float', + 'transaction_advice_addendum': 'list[Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]' + } + + attribute_map = { + 'invoice_number': 'invoiceNumber', + 'barcode_number': 'barcodeNumber', + 'expiration_date': 'expirationDate', + 'purchase_order_number': 'purchaseOrderNumber', + 'purchase_order_date': 'purchaseOrderDate', + 'purchase_contact_name': 'purchaseContactName', + 'taxable': 'taxable', + 'vat_invoice_reference_number': 'vatInvoiceReferenceNumber', + 'commodity_code': 'commodityCode', + 'merchandise_code': 'merchandiseCode', + 'transaction_advice_addendum': 'transactionAdviceAddendum' + } + + def __init__(self, invoice_number=None, barcode_number=None, expiration_date=None, purchase_order_number=None, purchase_order_date=None, purchase_contact_name=None, taxable=None, vat_invoice_reference_number=None, commodity_code=None, merchandise_code=None, transaction_advice_addendum=None): + """ + Ptsv2paymentsOrderInformationInvoiceDetails - a model defined in Swagger + """ + + self._invoice_number = None + self._barcode_number = None + self._expiration_date = None + self._purchase_order_number = None + self._purchase_order_date = None + self._purchase_contact_name = None + self._taxable = None + self._vat_invoice_reference_number = None + self._commodity_code = None + self._merchandise_code = None + self._transaction_advice_addendum = None + + if invoice_number is not None: + self.invoice_number = invoice_number + if barcode_number is not None: + self.barcode_number = barcode_number + if expiration_date is not None: + self.expiration_date = expiration_date + if purchase_order_number is not None: + self.purchase_order_number = purchase_order_number + if purchase_order_date is not None: + self.purchase_order_date = purchase_order_date + if purchase_contact_name is not None: + self.purchase_contact_name = purchase_contact_name + if taxable is not None: + self.taxable = taxable + if vat_invoice_reference_number is not None: + self.vat_invoice_reference_number = vat_invoice_reference_number + if commodity_code is not None: + self.commodity_code = commodity_code + if merchandise_code is not None: + self.merchandise_code = merchandise_code + if transaction_advice_addendum is not None: + self.transaction_advice_addendum = transaction_advice_addendum + + @property + def invoice_number(self): + """ + Gets the invoice_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + Invoice Number. + + :return: The invoice_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: str + """ + return self._invoice_number + + @invoice_number.setter + def invoice_number(self, invoice_number): + """ + Sets the invoice_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + Invoice Number. + + :param invoice_number: The invoice_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: str + """ + + self._invoice_number = invoice_number + + @property + def barcode_number(self): + """ + Gets the barcode_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + Barcode Number. + + :return: The barcode_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: str + """ + return self._barcode_number + + @barcode_number.setter + def barcode_number(self, barcode_number): + """ + Sets the barcode_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + Barcode Number. + + :param barcode_number: The barcode_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: str + """ + + self._barcode_number = barcode_number + + @property + def expiration_date(self): + """ + Gets the expiration_date of this Ptsv2paymentsOrderInformationInvoiceDetails. + Expiration Date. + + :return: The expiration_date of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: str + """ + return self._expiration_date + + @expiration_date.setter + def expiration_date(self, expiration_date): + """ + Sets the expiration_date of this Ptsv2paymentsOrderInformationInvoiceDetails. + Expiration Date. + + :param expiration_date: The expiration_date of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: str + """ + + self._expiration_date = expiration_date + + @property + def purchase_order_number(self): + """ + Gets the purchase_order_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The purchase_order_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: str + """ + return self._purchase_order_number + + @purchase_order_number.setter + def purchase_order_number(self, purchase_order_number): + """ + Sets the purchase_order_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param purchase_order_number: The purchase_order_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: str + """ + if purchase_order_number is not None and len(purchase_order_number) > 25: + raise ValueError("Invalid value for `purchase_order_number`, length must be less than or equal to `25`") + + self._purchase_order_number = purchase_order_number + + @property + def purchase_order_date(self): + """ + Gets the purchase_order_date of this Ptsv2paymentsOrderInformationInvoiceDetails. + Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The purchase_order_date of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: str + """ + return self._purchase_order_date + + @purchase_order_date.setter + def purchase_order_date(self, purchase_order_date): + """ + Sets the purchase_order_date of this Ptsv2paymentsOrderInformationInvoiceDetails. + Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param purchase_order_date: The purchase_order_date of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: str + """ + if purchase_order_date is not None and len(purchase_order_date) > 10: + raise ValueError("Invalid value for `purchase_order_date`, length must be less than or equal to `10`") + + self._purchase_order_date = purchase_order_date + + @property + def purchase_contact_name(self): + """ + Gets the purchase_contact_name of this Ptsv2paymentsOrderInformationInvoiceDetails. + The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The purchase_contact_name of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: str + """ + return self._purchase_contact_name + + @purchase_contact_name.setter + def purchase_contact_name(self, purchase_contact_name): + """ + Sets the purchase_contact_name of this Ptsv2paymentsOrderInformationInvoiceDetails. + The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param purchase_contact_name: The purchase_contact_name of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: str + """ + if purchase_contact_name is not None and len(purchase_contact_name) > 36: + raise ValueError("Invalid value for `purchase_contact_name`, length must be less than or equal to `36`") + + self._purchase_contact_name = purchase_contact_name + + @property + def taxable(self): + """ + Gets the taxable of this Ptsv2paymentsOrderInformationInvoiceDetails. + Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The taxable of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: bool + """ + return self._taxable + + @taxable.setter + def taxable(self, taxable): + """ + Sets the taxable of this Ptsv2paymentsOrderInformationInvoiceDetails. + Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param taxable: The taxable of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: bool + """ + + self._taxable = taxable + + @property + def vat_invoice_reference_number(self): + """ + Gets the vat_invoice_reference_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The vat_invoice_reference_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: str + """ + return self._vat_invoice_reference_number + + @vat_invoice_reference_number.setter + def vat_invoice_reference_number(self, vat_invoice_reference_number): + """ + Sets the vat_invoice_reference_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param vat_invoice_reference_number: The vat_invoice_reference_number of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: str + """ + if vat_invoice_reference_number is not None and len(vat_invoice_reference_number) > 15: + raise ValueError("Invalid value for `vat_invoice_reference_number`, length must be less than or equal to `15`") + + self._vat_invoice_reference_number = vat_invoice_reference_number + + @property + def commodity_code(self): + """ + Gets the commodity_code of this Ptsv2paymentsOrderInformationInvoiceDetails. + International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The commodity_code of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: str + """ + return self._commodity_code + + @commodity_code.setter + def commodity_code(self, commodity_code): + """ + Sets the commodity_code of this Ptsv2paymentsOrderInformationInvoiceDetails. + International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param commodity_code: The commodity_code of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: str + """ + if commodity_code is not None and len(commodity_code) > 4: + raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `4`") + + self._commodity_code = commodity_code + + @property + def merchandise_code(self): + """ + Gets the merchandise_code of this Ptsv2paymentsOrderInformationInvoiceDetails. + Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. + + :return: The merchandise_code of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: float + """ + return self._merchandise_code + + @merchandise_code.setter + def merchandise_code(self, merchandise_code): + """ + Sets the merchandise_code of this Ptsv2paymentsOrderInformationInvoiceDetails. + Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. + + :param merchandise_code: The merchandise_code of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: float + """ + + self._merchandise_code = merchandise_code + + @property + def transaction_advice_addendum(self): + """ + Gets the transaction_advice_addendum of this Ptsv2paymentsOrderInformationInvoiceDetails. + + :return: The transaction_advice_addendum of this Ptsv2paymentsOrderInformationInvoiceDetails. + :rtype: list[Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] + """ + return self._transaction_advice_addendum + + @transaction_advice_addendum.setter + def transaction_advice_addendum(self, transaction_advice_addendum): + """ + Sets the transaction_advice_addendum of this Ptsv2paymentsOrderInformationInvoiceDetails. + + :param transaction_advice_addendum: The transaction_advice_addendum of this Ptsv2paymentsOrderInformationInvoiceDetails. + :type: list[Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] + """ + + self._transaction_advice_addendum = transaction_advice_addendum + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformationInvoiceDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.py b/CyberSource/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.py new file mode 100644 index 00000000..11e74466 --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data': 'str' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ + Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum - a model defined in Swagger + """ + + self._data = None + + if data is not None: + self.data = data + + @property + def data(self): + """ + Gets the data of this Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum. + Four Transaction Advice Addendum (TAA) fields. These fields are used to display descriptive information about a transaction on the customer’s American Express card statement. When you send TAA fields, start with amexdata_taa1, then ...taa2, and so on. Skipping a TAA field causes subsequent TAA fields to be ignored. To use these fields, contact CyberSource Customer Support to have your account enabled for this feature. + + :return: The data of this Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """ + Sets the data of this Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum. + Four Transaction Advice Addendum (TAA) fields. These fields are used to display descriptive information about a transaction on the customer’s American Express card statement. When you send TAA fields, start with amexdata_taa1, then ...taa2, and so on. Skipping a TAA field causes subsequent TAA fields to be ignored. To use these fields, contact CyberSource Customer Support to have your account enabled for this feature. + + :param data: The data of this Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum. + :type: str + """ + if data is not None and len(data) > 40: + raise ValueError("Invalid value for `data`, length must be less than or equal to `40`") + + self._data = data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information_line_items.py b/CyberSource/models/ptsv2payments_order_information_line_items.py new file mode 100644 index 00000000..2114b759 --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information_line_items.py @@ -0,0 +1,719 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformationLineItems(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'product_code': 'str', + 'product_name': 'str', + 'product_sku': 'str', + 'quantity': 'float', + 'unit_price': 'str', + 'unit_of_measure': 'str', + 'total_amount': 'str', + 'tax_amount': 'str', + 'tax_rate': 'str', + 'tax_applied_after_discount': 'str', + 'tax_status_indicator': 'str', + 'tax_type_code': 'str', + 'amount_includes_tax': 'bool', + 'type_of_supply': 'str', + 'commodity_code': 'str', + 'discount_amount': 'str', + 'discount_applied': 'bool', + 'discount_rate': 'str', + 'invoice_number': 'str', + 'tax_details': 'list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails]', + 'fulfillment_type': 'str' + } + + attribute_map = { + 'product_code': 'productCode', + 'product_name': 'productName', + 'product_sku': 'productSku', + 'quantity': 'quantity', + 'unit_price': 'unitPrice', + 'unit_of_measure': 'unitOfMeasure', + 'total_amount': 'totalAmount', + 'tax_amount': 'taxAmount', + 'tax_rate': 'taxRate', + 'tax_applied_after_discount': 'taxAppliedAfterDiscount', + 'tax_status_indicator': 'taxStatusIndicator', + 'tax_type_code': 'taxTypeCode', + 'amount_includes_tax': 'amountIncludesTax', + 'type_of_supply': 'typeOfSupply', + 'commodity_code': 'commodityCode', + 'discount_amount': 'discountAmount', + 'discount_applied': 'discountApplied', + 'discount_rate': 'discountRate', + 'invoice_number': 'invoiceNumber', + 'tax_details': 'taxDetails', + 'fulfillment_type': 'fulfillmentType' + } + + def __init__(self, product_code=None, product_name=None, product_sku=None, quantity=None, unit_price=None, unit_of_measure=None, total_amount=None, tax_amount=None, tax_rate=None, tax_applied_after_discount=None, tax_status_indicator=None, tax_type_code=None, amount_includes_tax=None, type_of_supply=None, commodity_code=None, discount_amount=None, discount_applied=None, discount_rate=None, invoice_number=None, tax_details=None, fulfillment_type=None): + """ + Ptsv2paymentsOrderInformationLineItems - a model defined in Swagger + """ + + self._product_code = None + self._product_name = None + self._product_sku = None + self._quantity = None + self._unit_price = None + self._unit_of_measure = None + self._total_amount = None + self._tax_amount = None + self._tax_rate = None + self._tax_applied_after_discount = None + self._tax_status_indicator = None + self._tax_type_code = None + self._amount_includes_tax = None + self._type_of_supply = None + self._commodity_code = None + self._discount_amount = None + self._discount_applied = None + self._discount_rate = None + self._invoice_number = None + self._tax_details = None + self._fulfillment_type = None + + if product_code is not None: + self.product_code = product_code + if product_name is not None: + self.product_name = product_name + if product_sku is not None: + self.product_sku = product_sku + if quantity is not None: + self.quantity = quantity + if unit_price is not None: + self.unit_price = unit_price + if unit_of_measure is not None: + self.unit_of_measure = unit_of_measure + if total_amount is not None: + self.total_amount = total_amount + if tax_amount is not None: + self.tax_amount = tax_amount + if tax_rate is not None: + self.tax_rate = tax_rate + if tax_applied_after_discount is not None: + self.tax_applied_after_discount = tax_applied_after_discount + if tax_status_indicator is not None: + self.tax_status_indicator = tax_status_indicator + if tax_type_code is not None: + self.tax_type_code = tax_type_code + if amount_includes_tax is not None: + self.amount_includes_tax = amount_includes_tax + if type_of_supply is not None: + self.type_of_supply = type_of_supply + if commodity_code is not None: + self.commodity_code = commodity_code + if discount_amount is not None: + self.discount_amount = discount_amount + if discount_applied is not None: + self.discount_applied = discount_applied + if discount_rate is not None: + self.discount_rate = discount_rate + if invoice_number is not None: + self.invoice_number = invoice_number + if tax_details is not None: + self.tax_details = tax_details + if fulfillment_type is not None: + self.fulfillment_type = fulfillment_type + + @property + def product_code(self): + """ + Gets the product_code of this Ptsv2paymentsOrderInformationLineItems. + Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. + + :return: The product_code of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._product_code + + @product_code.setter + def product_code(self, product_code): + """ + Sets the product_code of this Ptsv2paymentsOrderInformationLineItems. + Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. + + :param product_code: The product_code of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if product_code is not None and len(product_code) > 255: + raise ValueError("Invalid value for `product_code`, length must be less than or equal to `255`") + + self._product_code = product_code + + @property + def product_name(self): + """ + Gets the product_name of this Ptsv2paymentsOrderInformationLineItems. + For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. + + :return: The product_name of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """ + Sets the product_name of this Ptsv2paymentsOrderInformationLineItems. + For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. + + :param product_name: The product_name of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if product_name is not None and len(product_name) > 255: + raise ValueError("Invalid value for `product_name`, length must be less than or equal to `255`") + + self._product_name = product_name + + @property + def product_sku(self): + """ + Gets the product_sku of this Ptsv2paymentsOrderInformationLineItems. + Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. + + :return: The product_sku of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._product_sku + + @product_sku.setter + def product_sku(self, product_sku): + """ + Sets the product_sku of this Ptsv2paymentsOrderInformationLineItems. + Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. + + :param product_sku: The product_sku of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if product_sku is not None and len(product_sku) > 255: + raise ValueError("Invalid value for `product_sku`, length must be less than or equal to `255`") + + self._product_sku = product_sku + + @property + def quantity(self): + """ + Gets the quantity of this Ptsv2paymentsOrderInformationLineItems. + For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. + + :return: The quantity of this Ptsv2paymentsOrderInformationLineItems. + :rtype: float + """ + return self._quantity + + @quantity.setter + def quantity(self, quantity): + """ + Sets the quantity of this Ptsv2paymentsOrderInformationLineItems. + For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. + + :param quantity: The quantity of this Ptsv2paymentsOrderInformationLineItems. + :type: float + """ + if quantity is not None and quantity > 9999999999: + raise ValueError("Invalid value for `quantity`, must be a value less than or equal to `9999999999`") + if quantity is not None and quantity < 1: + raise ValueError("Invalid value for `quantity`, must be a value greater than or equal to `1`") + + self._quantity = quantity + + @property + def unit_price(self): + """ + Gets the unit_price of this Ptsv2paymentsOrderInformationLineItems. + Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The unit_price of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._unit_price + + @unit_price.setter + def unit_price(self, unit_price): + """ + Sets the unit_price of this Ptsv2paymentsOrderInformationLineItems. + Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param unit_price: The unit_price of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if unit_price is not None and len(unit_price) > 15: + raise ValueError("Invalid value for `unit_price`, length must be less than or equal to `15`") + + self._unit_price = unit_price + + @property + def unit_of_measure(self): + """ + Gets the unit_of_measure of this Ptsv2paymentsOrderInformationLineItems. + Unit of measure, or unit of measure code, for the item. + + :return: The unit_of_measure of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._unit_of_measure + + @unit_of_measure.setter + def unit_of_measure(self, unit_of_measure): + """ + Sets the unit_of_measure of this Ptsv2paymentsOrderInformationLineItems. + Unit of measure, or unit of measure code, for the item. + + :param unit_of_measure: The unit_of_measure of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if unit_of_measure is not None and len(unit_of_measure) > 12: + raise ValueError("Invalid value for `unit_of_measure`, length must be less than or equal to `12`") + + self._unit_of_measure = unit_of_measure + + @property + def total_amount(self): + """ + Gets the total_amount of this Ptsv2paymentsOrderInformationLineItems. + Total amount for the item. Normally calculated as the unit price x quantity. + + :return: The total_amount of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._total_amount + + @total_amount.setter + def total_amount(self, total_amount): + """ + Sets the total_amount of this Ptsv2paymentsOrderInformationLineItems. + Total amount for the item. Normally calculated as the unit price x quantity. + + :param total_amount: The total_amount of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if total_amount is not None and len(total_amount) > 13: + raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `13`") + + self._total_amount = total_amount + + @property + def tax_amount(self): + """ + Gets the tax_amount of this Ptsv2paymentsOrderInformationLineItems. + Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. + + :return: The tax_amount of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._tax_amount + + @tax_amount.setter + def tax_amount(self, tax_amount): + """ + Sets the tax_amount of this Ptsv2paymentsOrderInformationLineItems. + Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. + + :param tax_amount: The tax_amount of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if tax_amount is not None and len(tax_amount) > 15: + raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `15`") + + self._tax_amount = tax_amount + + @property + def tax_rate(self): + """ + Gets the tax_rate of this Ptsv2paymentsOrderInformationLineItems. + Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). + + :return: The tax_rate of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._tax_rate + + @tax_rate.setter + def tax_rate(self, tax_rate): + """ + Sets the tax_rate of this Ptsv2paymentsOrderInformationLineItems. + Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). + + :param tax_rate: The tax_rate of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if tax_rate is not None and len(tax_rate) > 7: + raise ValueError("Invalid value for `tax_rate`, length must be less than or equal to `7`") + + self._tax_rate = tax_rate + + @property + def tax_applied_after_discount(self): + """ + Gets the tax_applied_after_discount of this Ptsv2paymentsOrderInformationLineItems. + Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. + + :return: The tax_applied_after_discount of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._tax_applied_after_discount + + @tax_applied_after_discount.setter + def tax_applied_after_discount(self, tax_applied_after_discount): + """ + Sets the tax_applied_after_discount of this Ptsv2paymentsOrderInformationLineItems. + Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. + + :param tax_applied_after_discount: The tax_applied_after_discount of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if tax_applied_after_discount is not None and len(tax_applied_after_discount) > 1: + raise ValueError("Invalid value for `tax_applied_after_discount`, length must be less than or equal to `1`") + + self._tax_applied_after_discount = tax_applied_after_discount + + @property + def tax_status_indicator(self): + """ + Gets the tax_status_indicator of this Ptsv2paymentsOrderInformationLineItems. + Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax + + :return: The tax_status_indicator of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._tax_status_indicator + + @tax_status_indicator.setter + def tax_status_indicator(self, tax_status_indicator): + """ + Sets the tax_status_indicator of this Ptsv2paymentsOrderInformationLineItems. + Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax + + :param tax_status_indicator: The tax_status_indicator of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if tax_status_indicator is not None and len(tax_status_indicator) > 1: + raise ValueError("Invalid value for `tax_status_indicator`, length must be less than or equal to `1`") + + self._tax_status_indicator = tax_status_indicator + + @property + def tax_type_code(self): + """ + Gets the tax_type_code of this Ptsv2paymentsOrderInformationLineItems. + Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. + + :return: The tax_type_code of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._tax_type_code + + @tax_type_code.setter + def tax_type_code(self, tax_type_code): + """ + Sets the tax_type_code of this Ptsv2paymentsOrderInformationLineItems. + Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. + + :param tax_type_code: The tax_type_code of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if tax_type_code is not None and len(tax_type_code) > 4: + raise ValueError("Invalid value for `tax_type_code`, length must be less than or equal to `4`") + + self._tax_type_code = tax_type_code + + @property + def amount_includes_tax(self): + """ + Gets the amount_includes_tax of this Ptsv2paymentsOrderInformationLineItems. + Flag that indicates whether the tax amount is included in the Line Item Total. + + :return: The amount_includes_tax of this Ptsv2paymentsOrderInformationLineItems. + :rtype: bool + """ + return self._amount_includes_tax + + @amount_includes_tax.setter + def amount_includes_tax(self, amount_includes_tax): + """ + Sets the amount_includes_tax of this Ptsv2paymentsOrderInformationLineItems. + Flag that indicates whether the tax amount is included in the Line Item Total. + + :param amount_includes_tax: The amount_includes_tax of this Ptsv2paymentsOrderInformationLineItems. + :type: bool + """ + + self._amount_includes_tax = amount_includes_tax + + @property + def type_of_supply(self): + """ + Gets the type_of_supply of this Ptsv2paymentsOrderInformationLineItems. + Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services + + :return: The type_of_supply of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._type_of_supply + + @type_of_supply.setter + def type_of_supply(self, type_of_supply): + """ + Sets the type_of_supply of this Ptsv2paymentsOrderInformationLineItems. + Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services + + :param type_of_supply: The type_of_supply of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if type_of_supply is not None and len(type_of_supply) > 2: + raise ValueError("Invalid value for `type_of_supply`, length must be less than or equal to `2`") + + self._type_of_supply = type_of_supply + + @property + def commodity_code(self): + """ + Gets the commodity_code of this Ptsv2paymentsOrderInformationLineItems. + Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. + + :return: The commodity_code of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._commodity_code + + @commodity_code.setter + def commodity_code(self, commodity_code): + """ + Sets the commodity_code of this Ptsv2paymentsOrderInformationLineItems. + Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. + + :param commodity_code: The commodity_code of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if commodity_code is not None and len(commodity_code) > 15: + raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `15`") + + self._commodity_code = commodity_code + + @property + def discount_amount(self): + """ + Gets the discount_amount of this Ptsv2paymentsOrderInformationLineItems. + Discount applied to the item. + + :return: The discount_amount of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._discount_amount + + @discount_amount.setter + def discount_amount(self, discount_amount): + """ + Sets the discount_amount of this Ptsv2paymentsOrderInformationLineItems. + Discount applied to the item. + + :param discount_amount: The discount_amount of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if discount_amount is not None and len(discount_amount) > 13: + raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `13`") + + self._discount_amount = discount_amount + + @property + def discount_applied(self): + """ + Gets the discount_applied of this Ptsv2paymentsOrderInformationLineItems. + Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. + + :return: The discount_applied of this Ptsv2paymentsOrderInformationLineItems. + :rtype: bool + """ + return self._discount_applied + + @discount_applied.setter + def discount_applied(self, discount_applied): + """ + Sets the discount_applied of this Ptsv2paymentsOrderInformationLineItems. + Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. + + :param discount_applied: The discount_applied of this Ptsv2paymentsOrderInformationLineItems. + :type: bool + """ + + self._discount_applied = discount_applied + + @property + def discount_rate(self): + """ + Gets the discount_rate of this Ptsv2paymentsOrderInformationLineItems. + Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) + + :return: The discount_rate of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._discount_rate + + @discount_rate.setter + def discount_rate(self, discount_rate): + """ + Sets the discount_rate of this Ptsv2paymentsOrderInformationLineItems. + Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) + + :param discount_rate: The discount_rate of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if discount_rate is not None and len(discount_rate) > 6: + raise ValueError("Invalid value for `discount_rate`, length must be less than or equal to `6`") + + self._discount_rate = discount_rate + + @property + def invoice_number(self): + """ + Gets the invoice_number of this Ptsv2paymentsOrderInformationLineItems. + Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. + + :return: The invoice_number of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._invoice_number + + @invoice_number.setter + def invoice_number(self, invoice_number): + """ + Sets the invoice_number of this Ptsv2paymentsOrderInformationLineItems. + Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. + + :param invoice_number: The invoice_number of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + if invoice_number is not None and len(invoice_number) > 23: + raise ValueError("Invalid value for `invoice_number`, length must be less than or equal to `23`") + + self._invoice_number = invoice_number + + @property + def tax_details(self): + """ + Gets the tax_details of this Ptsv2paymentsOrderInformationLineItems. + + :return: The tax_details of this Ptsv2paymentsOrderInformationLineItems. + :rtype: list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails] + """ + return self._tax_details + + @tax_details.setter + def tax_details(self, tax_details): + """ + Sets the tax_details of this Ptsv2paymentsOrderInformationLineItems. + + :param tax_details: The tax_details of this Ptsv2paymentsOrderInformationLineItems. + :type: list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails] + """ + + self._tax_details = tax_details + + @property + def fulfillment_type(self): + """ + Gets the fulfillment_type of this Ptsv2paymentsOrderInformationLineItems. + TODO + + :return: The fulfillment_type of this Ptsv2paymentsOrderInformationLineItems. + :rtype: str + """ + return self._fulfillment_type + + @fulfillment_type.setter + def fulfillment_type(self, fulfillment_type): + """ + Sets the fulfillment_type of this Ptsv2paymentsOrderInformationLineItems. + TODO + + :param fulfillment_type: The fulfillment_type of this Ptsv2paymentsOrderInformationLineItems. + :type: str + """ + + self._fulfillment_type = fulfillment_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformationLineItems): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information_ship_to.py b/CyberSource/models/ptsv2payments_order_information_ship_to.py new file mode 100644 index 00000000..35a96c21 --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information_ship_to.py @@ -0,0 +1,457 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformationShipTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first_name': 'str', + 'last_name': 'str', + 'address1': 'str', + 'address2': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'postal_code': 'str', + 'country': 'str', + 'district': 'str', + 'building_number': 'str', + 'phone_number': 'str', + 'company': 'str' + } + + attribute_map = { + 'first_name': 'firstName', + 'last_name': 'lastName', + 'address1': 'address1', + 'address2': 'address2', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'postal_code': 'postalCode', + 'country': 'country', + 'district': 'district', + 'building_number': 'buildingNumber', + 'phone_number': 'phoneNumber', + 'company': 'company' + } + + def __init__(self, first_name=None, last_name=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, country=None, district=None, building_number=None, phone_number=None, company=None): + """ + Ptsv2paymentsOrderInformationShipTo - a model defined in Swagger + """ + + self._first_name = None + self._last_name = None + self._address1 = None + self._address2 = None + self._locality = None + self._administrative_area = None + self._postal_code = None + self._country = None + self._district = None + self._building_number = None + self._phone_number = None + self._company = None + + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if address1 is not None: + self.address1 = address1 + if address2 is not None: + self.address2 = address2 + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if postal_code is not None: + self.postal_code = postal_code + if country is not None: + self.country = country + if district is not None: + self.district = district + if building_number is not None: + self.building_number = building_number + if phone_number is not None: + self.phone_number = phone_number + if company is not None: + self.company = company + + @property + def first_name(self): + """ + Gets the first_name of this Ptsv2paymentsOrderInformationShipTo. + First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :return: The first_name of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this Ptsv2paymentsOrderInformationShipTo. + First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :param first_name: The first_name of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if first_name is not None and len(first_name) > 60: + raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") + + self._first_name = first_name + + @property + def last_name(self): + """ + Gets the last_name of this Ptsv2paymentsOrderInformationShipTo. + Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :return: The last_name of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this Ptsv2paymentsOrderInformationShipTo. + Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :param last_name: The last_name of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if last_name is not None and len(last_name) > 60: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") + + self._last_name = last_name + + @property + def address1(self): + """ + Gets the address1 of this Ptsv2paymentsOrderInformationShipTo. + First line of the shipping address. + + :return: The address1 of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this Ptsv2paymentsOrderInformationShipTo. + First line of the shipping address. + + :param address1: The address1 of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if address1 is not None and len(address1) > 60: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") + + self._address1 = address1 + + @property + def address2(self): + """ + Gets the address2 of this Ptsv2paymentsOrderInformationShipTo. + Second line of the shipping address. + + :return: The address2 of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._address2 + + @address2.setter + def address2(self, address2): + """ + Sets the address2 of this Ptsv2paymentsOrderInformationShipTo. + Second line of the shipping address. + + :param address2: The address2 of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if address2 is not None and len(address2) > 60: + raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") + + self._address2 = address2 + + @property + def locality(self): + """ + Gets the locality of this Ptsv2paymentsOrderInformationShipTo. + City of the shipping address. + + :return: The locality of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Ptsv2paymentsOrderInformationShipTo. + City of the shipping address. + + :param locality: The locality of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if locality is not None and len(locality) > 50: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2paymentsOrderInformationShipTo. + State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. + + :return: The administrative_area of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2paymentsOrderInformationShipTo. + State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. + + :param administrative_area: The administrative_area of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 2: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") + + self._administrative_area = administrative_area + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2paymentsOrderInformationShipTo. + Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 + + :return: The postal_code of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2paymentsOrderInformationShipTo. + Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 + + :param postal_code: The postal_code of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if postal_code is not None and len(postal_code) > 10: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") + + self._postal_code = postal_code + + @property + def country(self): + """ + Gets the country of this Ptsv2paymentsOrderInformationShipTo. + Country of the shipping address. Use the two character ISO Standard Country Codes. + + :return: The country of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Ptsv2paymentsOrderInformationShipTo. + Country of the shipping address. Use the two character ISO Standard Country Codes. + + :param country: The country of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def district(self): + """ + Gets the district of this Ptsv2paymentsOrderInformationShipTo. + Neighborhood, community, or region within a city or municipality. + + :return: The district of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._district + + @district.setter + def district(self, district): + """ + Sets the district of this Ptsv2paymentsOrderInformationShipTo. + Neighborhood, community, or region within a city or municipality. + + :param district: The district of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if district is not None and len(district) > 50: + raise ValueError("Invalid value for `district`, length must be less than or equal to `50`") + + self._district = district + + @property + def building_number(self): + """ + Gets the building_number of this Ptsv2paymentsOrderInformationShipTo. + Building number in the street address. For example, the building number is 187 in the following address: Rua da Quitanda 187 + + :return: The building_number of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._building_number + + @building_number.setter + def building_number(self, building_number): + """ + Sets the building_number of this Ptsv2paymentsOrderInformationShipTo. + Building number in the street address. For example, the building number is 187 in the following address: Rua da Quitanda 187 + + :param building_number: The building_number of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if building_number is not None and len(building_number) > 15: + raise ValueError("Invalid value for `building_number`, length must be less than or equal to `15`") + + self._building_number = building_number + + @property + def phone_number(self): + """ + Gets the phone_number of this Ptsv2paymentsOrderInformationShipTo. + Phone number for the shipping address. + + :return: The phone_number of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this Ptsv2paymentsOrderInformationShipTo. + Phone number for the shipping address. + + :param phone_number: The phone_number of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if phone_number is not None and len(phone_number) > 15: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") + + self._phone_number = phone_number + + @property + def company(self): + """ + Gets the company of this Ptsv2paymentsOrderInformationShipTo. + Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The company of this Ptsv2paymentsOrderInformationShipTo. + :rtype: str + """ + return self._company + + @company.setter + def company(self, company): + """ + Sets the company of this Ptsv2paymentsOrderInformationShipTo. + Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param company: The company of this Ptsv2paymentsOrderInformationShipTo. + :type: str + """ + if company is not None and len(company) > 60: + raise ValueError("Invalid value for `company`, length must be less than or equal to `60`") + + self._company = company + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformationShipTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_order_information_shipping_details.py b/CyberSource/models/ptsv2payments_order_information_shipping_details.py new file mode 100644 index 00000000..b187b6a1 --- /dev/null +++ b/CyberSource/models/ptsv2payments_order_information_shipping_details.py @@ -0,0 +1,185 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsOrderInformationShippingDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'gift_wrap': 'bool', + 'shipping_method': 'str', + 'ship_from_postal_code': 'str' + } + + attribute_map = { + 'gift_wrap': 'giftWrap', + 'shipping_method': 'shippingMethod', + 'ship_from_postal_code': 'shipFromPostalCode' + } + + def __init__(self, gift_wrap=None, shipping_method=None, ship_from_postal_code=None): + """ + Ptsv2paymentsOrderInformationShippingDetails - a model defined in Swagger + """ + + self._gift_wrap = None + self._shipping_method = None + self._ship_from_postal_code = None + + if gift_wrap is not None: + self.gift_wrap = gift_wrap + if shipping_method is not None: + self.shipping_method = shipping_method + if ship_from_postal_code is not None: + self.ship_from_postal_code = ship_from_postal_code + + @property + def gift_wrap(self): + """ + Gets the gift_wrap of this Ptsv2paymentsOrderInformationShippingDetails. + Description of this field is not available. + + :return: The gift_wrap of this Ptsv2paymentsOrderInformationShippingDetails. + :rtype: bool + """ + return self._gift_wrap + + @gift_wrap.setter + def gift_wrap(self, gift_wrap): + """ + Sets the gift_wrap of this Ptsv2paymentsOrderInformationShippingDetails. + Description of this field is not available. + + :param gift_wrap: The gift_wrap of this Ptsv2paymentsOrderInformationShippingDetails. + :type: bool + """ + + self._gift_wrap = gift_wrap + + @property + def shipping_method(self): + """ + Gets the shipping_method of this Ptsv2paymentsOrderInformationShippingDetails. + Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription + + :return: The shipping_method of this Ptsv2paymentsOrderInformationShippingDetails. + :rtype: str + """ + return self._shipping_method + + @shipping_method.setter + def shipping_method(self, shipping_method): + """ + Sets the shipping_method of this Ptsv2paymentsOrderInformationShippingDetails. + Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription + + :param shipping_method: The shipping_method of this Ptsv2paymentsOrderInformationShippingDetails. + :type: str + """ + if shipping_method is not None and len(shipping_method) > 10: + raise ValueError("Invalid value for `shipping_method`, length must be less than or equal to `10`") + + self._shipping_method = shipping_method + + @property + def ship_from_postal_code(self): + """ + Gets the ship_from_postal_code of this Ptsv2paymentsOrderInformationShippingDetails. + Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. + + :return: The ship_from_postal_code of this Ptsv2paymentsOrderInformationShippingDetails. + :rtype: str + """ + return self._ship_from_postal_code + + @ship_from_postal_code.setter + def ship_from_postal_code(self, ship_from_postal_code): + """ + Sets the ship_from_postal_code of this Ptsv2paymentsOrderInformationShippingDetails. + Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. + + :param ship_from_postal_code: The ship_from_postal_code of this Ptsv2paymentsOrderInformationShippingDetails. + :type: str + """ + if ship_from_postal_code is not None and len(ship_from_postal_code) > 10: + raise ValueError("Invalid value for `ship_from_postal_code`, length must be less than or equal to `10`") + + self._ship_from_postal_code = ship_from_postal_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsOrderInformationShippingDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_payment_information.py b/CyberSource/models/ptsv2payments_payment_information.py new file mode 100644 index 00000000..28cb2745 --- /dev/null +++ b/CyberSource/models/ptsv2payments_payment_information.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsPaymentInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'card': 'Ptsv2paymentsPaymentInformationCard', + 'tokenized_card': 'Ptsv2paymentsPaymentInformationTokenizedCard', + 'fluid_data': 'Ptsv2paymentsPaymentInformationFluidData', + 'customer': 'Ptsv2paymentsPaymentInformationCustomer' + } + + attribute_map = { + 'card': 'card', + 'tokenized_card': 'tokenizedCard', + 'fluid_data': 'fluidData', + 'customer': 'customer' + } + + def __init__(self, card=None, tokenized_card=None, fluid_data=None, customer=None): + """ + Ptsv2paymentsPaymentInformation - a model defined in Swagger + """ + + self._card = None + self._tokenized_card = None + self._fluid_data = None + self._customer = None + + if card is not None: + self.card = card + if tokenized_card is not None: + self.tokenized_card = tokenized_card + if fluid_data is not None: + self.fluid_data = fluid_data + if customer is not None: + self.customer = customer + + @property + def card(self): + """ + Gets the card of this Ptsv2paymentsPaymentInformation. + + :return: The card of this Ptsv2paymentsPaymentInformation. + :rtype: Ptsv2paymentsPaymentInformationCard + """ + return self._card + + @card.setter + def card(self, card): + """ + Sets the card of this Ptsv2paymentsPaymentInformation. + + :param card: The card of this Ptsv2paymentsPaymentInformation. + :type: Ptsv2paymentsPaymentInformationCard + """ + + self._card = card + + @property + def tokenized_card(self): + """ + Gets the tokenized_card of this Ptsv2paymentsPaymentInformation. + + :return: The tokenized_card of this Ptsv2paymentsPaymentInformation. + :rtype: Ptsv2paymentsPaymentInformationTokenizedCard + """ + return self._tokenized_card + + @tokenized_card.setter + def tokenized_card(self, tokenized_card): + """ + Sets the tokenized_card of this Ptsv2paymentsPaymentInformation. + + :param tokenized_card: The tokenized_card of this Ptsv2paymentsPaymentInformation. + :type: Ptsv2paymentsPaymentInformationTokenizedCard + """ + + self._tokenized_card = tokenized_card + + @property + def fluid_data(self): + """ + Gets the fluid_data of this Ptsv2paymentsPaymentInformation. + + :return: The fluid_data of this Ptsv2paymentsPaymentInformation. + :rtype: Ptsv2paymentsPaymentInformationFluidData + """ + return self._fluid_data + + @fluid_data.setter + def fluid_data(self, fluid_data): + """ + Sets the fluid_data of this Ptsv2paymentsPaymentInformation. + + :param fluid_data: The fluid_data of this Ptsv2paymentsPaymentInformation. + :type: Ptsv2paymentsPaymentInformationFluidData + """ + + self._fluid_data = fluid_data + + @property + def customer(self): + """ + Gets the customer of this Ptsv2paymentsPaymentInformation. + + :return: The customer of this Ptsv2paymentsPaymentInformation. + :rtype: Ptsv2paymentsPaymentInformationCustomer + """ + return self._customer + + @customer.setter + def customer(self, customer): + """ + Sets the customer of this Ptsv2paymentsPaymentInformation. + + :param customer: The customer of this Ptsv2paymentsPaymentInformation. + :type: Ptsv2paymentsPaymentInformationCustomer + """ + + self._customer = customer + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsPaymentInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_payment_information_card.py b/CyberSource/models/ptsv2payments_payment_information_card.py new file mode 100644 index 00000000..96f8dfb9 --- /dev/null +++ b/CyberSource/models/ptsv2payments_payment_information_card.py @@ -0,0 +1,457 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsPaymentInformationCard(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'number': 'str', + 'expiration_month': 'str', + 'expiration_year': 'str', + 'type': 'str', + 'use_as': 'str', + 'source_account_type': 'str', + 'security_code': 'str', + 'security_code_indicator': 'str', + 'account_encoder_id': 'str', + 'issue_number': 'str', + 'start_month': 'str', + 'start_year': 'str' + } + + attribute_map = { + 'number': 'number', + 'expiration_month': 'expirationMonth', + 'expiration_year': 'expirationYear', + 'type': 'type', + 'use_as': 'useAs', + 'source_account_type': 'sourceAccountType', + 'security_code': 'securityCode', + 'security_code_indicator': 'securityCodeIndicator', + 'account_encoder_id': 'accountEncoderId', + 'issue_number': 'issueNumber', + 'start_month': 'startMonth', + 'start_year': 'startYear' + } + + def __init__(self, number=None, expiration_month=None, expiration_year=None, type=None, use_as=None, source_account_type=None, security_code=None, security_code_indicator=None, account_encoder_id=None, issue_number=None, start_month=None, start_year=None): + """ + Ptsv2paymentsPaymentInformationCard - a model defined in Swagger + """ + + self._number = None + self._expiration_month = None + self._expiration_year = None + self._type = None + self._use_as = None + self._source_account_type = None + self._security_code = None + self._security_code_indicator = None + self._account_encoder_id = None + self._issue_number = None + self._start_month = None + self._start_year = None + + if number is not None: + self.number = number + if expiration_month is not None: + self.expiration_month = expiration_month + if expiration_year is not None: + self.expiration_year = expiration_year + if type is not None: + self.type = type + if use_as is not None: + self.use_as = use_as + if source_account_type is not None: + self.source_account_type = source_account_type + if security_code is not None: + self.security_code = security_code + if security_code_indicator is not None: + self.security_code_indicator = security_code_indicator + if account_encoder_id is not None: + self.account_encoder_id = account_encoder_id + if issue_number is not None: + self.issue_number = issue_number + if start_month is not None: + self.start_month = start_month + if start_year is not None: + self.start_year = start_year + + @property + def number(self): + """ + Gets the number of this Ptsv2paymentsPaymentInformationCard. + Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The number of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """ + Sets the number of this Ptsv2paymentsPaymentInformationCard. + Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param number: The number of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if number is not None and len(number) > 20: + raise ValueError("Invalid value for `number`, length must be less than or equal to `20`") + + self._number = number + + @property + def expiration_month(self): + """ + Gets the expiration_month of this Ptsv2paymentsPaymentInformationCard. + Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The expiration_month of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._expiration_month + + @expiration_month.setter + def expiration_month(self, expiration_month): + """ + Sets the expiration_month of this Ptsv2paymentsPaymentInformationCard. + Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param expiration_month: The expiration_month of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if expiration_month is not None and len(expiration_month) > 2: + raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") + + self._expiration_month = expiration_month + + @property + def expiration_year(self): + """ + Gets the expiration_year of this Ptsv2paymentsPaymentInformationCard. + Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The expiration_year of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._expiration_year + + @expiration_year.setter + def expiration_year(self, expiration_year): + """ + Sets the expiration_year of this Ptsv2paymentsPaymentInformationCard. + Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param expiration_year: The expiration_year of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if expiration_year is not None and len(expiration_year) > 4: + raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") + + self._expiration_year = expiration_year + + @property + def type(self): + """ + Gets the type of this Ptsv2paymentsPaymentInformationCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :return: The type of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Ptsv2paymentsPaymentInformationCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :param type: The type of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if type is not None and len(type) > 3: + raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") + + self._type = type + + @property + def use_as(self): + """ + Gets the use_as of this Ptsv2paymentsPaymentInformationCard. + Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. + + :return: The use_as of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._use_as + + @use_as.setter + def use_as(self, use_as): + """ + Sets the use_as of this Ptsv2paymentsPaymentInformationCard. + Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. + + :param use_as: The use_as of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if use_as is not None and len(use_as) > 2: + raise ValueError("Invalid value for `use_as`, length must be less than or equal to `2`") + + self._use_as = use_as + + @property + def source_account_type(self): + """ + Gets the source_account_type of this Ptsv2paymentsPaymentInformationCard. + Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account + + :return: The source_account_type of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._source_account_type + + @source_account_type.setter + def source_account_type(self, source_account_type): + """ + Sets the source_account_type of this Ptsv2paymentsPaymentInformationCard. + Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account + + :param source_account_type: The source_account_type of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if source_account_type is not None and len(source_account_type) > 2: + raise ValueError("Invalid value for `source_account_type`, length must be less than or equal to `2`") + + self._source_account_type = source_account_type + + @property + def security_code(self): + """ + Gets the security_code of this Ptsv2paymentsPaymentInformationCard. + Card Verification Number. + + :return: The security_code of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._security_code + + @security_code.setter + def security_code(self, security_code): + """ + Sets the security_code of this Ptsv2paymentsPaymentInformationCard. + Card Verification Number. + + :param security_code: The security_code of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if security_code is not None and len(security_code) > 4: + raise ValueError("Invalid value for `security_code`, length must be less than or equal to `4`") + + self._security_code = security_code + + @property + def security_code_indicator(self): + """ + Gets the security_code_indicator of this Ptsv2paymentsPaymentInformationCard. + Flag that indicates whether a CVN code was sent. Possible values: - 0 (default): CVN service not requested. CyberSource uses this default value when you do not include _securityCode_ in the request. - 1 (default): CVN service requested and supported. CyberSource uses this default value when you include _securityCode_ in the request. - 2: CVN on credit card is illegible. - 9: CVN was not imprinted on credit card. + + :return: The security_code_indicator of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._security_code_indicator + + @security_code_indicator.setter + def security_code_indicator(self, security_code_indicator): + """ + Sets the security_code_indicator of this Ptsv2paymentsPaymentInformationCard. + Flag that indicates whether a CVN code was sent. Possible values: - 0 (default): CVN service not requested. CyberSource uses this default value when you do not include _securityCode_ in the request. - 1 (default): CVN service requested and supported. CyberSource uses this default value when you include _securityCode_ in the request. - 2: CVN on credit card is illegible. - 9: CVN was not imprinted on credit card. + + :param security_code_indicator: The security_code_indicator of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if security_code_indicator is not None and len(security_code_indicator) > 1: + raise ValueError("Invalid value for `security_code_indicator`, length must be less than or equal to `1`") + + self._security_code_indicator = security_code_indicator + + @property + def account_encoder_id(self): + """ + Gets the account_encoder_id of this Ptsv2paymentsPaymentInformationCard. + Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. + + :return: The account_encoder_id of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._account_encoder_id + + @account_encoder_id.setter + def account_encoder_id(self, account_encoder_id): + """ + Sets the account_encoder_id of this Ptsv2paymentsPaymentInformationCard. + Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. + + :param account_encoder_id: The account_encoder_id of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if account_encoder_id is not None and len(account_encoder_id) > 3: + raise ValueError("Invalid value for `account_encoder_id`, length must be less than or equal to `3`") + + self._account_encoder_id = account_encoder_id + + @property + def issue_number(self): + """ + Gets the issue_number of this Ptsv2paymentsPaymentInformationCard. + Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. + + :return: The issue_number of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._issue_number + + @issue_number.setter + def issue_number(self, issue_number): + """ + Sets the issue_number of this Ptsv2paymentsPaymentInformationCard. + Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. + + :param issue_number: The issue_number of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if issue_number is not None and len(issue_number) > 5: + raise ValueError("Invalid value for `issue_number`, length must be less than or equal to `5`") + + self._issue_number = issue_number + + @property + def start_month(self): + """ + Gets the start_month of this Ptsv2paymentsPaymentInformationCard. + Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. + + :return: The start_month of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._start_month + + @start_month.setter + def start_month(self, start_month): + """ + Sets the start_month of this Ptsv2paymentsPaymentInformationCard. + Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. + + :param start_month: The start_month of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if start_month is not None and len(start_month) > 2: + raise ValueError("Invalid value for `start_month`, length must be less than or equal to `2`") + + self._start_month = start_month + + @property + def start_year(self): + """ + Gets the start_year of this Ptsv2paymentsPaymentInformationCard. + Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. + + :return: The start_year of this Ptsv2paymentsPaymentInformationCard. + :rtype: str + """ + return self._start_year + + @start_year.setter + def start_year(self, start_year): + """ + Sets the start_year of this Ptsv2paymentsPaymentInformationCard. + Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. + + :param start_year: The start_year of this Ptsv2paymentsPaymentInformationCard. + :type: str + """ + if start_year is not None and len(start_year) > 4: + raise ValueError("Invalid value for `start_year`, length must be less than or equal to `4`") + + self._start_year = start_year + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsPaymentInformationCard): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_payment_information_customer.py b/CyberSource/models/ptsv2payments_payment_information_customer.py new file mode 100644 index 00000000..56c8e8eb --- /dev/null +++ b/CyberSource/models/ptsv2payments_payment_information_customer.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsPaymentInformationCustomer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'customer_id': 'str' + } + + attribute_map = { + 'customer_id': 'customerId' + } + + def __init__(self, customer_id=None): + """ + Ptsv2paymentsPaymentInformationCustomer - a model defined in Swagger + """ + + self._customer_id = None + + if customer_id is not None: + self.customer_id = customer_id + + @property + def customer_id(self): + """ + Gets the customer_id of this Ptsv2paymentsPaymentInformationCustomer. + Unique identifier for the customer's card and billing information. + + :return: The customer_id of this Ptsv2paymentsPaymentInformationCustomer. + :rtype: str + """ + return self._customer_id + + @customer_id.setter + def customer_id(self, customer_id): + """ + Sets the customer_id of this Ptsv2paymentsPaymentInformationCustomer. + Unique identifier for the customer's card and billing information. + + :param customer_id: The customer_id of this Ptsv2paymentsPaymentInformationCustomer. + :type: str + """ + if customer_id is not None and len(customer_id) > 26: + raise ValueError("Invalid value for `customer_id`, length must be less than or equal to `26`") + + self._customer_id = customer_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsPaymentInformationCustomer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_payment_information_fluid_data.py b/CyberSource/models/ptsv2payments_payment_information_fluid_data.py new file mode 100644 index 00000000..02b4d2b2 --- /dev/null +++ b/CyberSource/models/ptsv2payments_payment_information_fluid_data.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsPaymentInformationFluidData(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key': 'str', + 'descriptor': 'str', + 'value': 'str', + 'encoding': 'str' + } + + attribute_map = { + 'key': 'key', + 'descriptor': 'descriptor', + 'value': 'value', + 'encoding': 'encoding' + } + + def __init__(self, key=None, descriptor=None, value=None, encoding=None): + """ + Ptsv2paymentsPaymentInformationFluidData - a model defined in Swagger + """ + + self._key = None + self._descriptor = None + self._value = None + self._encoding = None + + if key is not None: + self.key = key + if descriptor is not None: + self.descriptor = descriptor + if value is not None: + self.value = value + if encoding is not None: + self.encoding = encoding + + @property + def key(self): + """ + Gets the key of this Ptsv2paymentsPaymentInformationFluidData. + Description of this field is not available. + + :return: The key of this Ptsv2paymentsPaymentInformationFluidData. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this Ptsv2paymentsPaymentInformationFluidData. + Description of this field is not available. + + :param key: The key of this Ptsv2paymentsPaymentInformationFluidData. + :type: str + """ + + self._key = key + + @property + def descriptor(self): + """ + Gets the descriptor of this Ptsv2paymentsPaymentInformationFluidData. + Format of the encrypted payment data. + + :return: The descriptor of this Ptsv2paymentsPaymentInformationFluidData. + :rtype: str + """ + return self._descriptor + + @descriptor.setter + def descriptor(self, descriptor): + """ + Sets the descriptor of this Ptsv2paymentsPaymentInformationFluidData. + Format of the encrypted payment data. + + :param descriptor: The descriptor of this Ptsv2paymentsPaymentInformationFluidData. + :type: str + """ + if descriptor is not None and len(descriptor) > 128: + raise ValueError("Invalid value for `descriptor`, length must be less than or equal to `128`") + + self._descriptor = descriptor + + @property + def value(self): + """ + Gets the value of this Ptsv2paymentsPaymentInformationFluidData. + The encrypted payment data value. If using Apple Pay or Samsung Pay, the values are: - Apple Pay: RklEPUNPTU1PTi5BUFBMRS5JTkFQUC5QQVlNRU5U - Samsung Pay: RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ= + + :return: The value of this Ptsv2paymentsPaymentInformationFluidData. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this Ptsv2paymentsPaymentInformationFluidData. + The encrypted payment data value. If using Apple Pay or Samsung Pay, the values are: - Apple Pay: RklEPUNPTU1PTi5BUFBMRS5JTkFQUC5QQVlNRU5U - Samsung Pay: RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ= + + :param value: The value of this Ptsv2paymentsPaymentInformationFluidData. + :type: str + """ + if value is not None and len(value) > 3072: + raise ValueError("Invalid value for `value`, length must be less than or equal to `3072`") + + self._value = value + + @property + def encoding(self): + """ + Gets the encoding of this Ptsv2paymentsPaymentInformationFluidData. + Encoding method used to encrypt the payment data. Possible value: Base64 + + :return: The encoding of this Ptsv2paymentsPaymentInformationFluidData. + :rtype: str + """ + return self._encoding + + @encoding.setter + def encoding(self, encoding): + """ + Sets the encoding of this Ptsv2paymentsPaymentInformationFluidData. + Encoding method used to encrypt the payment data. Possible value: Base64 + + :param encoding: The encoding of this Ptsv2paymentsPaymentInformationFluidData. + :type: str + """ + if encoding is not None and len(encoding) > 6: + raise ValueError("Invalid value for `encoding`, length must be less than or equal to `6`") + + self._encoding = encoding + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsPaymentInformationFluidData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_payment_information_tokenized_card.py b/CyberSource/models/ptsv2payments_payment_information_tokenized_card.py new file mode 100644 index 00000000..791ead7f --- /dev/null +++ b/CyberSource/models/ptsv2payments_payment_information_tokenized_card.py @@ -0,0 +1,397 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsPaymentInformationTokenizedCard(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'number': 'str', + 'expiration_month': 'str', + 'expiration_year': 'str', + 'type': 'str', + 'cryptogram': 'str', + 'requestor_id': 'str', + 'transaction_type': 'str', + 'assurance_level': 'str', + 'storage_method': 'str', + 'security_code': 'str' + } + + attribute_map = { + 'number': 'number', + 'expiration_month': 'expirationMonth', + 'expiration_year': 'expirationYear', + 'type': 'type', + 'cryptogram': 'cryptogram', + 'requestor_id': 'requestorId', + 'transaction_type': 'transactionType', + 'assurance_level': 'assuranceLevel', + 'storage_method': 'storageMethod', + 'security_code': 'securityCode' + } + + def __init__(self, number=None, expiration_month=None, expiration_year=None, type=None, cryptogram=None, requestor_id=None, transaction_type=None, assurance_level=None, storage_method=None, security_code=None): + """ + Ptsv2paymentsPaymentInformationTokenizedCard - a model defined in Swagger + """ + + self._number = None + self._expiration_month = None + self._expiration_year = None + self._type = None + self._cryptogram = None + self._requestor_id = None + self._transaction_type = None + self._assurance_level = None + self._storage_method = None + self._security_code = None + + if number is not None: + self.number = number + if expiration_month is not None: + self.expiration_month = expiration_month + if expiration_year is not None: + self.expiration_year = expiration_year + if type is not None: + self.type = type + if cryptogram is not None: + self.cryptogram = cryptogram + if requestor_id is not None: + self.requestor_id = requestor_id + if transaction_type is not None: + self.transaction_type = transaction_type + if assurance_level is not None: + self.assurance_level = assurance_level + if storage_method is not None: + self.storage_method = storage_method + if security_code is not None: + self.security_code = security_code + + @property + def number(self): + """ + Gets the number of this Ptsv2paymentsPaymentInformationTokenizedCard. + Customer’s payment network token value. + + :return: The number of this Ptsv2paymentsPaymentInformationTokenizedCard. + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """ + Sets the number of this Ptsv2paymentsPaymentInformationTokenizedCard. + Customer’s payment network token value. + + :param number: The number of this Ptsv2paymentsPaymentInformationTokenizedCard. + :type: str + """ + if number is not None and len(number) > 20: + raise ValueError("Invalid value for `number`, length must be less than or equal to `20`") + + self._number = number + + @property + def expiration_month(self): + """ + Gets the expiration_month of this Ptsv2paymentsPaymentInformationTokenizedCard. + Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. + + :return: The expiration_month of this Ptsv2paymentsPaymentInformationTokenizedCard. + :rtype: str + """ + return self._expiration_month + + @expiration_month.setter + def expiration_month(self, expiration_month): + """ + Sets the expiration_month of this Ptsv2paymentsPaymentInformationTokenizedCard. + Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. + + :param expiration_month: The expiration_month of this Ptsv2paymentsPaymentInformationTokenizedCard. + :type: str + """ + if expiration_month is not None and len(expiration_month) > 2: + raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") + + self._expiration_month = expiration_month + + @property + def expiration_year(self): + """ + Gets the expiration_year of this Ptsv2paymentsPaymentInformationTokenizedCard. + Four-digit year in which the payment network token expires. `Format: YYYY`. + + :return: The expiration_year of this Ptsv2paymentsPaymentInformationTokenizedCard. + :rtype: str + """ + return self._expiration_year + + @expiration_year.setter + def expiration_year(self, expiration_year): + """ + Sets the expiration_year of this Ptsv2paymentsPaymentInformationTokenizedCard. + Four-digit year in which the payment network token expires. `Format: YYYY`. + + :param expiration_year: The expiration_year of this Ptsv2paymentsPaymentInformationTokenizedCard. + :type: str + """ + if expiration_year is not None and len(expiration_year) > 4: + raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") + + self._expiration_year = expiration_year + + @property + def type(self): + """ + Gets the type of this Ptsv2paymentsPaymentInformationTokenizedCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :return: The type of this Ptsv2paymentsPaymentInformationTokenizedCard. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Ptsv2paymentsPaymentInformationTokenizedCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :param type: The type of this Ptsv2paymentsPaymentInformationTokenizedCard. + :type: str + """ + if type is not None and len(type) > 3: + raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") + + self._type = type + + @property + def cryptogram(self): + """ + Gets the cryptogram of this Ptsv2paymentsPaymentInformationTokenizedCard. + This field is used internally. + + :return: The cryptogram of this Ptsv2paymentsPaymentInformationTokenizedCard. + :rtype: str + """ + return self._cryptogram + + @cryptogram.setter + def cryptogram(self, cryptogram): + """ + Sets the cryptogram of this Ptsv2paymentsPaymentInformationTokenizedCard. + This field is used internally. + + :param cryptogram: The cryptogram of this Ptsv2paymentsPaymentInformationTokenizedCard. + :type: str + """ + if cryptogram is not None and len(cryptogram) > 40: + raise ValueError("Invalid value for `cryptogram`, length must be less than or equal to `40`") + + self._cryptogram = cryptogram + + @property + def requestor_id(self): + """ + Gets the requestor_id of this Ptsv2paymentsPaymentInformationTokenizedCard. + Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. + + :return: The requestor_id of this Ptsv2paymentsPaymentInformationTokenizedCard. + :rtype: str + """ + return self._requestor_id + + @requestor_id.setter + def requestor_id(self, requestor_id): + """ + Sets the requestor_id of this Ptsv2paymentsPaymentInformationTokenizedCard. + Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. + + :param requestor_id: The requestor_id of this Ptsv2paymentsPaymentInformationTokenizedCard. + :type: str + """ + if requestor_id is not None and len(requestor_id) > 11: + raise ValueError("Invalid value for `requestor_id`, length must be less than or equal to `11`") + + self._requestor_id = requestor_id + + @property + def transaction_type(self): + """ + Gets the transaction_type of this Ptsv2paymentsPaymentInformationTokenizedCard. + Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data. + + :return: The transaction_type of this Ptsv2paymentsPaymentInformationTokenizedCard. + :rtype: str + """ + return self._transaction_type + + @transaction_type.setter + def transaction_type(self, transaction_type): + """ + Sets the transaction_type of this Ptsv2paymentsPaymentInformationTokenizedCard. + Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data. + + :param transaction_type: The transaction_type of this Ptsv2paymentsPaymentInformationTokenizedCard. + :type: str + """ + if transaction_type is not None and len(transaction_type) > 1: + raise ValueError("Invalid value for `transaction_type`, length must be less than or equal to `1`") + + self._transaction_type = transaction_type + + @property + def assurance_level(self): + """ + Gets the assurance_level of this Ptsv2paymentsPaymentInformationTokenizedCard. + Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. + + :return: The assurance_level of this Ptsv2paymentsPaymentInformationTokenizedCard. + :rtype: str + """ + return self._assurance_level + + @assurance_level.setter + def assurance_level(self, assurance_level): + """ + Sets the assurance_level of this Ptsv2paymentsPaymentInformationTokenizedCard. + Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. + + :param assurance_level: The assurance_level of this Ptsv2paymentsPaymentInformationTokenizedCard. + :type: str + """ + if assurance_level is not None and len(assurance_level) > 2: + raise ValueError("Invalid value for `assurance_level`, length must be less than or equal to `2`") + + self._assurance_level = assurance_level + + @property + def storage_method(self): + """ + Gets the storage_method of this Ptsv2paymentsPaymentInformationTokenizedCard. + Type of technology used in the device to store token data. Possible values: - 001: Secure Element (SE) Smart card or memory with restricted access and encryption to prevent data tampering. For storing payment credentials, a SE is tested against a set of requirements defined by the payment networks. `Note` This field is supported only for **FDC Compass**. - 002: Host Card Emulation (HCE) Emulation of a smart card by using software to create a virtual and exact representation of the card. Sensitive data is stored in a database that is hosted in the cloud. For storing payment credentials, a database must meet very stringent security requirements that exceed PCI DSS. `Note` This field is supported only for **FDC Compass**. + + :return: The storage_method of this Ptsv2paymentsPaymentInformationTokenizedCard. + :rtype: str + """ + return self._storage_method + + @storage_method.setter + def storage_method(self, storage_method): + """ + Sets the storage_method of this Ptsv2paymentsPaymentInformationTokenizedCard. + Type of technology used in the device to store token data. Possible values: - 001: Secure Element (SE) Smart card or memory with restricted access and encryption to prevent data tampering. For storing payment credentials, a SE is tested against a set of requirements defined by the payment networks. `Note` This field is supported only for **FDC Compass**. - 002: Host Card Emulation (HCE) Emulation of a smart card by using software to create a virtual and exact representation of the card. Sensitive data is stored in a database that is hosted in the cloud. For storing payment credentials, a database must meet very stringent security requirements that exceed PCI DSS. `Note` This field is supported only for **FDC Compass**. + + :param storage_method: The storage_method of this Ptsv2paymentsPaymentInformationTokenizedCard. + :type: str + """ + if storage_method is not None and len(storage_method) > 3: + raise ValueError("Invalid value for `storage_method`, length must be less than or equal to `3`") + + self._storage_method = storage_method + + @property + def security_code(self): + """ + Gets the security_code of this Ptsv2paymentsPaymentInformationTokenizedCard. + CVN. + + :return: The security_code of this Ptsv2paymentsPaymentInformationTokenizedCard. + :rtype: str + """ + return self._security_code + + @security_code.setter + def security_code(self, security_code): + """ + Sets the security_code of this Ptsv2paymentsPaymentInformationTokenizedCard. + CVN. + + :param security_code: The security_code of this Ptsv2paymentsPaymentInformationTokenizedCard. + :type: str + """ + if security_code is not None and len(security_code) > 4: + raise ValueError("Invalid value for `security_code`, length must be less than or equal to `4`") + + self._security_code = security_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsPaymentInformationTokenizedCard): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_point_of_sale_information.py b/CyberSource/models/ptsv2payments_point_of_sale_information.py new file mode 100644 index 00000000..29a6fae3 --- /dev/null +++ b/CyberSource/models/ptsv2payments_point_of_sale_information.py @@ -0,0 +1,453 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsPointOfSaleInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'terminal_id': 'str', + 'terminal_serial_number': 'str', + 'lane_number': 'str', + 'card_present': 'bool', + 'cat_level': 'int', + 'entry_mode': 'str', + 'terminal_capability': 'int', + 'pin_entry_capability': 'int', + 'operating_environment': 'str', + 'emv': 'Ptsv2paymentsPointOfSaleInformationEmv', + 'amex_capn_data': 'str', + 'track_data': 'str' + } + + attribute_map = { + 'terminal_id': 'terminalId', + 'terminal_serial_number': 'terminalSerialNumber', + 'lane_number': 'laneNumber', + 'card_present': 'cardPresent', + 'cat_level': 'catLevel', + 'entry_mode': 'entryMode', + 'terminal_capability': 'terminalCapability', + 'pin_entry_capability': 'pinEntryCapability', + 'operating_environment': 'operatingEnvironment', + 'emv': 'emv', + 'amex_capn_data': 'amexCapnData', + 'track_data': 'trackData' + } + + def __init__(self, terminal_id=None, terminal_serial_number=None, lane_number=None, card_present=None, cat_level=None, entry_mode=None, terminal_capability=None, pin_entry_capability=None, operating_environment=None, emv=None, amex_capn_data=None, track_data=None): + """ + Ptsv2paymentsPointOfSaleInformation - a model defined in Swagger + """ + + self._terminal_id = None + self._terminal_serial_number = None + self._lane_number = None + self._card_present = None + self._cat_level = None + self._entry_mode = None + self._terminal_capability = None + self._pin_entry_capability = None + self._operating_environment = None + self._emv = None + self._amex_capn_data = None + self._track_data = None + + if terminal_id is not None: + self.terminal_id = terminal_id + if terminal_serial_number is not None: + self.terminal_serial_number = terminal_serial_number + if lane_number is not None: + self.lane_number = lane_number + if card_present is not None: + self.card_present = card_present + if cat_level is not None: + self.cat_level = cat_level + if entry_mode is not None: + self.entry_mode = entry_mode + if terminal_capability is not None: + self.terminal_capability = terminal_capability + if pin_entry_capability is not None: + self.pin_entry_capability = pin_entry_capability + if operating_environment is not None: + self.operating_environment = operating_environment + if emv is not None: + self.emv = emv + if amex_capn_data is not None: + self.amex_capn_data = amex_capn_data + if track_data is not None: + self.track_data = track_data + + @property + def terminal_id(self): + """ + Gets the terminal_id of this Ptsv2paymentsPointOfSaleInformation. + Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. + + :return: The terminal_id of this Ptsv2paymentsPointOfSaleInformation. + :rtype: str + """ + return self._terminal_id + + @terminal_id.setter + def terminal_id(self, terminal_id): + """ + Sets the terminal_id of this Ptsv2paymentsPointOfSaleInformation. + Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. + + :param terminal_id: The terminal_id of this Ptsv2paymentsPointOfSaleInformation. + :type: str + """ + if terminal_id is not None and len(terminal_id) > 8: + raise ValueError("Invalid value for `terminal_id`, length must be less than or equal to `8`") + + self._terminal_id = terminal_id + + @property + def terminal_serial_number(self): + """ + Gets the terminal_serial_number of this Ptsv2paymentsPointOfSaleInformation. + Description of this field is not available. + + :return: The terminal_serial_number of this Ptsv2paymentsPointOfSaleInformation. + :rtype: str + """ + return self._terminal_serial_number + + @terminal_serial_number.setter + def terminal_serial_number(self, terminal_serial_number): + """ + Sets the terminal_serial_number of this Ptsv2paymentsPointOfSaleInformation. + Description of this field is not available. + + :param terminal_serial_number: The terminal_serial_number of this Ptsv2paymentsPointOfSaleInformation. + :type: str + """ + + self._terminal_serial_number = terminal_serial_number + + @property + def lane_number(self): + """ + Gets the lane_number of this Ptsv2paymentsPointOfSaleInformation. + Identifier for an alternate terminal at your retail location. You define the value for this field. This field is supported only for MasterCard transactions on FDC Nashville Global. Use the _terminalID_ field to identify the main terminal at your retail location. If your retail location has multiple terminals, use this _alternateTerminalID_ field to identify the terminal used for the transaction. This field is a pass-through, which means that CyberSource does not check the value or modify the value in any way before sending it to the processor. + + :return: The lane_number of this Ptsv2paymentsPointOfSaleInformation. + :rtype: str + """ + return self._lane_number + + @lane_number.setter + def lane_number(self, lane_number): + """ + Sets the lane_number of this Ptsv2paymentsPointOfSaleInformation. + Identifier for an alternate terminal at your retail location. You define the value for this field. This field is supported only for MasterCard transactions on FDC Nashville Global. Use the _terminalID_ field to identify the main terminal at your retail location. If your retail location has multiple terminals, use this _alternateTerminalID_ field to identify the terminal used for the transaction. This field is a pass-through, which means that CyberSource does not check the value or modify the value in any way before sending it to the processor. + + :param lane_number: The lane_number of this Ptsv2paymentsPointOfSaleInformation. + :type: str + """ + if lane_number is not None and len(lane_number) > 8: + raise ValueError("Invalid value for `lane_number`, length must be less than or equal to `8`") + + self._lane_number = lane_number + + @property + def card_present(self): + """ + Gets the card_present of this Ptsv2paymentsPointOfSaleInformation. + Indicates whether the card is present at the time of the transaction. Possible values: - **true**: Card is present. - **false**: Card is not present. + + :return: The card_present of this Ptsv2paymentsPointOfSaleInformation. + :rtype: bool + """ + return self._card_present + + @card_present.setter + def card_present(self, card_present): + """ + Sets the card_present of this Ptsv2paymentsPointOfSaleInformation. + Indicates whether the card is present at the time of the transaction. Possible values: - **true**: Card is present. - **false**: Card is not present. + + :param card_present: The card_present of this Ptsv2paymentsPointOfSaleInformation. + :type: bool + """ + + self._card_present = card_present + + @property + def cat_level(self): + """ + Gets the cat_level of this Ptsv2paymentsPointOfSaleInformation. + Type of cardholder-activated terminal. Possible values: - 1: Automated dispensing machine - 2: Self-service terminal - 3: Limited amount terminal - 4: In-flight commerce (IFC) terminal - 5: Radio frequency device - 6: Mobile acceptance terminal - 7: Electronic cash register - 8: E-commerce device at your location - 9: Terminal or cash register that uses a dialup connection to connect to the transaction processing network * Applicable only for CTV for Payouts. + + :return: The cat_level of this Ptsv2paymentsPointOfSaleInformation. + :rtype: int + """ + return self._cat_level + + @cat_level.setter + def cat_level(self, cat_level): + """ + Sets the cat_level of this Ptsv2paymentsPointOfSaleInformation. + Type of cardholder-activated terminal. Possible values: - 1: Automated dispensing machine - 2: Self-service terminal - 3: Limited amount terminal - 4: In-flight commerce (IFC) terminal - 5: Radio frequency device - 6: Mobile acceptance terminal - 7: Electronic cash register - 8: E-commerce device at your location - 9: Terminal or cash register that uses a dialup connection to connect to the transaction processing network * Applicable only for CTV for Payouts. + + :param cat_level: The cat_level of this Ptsv2paymentsPointOfSaleInformation. + :type: int + """ + if cat_level is not None and cat_level > 9: + raise ValueError("Invalid value for `cat_level`, must be a value less than or equal to `9`") + if cat_level is not None and cat_level < 1: + raise ValueError("Invalid value for `cat_level`, must be a value greater than or equal to `1`") + + self._cat_level = cat_level + + @property + def entry_mode(self): + """ + Gets the entry_mode of this Ptsv2paymentsPointOfSaleInformation. + Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. + + :return: The entry_mode of this Ptsv2paymentsPointOfSaleInformation. + :rtype: str + """ + return self._entry_mode + + @entry_mode.setter + def entry_mode(self, entry_mode): + """ + Sets the entry_mode of this Ptsv2paymentsPointOfSaleInformation. + Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. + + :param entry_mode: The entry_mode of this Ptsv2paymentsPointOfSaleInformation. + :type: str + """ + if entry_mode is not None and len(entry_mode) > 11: + raise ValueError("Invalid value for `entry_mode`, length must be less than or equal to `11`") + + self._entry_mode = entry_mode + + @property + def terminal_capability(self): + """ + Gets the terminal_capability of this Ptsv2paymentsPointOfSaleInformation. + POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. + + :return: The terminal_capability of this Ptsv2paymentsPointOfSaleInformation. + :rtype: int + """ + return self._terminal_capability + + @terminal_capability.setter + def terminal_capability(self, terminal_capability): + """ + Sets the terminal_capability of this Ptsv2paymentsPointOfSaleInformation. + POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. + + :param terminal_capability: The terminal_capability of this Ptsv2paymentsPointOfSaleInformation. + :type: int + """ + if terminal_capability is not None and terminal_capability > 5: + raise ValueError("Invalid value for `terminal_capability`, must be a value less than or equal to `5`") + if terminal_capability is not None and terminal_capability < 1: + raise ValueError("Invalid value for `terminal_capability`, must be a value greater than or equal to `1`") + + self._terminal_capability = terminal_capability + + @property + def pin_entry_capability(self): + """ + Gets the pin_entry_capability of this Ptsv2paymentsPointOfSaleInformation. + A one-digit code that identifies the capability of terminal to capture PINs. This code does not necessarily mean that a PIN was entered or is included in this message. For Payouts: This field is applicable for CtV. + + :return: The pin_entry_capability of this Ptsv2paymentsPointOfSaleInformation. + :rtype: int + """ + return self._pin_entry_capability + + @pin_entry_capability.setter + def pin_entry_capability(self, pin_entry_capability): + """ + Sets the pin_entry_capability of this Ptsv2paymentsPointOfSaleInformation. + A one-digit code that identifies the capability of terminal to capture PINs. This code does not necessarily mean that a PIN was entered or is included in this message. For Payouts: This field is applicable for CtV. + + :param pin_entry_capability: The pin_entry_capability of this Ptsv2paymentsPointOfSaleInformation. + :type: int + """ + if pin_entry_capability is not None and pin_entry_capability > 1: + raise ValueError("Invalid value for `pin_entry_capability`, must be a value less than or equal to `1`") + if pin_entry_capability is not None and pin_entry_capability < 1: + raise ValueError("Invalid value for `pin_entry_capability`, must be a value greater than or equal to `1`") + + self._pin_entry_capability = pin_entry_capability + + @property + def operating_environment(self): + """ + Gets the operating_environment of this Ptsv2paymentsPointOfSaleInformation. + Operating environment. Possible values: - 0: No terminal used or unknown environment. - 1: On merchant premises, attended. - 2: On merchant premises, unattended, or cardholder terminal. Examples: oil, kiosks, self-checkout, home computer, mobile telephone, personal digital assistant (PDA). Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 3: Off merchant premises, attended. Examples: portable POS devices at trade shows, at service calls, or in taxis. - 4: Off merchant premises, unattended, or cardholder terminal. Examples: vending machines, home computer, mobile telephone, PDA. Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 5: On premises of cardholder, unattended. - 9: Unknown delivery mode. - S: Electronic delivery of product. Examples: music, software, or eTickets that are downloaded over the internet. - T: Physical delivery of product. Examples: music or software that is delivered by mail or by a courier. This field is supported only for **American Express Direct** and **CyberSource through VisaNet**. **CyberSource through VisaNet** For MasterCard transactions, the only valid values are 2 and 4. + + :return: The operating_environment of this Ptsv2paymentsPointOfSaleInformation. + :rtype: str + """ + return self._operating_environment + + @operating_environment.setter + def operating_environment(self, operating_environment): + """ + Sets the operating_environment of this Ptsv2paymentsPointOfSaleInformation. + Operating environment. Possible values: - 0: No terminal used or unknown environment. - 1: On merchant premises, attended. - 2: On merchant premises, unattended, or cardholder terminal. Examples: oil, kiosks, self-checkout, home computer, mobile telephone, personal digital assistant (PDA). Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 3: Off merchant premises, attended. Examples: portable POS devices at trade shows, at service calls, or in taxis. - 4: Off merchant premises, unattended, or cardholder terminal. Examples: vending machines, home computer, mobile telephone, PDA. Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 5: On premises of cardholder, unattended. - 9: Unknown delivery mode. - S: Electronic delivery of product. Examples: music, software, or eTickets that are downloaded over the internet. - T: Physical delivery of product. Examples: music or software that is delivered by mail or by a courier. This field is supported only for **American Express Direct** and **CyberSource through VisaNet**. **CyberSource through VisaNet** For MasterCard transactions, the only valid values are 2 and 4. + + :param operating_environment: The operating_environment of this Ptsv2paymentsPointOfSaleInformation. + :type: str + """ + if operating_environment is not None and len(operating_environment) > 1: + raise ValueError("Invalid value for `operating_environment`, length must be less than or equal to `1`") + + self._operating_environment = operating_environment + + @property + def emv(self): + """ + Gets the emv of this Ptsv2paymentsPointOfSaleInformation. + + :return: The emv of this Ptsv2paymentsPointOfSaleInformation. + :rtype: Ptsv2paymentsPointOfSaleInformationEmv + """ + return self._emv + + @emv.setter + def emv(self, emv): + """ + Sets the emv of this Ptsv2paymentsPointOfSaleInformation. + + :param emv: The emv of this Ptsv2paymentsPointOfSaleInformation. + :type: Ptsv2paymentsPointOfSaleInformationEmv + """ + + self._emv = emv + + @property + def amex_capn_data(self): + """ + Gets the amex_capn_data of this Ptsv2paymentsPointOfSaleInformation. + Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. + + :return: The amex_capn_data of this Ptsv2paymentsPointOfSaleInformation. + :rtype: str + """ + return self._amex_capn_data + + @amex_capn_data.setter + def amex_capn_data(self, amex_capn_data): + """ + Sets the amex_capn_data of this Ptsv2paymentsPointOfSaleInformation. + Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. + + :param amex_capn_data: The amex_capn_data of this Ptsv2paymentsPointOfSaleInformation. + :type: str + """ + if amex_capn_data is not None and len(amex_capn_data) > 12: + raise ValueError("Invalid value for `amex_capn_data`, length must be less than or equal to `12`") + + self._amex_capn_data = amex_capn_data + + @property + def track_data(self): + """ + Gets the track_data of this Ptsv2paymentsPointOfSaleInformation. + Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000? + + :return: The track_data of this Ptsv2paymentsPointOfSaleInformation. + :rtype: str + """ + return self._track_data + + @track_data.setter + def track_data(self, track_data): + """ + Sets the track_data of this Ptsv2paymentsPointOfSaleInformation. + Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000? + + :param track_data: The track_data of this Ptsv2paymentsPointOfSaleInformation. + :type: str + """ + + self._track_data = track_data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsPointOfSaleInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_point_of_sale_information_emv.py b/CyberSource/models/ptsv2payments_point_of_sale_information_emv.py new file mode 100644 index 00000000..b27b285f --- /dev/null +++ b/CyberSource/models/ptsv2payments_point_of_sale_information_emv.py @@ -0,0 +1,241 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsPointOfSaleInformationEmv(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tags': 'str', + 'cardholder_verification_method': 'float', + 'card_sequence_number': 'str', + 'fallback': 'bool', + 'fallback_condition': 'float' + } + + attribute_map = { + 'tags': 'tags', + 'cardholder_verification_method': 'cardholderVerificationMethod', + 'card_sequence_number': 'cardSequenceNumber', + 'fallback': 'fallback', + 'fallback_condition': 'fallbackCondition' + } + + def __init__(self, tags=None, cardholder_verification_method=None, card_sequence_number=None, fallback=False, fallback_condition=None): + """ + Ptsv2paymentsPointOfSaleInformationEmv - a model defined in Swagger + """ + + self._tags = None + self._cardholder_verification_method = None + self._card_sequence_number = None + self._fallback = None + self._fallback_condition = None + + if tags is not None: + self.tags = tags + if cardholder_verification_method is not None: + self.cardholder_verification_method = cardholder_verification_method + if card_sequence_number is not None: + self.card_sequence_number = card_sequence_number + if fallback is not None: + self.fallback = fallback + if fallback_condition is not None: + self.fallback_condition = fallback_condition + + @property + def tags(self): + """ + Gets the tags of this Ptsv2paymentsPointOfSaleInformationEmv. + EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram + + :return: The tags of this Ptsv2paymentsPointOfSaleInformationEmv. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this Ptsv2paymentsPointOfSaleInformationEmv. + EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram + + :param tags: The tags of this Ptsv2paymentsPointOfSaleInformationEmv. + :type: str + """ + if tags is not None and len(tags) > 1998: + raise ValueError("Invalid value for `tags`, length must be less than or equal to `1998`") + + self._tags = tags + + @property + def cardholder_verification_method(self): + """ + Gets the cardholder_verification_method of this Ptsv2paymentsPointOfSaleInformationEmv. + Method that was used to verify the cardholder's identity. Possible values: - **0**: No verification - **1**: Signature This field is supported only on **American Express Direct**. + + :return: The cardholder_verification_method of this Ptsv2paymentsPointOfSaleInformationEmv. + :rtype: float + """ + return self._cardholder_verification_method + + @cardholder_verification_method.setter + def cardholder_verification_method(self, cardholder_verification_method): + """ + Sets the cardholder_verification_method of this Ptsv2paymentsPointOfSaleInformationEmv. + Method that was used to verify the cardholder's identity. Possible values: - **0**: No verification - **1**: Signature This field is supported only on **American Express Direct**. + + :param cardholder_verification_method: The cardholder_verification_method of this Ptsv2paymentsPointOfSaleInformationEmv. + :type: float + """ + + self._cardholder_verification_method = cardholder_verification_method + + @property + def card_sequence_number(self): + """ + Gets the card_sequence_number of this Ptsv2paymentsPointOfSaleInformationEmv. + Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. + + :return: The card_sequence_number of this Ptsv2paymentsPointOfSaleInformationEmv. + :rtype: str + """ + return self._card_sequence_number + + @card_sequence_number.setter + def card_sequence_number(self, card_sequence_number): + """ + Sets the card_sequence_number of this Ptsv2paymentsPointOfSaleInformationEmv. + Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. + + :param card_sequence_number: The card_sequence_number of this Ptsv2paymentsPointOfSaleInformationEmv. + :type: str + """ + if card_sequence_number is not None and len(card_sequence_number) > 3: + raise ValueError("Invalid value for `card_sequence_number`, length must be less than or equal to `3`") + + self._card_sequence_number = card_sequence_number + + @property + def fallback(self): + """ + Gets the fallback of this Ptsv2paymentsPointOfSaleInformationEmv. + Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. + + :return: The fallback of this Ptsv2paymentsPointOfSaleInformationEmv. + :rtype: bool + """ + return self._fallback + + @fallback.setter + def fallback(self, fallback): + """ + Sets the fallback of this Ptsv2paymentsPointOfSaleInformationEmv. + Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. + + :param fallback: The fallback of this Ptsv2paymentsPointOfSaleInformationEmv. + :type: bool + """ + + self._fallback = fallback + + @property + def fallback_condition(self): + """ + Gets the fallback_condition of this Ptsv2paymentsPointOfSaleInformationEmv. + Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. + + :return: The fallback_condition of this Ptsv2paymentsPointOfSaleInformationEmv. + :rtype: float + """ + return self._fallback_condition + + @fallback_condition.setter + def fallback_condition(self, fallback_condition): + """ + Sets the fallback_condition of this Ptsv2paymentsPointOfSaleInformationEmv. + Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. + + :param fallback_condition: The fallback_condition of this Ptsv2paymentsPointOfSaleInformationEmv. + :type: float + """ + + self._fallback_condition = fallback_condition + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsPointOfSaleInformationEmv): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_processing_information.py b/CyberSource/models/ptsv2payments_processing_information.py new file mode 100644 index 00000000..cc08f665 --- /dev/null +++ b/CyberSource/models/ptsv2payments_processing_information.py @@ -0,0 +1,497 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsProcessingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'capture': 'bool', + 'processor_id': 'str', + 'business_application_id': 'str', + 'commerce_indicator': 'str', + 'payment_solution': 'str', + 'reconciliation_id': 'str', + 'link_id': 'str', + 'purchase_level': 'str', + 'report_group': 'str', + 'visa_checkout_id': 'str', + 'issuer': 'Ptsv2paymentsProcessingInformationIssuer', + 'authorization_options': 'Ptsv2paymentsProcessingInformationAuthorizationOptions', + 'capture_options': 'Ptsv2paymentsProcessingInformationCaptureOptions', + 'recurring_options': 'Ptsv2paymentsProcessingInformationRecurringOptions' + } + + attribute_map = { + 'capture': 'capture', + 'processor_id': 'processorId', + 'business_application_id': 'businessApplicationId', + 'commerce_indicator': 'commerceIndicator', + 'payment_solution': 'paymentSolution', + 'reconciliation_id': 'reconciliationId', + 'link_id': 'linkId', + 'purchase_level': 'purchaseLevel', + 'report_group': 'reportGroup', + 'visa_checkout_id': 'visaCheckoutId', + 'issuer': 'issuer', + 'authorization_options': 'authorizationOptions', + 'capture_options': 'captureOptions', + 'recurring_options': 'recurringOptions' + } + + def __init__(self, capture=False, processor_id=None, business_application_id=None, commerce_indicator=None, payment_solution=None, reconciliation_id=None, link_id=None, purchase_level=None, report_group=None, visa_checkout_id=None, issuer=None, authorization_options=None, capture_options=None, recurring_options=None): + """ + Ptsv2paymentsProcessingInformation - a model defined in Swagger + """ + + self._capture = None + self._processor_id = None + self._business_application_id = None + self._commerce_indicator = None + self._payment_solution = None + self._reconciliation_id = None + self._link_id = None + self._purchase_level = None + self._report_group = None + self._visa_checkout_id = None + self._issuer = None + self._authorization_options = None + self._capture_options = None + self._recurring_options = None + + if capture is not None: + self.capture = capture + if processor_id is not None: + self.processor_id = processor_id + if business_application_id is not None: + self.business_application_id = business_application_id + if commerce_indicator is not None: + self.commerce_indicator = commerce_indicator + if payment_solution is not None: + self.payment_solution = payment_solution + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if link_id is not None: + self.link_id = link_id + if purchase_level is not None: + self.purchase_level = purchase_level + if report_group is not None: + self.report_group = report_group + if visa_checkout_id is not None: + self.visa_checkout_id = visa_checkout_id + if issuer is not None: + self.issuer = issuer + if authorization_options is not None: + self.authorization_options = authorization_options + if capture_options is not None: + self.capture_options = capture_options + if recurring_options is not None: + self.recurring_options = recurring_options + + @property + def capture(self): + """ + Gets the capture of this Ptsv2paymentsProcessingInformation. + Flag that specifies whether to also include capture service in the submitted request or not. + + :return: The capture of this Ptsv2paymentsProcessingInformation. + :rtype: bool + """ + return self._capture + + @capture.setter + def capture(self, capture): + """ + Sets the capture of this Ptsv2paymentsProcessingInformation. + Flag that specifies whether to also include capture service in the submitted request or not. + + :param capture: The capture of this Ptsv2paymentsProcessingInformation. + :type: bool + """ + + self._capture = capture + + @property + def processor_id(self): + """ + Gets the processor_id of this Ptsv2paymentsProcessingInformation. + Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. + + :return: The processor_id of this Ptsv2paymentsProcessingInformation. + :rtype: str + """ + return self._processor_id + + @processor_id.setter + def processor_id(self, processor_id): + """ + Sets the processor_id of this Ptsv2paymentsProcessingInformation. + Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. + + :param processor_id: The processor_id of this Ptsv2paymentsProcessingInformation. + :type: str + """ + if processor_id is not None and len(processor_id) > 3: + raise ValueError("Invalid value for `processor_id`, length must be less than or equal to `3`") + + self._processor_id = processor_id + + @property + def business_application_id(self): + """ + Gets the business_application_id of this Ptsv2paymentsProcessingInformation. + Description of this field is not available. + + :return: The business_application_id of this Ptsv2paymentsProcessingInformation. + :rtype: str + """ + return self._business_application_id + + @business_application_id.setter + def business_application_id(self, business_application_id): + """ + Sets the business_application_id of this Ptsv2paymentsProcessingInformation. + Description of this field is not available. + + :param business_application_id: The business_application_id of this Ptsv2paymentsProcessingInformation. + :type: str + """ + + self._business_application_id = business_application_id + + @property + def commerce_indicator(self): + """ + Gets the commerce_indicator of this Ptsv2paymentsProcessingInformation. + Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. + + :return: The commerce_indicator of this Ptsv2paymentsProcessingInformation. + :rtype: str + """ + return self._commerce_indicator + + @commerce_indicator.setter + def commerce_indicator(self, commerce_indicator): + """ + Sets the commerce_indicator of this Ptsv2paymentsProcessingInformation. + Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. + + :param commerce_indicator: The commerce_indicator of this Ptsv2paymentsProcessingInformation. + :type: str + """ + if commerce_indicator is not None and len(commerce_indicator) > 20: + raise ValueError("Invalid value for `commerce_indicator`, length must be less than or equal to `20`") + + self._commerce_indicator = commerce_indicator + + @property + def payment_solution(self): + """ + Gets the payment_solution of this Ptsv2paymentsProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :return: The payment_solution of this Ptsv2paymentsProcessingInformation. + :rtype: str + """ + return self._payment_solution + + @payment_solution.setter + def payment_solution(self, payment_solution): + """ + Sets the payment_solution of this Ptsv2paymentsProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :param payment_solution: The payment_solution of this Ptsv2paymentsProcessingInformation. + :type: str + """ + if payment_solution is not None and len(payment_solution) > 12: + raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") + + self._payment_solution = payment_solution + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this Ptsv2paymentsProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :return: The reconciliation_id of this Ptsv2paymentsProcessingInformation. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this Ptsv2paymentsProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :param reconciliation_id: The reconciliation_id of this Ptsv2paymentsProcessingInformation. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def link_id(self): + """ + Gets the link_id of this Ptsv2paymentsProcessingInformation. + Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. + + :return: The link_id of this Ptsv2paymentsProcessingInformation. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """ + Sets the link_id of this Ptsv2paymentsProcessingInformation. + Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. + + :param link_id: The link_id of this Ptsv2paymentsProcessingInformation. + :type: str + """ + if link_id is not None and len(link_id) > 26: + raise ValueError("Invalid value for `link_id`, length must be less than or equal to `26`") + + self._link_id = link_id + + @property + def purchase_level(self): + """ + Gets the purchase_level of this Ptsv2paymentsProcessingInformation. + Set this field to 3 to indicate that the request includes Level III data. + + :return: The purchase_level of this Ptsv2paymentsProcessingInformation. + :rtype: str + """ + return self._purchase_level + + @purchase_level.setter + def purchase_level(self, purchase_level): + """ + Sets the purchase_level of this Ptsv2paymentsProcessingInformation. + Set this field to 3 to indicate that the request includes Level III data. + + :param purchase_level: The purchase_level of this Ptsv2paymentsProcessingInformation. + :type: str + """ + if purchase_level is not None and len(purchase_level) > 1: + raise ValueError("Invalid value for `purchase_level`, length must be less than or equal to `1`") + + self._purchase_level = purchase_level + + @property + def report_group(self): + """ + Gets the report_group of this Ptsv2paymentsProcessingInformation. + Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. + + :return: The report_group of this Ptsv2paymentsProcessingInformation. + :rtype: str + """ + return self._report_group + + @report_group.setter + def report_group(self, report_group): + """ + Sets the report_group of this Ptsv2paymentsProcessingInformation. + Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. + + :param report_group: The report_group of this Ptsv2paymentsProcessingInformation. + :type: str + """ + if report_group is not None and len(report_group) > 25: + raise ValueError("Invalid value for `report_group`, length must be less than or equal to `25`") + + self._report_group = report_group + + @property + def visa_checkout_id(self): + """ + Gets the visa_checkout_id of this Ptsv2paymentsProcessingInformation. + Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. + + :return: The visa_checkout_id of this Ptsv2paymentsProcessingInformation. + :rtype: str + """ + return self._visa_checkout_id + + @visa_checkout_id.setter + def visa_checkout_id(self, visa_checkout_id): + """ + Sets the visa_checkout_id of this Ptsv2paymentsProcessingInformation. + Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. + + :param visa_checkout_id: The visa_checkout_id of this Ptsv2paymentsProcessingInformation. + :type: str + """ + if visa_checkout_id is not None and len(visa_checkout_id) > 48: + raise ValueError("Invalid value for `visa_checkout_id`, length must be less than or equal to `48`") + + self._visa_checkout_id = visa_checkout_id + + @property + def issuer(self): + """ + Gets the issuer of this Ptsv2paymentsProcessingInformation. + + :return: The issuer of this Ptsv2paymentsProcessingInformation. + :rtype: Ptsv2paymentsProcessingInformationIssuer + """ + return self._issuer + + @issuer.setter + def issuer(self, issuer): + """ + Sets the issuer of this Ptsv2paymentsProcessingInformation. + + :param issuer: The issuer of this Ptsv2paymentsProcessingInformation. + :type: Ptsv2paymentsProcessingInformationIssuer + """ + + self._issuer = issuer + + @property + def authorization_options(self): + """ + Gets the authorization_options of this Ptsv2paymentsProcessingInformation. + + :return: The authorization_options of this Ptsv2paymentsProcessingInformation. + :rtype: Ptsv2paymentsProcessingInformationAuthorizationOptions + """ + return self._authorization_options + + @authorization_options.setter + def authorization_options(self, authorization_options): + """ + Sets the authorization_options of this Ptsv2paymentsProcessingInformation. + + :param authorization_options: The authorization_options of this Ptsv2paymentsProcessingInformation. + :type: Ptsv2paymentsProcessingInformationAuthorizationOptions + """ + + self._authorization_options = authorization_options + + @property + def capture_options(self): + """ + Gets the capture_options of this Ptsv2paymentsProcessingInformation. + + :return: The capture_options of this Ptsv2paymentsProcessingInformation. + :rtype: Ptsv2paymentsProcessingInformationCaptureOptions + """ + return self._capture_options + + @capture_options.setter + def capture_options(self, capture_options): + """ + Sets the capture_options of this Ptsv2paymentsProcessingInformation. + + :param capture_options: The capture_options of this Ptsv2paymentsProcessingInformation. + :type: Ptsv2paymentsProcessingInformationCaptureOptions + """ + + self._capture_options = capture_options + + @property + def recurring_options(self): + """ + Gets the recurring_options of this Ptsv2paymentsProcessingInformation. + + :return: The recurring_options of this Ptsv2paymentsProcessingInformation. + :rtype: Ptsv2paymentsProcessingInformationRecurringOptions + """ + return self._recurring_options + + @recurring_options.setter + def recurring_options(self, recurring_options): + """ + Sets the recurring_options of this Ptsv2paymentsProcessingInformation. + + :param recurring_options: The recurring_options of this Ptsv2paymentsProcessingInformation. + :type: Ptsv2paymentsProcessingInformationRecurringOptions + """ + + self._recurring_options = recurring_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsProcessingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_processing_information_authorization_options.py b/CyberSource/models/ptsv2payments_processing_information_authorization_options.py new file mode 100644 index 00000000..d952ef3e --- /dev/null +++ b/CyberSource/models/ptsv2payments_processing_information_authorization_options.py @@ -0,0 +1,390 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsProcessingInformationAuthorizationOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_type': 'str', + 'verbal_auth_code': 'str', + 'verbal_auth_transaction_id': 'str', + 'auth_indicator': 'str', + 'partial_auth_indicator': 'bool', + 'balance_inquiry': 'bool', + 'ignore_avs_result': 'bool', + 'decline_avs_flags': 'list[str]', + 'ignore_cv_result': 'bool', + 'initiator': 'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator' + } + + attribute_map = { + 'auth_type': 'authType', + 'verbal_auth_code': 'verbalAuthCode', + 'verbal_auth_transaction_id': 'verbalAuthTransactionId', + 'auth_indicator': 'authIndicator', + 'partial_auth_indicator': 'partialAuthIndicator', + 'balance_inquiry': 'balanceInquiry', + 'ignore_avs_result': 'ignoreAvsResult', + 'decline_avs_flags': 'declineAvsFlags', + 'ignore_cv_result': 'ignoreCvResult', + 'initiator': 'initiator' + } + + def __init__(self, auth_type=None, verbal_auth_code=None, verbal_auth_transaction_id=None, auth_indicator=None, partial_auth_indicator=None, balance_inquiry=None, ignore_avs_result=False, decline_avs_flags=None, ignore_cv_result=False, initiator=None): + """ + Ptsv2paymentsProcessingInformationAuthorizationOptions - a model defined in Swagger + """ + + self._auth_type = None + self._verbal_auth_code = None + self._verbal_auth_transaction_id = None + self._auth_indicator = None + self._partial_auth_indicator = None + self._balance_inquiry = None + self._ignore_avs_result = None + self._decline_avs_flags = None + self._ignore_cv_result = None + self._initiator = None + + if auth_type is not None: + self.auth_type = auth_type + if verbal_auth_code is not None: + self.verbal_auth_code = verbal_auth_code + if verbal_auth_transaction_id is not None: + self.verbal_auth_transaction_id = verbal_auth_transaction_id + if auth_indicator is not None: + self.auth_indicator = auth_indicator + if partial_auth_indicator is not None: + self.partial_auth_indicator = partial_auth_indicator + if balance_inquiry is not None: + self.balance_inquiry = balance_inquiry + if ignore_avs_result is not None: + self.ignore_avs_result = ignore_avs_result + if decline_avs_flags is not None: + self.decline_avs_flags = decline_avs_flags + if ignore_cv_result is not None: + self.ignore_cv_result = ignore_cv_result + if initiator is not None: + self.initiator = initiator + + @property + def auth_type(self): + """ + Gets the auth_type of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The auth_type of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """ + Sets the auth_type of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param auth_type: The auth_type of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :type: str + """ + if auth_type is not None and len(auth_type) > 15: + raise ValueError("Invalid value for `auth_type`, length must be less than or equal to `15`") + + self._auth_type = auth_type + + @property + def verbal_auth_code(self): + """ + Gets the verbal_auth_code of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The verbal_auth_code of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :rtype: str + """ + return self._verbal_auth_code + + @verbal_auth_code.setter + def verbal_auth_code(self, verbal_auth_code): + """ + Sets the verbal_auth_code of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param verbal_auth_code: The verbal_auth_code of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :type: str + """ + if verbal_auth_code is not None and len(verbal_auth_code) > 7: + raise ValueError("Invalid value for `verbal_auth_code`, length must be less than or equal to `7`") + + self._verbal_auth_code = verbal_auth_code + + @property + def verbal_auth_transaction_id(self): + """ + Gets the verbal_auth_transaction_id of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Transaction ID (TID). + + :return: The verbal_auth_transaction_id of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :rtype: str + """ + return self._verbal_auth_transaction_id + + @verbal_auth_transaction_id.setter + def verbal_auth_transaction_id(self, verbal_auth_transaction_id): + """ + Sets the verbal_auth_transaction_id of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Transaction ID (TID). + + :param verbal_auth_transaction_id: The verbal_auth_transaction_id of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :type: str + """ + if verbal_auth_transaction_id is not None and len(verbal_auth_transaction_id) > 15: + raise ValueError("Invalid value for `verbal_auth_transaction_id`, length must be less than or equal to `15`") + + self._verbal_auth_transaction_id = verbal_auth_transaction_id + + @property + def auth_indicator(self): + """ + Gets the auth_indicator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization For processor-specific information, see the auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The auth_indicator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :rtype: str + """ + return self._auth_indicator + + @auth_indicator.setter + def auth_indicator(self, auth_indicator): + """ + Sets the auth_indicator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization For processor-specific information, see the auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param auth_indicator: The auth_indicator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :type: str + """ + if auth_indicator is not None and len(auth_indicator) > 1: + raise ValueError("Invalid value for `auth_indicator`, length must be less than or equal to `1`") + + self._auth_indicator = auth_indicator + + @property + def partial_auth_indicator(self): + """ + Gets the partial_auth_indicator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Flag that indicates whether the transaction is enabled for partial authorization or not. When your request includes this field, this value overrides the information in your CyberSource account. For processor-specific information, see the auth_partial_auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The partial_auth_indicator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :rtype: bool + """ + return self._partial_auth_indicator + + @partial_auth_indicator.setter + def partial_auth_indicator(self, partial_auth_indicator): + """ + Sets the partial_auth_indicator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Flag that indicates whether the transaction is enabled for partial authorization or not. When your request includes this field, this value overrides the information in your CyberSource account. For processor-specific information, see the auth_partial_auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param partial_auth_indicator: The partial_auth_indicator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :type: bool + """ + + self._partial_auth_indicator = partial_auth_indicator + + @property + def balance_inquiry(self): + """ + Gets the balance_inquiry of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Flag that indicates whether to return balance information. + + :return: The balance_inquiry of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :rtype: bool + """ + return self._balance_inquiry + + @balance_inquiry.setter + def balance_inquiry(self, balance_inquiry): + """ + Sets the balance_inquiry of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Flag that indicates whether to return balance information. + + :param balance_inquiry: The balance_inquiry of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :type: bool + """ + + self._balance_inquiry = balance_inquiry + + @property + def ignore_avs_result(self): + """ + Gets the ignore_avs_result of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Flag that indicates whether to allow the capture service to run even when the payment receives an AVS decline. + + :return: The ignore_avs_result of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :rtype: bool + """ + return self._ignore_avs_result + + @ignore_avs_result.setter + def ignore_avs_result(self, ignore_avs_result): + """ + Sets the ignore_avs_result of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Flag that indicates whether to allow the capture service to run even when the payment receives an AVS decline. + + :param ignore_avs_result: The ignore_avs_result of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :type: bool + """ + + self._ignore_avs_result = ignore_avs_result + + @property + def decline_avs_flags(self): + """ + Gets the decline_avs_flags of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + An array of AVS flags that cause the reply flag to be returned. `Important` To receive declines for the AVS code N, include the value N in the array. + + :return: The decline_avs_flags of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :rtype: list[str] + """ + return self._decline_avs_flags + + @decline_avs_flags.setter + def decline_avs_flags(self, decline_avs_flags): + """ + Sets the decline_avs_flags of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + An array of AVS flags that cause the reply flag to be returned. `Important` To receive declines for the AVS code N, include the value N in the array. + + :param decline_avs_flags: The decline_avs_flags of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :type: list[str] + """ + allowed_values = ["D", "A", "V", "S", "N", "O"] + if not set(decline_avs_flags).issubset(set(allowed_values)): + raise ValueError( + "Invalid values for `decline_avs_flags` [{0}], must be a subset of [{1}]" + .format(", ".join(map(str, set(decline_avs_flags)-set(allowed_values))), + ", ".join(map(str, allowed_values))) + ) + + self._decline_avs_flags = decline_avs_flags + + @property + def ignore_cv_result(self): + """ + Gets the ignore_cv_result of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Flag that indicates whether to allow the capture service to run even when the payment receives a CVN decline. + + :return: The ignore_cv_result of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :rtype: bool + """ + return self._ignore_cv_result + + @ignore_cv_result.setter + def ignore_cv_result(self, ignore_cv_result): + """ + Sets the ignore_cv_result of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + Flag that indicates whether to allow the capture service to run even when the payment receives a CVN decline. + + :param ignore_cv_result: The ignore_cv_result of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :type: bool + """ + + self._ignore_cv_result = ignore_cv_result + + @property + def initiator(self): + """ + Gets the initiator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + + :return: The initiator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :rtype: Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator + """ + return self._initiator + + @initiator.setter + def initiator(self, initiator): + """ + Sets the initiator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + + :param initiator: The initiator of this Ptsv2paymentsProcessingInformationAuthorizationOptions. + :type: Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator + """ + + self._initiator = initiator + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsProcessingInformationAuthorizationOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_processing_information_authorization_options_initiator.py b/CyberSource/models/ptsv2payments_processing_information_authorization_options_initiator.py new file mode 100644 index 00000000..80f0cd8c --- /dev/null +++ b/CyberSource/models/ptsv2payments_processing_information_authorization_options_initiator.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'credential_stored_on_file': 'bool', + 'stored_credential_used': 'bool', + 'merchant_initiated_transaction': 'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction' + } + + attribute_map = { + 'type': 'type', + 'credential_stored_on_file': 'credentialStoredOnFile', + 'stored_credential_used': 'storedCredentialUsed', + 'merchant_initiated_transaction': 'merchantInitiatedTransaction' + } + + def __init__(self, type=None, credential_stored_on_file=None, stored_credential_used=None, merchant_initiated_transaction=None): + """ + Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator - a model defined in Swagger + """ + + self._type = None + self._credential_stored_on_file = None + self._stored_credential_used = None + self._merchant_initiated_transaction = None + + if type is not None: + self.type = type + if credential_stored_on_file is not None: + self.credential_stored_on_file = credential_stored_on_file + if stored_credential_used is not None: + self.stored_credential_used = stored_credential_used + if merchant_initiated_transaction is not None: + self.merchant_initiated_transaction = merchant_initiated_transaction + + @property + def type(self): + """ + Gets the type of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction. + + :return: The type of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction. + + :param type: The type of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + :type: str + """ + allowed_values = ["customer", "merchant"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) + + self._type = type + + @property + def credential_stored_on_file(self): + """ + Gets the credential_stored_on_file of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. + + :return: The credential_stored_on_file of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + :rtype: bool + """ + return self._credential_stored_on_file + + @credential_stored_on_file.setter + def credential_stored_on_file(self, credential_stored_on_file): + """ + Sets the credential_stored_on_file of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. + + :param credential_stored_on_file: The credential_stored_on_file of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + :type: bool + """ + + self._credential_stored_on_file = credential_stored_on_file + + @property + def stored_credential_used(self): + """ + Gets the stored_credential_used of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. + + :return: The stored_credential_used of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + :rtype: bool + """ + return self._stored_credential_used + + @stored_credential_used.setter + def stored_credential_used(self, stored_credential_used): + """ + Sets the stored_credential_used of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. + + :param stored_credential_used: The stored_credential_used of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + :type: bool + """ + + self._stored_credential_used = stored_credential_used + + @property + def merchant_initiated_transaction(self): + """ + Gets the merchant_initiated_transaction of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + + :return: The merchant_initiated_transaction of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + :rtype: Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + """ + return self._merchant_initiated_transaction + + @merchant_initiated_transaction.setter + def merchant_initiated_transaction(self, merchant_initiated_transaction): + """ + Sets the merchant_initiated_transaction of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + + :param merchant_initiated_transaction: The merchant_initiated_transaction of this Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator. + :type: Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + """ + + self._merchant_initiated_transaction = merchant_initiated_transaction + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_processing_information_capture_options.py b/CyberSource/models/ptsv2payments_processing_information_capture_options.py new file mode 100644 index 00000000..a95562e4 --- /dev/null +++ b/CyberSource/models/ptsv2payments_processing_information_capture_options.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsProcessingInformationCaptureOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'capture_sequence_number': 'float', + 'total_capture_count': 'float', + 'date_to_capture': 'str' + } + + attribute_map = { + 'capture_sequence_number': 'captureSequenceNumber', + 'total_capture_count': 'totalCaptureCount', + 'date_to_capture': 'dateToCapture' + } + + def __init__(self, capture_sequence_number=None, total_capture_count=None, date_to_capture=None): + """ + Ptsv2paymentsProcessingInformationCaptureOptions - a model defined in Swagger + """ + + self._capture_sequence_number = None + self._total_capture_count = None + self._date_to_capture = None + + if capture_sequence_number is not None: + self.capture_sequence_number = capture_sequence_number + if total_capture_count is not None: + self.total_capture_count = total_capture_count + if date_to_capture is not None: + self.date_to_capture = date_to_capture + + @property + def capture_sequence_number(self): + """ + Gets the capture_sequence_number of this Ptsv2paymentsProcessingInformationCaptureOptions. + Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 + + :return: The capture_sequence_number of this Ptsv2paymentsProcessingInformationCaptureOptions. + :rtype: float + """ + return self._capture_sequence_number + + @capture_sequence_number.setter + def capture_sequence_number(self, capture_sequence_number): + """ + Sets the capture_sequence_number of this Ptsv2paymentsProcessingInformationCaptureOptions. + Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 + + :param capture_sequence_number: The capture_sequence_number of this Ptsv2paymentsProcessingInformationCaptureOptions. + :type: float + """ + if capture_sequence_number is not None and capture_sequence_number > 99: + raise ValueError("Invalid value for `capture_sequence_number`, must be a value less than or equal to `99`") + if capture_sequence_number is not None and capture_sequence_number < 1: + raise ValueError("Invalid value for `capture_sequence_number`, must be a value greater than or equal to `1`") + + self._capture_sequence_number = capture_sequence_number + + @property + def total_capture_count(self): + """ + Gets the total_capture_count of this Ptsv2paymentsProcessingInformationCaptureOptions. + Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 + + :return: The total_capture_count of this Ptsv2paymentsProcessingInformationCaptureOptions. + :rtype: float + """ + return self._total_capture_count + + @total_capture_count.setter + def total_capture_count(self, total_capture_count): + """ + Sets the total_capture_count of this Ptsv2paymentsProcessingInformationCaptureOptions. + Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 + + :param total_capture_count: The total_capture_count of this Ptsv2paymentsProcessingInformationCaptureOptions. + :type: float + """ + if total_capture_count is not None and total_capture_count > 99: + raise ValueError("Invalid value for `total_capture_count`, must be a value less than or equal to `99`") + if total_capture_count is not None and total_capture_count < 1: + raise ValueError("Invalid value for `total_capture_count`, must be a value greater than or equal to `1`") + + self._total_capture_count = total_capture_count + + @property + def date_to_capture(self): + """ + Gets the date_to_capture of this Ptsv2paymentsProcessingInformationCaptureOptions. + Date on which you want the capture to occur. This field is supported only for **CyberSource through VisaNet**. `Format: MMDD` + + :return: The date_to_capture of this Ptsv2paymentsProcessingInformationCaptureOptions. + :rtype: str + """ + return self._date_to_capture + + @date_to_capture.setter + def date_to_capture(self, date_to_capture): + """ + Sets the date_to_capture of this Ptsv2paymentsProcessingInformationCaptureOptions. + Date on which you want the capture to occur. This field is supported only for **CyberSource through VisaNet**. `Format: MMDD` + + :param date_to_capture: The date_to_capture of this Ptsv2paymentsProcessingInformationCaptureOptions. + :type: str + """ + if date_to_capture is not None and len(date_to_capture) > 4: + raise ValueError("Invalid value for `date_to_capture`, length must be less than or equal to `4`") + + self._date_to_capture = date_to_capture + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsProcessingInformationCaptureOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_processing_information_issuer.py b/CyberSource/models/ptsv2payments_processing_information_issuer.py new file mode 100644 index 00000000..6acd4c82 --- /dev/null +++ b/CyberSource/models/ptsv2payments_processing_information_issuer.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsProcessingInformationIssuer(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'discretionary_data': 'str' + } + + attribute_map = { + 'discretionary_data': 'discretionaryData' + } + + def __init__(self, discretionary_data=None): + """ + Ptsv2paymentsProcessingInformationIssuer - a model defined in Swagger + """ + + self._discretionary_data = None + + if discretionary_data is not None: + self.discretionary_data = discretionary_data + + @property + def discretionary_data(self): + """ + Gets the discretionary_data of this Ptsv2paymentsProcessingInformationIssuer. + Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. + + :return: The discretionary_data of this Ptsv2paymentsProcessingInformationIssuer. + :rtype: str + """ + return self._discretionary_data + + @discretionary_data.setter + def discretionary_data(self, discretionary_data): + """ + Sets the discretionary_data of this Ptsv2paymentsProcessingInformationIssuer. + Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. + + :param discretionary_data: The discretionary_data of this Ptsv2paymentsProcessingInformationIssuer. + :type: str + """ + if discretionary_data is not None and len(discretionary_data) > 255: + raise ValueError("Invalid value for `discretionary_data`, length must be less than or equal to `255`") + + self._discretionary_data = discretionary_data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsProcessingInformationIssuer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_processing_information_recurring_options.py b/CyberSource/models/ptsv2payments_processing_information_recurring_options.py new file mode 100644 index 00000000..c464c866 --- /dev/null +++ b/CyberSource/models/ptsv2payments_processing_information_recurring_options.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsProcessingInformationRecurringOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'loan_payment': 'bool', + 'first_recurring_payment': 'bool' + } + + attribute_map = { + 'loan_payment': 'loanPayment', + 'first_recurring_payment': 'firstRecurringPayment' + } + + def __init__(self, loan_payment=False, first_recurring_payment=False): + """ + Ptsv2paymentsProcessingInformationRecurringOptions - a model defined in Swagger + """ + + self._loan_payment = None + self._first_recurring_payment = None + + if loan_payment is not None: + self.loan_payment = loan_payment + if first_recurring_payment is not None: + self.first_recurring_payment = first_recurring_payment + + @property + def loan_payment(self): + """ + Gets the loan_payment of this Ptsv2paymentsProcessingInformationRecurringOptions. + Flag that indicates whether this is a payment towards an existing contractual loan. + + :return: The loan_payment of this Ptsv2paymentsProcessingInformationRecurringOptions. + :rtype: bool + """ + return self._loan_payment + + @loan_payment.setter + def loan_payment(self, loan_payment): + """ + Sets the loan_payment of this Ptsv2paymentsProcessingInformationRecurringOptions. + Flag that indicates whether this is a payment towards an existing contractual loan. + + :param loan_payment: The loan_payment of this Ptsv2paymentsProcessingInformationRecurringOptions. + :type: bool + """ + + self._loan_payment = loan_payment + + @property + def first_recurring_payment(self): + """ + Gets the first_recurring_payment of this Ptsv2paymentsProcessingInformationRecurringOptions. + Flag that indicates whether this transaction is the first in a series of recurring payments. This field is supported only for **Atos**, **FDC Nashville Global**, and **OmniPay Direct**. + + :return: The first_recurring_payment of this Ptsv2paymentsProcessingInformationRecurringOptions. + :rtype: bool + """ + return self._first_recurring_payment + + @first_recurring_payment.setter + def first_recurring_payment(self, first_recurring_payment): + """ + Sets the first_recurring_payment of this Ptsv2paymentsProcessingInformationRecurringOptions. + Flag that indicates whether this transaction is the first in a series of recurring payments. This field is supported only for **Atos**, **FDC Nashville Global**, and **OmniPay Direct**. + + :param first_recurring_payment: The first_recurring_payment of this Ptsv2paymentsProcessingInformationRecurringOptions. + :type: bool + """ + + self._first_recurring_payment = first_recurring_payment + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsProcessingInformationRecurringOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_recipient_information.py b/CyberSource/models/ptsv2payments_recipient_information.py new file mode 100644 index 00000000..243432df --- /dev/null +++ b/CyberSource/models/ptsv2payments_recipient_information.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsRecipientInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_id': 'str', + 'last_name': 'str', + 'postal_code': 'str' + } + + attribute_map = { + 'account_id': 'accountId', + 'last_name': 'lastName', + 'postal_code': 'postalCode' + } + + def __init__(self, account_id=None, last_name=None, postal_code=None): + """ + Ptsv2paymentsRecipientInformation - a model defined in Swagger + """ + + self._account_id = None + self._last_name = None + self._postal_code = None + + if account_id is not None: + self.account_id = account_id + if last_name is not None: + self.last_name = last_name + if postal_code is not None: + self.postal_code = postal_code + + @property + def account_id(self): + """ + Gets the account_id of this Ptsv2paymentsRecipientInformation. + Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account number. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + + :return: The account_id of this Ptsv2paymentsRecipientInformation. + :rtype: str + """ + return self._account_id + + @account_id.setter + def account_id(self, account_id): + """ + Sets the account_id of this Ptsv2paymentsRecipientInformation. + Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account number. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + + :param account_id: The account_id of this Ptsv2paymentsRecipientInformation. + :type: str + """ + if account_id is not None and len(account_id) > 10: + raise ValueError("Invalid value for `account_id`, length must be less than or equal to `10`") + + self._account_id = account_id + + @property + def last_name(self): + """ + Gets the last_name of this Ptsv2paymentsRecipientInformation. + Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + + :return: The last_name of this Ptsv2paymentsRecipientInformation. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this Ptsv2paymentsRecipientInformation. + Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + + :param last_name: The last_name of this Ptsv2paymentsRecipientInformation. + :type: str + """ + if last_name is not None and len(last_name) > 6: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `6`") + + self._last_name = last_name + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2paymentsRecipientInformation. + Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + + :return: The postal_code of this Ptsv2paymentsRecipientInformation. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2paymentsRecipientInformation. + Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. + + :param postal_code: The postal_code of this Ptsv2paymentsRecipientInformation. + :type: str + """ + if postal_code is not None and len(postal_code) > 6: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `6`") + + self._postal_code = postal_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsRecipientInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_aggregator_information.py b/CyberSource/models/ptsv2paymentsidcaptures_aggregator_information.py new file mode 100644 index 00000000..dda5ce6c --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_aggregator_information.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesAggregatorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'aggregator_id': 'str', + 'name': 'str', + 'sub_merchant': 'Ptsv2paymentsidcapturesAggregatorInformationSubMerchant' + } + + attribute_map = { + 'aggregator_id': 'aggregatorId', + 'name': 'name', + 'sub_merchant': 'subMerchant' + } + + def __init__(self, aggregator_id=None, name=None, sub_merchant=None): + """ + Ptsv2paymentsidcapturesAggregatorInformation - a model defined in Swagger + """ + + self._aggregator_id = None + self._name = None + self._sub_merchant = None + + if aggregator_id is not None: + self.aggregator_id = aggregator_id + if name is not None: + self.name = name + if sub_merchant is not None: + self.sub_merchant = sub_merchant + + @property + def aggregator_id(self): + """ + Gets the aggregator_id of this Ptsv2paymentsidcapturesAggregatorInformation. + Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The aggregator_id of this Ptsv2paymentsidcapturesAggregatorInformation. + :rtype: str + """ + return self._aggregator_id + + @aggregator_id.setter + def aggregator_id(self, aggregator_id): + """ + Sets the aggregator_id of this Ptsv2paymentsidcapturesAggregatorInformation. + Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param aggregator_id: The aggregator_id of this Ptsv2paymentsidcapturesAggregatorInformation. + :type: str + """ + if aggregator_id is not None and len(aggregator_id) > 20: + raise ValueError("Invalid value for `aggregator_id`, length must be less than or equal to `20`") + + self._aggregator_id = aggregator_id + + @property + def name(self): + """ + Gets the name of this Ptsv2paymentsidcapturesAggregatorInformation. + Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The name of this Ptsv2paymentsidcapturesAggregatorInformation. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Ptsv2paymentsidcapturesAggregatorInformation. + Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param name: The name of this Ptsv2paymentsidcapturesAggregatorInformation. + :type: str + """ + if name is not None and len(name) > 37: + raise ValueError("Invalid value for `name`, length must be less than or equal to `37`") + + self._name = name + + @property + def sub_merchant(self): + """ + Gets the sub_merchant of this Ptsv2paymentsidcapturesAggregatorInformation. + + :return: The sub_merchant of this Ptsv2paymentsidcapturesAggregatorInformation. + :rtype: Ptsv2paymentsidcapturesAggregatorInformationSubMerchant + """ + return self._sub_merchant + + @sub_merchant.setter + def sub_merchant(self, sub_merchant): + """ + Sets the sub_merchant of this Ptsv2paymentsidcapturesAggregatorInformation. + + :param sub_merchant: The sub_merchant of this Ptsv2paymentsidcapturesAggregatorInformation. + :type: Ptsv2paymentsidcapturesAggregatorInformationSubMerchant + """ + + self._sub_merchant = sub_merchant + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesAggregatorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.py b/CyberSource/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.py new file mode 100644 index 00000000..23411100 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.py @@ -0,0 +1,337 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesAggregatorInformationSubMerchant(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'address1': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'postal_code': 'str', + 'country': 'str', + 'email': 'str', + 'phone_number': 'str' + } + + attribute_map = { + 'name': 'name', + 'address1': 'address1', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'postal_code': 'postalCode', + 'country': 'country', + 'email': 'email', + 'phone_number': 'phoneNumber' + } + + def __init__(self, name=None, address1=None, locality=None, administrative_area=None, postal_code=None, country=None, email=None, phone_number=None): + """ + Ptsv2paymentsidcapturesAggregatorInformationSubMerchant - a model defined in Swagger + """ + + self._name = None + self._address1 = None + self._locality = None + self._administrative_area = None + self._postal_code = None + self._country = None + self._email = None + self._phone_number = None + + if name is not None: + self.name = name + if address1 is not None: + self.address1 = address1 + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if postal_code is not None: + self.postal_code = postal_code + if country is not None: + self.country = country + if email is not None: + self.email = email + if phone_number is not None: + self.phone_number = phone_number + + @property + def name(self): + """ + Gets the name of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s business name. + + :return: The name of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s business name. + + :param name: The name of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :type: str + """ + if name is not None and len(name) > 37: + raise ValueError("Invalid value for `name`, length must be less than or equal to `37`") + + self._name = name + + @property + def address1(self): + """ + Gets the address1 of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + First line of the sub-merchant’s street address. + + :return: The address1 of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + First line of the sub-merchant’s street address. + + :param address1: The address1 of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :type: str + """ + if address1 is not None and len(address1) > 38: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `38`") + + self._address1 = address1 + + @property + def locality(self): + """ + Gets the locality of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s city. + + :return: The locality of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s city. + + :param locality: The locality of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :type: str + """ + if locality is not None and len(locality) > 21: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `21`") + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. + + :return: The administrative_area of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. + + :param administrative_area: The administrative_area of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 3: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `3`") + + self._administrative_area = administrative_area + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Partial postal code for the sub-merchant’s address. + + :return: The postal_code of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Partial postal code for the sub-merchant’s address. + + :param postal_code: The postal_code of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :type: str + """ + if postal_code is not None and len(postal_code) > 15: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `15`") + + self._postal_code = postal_code + + @property + def country(self): + """ + Gets the country of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s country. Use the two-character ISO Standard Country Codes. + + :return: The country of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s country. Use the two-character ISO Standard Country Codes. + + :param country: The country of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :type: str + """ + if country is not None and len(country) > 3: + raise ValueError("Invalid value for `country`, length must be less than or equal to `3`") + + self._country = country + + @property + def email(self): + """ + Gets the email of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 + + :return: The email of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 + + :param email: The email of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :type: str + """ + if email is not None and len(email) > 40: + raise ValueError("Invalid value for `email`, length must be less than or equal to `40`") + + self._email = email + + @property + def phone_number(self): + """ + Gets the phone_number of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 + + :return: The phone_number of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 + + :param phone_number: The phone_number of this Ptsv2paymentsidcapturesAggregatorInformationSubMerchant. + :type: str + """ + if phone_number is not None and len(phone_number) > 20: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `20`") + + self._phone_number = phone_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesAggregatorInformationSubMerchant): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_buyer_information.py b/CyberSource/models/ptsv2paymentsidcaptures_buyer_information.py new file mode 100644 index 00000000..107fba92 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_buyer_information.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesBuyerInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_customer_id': 'str', + 'vat_registration_number': 'str' + } + + attribute_map = { + 'merchant_customer_id': 'merchantCustomerId', + 'vat_registration_number': 'vatRegistrationNumber' + } + + def __init__(self, merchant_customer_id=None, vat_registration_number=None): + """ + Ptsv2paymentsidcapturesBuyerInformation - a model defined in Swagger + """ + + self._merchant_customer_id = None + self._vat_registration_number = None + + if merchant_customer_id is not None: + self.merchant_customer_id = merchant_customer_id + if vat_registration_number is not None: + self.vat_registration_number = vat_registration_number + + @property + def merchant_customer_id(self): + """ + Gets the merchant_customer_id of this Ptsv2paymentsidcapturesBuyerInformation. + Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The merchant_customer_id of this Ptsv2paymentsidcapturesBuyerInformation. + :rtype: str + """ + return self._merchant_customer_id + + @merchant_customer_id.setter + def merchant_customer_id(self, merchant_customer_id): + """ + Sets the merchant_customer_id of this Ptsv2paymentsidcapturesBuyerInformation. + Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param merchant_customer_id: The merchant_customer_id of this Ptsv2paymentsidcapturesBuyerInformation. + :type: str + """ + if merchant_customer_id is not None and len(merchant_customer_id) > 100: + raise ValueError("Invalid value for `merchant_customer_id`, length must be less than or equal to `100`") + + self._merchant_customer_id = merchant_customer_id + + @property + def vat_registration_number(self): + """ + Gets the vat_registration_number of this Ptsv2paymentsidcapturesBuyerInformation. + Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The vat_registration_number of this Ptsv2paymentsidcapturesBuyerInformation. + :rtype: str + """ + return self._vat_registration_number + + @vat_registration_number.setter + def vat_registration_number(self, vat_registration_number): + """ + Sets the vat_registration_number of this Ptsv2paymentsidcapturesBuyerInformation. + Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param vat_registration_number: The vat_registration_number of this Ptsv2paymentsidcapturesBuyerInformation. + :type: str + """ + if vat_registration_number is not None and len(vat_registration_number) > 20: + raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `20`") + + self._vat_registration_number = vat_registration_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesBuyerInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_merchant_information.py b/CyberSource/models/ptsv2paymentsidcaptures_merchant_information.py new file mode 100644 index 00000000..64e9ca35 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_merchant_information.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesMerchantInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_descriptor': 'Ptsv2paymentsMerchantInformationMerchantDescriptor', + 'card_acceptor_reference_number': 'str', + 'category_code': 'int', + 'vat_registration_number': 'str' + } + + attribute_map = { + 'merchant_descriptor': 'merchantDescriptor', + 'card_acceptor_reference_number': 'cardAcceptorReferenceNumber', + 'category_code': 'categoryCode', + 'vat_registration_number': 'vatRegistrationNumber' + } + + def __init__(self, merchant_descriptor=None, card_acceptor_reference_number=None, category_code=None, vat_registration_number=None): + """ + Ptsv2paymentsidcapturesMerchantInformation - a model defined in Swagger + """ + + self._merchant_descriptor = None + self._card_acceptor_reference_number = None + self._category_code = None + self._vat_registration_number = None + + if merchant_descriptor is not None: + self.merchant_descriptor = merchant_descriptor + if card_acceptor_reference_number is not None: + self.card_acceptor_reference_number = card_acceptor_reference_number + if category_code is not None: + self.category_code = category_code + if vat_registration_number is not None: + self.vat_registration_number = vat_registration_number + + @property + def merchant_descriptor(self): + """ + Gets the merchant_descriptor of this Ptsv2paymentsidcapturesMerchantInformation. + + :return: The merchant_descriptor of this Ptsv2paymentsidcapturesMerchantInformation. + :rtype: Ptsv2paymentsMerchantInformationMerchantDescriptor + """ + return self._merchant_descriptor + + @merchant_descriptor.setter + def merchant_descriptor(self, merchant_descriptor): + """ + Sets the merchant_descriptor of this Ptsv2paymentsidcapturesMerchantInformation. + + :param merchant_descriptor: The merchant_descriptor of this Ptsv2paymentsidcapturesMerchantInformation. + :type: Ptsv2paymentsMerchantInformationMerchantDescriptor + """ + + self._merchant_descriptor = merchant_descriptor + + @property + def card_acceptor_reference_number(self): + """ + Gets the card_acceptor_reference_number of this Ptsv2paymentsidcapturesMerchantInformation. + Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The card_acceptor_reference_number of this Ptsv2paymentsidcapturesMerchantInformation. + :rtype: str + """ + return self._card_acceptor_reference_number + + @card_acceptor_reference_number.setter + def card_acceptor_reference_number(self, card_acceptor_reference_number): + """ + Sets the card_acceptor_reference_number of this Ptsv2paymentsidcapturesMerchantInformation. + Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param card_acceptor_reference_number: The card_acceptor_reference_number of this Ptsv2paymentsidcapturesMerchantInformation. + :type: str + """ + if card_acceptor_reference_number is not None and len(card_acceptor_reference_number) > 25: + raise ValueError("Invalid value for `card_acceptor_reference_number`, length must be less than or equal to `25`") + + self._card_acceptor_reference_number = card_acceptor_reference_number + + @property + def category_code(self): + """ + Gets the category_code of this Ptsv2paymentsidcapturesMerchantInformation. + Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The category_code of this Ptsv2paymentsidcapturesMerchantInformation. + :rtype: int + """ + return self._category_code + + @category_code.setter + def category_code(self, category_code): + """ + Sets the category_code of this Ptsv2paymentsidcapturesMerchantInformation. + Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param category_code: The category_code of this Ptsv2paymentsidcapturesMerchantInformation. + :type: int + """ + if category_code is not None and category_code > 9999: + raise ValueError("Invalid value for `category_code`, must be a value less than or equal to `9999`") + + self._category_code = category_code + + @property + def vat_registration_number(self): + """ + Gets the vat_registration_number of this Ptsv2paymentsidcapturesMerchantInformation. + Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The vat_registration_number of this Ptsv2paymentsidcapturesMerchantInformation. + :rtype: str + """ + return self._vat_registration_number + + @vat_registration_number.setter + def vat_registration_number(self, vat_registration_number): + """ + Sets the vat_registration_number of this Ptsv2paymentsidcapturesMerchantInformation. + Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param vat_registration_number: The vat_registration_number of this Ptsv2paymentsidcapturesMerchantInformation. + :type: str + """ + if vat_registration_number is not None and len(vat_registration_number) > 21: + raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `21`") + + self._vat_registration_number = vat_registration_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesMerchantInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_order_information.py b/CyberSource/models/ptsv2paymentsidcaptures_order_information.py new file mode 100644 index 00000000..4391070b --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_order_information.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesOrderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amount_details': 'Ptsv2paymentsidcapturesOrderInformationAmountDetails', + 'bill_to': 'Ptsv2paymentsidcapturesOrderInformationBillTo', + 'ship_to': 'Ptsv2paymentsidcapturesOrderInformationShipTo', + 'line_items': 'list[Ptsv2paymentsOrderInformationLineItems]', + 'invoice_details': 'Ptsv2paymentsidcapturesOrderInformationInvoiceDetails', + 'shipping_details': 'Ptsv2paymentsidcapturesOrderInformationShippingDetails' + } + + attribute_map = { + 'amount_details': 'amountDetails', + 'bill_to': 'billTo', + 'ship_to': 'shipTo', + 'line_items': 'lineItems', + 'invoice_details': 'invoiceDetails', + 'shipping_details': 'shippingDetails' + } + + def __init__(self, amount_details=None, bill_to=None, ship_to=None, line_items=None, invoice_details=None, shipping_details=None): + """ + Ptsv2paymentsidcapturesOrderInformation - a model defined in Swagger + """ + + self._amount_details = None + self._bill_to = None + self._ship_to = None + self._line_items = None + self._invoice_details = None + self._shipping_details = None + + if amount_details is not None: + self.amount_details = amount_details + if bill_to is not None: + self.bill_to = bill_to + if ship_to is not None: + self.ship_to = ship_to + if line_items is not None: + self.line_items = line_items + if invoice_details is not None: + self.invoice_details = invoice_details + if shipping_details is not None: + self.shipping_details = shipping_details + + @property + def amount_details(self): + """ + Gets the amount_details of this Ptsv2paymentsidcapturesOrderInformation. + + :return: The amount_details of this Ptsv2paymentsidcapturesOrderInformation. + :rtype: Ptsv2paymentsidcapturesOrderInformationAmountDetails + """ + return self._amount_details + + @amount_details.setter + def amount_details(self, amount_details): + """ + Sets the amount_details of this Ptsv2paymentsidcapturesOrderInformation. + + :param amount_details: The amount_details of this Ptsv2paymentsidcapturesOrderInformation. + :type: Ptsv2paymentsidcapturesOrderInformationAmountDetails + """ + + self._amount_details = amount_details + + @property + def bill_to(self): + """ + Gets the bill_to of this Ptsv2paymentsidcapturesOrderInformation. + + :return: The bill_to of this Ptsv2paymentsidcapturesOrderInformation. + :rtype: Ptsv2paymentsidcapturesOrderInformationBillTo + """ + return self._bill_to + + @bill_to.setter + def bill_to(self, bill_to): + """ + Sets the bill_to of this Ptsv2paymentsidcapturesOrderInformation. + + :param bill_to: The bill_to of this Ptsv2paymentsidcapturesOrderInformation. + :type: Ptsv2paymentsidcapturesOrderInformationBillTo + """ + + self._bill_to = bill_to + + @property + def ship_to(self): + """ + Gets the ship_to of this Ptsv2paymentsidcapturesOrderInformation. + + :return: The ship_to of this Ptsv2paymentsidcapturesOrderInformation. + :rtype: Ptsv2paymentsidcapturesOrderInformationShipTo + """ + return self._ship_to + + @ship_to.setter + def ship_to(self, ship_to): + """ + Sets the ship_to of this Ptsv2paymentsidcapturesOrderInformation. + + :param ship_to: The ship_to of this Ptsv2paymentsidcapturesOrderInformation. + :type: Ptsv2paymentsidcapturesOrderInformationShipTo + """ + + self._ship_to = ship_to + + @property + def line_items(self): + """ + Gets the line_items of this Ptsv2paymentsidcapturesOrderInformation. + + :return: The line_items of this Ptsv2paymentsidcapturesOrderInformation. + :rtype: list[Ptsv2paymentsOrderInformationLineItems] + """ + return self._line_items + + @line_items.setter + def line_items(self, line_items): + """ + Sets the line_items of this Ptsv2paymentsidcapturesOrderInformation. + + :param line_items: The line_items of this Ptsv2paymentsidcapturesOrderInformation. + :type: list[Ptsv2paymentsOrderInformationLineItems] + """ + + self._line_items = line_items + + @property + def invoice_details(self): + """ + Gets the invoice_details of this Ptsv2paymentsidcapturesOrderInformation. + + :return: The invoice_details of this Ptsv2paymentsidcapturesOrderInformation. + :rtype: Ptsv2paymentsidcapturesOrderInformationInvoiceDetails + """ + return self._invoice_details + + @invoice_details.setter + def invoice_details(self, invoice_details): + """ + Sets the invoice_details of this Ptsv2paymentsidcapturesOrderInformation. + + :param invoice_details: The invoice_details of this Ptsv2paymentsidcapturesOrderInformation. + :type: Ptsv2paymentsidcapturesOrderInformationInvoiceDetails + """ + + self._invoice_details = invoice_details + + @property + def shipping_details(self): + """ + Gets the shipping_details of this Ptsv2paymentsidcapturesOrderInformation. + + :return: The shipping_details of this Ptsv2paymentsidcapturesOrderInformation. + :rtype: Ptsv2paymentsidcapturesOrderInformationShippingDetails + """ + return self._shipping_details + + @shipping_details.setter + def shipping_details(self, shipping_details): + """ + Sets the shipping_details of this Ptsv2paymentsidcapturesOrderInformation. + + :param shipping_details: The shipping_details of this Ptsv2paymentsidcapturesOrderInformation. + :type: Ptsv2paymentsidcapturesOrderInformationShippingDetails + """ + + self._shipping_details = shipping_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesOrderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_order_information_amount_details.py b/CyberSource/models/ptsv2paymentsidcaptures_order_information_amount_details.py new file mode 100644 index 00000000..6c609a10 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_order_information_amount_details.py @@ -0,0 +1,569 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesOrderInformationAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'total_amount': 'str', + 'currency': 'str', + 'discount_amount': 'str', + 'duty_amount': 'str', + 'tax_amount': 'str', + 'national_tax_included': 'str', + 'tax_applied_after_discount': 'str', + 'tax_applied_level': 'str', + 'tax_type_code': 'str', + 'freight_amount': 'str', + 'foreign_amount': 'str', + 'foreign_currency': 'str', + 'exchange_rate': 'str', + 'exchange_rate_time_stamp': 'str', + 'amex_additional_amounts': 'list[Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts]', + 'tax_details': 'list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails]' + } + + attribute_map = { + 'total_amount': 'totalAmount', + 'currency': 'currency', + 'discount_amount': 'discountAmount', + 'duty_amount': 'dutyAmount', + 'tax_amount': 'taxAmount', + 'national_tax_included': 'nationalTaxIncluded', + 'tax_applied_after_discount': 'taxAppliedAfterDiscount', + 'tax_applied_level': 'taxAppliedLevel', + 'tax_type_code': 'taxTypeCode', + 'freight_amount': 'freightAmount', + 'foreign_amount': 'foreignAmount', + 'foreign_currency': 'foreignCurrency', + 'exchange_rate': 'exchangeRate', + 'exchange_rate_time_stamp': 'exchangeRateTimeStamp', + 'amex_additional_amounts': 'amexAdditionalAmounts', + 'tax_details': 'taxDetails' + } + + def __init__(self, total_amount=None, currency=None, discount_amount=None, duty_amount=None, tax_amount=None, national_tax_included=None, tax_applied_after_discount=None, tax_applied_level=None, tax_type_code=None, freight_amount=None, foreign_amount=None, foreign_currency=None, exchange_rate=None, exchange_rate_time_stamp=None, amex_additional_amounts=None, tax_details=None): + """ + Ptsv2paymentsidcapturesOrderInformationAmountDetails - a model defined in Swagger + """ + + self._total_amount = None + self._currency = None + self._discount_amount = None + self._duty_amount = None + self._tax_amount = None + self._national_tax_included = None + self._tax_applied_after_discount = None + self._tax_applied_level = None + self._tax_type_code = None + self._freight_amount = None + self._foreign_amount = None + self._foreign_currency = None + self._exchange_rate = None + self._exchange_rate_time_stamp = None + self._amex_additional_amounts = None + self._tax_details = None + + if total_amount is not None: + self.total_amount = total_amount + if currency is not None: + self.currency = currency + if discount_amount is not None: + self.discount_amount = discount_amount + if duty_amount is not None: + self.duty_amount = duty_amount + if tax_amount is not None: + self.tax_amount = tax_amount + if national_tax_included is not None: + self.national_tax_included = national_tax_included + if tax_applied_after_discount is not None: + self.tax_applied_after_discount = tax_applied_after_discount + if tax_applied_level is not None: + self.tax_applied_level = tax_applied_level + if tax_type_code is not None: + self.tax_type_code = tax_type_code + if freight_amount is not None: + self.freight_amount = freight_amount + if foreign_amount is not None: + self.foreign_amount = foreign_amount + if foreign_currency is not None: + self.foreign_currency = foreign_currency + if exchange_rate is not None: + self.exchange_rate = exchange_rate + if exchange_rate_time_stamp is not None: + self.exchange_rate_time_stamp = exchange_rate_time_stamp + if amex_additional_amounts is not None: + self.amex_additional_amounts = amex_additional_amounts + if tax_details is not None: + self.tax_details = tax_details + + @property + def total_amount(self): + """ + Gets the total_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The total_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._total_amount + + @total_amount.setter + def total_amount(self, total_amount): + """ + Sets the total_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param total_amount: The total_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if total_amount is not None and len(total_amount) > 19: + raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") + + self._total_amount = total_amount + + @property + def currency(self): + """ + Gets the currency of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + @property + def discount_amount(self): + """ + Gets the discount_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The discount_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._discount_amount + + @discount_amount.setter + def discount_amount(self, discount_amount): + """ + Sets the discount_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param discount_amount: The discount_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if discount_amount is not None and len(discount_amount) > 15: + raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `15`") + + self._discount_amount = discount_amount + + @property + def duty_amount(self): + """ + Gets the duty_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The duty_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._duty_amount + + @duty_amount.setter + def duty_amount(self, duty_amount): + """ + Sets the duty_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param duty_amount: The duty_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if duty_amount is not None and len(duty_amount) > 15: + raise ValueError("Invalid value for `duty_amount`, length must be less than or equal to `15`") + + self._duty_amount = duty_amount + + @property + def tax_amount(self): + """ + Gets the tax_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The tax_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._tax_amount + + @tax_amount.setter + def tax_amount(self, tax_amount): + """ + Sets the tax_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param tax_amount: The tax_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if tax_amount is not None and len(tax_amount) > 12: + raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `12`") + + self._tax_amount = tax_amount + + @property + def national_tax_included(self): + """ + Gets the national_tax_included of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The national_tax_included of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._national_tax_included + + @national_tax_included.setter + def national_tax_included(self, national_tax_included): + """ + Sets the national_tax_included of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param national_tax_included: The national_tax_included of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if national_tax_included is not None and len(national_tax_included) > 1: + raise ValueError("Invalid value for `national_tax_included`, length must be less than or equal to `1`") + + self._national_tax_included = national_tax_included + + @property + def tax_applied_after_discount(self): + """ + Gets the tax_applied_after_discount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The tax_applied_after_discount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._tax_applied_after_discount + + @tax_applied_after_discount.setter + def tax_applied_after_discount(self, tax_applied_after_discount): + """ + Sets the tax_applied_after_discount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param tax_applied_after_discount: The tax_applied_after_discount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if tax_applied_after_discount is not None and len(tax_applied_after_discount) > 1: + raise ValueError("Invalid value for `tax_applied_after_discount`, length must be less than or equal to `1`") + + self._tax_applied_after_discount = tax_applied_after_discount + + @property + def tax_applied_level(self): + """ + Gets the tax_applied_level of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The tax_applied_level of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._tax_applied_level + + @tax_applied_level.setter + def tax_applied_level(self, tax_applied_level): + """ + Sets the tax_applied_level of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param tax_applied_level: The tax_applied_level of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if tax_applied_level is not None and len(tax_applied_level) > 1: + raise ValueError("Invalid value for `tax_applied_level`, length must be less than or equal to `1`") + + self._tax_applied_level = tax_applied_level + + @property + def tax_type_code(self): + """ + Gets the tax_type_code of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The tax_type_code of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._tax_type_code + + @tax_type_code.setter + def tax_type_code(self, tax_type_code): + """ + Sets the tax_type_code of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param tax_type_code: The tax_type_code of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if tax_type_code is not None and len(tax_type_code) > 3: + raise ValueError("Invalid value for `tax_type_code`, length must be less than or equal to `3`") + + self._tax_type_code = tax_type_code + + @property + def freight_amount(self): + """ + Gets the freight_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The freight_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._freight_amount + + @freight_amount.setter + def freight_amount(self, freight_amount): + """ + Sets the freight_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param freight_amount: The freight_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if freight_amount is not None and len(freight_amount) > 13: + raise ValueError("Invalid value for `freight_amount`, length must be less than or equal to `13`") + + self._freight_amount = freight_amount + + @property + def foreign_amount(self): + """ + Gets the foreign_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The foreign_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._foreign_amount + + @foreign_amount.setter + def foreign_amount(self, foreign_amount): + """ + Sets the foreign_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param foreign_amount: The foreign_amount of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if foreign_amount is not None and len(foreign_amount) > 15: + raise ValueError("Invalid value for `foreign_amount`, length must be less than or equal to `15`") + + self._foreign_amount = foreign_amount + + @property + def foreign_currency(self): + """ + Gets the foreign_currency of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The foreign_currency of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._foreign_currency + + @foreign_currency.setter + def foreign_currency(self, foreign_currency): + """ + Sets the foreign_currency of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param foreign_currency: The foreign_currency of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if foreign_currency is not None and len(foreign_currency) > 5: + raise ValueError("Invalid value for `foreign_currency`, length must be less than or equal to `5`") + + self._foreign_currency = foreign_currency + + @property + def exchange_rate(self): + """ + Gets the exchange_rate of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The exchange_rate of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._exchange_rate + + @exchange_rate.setter + def exchange_rate(self, exchange_rate): + """ + Sets the exchange_rate of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param exchange_rate: The exchange_rate of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if exchange_rate is not None and len(exchange_rate) > 13: + raise ValueError("Invalid value for `exchange_rate`, length must be less than or equal to `13`") + + self._exchange_rate = exchange_rate + + @property + def exchange_rate_time_stamp(self): + """ + Gets the exchange_rate_time_stamp of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The exchange_rate_time_stamp of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: str + """ + return self._exchange_rate_time_stamp + + @exchange_rate_time_stamp.setter + def exchange_rate_time_stamp(self, exchange_rate_time_stamp): + """ + Sets the exchange_rate_time_stamp of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param exchange_rate_time_stamp: The exchange_rate_time_stamp of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: str + """ + if exchange_rate_time_stamp is not None and len(exchange_rate_time_stamp) > 14: + raise ValueError("Invalid value for `exchange_rate_time_stamp`, length must be less than or equal to `14`") + + self._exchange_rate_time_stamp = exchange_rate_time_stamp + + @property + def amex_additional_amounts(self): + """ + Gets the amex_additional_amounts of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + + :return: The amex_additional_amounts of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: list[Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts] + """ + return self._amex_additional_amounts + + @amex_additional_amounts.setter + def amex_additional_amounts(self, amex_additional_amounts): + """ + Sets the amex_additional_amounts of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + + :param amex_additional_amounts: The amex_additional_amounts of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: list[Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts] + """ + + self._amex_additional_amounts = amex_additional_amounts + + @property + def tax_details(self): + """ + Gets the tax_details of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + + :return: The tax_details of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :rtype: list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails] + """ + return self._tax_details + + @tax_details.setter + def tax_details(self, tax_details): + """ + Sets the tax_details of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + + :param tax_details: The tax_details of this Ptsv2paymentsidcapturesOrderInformationAmountDetails. + :type: list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails] + """ + + self._tax_details = tax_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesOrderInformationAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_order_information_bill_to.py b/CyberSource/models/ptsv2paymentsidcaptures_order_information_bill_to.py new file mode 100644 index 00000000..58cedc1a --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_order_information_bill_to.py @@ -0,0 +1,427 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesOrderInformationBillTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first_name': 'str', + 'last_name': 'str', + 'company': 'str', + 'address1': 'str', + 'address2': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'postal_code': 'str', + 'country': 'str', + 'email': 'str', + 'phone_number': 'str' + } + + attribute_map = { + 'first_name': 'firstName', + 'last_name': 'lastName', + 'company': 'company', + 'address1': 'address1', + 'address2': 'address2', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'postal_code': 'postalCode', + 'country': 'country', + 'email': 'email', + 'phone_number': 'phoneNumber' + } + + def __init__(self, first_name=None, last_name=None, company=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, country=None, email=None, phone_number=None): + """ + Ptsv2paymentsidcapturesOrderInformationBillTo - a model defined in Swagger + """ + + self._first_name = None + self._last_name = None + self._company = None + self._address1 = None + self._address2 = None + self._locality = None + self._administrative_area = None + self._postal_code = None + self._country = None + self._email = None + self._phone_number = None + + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if company is not None: + self.company = company + if address1 is not None: + self.address1 = address1 + if address2 is not None: + self.address2 = address2 + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if postal_code is not None: + self.postal_code = postal_code + if country is not None: + self.country = country + if email is not None: + self.email = email + if phone_number is not None: + self.phone_number = phone_number + + @property + def first_name(self): + """ + Gets the first_name of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The first_name of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param first_name: The first_name of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if first_name is not None and len(first_name) > 60: + raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") + + self._first_name = first_name + + @property + def last_name(self): + """ + Gets the last_name of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The last_name of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param last_name: The last_name of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if last_name is not None and len(last_name) > 60: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") + + self._last_name = last_name + + @property + def company(self): + """ + Gets the company of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The company of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._company + + @company.setter + def company(self, company): + """ + Sets the company of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param company: The company of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if company is not None and len(company) > 60: + raise ValueError("Invalid value for `company`, length must be less than or equal to `60`") + + self._company = company + + @property + def address1(self): + """ + Gets the address1 of this Ptsv2paymentsidcapturesOrderInformationBillTo. + First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The address1 of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this Ptsv2paymentsidcapturesOrderInformationBillTo. + First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param address1: The address1 of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if address1 is not None and len(address1) > 60: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") + + self._address1 = address1 + + @property + def address2(self): + """ + Gets the address2 of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The address2 of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._address2 + + @address2.setter + def address2(self, address2): + """ + Sets the address2 of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param address2: The address2 of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if address2 is not None and len(address2) > 60: + raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") + + self._address2 = address2 + + @property + def locality(self): + """ + Gets the locality of this Ptsv2paymentsidcapturesOrderInformationBillTo. + City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The locality of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Ptsv2paymentsidcapturesOrderInformationBillTo. + City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param locality: The locality of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if locality is not None and len(locality) > 50: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2paymentsidcapturesOrderInformationBillTo. + State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The administrative_area of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2paymentsidcapturesOrderInformationBillTo. + State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param administrative_area: The administrative_area of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 2: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") + + self._administrative_area = administrative_area + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The postal_code of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param postal_code: The postal_code of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if postal_code is not None and len(postal_code) > 10: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") + + self._postal_code = postal_code + + @property + def country(self): + """ + Gets the country of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The country of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param country: The country of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def email(self): + """ + Gets the email of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The email of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param email: The email of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if email is not None and len(email) > 255: + raise ValueError("Invalid value for `email`, length must be less than or equal to `255`") + + self._email = email + + @property + def phone_number(self): + """ + Gets the phone_number of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The phone_number of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this Ptsv2paymentsidcapturesOrderInformationBillTo. + Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param phone_number: The phone_number of this Ptsv2paymentsidcapturesOrderInformationBillTo. + :type: str + """ + if phone_number is not None and len(phone_number) > 15: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") + + self._phone_number = phone_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesOrderInformationBillTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_order_information_invoice_details.py b/CyberSource/models/ptsv2paymentsidcaptures_order_information_invoice_details.py new file mode 100644 index 00000000..28da8bf5 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_order_information_invoice_details.py @@ -0,0 +1,301 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesOrderInformationInvoiceDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'purchase_order_number': 'str', + 'purchase_order_date': 'str', + 'purchase_contact_name': 'str', + 'taxable': 'bool', + 'vat_invoice_reference_number': 'str', + 'commodity_code': 'str', + 'transaction_advice_addendum': 'list[Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]' + } + + attribute_map = { + 'purchase_order_number': 'purchaseOrderNumber', + 'purchase_order_date': 'purchaseOrderDate', + 'purchase_contact_name': 'purchaseContactName', + 'taxable': 'taxable', + 'vat_invoice_reference_number': 'vatInvoiceReferenceNumber', + 'commodity_code': 'commodityCode', + 'transaction_advice_addendum': 'transactionAdviceAddendum' + } + + def __init__(self, purchase_order_number=None, purchase_order_date=None, purchase_contact_name=None, taxable=None, vat_invoice_reference_number=None, commodity_code=None, transaction_advice_addendum=None): + """ + Ptsv2paymentsidcapturesOrderInformationInvoiceDetails - a model defined in Swagger + """ + + self._purchase_order_number = None + self._purchase_order_date = None + self._purchase_contact_name = None + self._taxable = None + self._vat_invoice_reference_number = None + self._commodity_code = None + self._transaction_advice_addendum = None + + if purchase_order_number is not None: + self.purchase_order_number = purchase_order_number + if purchase_order_date is not None: + self.purchase_order_date = purchase_order_date + if purchase_contact_name is not None: + self.purchase_contact_name = purchase_contact_name + if taxable is not None: + self.taxable = taxable + if vat_invoice_reference_number is not None: + self.vat_invoice_reference_number = vat_invoice_reference_number + if commodity_code is not None: + self.commodity_code = commodity_code + if transaction_advice_addendum is not None: + self.transaction_advice_addendum = transaction_advice_addendum + + @property + def purchase_order_number(self): + """ + Gets the purchase_order_number of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The purchase_order_number of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :rtype: str + """ + return self._purchase_order_number + + @purchase_order_number.setter + def purchase_order_number(self, purchase_order_number): + """ + Sets the purchase_order_number of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param purchase_order_number: The purchase_order_number of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :type: str + """ + if purchase_order_number is not None and len(purchase_order_number) > 25: + raise ValueError("Invalid value for `purchase_order_number`, length must be less than or equal to `25`") + + self._purchase_order_number = purchase_order_number + + @property + def purchase_order_date(self): + """ + Gets the purchase_order_date of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The purchase_order_date of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :rtype: str + """ + return self._purchase_order_date + + @purchase_order_date.setter + def purchase_order_date(self, purchase_order_date): + """ + Sets the purchase_order_date of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param purchase_order_date: The purchase_order_date of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :type: str + """ + if purchase_order_date is not None and len(purchase_order_date) > 10: + raise ValueError("Invalid value for `purchase_order_date`, length must be less than or equal to `10`") + + self._purchase_order_date = purchase_order_date + + @property + def purchase_contact_name(self): + """ + Gets the purchase_contact_name of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The purchase_contact_name of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :rtype: str + """ + return self._purchase_contact_name + + @purchase_contact_name.setter + def purchase_contact_name(self, purchase_contact_name): + """ + Sets the purchase_contact_name of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param purchase_contact_name: The purchase_contact_name of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :type: str + """ + if purchase_contact_name is not None and len(purchase_contact_name) > 36: + raise ValueError("Invalid value for `purchase_contact_name`, length must be less than or equal to `36`") + + self._purchase_contact_name = purchase_contact_name + + @property + def taxable(self): + """ + Gets the taxable of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The taxable of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :rtype: bool + """ + return self._taxable + + @taxable.setter + def taxable(self, taxable): + """ + Sets the taxable of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param taxable: The taxable of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :type: bool + """ + + self._taxable = taxable + + @property + def vat_invoice_reference_number(self): + """ + Gets the vat_invoice_reference_number of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The vat_invoice_reference_number of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :rtype: str + """ + return self._vat_invoice_reference_number + + @vat_invoice_reference_number.setter + def vat_invoice_reference_number(self, vat_invoice_reference_number): + """ + Sets the vat_invoice_reference_number of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param vat_invoice_reference_number: The vat_invoice_reference_number of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :type: str + """ + if vat_invoice_reference_number is not None and len(vat_invoice_reference_number) > 15: + raise ValueError("Invalid value for `vat_invoice_reference_number`, length must be less than or equal to `15`") + + self._vat_invoice_reference_number = vat_invoice_reference_number + + @property + def commodity_code(self): + """ + Gets the commodity_code of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The commodity_code of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :rtype: str + """ + return self._commodity_code + + @commodity_code.setter + def commodity_code(self, commodity_code): + """ + Sets the commodity_code of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param commodity_code: The commodity_code of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :type: str + """ + if commodity_code is not None and len(commodity_code) > 4: + raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `4`") + + self._commodity_code = commodity_code + + @property + def transaction_advice_addendum(self): + """ + Gets the transaction_advice_addendum of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + + :return: The transaction_advice_addendum of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :rtype: list[Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] + """ + return self._transaction_advice_addendum + + @transaction_advice_addendum.setter + def transaction_advice_addendum(self, transaction_advice_addendum): + """ + Sets the transaction_advice_addendum of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + + :param transaction_advice_addendum: The transaction_advice_addendum of this Ptsv2paymentsidcapturesOrderInformationInvoiceDetails. + :type: list[Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] + """ + + self._transaction_advice_addendum = transaction_advice_addendum + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesOrderInformationInvoiceDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_order_information_ship_to.py b/CyberSource/models/ptsv2paymentsidcaptures_order_information_ship_to.py new file mode 100644 index 00000000..be3e8e51 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_order_information_ship_to.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesOrderInformationShipTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'administrative_area': 'str', + 'country': 'str', + 'postal_code': 'str' + } + + attribute_map = { + 'administrative_area': 'administrativeArea', + 'country': 'country', + 'postal_code': 'postalCode' + } + + def __init__(self, administrative_area=None, country=None, postal_code=None): + """ + Ptsv2paymentsidcapturesOrderInformationShipTo - a model defined in Swagger + """ + + self._administrative_area = None + self._country = None + self._postal_code = None + + if administrative_area is not None: + self.administrative_area = administrative_area + if country is not None: + self.country = country + if postal_code is not None: + self.postal_code = postal_code + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2paymentsidcapturesOrderInformationShipTo. + State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. + + :return: The administrative_area of this Ptsv2paymentsidcapturesOrderInformationShipTo. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2paymentsidcapturesOrderInformationShipTo. + State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. + + :param administrative_area: The administrative_area of this Ptsv2paymentsidcapturesOrderInformationShipTo. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 2: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") + + self._administrative_area = administrative_area + + @property + def country(self): + """ + Gets the country of this Ptsv2paymentsidcapturesOrderInformationShipTo. + Country of the shipping address. Use the two character ISO Standard Country Codes. + + :return: The country of this Ptsv2paymentsidcapturesOrderInformationShipTo. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Ptsv2paymentsidcapturesOrderInformationShipTo. + Country of the shipping address. Use the two character ISO Standard Country Codes. + + :param country: The country of this Ptsv2paymentsidcapturesOrderInformationShipTo. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2paymentsidcapturesOrderInformationShipTo. + Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 + + :return: The postal_code of this Ptsv2paymentsidcapturesOrderInformationShipTo. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2paymentsidcapturesOrderInformationShipTo. + Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 + + :param postal_code: The postal_code of this Ptsv2paymentsidcapturesOrderInformationShipTo. + :type: str + """ + if postal_code is not None and len(postal_code) > 10: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") + + self._postal_code = postal_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesOrderInformationShipTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_order_information_shipping_details.py b/CyberSource/models/ptsv2paymentsidcaptures_order_information_shipping_details.py new file mode 100644 index 00000000..71af026a --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_order_information_shipping_details.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesOrderInformationShippingDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'ship_from_postal_code': 'str' + } + + attribute_map = { + 'ship_from_postal_code': 'shipFromPostalCode' + } + + def __init__(self, ship_from_postal_code=None): + """ + Ptsv2paymentsidcapturesOrderInformationShippingDetails - a model defined in Swagger + """ + + self._ship_from_postal_code = None + + if ship_from_postal_code is not None: + self.ship_from_postal_code = ship_from_postal_code + + @property + def ship_from_postal_code(self): + """ + Gets the ship_from_postal_code of this Ptsv2paymentsidcapturesOrderInformationShippingDetails. + Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. + + :return: The ship_from_postal_code of this Ptsv2paymentsidcapturesOrderInformationShippingDetails. + :rtype: str + """ + return self._ship_from_postal_code + + @ship_from_postal_code.setter + def ship_from_postal_code(self, ship_from_postal_code): + """ + Sets the ship_from_postal_code of this Ptsv2paymentsidcapturesOrderInformationShippingDetails. + Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. + + :param ship_from_postal_code: The ship_from_postal_code of this Ptsv2paymentsidcapturesOrderInformationShippingDetails. + :type: str + """ + if ship_from_postal_code is not None and len(ship_from_postal_code) > 10: + raise ValueError("Invalid value for `ship_from_postal_code`, length must be less than or equal to `10`") + + self._ship_from_postal_code = ship_from_postal_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesOrderInformationShippingDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_payment_information.py b/CyberSource/models/ptsv2paymentsidcaptures_payment_information.py new file mode 100644 index 00000000..108f0214 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_payment_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesPaymentInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'customer': 'Ptsv2paymentsPaymentInformationCustomer' + } + + attribute_map = { + 'customer': 'customer' + } + + def __init__(self, customer=None): + """ + Ptsv2paymentsidcapturesPaymentInformation - a model defined in Swagger + """ + + self._customer = None + + if customer is not None: + self.customer = customer + + @property + def customer(self): + """ + Gets the customer of this Ptsv2paymentsidcapturesPaymentInformation. + + :return: The customer of this Ptsv2paymentsidcapturesPaymentInformation. + :rtype: Ptsv2paymentsPaymentInformationCustomer + """ + return self._customer + + @customer.setter + def customer(self, customer): + """ + Sets the customer of this Ptsv2paymentsidcapturesPaymentInformation. + + :param customer: The customer of this Ptsv2paymentsidcapturesPaymentInformation. + :type: Ptsv2paymentsPaymentInformationCustomer + """ + + self._customer = customer + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesPaymentInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_point_of_sale_information.py b/CyberSource/models/ptsv2paymentsidcaptures_point_of_sale_information.py new file mode 100644 index 00000000..3e858f4c --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_point_of_sale_information.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesPointOfSaleInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'emv': 'Ptsv2paymentsidcapturesPointOfSaleInformationEmv', + 'amex_capn_data': 'str' + } + + attribute_map = { + 'emv': 'emv', + 'amex_capn_data': 'amexCapnData' + } + + def __init__(self, emv=None, amex_capn_data=None): + """ + Ptsv2paymentsidcapturesPointOfSaleInformation - a model defined in Swagger + """ + + self._emv = None + self._amex_capn_data = None + + if emv is not None: + self.emv = emv + if amex_capn_data is not None: + self.amex_capn_data = amex_capn_data + + @property + def emv(self): + """ + Gets the emv of this Ptsv2paymentsidcapturesPointOfSaleInformation. + + :return: The emv of this Ptsv2paymentsidcapturesPointOfSaleInformation. + :rtype: Ptsv2paymentsidcapturesPointOfSaleInformationEmv + """ + return self._emv + + @emv.setter + def emv(self, emv): + """ + Sets the emv of this Ptsv2paymentsidcapturesPointOfSaleInformation. + + :param emv: The emv of this Ptsv2paymentsidcapturesPointOfSaleInformation. + :type: Ptsv2paymentsidcapturesPointOfSaleInformationEmv + """ + + self._emv = emv + + @property + def amex_capn_data(self): + """ + Gets the amex_capn_data of this Ptsv2paymentsidcapturesPointOfSaleInformation. + Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. + + :return: The amex_capn_data of this Ptsv2paymentsidcapturesPointOfSaleInformation. + :rtype: str + """ + return self._amex_capn_data + + @amex_capn_data.setter + def amex_capn_data(self, amex_capn_data): + """ + Sets the amex_capn_data of this Ptsv2paymentsidcapturesPointOfSaleInformation. + Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. + + :param amex_capn_data: The amex_capn_data of this Ptsv2paymentsidcapturesPointOfSaleInformation. + :type: str + """ + if amex_capn_data is not None and len(amex_capn_data) > 12: + raise ValueError("Invalid value for `amex_capn_data`, length must be less than or equal to `12`") + + self._amex_capn_data = amex_capn_data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesPointOfSaleInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.py b/CyberSource/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.py new file mode 100644 index 00000000..3d9dbf21 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesPointOfSaleInformationEmv(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tags': 'str', + 'fallback': 'bool' + } + + attribute_map = { + 'tags': 'tags', + 'fallback': 'fallback' + } + + def __init__(self, tags=None, fallback=False): + """ + Ptsv2paymentsidcapturesPointOfSaleInformationEmv - a model defined in Swagger + """ + + self._tags = None + self._fallback = None + + if tags is not None: + self.tags = tags + if fallback is not None: + self.fallback = fallback + + @property + def tags(self): + """ + Gets the tags of this Ptsv2paymentsidcapturesPointOfSaleInformationEmv. + EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram + + :return: The tags of this Ptsv2paymentsidcapturesPointOfSaleInformationEmv. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this Ptsv2paymentsidcapturesPointOfSaleInformationEmv. + EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram + + :param tags: The tags of this Ptsv2paymentsidcapturesPointOfSaleInformationEmv. + :type: str + """ + if tags is not None and len(tags) > 1998: + raise ValueError("Invalid value for `tags`, length must be less than or equal to `1998`") + + self._tags = tags + + @property + def fallback(self): + """ + Gets the fallback of this Ptsv2paymentsidcapturesPointOfSaleInformationEmv. + Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. + + :return: The fallback of this Ptsv2paymentsidcapturesPointOfSaleInformationEmv. + :rtype: bool + """ + return self._fallback + + @fallback.setter + def fallback(self, fallback): + """ + Sets the fallback of this Ptsv2paymentsidcapturesPointOfSaleInformationEmv. + Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. + + :param fallback: The fallback of this Ptsv2paymentsidcapturesPointOfSaleInformationEmv. + :type: bool + """ + + self._fallback = fallback + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesPointOfSaleInformationEmv): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_processing_information.py b/CyberSource/models/ptsv2paymentsidcaptures_processing_information.py new file mode 100644 index 00000000..033fd259 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_processing_information.py @@ -0,0 +1,355 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesProcessingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'payment_solution': 'str', + 'reconciliation_id': 'str', + 'link_id': 'str', + 'report_group': 'str', + 'visa_checkout_id': 'str', + 'purchase_level': 'str', + 'issuer': 'Ptsv2paymentsProcessingInformationIssuer', + 'authorization_options': 'Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions', + 'capture_options': 'Ptsv2paymentsidcapturesProcessingInformationCaptureOptions' + } + + attribute_map = { + 'payment_solution': 'paymentSolution', + 'reconciliation_id': 'reconciliationId', + 'link_id': 'linkId', + 'report_group': 'reportGroup', + 'visa_checkout_id': 'visaCheckoutId', + 'purchase_level': 'purchaseLevel', + 'issuer': 'issuer', + 'authorization_options': 'authorizationOptions', + 'capture_options': 'captureOptions' + } + + def __init__(self, payment_solution=None, reconciliation_id=None, link_id=None, report_group=None, visa_checkout_id=None, purchase_level=None, issuer=None, authorization_options=None, capture_options=None): + """ + Ptsv2paymentsidcapturesProcessingInformation - a model defined in Swagger + """ + + self._payment_solution = None + self._reconciliation_id = None + self._link_id = None + self._report_group = None + self._visa_checkout_id = None + self._purchase_level = None + self._issuer = None + self._authorization_options = None + self._capture_options = None + + if payment_solution is not None: + self.payment_solution = payment_solution + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if link_id is not None: + self.link_id = link_id + if report_group is not None: + self.report_group = report_group + if visa_checkout_id is not None: + self.visa_checkout_id = visa_checkout_id + if purchase_level is not None: + self.purchase_level = purchase_level + if issuer is not None: + self.issuer = issuer + if authorization_options is not None: + self.authorization_options = authorization_options + if capture_options is not None: + self.capture_options = capture_options + + @property + def payment_solution(self): + """ + Gets the payment_solution of this Ptsv2paymentsidcapturesProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :return: The payment_solution of this Ptsv2paymentsidcapturesProcessingInformation. + :rtype: str + """ + return self._payment_solution + + @payment_solution.setter + def payment_solution(self, payment_solution): + """ + Sets the payment_solution of this Ptsv2paymentsidcapturesProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :param payment_solution: The payment_solution of this Ptsv2paymentsidcapturesProcessingInformation. + :type: str + """ + if payment_solution is not None and len(payment_solution) > 12: + raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") + + self._payment_solution = payment_solution + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this Ptsv2paymentsidcapturesProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :return: The reconciliation_id of this Ptsv2paymentsidcapturesProcessingInformation. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this Ptsv2paymentsidcapturesProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :param reconciliation_id: The reconciliation_id of this Ptsv2paymentsidcapturesProcessingInformation. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def link_id(self): + """ + Gets the link_id of this Ptsv2paymentsidcapturesProcessingInformation. + Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. + + :return: The link_id of this Ptsv2paymentsidcapturesProcessingInformation. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """ + Sets the link_id of this Ptsv2paymentsidcapturesProcessingInformation. + Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. + + :param link_id: The link_id of this Ptsv2paymentsidcapturesProcessingInformation. + :type: str + """ + if link_id is not None and len(link_id) > 26: + raise ValueError("Invalid value for `link_id`, length must be less than or equal to `26`") + + self._link_id = link_id + + @property + def report_group(self): + """ + Gets the report_group of this Ptsv2paymentsidcapturesProcessingInformation. + Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. + + :return: The report_group of this Ptsv2paymentsidcapturesProcessingInformation. + :rtype: str + """ + return self._report_group + + @report_group.setter + def report_group(self, report_group): + """ + Sets the report_group of this Ptsv2paymentsidcapturesProcessingInformation. + Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. + + :param report_group: The report_group of this Ptsv2paymentsidcapturesProcessingInformation. + :type: str + """ + if report_group is not None and len(report_group) > 25: + raise ValueError("Invalid value for `report_group`, length must be less than or equal to `25`") + + self._report_group = report_group + + @property + def visa_checkout_id(self): + """ + Gets the visa_checkout_id of this Ptsv2paymentsidcapturesProcessingInformation. + Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. + + :return: The visa_checkout_id of this Ptsv2paymentsidcapturesProcessingInformation. + :rtype: str + """ + return self._visa_checkout_id + + @visa_checkout_id.setter + def visa_checkout_id(self, visa_checkout_id): + """ + Sets the visa_checkout_id of this Ptsv2paymentsidcapturesProcessingInformation. + Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. + + :param visa_checkout_id: The visa_checkout_id of this Ptsv2paymentsidcapturesProcessingInformation. + :type: str + """ + if visa_checkout_id is not None and len(visa_checkout_id) > 48: + raise ValueError("Invalid value for `visa_checkout_id`, length must be less than or equal to `48`") + + self._visa_checkout_id = visa_checkout_id + + @property + def purchase_level(self): + """ + Gets the purchase_level of this Ptsv2paymentsidcapturesProcessingInformation. + Set this field to 3 to indicate that the request includes Level III data. + + :return: The purchase_level of this Ptsv2paymentsidcapturesProcessingInformation. + :rtype: str + """ + return self._purchase_level + + @purchase_level.setter + def purchase_level(self, purchase_level): + """ + Sets the purchase_level of this Ptsv2paymentsidcapturesProcessingInformation. + Set this field to 3 to indicate that the request includes Level III data. + + :param purchase_level: The purchase_level of this Ptsv2paymentsidcapturesProcessingInformation. + :type: str + """ + if purchase_level is not None and len(purchase_level) > 1: + raise ValueError("Invalid value for `purchase_level`, length must be less than or equal to `1`") + + self._purchase_level = purchase_level + + @property + def issuer(self): + """ + Gets the issuer of this Ptsv2paymentsidcapturesProcessingInformation. + + :return: The issuer of this Ptsv2paymentsidcapturesProcessingInformation. + :rtype: Ptsv2paymentsProcessingInformationIssuer + """ + return self._issuer + + @issuer.setter + def issuer(self, issuer): + """ + Sets the issuer of this Ptsv2paymentsidcapturesProcessingInformation. + + :param issuer: The issuer of this Ptsv2paymentsidcapturesProcessingInformation. + :type: Ptsv2paymentsProcessingInformationIssuer + """ + + self._issuer = issuer + + @property + def authorization_options(self): + """ + Gets the authorization_options of this Ptsv2paymentsidcapturesProcessingInformation. + + :return: The authorization_options of this Ptsv2paymentsidcapturesProcessingInformation. + :rtype: Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions + """ + return self._authorization_options + + @authorization_options.setter + def authorization_options(self, authorization_options): + """ + Sets the authorization_options of this Ptsv2paymentsidcapturesProcessingInformation. + + :param authorization_options: The authorization_options of this Ptsv2paymentsidcapturesProcessingInformation. + :type: Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions + """ + + self._authorization_options = authorization_options + + @property + def capture_options(self): + """ + Gets the capture_options of this Ptsv2paymentsidcapturesProcessingInformation. + + :return: The capture_options of this Ptsv2paymentsidcapturesProcessingInformation. + :rtype: Ptsv2paymentsidcapturesProcessingInformationCaptureOptions + """ + return self._capture_options + + @capture_options.setter + def capture_options(self, capture_options): + """ + Sets the capture_options of this Ptsv2paymentsidcapturesProcessingInformation. + + :param capture_options: The capture_options of this Ptsv2paymentsidcapturesProcessingInformation. + :type: Ptsv2paymentsidcapturesProcessingInformationCaptureOptions + """ + + self._capture_options = capture_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesProcessingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_processing_information_authorization_options.py b/CyberSource/models/ptsv2paymentsidcaptures_processing_information_authorization_options.py new file mode 100644 index 00000000..45dccd7f --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_processing_information_authorization_options.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_type': 'str', + 'verbal_auth_code': 'str', + 'verbal_auth_transaction_id': 'str' + } + + attribute_map = { + 'auth_type': 'authType', + 'verbal_auth_code': 'verbalAuthCode', + 'verbal_auth_transaction_id': 'verbalAuthTransactionId' + } + + def __init__(self, auth_type=None, verbal_auth_code=None, verbal_auth_transaction_id=None): + """ + Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions - a model defined in Swagger + """ + + self._auth_type = None + self._verbal_auth_code = None + self._verbal_auth_transaction_id = None + + if auth_type is not None: + self.auth_type = auth_type + if verbal_auth_code is not None: + self.verbal_auth_code = verbal_auth_code + if verbal_auth_transaction_id is not None: + self.verbal_auth_transaction_id = verbal_auth_transaction_id + + @property + def auth_type(self): + """ + Gets the auth_type of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The auth_type of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """ + Sets the auth_type of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param auth_type: The auth_type of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + :type: str + """ + if auth_type is not None and len(auth_type) > 15: + raise ValueError("Invalid value for `auth_type`, length must be less than or equal to `15`") + + self._auth_type = auth_type + + @property + def verbal_auth_code(self): + """ + Gets the verbal_auth_code of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The verbal_auth_code of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + :rtype: str + """ + return self._verbal_auth_code + + @verbal_auth_code.setter + def verbal_auth_code(self, verbal_auth_code): + """ + Sets the verbal_auth_code of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param verbal_auth_code: The verbal_auth_code of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + :type: str + """ + if verbal_auth_code is not None and len(verbal_auth_code) > 7: + raise ValueError("Invalid value for `verbal_auth_code`, length must be less than or equal to `7`") + + self._verbal_auth_code = verbal_auth_code + + @property + def verbal_auth_transaction_id(self): + """ + Gets the verbal_auth_transaction_id of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + Transaction ID (TID). + + :return: The verbal_auth_transaction_id of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + :rtype: str + """ + return self._verbal_auth_transaction_id + + @verbal_auth_transaction_id.setter + def verbal_auth_transaction_id(self, verbal_auth_transaction_id): + """ + Sets the verbal_auth_transaction_id of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + Transaction ID (TID). + + :param verbal_auth_transaction_id: The verbal_auth_transaction_id of this Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions. + :type: str + """ + if verbal_auth_transaction_id is not None and len(verbal_auth_transaction_id) > 15: + raise ValueError("Invalid value for `verbal_auth_transaction_id`, length must be less than or equal to `15`") + + self._verbal_auth_transaction_id = verbal_auth_transaction_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidcaptures_processing_information_capture_options.py b/CyberSource/models/ptsv2paymentsidcaptures_processing_information_capture_options.py new file mode 100644 index 00000000..e81d4d20 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidcaptures_processing_information_capture_options.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidcapturesProcessingInformationCaptureOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'capture_sequence_number': 'float', + 'total_capture_count': 'float' + } + + attribute_map = { + 'capture_sequence_number': 'captureSequenceNumber', + 'total_capture_count': 'totalCaptureCount' + } + + def __init__(self, capture_sequence_number=None, total_capture_count=None): + """ + Ptsv2paymentsidcapturesProcessingInformationCaptureOptions - a model defined in Swagger + """ + + self._capture_sequence_number = None + self._total_capture_count = None + + if capture_sequence_number is not None: + self.capture_sequence_number = capture_sequence_number + if total_capture_count is not None: + self.total_capture_count = total_capture_count + + @property + def capture_sequence_number(self): + """ + Gets the capture_sequence_number of this Ptsv2paymentsidcapturesProcessingInformationCaptureOptions. + Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 + + :return: The capture_sequence_number of this Ptsv2paymentsidcapturesProcessingInformationCaptureOptions. + :rtype: float + """ + return self._capture_sequence_number + + @capture_sequence_number.setter + def capture_sequence_number(self, capture_sequence_number): + """ + Sets the capture_sequence_number of this Ptsv2paymentsidcapturesProcessingInformationCaptureOptions. + Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 + + :param capture_sequence_number: The capture_sequence_number of this Ptsv2paymentsidcapturesProcessingInformationCaptureOptions. + :type: float + """ + if capture_sequence_number is not None and capture_sequence_number > 99: + raise ValueError("Invalid value for `capture_sequence_number`, must be a value less than or equal to `99`") + if capture_sequence_number is not None and capture_sequence_number < 1: + raise ValueError("Invalid value for `capture_sequence_number`, must be a value greater than or equal to `1`") + + self._capture_sequence_number = capture_sequence_number + + @property + def total_capture_count(self): + """ + Gets the total_capture_count of this Ptsv2paymentsidcapturesProcessingInformationCaptureOptions. + Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 + + :return: The total_capture_count of this Ptsv2paymentsidcapturesProcessingInformationCaptureOptions. + :rtype: float + """ + return self._total_capture_count + + @total_capture_count.setter + def total_capture_count(self, total_capture_count): + """ + Sets the total_capture_count of this Ptsv2paymentsidcapturesProcessingInformationCaptureOptions. + Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 + + :param total_capture_count: The total_capture_count of this Ptsv2paymentsidcapturesProcessingInformationCaptureOptions. + :type: float + """ + if total_capture_count is not None and total_capture_count > 99: + raise ValueError("Invalid value for `total_capture_count`, must be a value less than or equal to `99`") + if total_capture_count is not None and total_capture_count < 1: + raise ValueError("Invalid value for `total_capture_count`, must be a value greater than or equal to `1`") + + self._total_capture_count = total_capture_count + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidcapturesProcessingInformationCaptureOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidrefunds_merchant_information.py b/CyberSource/models/ptsv2paymentsidrefunds_merchant_information.py new file mode 100644 index 00000000..12d31058 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidrefunds_merchant_information.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidrefundsMerchantInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_descriptor': 'Ptsv2paymentsMerchantInformationMerchantDescriptor', + 'category_code': 'int', + 'vat_registration_number': 'str', + 'card_acceptor_reference_number': 'str' + } + + attribute_map = { + 'merchant_descriptor': 'merchantDescriptor', + 'category_code': 'categoryCode', + 'vat_registration_number': 'vatRegistrationNumber', + 'card_acceptor_reference_number': 'cardAcceptorReferenceNumber' + } + + def __init__(self, merchant_descriptor=None, category_code=None, vat_registration_number=None, card_acceptor_reference_number=None): + """ + Ptsv2paymentsidrefundsMerchantInformation - a model defined in Swagger + """ + + self._merchant_descriptor = None + self._category_code = None + self._vat_registration_number = None + self._card_acceptor_reference_number = None + + if merchant_descriptor is not None: + self.merchant_descriptor = merchant_descriptor + if category_code is not None: + self.category_code = category_code + if vat_registration_number is not None: + self.vat_registration_number = vat_registration_number + if card_acceptor_reference_number is not None: + self.card_acceptor_reference_number = card_acceptor_reference_number + + @property + def merchant_descriptor(self): + """ + Gets the merchant_descriptor of this Ptsv2paymentsidrefundsMerchantInformation. + + :return: The merchant_descriptor of this Ptsv2paymentsidrefundsMerchantInformation. + :rtype: Ptsv2paymentsMerchantInformationMerchantDescriptor + """ + return self._merchant_descriptor + + @merchant_descriptor.setter + def merchant_descriptor(self, merchant_descriptor): + """ + Sets the merchant_descriptor of this Ptsv2paymentsidrefundsMerchantInformation. + + :param merchant_descriptor: The merchant_descriptor of this Ptsv2paymentsidrefundsMerchantInformation. + :type: Ptsv2paymentsMerchantInformationMerchantDescriptor + """ + + self._merchant_descriptor = merchant_descriptor + + @property + def category_code(self): + """ + Gets the category_code of this Ptsv2paymentsidrefundsMerchantInformation. + Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The category_code of this Ptsv2paymentsidrefundsMerchantInformation. + :rtype: int + """ + return self._category_code + + @category_code.setter + def category_code(self, category_code): + """ + Sets the category_code of this Ptsv2paymentsidrefundsMerchantInformation. + Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param category_code: The category_code of this Ptsv2paymentsidrefundsMerchantInformation. + :type: int + """ + if category_code is not None and category_code > 9999: + raise ValueError("Invalid value for `category_code`, must be a value less than or equal to `9999`") + + self._category_code = category_code + + @property + def vat_registration_number(self): + """ + Gets the vat_registration_number of this Ptsv2paymentsidrefundsMerchantInformation. + Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The vat_registration_number of this Ptsv2paymentsidrefundsMerchantInformation. + :rtype: str + """ + return self._vat_registration_number + + @vat_registration_number.setter + def vat_registration_number(self, vat_registration_number): + """ + Sets the vat_registration_number of this Ptsv2paymentsidrefundsMerchantInformation. + Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param vat_registration_number: The vat_registration_number of this Ptsv2paymentsidrefundsMerchantInformation. + :type: str + """ + if vat_registration_number is not None and len(vat_registration_number) > 21: + raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `21`") + + self._vat_registration_number = vat_registration_number + + @property + def card_acceptor_reference_number(self): + """ + Gets the card_acceptor_reference_number of this Ptsv2paymentsidrefundsMerchantInformation. + Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The card_acceptor_reference_number of this Ptsv2paymentsidrefundsMerchantInformation. + :rtype: str + """ + return self._card_acceptor_reference_number + + @card_acceptor_reference_number.setter + def card_acceptor_reference_number(self, card_acceptor_reference_number): + """ + Sets the card_acceptor_reference_number of this Ptsv2paymentsidrefundsMerchantInformation. + Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param card_acceptor_reference_number: The card_acceptor_reference_number of this Ptsv2paymentsidrefundsMerchantInformation. + :type: str + """ + if card_acceptor_reference_number is not None and len(card_acceptor_reference_number) > 25: + raise ValueError("Invalid value for `card_acceptor_reference_number`, length must be less than or equal to `25`") + + self._card_acceptor_reference_number = card_acceptor_reference_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidrefundsMerchantInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidrefunds_order_information.py b/CyberSource/models/ptsv2paymentsidrefunds_order_information.py new file mode 100644 index 00000000..329e74ac --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidrefunds_order_information.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidrefundsOrderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amount_details': 'Ptsv2paymentsidcapturesOrderInformationAmountDetails', + 'bill_to': 'Ptsv2paymentsidcapturesOrderInformationBillTo', + 'ship_to': 'Ptsv2paymentsidcapturesOrderInformationShipTo', + 'line_items': 'list[Ptsv2paymentsidrefundsOrderInformationLineItems]', + 'invoice_details': 'Ptsv2paymentsidcapturesOrderInformationInvoiceDetails', + 'shipping_details': 'Ptsv2paymentsidcapturesOrderInformationShippingDetails' + } + + attribute_map = { + 'amount_details': 'amountDetails', + 'bill_to': 'billTo', + 'ship_to': 'shipTo', + 'line_items': 'lineItems', + 'invoice_details': 'invoiceDetails', + 'shipping_details': 'shippingDetails' + } + + def __init__(self, amount_details=None, bill_to=None, ship_to=None, line_items=None, invoice_details=None, shipping_details=None): + """ + Ptsv2paymentsidrefundsOrderInformation - a model defined in Swagger + """ + + self._amount_details = None + self._bill_to = None + self._ship_to = None + self._line_items = None + self._invoice_details = None + self._shipping_details = None + + if amount_details is not None: + self.amount_details = amount_details + if bill_to is not None: + self.bill_to = bill_to + if ship_to is not None: + self.ship_to = ship_to + if line_items is not None: + self.line_items = line_items + if invoice_details is not None: + self.invoice_details = invoice_details + if shipping_details is not None: + self.shipping_details = shipping_details + + @property + def amount_details(self): + """ + Gets the amount_details of this Ptsv2paymentsidrefundsOrderInformation. + + :return: The amount_details of this Ptsv2paymentsidrefundsOrderInformation. + :rtype: Ptsv2paymentsidcapturesOrderInformationAmountDetails + """ + return self._amount_details + + @amount_details.setter + def amount_details(self, amount_details): + """ + Sets the amount_details of this Ptsv2paymentsidrefundsOrderInformation. + + :param amount_details: The amount_details of this Ptsv2paymentsidrefundsOrderInformation. + :type: Ptsv2paymentsidcapturesOrderInformationAmountDetails + """ + + self._amount_details = amount_details + + @property + def bill_to(self): + """ + Gets the bill_to of this Ptsv2paymentsidrefundsOrderInformation. + + :return: The bill_to of this Ptsv2paymentsidrefundsOrderInformation. + :rtype: Ptsv2paymentsidcapturesOrderInformationBillTo + """ + return self._bill_to + + @bill_to.setter + def bill_to(self, bill_to): + """ + Sets the bill_to of this Ptsv2paymentsidrefundsOrderInformation. + + :param bill_to: The bill_to of this Ptsv2paymentsidrefundsOrderInformation. + :type: Ptsv2paymentsidcapturesOrderInformationBillTo + """ + + self._bill_to = bill_to + + @property + def ship_to(self): + """ + Gets the ship_to of this Ptsv2paymentsidrefundsOrderInformation. + + :return: The ship_to of this Ptsv2paymentsidrefundsOrderInformation. + :rtype: Ptsv2paymentsidcapturesOrderInformationShipTo + """ + return self._ship_to + + @ship_to.setter + def ship_to(self, ship_to): + """ + Sets the ship_to of this Ptsv2paymentsidrefundsOrderInformation. + + :param ship_to: The ship_to of this Ptsv2paymentsidrefundsOrderInformation. + :type: Ptsv2paymentsidcapturesOrderInformationShipTo + """ + + self._ship_to = ship_to + + @property + def line_items(self): + """ + Gets the line_items of this Ptsv2paymentsidrefundsOrderInformation. + + :return: The line_items of this Ptsv2paymentsidrefundsOrderInformation. + :rtype: list[Ptsv2paymentsidrefundsOrderInformationLineItems] + """ + return self._line_items + + @line_items.setter + def line_items(self, line_items): + """ + Sets the line_items of this Ptsv2paymentsidrefundsOrderInformation. + + :param line_items: The line_items of this Ptsv2paymentsidrefundsOrderInformation. + :type: list[Ptsv2paymentsidrefundsOrderInformationLineItems] + """ + + self._line_items = line_items + + @property + def invoice_details(self): + """ + Gets the invoice_details of this Ptsv2paymentsidrefundsOrderInformation. + + :return: The invoice_details of this Ptsv2paymentsidrefundsOrderInformation. + :rtype: Ptsv2paymentsidcapturesOrderInformationInvoiceDetails + """ + return self._invoice_details + + @invoice_details.setter + def invoice_details(self, invoice_details): + """ + Sets the invoice_details of this Ptsv2paymentsidrefundsOrderInformation. + + :param invoice_details: The invoice_details of this Ptsv2paymentsidrefundsOrderInformation. + :type: Ptsv2paymentsidcapturesOrderInformationInvoiceDetails + """ + + self._invoice_details = invoice_details + + @property + def shipping_details(self): + """ + Gets the shipping_details of this Ptsv2paymentsidrefundsOrderInformation. + + :return: The shipping_details of this Ptsv2paymentsidrefundsOrderInformation. + :rtype: Ptsv2paymentsidcapturesOrderInformationShippingDetails + """ + return self._shipping_details + + @shipping_details.setter + def shipping_details(self, shipping_details): + """ + Sets the shipping_details of this Ptsv2paymentsidrefundsOrderInformation. + + :param shipping_details: The shipping_details of this Ptsv2paymentsidrefundsOrderInformation. + :type: Ptsv2paymentsidcapturesOrderInformationShippingDetails + """ + + self._shipping_details = shipping_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidrefundsOrderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidrefunds_order_information_line_items.py b/CyberSource/models/ptsv2paymentsidrefunds_order_information_line_items.py new file mode 100644 index 00000000..3d38834b --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidrefunds_order_information_line_items.py @@ -0,0 +1,691 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidrefundsOrderInformationLineItems(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'product_code': 'str', + 'product_name': 'str', + 'product_sku': 'str', + 'quantity': 'float', + 'unit_price': 'str', + 'unit_of_measure': 'str', + 'total_amount': 'str', + 'tax_amount': 'str', + 'tax_rate': 'str', + 'tax_applied_after_discount': 'str', + 'tax_status_indicator': 'str', + 'tax_type_code': 'str', + 'amount_includes_tax': 'bool', + 'type_of_supply': 'str', + 'commodity_code': 'str', + 'discount_amount': 'str', + 'discount_applied': 'bool', + 'discount_rate': 'str', + 'invoice_number': 'str', + 'tax_details': 'list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails]' + } + + attribute_map = { + 'product_code': 'productCode', + 'product_name': 'productName', + 'product_sku': 'productSku', + 'quantity': 'quantity', + 'unit_price': 'unitPrice', + 'unit_of_measure': 'unitOfMeasure', + 'total_amount': 'totalAmount', + 'tax_amount': 'taxAmount', + 'tax_rate': 'taxRate', + 'tax_applied_after_discount': 'taxAppliedAfterDiscount', + 'tax_status_indicator': 'taxStatusIndicator', + 'tax_type_code': 'taxTypeCode', + 'amount_includes_tax': 'amountIncludesTax', + 'type_of_supply': 'typeOfSupply', + 'commodity_code': 'commodityCode', + 'discount_amount': 'discountAmount', + 'discount_applied': 'discountApplied', + 'discount_rate': 'discountRate', + 'invoice_number': 'invoiceNumber', + 'tax_details': 'taxDetails' + } + + def __init__(self, product_code=None, product_name=None, product_sku=None, quantity=None, unit_price=None, unit_of_measure=None, total_amount=None, tax_amount=None, tax_rate=None, tax_applied_after_discount=None, tax_status_indicator=None, tax_type_code=None, amount_includes_tax=None, type_of_supply=None, commodity_code=None, discount_amount=None, discount_applied=None, discount_rate=None, invoice_number=None, tax_details=None): + """ + Ptsv2paymentsidrefundsOrderInformationLineItems - a model defined in Swagger + """ + + self._product_code = None + self._product_name = None + self._product_sku = None + self._quantity = None + self._unit_price = None + self._unit_of_measure = None + self._total_amount = None + self._tax_amount = None + self._tax_rate = None + self._tax_applied_after_discount = None + self._tax_status_indicator = None + self._tax_type_code = None + self._amount_includes_tax = None + self._type_of_supply = None + self._commodity_code = None + self._discount_amount = None + self._discount_applied = None + self._discount_rate = None + self._invoice_number = None + self._tax_details = None + + if product_code is not None: + self.product_code = product_code + if product_name is not None: + self.product_name = product_name + if product_sku is not None: + self.product_sku = product_sku + if quantity is not None: + self.quantity = quantity + if unit_price is not None: + self.unit_price = unit_price + if unit_of_measure is not None: + self.unit_of_measure = unit_of_measure + if total_amount is not None: + self.total_amount = total_amount + if tax_amount is not None: + self.tax_amount = tax_amount + if tax_rate is not None: + self.tax_rate = tax_rate + if tax_applied_after_discount is not None: + self.tax_applied_after_discount = tax_applied_after_discount + if tax_status_indicator is not None: + self.tax_status_indicator = tax_status_indicator + if tax_type_code is not None: + self.tax_type_code = tax_type_code + if amount_includes_tax is not None: + self.amount_includes_tax = amount_includes_tax + if type_of_supply is not None: + self.type_of_supply = type_of_supply + if commodity_code is not None: + self.commodity_code = commodity_code + if discount_amount is not None: + self.discount_amount = discount_amount + if discount_applied is not None: + self.discount_applied = discount_applied + if discount_rate is not None: + self.discount_rate = discount_rate + if invoice_number is not None: + self.invoice_number = invoice_number + if tax_details is not None: + self.tax_details = tax_details + + @property + def product_code(self): + """ + Gets the product_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. + + :return: The product_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._product_code + + @product_code.setter + def product_code(self, product_code): + """ + Sets the product_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. + + :param product_code: The product_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if product_code is not None and len(product_code) > 255: + raise ValueError("Invalid value for `product_code`, length must be less than or equal to `255`") + + self._product_code = product_code + + @property + def product_name(self): + """ + Gets the product_name of this Ptsv2paymentsidrefundsOrderInformationLineItems. + For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. + + :return: The product_name of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """ + Sets the product_name of this Ptsv2paymentsidrefundsOrderInformationLineItems. + For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. + + :param product_name: The product_name of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if product_name is not None and len(product_name) > 255: + raise ValueError("Invalid value for `product_name`, length must be less than or equal to `255`") + + self._product_name = product_name + + @property + def product_sku(self): + """ + Gets the product_sku of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. + + :return: The product_sku of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._product_sku + + @product_sku.setter + def product_sku(self, product_sku): + """ + Sets the product_sku of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. + + :param product_sku: The product_sku of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if product_sku is not None and len(product_sku) > 255: + raise ValueError("Invalid value for `product_sku`, length must be less than or equal to `255`") + + self._product_sku = product_sku + + @property + def quantity(self): + """ + Gets the quantity of this Ptsv2paymentsidrefundsOrderInformationLineItems. + For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. + + :return: The quantity of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: float + """ + return self._quantity + + @quantity.setter + def quantity(self, quantity): + """ + Sets the quantity of this Ptsv2paymentsidrefundsOrderInformationLineItems. + For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. + + :param quantity: The quantity of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: float + """ + if quantity is not None and quantity > 9999999999: + raise ValueError("Invalid value for `quantity`, must be a value less than or equal to `9999999999`") + if quantity is not None and quantity < 1: + raise ValueError("Invalid value for `quantity`, must be a value greater than or equal to `1`") + + self._quantity = quantity + + @property + def unit_price(self): + """ + Gets the unit_price of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The unit_price of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._unit_price + + @unit_price.setter + def unit_price(self, unit_price): + """ + Sets the unit_price of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param unit_price: The unit_price of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if unit_price is not None and len(unit_price) > 15: + raise ValueError("Invalid value for `unit_price`, length must be less than or equal to `15`") + + self._unit_price = unit_price + + @property + def unit_of_measure(self): + """ + Gets the unit_of_measure of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Unit of measure, or unit of measure code, for the item. + + :return: The unit_of_measure of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._unit_of_measure + + @unit_of_measure.setter + def unit_of_measure(self, unit_of_measure): + """ + Sets the unit_of_measure of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Unit of measure, or unit of measure code, for the item. + + :param unit_of_measure: The unit_of_measure of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if unit_of_measure is not None and len(unit_of_measure) > 12: + raise ValueError("Invalid value for `unit_of_measure`, length must be less than or equal to `12`") + + self._unit_of_measure = unit_of_measure + + @property + def total_amount(self): + """ + Gets the total_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Total amount for the item. Normally calculated as the unit price x quantity. + + :return: The total_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._total_amount + + @total_amount.setter + def total_amount(self, total_amount): + """ + Sets the total_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Total amount for the item. Normally calculated as the unit price x quantity. + + :param total_amount: The total_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if total_amount is not None and len(total_amount) > 13: + raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `13`") + + self._total_amount = total_amount + + @property + def tax_amount(self): + """ + Gets the tax_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. + + :return: The tax_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._tax_amount + + @tax_amount.setter + def tax_amount(self, tax_amount): + """ + Sets the tax_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. + + :param tax_amount: The tax_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if tax_amount is not None and len(tax_amount) > 15: + raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `15`") + + self._tax_amount = tax_amount + + @property + def tax_rate(self): + """ + Gets the tax_rate of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). + + :return: The tax_rate of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._tax_rate + + @tax_rate.setter + def tax_rate(self, tax_rate): + """ + Sets the tax_rate of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). + + :param tax_rate: The tax_rate of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if tax_rate is not None and len(tax_rate) > 7: + raise ValueError("Invalid value for `tax_rate`, length must be less than or equal to `7`") + + self._tax_rate = tax_rate + + @property + def tax_applied_after_discount(self): + """ + Gets the tax_applied_after_discount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. + + :return: The tax_applied_after_discount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._tax_applied_after_discount + + @tax_applied_after_discount.setter + def tax_applied_after_discount(self, tax_applied_after_discount): + """ + Sets the tax_applied_after_discount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. + + :param tax_applied_after_discount: The tax_applied_after_discount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if tax_applied_after_discount is not None and len(tax_applied_after_discount) > 1: + raise ValueError("Invalid value for `tax_applied_after_discount`, length must be less than or equal to `1`") + + self._tax_applied_after_discount = tax_applied_after_discount + + @property + def tax_status_indicator(self): + """ + Gets the tax_status_indicator of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax + + :return: The tax_status_indicator of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._tax_status_indicator + + @tax_status_indicator.setter + def tax_status_indicator(self, tax_status_indicator): + """ + Sets the tax_status_indicator of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax + + :param tax_status_indicator: The tax_status_indicator of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if tax_status_indicator is not None and len(tax_status_indicator) > 1: + raise ValueError("Invalid value for `tax_status_indicator`, length must be less than or equal to `1`") + + self._tax_status_indicator = tax_status_indicator + + @property + def tax_type_code(self): + """ + Gets the tax_type_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. + + :return: The tax_type_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._tax_type_code + + @tax_type_code.setter + def tax_type_code(self, tax_type_code): + """ + Sets the tax_type_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. + + :param tax_type_code: The tax_type_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if tax_type_code is not None and len(tax_type_code) > 4: + raise ValueError("Invalid value for `tax_type_code`, length must be less than or equal to `4`") + + self._tax_type_code = tax_type_code + + @property + def amount_includes_tax(self): + """ + Gets the amount_includes_tax of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Flag that indicates whether the tax amount is included in the Line Item Total. + + :return: The amount_includes_tax of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: bool + """ + return self._amount_includes_tax + + @amount_includes_tax.setter + def amount_includes_tax(self, amount_includes_tax): + """ + Sets the amount_includes_tax of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Flag that indicates whether the tax amount is included in the Line Item Total. + + :param amount_includes_tax: The amount_includes_tax of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: bool + """ + + self._amount_includes_tax = amount_includes_tax + + @property + def type_of_supply(self): + """ + Gets the type_of_supply of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services + + :return: The type_of_supply of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._type_of_supply + + @type_of_supply.setter + def type_of_supply(self, type_of_supply): + """ + Sets the type_of_supply of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services + + :param type_of_supply: The type_of_supply of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if type_of_supply is not None and len(type_of_supply) > 2: + raise ValueError("Invalid value for `type_of_supply`, length must be less than or equal to `2`") + + self._type_of_supply = type_of_supply + + @property + def commodity_code(self): + """ + Gets the commodity_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. + + :return: The commodity_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._commodity_code + + @commodity_code.setter + def commodity_code(self, commodity_code): + """ + Sets the commodity_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. + + :param commodity_code: The commodity_code of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if commodity_code is not None and len(commodity_code) > 15: + raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `15`") + + self._commodity_code = commodity_code + + @property + def discount_amount(self): + """ + Gets the discount_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Discount applied to the item. + + :return: The discount_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._discount_amount + + @discount_amount.setter + def discount_amount(self, discount_amount): + """ + Sets the discount_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Discount applied to the item. + + :param discount_amount: The discount_amount of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if discount_amount is not None and len(discount_amount) > 13: + raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `13`") + + self._discount_amount = discount_amount + + @property + def discount_applied(self): + """ + Gets the discount_applied of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. + + :return: The discount_applied of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: bool + """ + return self._discount_applied + + @discount_applied.setter + def discount_applied(self, discount_applied): + """ + Sets the discount_applied of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. + + :param discount_applied: The discount_applied of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: bool + """ + + self._discount_applied = discount_applied + + @property + def discount_rate(self): + """ + Gets the discount_rate of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) + + :return: The discount_rate of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._discount_rate + + @discount_rate.setter + def discount_rate(self, discount_rate): + """ + Sets the discount_rate of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) + + :param discount_rate: The discount_rate of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if discount_rate is not None and len(discount_rate) > 6: + raise ValueError("Invalid value for `discount_rate`, length must be less than or equal to `6`") + + self._discount_rate = discount_rate + + @property + def invoice_number(self): + """ + Gets the invoice_number of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. + + :return: The invoice_number of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: str + """ + return self._invoice_number + + @invoice_number.setter + def invoice_number(self, invoice_number): + """ + Sets the invoice_number of this Ptsv2paymentsidrefundsOrderInformationLineItems. + Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. + + :param invoice_number: The invoice_number of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: str + """ + if invoice_number is not None and len(invoice_number) > 23: + raise ValueError("Invalid value for `invoice_number`, length must be less than or equal to `23`") + + self._invoice_number = invoice_number + + @property + def tax_details(self): + """ + Gets the tax_details of this Ptsv2paymentsidrefundsOrderInformationLineItems. + + :return: The tax_details of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :rtype: list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails] + """ + return self._tax_details + + @tax_details.setter + def tax_details(self, tax_details): + """ + Sets the tax_details of this Ptsv2paymentsidrefundsOrderInformationLineItems. + + :param tax_details: The tax_details of this Ptsv2paymentsidrefundsOrderInformationLineItems. + :type: list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails] + """ + + self._tax_details = tax_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidrefundsOrderInformationLineItems): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidrefunds_payment_information.py b/CyberSource/models/ptsv2paymentsidrefunds_payment_information.py new file mode 100644 index 00000000..cb80c4e2 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidrefunds_payment_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidrefundsPaymentInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'card': 'Ptsv2paymentsidrefundsPaymentInformationCard' + } + + attribute_map = { + 'card': 'card' + } + + def __init__(self, card=None): + """ + Ptsv2paymentsidrefundsPaymentInformation - a model defined in Swagger + """ + + self._card = None + + if card is not None: + self.card = card + + @property + def card(self): + """ + Gets the card of this Ptsv2paymentsidrefundsPaymentInformation. + + :return: The card of this Ptsv2paymentsidrefundsPaymentInformation. + :rtype: Ptsv2paymentsidrefundsPaymentInformationCard + """ + return self._card + + @card.setter + def card(self, card): + """ + Sets the card of this Ptsv2paymentsidrefundsPaymentInformation. + + :param card: The card of this Ptsv2paymentsidrefundsPaymentInformation. + :type: Ptsv2paymentsidrefundsPaymentInformationCard + """ + + self._card = card + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidrefundsPaymentInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidrefunds_payment_information_card.py b/CyberSource/models/ptsv2paymentsidrefunds_payment_information_card.py new file mode 100644 index 00000000..fc55ea2a --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidrefunds_payment_information_card.py @@ -0,0 +1,337 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidrefundsPaymentInformationCard(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'number': 'str', + 'expiration_month': 'str', + 'expiration_year': 'str', + 'type': 'str', + 'account_encoder_id': 'str', + 'issue_number': 'str', + 'start_month': 'str', + 'start_year': 'str' + } + + attribute_map = { + 'number': 'number', + 'expiration_month': 'expirationMonth', + 'expiration_year': 'expirationYear', + 'type': 'type', + 'account_encoder_id': 'accountEncoderId', + 'issue_number': 'issueNumber', + 'start_month': 'startMonth', + 'start_year': 'startYear' + } + + def __init__(self, number=None, expiration_month=None, expiration_year=None, type=None, account_encoder_id=None, issue_number=None, start_month=None, start_year=None): + """ + Ptsv2paymentsidrefundsPaymentInformationCard - a model defined in Swagger + """ + + self._number = None + self._expiration_month = None + self._expiration_year = None + self._type = None + self._account_encoder_id = None + self._issue_number = None + self._start_month = None + self._start_year = None + + if number is not None: + self.number = number + if expiration_month is not None: + self.expiration_month = expiration_month + if expiration_year is not None: + self.expiration_year = expiration_year + if type is not None: + self.type = type + if account_encoder_id is not None: + self.account_encoder_id = account_encoder_id + if issue_number is not None: + self.issue_number = issue_number + if start_month is not None: + self.start_month = start_month + if start_year is not None: + self.start_year = start_year + + @property + def number(self): + """ + Gets the number of this Ptsv2paymentsidrefundsPaymentInformationCard. + Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The number of this Ptsv2paymentsidrefundsPaymentInformationCard. + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """ + Sets the number of this Ptsv2paymentsidrefundsPaymentInformationCard. + Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param number: The number of this Ptsv2paymentsidrefundsPaymentInformationCard. + :type: str + """ + if number is not None and len(number) > 20: + raise ValueError("Invalid value for `number`, length must be less than or equal to `20`") + + self._number = number + + @property + def expiration_month(self): + """ + Gets the expiration_month of this Ptsv2paymentsidrefundsPaymentInformationCard. + Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The expiration_month of this Ptsv2paymentsidrefundsPaymentInformationCard. + :rtype: str + """ + return self._expiration_month + + @expiration_month.setter + def expiration_month(self, expiration_month): + """ + Sets the expiration_month of this Ptsv2paymentsidrefundsPaymentInformationCard. + Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param expiration_month: The expiration_month of this Ptsv2paymentsidrefundsPaymentInformationCard. + :type: str + """ + if expiration_month is not None and len(expiration_month) > 2: + raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") + + self._expiration_month = expiration_month + + @property + def expiration_year(self): + """ + Gets the expiration_year of this Ptsv2paymentsidrefundsPaymentInformationCard. + Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The expiration_year of this Ptsv2paymentsidrefundsPaymentInformationCard. + :rtype: str + """ + return self._expiration_year + + @expiration_year.setter + def expiration_year(self, expiration_year): + """ + Sets the expiration_year of this Ptsv2paymentsidrefundsPaymentInformationCard. + Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param expiration_year: The expiration_year of this Ptsv2paymentsidrefundsPaymentInformationCard. + :type: str + """ + if expiration_year is not None and len(expiration_year) > 4: + raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") + + self._expiration_year = expiration_year + + @property + def type(self): + """ + Gets the type of this Ptsv2paymentsidrefundsPaymentInformationCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :return: The type of this Ptsv2paymentsidrefundsPaymentInformationCard. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Ptsv2paymentsidrefundsPaymentInformationCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :param type: The type of this Ptsv2paymentsidrefundsPaymentInformationCard. + :type: str + """ + if type is not None and len(type) > 3: + raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") + + self._type = type + + @property + def account_encoder_id(self): + """ + Gets the account_encoder_id of this Ptsv2paymentsidrefundsPaymentInformationCard. + Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. + + :return: The account_encoder_id of this Ptsv2paymentsidrefundsPaymentInformationCard. + :rtype: str + """ + return self._account_encoder_id + + @account_encoder_id.setter + def account_encoder_id(self, account_encoder_id): + """ + Sets the account_encoder_id of this Ptsv2paymentsidrefundsPaymentInformationCard. + Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. + + :param account_encoder_id: The account_encoder_id of this Ptsv2paymentsidrefundsPaymentInformationCard. + :type: str + """ + if account_encoder_id is not None and len(account_encoder_id) > 3: + raise ValueError("Invalid value for `account_encoder_id`, length must be less than or equal to `3`") + + self._account_encoder_id = account_encoder_id + + @property + def issue_number(self): + """ + Gets the issue_number of this Ptsv2paymentsidrefundsPaymentInformationCard. + Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. + + :return: The issue_number of this Ptsv2paymentsidrefundsPaymentInformationCard. + :rtype: str + """ + return self._issue_number + + @issue_number.setter + def issue_number(self, issue_number): + """ + Sets the issue_number of this Ptsv2paymentsidrefundsPaymentInformationCard. + Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. + + :param issue_number: The issue_number of this Ptsv2paymentsidrefundsPaymentInformationCard. + :type: str + """ + if issue_number is not None and len(issue_number) > 5: + raise ValueError("Invalid value for `issue_number`, length must be less than or equal to `5`") + + self._issue_number = issue_number + + @property + def start_month(self): + """ + Gets the start_month of this Ptsv2paymentsidrefundsPaymentInformationCard. + Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. + + :return: The start_month of this Ptsv2paymentsidrefundsPaymentInformationCard. + :rtype: str + """ + return self._start_month + + @start_month.setter + def start_month(self, start_month): + """ + Sets the start_month of this Ptsv2paymentsidrefundsPaymentInformationCard. + Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. + + :param start_month: The start_month of this Ptsv2paymentsidrefundsPaymentInformationCard. + :type: str + """ + if start_month is not None and len(start_month) > 2: + raise ValueError("Invalid value for `start_month`, length must be less than or equal to `2`") + + self._start_month = start_month + + @property + def start_year(self): + """ + Gets the start_year of this Ptsv2paymentsidrefundsPaymentInformationCard. + Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. + + :return: The start_year of this Ptsv2paymentsidrefundsPaymentInformationCard. + :rtype: str + """ + return self._start_year + + @start_year.setter + def start_year(self, start_year): + """ + Sets the start_year of this Ptsv2paymentsidrefundsPaymentInformationCard. + Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. + + :param start_year: The start_year of this Ptsv2paymentsidrefundsPaymentInformationCard. + :type: str + """ + if start_year is not None and len(start_year) > 4: + raise ValueError("Invalid value for `start_year`, length must be less than or equal to `4`") + + self._start_year = start_year + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidrefundsPaymentInformationCard): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidrefunds_point_of_sale_information.py b/CyberSource/models/ptsv2paymentsidrefunds_point_of_sale_information.py new file mode 100644 index 00000000..b7f9fc1c --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidrefunds_point_of_sale_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidrefundsPointOfSaleInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'emv': 'Ptsv2paymentsidcapturesPointOfSaleInformationEmv' + } + + attribute_map = { + 'emv': 'emv' + } + + def __init__(self, emv=None): + """ + Ptsv2paymentsidrefundsPointOfSaleInformation - a model defined in Swagger + """ + + self._emv = None + + if emv is not None: + self.emv = emv + + @property + def emv(self): + """ + Gets the emv of this Ptsv2paymentsidrefundsPointOfSaleInformation. + + :return: The emv of this Ptsv2paymentsidrefundsPointOfSaleInformation. + :rtype: Ptsv2paymentsidcapturesPointOfSaleInformationEmv + """ + return self._emv + + @emv.setter + def emv(self, emv): + """ + Sets the emv of this Ptsv2paymentsidrefundsPointOfSaleInformation. + + :param emv: The emv of this Ptsv2paymentsidrefundsPointOfSaleInformation. + :type: Ptsv2paymentsidcapturesPointOfSaleInformationEmv + """ + + self._emv = emv + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidrefundsPointOfSaleInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidrefunds_processing_information.py b/CyberSource/models/ptsv2paymentsidrefunds_processing_information.py new file mode 100644 index 00000000..02eaa840 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidrefunds_processing_information.py @@ -0,0 +1,303 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidrefundsProcessingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'payment_solution': 'str', + 'reconciliation_id': 'str', + 'link_id': 'str', + 'report_group': 'str', + 'visa_checkout_id': 'str', + 'purchase_level': 'str', + 'recurring_options': 'Ptsv2paymentsidrefundsProcessingInformationRecurringOptions' + } + + attribute_map = { + 'payment_solution': 'paymentSolution', + 'reconciliation_id': 'reconciliationId', + 'link_id': 'linkId', + 'report_group': 'reportGroup', + 'visa_checkout_id': 'visaCheckoutId', + 'purchase_level': 'purchaseLevel', + 'recurring_options': 'recurringOptions' + } + + def __init__(self, payment_solution=None, reconciliation_id=None, link_id=None, report_group=None, visa_checkout_id=None, purchase_level=None, recurring_options=None): + """ + Ptsv2paymentsidrefundsProcessingInformation - a model defined in Swagger + """ + + self._payment_solution = None + self._reconciliation_id = None + self._link_id = None + self._report_group = None + self._visa_checkout_id = None + self._purchase_level = None + self._recurring_options = None + + if payment_solution is not None: + self.payment_solution = payment_solution + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if link_id is not None: + self.link_id = link_id + if report_group is not None: + self.report_group = report_group + if visa_checkout_id is not None: + self.visa_checkout_id = visa_checkout_id + if purchase_level is not None: + self.purchase_level = purchase_level + if recurring_options is not None: + self.recurring_options = recurring_options + + @property + def payment_solution(self): + """ + Gets the payment_solution of this Ptsv2paymentsidrefundsProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :return: The payment_solution of this Ptsv2paymentsidrefundsProcessingInformation. + :rtype: str + """ + return self._payment_solution + + @payment_solution.setter + def payment_solution(self, payment_solution): + """ + Sets the payment_solution of this Ptsv2paymentsidrefundsProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :param payment_solution: The payment_solution of this Ptsv2paymentsidrefundsProcessingInformation. + :type: str + """ + if payment_solution is not None and len(payment_solution) > 12: + raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") + + self._payment_solution = payment_solution + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this Ptsv2paymentsidrefundsProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :return: The reconciliation_id of this Ptsv2paymentsidrefundsProcessingInformation. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this Ptsv2paymentsidrefundsProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :param reconciliation_id: The reconciliation_id of this Ptsv2paymentsidrefundsProcessingInformation. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def link_id(self): + """ + Gets the link_id of this Ptsv2paymentsidrefundsProcessingInformation. + Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. + + :return: The link_id of this Ptsv2paymentsidrefundsProcessingInformation. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """ + Sets the link_id of this Ptsv2paymentsidrefundsProcessingInformation. + Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. + + :param link_id: The link_id of this Ptsv2paymentsidrefundsProcessingInformation. + :type: str + """ + if link_id is not None and len(link_id) > 26: + raise ValueError("Invalid value for `link_id`, length must be less than or equal to `26`") + + self._link_id = link_id + + @property + def report_group(self): + """ + Gets the report_group of this Ptsv2paymentsidrefundsProcessingInformation. + Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. + + :return: The report_group of this Ptsv2paymentsidrefundsProcessingInformation. + :rtype: str + """ + return self._report_group + + @report_group.setter + def report_group(self, report_group): + """ + Sets the report_group of this Ptsv2paymentsidrefundsProcessingInformation. + Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. + + :param report_group: The report_group of this Ptsv2paymentsidrefundsProcessingInformation. + :type: str + """ + if report_group is not None and len(report_group) > 25: + raise ValueError("Invalid value for `report_group`, length must be less than or equal to `25`") + + self._report_group = report_group + + @property + def visa_checkout_id(self): + """ + Gets the visa_checkout_id of this Ptsv2paymentsidrefundsProcessingInformation. + Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. + + :return: The visa_checkout_id of this Ptsv2paymentsidrefundsProcessingInformation. + :rtype: str + """ + return self._visa_checkout_id + + @visa_checkout_id.setter + def visa_checkout_id(self, visa_checkout_id): + """ + Sets the visa_checkout_id of this Ptsv2paymentsidrefundsProcessingInformation. + Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. + + :param visa_checkout_id: The visa_checkout_id of this Ptsv2paymentsidrefundsProcessingInformation. + :type: str + """ + if visa_checkout_id is not None and len(visa_checkout_id) > 48: + raise ValueError("Invalid value for `visa_checkout_id`, length must be less than or equal to `48`") + + self._visa_checkout_id = visa_checkout_id + + @property + def purchase_level(self): + """ + Gets the purchase_level of this Ptsv2paymentsidrefundsProcessingInformation. + Set this field to 3 to indicate that the request includes Level III data. + + :return: The purchase_level of this Ptsv2paymentsidrefundsProcessingInformation. + :rtype: str + """ + return self._purchase_level + + @purchase_level.setter + def purchase_level(self, purchase_level): + """ + Sets the purchase_level of this Ptsv2paymentsidrefundsProcessingInformation. + Set this field to 3 to indicate that the request includes Level III data. + + :param purchase_level: The purchase_level of this Ptsv2paymentsidrefundsProcessingInformation. + :type: str + """ + if purchase_level is not None and len(purchase_level) > 1: + raise ValueError("Invalid value for `purchase_level`, length must be less than or equal to `1`") + + self._purchase_level = purchase_level + + @property + def recurring_options(self): + """ + Gets the recurring_options of this Ptsv2paymentsidrefundsProcessingInformation. + + :return: The recurring_options of this Ptsv2paymentsidrefundsProcessingInformation. + :rtype: Ptsv2paymentsidrefundsProcessingInformationRecurringOptions + """ + return self._recurring_options + + @recurring_options.setter + def recurring_options(self, recurring_options): + """ + Sets the recurring_options of this Ptsv2paymentsidrefundsProcessingInformation. + + :param recurring_options: The recurring_options of this Ptsv2paymentsidrefundsProcessingInformation. + :type: Ptsv2paymentsidrefundsProcessingInformationRecurringOptions + """ + + self._recurring_options = recurring_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidrefundsProcessingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidrefunds_processing_information_recurring_options.py b/CyberSource/models/ptsv2paymentsidrefunds_processing_information_recurring_options.py new file mode 100644 index 00000000..25854436 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidrefunds_processing_information_recurring_options.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidrefundsProcessingInformationRecurringOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'loan_payment': 'bool' + } + + attribute_map = { + 'loan_payment': 'loanPayment' + } + + def __init__(self, loan_payment=False): + """ + Ptsv2paymentsidrefundsProcessingInformationRecurringOptions - a model defined in Swagger + """ + + self._loan_payment = None + + if loan_payment is not None: + self.loan_payment = loan_payment + + @property + def loan_payment(self): + """ + Gets the loan_payment of this Ptsv2paymentsidrefundsProcessingInformationRecurringOptions. + Flag that indicates whether this is a payment towards an existing contractual loan. + + :return: The loan_payment of this Ptsv2paymentsidrefundsProcessingInformationRecurringOptions. + :rtype: bool + """ + return self._loan_payment + + @loan_payment.setter + def loan_payment(self, loan_payment): + """ + Sets the loan_payment of this Ptsv2paymentsidrefundsProcessingInformationRecurringOptions. + Flag that indicates whether this is a payment towards an existing contractual loan. + + :param loan_payment: The loan_payment of this Ptsv2paymentsidrefundsProcessingInformationRecurringOptions. + :type: bool + """ + + self._loan_payment = loan_payment + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidrefundsProcessingInformationRecurringOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidreversals_client_reference_information.py b/CyberSource/models/ptsv2paymentsidreversals_client_reference_information.py new file mode 100644 index 00000000..9a5c55fe --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidreversals_client_reference_information.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidreversalsClientReferenceInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'comments': 'str' + } + + attribute_map = { + 'code': 'code', + 'comments': 'comments' + } + + def __init__(self, code=None, comments=None): + """ + Ptsv2paymentsidreversalsClientReferenceInformation - a model defined in Swagger + """ + + self._code = None + self._comments = None + + if code is not None: + self.code = code + if comments is not None: + self.comments = comments + + @property + def code(self): + """ + Gets the code of this Ptsv2paymentsidreversalsClientReferenceInformation. + Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + + :return: The code of this Ptsv2paymentsidreversalsClientReferenceInformation. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this Ptsv2paymentsidreversalsClientReferenceInformation. + Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + + :param code: The code of this Ptsv2paymentsidreversalsClientReferenceInformation. + :type: str + """ + if code is not None and len(code) > 50: + raise ValueError("Invalid value for `code`, length must be less than or equal to `50`") + + self._code = code + + @property + def comments(self): + """ + Gets the comments of this Ptsv2paymentsidreversalsClientReferenceInformation. + Comments + + :return: The comments of this Ptsv2paymentsidreversalsClientReferenceInformation. + :rtype: str + """ + return self._comments + + @comments.setter + def comments(self, comments): + """ + Sets the comments of this Ptsv2paymentsidreversalsClientReferenceInformation. + Comments + + :param comments: The comments of this Ptsv2paymentsidreversalsClientReferenceInformation. + :type: str + """ + + self._comments = comments + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidreversalsClientReferenceInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidreversals_order_information.py b/CyberSource/models/ptsv2paymentsidreversals_order_information.py new file mode 100644 index 00000000..5ccee77b --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidreversals_order_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidreversalsOrderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'line_items': 'list[Ptsv2paymentsidreversalsOrderInformationLineItems]' + } + + attribute_map = { + 'line_items': 'lineItems' + } + + def __init__(self, line_items=None): + """ + Ptsv2paymentsidreversalsOrderInformation - a model defined in Swagger + """ + + self._line_items = None + + if line_items is not None: + self.line_items = line_items + + @property + def line_items(self): + """ + Gets the line_items of this Ptsv2paymentsidreversalsOrderInformation. + + :return: The line_items of this Ptsv2paymentsidreversalsOrderInformation. + :rtype: list[Ptsv2paymentsidreversalsOrderInformationLineItems] + """ + return self._line_items + + @line_items.setter + def line_items(self, line_items): + """ + Sets the line_items of this Ptsv2paymentsidreversalsOrderInformation. + + :param line_items: The line_items of this Ptsv2paymentsidreversalsOrderInformation. + :type: list[Ptsv2paymentsidreversalsOrderInformationLineItems] + """ + + self._line_items = line_items + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidreversalsOrderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidreversals_order_information_line_items.py b/CyberSource/models/ptsv2paymentsidreversals_order_information_line_items.py new file mode 100644 index 00000000..a8ce8d35 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidreversals_order_information_line_items.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidreversalsOrderInformationLineItems(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'quantity': 'float', + 'unit_price': 'str' + } + + attribute_map = { + 'quantity': 'quantity', + 'unit_price': 'unitPrice' + } + + def __init__(self, quantity=None, unit_price=None): + """ + Ptsv2paymentsidreversalsOrderInformationLineItems - a model defined in Swagger + """ + + self._quantity = None + self._unit_price = None + + if quantity is not None: + self.quantity = quantity + if unit_price is not None: + self.unit_price = unit_price + + @property + def quantity(self): + """ + Gets the quantity of this Ptsv2paymentsidreversalsOrderInformationLineItems. + For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. + + :return: The quantity of this Ptsv2paymentsidreversalsOrderInformationLineItems. + :rtype: float + """ + return self._quantity + + @quantity.setter + def quantity(self, quantity): + """ + Sets the quantity of this Ptsv2paymentsidreversalsOrderInformationLineItems. + For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. + + :param quantity: The quantity of this Ptsv2paymentsidreversalsOrderInformationLineItems. + :type: float + """ + if quantity is not None and quantity > 9999999999: + raise ValueError("Invalid value for `quantity`, must be a value less than or equal to `9999999999`") + if quantity is not None and quantity < 1: + raise ValueError("Invalid value for `quantity`, must be a value greater than or equal to `1`") + + self._quantity = quantity + + @property + def unit_price(self): + """ + Gets the unit_price of this Ptsv2paymentsidreversalsOrderInformationLineItems. + Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The unit_price of this Ptsv2paymentsidreversalsOrderInformationLineItems. + :rtype: str + """ + return self._unit_price + + @unit_price.setter + def unit_price(self, unit_price): + """ + Sets the unit_price of this Ptsv2paymentsidreversalsOrderInformationLineItems. + Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param unit_price: The unit_price of this Ptsv2paymentsidreversalsOrderInformationLineItems. + :type: str + """ + if unit_price is not None and len(unit_price) > 15: + raise ValueError("Invalid value for `unit_price`, length must be less than or equal to `15`") + + self._unit_price = unit_price + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidreversalsOrderInformationLineItems): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidreversals_point_of_sale_information.py b/CyberSource/models/ptsv2paymentsidreversals_point_of_sale_information.py new file mode 100644 index 00000000..defac347 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidreversals_point_of_sale_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidreversalsPointOfSaleInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'emv': 'PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv' + } + + attribute_map = { + 'emv': 'emv' + } + + def __init__(self, emv=None): + """ + Ptsv2paymentsidreversalsPointOfSaleInformation - a model defined in Swagger + """ + + self._emv = None + + if emv is not None: + self.emv = emv + + @property + def emv(self): + """ + Gets the emv of this Ptsv2paymentsidreversalsPointOfSaleInformation. + + :return: The emv of this Ptsv2paymentsidreversalsPointOfSaleInformation. + :rtype: PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv + """ + return self._emv + + @emv.setter + def emv(self, emv): + """ + Sets the emv of this Ptsv2paymentsidreversalsPointOfSaleInformation. + + :param emv: The emv of this Ptsv2paymentsidreversalsPointOfSaleInformation. + :type: PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv + """ + + self._emv = emv + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidreversalsPointOfSaleInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidreversals_processing_information.py b/CyberSource/models/ptsv2paymentsidreversals_processing_information.py new file mode 100644 index 00000000..cd411896 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidreversals_processing_information.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidreversalsProcessingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'payment_solution': 'str', + 'reconciliation_id': 'str', + 'link_id': 'str', + 'report_group': 'str', + 'visa_checkout_id': 'str', + 'issuer': 'Ptsv2paymentsProcessingInformationIssuer' + } + + attribute_map = { + 'payment_solution': 'paymentSolution', + 'reconciliation_id': 'reconciliationId', + 'link_id': 'linkId', + 'report_group': 'reportGroup', + 'visa_checkout_id': 'visaCheckoutId', + 'issuer': 'issuer' + } + + def __init__(self, payment_solution=None, reconciliation_id=None, link_id=None, report_group=None, visa_checkout_id=None, issuer=None): + """ + Ptsv2paymentsidreversalsProcessingInformation - a model defined in Swagger + """ + + self._payment_solution = None + self._reconciliation_id = None + self._link_id = None + self._report_group = None + self._visa_checkout_id = None + self._issuer = None + + if payment_solution is not None: + self.payment_solution = payment_solution + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if link_id is not None: + self.link_id = link_id + if report_group is not None: + self.report_group = report_group + if visa_checkout_id is not None: + self.visa_checkout_id = visa_checkout_id + if issuer is not None: + self.issuer = issuer + + @property + def payment_solution(self): + """ + Gets the payment_solution of this Ptsv2paymentsidreversalsProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :return: The payment_solution of this Ptsv2paymentsidreversalsProcessingInformation. + :rtype: str + """ + return self._payment_solution + + @payment_solution.setter + def payment_solution(self, payment_solution): + """ + Sets the payment_solution of this Ptsv2paymentsidreversalsProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :param payment_solution: The payment_solution of this Ptsv2paymentsidreversalsProcessingInformation. + :type: str + """ + if payment_solution is not None and len(payment_solution) > 12: + raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") + + self._payment_solution = payment_solution + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this Ptsv2paymentsidreversalsProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :return: The reconciliation_id of this Ptsv2paymentsidreversalsProcessingInformation. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this Ptsv2paymentsidreversalsProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :param reconciliation_id: The reconciliation_id of this Ptsv2paymentsidreversalsProcessingInformation. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def link_id(self): + """ + Gets the link_id of this Ptsv2paymentsidreversalsProcessingInformation. + Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. + + :return: The link_id of this Ptsv2paymentsidreversalsProcessingInformation. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """ + Sets the link_id of this Ptsv2paymentsidreversalsProcessingInformation. + Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. + + :param link_id: The link_id of this Ptsv2paymentsidreversalsProcessingInformation. + :type: str + """ + if link_id is not None and len(link_id) > 26: + raise ValueError("Invalid value for `link_id`, length must be less than or equal to `26`") + + self._link_id = link_id + + @property + def report_group(self): + """ + Gets the report_group of this Ptsv2paymentsidreversalsProcessingInformation. + Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. + + :return: The report_group of this Ptsv2paymentsidreversalsProcessingInformation. + :rtype: str + """ + return self._report_group + + @report_group.setter + def report_group(self, report_group): + """ + Sets the report_group of this Ptsv2paymentsidreversalsProcessingInformation. + Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. + + :param report_group: The report_group of this Ptsv2paymentsidreversalsProcessingInformation. + :type: str + """ + if report_group is not None and len(report_group) > 25: + raise ValueError("Invalid value for `report_group`, length must be less than or equal to `25`") + + self._report_group = report_group + + @property + def visa_checkout_id(self): + """ + Gets the visa_checkout_id of this Ptsv2paymentsidreversalsProcessingInformation. + Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. + + :return: The visa_checkout_id of this Ptsv2paymentsidreversalsProcessingInformation. + :rtype: str + """ + return self._visa_checkout_id + + @visa_checkout_id.setter + def visa_checkout_id(self, visa_checkout_id): + """ + Sets the visa_checkout_id of this Ptsv2paymentsidreversalsProcessingInformation. + Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. + + :param visa_checkout_id: The visa_checkout_id of this Ptsv2paymentsidreversalsProcessingInformation. + :type: str + """ + if visa_checkout_id is not None and len(visa_checkout_id) > 48: + raise ValueError("Invalid value for `visa_checkout_id`, length must be less than or equal to `48`") + + self._visa_checkout_id = visa_checkout_id + + @property + def issuer(self): + """ + Gets the issuer of this Ptsv2paymentsidreversalsProcessingInformation. + + :return: The issuer of this Ptsv2paymentsidreversalsProcessingInformation. + :rtype: Ptsv2paymentsProcessingInformationIssuer + """ + return self._issuer + + @issuer.setter + def issuer(self, issuer): + """ + Sets the issuer of this Ptsv2paymentsidreversalsProcessingInformation. + + :param issuer: The issuer of this Ptsv2paymentsidreversalsProcessingInformation. + :type: Ptsv2paymentsProcessingInformationIssuer + """ + + self._issuer = issuer + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidreversalsProcessingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidreversals_reversal_information.py b/CyberSource/models/ptsv2paymentsidreversals_reversal_information.py new file mode 100644 index 00000000..4b14a130 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidreversals_reversal_information.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidreversalsReversalInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amount_details': 'Ptsv2paymentsidreversalsReversalInformationAmountDetails', + 'reason': 'str' + } + + attribute_map = { + 'amount_details': 'amountDetails', + 'reason': 'reason' + } + + def __init__(self, amount_details=None, reason=None): + """ + Ptsv2paymentsidreversalsReversalInformation - a model defined in Swagger + """ + + self._amount_details = None + self._reason = None + + if amount_details is not None: + self.amount_details = amount_details + if reason is not None: + self.reason = reason + + @property + def amount_details(self): + """ + Gets the amount_details of this Ptsv2paymentsidreversalsReversalInformation. + + :return: The amount_details of this Ptsv2paymentsidreversalsReversalInformation. + :rtype: Ptsv2paymentsidreversalsReversalInformationAmountDetails + """ + return self._amount_details + + @amount_details.setter + def amount_details(self, amount_details): + """ + Sets the amount_details of this Ptsv2paymentsidreversalsReversalInformation. + + :param amount_details: The amount_details of this Ptsv2paymentsidreversalsReversalInformation. + :type: Ptsv2paymentsidreversalsReversalInformationAmountDetails + """ + + self._amount_details = amount_details + + @property + def reason(self): + """ + Gets the reason of this Ptsv2paymentsidreversalsReversalInformation. + Reason for the authorization reversal. Possible value: - 34: Suspected fraud CyberSource ignores this field for processors that do not support this value. + + :return: The reason of this Ptsv2paymentsidreversalsReversalInformation. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this Ptsv2paymentsidreversalsReversalInformation. + Reason for the authorization reversal. Possible value: - 34: Suspected fraud CyberSource ignores this field for processors that do not support this value. + + :param reason: The reason of this Ptsv2paymentsidreversalsReversalInformation. + :type: str + """ + #if reason is not None and len(reason) > 3: + #raise ValueError("Invalid value for `reason`, length must be less than or equal to `3`") + + self._reason = reason + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidreversalsReversalInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2paymentsidreversals_reversal_information_amount_details.py b/CyberSource/models/ptsv2paymentsidreversals_reversal_information_amount_details.py new file mode 100644 index 00000000..a81024c0 --- /dev/null +++ b/CyberSource/models/ptsv2paymentsidreversals_reversal_information_amount_details.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2paymentsidreversalsReversalInformationAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'total_amount': 'str', + 'currency': 'str' + } + + attribute_map = { + 'total_amount': 'totalAmount', + 'currency': 'currency' + } + + def __init__(self, total_amount=None, currency=None): + """ + Ptsv2paymentsidreversalsReversalInformationAmountDetails - a model defined in Swagger + """ + + self._total_amount = None + self._currency = None + + if total_amount is not None: + self.total_amount = total_amount + if currency is not None: + self.currency = currency + + @property + def total_amount(self): + """ + Gets the total_amount of this Ptsv2paymentsidreversalsReversalInformationAmountDetails. + Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The total_amount of this Ptsv2paymentsidreversalsReversalInformationAmountDetails. + :rtype: str + """ + return self._total_amount + + @total_amount.setter + def total_amount(self, total_amount): + """ + Sets the total_amount of this Ptsv2paymentsidreversalsReversalInformationAmountDetails. + Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param total_amount: The total_amount of this Ptsv2paymentsidreversalsReversalInformationAmountDetails. + :type: str + """ + if total_amount is not None and len(total_amount) > 19: + raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") + + self._total_amount = total_amount + + @property + def currency(self): + """ + Gets the currency of this Ptsv2paymentsidreversalsReversalInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this Ptsv2paymentsidreversalsReversalInformationAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this Ptsv2paymentsidreversalsReversalInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this Ptsv2paymentsidreversalsReversalInformationAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2paymentsidreversalsReversalInformationAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_merchant_information.py b/CyberSource/models/ptsv2payouts_merchant_information.py new file mode 100644 index 00000000..7d4e57da --- /dev/null +++ b/CyberSource/models/ptsv2payouts_merchant_information.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsMerchantInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'category_code': 'int', + 'submit_local_date_time': 'str', + 'vat_registration_number': 'str', + 'merchant_descriptor': 'Ptsv2payoutsMerchantInformationMerchantDescriptor' + } + + attribute_map = { + 'category_code': 'categoryCode', + 'submit_local_date_time': 'submitLocalDateTime', + 'vat_registration_number': 'vatRegistrationNumber', + 'merchant_descriptor': 'merchantDescriptor' + } + + def __init__(self, category_code=None, submit_local_date_time=None, vat_registration_number=None, merchant_descriptor=None): + """ + Ptsv2payoutsMerchantInformation - a model defined in Swagger + """ + + self._category_code = None + self._submit_local_date_time = None + self._vat_registration_number = None + self._merchant_descriptor = None + + if category_code is not None: + self.category_code = category_code + if submit_local_date_time is not None: + self.submit_local_date_time = submit_local_date_time + if vat_registration_number is not None: + self.vat_registration_number = vat_registration_number + if merchant_descriptor is not None: + self.merchant_descriptor = merchant_descriptor + + @property + def category_code(self): + """ + Gets the category_code of this Ptsv2payoutsMerchantInformation. + Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The category_code of this Ptsv2payoutsMerchantInformation. + :rtype: int + """ + return self._category_code + + @category_code.setter + def category_code(self, category_code): + """ + Sets the category_code of this Ptsv2payoutsMerchantInformation. + Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param category_code: The category_code of this Ptsv2payoutsMerchantInformation. + :type: int + """ + if category_code is not None and category_code > 9999: + raise ValueError("Invalid value for `category_code`, must be a value less than or equal to `9999`") + + self._category_code = category_code + + @property + def submit_local_date_time(self): + """ + Gets the submit_local_date_time of this Ptsv2payoutsMerchantInformation. + Time that the transaction was submitted in local time. The time is in hhmmss format. + + :return: The submit_local_date_time of this Ptsv2payoutsMerchantInformation. + :rtype: str + """ + return self._submit_local_date_time + + @submit_local_date_time.setter + def submit_local_date_time(self, submit_local_date_time): + """ + Sets the submit_local_date_time of this Ptsv2payoutsMerchantInformation. + Time that the transaction was submitted in local time. The time is in hhmmss format. + + :param submit_local_date_time: The submit_local_date_time of this Ptsv2payoutsMerchantInformation. + :type: str + """ + if submit_local_date_time is not None and len(submit_local_date_time) > 6: + raise ValueError("Invalid value for `submit_local_date_time`, length must be less than or equal to `6`") + + self._submit_local_date_time = submit_local_date_time + + @property + def vat_registration_number(self): + """ + Gets the vat_registration_number of this Ptsv2payoutsMerchantInformation. + Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The vat_registration_number of this Ptsv2payoutsMerchantInformation. + :rtype: str + """ + return self._vat_registration_number + + @vat_registration_number.setter + def vat_registration_number(self, vat_registration_number): + """ + Sets the vat_registration_number of this Ptsv2payoutsMerchantInformation. + Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param vat_registration_number: The vat_registration_number of this Ptsv2payoutsMerchantInformation. + :type: str + """ + if vat_registration_number is not None and len(vat_registration_number) > 21: + raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `21`") + + self._vat_registration_number = vat_registration_number + + @property + def merchant_descriptor(self): + """ + Gets the merchant_descriptor of this Ptsv2payoutsMerchantInformation. + + :return: The merchant_descriptor of this Ptsv2payoutsMerchantInformation. + :rtype: Ptsv2payoutsMerchantInformationMerchantDescriptor + """ + return self._merchant_descriptor + + @merchant_descriptor.setter + def merchant_descriptor(self, merchant_descriptor): + """ + Sets the merchant_descriptor of this Ptsv2payoutsMerchantInformation. + + :param merchant_descriptor: The merchant_descriptor of this Ptsv2payoutsMerchantInformation. + :type: Ptsv2payoutsMerchantInformationMerchantDescriptor + """ + + self._merchant_descriptor = merchant_descriptor + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsMerchantInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_merchant_information_merchant_descriptor.py b/CyberSource/models/ptsv2payouts_merchant_information_merchant_descriptor.py new file mode 100644 index 00000000..c3fddf6f --- /dev/null +++ b/CyberSource/models/ptsv2payouts_merchant_information_merchant_descriptor.py @@ -0,0 +1,277 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsMerchantInformationMerchantDescriptor(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'locality': 'str', + 'country': 'str', + 'administrative_area': 'str', + 'postal_code': 'str', + 'contact': 'str' + } + + attribute_map = { + 'name': 'name', + 'locality': 'locality', + 'country': 'country', + 'administrative_area': 'administrativeArea', + 'postal_code': 'postalCode', + 'contact': 'contact' + } + + def __init__(self, name=None, locality=None, country=None, administrative_area=None, postal_code=None, contact=None): + """ + Ptsv2payoutsMerchantInformationMerchantDescriptor - a model defined in Swagger + """ + + self._name = None + self._locality = None + self._country = None + self._administrative_area = None + self._postal_code = None + self._contact = None + + if name is not None: + self.name = name + if locality is not None: + self.locality = locality + if country is not None: + self.country = country + if administrative_area is not None: + self.administrative_area = administrative_area + if postal_code is not None: + self.postal_code = postal_code + if contact is not None: + self.contact = contact + + @property + def name(self): + """ + Gets the name of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) + + :return: The name of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) + + :param name: The name of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :type: str + """ + if name is not None and len(name) > 23: + raise ValueError("Invalid value for `name`, length must be less than or equal to `23`") + + self._name = name + + @property + def locality(self): + """ + Gets the locality of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The locality of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param locality: The locality of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :type: str + """ + if locality is not None and len(locality) > 13: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `13`") + + self._locality = locality + + @property + def country(self): + """ + Gets the country of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The country of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param country: The country of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The administrative_area of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param administrative_area: The administrative_area of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 3: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `3`") + + self._administrative_area = administrative_area + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The postal_code of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param postal_code: The postal_code of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :type: str + """ + if postal_code is not None and len(postal_code) > 14: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `14`") + + self._postal_code = postal_code + + @property + def contact(self): + """ + Gets the contact of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) + + :return: The contact of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._contact + + @contact.setter + def contact(self, contact): + """ + Sets the contact of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) + + :param contact: The contact of this Ptsv2payoutsMerchantInformationMerchantDescriptor. + :type: str + """ + if contact is not None and len(contact) > 14: + raise ValueError("Invalid value for `contact`, length must be less than or equal to `14`") + + self._contact = contact + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsMerchantInformationMerchantDescriptor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_order_information.py b/CyberSource/models/ptsv2payouts_order_information.py new file mode 100644 index 00000000..e38bf283 --- /dev/null +++ b/CyberSource/models/ptsv2payouts_order_information.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsOrderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amount_details': 'Ptsv2payoutsOrderInformationAmountDetails', + 'bill_to': 'Ptsv2payoutsOrderInformationBillTo' + } + + attribute_map = { + 'amount_details': 'amountDetails', + 'bill_to': 'billTo' + } + + def __init__(self, amount_details=None, bill_to=None): + """ + Ptsv2payoutsOrderInformation - a model defined in Swagger + """ + + self._amount_details = None + self._bill_to = None + + if amount_details is not None: + self.amount_details = amount_details + if bill_to is not None: + self.bill_to = bill_to + + @property + def amount_details(self): + """ + Gets the amount_details of this Ptsv2payoutsOrderInformation. + + :return: The amount_details of this Ptsv2payoutsOrderInformation. + :rtype: Ptsv2payoutsOrderInformationAmountDetails + """ + return self._amount_details + + @amount_details.setter + def amount_details(self, amount_details): + """ + Sets the amount_details of this Ptsv2payoutsOrderInformation. + + :param amount_details: The amount_details of this Ptsv2payoutsOrderInformation. + :type: Ptsv2payoutsOrderInformationAmountDetails + """ + + self._amount_details = amount_details + + @property + def bill_to(self): + """ + Gets the bill_to of this Ptsv2payoutsOrderInformation. + + :return: The bill_to of this Ptsv2payoutsOrderInformation. + :rtype: Ptsv2payoutsOrderInformationBillTo + """ + return self._bill_to + + @bill_to.setter + def bill_to(self, bill_to): + """ + Sets the bill_to of this Ptsv2payoutsOrderInformation. + + :param bill_to: The bill_to of this Ptsv2payoutsOrderInformation. + :type: Ptsv2payoutsOrderInformationBillTo + """ + + self._bill_to = bill_to + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsOrderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_order_information_amount_details.py b/CyberSource/models/ptsv2payouts_order_information_amount_details.py new file mode 100644 index 00000000..15f33565 --- /dev/null +++ b/CyberSource/models/ptsv2payouts_order_information_amount_details.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsOrderInformationAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'total_amount': 'str', + 'currency': 'str', + 'surcharge': 'Ptsv2payoutsOrderInformationAmountDetailsSurcharge' + } + + attribute_map = { + 'total_amount': 'totalAmount', + 'currency': 'currency', + 'surcharge': 'surcharge' + } + + def __init__(self, total_amount=None, currency=None, surcharge=None): + """ + Ptsv2payoutsOrderInformationAmountDetails - a model defined in Swagger + """ + + self._total_amount = None + self._currency = None + self._surcharge = None + + if total_amount is not None: + self.total_amount = total_amount + if currency is not None: + self.currency = currency + if surcharge is not None: + self.surcharge = surcharge + + @property + def total_amount(self): + """ + Gets the total_amount of this Ptsv2payoutsOrderInformationAmountDetails. + Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The total_amount of this Ptsv2payoutsOrderInformationAmountDetails. + :rtype: str + """ + return self._total_amount + + @total_amount.setter + def total_amount(self, total_amount): + """ + Sets the total_amount of this Ptsv2payoutsOrderInformationAmountDetails. + Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param total_amount: The total_amount of this Ptsv2payoutsOrderInformationAmountDetails. + :type: str + """ + if total_amount is not None and len(total_amount) > 19: + raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") + + self._total_amount = total_amount + + @property + def currency(self): + """ + Gets the currency of this Ptsv2payoutsOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this Ptsv2payoutsOrderInformationAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this Ptsv2payoutsOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this Ptsv2payoutsOrderInformationAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + @property + def surcharge(self): + """ + Gets the surcharge of this Ptsv2payoutsOrderInformationAmountDetails. + + :return: The surcharge of this Ptsv2payoutsOrderInformationAmountDetails. + :rtype: Ptsv2payoutsOrderInformationAmountDetailsSurcharge + """ + return self._surcharge + + @surcharge.setter + def surcharge(self, surcharge): + """ + Sets the surcharge of this Ptsv2payoutsOrderInformationAmountDetails. + + :param surcharge: The surcharge of this Ptsv2payoutsOrderInformationAmountDetails. + :type: Ptsv2payoutsOrderInformationAmountDetailsSurcharge + """ + + self._surcharge = surcharge + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsOrderInformationAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_order_information_amount_details_surcharge.py b/CyberSource/models/ptsv2payouts_order_information_amount_details_surcharge.py new file mode 100644 index 00000000..14b61582 --- /dev/null +++ b/CyberSource/models/ptsv2payouts_order_information_amount_details_surcharge.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsOrderInformationAmountDetailsSurcharge(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amount': 'str' + } + + attribute_map = { + 'amount': 'amount' + } + + def __init__(self, amount=None): + """ + Ptsv2payoutsOrderInformationAmountDetailsSurcharge - a model defined in Swagger + """ + + self._amount = None + + if amount is not None: + self.amount = amount + + @property + def amount(self): + """ + Gets the amount of this Ptsv2payoutsOrderInformationAmountDetailsSurcharge. + The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The amount of this Ptsv2payoutsOrderInformationAmountDetailsSurcharge. + :rtype: str + """ + return self._amount + + @amount.setter + def amount(self, amount): + """ + Sets the amount of this Ptsv2payoutsOrderInformationAmountDetailsSurcharge. + The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param amount: The amount of this Ptsv2payoutsOrderInformationAmountDetailsSurcharge. + :type: str + """ + if amount is not None and len(amount) > 15: + raise ValueError("Invalid value for `amount`, length must be less than or equal to `15`") + + self._amount = amount + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsOrderInformationAmountDetailsSurcharge): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_order_information_bill_to.py b/CyberSource/models/ptsv2payouts_order_information_bill_to.py new file mode 100644 index 00000000..c2be52ee --- /dev/null +++ b/CyberSource/models/ptsv2payouts_order_information_bill_to.py @@ -0,0 +1,401 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsOrderInformationBillTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first_name': 'str', + 'last_name': 'str', + 'address1': 'str', + 'address2': 'str', + 'country': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'postal_code': 'str', + 'phone_number': 'str', + 'phone_type': 'str' + } + + attribute_map = { + 'first_name': 'firstName', + 'last_name': 'lastName', + 'address1': 'address1', + 'address2': 'address2', + 'country': 'country', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'postal_code': 'postalCode', + 'phone_number': 'phoneNumber', + 'phone_type': 'phoneType' + } + + def __init__(self, first_name=None, last_name=None, address1=None, address2=None, country=None, locality=None, administrative_area=None, postal_code=None, phone_number=None, phone_type=None): + """ + Ptsv2payoutsOrderInformationBillTo - a model defined in Swagger + """ + + self._first_name = None + self._last_name = None + self._address1 = None + self._address2 = None + self._country = None + self._locality = None + self._administrative_area = None + self._postal_code = None + self._phone_number = None + self._phone_type = None + + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if address1 is not None: + self.address1 = address1 + if address2 is not None: + self.address2 = address2 + if country is not None: + self.country = country + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if postal_code is not None: + self.postal_code = postal_code + if phone_number is not None: + self.phone_number = phone_number + if phone_type is not None: + self.phone_type = phone_type + + @property + def first_name(self): + """ + Gets the first_name of this Ptsv2payoutsOrderInformationBillTo. + Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The first_name of this Ptsv2payoutsOrderInformationBillTo. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this Ptsv2payoutsOrderInformationBillTo. + Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param first_name: The first_name of this Ptsv2payoutsOrderInformationBillTo. + :type: str + """ + if first_name is not None and len(first_name) > 60: + raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") + + self._first_name = first_name + + @property + def last_name(self): + """ + Gets the last_name of this Ptsv2payoutsOrderInformationBillTo. + Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The last_name of this Ptsv2payoutsOrderInformationBillTo. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this Ptsv2payoutsOrderInformationBillTo. + Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param last_name: The last_name of this Ptsv2payoutsOrderInformationBillTo. + :type: str + """ + if last_name is not None and len(last_name) > 60: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") + + self._last_name = last_name + + @property + def address1(self): + """ + Gets the address1 of this Ptsv2payoutsOrderInformationBillTo. + First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The address1 of this Ptsv2payoutsOrderInformationBillTo. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this Ptsv2payoutsOrderInformationBillTo. + First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param address1: The address1 of this Ptsv2payoutsOrderInformationBillTo. + :type: str + """ + if address1 is not None and len(address1) > 60: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") + + self._address1 = address1 + + @property + def address2(self): + """ + Gets the address2 of this Ptsv2payoutsOrderInformationBillTo. + Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The address2 of this Ptsv2payoutsOrderInformationBillTo. + :rtype: str + """ + return self._address2 + + @address2.setter + def address2(self, address2): + """ + Sets the address2 of this Ptsv2payoutsOrderInformationBillTo. + Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param address2: The address2 of this Ptsv2payoutsOrderInformationBillTo. + :type: str + """ + if address2 is not None and len(address2) > 60: + raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") + + self._address2 = address2 + + @property + def country(self): + """ + Gets the country of this Ptsv2payoutsOrderInformationBillTo. + Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The country of this Ptsv2payoutsOrderInformationBillTo. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Ptsv2payoutsOrderInformationBillTo. + Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param country: The country of this Ptsv2payoutsOrderInformationBillTo. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def locality(self): + """ + Gets the locality of this Ptsv2payoutsOrderInformationBillTo. + City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The locality of this Ptsv2payoutsOrderInformationBillTo. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Ptsv2payoutsOrderInformationBillTo. + City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param locality: The locality of this Ptsv2payoutsOrderInformationBillTo. + :type: str + """ + if locality is not None and len(locality) > 50: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2payoutsOrderInformationBillTo. + State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The administrative_area of this Ptsv2payoutsOrderInformationBillTo. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2payoutsOrderInformationBillTo. + State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param administrative_area: The administrative_area of this Ptsv2payoutsOrderInformationBillTo. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 2: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") + + self._administrative_area = administrative_area + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2payoutsOrderInformationBillTo. + Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The postal_code of this Ptsv2payoutsOrderInformationBillTo. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2payoutsOrderInformationBillTo. + Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param postal_code: The postal_code of this Ptsv2payoutsOrderInformationBillTo. + :type: str + """ + if postal_code is not None and len(postal_code) > 10: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") + + self._postal_code = postal_code + + @property + def phone_number(self): + """ + Gets the phone_number of this Ptsv2payoutsOrderInformationBillTo. + Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The phone_number of this Ptsv2payoutsOrderInformationBillTo. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this Ptsv2payoutsOrderInformationBillTo. + Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param phone_number: The phone_number of this Ptsv2payoutsOrderInformationBillTo. + :type: str + """ + if phone_number is not None and len(phone_number) > 15: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") + + self._phone_number = phone_number + + @property + def phone_type(self): + """ + Gets the phone_type of this Ptsv2payoutsOrderInformationBillTo. + Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work + + :return: The phone_type of this Ptsv2payoutsOrderInformationBillTo. + :rtype: str + """ + return self._phone_type + + @phone_type.setter + def phone_type(self, phone_type): + """ + Sets the phone_type of this Ptsv2payoutsOrderInformationBillTo. + Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work + + :param phone_type: The phone_type of this Ptsv2payoutsOrderInformationBillTo. + :type: str + """ + allowed_values = ["day", "home", "night", "work"] + if phone_type not in allowed_values: + raise ValueError( + "Invalid value for `phone_type` ({0}), must be one of {1}" + .format(phone_type, allowed_values) + ) + + self._phone_type = phone_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsOrderInformationBillTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_payment_information.py b/CyberSource/models/ptsv2payouts_payment_information.py new file mode 100644 index 00000000..a566d593 --- /dev/null +++ b/CyberSource/models/ptsv2payouts_payment_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsPaymentInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'card': 'Ptsv2payoutsPaymentInformationCard' + } + + attribute_map = { + 'card': 'card' + } + + def __init__(self, card=None): + """ + Ptsv2payoutsPaymentInformation - a model defined in Swagger + """ + + self._card = None + + if card is not None: + self.card = card + + @property + def card(self): + """ + Gets the card of this Ptsv2payoutsPaymentInformation. + + :return: The card of this Ptsv2payoutsPaymentInformation. + :rtype: Ptsv2payoutsPaymentInformationCard + """ + return self._card + + @card.setter + def card(self, card): + """ + Sets the card of this Ptsv2payoutsPaymentInformation. + + :param card: The card of this Ptsv2payoutsPaymentInformation. + :type: Ptsv2payoutsPaymentInformationCard + """ + + self._card = card + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsPaymentInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_payment_information_card.py b/CyberSource/models/ptsv2payouts_payment_information_card.py new file mode 100644 index 00000000..0be505c2 --- /dev/null +++ b/CyberSource/models/ptsv2payouts_payment_information_card.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsPaymentInformationCard(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'number': 'str', + 'expiration_month': 'str', + 'expiration_year': 'str', + 'source_account_type': 'str' + } + + attribute_map = { + 'type': 'type', + 'number': 'number', + 'expiration_month': 'expirationMonth', + 'expiration_year': 'expirationYear', + 'source_account_type': 'sourceAccountType' + } + + def __init__(self, type=None, number=None, expiration_month=None, expiration_year=None, source_account_type=None): + """ + Ptsv2payoutsPaymentInformationCard - a model defined in Swagger + """ + + self._type = None + self._number = None + self._expiration_month = None + self._expiration_year = None + self._source_account_type = None + + if type is not None: + self.type = type + if number is not None: + self.number = number + if expiration_month is not None: + self.expiration_month = expiration_month + if expiration_year is not None: + self.expiration_year = expiration_year + if source_account_type is not None: + self.source_account_type = source_account_type + + @property + def type(self): + """ + Gets the type of this Ptsv2payoutsPaymentInformationCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :return: The type of this Ptsv2payoutsPaymentInformationCard. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Ptsv2payoutsPaymentInformationCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :param type: The type of this Ptsv2payoutsPaymentInformationCard. + :type: str + """ + if type is not None and len(type) > 3: + raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") + + self._type = type + + @property + def number(self): + """ + Gets the number of this Ptsv2payoutsPaymentInformationCard. + Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The number of this Ptsv2payoutsPaymentInformationCard. + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """ + Sets the number of this Ptsv2payoutsPaymentInformationCard. + Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param number: The number of this Ptsv2payoutsPaymentInformationCard. + :type: str + """ + if number is not None and len(number) > 20: + raise ValueError("Invalid value for `number`, length must be less than or equal to `20`") + + self._number = number + + @property + def expiration_month(self): + """ + Gets the expiration_month of this Ptsv2payoutsPaymentInformationCard. + Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The expiration_month of this Ptsv2payoutsPaymentInformationCard. + :rtype: str + """ + return self._expiration_month + + @expiration_month.setter + def expiration_month(self, expiration_month): + """ + Sets the expiration_month of this Ptsv2payoutsPaymentInformationCard. + Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param expiration_month: The expiration_month of this Ptsv2payoutsPaymentInformationCard. + :type: str + """ + if expiration_month is not None and len(expiration_month) > 2: + raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") + + self._expiration_month = expiration_month + + @property + def expiration_year(self): + """ + Gets the expiration_year of this Ptsv2payoutsPaymentInformationCard. + Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The expiration_year of this Ptsv2payoutsPaymentInformationCard. + :rtype: str + """ + return self._expiration_year + + @expiration_year.setter + def expiration_year(self, expiration_year): + """ + Sets the expiration_year of this Ptsv2payoutsPaymentInformationCard. + Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param expiration_year: The expiration_year of this Ptsv2payoutsPaymentInformationCard. + :type: str + """ + if expiration_year is not None and len(expiration_year) > 4: + raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") + + self._expiration_year = expiration_year + + @property + def source_account_type(self): + """ + Gets the source_account_type of this Ptsv2payoutsPaymentInformationCard. + Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account + + :return: The source_account_type of this Ptsv2payoutsPaymentInformationCard. + :rtype: str + """ + return self._source_account_type + + @source_account_type.setter + def source_account_type(self, source_account_type): + """ + Sets the source_account_type of this Ptsv2payoutsPaymentInformationCard. + Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account + + :param source_account_type: The source_account_type of this Ptsv2payoutsPaymentInformationCard. + :type: str + """ + if source_account_type is not None and len(source_account_type) > 2: + raise ValueError("Invalid value for `source_account_type`, length must be less than or equal to `2`") + + self._source_account_type = source_account_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsPaymentInformationCard): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_processing_information.py b/CyberSource/models/ptsv2payouts_processing_information.py new file mode 100644 index 00000000..49e38a3c --- /dev/null +++ b/CyberSource/models/ptsv2payouts_processing_information.py @@ -0,0 +1,243 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsProcessingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'business_application_id': 'str', + 'network_routing_order': 'str', + 'commerce_indicator': 'str', + 'reconciliation_id': 'str', + 'payouts_options': 'Ptsv2payoutsProcessingInformationPayoutsOptions' + } + + attribute_map = { + 'business_application_id': 'businessApplicationId', + 'network_routing_order': 'networkRoutingOrder', + 'commerce_indicator': 'commerceIndicator', + 'reconciliation_id': 'reconciliationId', + 'payouts_options': 'payoutsOptions' + } + + def __init__(self, business_application_id=None, network_routing_order=None, commerce_indicator=None, reconciliation_id=None, payouts_options=None): + """ + Ptsv2payoutsProcessingInformation - a model defined in Swagger + """ + + self._business_application_id = None + self._network_routing_order = None + self._commerce_indicator = None + self._reconciliation_id = None + self._payouts_options = None + + if business_application_id is not None: + self.business_application_id = business_application_id + if network_routing_order is not None: + self.network_routing_order = network_routing_order + if commerce_indicator is not None: + self.commerce_indicator = commerce_indicator + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if payouts_options is not None: + self.payouts_options = payouts_options + + @property + def business_application_id(self): + """ + Gets the business_application_id of this Ptsv2payoutsProcessingInformation. + Payouts transaction type. Applicable Processors: FDC Compass, Paymentech, CtV Possible values: **Credit Card Bill Payment** - **CP**: credit card bill payment **Funds Disbursement** - **FD**: funds disbursement - **GD**: government disbursement - **MD**: merchant disbursement **Money Transfer** - **AA**: account to account. Sender and receiver are same person. - **PP**: person to person. Sender and receiver are different. **Prepaid Load** - **TU**: top up + + :return: The business_application_id of this Ptsv2payoutsProcessingInformation. + :rtype: str + """ + return self._business_application_id + + @business_application_id.setter + def business_application_id(self, business_application_id): + """ + Sets the business_application_id of this Ptsv2payoutsProcessingInformation. + Payouts transaction type. Applicable Processors: FDC Compass, Paymentech, CtV Possible values: **Credit Card Bill Payment** - **CP**: credit card bill payment **Funds Disbursement** - **FD**: funds disbursement - **GD**: government disbursement - **MD**: merchant disbursement **Money Transfer** - **AA**: account to account. Sender and receiver are same person. - **PP**: person to person. Sender and receiver are different. **Prepaid Load** - **TU**: top up + + :param business_application_id: The business_application_id of this Ptsv2payoutsProcessingInformation. + :type: str + """ + if business_application_id is not None and len(business_application_id) > 2: + raise ValueError("Invalid value for `business_application_id`, length must be less than or equal to `2`") + + self._business_application_id = business_application_id + + @property + def network_routing_order(self): + """ + Gets the network_routing_order of this Ptsv2payoutsProcessingInformation. + This field is optionally used by Push Payments Gateway participants (merchants and acquirers) to get the attributes for specified networks only. The networks specified in this field must be a subset of the information provided during program enrollment. Refer to Sharing Group Code/Network Routing Order. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the network routing order. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities. See https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code , under section 'Network ID and Sharing Group Code' on the left panel for available values + + :return: The network_routing_order of this Ptsv2payoutsProcessingInformation. + :rtype: str + """ + return self._network_routing_order + + @network_routing_order.setter + def network_routing_order(self, network_routing_order): + """ + Sets the network_routing_order of this Ptsv2payoutsProcessingInformation. + This field is optionally used by Push Payments Gateway participants (merchants and acquirers) to get the attributes for specified networks only. The networks specified in this field must be a subset of the information provided during program enrollment. Refer to Sharing Group Code/Network Routing Order. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the network routing order. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities. See https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code , under section 'Network ID and Sharing Group Code' on the left panel for available values + + :param network_routing_order: The network_routing_order of this Ptsv2payoutsProcessingInformation. + :type: str + """ + if network_routing_order is not None and len(network_routing_order) > 30: + raise ValueError("Invalid value for `network_routing_order`, length must be less than or equal to `30`") + + self._network_routing_order = network_routing_order + + @property + def commerce_indicator(self): + """ + Gets the commerce_indicator of this Ptsv2payoutsProcessingInformation. + Type of transaction. Possible value for Fast Payments transactions: - internet + + :return: The commerce_indicator of this Ptsv2payoutsProcessingInformation. + :rtype: str + """ + return self._commerce_indicator + + @commerce_indicator.setter + def commerce_indicator(self, commerce_indicator): + """ + Sets the commerce_indicator of this Ptsv2payoutsProcessingInformation. + Type of transaction. Possible value for Fast Payments transactions: - internet + + :param commerce_indicator: The commerce_indicator of this Ptsv2payoutsProcessingInformation. + :type: str + """ + if commerce_indicator is not None and len(commerce_indicator) > 13: + raise ValueError("Invalid value for `commerce_indicator`, length must be less than or equal to `13`") + + self._commerce_indicator = commerce_indicator + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this Ptsv2payoutsProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :return: The reconciliation_id of this Ptsv2payoutsProcessingInformation. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this Ptsv2payoutsProcessingInformation. + Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). + + :param reconciliation_id: The reconciliation_id of this Ptsv2payoutsProcessingInformation. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def payouts_options(self): + """ + Gets the payouts_options of this Ptsv2payoutsProcessingInformation. + + :return: The payouts_options of this Ptsv2payoutsProcessingInformation. + :rtype: Ptsv2payoutsProcessingInformationPayoutsOptions + """ + return self._payouts_options + + @payouts_options.setter + def payouts_options(self, payouts_options): + """ + Sets the payouts_options of this Ptsv2payoutsProcessingInformation. + + :param payouts_options: The payouts_options of this Ptsv2payoutsProcessingInformation. + :type: Ptsv2payoutsProcessingInformationPayoutsOptions + """ + + self._payouts_options = payouts_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsProcessingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_processing_information_payouts_options.py b/CyberSource/models/ptsv2payouts_processing_information_payouts_options.py new file mode 100644 index 00000000..4a34242a --- /dev/null +++ b/CyberSource/models/ptsv2payouts_processing_information_payouts_options.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsProcessingInformationPayoutsOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'acquirer_merchant_id': 'str', + 'acquirer_bin': 'str', + 'retrieval_reference_number': 'str', + 'account_funding_reference_id': 'str' + } + + attribute_map = { + 'acquirer_merchant_id': 'acquirerMerchantId', + 'acquirer_bin': 'acquirerBin', + 'retrieval_reference_number': 'retrievalReferenceNumber', + 'account_funding_reference_id': 'accountFundingReferenceId' + } + + def __init__(self, acquirer_merchant_id=None, acquirer_bin=None, retrieval_reference_number=None, account_funding_reference_id=None): + """ + Ptsv2payoutsProcessingInformationPayoutsOptions - a model defined in Swagger + """ + + self._acquirer_merchant_id = None + self._acquirer_bin = None + self._retrieval_reference_number = None + self._account_funding_reference_id = None + + if acquirer_merchant_id is not None: + self.acquirer_merchant_id = acquirer_merchant_id + if acquirer_bin is not None: + self.acquirer_bin = acquirer_bin + if retrieval_reference_number is not None: + self.retrieval_reference_number = retrieval_reference_number + if account_funding_reference_id is not None: + self.account_funding_reference_id = account_funding_reference_id + + @property + def acquirer_merchant_id(self): + """ + Gets the acquirer_merchant_id of this Ptsv2payoutsProcessingInformationPayoutsOptions. + This field identifies the card acceptor for defining the point of service terminal in both local and interchange environments. An acquirer-assigned code identifying the card acceptor for the transaction. Depending on the acquirer and merchant billing and reporting requirements, the code can represent a merchant, a specific merchant location, or a specific merchant location terminal. Acquiring Institution Identification Code uniquely identifies the merchant. The value from the original is required in any subsequent messages, including reversals, chargebacks, and representments. * Applicable only for CTV for Payouts. + + :return: The acquirer_merchant_id of this Ptsv2payoutsProcessingInformationPayoutsOptions. + :rtype: str + """ + return self._acquirer_merchant_id + + @acquirer_merchant_id.setter + def acquirer_merchant_id(self, acquirer_merchant_id): + """ + Sets the acquirer_merchant_id of this Ptsv2payoutsProcessingInformationPayoutsOptions. + This field identifies the card acceptor for defining the point of service terminal in both local and interchange environments. An acquirer-assigned code identifying the card acceptor for the transaction. Depending on the acquirer and merchant billing and reporting requirements, the code can represent a merchant, a specific merchant location, or a specific merchant location terminal. Acquiring Institution Identification Code uniquely identifies the merchant. The value from the original is required in any subsequent messages, including reversals, chargebacks, and representments. * Applicable only for CTV for Payouts. + + :param acquirer_merchant_id: The acquirer_merchant_id of this Ptsv2payoutsProcessingInformationPayoutsOptions. + :type: str + """ + if acquirer_merchant_id is not None and len(acquirer_merchant_id) > 15: + raise ValueError("Invalid value for `acquirer_merchant_id`, length must be less than or equal to `15`") + + self._acquirer_merchant_id = acquirer_merchant_id + + @property + def acquirer_bin(self): + """ + Gets the acquirer_bin of this Ptsv2payoutsProcessingInformationPayoutsOptions. + This code identifies the financial institution acting as the acquirer of this customer transaction. The acquirer is the member or system user that signed the merchant or ADM or dispensed cash. This number is usually Visa-assigned. * Applicable only for CTV for Payouts. + + :return: The acquirer_bin of this Ptsv2payoutsProcessingInformationPayoutsOptions. + :rtype: str + """ + return self._acquirer_bin + + @acquirer_bin.setter + def acquirer_bin(self, acquirer_bin): + """ + Sets the acquirer_bin of this Ptsv2payoutsProcessingInformationPayoutsOptions. + This code identifies the financial institution acting as the acquirer of this customer transaction. The acquirer is the member or system user that signed the merchant or ADM or dispensed cash. This number is usually Visa-assigned. * Applicable only for CTV for Payouts. + + :param acquirer_bin: The acquirer_bin of this Ptsv2payoutsProcessingInformationPayoutsOptions. + :type: str + """ + if acquirer_bin is not None and len(acquirer_bin) > 11: + raise ValueError("Invalid value for `acquirer_bin`, length must be less than or equal to `11`") + + self._acquirer_bin = acquirer_bin + + @property + def retrieval_reference_number(self): + """ + Gets the retrieval_reference_number of this Ptsv2payoutsProcessingInformationPayoutsOptions. + This field contains a number that is used with other data elements as a key to identify and track all messages related to a given cardholder transaction; that is, to a given transaction set. * Applicable only for CTV for Payouts. + + :return: The retrieval_reference_number of this Ptsv2payoutsProcessingInformationPayoutsOptions. + :rtype: str + """ + return self._retrieval_reference_number + + @retrieval_reference_number.setter + def retrieval_reference_number(self, retrieval_reference_number): + """ + Sets the retrieval_reference_number of this Ptsv2payoutsProcessingInformationPayoutsOptions. + This field contains a number that is used with other data elements as a key to identify and track all messages related to a given cardholder transaction; that is, to a given transaction set. * Applicable only for CTV for Payouts. + + :param retrieval_reference_number: The retrieval_reference_number of this Ptsv2payoutsProcessingInformationPayoutsOptions. + :type: str + """ + if retrieval_reference_number is not None and len(retrieval_reference_number) > 12: + raise ValueError("Invalid value for `retrieval_reference_number`, length must be less than or equal to `12`") + + self._retrieval_reference_number = retrieval_reference_number + + @property + def account_funding_reference_id(self): + """ + Gets the account_funding_reference_id of this Ptsv2payoutsProcessingInformationPayoutsOptions. + Visa-generated transaction identifier (TID) that is unique for each original authorization and financial request. * Applicable only for CTV for Payouts. + + :return: The account_funding_reference_id of this Ptsv2payoutsProcessingInformationPayoutsOptions. + :rtype: str + """ + return self._account_funding_reference_id + + @account_funding_reference_id.setter + def account_funding_reference_id(self, account_funding_reference_id): + """ + Sets the account_funding_reference_id of this Ptsv2payoutsProcessingInformationPayoutsOptions. + Visa-generated transaction identifier (TID) that is unique for each original authorization and financial request. * Applicable only for CTV for Payouts. + + :param account_funding_reference_id: The account_funding_reference_id of this Ptsv2payoutsProcessingInformationPayoutsOptions. + :type: str + """ + if account_funding_reference_id is not None and len(account_funding_reference_id) > 15: + raise ValueError("Invalid value for `account_funding_reference_id`, length must be less than or equal to `15`") + + self._account_funding_reference_id = account_funding_reference_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsProcessingInformationPayoutsOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_recipient_information.py b/CyberSource/models/ptsv2payouts_recipient_information.py new file mode 100644 index 00000000..1e2ccdb6 --- /dev/null +++ b/CyberSource/models/ptsv2payouts_recipient_information.py @@ -0,0 +1,399 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsRecipientInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first_name': 'str', + 'middle_initial': 'str', + 'last_name': 'str', + 'address1': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'country': 'str', + 'postal_code': 'str', + 'phone_number': 'str', + 'date_of_birth': 'str' + } + + attribute_map = { + 'first_name': 'firstName', + 'middle_initial': 'middleInitial', + 'last_name': 'lastName', + 'address1': 'address1', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'country': 'country', + 'postal_code': 'postalCode', + 'phone_number': 'phoneNumber', + 'date_of_birth': 'dateOfBirth' + } + + def __init__(self, first_name=None, middle_initial=None, last_name=None, address1=None, locality=None, administrative_area=None, country=None, postal_code=None, phone_number=None, date_of_birth=None): + """ + Ptsv2payoutsRecipientInformation - a model defined in Swagger + """ + + self._first_name = None + self._middle_initial = None + self._last_name = None + self._address1 = None + self._locality = None + self._administrative_area = None + self._country = None + self._postal_code = None + self._phone_number = None + self._date_of_birth = None + + if first_name is not None: + self.first_name = first_name + if middle_initial is not None: + self.middle_initial = middle_initial + if last_name is not None: + self.last_name = last_name + if address1 is not None: + self.address1 = address1 + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if country is not None: + self.country = country + if postal_code is not None: + self.postal_code = postal_code + if phone_number is not None: + self.phone_number = phone_number + if date_of_birth is not None: + self.date_of_birth = date_of_birth + + @property + def first_name(self): + """ + Gets the first_name of this Ptsv2payoutsRecipientInformation. + First name of recipient. characters. * CTV (14) * Paymentech (30) + + :return: The first_name of this Ptsv2payoutsRecipientInformation. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this Ptsv2payoutsRecipientInformation. + First name of recipient. characters. * CTV (14) * Paymentech (30) + + :param first_name: The first_name of this Ptsv2payoutsRecipientInformation. + :type: str + """ + if first_name is not None and len(first_name) > 35: + raise ValueError("Invalid value for `first_name`, length must be less than or equal to `35`") + + self._first_name = first_name + + @property + def middle_initial(self): + """ + Gets the middle_initial of this Ptsv2payoutsRecipientInformation. + Middle Initial of recipient. Required only for FDCCompass. + + :return: The middle_initial of this Ptsv2payoutsRecipientInformation. + :rtype: str + """ + return self._middle_initial + + @middle_initial.setter + def middle_initial(self, middle_initial): + """ + Sets the middle_initial of this Ptsv2payoutsRecipientInformation. + Middle Initial of recipient. Required only for FDCCompass. + + :param middle_initial: The middle_initial of this Ptsv2payoutsRecipientInformation. + :type: str + """ + if middle_initial is not None and len(middle_initial) > 1: + raise ValueError("Invalid value for `middle_initial`, length must be less than or equal to `1`") + + self._middle_initial = middle_initial + + @property + def last_name(self): + """ + Gets the last_name of this Ptsv2payoutsRecipientInformation. + Last name of recipient. characters. * CTV (14) * Paymentech (30) + + :return: The last_name of this Ptsv2payoutsRecipientInformation. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this Ptsv2payoutsRecipientInformation. + Last name of recipient. characters. * CTV (14) * Paymentech (30) + + :param last_name: The last_name of this Ptsv2payoutsRecipientInformation. + :type: str + """ + if last_name is not None and len(last_name) > 35: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `35`") + + self._last_name = last_name + + @property + def address1(self): + """ + Gets the address1 of this Ptsv2payoutsRecipientInformation. + Recipient address information. Required only for FDCCompass. + + :return: The address1 of this Ptsv2payoutsRecipientInformation. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this Ptsv2payoutsRecipientInformation. + Recipient address information. Required only for FDCCompass. + + :param address1: The address1 of this Ptsv2payoutsRecipientInformation. + :type: str + """ + if address1 is not None and len(address1) > 50: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `50`") + + self._address1 = address1 + + @property + def locality(self): + """ + Gets the locality of this Ptsv2payoutsRecipientInformation. + Recipient city. Required only for FDCCompass. + + :return: The locality of this Ptsv2payoutsRecipientInformation. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Ptsv2payoutsRecipientInformation. + Recipient city. Required only for FDCCompass. + + :param locality: The locality of this Ptsv2payoutsRecipientInformation. + :type: str + """ + if locality is not None and len(locality) > 25: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `25`") + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2payoutsRecipientInformation. + Recipient State. Required only for FDCCompass. + + :return: The administrative_area of this Ptsv2payoutsRecipientInformation. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2payoutsRecipientInformation. + Recipient State. Required only for FDCCompass. + + :param administrative_area: The administrative_area of this Ptsv2payoutsRecipientInformation. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 3: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `3`") + + self._administrative_area = administrative_area + + @property + def country(self): + """ + Gets the country of this Ptsv2payoutsRecipientInformation. + Recipient country code. Required only for FDCCompass. + + :return: The country of this Ptsv2payoutsRecipientInformation. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Ptsv2payoutsRecipientInformation. + Recipient country code. Required only for FDCCompass. + + :param country: The country of this Ptsv2payoutsRecipientInformation. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2payoutsRecipientInformation. + Recipient postal code. Required only for FDCCompass. + + :return: The postal_code of this Ptsv2payoutsRecipientInformation. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2payoutsRecipientInformation. + Recipient postal code. Required only for FDCCompass. + + :param postal_code: The postal_code of this Ptsv2payoutsRecipientInformation. + :type: str + """ + if postal_code is not None and len(postal_code) > 10: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") + + self._postal_code = postal_code + + @property + def phone_number(self): + """ + Gets the phone_number of this Ptsv2payoutsRecipientInformation. + Recipient phone number. Required only for FDCCompass. + + :return: The phone_number of this Ptsv2payoutsRecipientInformation. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this Ptsv2payoutsRecipientInformation. + Recipient phone number. Required only for FDCCompass. + + :param phone_number: The phone_number of this Ptsv2payoutsRecipientInformation. + :type: str + """ + if phone_number is not None and len(phone_number) > 20: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `20`") + + self._phone_number = phone_number + + @property + def date_of_birth(self): + """ + Gets the date_of_birth of this Ptsv2payoutsRecipientInformation. + Recipient date of birth in YYYYMMDD format. Required only for FDCCompass. + + :return: The date_of_birth of this Ptsv2payoutsRecipientInformation. + :rtype: str + """ + return self._date_of_birth + + @date_of_birth.setter + def date_of_birth(self, date_of_birth): + """ + Sets the date_of_birth of this Ptsv2payoutsRecipientInformation. + Recipient date of birth in YYYYMMDD format. Required only for FDCCompass. + + :param date_of_birth: The date_of_birth of this Ptsv2payoutsRecipientInformation. + :type: str + """ + if date_of_birth is not None and len(date_of_birth) > 8: + raise ValueError("Invalid value for `date_of_birth`, length must be less than or equal to `8`") + if date_of_birth is not None and len(date_of_birth) < 8: + raise ValueError("Invalid value for `date_of_birth`, length must be greater than or equal to `8`") + + self._date_of_birth = date_of_birth + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsRecipientInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_sender_information.py b/CyberSource/models/ptsv2payouts_sender_information.py new file mode 100644 index 00000000..68dff6e3 --- /dev/null +++ b/CyberSource/models/ptsv2payouts_sender_information.py @@ -0,0 +1,515 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsSenderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reference_number': 'str', + 'account': 'Ptsv2payoutsSenderInformationAccount', + 'first_name': 'str', + 'middle_initial': 'str', + 'last_name': 'str', + 'name': 'str', + 'address1': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'country_code': 'str', + 'postal_code': 'str', + 'phone_number': 'str', + 'date_of_birth': 'str', + 'vat_registration_number': 'str' + } + + attribute_map = { + 'reference_number': 'referenceNumber', + 'account': 'account', + 'first_name': 'firstName', + 'middle_initial': 'middleInitial', + 'last_name': 'lastName', + 'name': 'name', + 'address1': 'address1', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'country_code': 'countryCode', + 'postal_code': 'postalCode', + 'phone_number': 'phoneNumber', + 'date_of_birth': 'dateOfBirth', + 'vat_registration_number': 'vatRegistrationNumber' + } + + def __init__(self, reference_number=None, account=None, first_name=None, middle_initial=None, last_name=None, name=None, address1=None, locality=None, administrative_area=None, country_code=None, postal_code=None, phone_number=None, date_of_birth=None, vat_registration_number=None): + """ + Ptsv2payoutsSenderInformation - a model defined in Swagger + """ + + self._reference_number = None + self._account = None + self._first_name = None + self._middle_initial = None + self._last_name = None + self._name = None + self._address1 = None + self._locality = None + self._administrative_area = None + self._country_code = None + self._postal_code = None + self._phone_number = None + self._date_of_birth = None + self._vat_registration_number = None + + if reference_number is not None: + self.reference_number = reference_number + if account is not None: + self.account = account + if first_name is not None: + self.first_name = first_name + if middle_initial is not None: + self.middle_initial = middle_initial + if last_name is not None: + self.last_name = last_name + if name is not None: + self.name = name + if address1 is not None: + self.address1 = address1 + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if country_code is not None: + self.country_code = country_code + if postal_code is not None: + self.postal_code = postal_code + if phone_number is not None: + self.phone_number = phone_number + if date_of_birth is not None: + self.date_of_birth = date_of_birth + if vat_registration_number is not None: + self.vat_registration_number = vat_registration_number + + @property + def reference_number(self): + """ + Gets the reference_number of this Ptsv2payoutsSenderInformation. + Reference number generated by you that uniquely identifies the sender. + + :return: The reference_number of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._reference_number + + @reference_number.setter + def reference_number(self, reference_number): + """ + Sets the reference_number of this Ptsv2payoutsSenderInformation. + Reference number generated by you that uniquely identifies the sender. + + :param reference_number: The reference_number of this Ptsv2payoutsSenderInformation. + :type: str + """ + if reference_number is not None and len(reference_number) > 19: + raise ValueError("Invalid value for `reference_number`, length must be less than or equal to `19`") + + self._reference_number = reference_number + + @property + def account(self): + """ + Gets the account of this Ptsv2payoutsSenderInformation. + + :return: The account of this Ptsv2payoutsSenderInformation. + :rtype: Ptsv2payoutsSenderInformationAccount + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this Ptsv2payoutsSenderInformation. + + :param account: The account of this Ptsv2payoutsSenderInformation. + :type: Ptsv2payoutsSenderInformationAccount + """ + + self._account = account + + @property + def first_name(self): + """ + Gets the first_name of this Ptsv2payoutsSenderInformation. + First name of sender (Optional). * CTV (14) * Paymentech (30) + + :return: The first_name of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this Ptsv2payoutsSenderInformation. + First name of sender (Optional). * CTV (14) * Paymentech (30) + + :param first_name: The first_name of this Ptsv2payoutsSenderInformation. + :type: str + """ + if first_name is not None and len(first_name) > 35: + raise ValueError("Invalid value for `first_name`, length must be less than or equal to `35`") + + self._first_name = first_name + + @property + def middle_initial(self): + """ + Gets the middle_initial of this Ptsv2payoutsSenderInformation. + Recipient middle initial (Optional). + + :return: The middle_initial of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._middle_initial + + @middle_initial.setter + def middle_initial(self, middle_initial): + """ + Sets the middle_initial of this Ptsv2payoutsSenderInformation. + Recipient middle initial (Optional). + + :param middle_initial: The middle_initial of this Ptsv2payoutsSenderInformation. + :type: str + """ + if middle_initial is not None and len(middle_initial) > 1: + raise ValueError("Invalid value for `middle_initial`, length must be less than or equal to `1`") + + self._middle_initial = middle_initial + + @property + def last_name(self): + """ + Gets the last_name of this Ptsv2payoutsSenderInformation. + Recipient last name (Optional). * CTV (14) * Paymentech (30) + + :return: The last_name of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this Ptsv2payoutsSenderInformation. + Recipient last name (Optional). * CTV (14) * Paymentech (30) + + :param last_name: The last_name of this Ptsv2payoutsSenderInformation. + :type: str + """ + if last_name is not None and len(last_name) > 35: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `35`") + + self._last_name = last_name + + @property + def name(self): + """ + Gets the name of this Ptsv2payoutsSenderInformation. + Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30) + + :return: The name of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Ptsv2payoutsSenderInformation. + Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30) + + :param name: The name of this Ptsv2payoutsSenderInformation. + :type: str + """ + if name is not None and len(name) > 24: + raise ValueError("Invalid value for `name`, length must be less than or equal to `24`") + + self._name = name + + @property + def address1(self): + """ + Gets the address1 of this Ptsv2payoutsSenderInformation. + Street address of sender. **Funds Disbursement** This value is the address of the originator sending the funds disbursement. + + :return: The address1 of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this Ptsv2payoutsSenderInformation. + Street address of sender. **Funds Disbursement** This value is the address of the originator sending the funds disbursement. + + :param address1: The address1 of this Ptsv2payoutsSenderInformation. + :type: str + """ + if address1 is not None and len(address1) > 50: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `50`") + + self._address1 = address1 + + @property + def locality(self): + """ + Gets the locality of this Ptsv2payoutsSenderInformation. + City of sender. **Funds Disbursement** This value is the city of the originator sending the funds disbursement. + + :return: The locality of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Ptsv2payoutsSenderInformation. + City of sender. **Funds Disbursement** This value is the city of the originator sending the funds disbursement. + + :param locality: The locality of this Ptsv2payoutsSenderInformation. + :type: str + """ + if locality is not None and len(locality) > 25: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `25`") + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Ptsv2payoutsSenderInformation. + Sender’s state. Use the State, Province, and Territory Codes for the United States and Canada. + + :return: The administrative_area of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Ptsv2payoutsSenderInformation. + Sender’s state. Use the State, Province, and Territory Codes for the United States and Canada. + + :param administrative_area: The administrative_area of this Ptsv2payoutsSenderInformation. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 2: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") + + self._administrative_area = administrative_area + + @property + def country_code(self): + """ + Gets the country_code of this Ptsv2payoutsSenderInformation. + Country of sender. Use the ISO Standard Country Codes. * CTV (3) + + :return: The country_code of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._country_code + + @country_code.setter + def country_code(self, country_code): + """ + Sets the country_code of this Ptsv2payoutsSenderInformation. + Country of sender. Use the ISO Standard Country Codes. * CTV (3) + + :param country_code: The country_code of this Ptsv2payoutsSenderInformation. + :type: str + """ + if country_code is not None and len(country_code) > 2: + raise ValueError("Invalid value for `country_code`, length must be less than or equal to `2`") + + self._country_code = country_code + + @property + def postal_code(self): + """ + Gets the postal_code of this Ptsv2payoutsSenderInformation. + Sender’s postal code. Required only for FDCCompass. + + :return: The postal_code of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Ptsv2payoutsSenderInformation. + Sender’s postal code. Required only for FDCCompass. + + :param postal_code: The postal_code of this Ptsv2payoutsSenderInformation. + :type: str + """ + if postal_code is not None and len(postal_code) > 10: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") + + self._postal_code = postal_code + + @property + def phone_number(self): + """ + Gets the phone_number of this Ptsv2payoutsSenderInformation. + Sender’s phone number. Required only for FDCCompass. + + :return: The phone_number of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this Ptsv2payoutsSenderInformation. + Sender’s phone number. Required only for FDCCompass. + + :param phone_number: The phone_number of this Ptsv2payoutsSenderInformation. + :type: str + """ + if phone_number is not None and len(phone_number) > 20: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `20`") + + self._phone_number = phone_number + + @property + def date_of_birth(self): + """ + Gets the date_of_birth of this Ptsv2payoutsSenderInformation. + Sender’s date of birth in YYYYMMDD format. Required only for FDCCompass. + + :return: The date_of_birth of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._date_of_birth + + @date_of_birth.setter + def date_of_birth(self, date_of_birth): + """ + Sets the date_of_birth of this Ptsv2payoutsSenderInformation. + Sender’s date of birth in YYYYMMDD format. Required only for FDCCompass. + + :param date_of_birth: The date_of_birth of this Ptsv2payoutsSenderInformation. + :type: str + """ + if date_of_birth is not None and len(date_of_birth) > 8: + raise ValueError("Invalid value for `date_of_birth`, length must be less than or equal to `8`") + if date_of_birth is not None and len(date_of_birth) < 8: + raise ValueError("Invalid value for `date_of_birth`, length must be greater than or equal to `8`") + + self._date_of_birth = date_of_birth + + @property + def vat_registration_number(self): + """ + Gets the vat_registration_number of this Ptsv2payoutsSenderInformation. + Customer's government-assigned tax identification number. + + :return: The vat_registration_number of this Ptsv2payoutsSenderInformation. + :rtype: str + """ + return self._vat_registration_number + + @vat_registration_number.setter + def vat_registration_number(self, vat_registration_number): + """ + Sets the vat_registration_number of this Ptsv2payoutsSenderInformation. + Customer's government-assigned tax identification number. + + :param vat_registration_number: The vat_registration_number of this Ptsv2payoutsSenderInformation. + :type: str + """ + if vat_registration_number is not None and len(vat_registration_number) > 13: + raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `13`") + + self._vat_registration_number = vat_registration_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsSenderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payouts_sender_information_account.py b/CyberSource/models/ptsv2payouts_sender_information_account.py new file mode 100644 index 00000000..c3c1ff5c --- /dev/null +++ b/CyberSource/models/ptsv2payouts_sender_information_account.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Ptsv2payoutsSenderInformationAccount(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'funds_source': 'str', + 'number': 'str' + } + + attribute_map = { + 'funds_source': 'fundsSource', + 'number': 'number' + } + + def __init__(self, funds_source=None, number=None): + """ + Ptsv2payoutsSenderInformationAccount - a model defined in Swagger + """ + + self._funds_source = None + self._number = None + + if funds_source is not None: + self.funds_source = funds_source + if number is not None: + self.number = number + + @property + def funds_source(self): + """ + Gets the funds_source of this Ptsv2payoutsSenderInformationAccount. + Source of funds. Possible values: Paymentech, CTV, FDC Compass: - 01: Credit card - 02: Debit card - 03: Prepaid card Paymentech, CTV - - 04: Cash - 05: Debit or deposit account that is not linked to a Visa card. Includes checking accounts, savings accounts, and proprietary debit or ATM cards. - 06: Credit account that is not linked to a Visa card. Includes credit cards and proprietary lines of credit. FDCCompass - - 04: Deposit Account **Funds Disbursement** This value is most likely 05 to identify that the originator used a deposit account to fund the disbursement. **Credit Card Bill Payment** This value must be 02, 03, 04, or 05. + + :return: The funds_source of this Ptsv2payoutsSenderInformationAccount. + :rtype: str + """ + return self._funds_source + + @funds_source.setter + def funds_source(self, funds_source): + """ + Sets the funds_source of this Ptsv2payoutsSenderInformationAccount. + Source of funds. Possible values: Paymentech, CTV, FDC Compass: - 01: Credit card - 02: Debit card - 03: Prepaid card Paymentech, CTV - - 04: Cash - 05: Debit or deposit account that is not linked to a Visa card. Includes checking accounts, savings accounts, and proprietary debit or ATM cards. - 06: Credit account that is not linked to a Visa card. Includes credit cards and proprietary lines of credit. FDCCompass - - 04: Deposit Account **Funds Disbursement** This value is most likely 05 to identify that the originator used a deposit account to fund the disbursement. **Credit Card Bill Payment** This value must be 02, 03, 04, or 05. + + :param funds_source: The funds_source of this Ptsv2payoutsSenderInformationAccount. + :type: str + """ + if funds_source is not None and len(funds_source) > 2: + raise ValueError("Invalid value for `funds_source`, length must be less than or equal to `2`") + if funds_source is not None and len(funds_source) < 2: + raise ValueError("Invalid value for `funds_source`, length must be greater than or equal to `2`") + + self._funds_source = funds_source + + @property + def number(self): + """ + Gets the number of this Ptsv2payoutsSenderInformationAccount. + The account number of the entity funding the transaction. It is the sender’s account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16) + + :return: The number of this Ptsv2payoutsSenderInformationAccount. + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """ + Sets the number of this Ptsv2payoutsSenderInformationAccount. + The account number of the entity funding the transaction. It is the sender’s account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16) + + :param number: The number of this Ptsv2payoutsSenderInformationAccount. + :type: str + """ + if number is not None and len(number) > 34: + raise ValueError("Invalid value for `number`, length must be less than or equal to `34`") + + self._number = number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Ptsv2payoutsSenderInformationAccount): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/refund_capture_request.py b/CyberSource/models/refund_capture_request.py index 0f7fe78a..9f3293fd 100644 --- a/CyberSource/models/refund_capture_request.py +++ b/CyberSource/models/refund_capture_request.py @@ -31,16 +31,16 @@ class RefundCaptureRequest(object): and the value is json key in definition. """ swagger_types = { - 'client_reference_information': 'V2paymentsClientReferenceInformation', - 'processing_information': 'V2paymentsidrefundsProcessingInformation', - 'payment_information': 'V2paymentsidrefundsPaymentInformation', - 'order_information': 'V2paymentsidrefundsOrderInformation', - 'buyer_information': 'V2paymentsidcapturesBuyerInformation', - 'device_information': 'V2paymentsDeviceInformation', - 'merchant_information': 'V2paymentsidrefundsMerchantInformation', - 'aggregator_information': 'V2paymentsidcapturesAggregatorInformation', - 'point_of_sale_information': 'V2paymentsidrefundsPointOfSaleInformation', - 'merchant_defined_information': 'list[V2paymentsMerchantDefinedInformation]' + 'client_reference_information': 'Ptsv2paymentsClientReferenceInformation', + 'processing_information': 'Ptsv2paymentsidrefundsProcessingInformation', + 'payment_information': 'Ptsv2paymentsidrefundsPaymentInformation', + 'order_information': 'Ptsv2paymentsidrefundsOrderInformation', + 'buyer_information': 'Ptsv2paymentsidcapturesBuyerInformation', + 'device_information': 'Ptsv2paymentsDeviceInformation', + 'merchant_information': 'Ptsv2paymentsidrefundsMerchantInformation', + 'aggregator_information': 'Ptsv2paymentsidcapturesAggregatorInformation', + 'point_of_sale_information': 'Ptsv2paymentsidrefundsPointOfSaleInformation', + 'merchant_defined_information': 'list[Ptsv2paymentsMerchantDefinedInformation]' } attribute_map = { @@ -99,7 +99,7 @@ def client_reference_information(self): Gets the client_reference_information of this RefundCaptureRequest. :return: The client_reference_information of this RefundCaptureRequest. - :rtype: V2paymentsClientReferenceInformation + :rtype: Ptsv2paymentsClientReferenceInformation """ return self._client_reference_information @@ -109,7 +109,7 @@ def client_reference_information(self, client_reference_information): Sets the client_reference_information of this RefundCaptureRequest. :param client_reference_information: The client_reference_information of this RefundCaptureRequest. - :type: V2paymentsClientReferenceInformation + :type: Ptsv2paymentsClientReferenceInformation """ self._client_reference_information = client_reference_information @@ -120,7 +120,7 @@ def processing_information(self): Gets the processing_information of this RefundCaptureRequest. :return: The processing_information of this RefundCaptureRequest. - :rtype: V2paymentsidrefundsProcessingInformation + :rtype: Ptsv2paymentsidrefundsProcessingInformation """ return self._processing_information @@ -130,7 +130,7 @@ def processing_information(self, processing_information): Sets the processing_information of this RefundCaptureRequest. :param processing_information: The processing_information of this RefundCaptureRequest. - :type: V2paymentsidrefundsProcessingInformation + :type: Ptsv2paymentsidrefundsProcessingInformation """ self._processing_information = processing_information @@ -141,7 +141,7 @@ def payment_information(self): Gets the payment_information of this RefundCaptureRequest. :return: The payment_information of this RefundCaptureRequest. - :rtype: V2paymentsidrefundsPaymentInformation + :rtype: Ptsv2paymentsidrefundsPaymentInformation """ return self._payment_information @@ -151,7 +151,7 @@ def payment_information(self, payment_information): Sets the payment_information of this RefundCaptureRequest. :param payment_information: The payment_information of this RefundCaptureRequest. - :type: V2paymentsidrefundsPaymentInformation + :type: Ptsv2paymentsidrefundsPaymentInformation """ self._payment_information = payment_information @@ -162,7 +162,7 @@ def order_information(self): Gets the order_information of this RefundCaptureRequest. :return: The order_information of this RefundCaptureRequest. - :rtype: V2paymentsidrefundsOrderInformation + :rtype: Ptsv2paymentsidrefundsOrderInformation """ return self._order_information @@ -172,7 +172,7 @@ def order_information(self, order_information): Sets the order_information of this RefundCaptureRequest. :param order_information: The order_information of this RefundCaptureRequest. - :type: V2paymentsidrefundsOrderInformation + :type: Ptsv2paymentsidrefundsOrderInformation """ self._order_information = order_information @@ -183,7 +183,7 @@ def buyer_information(self): Gets the buyer_information of this RefundCaptureRequest. :return: The buyer_information of this RefundCaptureRequest. - :rtype: V2paymentsidcapturesBuyerInformation + :rtype: Ptsv2paymentsidcapturesBuyerInformation """ return self._buyer_information @@ -193,7 +193,7 @@ def buyer_information(self, buyer_information): Sets the buyer_information of this RefundCaptureRequest. :param buyer_information: The buyer_information of this RefundCaptureRequest. - :type: V2paymentsidcapturesBuyerInformation + :type: Ptsv2paymentsidcapturesBuyerInformation """ self._buyer_information = buyer_information @@ -204,7 +204,7 @@ def device_information(self): Gets the device_information of this RefundCaptureRequest. :return: The device_information of this RefundCaptureRequest. - :rtype: V2paymentsDeviceInformation + :rtype: Ptsv2paymentsDeviceInformation """ return self._device_information @@ -214,7 +214,7 @@ def device_information(self, device_information): Sets the device_information of this RefundCaptureRequest. :param device_information: The device_information of this RefundCaptureRequest. - :type: V2paymentsDeviceInformation + :type: Ptsv2paymentsDeviceInformation """ self._device_information = device_information @@ -225,7 +225,7 @@ def merchant_information(self): Gets the merchant_information of this RefundCaptureRequest. :return: The merchant_information of this RefundCaptureRequest. - :rtype: V2paymentsidrefundsMerchantInformation + :rtype: Ptsv2paymentsidrefundsMerchantInformation """ return self._merchant_information @@ -235,7 +235,7 @@ def merchant_information(self, merchant_information): Sets the merchant_information of this RefundCaptureRequest. :param merchant_information: The merchant_information of this RefundCaptureRequest. - :type: V2paymentsidrefundsMerchantInformation + :type: Ptsv2paymentsidrefundsMerchantInformation """ self._merchant_information = merchant_information @@ -246,7 +246,7 @@ def aggregator_information(self): Gets the aggregator_information of this RefundCaptureRequest. :return: The aggregator_information of this RefundCaptureRequest. - :rtype: V2paymentsidcapturesAggregatorInformation + :rtype: Ptsv2paymentsidcapturesAggregatorInformation """ return self._aggregator_information @@ -256,7 +256,7 @@ def aggregator_information(self, aggregator_information): Sets the aggregator_information of this RefundCaptureRequest. :param aggregator_information: The aggregator_information of this RefundCaptureRequest. - :type: V2paymentsidcapturesAggregatorInformation + :type: Ptsv2paymentsidcapturesAggregatorInformation """ self._aggregator_information = aggregator_information @@ -267,7 +267,7 @@ def point_of_sale_information(self): Gets the point_of_sale_information of this RefundCaptureRequest. :return: The point_of_sale_information of this RefundCaptureRequest. - :rtype: V2paymentsidrefundsPointOfSaleInformation + :rtype: Ptsv2paymentsidrefundsPointOfSaleInformation """ return self._point_of_sale_information @@ -277,7 +277,7 @@ def point_of_sale_information(self, point_of_sale_information): Sets the point_of_sale_information of this RefundCaptureRequest. :param point_of_sale_information: The point_of_sale_information of this RefundCaptureRequest. - :type: V2paymentsidrefundsPointOfSaleInformation + :type: Ptsv2paymentsidrefundsPointOfSaleInformation """ self._point_of_sale_information = point_of_sale_information @@ -286,10 +286,10 @@ def point_of_sale_information(self, point_of_sale_information): def merchant_defined_information(self): """ Gets the merchant_defined_information of this RefundCaptureRequest. - TBD + Description of this field is not available. :return: The merchant_defined_information of this RefundCaptureRequest. - :rtype: list[V2paymentsMerchantDefinedInformation] + :rtype: list[Ptsv2paymentsMerchantDefinedInformation] """ return self._merchant_defined_information @@ -297,10 +297,10 @@ def merchant_defined_information(self): def merchant_defined_information(self, merchant_defined_information): """ Sets the merchant_defined_information of this RefundCaptureRequest. - TBD + Description of this field is not available. :param merchant_defined_information: The merchant_defined_information of this RefundCaptureRequest. - :type: list[V2paymentsMerchantDefinedInformation] + :type: list[Ptsv2paymentsMerchantDefinedInformation] """ self._merchant_defined_information = merchant_defined_information diff --git a/CyberSource/models/refund_payment_request.py b/CyberSource/models/refund_payment_request.py index a84287a5..f335c7d5 100644 --- a/CyberSource/models/refund_payment_request.py +++ b/CyberSource/models/refund_payment_request.py @@ -31,16 +31,16 @@ class RefundPaymentRequest(object): and the value is json key in definition. """ swagger_types = { - 'client_reference_information': 'V2paymentsClientReferenceInformation', - 'processing_information': 'V2paymentsidrefundsProcessingInformation', - 'payment_information': 'V2paymentsidrefundsPaymentInformation', - 'order_information': 'V2paymentsidrefundsOrderInformation', - 'buyer_information': 'V2paymentsidcapturesBuyerInformation', - 'device_information': 'V2paymentsDeviceInformation', - 'merchant_information': 'V2paymentsidrefundsMerchantInformation', - 'aggregator_information': 'V2paymentsidcapturesAggregatorInformation', - 'point_of_sale_information': 'V2paymentsidrefundsPointOfSaleInformation', - 'merchant_defined_information': 'list[V2paymentsMerchantDefinedInformation]' + 'client_reference_information': 'Ptsv2paymentsClientReferenceInformation', + 'processing_information': 'Ptsv2paymentsidrefundsProcessingInformation', + 'payment_information': 'Ptsv2paymentsidrefundsPaymentInformation', + 'order_information': 'Ptsv2paymentsidrefundsOrderInformation', + 'buyer_information': 'Ptsv2paymentsidcapturesBuyerInformation', + 'device_information': 'Ptsv2paymentsDeviceInformation', + 'merchant_information': 'Ptsv2paymentsidrefundsMerchantInformation', + 'aggregator_information': 'Ptsv2paymentsidcapturesAggregatorInformation', + 'point_of_sale_information': 'Ptsv2paymentsidrefundsPointOfSaleInformation', + 'merchant_defined_information': 'list[Ptsv2paymentsMerchantDefinedInformation]' } attribute_map = { @@ -99,7 +99,7 @@ def client_reference_information(self): Gets the client_reference_information of this RefundPaymentRequest. :return: The client_reference_information of this RefundPaymentRequest. - :rtype: V2paymentsClientReferenceInformation + :rtype: Ptsv2paymentsClientReferenceInformation """ return self._client_reference_information @@ -109,7 +109,7 @@ def client_reference_information(self, client_reference_information): Sets the client_reference_information of this RefundPaymentRequest. :param client_reference_information: The client_reference_information of this RefundPaymentRequest. - :type: V2paymentsClientReferenceInformation + :type: Ptsv2paymentsClientReferenceInformation """ self._client_reference_information = client_reference_information @@ -120,7 +120,7 @@ def processing_information(self): Gets the processing_information of this RefundPaymentRequest. :return: The processing_information of this RefundPaymentRequest. - :rtype: V2paymentsidrefundsProcessingInformation + :rtype: Ptsv2paymentsidrefundsProcessingInformation """ return self._processing_information @@ -130,7 +130,7 @@ def processing_information(self, processing_information): Sets the processing_information of this RefundPaymentRequest. :param processing_information: The processing_information of this RefundPaymentRequest. - :type: V2paymentsidrefundsProcessingInformation + :type: Ptsv2paymentsidrefundsProcessingInformation """ self._processing_information = processing_information @@ -141,7 +141,7 @@ def payment_information(self): Gets the payment_information of this RefundPaymentRequest. :return: The payment_information of this RefundPaymentRequest. - :rtype: V2paymentsidrefundsPaymentInformation + :rtype: Ptsv2paymentsidrefundsPaymentInformation """ return self._payment_information @@ -151,7 +151,7 @@ def payment_information(self, payment_information): Sets the payment_information of this RefundPaymentRequest. :param payment_information: The payment_information of this RefundPaymentRequest. - :type: V2paymentsidrefundsPaymentInformation + :type: Ptsv2paymentsidrefundsPaymentInformation """ self._payment_information = payment_information @@ -162,7 +162,7 @@ def order_information(self): Gets the order_information of this RefundPaymentRequest. :return: The order_information of this RefundPaymentRequest. - :rtype: V2paymentsidrefundsOrderInformation + :rtype: Ptsv2paymentsidrefundsOrderInformation """ return self._order_information @@ -172,7 +172,7 @@ def order_information(self, order_information): Sets the order_information of this RefundPaymentRequest. :param order_information: The order_information of this RefundPaymentRequest. - :type: V2paymentsidrefundsOrderInformation + :type: Ptsv2paymentsidrefundsOrderInformation """ self._order_information = order_information @@ -183,7 +183,7 @@ def buyer_information(self): Gets the buyer_information of this RefundPaymentRequest. :return: The buyer_information of this RefundPaymentRequest. - :rtype: V2paymentsidcapturesBuyerInformation + :rtype: Ptsv2paymentsidcapturesBuyerInformation """ return self._buyer_information @@ -193,7 +193,7 @@ def buyer_information(self, buyer_information): Sets the buyer_information of this RefundPaymentRequest. :param buyer_information: The buyer_information of this RefundPaymentRequest. - :type: V2paymentsidcapturesBuyerInformation + :type: Ptsv2paymentsidcapturesBuyerInformation """ self._buyer_information = buyer_information @@ -204,7 +204,7 @@ def device_information(self): Gets the device_information of this RefundPaymentRequest. :return: The device_information of this RefundPaymentRequest. - :rtype: V2paymentsDeviceInformation + :rtype: Ptsv2paymentsDeviceInformation """ return self._device_information @@ -214,7 +214,7 @@ def device_information(self, device_information): Sets the device_information of this RefundPaymentRequest. :param device_information: The device_information of this RefundPaymentRequest. - :type: V2paymentsDeviceInformation + :type: Ptsv2paymentsDeviceInformation """ self._device_information = device_information @@ -225,7 +225,7 @@ def merchant_information(self): Gets the merchant_information of this RefundPaymentRequest. :return: The merchant_information of this RefundPaymentRequest. - :rtype: V2paymentsidrefundsMerchantInformation + :rtype: Ptsv2paymentsidrefundsMerchantInformation """ return self._merchant_information @@ -235,7 +235,7 @@ def merchant_information(self, merchant_information): Sets the merchant_information of this RefundPaymentRequest. :param merchant_information: The merchant_information of this RefundPaymentRequest. - :type: V2paymentsidrefundsMerchantInformation + :type: Ptsv2paymentsidrefundsMerchantInformation """ self._merchant_information = merchant_information @@ -246,7 +246,7 @@ def aggregator_information(self): Gets the aggregator_information of this RefundPaymentRequest. :return: The aggregator_information of this RefundPaymentRequest. - :rtype: V2paymentsidcapturesAggregatorInformation + :rtype: Ptsv2paymentsidcapturesAggregatorInformation """ return self._aggregator_information @@ -256,7 +256,7 @@ def aggregator_information(self, aggregator_information): Sets the aggregator_information of this RefundPaymentRequest. :param aggregator_information: The aggregator_information of this RefundPaymentRequest. - :type: V2paymentsidcapturesAggregatorInformation + :type: Ptsv2paymentsidcapturesAggregatorInformation """ self._aggregator_information = aggregator_information @@ -267,7 +267,7 @@ def point_of_sale_information(self): Gets the point_of_sale_information of this RefundPaymentRequest. :return: The point_of_sale_information of this RefundPaymentRequest. - :rtype: V2paymentsidrefundsPointOfSaleInformation + :rtype: Ptsv2paymentsidrefundsPointOfSaleInformation """ return self._point_of_sale_information @@ -277,7 +277,7 @@ def point_of_sale_information(self, point_of_sale_information): Sets the point_of_sale_information of this RefundPaymentRequest. :param point_of_sale_information: The point_of_sale_information of this RefundPaymentRequest. - :type: V2paymentsidrefundsPointOfSaleInformation + :type: Ptsv2paymentsidrefundsPointOfSaleInformation """ self._point_of_sale_information = point_of_sale_information @@ -286,10 +286,10 @@ def point_of_sale_information(self, point_of_sale_information): def merchant_defined_information(self): """ Gets the merchant_defined_information of this RefundPaymentRequest. - TBD + Description of this field is not available. :return: The merchant_defined_information of this RefundPaymentRequest. - :rtype: list[V2paymentsMerchantDefinedInformation] + :rtype: list[Ptsv2paymentsMerchantDefinedInformation] """ return self._merchant_defined_information @@ -297,10 +297,10 @@ def merchant_defined_information(self): def merchant_defined_information(self, merchant_defined_information): """ Sets the merchant_defined_information of this RefundPaymentRequest. - TBD + Description of this field is not available. :param merchant_defined_information: The merchant_defined_information of this RefundPaymentRequest. - :type: list[V2paymentsMerchantDefinedInformation] + :type: list[Ptsv2paymentsMerchantDefinedInformation] """ self._merchant_defined_information = merchant_defined_information diff --git a/CyberSource/models/reporting_v3_notificationof_changes_get200_response.py b/CyberSource/models/reporting_v3_notificationof_changes_get200_response.py new file mode 100644 index 00000000..7dd9e83b --- /dev/null +++ b/CyberSource/models/reporting_v3_notificationof_changes_get200_response.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3NotificationofChangesGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'notification_of_changes': 'list[ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges]' + } + + attribute_map = { + 'notification_of_changes': 'notificationOfChanges' + } + + def __init__(self, notification_of_changes=None): + """ + ReportingV3NotificationofChangesGet200Response - a model defined in Swagger + """ + + self._notification_of_changes = None + + if notification_of_changes is not None: + self.notification_of_changes = notification_of_changes + + @property + def notification_of_changes(self): + """ + Gets the notification_of_changes of this ReportingV3NotificationofChangesGet200Response. + List of Notification Of Change Info values + + :return: The notification_of_changes of this ReportingV3NotificationofChangesGet200Response. + :rtype: list[ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges] + """ + return self._notification_of_changes + + @notification_of_changes.setter + def notification_of_changes(self, notification_of_changes): + """ + Sets the notification_of_changes of this ReportingV3NotificationofChangesGet200Response. + List of Notification Of Change Info values + + :param notification_of_changes: The notification_of_changes of this ReportingV3NotificationofChangesGet200Response. + :type: list[ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges] + """ + + self._notification_of_changes = notification_of_changes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3NotificationofChangesGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_notificationof_changes_get200_response_notification_of_changes.py b/CyberSource/models/reporting_v3_notificationof_changes_get200_response_notification_of_changes.py new file mode 100644 index 00000000..96b697a2 --- /dev/null +++ b/CyberSource/models/reporting_v3_notificationof_changes_get200_response_notification_of_changes.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_reference_number': 'str', + 'transaction_reference_number': 'str', + 'time': 'datetime', + 'code': 'str', + 'account_type': 'str', + 'routing_number': 'str', + 'account_number': 'str', + 'consumer_name': 'str' + } + + attribute_map = { + 'merchant_reference_number': 'merchantReferenceNumber', + 'transaction_reference_number': 'transactionReferenceNumber', + 'time': 'time', + 'code': 'code', + 'account_type': 'accountType', + 'routing_number': 'routingNumber', + 'account_number': 'accountNumber', + 'consumer_name': 'consumerName' + } + + def __init__(self, merchant_reference_number=None, transaction_reference_number=None, time=None, code=None, account_type=None, routing_number=None, account_number=None, consumer_name=None): + """ + ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges - a model defined in Swagger + """ + + self._merchant_reference_number = None + self._transaction_reference_number = None + self._time = None + self._code = None + self._account_type = None + self._routing_number = None + self._account_number = None + self._consumer_name = None + + if merchant_reference_number is not None: + self.merchant_reference_number = merchant_reference_number + if transaction_reference_number is not None: + self.transaction_reference_number = transaction_reference_number + if time is not None: + self.time = time + if code is not None: + self.code = code + if account_type is not None: + self.account_type = account_type + if routing_number is not None: + self.routing_number = routing_number + if account_number is not None: + self.account_number = account_number + if consumer_name is not None: + self.consumer_name = consumer_name + + @property + def merchant_reference_number(self): + """ + Gets the merchant_reference_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Merchant Reference Number + + :return: The merchant_reference_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :rtype: str + """ + return self._merchant_reference_number + + @merchant_reference_number.setter + def merchant_reference_number(self, merchant_reference_number): + """ + Sets the merchant_reference_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Merchant Reference Number + + :param merchant_reference_number: The merchant_reference_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :type: str + """ + + self._merchant_reference_number = merchant_reference_number + + @property + def transaction_reference_number(self): + """ + Gets the transaction_reference_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Transaction Reference Number + + :return: The transaction_reference_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :rtype: str + """ + return self._transaction_reference_number + + @transaction_reference_number.setter + def transaction_reference_number(self, transaction_reference_number): + """ + Sets the transaction_reference_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Transaction Reference Number + + :param transaction_reference_number: The transaction_reference_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :type: str + """ + + self._transaction_reference_number = transaction_reference_number + + @property + def time(self): + """ + Gets the time of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Notification Of Change Date(ISO 8601 Extended) + + :return: The time of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :rtype: datetime + """ + return self._time + + @time.setter + def time(self, time): + """ + Sets the time of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Notification Of Change Date(ISO 8601 Extended) + + :param time: The time of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :type: datetime + """ + + self._time = time + + @property + def code(self): + """ + Gets the code of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Merchant Reference Number + + :return: The code of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Merchant Reference Number + + :param code: The code of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :type: str + """ + + self._code = code + + @property + def account_type(self): + """ + Gets the account_type of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Account Type + + :return: The account_type of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :rtype: str + """ + return self._account_type + + @account_type.setter + def account_type(self, account_type): + """ + Sets the account_type of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Account Type + + :param account_type: The account_type of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :type: str + """ + + self._account_type = account_type + + @property + def routing_number(self): + """ + Gets the routing_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Routing Number + + :return: The routing_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :rtype: str + """ + return self._routing_number + + @routing_number.setter + def routing_number(self, routing_number): + """ + Sets the routing_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Routing Number + + :param routing_number: The routing_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :type: str + """ + + self._routing_number = routing_number + + @property + def account_number(self): + """ + Gets the account_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Account Number + + :return: The account_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :rtype: str + """ + return self._account_number + + @account_number.setter + def account_number(self, account_number): + """ + Sets the account_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Account Number + + :param account_number: The account_number of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :type: str + """ + + self._account_number = account_number + + @property + def consumer_name(self): + """ + Gets the consumer_name of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Consumer Name + + :return: The consumer_name of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :rtype: str + """ + return self._consumer_name + + @consumer_name.setter + def consumer_name(self, consumer_name): + """ + Sets the consumer_name of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + Consumer Name + + :param consumer_name: The consumer_name of this ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges. + :type: str + """ + + self._consumer_name = consumer_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_notificationof_changes_get400_response.py b/CyberSource/models/reporting_v3_notificationof_changes_get400_response.py new file mode 100644 index 00000000..2a97bb8b --- /dev/null +++ b/CyberSource/models/reporting_v3_notificationof_changes_get400_response.py @@ -0,0 +1,267 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3NotificationofChangesGet400Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'message': 'str', + 'localization_key': 'str', + 'correlation_id': 'str', + 'detail': 'str', + 'fields': 'list[ReportingV3NotificationofChangesGet400ResponseFields]' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'localization_key': 'localizationKey', + 'correlation_id': 'correlationId', + 'detail': 'detail', + 'fields': 'fields' + } + + def __init__(self, code=None, message=None, localization_key=None, correlation_id=None, detail=None, fields=None): + """ + ReportingV3NotificationofChangesGet400Response - a model defined in Swagger + """ + + self._code = None + self._message = None + self._localization_key = None + self._correlation_id = None + self._detail = None + self._fields = None + + self.code = code + self.message = message + if localization_key is not None: + self.localization_key = localization_key + if correlation_id is not None: + self.correlation_id = correlation_id + if detail is not None: + self.detail = detail + if fields is not None: + self.fields = fields + + @property + def code(self): + """ + Gets the code of this ReportingV3NotificationofChangesGet400Response. + Error code + + :return: The code of this ReportingV3NotificationofChangesGet400Response. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this ReportingV3NotificationofChangesGet400Response. + Error code + + :param code: The code of this ReportingV3NotificationofChangesGet400Response. + :type: str + """ + if code is None: + raise ValueError("Invalid value for `code`, must not be `None`") + + self._code = code + + @property + def message(self): + """ + Gets the message of this ReportingV3NotificationofChangesGet400Response. + Error message + + :return: The message of this ReportingV3NotificationofChangesGet400Response. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this ReportingV3NotificationofChangesGet400Response. + Error message + + :param message: The message of this ReportingV3NotificationofChangesGet400Response. + :type: str + """ + if message is None: + raise ValueError("Invalid value for `message`, must not be `None`") + + self._message = message + + @property + def localization_key(self): + """ + Gets the localization_key of this ReportingV3NotificationofChangesGet400Response. + Localization Key Name + + :return: The localization_key of this ReportingV3NotificationofChangesGet400Response. + :rtype: str + """ + return self._localization_key + + @localization_key.setter + def localization_key(self, localization_key): + """ + Sets the localization_key of this ReportingV3NotificationofChangesGet400Response. + Localization Key Name + + :param localization_key: The localization_key of this ReportingV3NotificationofChangesGet400Response. + :type: str + """ + + self._localization_key = localization_key + + @property + def correlation_id(self): + """ + Gets the correlation_id of this ReportingV3NotificationofChangesGet400Response. + Correlation Id + + :return: The correlation_id of this ReportingV3NotificationofChangesGet400Response. + :rtype: str + """ + return self._correlation_id + + @correlation_id.setter + def correlation_id(self, correlation_id): + """ + Sets the correlation_id of this ReportingV3NotificationofChangesGet400Response. + Correlation Id + + :param correlation_id: The correlation_id of this ReportingV3NotificationofChangesGet400Response. + :type: str + """ + + self._correlation_id = correlation_id + + @property + def detail(self): + """ + Gets the detail of this ReportingV3NotificationofChangesGet400Response. + Error Detail + + :return: The detail of this ReportingV3NotificationofChangesGet400Response. + :rtype: str + """ + return self._detail + + @detail.setter + def detail(self, detail): + """ + Sets the detail of this ReportingV3NotificationofChangesGet400Response. + Error Detail + + :param detail: The detail of this ReportingV3NotificationofChangesGet400Response. + :type: str + """ + + self._detail = detail + + @property + def fields(self): + """ + Gets the fields of this ReportingV3NotificationofChangesGet400Response. + Error fields List + + :return: The fields of this ReportingV3NotificationofChangesGet400Response. + :rtype: list[ReportingV3NotificationofChangesGet400ResponseFields] + """ + return self._fields + + @fields.setter + def fields(self, fields): + """ + Sets the fields of this ReportingV3NotificationofChangesGet400Response. + Error fields List + + :param fields: The fields of this ReportingV3NotificationofChangesGet400Response. + :type: list[ReportingV3NotificationofChangesGet400ResponseFields] + """ + + self._fields = fields + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3NotificationofChangesGet400Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_notificationof_changes_get400_response_fields.py b/CyberSource/models/reporting_v3_notificationof_changes_get400_response_fields.py new file mode 100644 index 00000000..1c44f889 --- /dev/null +++ b/CyberSource/models/reporting_v3_notificationof_changes_get400_response_fields.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3NotificationofChangesGet400ResponseFields(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'path': 'str', + 'message': 'str', + 'localization_key': 'str' + } + + attribute_map = { + 'path': 'path', + 'message': 'message', + 'localization_key': 'localizationKey' + } + + def __init__(self, path=None, message=None, localization_key=None): + """ + ReportingV3NotificationofChangesGet400ResponseFields - a model defined in Swagger + """ + + self._path = None + self._message = None + self._localization_key = None + + if path is not None: + self.path = path + if message is not None: + self.message = message + if localization_key is not None: + self.localization_key = localization_key + + @property + def path(self): + """ + Gets the path of this ReportingV3NotificationofChangesGet400ResponseFields. + Path of the failed property + + :return: The path of this ReportingV3NotificationofChangesGet400ResponseFields. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this ReportingV3NotificationofChangesGet400ResponseFields. + Path of the failed property + + :param path: The path of this ReportingV3NotificationofChangesGet400ResponseFields. + :type: str + """ + + self._path = path + + @property + def message(self): + """ + Gets the message of this ReportingV3NotificationofChangesGet400ResponseFields. + Error description about validation failed field + + :return: The message of this ReportingV3NotificationofChangesGet400ResponseFields. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this ReportingV3NotificationofChangesGet400ResponseFields. + Error description about validation failed field + + :param message: The message of this ReportingV3NotificationofChangesGet400ResponseFields. + :type: str + """ + + self._message = message + + @property + def localization_key(self): + """ + Gets the localization_key of this ReportingV3NotificationofChangesGet400ResponseFields. + Localized Key Name + + :return: The localization_key of this ReportingV3NotificationofChangesGet400ResponseFields. + :rtype: str + """ + return self._localization_key + + @localization_key.setter + def localization_key(self, localization_key): + """ + Sets the localization_key of this ReportingV3NotificationofChangesGet400ResponseFields. + Localized Key Name + + :param localization_key: The localization_key of this ReportingV3NotificationofChangesGet400ResponseFields. + :type: str + """ + + self._localization_key = localization_key + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3NotificationofChangesGet400ResponseFields): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_report_definitions_get200_response.py b/CyberSource/models/reporting_v3_report_definitions_get200_response.py new file mode 100644 index 00000000..32f8326d --- /dev/null +++ b/CyberSource/models/reporting_v3_report_definitions_get200_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3ReportDefinitionsGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'report_definitions': 'list[ReportingV3ReportDefinitionsGet200ResponseReportDefinitions]' + } + + attribute_map = { + 'report_definitions': 'reportDefinitions' + } + + def __init__(self, report_definitions=None): + """ + ReportingV3ReportDefinitionsGet200Response - a model defined in Swagger + """ + + self._report_definitions = None + + if report_definitions is not None: + self.report_definitions = report_definitions + + @property + def report_definitions(self): + """ + Gets the report_definitions of this ReportingV3ReportDefinitionsGet200Response. + + :return: The report_definitions of this ReportingV3ReportDefinitionsGet200Response. + :rtype: list[ReportingV3ReportDefinitionsGet200ResponseReportDefinitions] + """ + return self._report_definitions + + @report_definitions.setter + def report_definitions(self, report_definitions): + """ + Sets the report_definitions of this ReportingV3ReportDefinitionsGet200Response. + + :param report_definitions: The report_definitions of this ReportingV3ReportDefinitionsGet200Response. + :type: list[ReportingV3ReportDefinitionsGet200ResponseReportDefinitions] + """ + + self._report_definitions = report_definitions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3ReportDefinitionsGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_report_definitions_get200_response_report_definitions.py b/CyberSource/models/reporting_v3_report_definitions_get200_response_report_definitions.py new file mode 100644 index 00000000..cc76157e --- /dev/null +++ b/CyberSource/models/reporting_v3_report_definitions_get200_response_report_definitions.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3ReportDefinitionsGet200ResponseReportDefinitions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'report_definition_id': 'int', + 'report_defintion_name': 'str', + 'supported_formats': 'list[str]', + 'description': 'str' + } + + attribute_map = { + 'type': 'type', + 'report_definition_id': 'reportDefinitionId', + 'report_defintion_name': 'reportDefintionName', + 'supported_formats': 'supportedFormats', + 'description': 'description' + } + + def __init__(self, type=None, report_definition_id=None, report_defintion_name=None, supported_formats=None, description=None): + """ + ReportingV3ReportDefinitionsGet200ResponseReportDefinitions - a model defined in Swagger + """ + + self._type = None + self._report_definition_id = None + self._report_defintion_name = None + self._supported_formats = None + self._description = None + + if type is not None: + self.type = type + if report_definition_id is not None: + self.report_definition_id = report_definition_id + if report_defintion_name is not None: + self.report_defintion_name = report_defintion_name + if supported_formats is not None: + self.supported_formats = supported_formats + if description is not None: + self.description = description + + @property + def type(self): + """ + Gets the type of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + + :return: The type of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + + :param type: The type of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + :type: str + """ + + self._type = type + + @property + def report_definition_id(self): + """ + Gets the report_definition_id of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + + :return: The report_definition_id of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + :rtype: int + """ + return self._report_definition_id + + @report_definition_id.setter + def report_definition_id(self, report_definition_id): + """ + Sets the report_definition_id of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + + :param report_definition_id: The report_definition_id of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + :type: int + """ + + self._report_definition_id = report_definition_id + + @property + def report_defintion_name(self): + """ + Gets the report_defintion_name of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + + :return: The report_defintion_name of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + :rtype: str + """ + return self._report_defintion_name + + @report_defintion_name.setter + def report_defintion_name(self, report_defintion_name): + """ + Sets the report_defintion_name of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + + :param report_defintion_name: The report_defintion_name of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + :type: str + """ + + self._report_defintion_name = report_defintion_name + + @property + def supported_formats(self): + """ + Gets the supported_formats of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + + :return: The supported_formats of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + :rtype: list[str] + """ + return self._supported_formats + + @supported_formats.setter + def supported_formats(self, supported_formats): + """ + Sets the supported_formats of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + + :param supported_formats: The supported_formats of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + :type: list[str] + """ + allowed_values = ["application/xml", "text/csv"] + #if not set(supported_formats).issubset(set(allowed_values)): + #raise ValueError( + #"Invalid values for `supported_formats` [{0}], must be a subset of [{1}]" + #.format(", ".join(map(str, set(supported_formats)-set(allowed_values))), + #", ".join(map(str, allowed_values))) + #) + + self._supported_formats = supported_formats + + @property + def description(self): + """ + Gets the description of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + + :return: The description of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + + :param description: The description of this ReportingV3ReportDefinitionsGet200ResponseReportDefinitions. + :type: str + """ + + self._description = description + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3ReportDefinitionsGet200ResponseReportDefinitions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_report_definitions_name_get200_response.py b/CyberSource/models/reporting_v3_report_definitions_name_get200_response.py new file mode 100644 index 00000000..54a23f36 --- /dev/null +++ b/CyberSource/models/reporting_v3_report_definitions_name_get200_response.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3ReportDefinitionsNameGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'report_definition_id': 'int', + 'report_defintion_name': 'str', + 'attributes': 'list[ReportingV3ReportDefinitionsNameGet200ResponseAttributes]', + 'supported_formats': 'list[str]', + 'description': 'str' + } + + attribute_map = { + 'type': 'type', + 'report_definition_id': 'reportDefinitionId', + 'report_defintion_name': 'reportDefintionName', + 'attributes': 'attributes', + 'supported_formats': 'supportedFormats', + 'description': 'description' + } + + def __init__(self, type=None, report_definition_id=None, report_defintion_name=None, attributes=None, supported_formats=None, description=None): + """ + ReportingV3ReportDefinitionsNameGet200Response - a model defined in Swagger + """ + + self._type = None + self._report_definition_id = None + self._report_defintion_name = None + self._attributes = None + self._supported_formats = None + self._description = None + + if type is not None: + self.type = type + if report_definition_id is not None: + self.report_definition_id = report_definition_id + if report_defintion_name is not None: + self.report_defintion_name = report_defintion_name + if attributes is not None: + self.attributes = attributes + if supported_formats is not None: + self.supported_formats = supported_formats + if description is not None: + self.description = description + + @property + def type(self): + """ + Gets the type of this ReportingV3ReportDefinitionsNameGet200Response. + + :return: The type of this ReportingV3ReportDefinitionsNameGet200Response. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this ReportingV3ReportDefinitionsNameGet200Response. + + :param type: The type of this ReportingV3ReportDefinitionsNameGet200Response. + :type: str + """ + + self._type = type + + @property + def report_definition_id(self): + """ + Gets the report_definition_id of this ReportingV3ReportDefinitionsNameGet200Response. + + :return: The report_definition_id of this ReportingV3ReportDefinitionsNameGet200Response. + :rtype: int + """ + return self._report_definition_id + + @report_definition_id.setter + def report_definition_id(self, report_definition_id): + """ + Sets the report_definition_id of this ReportingV3ReportDefinitionsNameGet200Response. + + :param report_definition_id: The report_definition_id of this ReportingV3ReportDefinitionsNameGet200Response. + :type: int + """ + + self._report_definition_id = report_definition_id + + @property + def report_defintion_name(self): + """ + Gets the report_defintion_name of this ReportingV3ReportDefinitionsNameGet200Response. + + :return: The report_defintion_name of this ReportingV3ReportDefinitionsNameGet200Response. + :rtype: str + """ + return self._report_defintion_name + + @report_defintion_name.setter + def report_defintion_name(self, report_defintion_name): + """ + Sets the report_defintion_name of this ReportingV3ReportDefinitionsNameGet200Response. + + :param report_defintion_name: The report_defintion_name of this ReportingV3ReportDefinitionsNameGet200Response. + :type: str + """ + + self._report_defintion_name = report_defintion_name + + @property + def attributes(self): + """ + Gets the attributes of this ReportingV3ReportDefinitionsNameGet200Response. + + :return: The attributes of this ReportingV3ReportDefinitionsNameGet200Response. + :rtype: list[ReportingV3ReportDefinitionsNameGet200ResponseAttributes] + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """ + Sets the attributes of this ReportingV3ReportDefinitionsNameGet200Response. + + :param attributes: The attributes of this ReportingV3ReportDefinitionsNameGet200Response. + :type: list[ReportingV3ReportDefinitionsNameGet200ResponseAttributes] + """ + + self._attributes = attributes + + @property + def supported_formats(self): + """ + Gets the supported_formats of this ReportingV3ReportDefinitionsNameGet200Response. + + :return: The supported_formats of this ReportingV3ReportDefinitionsNameGet200Response. + :rtype: list[str] + """ + return self._supported_formats + + @supported_formats.setter + def supported_formats(self, supported_formats): + """ + Sets the supported_formats of this ReportingV3ReportDefinitionsNameGet200Response. + + :param supported_formats: The supported_formats of this ReportingV3ReportDefinitionsNameGet200Response. + :type: list[str] + """ + allowed_values = ["application/xml", "text/csv"] + if not set(supported_formats).issubset(set(allowed_values)): + raise ValueError( + "Invalid values for `supported_formats` [{0}], must be a subset of [{1}]" + .format(", ".join(map(str, set(supported_formats)-set(allowed_values))), + ", ".join(map(str, allowed_values))) + ) + + self._supported_formats = supported_formats + + @property + def description(self): + """ + Gets the description of this ReportingV3ReportDefinitionsNameGet200Response. + + :return: The description of this ReportingV3ReportDefinitionsNameGet200Response. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this ReportingV3ReportDefinitionsNameGet200Response. + + :param description: The description of this ReportingV3ReportDefinitionsNameGet200Response. + :type: str + """ + + self._description = description + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3ReportDefinitionsNameGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_report_definitions_name_get200_response_attributes.py b/CyberSource/models/reporting_v3_report_definitions_name_get200_response_attributes.py new file mode 100644 index 00000000..b37339b6 --- /dev/null +++ b/CyberSource/models/reporting_v3_report_definitions_name_get200_response_attributes.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3ReportDefinitionsNameGet200ResponseAttributes(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'filter_type': 'str', + 'default': 'bool', + 'required': 'bool', + 'supported_type': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'filter_type': 'filterType', + 'default': 'default', + 'required': 'required', + 'supported_type': 'supportedType' + } + + def __init__(self, id=None, name=None, description=None, filter_type=None, default=None, required=None, supported_type=None): + """ + ReportingV3ReportDefinitionsNameGet200ResponseAttributes - a model defined in Swagger + """ + + self._id = None + self._name = None + self._description = None + self._filter_type = None + self._default = None + self._required = None + self._supported_type = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if filter_type is not None: + self.filter_type = filter_type + if default is not None: + self.default = default + if required is not None: + self.required = required + if supported_type is not None: + self.supported_type = supported_type + + @property + def id(self): + """ + Gets the id of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :return: The id of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :param id: The id of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :type: str + """ + + self._id = id + + @property + def name(self): + """ + Gets the name of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :return: The name of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :param name: The name of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :type: str + """ + + self._name = name + + @property + def description(self): + """ + Gets the description of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :return: The description of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :param description: The description of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :type: str + """ + + self._description = description + + @property + def filter_type(self): + """ + Gets the filter_type of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :return: The filter_type of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """ + Sets the filter_type of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :param filter_type: The filter_type of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :type: str + """ + + self._filter_type = filter_type + + @property + def default(self): + """ + Gets the default of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :return: The default of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :rtype: bool + """ + return self._default + + @default.setter + def default(self, default): + """ + Sets the default of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :param default: The default of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :type: bool + """ + + self._default = default + + @property + def required(self): + """ + Gets the required of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :return: The required of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """ + Sets the required of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :param required: The required of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :type: bool + """ + + self._required = required + + @property + def supported_type(self): + """ + Gets the supported_type of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :return: The supported_type of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :rtype: str + """ + return self._supported_type + + @supported_type.setter + def supported_type(self, supported_type): + """ + Sets the supported_type of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + + :param supported_type: The supported_type of this ReportingV3ReportDefinitionsNameGet200ResponseAttributes. + :type: str + """ + + self._supported_type = supported_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3ReportDefinitionsNameGet200ResponseAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_report_subscriptions_get200_response.py b/CyberSource/models/reporting_v3_report_subscriptions_get200_response.py new file mode 100644 index 00000000..835f727e --- /dev/null +++ b/CyberSource/models/reporting_v3_report_subscriptions_get200_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3ReportSubscriptionsGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'subscriptions': 'list[ReportingV3ReportSubscriptionsGet200ResponseSubscriptions]' + } + + attribute_map = { + 'subscriptions': 'subscriptions' + } + + def __init__(self, subscriptions=None): + """ + ReportingV3ReportSubscriptionsGet200Response - a model defined in Swagger + """ + + self._subscriptions = None + + if subscriptions is not None: + self.subscriptions = subscriptions + + @property + def subscriptions(self): + """ + Gets the subscriptions of this ReportingV3ReportSubscriptionsGet200Response. + + :return: The subscriptions of this ReportingV3ReportSubscriptionsGet200Response. + :rtype: list[ReportingV3ReportSubscriptionsGet200ResponseSubscriptions] + """ + return self._subscriptions + + @subscriptions.setter + def subscriptions(self, subscriptions): + """ + Sets the subscriptions of this ReportingV3ReportSubscriptionsGet200Response. + + :param subscriptions: The subscriptions of this ReportingV3ReportSubscriptionsGet200Response. + :type: list[ReportingV3ReportSubscriptionsGet200ResponseSubscriptions] + """ + + self._subscriptions = subscriptions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3ReportSubscriptionsGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_report_subscriptions_get200_response_report_preferences.py b/CyberSource/models/reporting_v3_report_subscriptions_get200_response_report_preferences.py new file mode 100644 index 00000000..06ac7c8e --- /dev/null +++ b/CyberSource/models/reporting_v3_report_subscriptions_get200_response_report_preferences.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3ReportSubscriptionsGet200ResponseReportPreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'signed_amounts': 'bool', + 'field_name_convention': 'str' + } + + attribute_map = { + 'signed_amounts': 'signedAmounts', + 'field_name_convention': 'fieldNameConvention' + } + + def __init__(self, signed_amounts=None, field_name_convention=None): + """ + ReportingV3ReportSubscriptionsGet200ResponseReportPreferences - a model defined in Swagger + """ + + self._signed_amounts = None + self._field_name_convention = None + + if signed_amounts is not None: + self.signed_amounts = signed_amounts + if field_name_convention is not None: + self.field_name_convention = field_name_convention + + @property + def signed_amounts(self): + """ + Gets the signed_amounts of this ReportingV3ReportSubscriptionsGet200ResponseReportPreferences. + Indicator to determine whether negative sign infron of amount for all refunded transaction + + :return: The signed_amounts of this ReportingV3ReportSubscriptionsGet200ResponseReportPreferences. + :rtype: bool + """ + return self._signed_amounts + + @signed_amounts.setter + def signed_amounts(self, signed_amounts): + """ + Sets the signed_amounts of this ReportingV3ReportSubscriptionsGet200ResponseReportPreferences. + Indicator to determine whether negative sign infron of amount for all refunded transaction + + :param signed_amounts: The signed_amounts of this ReportingV3ReportSubscriptionsGet200ResponseReportPreferences. + :type: bool + """ + + self._signed_amounts = signed_amounts + + @property + def field_name_convention(self): + """ + Gets the field_name_convention of this ReportingV3ReportSubscriptionsGet200ResponseReportPreferences. + Specify the field naming convention to be followed in reports (applicable to only csv report formats + + :return: The field_name_convention of this ReportingV3ReportSubscriptionsGet200ResponseReportPreferences. + :rtype: str + """ + return self._field_name_convention + + @field_name_convention.setter + def field_name_convention(self, field_name_convention): + """ + Sets the field_name_convention of this ReportingV3ReportSubscriptionsGet200ResponseReportPreferences. + Specify the field naming convention to be followed in reports (applicable to only csv report formats + + :param field_name_convention: The field_name_convention of this ReportingV3ReportSubscriptionsGet200ResponseReportPreferences. + :type: str + """ + allowed_values = ["SOAPI", "SCMP"] + if field_name_convention not in allowed_values: + raise ValueError( + "Invalid value for `field_name_convention` ({0}), must be one of {1}" + .format(field_name_convention, allowed_values) + ) + + self._field_name_convention = field_name_convention + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3ReportSubscriptionsGet200ResponseReportPreferences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_report_subscriptions_get200_response_subscriptions.py b/CyberSource/models/reporting_v3_report_subscriptions_get200_response_subscriptions.py new file mode 100644 index 00000000..c05c0625 --- /dev/null +++ b/CyberSource/models/reporting_v3_report_subscriptions_get200_response_subscriptions.py @@ -0,0 +1,471 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3ReportSubscriptionsGet200ResponseSubscriptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'organization_id': 'str', + 'report_definition_id': 'str', + 'report_definition_name': 'str', + 'report_mime_type': 'str', + 'report_frequency': 'str', + 'report_name': 'str', + 'timezone': 'str', + 'start_time': 'datetime', + 'start_day': 'int', + 'report_fields': 'list[str]', + 'report_filters': 'list[str]', + 'report_preferences': 'ReportingV3ReportSubscriptionsGet200ResponseReportPreferences', + 'selected_merchant_group_name': 'str' + } + + attribute_map = { + 'organization_id': 'organizationId', + 'report_definition_id': 'reportDefinitionId', + 'report_definition_name': 'reportDefinitionName', + 'report_mime_type': 'reportMimeType', + 'report_frequency': 'reportFrequency', + 'report_name': 'reportName', + 'timezone': 'timezone', + 'start_time': 'startTime', + 'start_day': 'startDay', + 'report_fields': 'reportFields', + 'report_filters': 'reportFilters', + 'report_preferences': 'reportPreferences', + 'selected_merchant_group_name': 'selectedMerchantGroupName' + } + + def __init__(self, organization_id=None, report_definition_id=None, report_definition_name=None, report_mime_type=None, report_frequency=None, report_name=None, timezone=None, start_time=None, start_day=None, report_fields=None, report_filters=None, report_preferences=None, selected_merchant_group_name=None): + """ + ReportingV3ReportSubscriptionsGet200ResponseSubscriptions - a model defined in Swagger + """ + + self._organization_id = None + self._report_definition_id = None + self._report_definition_name = None + self._report_mime_type = None + self._report_frequency = None + self._report_name = None + self._timezone = None + self._start_time = None + self._start_day = None + self._report_fields = None + self._report_filters = None + self._report_preferences = None + self._selected_merchant_group_name = None + + if organization_id is not None: + self.organization_id = organization_id + if report_definition_id is not None: + self.report_definition_id = report_definition_id + if report_definition_name is not None: + self.report_definition_name = report_definition_name + if report_mime_type is not None: + self.report_mime_type = report_mime_type + if report_frequency is not None: + self.report_frequency = report_frequency + if report_name is not None: + self.report_name = report_name + if timezone is not None: + self.timezone = timezone + if start_time is not None: + self.start_time = start_time + if start_day is not None: + self.start_day = start_day + if report_fields is not None: + self.report_fields = report_fields + if report_filters is not None: + self.report_filters = report_filters + if report_preferences is not None: + self.report_preferences = report_preferences + if selected_merchant_group_name is not None: + self.selected_merchant_group_name = selected_merchant_group_name + + @property + def organization_id(self): + """ + Gets the organization_id of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Organization Id + + :return: The organization_id of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: str + """ + return self._organization_id + + @organization_id.setter + def organization_id(self, organization_id): + """ + Sets the organization_id of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Organization Id + + :param organization_id: The organization_id of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: str + """ + + self._organization_id = organization_id + + @property + def report_definition_id(self): + """ + Gets the report_definition_id of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Report Definition Id + + :return: The report_definition_id of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: str + """ + return self._report_definition_id + + @report_definition_id.setter + def report_definition_id(self, report_definition_id): + """ + Sets the report_definition_id of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Report Definition Id + + :param report_definition_id: The report_definition_id of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: str + """ + + self._report_definition_id = report_definition_id + + @property + def report_definition_name(self): + """ + Gets the report_definition_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Report Definition + + :return: The report_definition_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: str + """ + return self._report_definition_name + + @report_definition_name.setter + def report_definition_name(self, report_definition_name): + """ + Sets the report_definition_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Report Definition + + :param report_definition_name: The report_definition_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: str + """ + + self._report_definition_name = report_definition_name + + @property + def report_mime_type(self): + """ + Gets the report_mime_type of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Report Format + + :return: The report_mime_type of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: str + """ + return self._report_mime_type + + @report_mime_type.setter + def report_mime_type(self, report_mime_type): + """ + Sets the report_mime_type of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Report Format + + :param report_mime_type: The report_mime_type of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: str + """ + allowed_values = ["application/xml", "text/csv"] + if report_mime_type not in allowed_values: + raise ValueError( + "Invalid value for `report_mime_type` ({0}), must be one of {1}" + .format(report_mime_type, allowed_values) + ) + + self._report_mime_type = report_mime_type + + @property + def report_frequency(self): + """ + Gets the report_frequency of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Report Frequency + + :return: The report_frequency of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: str + """ + return self._report_frequency + + @report_frequency.setter + def report_frequency(self, report_frequency): + """ + Sets the report_frequency of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Report Frequency + + :param report_frequency: The report_frequency of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: str + """ + allowed_values = ["DAILY", "WEEKLY", "MONTHLY"] + if report_frequency not in allowed_values: + raise ValueError( + "Invalid value for `report_frequency` ({0}), must be one of {1}" + .format(report_frequency, allowed_values) + ) + + self._report_frequency = report_frequency + + @property + def report_name(self): + """ + Gets the report_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Report Name + + :return: The report_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: str + """ + return self._report_name + + @report_name.setter + def report_name(self, report_name): + """ + Sets the report_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Report Name + + :param report_name: The report_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: str + """ + + self._report_name = report_name + + @property + def timezone(self): + """ + Gets the timezone of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Time Zone + + :return: The timezone of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Time Zone + + :param timezone: The timezone of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: str + """ + + self._timezone = timezone + + @property + def start_time(self): + """ + Gets the start_time of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Start Time + + :return: The start_time of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Start Time + + :param start_time: The start_time of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: datetime + """ + + self._start_time = start_time + + @property + def start_day(self): + """ + Gets the start_day of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Start Day + + :return: The start_day of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: int + """ + return self._start_day + + @start_day.setter + def start_day(self, start_day): + """ + Sets the start_day of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Start Day + + :param start_day: The start_day of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: int + """ + + self._start_day = start_day + + @property + def report_fields(self): + """ + Gets the report_fields of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + List of all fields String values + + :return: The report_fields of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: list[str] + """ + return self._report_fields + + @report_fields.setter + def report_fields(self, report_fields): + """ + Sets the report_fields of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + List of all fields String values + + :param report_fields: The report_fields of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: list[str] + """ + + self._report_fields = report_fields + + @property + def report_filters(self): + """ + Gets the report_filters of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + List of filters to apply + + :return: The report_filters of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: list[str] + """ + return self._report_filters + + @report_filters.setter + def report_filters(self, report_filters): + """ + Sets the report_filters of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + List of filters to apply + + :param report_filters: The report_filters of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: list[str] + """ + + self._report_filters = report_filters + + @property + def report_preferences(self): + """ + Gets the report_preferences of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + + :return: The report_preferences of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + """ + return self._report_preferences + + @report_preferences.setter + def report_preferences(self, report_preferences): + """ + Sets the report_preferences of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + + :param report_preferences: The report_preferences of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + """ + + self._report_preferences = report_preferences + + @property + def selected_merchant_group_name(self): + """ + Gets the selected_merchant_group_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Selected name of the group. + + :return: The selected_merchant_group_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :rtype: str + """ + return self._selected_merchant_group_name + + @selected_merchant_group_name.setter + def selected_merchant_group_name(self, selected_merchant_group_name): + """ + Sets the selected_merchant_group_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + Selected name of the group. + + :param selected_merchant_group_name: The selected_merchant_group_name of this ReportingV3ReportSubscriptionsGet200ResponseSubscriptions. + :type: str + """ + + self._selected_merchant_group_name = selected_merchant_group_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3ReportSubscriptionsGet200ResponseSubscriptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_reports_get200_response.py b/CyberSource/models/reporting_v3_reports_get200_response.py new file mode 100644 index 00000000..e6185b23 --- /dev/null +++ b/CyberSource/models/reporting_v3_reports_get200_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3ReportsGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reports': 'list[ReportingV3ReportsGet200ResponseReports]' + } + + attribute_map = { + 'reports': 'reports' + } + + def __init__(self, reports=None): + """ + ReportingV3ReportsGet200Response - a model defined in Swagger + """ + + self._reports = None + + if reports is not None: + self.reports = reports + + @property + def reports(self): + """ + Gets the reports of this ReportingV3ReportsGet200Response. + + :return: The reports of this ReportingV3ReportsGet200Response. + :rtype: list[ReportingV3ReportsGet200ResponseReports] + """ + return self._reports + + @reports.setter + def reports(self, reports): + """ + Sets the reports of this ReportingV3ReportsGet200Response. + + :param reports: The reports of this ReportingV3ReportsGet200Response. + :type: list[ReportingV3ReportsGet200ResponseReports] + """ + + self._reports = reports + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3ReportsGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_reports_get200_response_reports.py b/CyberSource/models/reporting_v3_reports_get200_response_reports.py new file mode 100644 index 00000000..a333b08e --- /dev/null +++ b/CyberSource/models/reporting_v3_reports_get200_response_reports.py @@ -0,0 +1,507 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3ReportsGet200ResponseReports(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'report_definition_id': 'str', + 'report_name': 'str', + 'report_mime_type': 'str', + 'report_frequency': 'str', + 'status': 'str', + 'report_start_time': 'datetime', + 'report_end_time': 'datetime', + 'timezone': 'str', + 'report_id': 'str', + 'organization_id': 'str', + 'queued_time': 'datetime', + 'report_generating_time': 'datetime', + 'report_completed_time': 'datetime', + 'selected_merchant_group_name': 'str' + } + + attribute_map = { + 'report_definition_id': 'reportDefinitionId', + 'report_name': 'reportName', + 'report_mime_type': 'reportMimeType', + 'report_frequency': 'reportFrequency', + 'status': 'status', + 'report_start_time': 'reportStartTime', + 'report_end_time': 'reportEndTime', + 'timezone': 'timezone', + 'report_id': 'reportId', + 'organization_id': 'organizationId', + 'queued_time': 'queuedTime', + 'report_generating_time': 'reportGeneratingTime', + 'report_completed_time': 'reportCompletedTime', + 'selected_merchant_group_name': 'selectedMerchantGroupName' + } + + def __init__(self, report_definition_id=None, report_name=None, report_mime_type=None, report_frequency=None, status=None, report_start_time=None, report_end_time=None, timezone=None, report_id=None, organization_id=None, queued_time=None, report_generating_time=None, report_completed_time=None, selected_merchant_group_name=None): + """ + ReportingV3ReportsGet200ResponseReports - a model defined in Swagger + """ + + self._report_definition_id = None + self._report_name = None + self._report_mime_type = None + self._report_frequency = None + self._status = None + self._report_start_time = None + self._report_end_time = None + self._timezone = None + self._report_id = None + self._organization_id = None + self._queued_time = None + self._report_generating_time = None + self._report_completed_time = None + self._selected_merchant_group_name = None + + if report_definition_id is not None: + self.report_definition_id = report_definition_id + if report_name is not None: + self.report_name = report_name + if report_mime_type is not None: + self.report_mime_type = report_mime_type + if report_frequency is not None: + self.report_frequency = report_frequency + if status is not None: + self.status = status + if report_start_time is not None: + self.report_start_time = report_start_time + if report_end_time is not None: + self.report_end_time = report_end_time + if timezone is not None: + self.timezone = timezone + if report_id is not None: + self.report_id = report_id + if organization_id is not None: + self.organization_id = organization_id + if queued_time is not None: + self.queued_time = queued_time + if report_generating_time is not None: + self.report_generating_time = report_generating_time + if report_completed_time is not None: + self.report_completed_time = report_completed_time + if selected_merchant_group_name is not None: + self.selected_merchant_group_name = selected_merchant_group_name + + @property + def report_definition_id(self): + """ + Gets the report_definition_id of this ReportingV3ReportsGet200ResponseReports. + Unique Report Identifier of each report type + + :return: The report_definition_id of this ReportingV3ReportsGet200ResponseReports. + :rtype: str + """ + return self._report_definition_id + + @report_definition_id.setter + def report_definition_id(self, report_definition_id): + """ + Sets the report_definition_id of this ReportingV3ReportsGet200ResponseReports. + Unique Report Identifier of each report type + + :param report_definition_id: The report_definition_id of this ReportingV3ReportsGet200ResponseReports. + :type: str + """ + + self._report_definition_id = report_definition_id + + @property + def report_name(self): + """ + Gets the report_name of this ReportingV3ReportsGet200ResponseReports. + Name of the report specified by merchant while creating the report + + :return: The report_name of this ReportingV3ReportsGet200ResponseReports. + :rtype: str + """ + return self._report_name + + @report_name.setter + def report_name(self, report_name): + """ + Sets the report_name of this ReportingV3ReportsGet200ResponseReports. + Name of the report specified by merchant while creating the report + + :param report_name: The report_name of this ReportingV3ReportsGet200ResponseReports. + :type: str + """ + + self._report_name = report_name + + @property + def report_mime_type(self): + """ + Gets the report_mime_type of this ReportingV3ReportsGet200ResponseReports. + Format of the report to get generated + + :return: The report_mime_type of this ReportingV3ReportsGet200ResponseReports. + :rtype: str + """ + return self._report_mime_type + + @report_mime_type.setter + def report_mime_type(self, report_mime_type): + """ + Sets the report_mime_type of this ReportingV3ReportsGet200ResponseReports. + Format of the report to get generated + + :param report_mime_type: The report_mime_type of this ReportingV3ReportsGet200ResponseReports. + :type: str + """ + allowed_values = ["application/xml", "text/csv"] + if report_mime_type not in allowed_values: + raise ValueError( + "Invalid value for `report_mime_type` ({0}), must be one of {1}" + .format(report_mime_type, allowed_values) + ) + + self._report_mime_type = report_mime_type + + @property + def report_frequency(self): + """ + Gets the report_frequency of this ReportingV3ReportsGet200ResponseReports. + Frequency of the report to get generated + + :return: The report_frequency of this ReportingV3ReportsGet200ResponseReports. + :rtype: str + """ + return self._report_frequency + + @report_frequency.setter + def report_frequency(self, report_frequency): + """ + Sets the report_frequency of this ReportingV3ReportsGet200ResponseReports. + Frequency of the report to get generated + + :param report_frequency: The report_frequency of this ReportingV3ReportsGet200ResponseReports. + :type: str + """ + allowed_values = ["DAILY", "WEEKLY", "MONTHLY", "ADHOC"] + if report_frequency not in allowed_values: + raise ValueError( + "Invalid value for `report_frequency` ({0}), must be one of {1}" + .format(report_frequency, allowed_values) + ) + + self._report_frequency = report_frequency + + @property + def status(self): + """ + Gets the status of this ReportingV3ReportsGet200ResponseReports. + Status of the report + + :return: The status of this ReportingV3ReportsGet200ResponseReports. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ReportingV3ReportsGet200ResponseReports. + Status of the report + + :param status: The status of this ReportingV3ReportsGet200ResponseReports. + :type: str + """ + allowed_values = ["COMPLETED", "PENDING", "QUEUED", "RUNNING", "ERROR", "NO_DATA"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def report_start_time(self): + """ + Gets the report_start_time of this ReportingV3ReportsGet200ResponseReports. + Specifies the report start time in ISO 8601 format + + :return: The report_start_time of this ReportingV3ReportsGet200ResponseReports. + :rtype: datetime + """ + return self._report_start_time + + @report_start_time.setter + def report_start_time(self, report_start_time): + """ + Sets the report_start_time of this ReportingV3ReportsGet200ResponseReports. + Specifies the report start time in ISO 8601 format + + :param report_start_time: The report_start_time of this ReportingV3ReportsGet200ResponseReports. + :type: datetime + """ + + self._report_start_time = report_start_time + + @property + def report_end_time(self): + """ + Gets the report_end_time of this ReportingV3ReportsGet200ResponseReports. + Specifies the report end time in ISO 8601 format + + :return: The report_end_time of this ReportingV3ReportsGet200ResponseReports. + :rtype: datetime + """ + return self._report_end_time + + @report_end_time.setter + def report_end_time(self, report_end_time): + """ + Sets the report_end_time of this ReportingV3ReportsGet200ResponseReports. + Specifies the report end time in ISO 8601 format + + :param report_end_time: The report_end_time of this ReportingV3ReportsGet200ResponseReports. + :type: datetime + """ + + self._report_end_time = report_end_time + + @property + def timezone(self): + """ + Gets the timezone of this ReportingV3ReportsGet200ResponseReports. + Time Zone + + :return: The timezone of this ReportingV3ReportsGet200ResponseReports. + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this ReportingV3ReportsGet200ResponseReports. + Time Zone + + :param timezone: The timezone of this ReportingV3ReportsGet200ResponseReports. + :type: str + """ + + self._timezone = timezone + + @property + def report_id(self): + """ + Gets the report_id of this ReportingV3ReportsGet200ResponseReports. + Unique identifier generated for every reports + + :return: The report_id of this ReportingV3ReportsGet200ResponseReports. + :rtype: str + """ + return self._report_id + + @report_id.setter + def report_id(self, report_id): + """ + Sets the report_id of this ReportingV3ReportsGet200ResponseReports. + Unique identifier generated for every reports + + :param report_id: The report_id of this ReportingV3ReportsGet200ResponseReports. + :type: str + """ + + self._report_id = report_id + + @property + def organization_id(self): + """ + Gets the organization_id of this ReportingV3ReportsGet200ResponseReports. + CyberSource Merchant Id + + :return: The organization_id of this ReportingV3ReportsGet200ResponseReports. + :rtype: str + """ + return self._organization_id + + @organization_id.setter + def organization_id(self, organization_id): + """ + Sets the organization_id of this ReportingV3ReportsGet200ResponseReports. + CyberSource Merchant Id + + :param organization_id: The organization_id of this ReportingV3ReportsGet200ResponseReports. + :type: str + """ + + self._organization_id = organization_id + + @property + def queued_time(self): + """ + Gets the queued_time of this ReportingV3ReportsGet200ResponseReports. + Specifies the time of the report in queued in ISO 8601 format + + :return: The queued_time of this ReportingV3ReportsGet200ResponseReports. + :rtype: datetime + """ + return self._queued_time + + @queued_time.setter + def queued_time(self, queued_time): + """ + Sets the queued_time of this ReportingV3ReportsGet200ResponseReports. + Specifies the time of the report in queued in ISO 8601 format + + :param queued_time: The queued_time of this ReportingV3ReportsGet200ResponseReports. + :type: datetime + """ + + self._queued_time = queued_time + + @property + def report_generating_time(self): + """ + Gets the report_generating_time of this ReportingV3ReportsGet200ResponseReports. + Specifies the time of the report started to generate in ISO 8601 format + + :return: The report_generating_time of this ReportingV3ReportsGet200ResponseReports. + :rtype: datetime + """ + return self._report_generating_time + + @report_generating_time.setter + def report_generating_time(self, report_generating_time): + """ + Sets the report_generating_time of this ReportingV3ReportsGet200ResponseReports. + Specifies the time of the report started to generate in ISO 8601 format + + :param report_generating_time: The report_generating_time of this ReportingV3ReportsGet200ResponseReports. + :type: datetime + """ + + self._report_generating_time = report_generating_time + + @property + def report_completed_time(self): + """ + Gets the report_completed_time of this ReportingV3ReportsGet200ResponseReports. + Specifies the time of the report completed the generation in ISO 8601 format + + :return: The report_completed_time of this ReportingV3ReportsGet200ResponseReports. + :rtype: datetime + """ + return self._report_completed_time + + @report_completed_time.setter + def report_completed_time(self, report_completed_time): + """ + Sets the report_completed_time of this ReportingV3ReportsGet200ResponseReports. + Specifies the time of the report completed the generation in ISO 8601 format + + :param report_completed_time: The report_completed_time of this ReportingV3ReportsGet200ResponseReports. + :type: datetime + """ + + self._report_completed_time = report_completed_time + + @property + def selected_merchant_group_name(self): + """ + Gets the selected_merchant_group_name of this ReportingV3ReportsGet200ResponseReports. + Selected name of the group + + :return: The selected_merchant_group_name of this ReportingV3ReportsGet200ResponseReports. + :rtype: str + """ + return self._selected_merchant_group_name + + @selected_merchant_group_name.setter + def selected_merchant_group_name(self, selected_merchant_group_name): + """ + Sets the selected_merchant_group_name of this ReportingV3ReportsGet200ResponseReports. + Selected name of the group + + :param selected_merchant_group_name: The selected_merchant_group_name of this ReportingV3ReportsGet200ResponseReports. + :type: str + """ + + self._selected_merchant_group_name = selected_merchant_group_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3ReportsGet200ResponseReports): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/reporting_v3_reports_id_get200_response.py b/CyberSource/models/reporting_v3_reports_id_get200_response.py new file mode 100644 index 00000000..4859151e --- /dev/null +++ b/CyberSource/models/reporting_v3_reports_id_get200_response.py @@ -0,0 +1,505 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ReportingV3ReportsIdGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'organization_id': 'str', + 'report_id': 'str', + 'report_definition_id': 'str', + 'report_name': 'str', + 'report_mime_type': 'str', + 'report_frequency': 'str', + 'report_fields': 'list[str]', + 'report_status': 'str', + 'report_start_time': 'datetime', + 'report_end_time': 'datetime', + 'timezone': 'str', + 'report_filters': 'dict(str, list[str])', + 'report_preferences': 'ReportingV3ReportSubscriptionsGet200ResponseReportPreferences', + 'selected_merchant_group_name': 'str' + } + + attribute_map = { + 'organization_id': 'organizationId', + 'report_id': 'reportId', + 'report_definition_id': 'reportDefinitionId', + 'report_name': 'reportName', + 'report_mime_type': 'reportMimeType', + 'report_frequency': 'reportFrequency', + 'report_fields': 'reportFields', + 'report_status': 'reportStatus', + 'report_start_time': 'reportStartTime', + 'report_end_time': 'reportEndTime', + 'timezone': 'timezone', + 'report_filters': 'reportFilters', + 'report_preferences': 'reportPreferences', + 'selected_merchant_group_name': 'selectedMerchantGroupName' + } + + def __init__(self, organization_id=None, report_id=None, report_definition_id=None, report_name=None, report_mime_type=None, report_frequency=None, report_fields=None, report_status=None, report_start_time=None, report_end_time=None, timezone=None, report_filters=None, report_preferences=None, selected_merchant_group_name=None): + """ + ReportingV3ReportsIdGet200Response - a model defined in Swagger + """ + + self._organization_id = None + self._report_id = None + self._report_definition_id = None + self._report_name = None + self._report_mime_type = None + self._report_frequency = None + self._report_fields = None + self._report_status = None + self._report_start_time = None + self._report_end_time = None + self._timezone = None + self._report_filters = None + self._report_preferences = None + self._selected_merchant_group_name = None + + if organization_id is not None: + self.organization_id = organization_id + if report_id is not None: + self.report_id = report_id + if report_definition_id is not None: + self.report_definition_id = report_definition_id + if report_name is not None: + self.report_name = report_name + if report_mime_type is not None: + self.report_mime_type = report_mime_type + if report_frequency is not None: + self.report_frequency = report_frequency + if report_fields is not None: + self.report_fields = report_fields + if report_status is not None: + self.report_status = report_status + if report_start_time is not None: + self.report_start_time = report_start_time + if report_end_time is not None: + self.report_end_time = report_end_time + if timezone is not None: + self.timezone = timezone + if report_filters is not None: + self.report_filters = report_filters + if report_preferences is not None: + self.report_preferences = report_preferences + if selected_merchant_group_name is not None: + self.selected_merchant_group_name = selected_merchant_group_name + + @property + def organization_id(self): + """ + Gets the organization_id of this ReportingV3ReportsIdGet200Response. + CyberSource merchant id + + :return: The organization_id of this ReportingV3ReportsIdGet200Response. + :rtype: str + """ + return self._organization_id + + @organization_id.setter + def organization_id(self, organization_id): + """ + Sets the organization_id of this ReportingV3ReportsIdGet200Response. + CyberSource merchant id + + :param organization_id: The organization_id of this ReportingV3ReportsIdGet200Response. + :type: str + """ + + self._organization_id = organization_id + + @property + def report_id(self): + """ + Gets the report_id of this ReportingV3ReportsIdGet200Response. + Report ID Value + + :return: The report_id of this ReportingV3ReportsIdGet200Response. + :rtype: str + """ + return self._report_id + + @report_id.setter + def report_id(self, report_id): + """ + Sets the report_id of this ReportingV3ReportsIdGet200Response. + Report ID Value + + :param report_id: The report_id of this ReportingV3ReportsIdGet200Response. + :type: str + """ + + self._report_id = report_id + + @property + def report_definition_id(self): + """ + Gets the report_definition_id of this ReportingV3ReportsIdGet200Response. + Report definition Id + + :return: The report_definition_id of this ReportingV3ReportsIdGet200Response. + :rtype: str + """ + return self._report_definition_id + + @report_definition_id.setter + def report_definition_id(self, report_definition_id): + """ + Sets the report_definition_id of this ReportingV3ReportsIdGet200Response. + Report definition Id + + :param report_definition_id: The report_definition_id of this ReportingV3ReportsIdGet200Response. + :type: str + """ + + self._report_definition_id = report_definition_id + + @property + def report_name(self): + """ + Gets the report_name of this ReportingV3ReportsIdGet200Response. + Report Name + + :return: The report_name of this ReportingV3ReportsIdGet200Response. + :rtype: str + """ + return self._report_name + + @report_name.setter + def report_name(self, report_name): + """ + Sets the report_name of this ReportingV3ReportsIdGet200Response. + Report Name + + :param report_name: The report_name of this ReportingV3ReportsIdGet200Response. + :type: str + """ + + self._report_name = report_name + + @property + def report_mime_type(self): + """ + Gets the report_mime_type of this ReportingV3ReportsIdGet200Response. + Report Format + + :return: The report_mime_type of this ReportingV3ReportsIdGet200Response. + :rtype: str + """ + return self._report_mime_type + + @report_mime_type.setter + def report_mime_type(self, report_mime_type): + """ + Sets the report_mime_type of this ReportingV3ReportsIdGet200Response. + Report Format + + :param report_mime_type: The report_mime_type of this ReportingV3ReportsIdGet200Response. + :type: str + """ + allowed_values = ["application/xml", "text/csv"] + if report_mime_type not in allowed_values: + raise ValueError( + "Invalid value for `report_mime_type` ({0}), must be one of {1}" + .format(report_mime_type, allowed_values) + ) + + self._report_mime_type = report_mime_type + + @property + def report_frequency(self): + """ + Gets the report_frequency of this ReportingV3ReportsIdGet200Response. + Report Frequency Value + + :return: The report_frequency of this ReportingV3ReportsIdGet200Response. + :rtype: str + """ + return self._report_frequency + + @report_frequency.setter + def report_frequency(self, report_frequency): + """ + Sets the report_frequency of this ReportingV3ReportsIdGet200Response. + Report Frequency Value + + :param report_frequency: The report_frequency of this ReportingV3ReportsIdGet200Response. + :type: str + """ + allowed_values = ["DAILY", "WEEKLY", "MONTHLY"] + #if report_frequency not in allowed_values: + #raise ValueError( + #"Invalid value for `report_frequency` ({0}), must be one of {1}" + #.format(report_frequency, allowed_values) + #) + + self._report_frequency = report_frequency + + @property + def report_fields(self): + """ + Gets the report_fields of this ReportingV3ReportsIdGet200Response. + List of Integer Values + + :return: The report_fields of this ReportingV3ReportsIdGet200Response. + :rtype: list[str] + """ + return self._report_fields + + @report_fields.setter + def report_fields(self, report_fields): + """ + Sets the report_fields of this ReportingV3ReportsIdGet200Response. + List of Integer Values + + :param report_fields: The report_fields of this ReportingV3ReportsIdGet200Response. + :type: list[str] + """ + + self._report_fields = report_fields + + @property + def report_status(self): + """ + Gets the report_status of this ReportingV3ReportsIdGet200Response. + Report Status Value + + :return: The report_status of this ReportingV3ReportsIdGet200Response. + :rtype: str + """ + return self._report_status + + @report_status.setter + def report_status(self, report_status): + """ + Sets the report_status of this ReportingV3ReportsIdGet200Response. + Report Status Value + + :param report_status: The report_status of this ReportingV3ReportsIdGet200Response. + :type: str + """ + allowed_values = ["COMPLETED", "PENDING", "QUEUED", "RUNNING", "ERROR", "NO_DATA", "RERUN"] + if report_status not in allowed_values: + raise ValueError( + "Invalid value for `report_status` ({0}), must be one of {1}" + .format(report_status, allowed_values) + ) + + self._report_status = report_status + + @property + def report_start_time(self): + """ + Gets the report_start_time of this ReportingV3ReportsIdGet200Response. + Report Start Time Value + + :return: The report_start_time of this ReportingV3ReportsIdGet200Response. + :rtype: datetime + """ + return self._report_start_time + + @report_start_time.setter + def report_start_time(self, report_start_time): + """ + Sets the report_start_time of this ReportingV3ReportsIdGet200Response. + Report Start Time Value + + :param report_start_time: The report_start_time of this ReportingV3ReportsIdGet200Response. + :type: datetime + """ + + self._report_start_time = report_start_time + + @property + def report_end_time(self): + """ + Gets the report_end_time of this ReportingV3ReportsIdGet200Response. + Report End Time Value + + :return: The report_end_time of this ReportingV3ReportsIdGet200Response. + :rtype: datetime + """ + return self._report_end_time + + @report_end_time.setter + def report_end_time(self, report_end_time): + """ + Sets the report_end_time of this ReportingV3ReportsIdGet200Response. + Report End Time Value + + :param report_end_time: The report_end_time of this ReportingV3ReportsIdGet200Response. + :type: datetime + """ + + self._report_end_time = report_end_time + + @property + def timezone(self): + """ + Gets the timezone of this ReportingV3ReportsIdGet200Response. + Time Zone Value + + :return: The timezone of this ReportingV3ReportsIdGet200Response. + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this ReportingV3ReportsIdGet200Response. + Time Zone Value + + :param timezone: The timezone of this ReportingV3ReportsIdGet200Response. + :type: str + """ + + self._timezone = timezone + + @property + def report_filters(self): + """ + Gets the report_filters of this ReportingV3ReportsIdGet200Response. + Report Filters + + :return: The report_filters of this ReportingV3ReportsIdGet200Response. + :rtype: dict(str, list[str]) + """ + return self._report_filters + + @report_filters.setter + def report_filters(self, report_filters): + """ + Sets the report_filters of this ReportingV3ReportsIdGet200Response. + Report Filters + + :param report_filters: The report_filters of this ReportingV3ReportsIdGet200Response. + :type: dict(str, list[str]) + """ + + self._report_filters = report_filters + + @property + def report_preferences(self): + """ + Gets the report_preferences of this ReportingV3ReportsIdGet200Response. + + :return: The report_preferences of this ReportingV3ReportsIdGet200Response. + :rtype: ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + """ + return self._report_preferences + + @report_preferences.setter + def report_preferences(self, report_preferences): + """ + Sets the report_preferences of this ReportingV3ReportsIdGet200Response. + + :param report_preferences: The report_preferences of this ReportingV3ReportsIdGet200Response. + :type: ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + """ + + self._report_preferences = report_preferences + + @property + def selected_merchant_group_name(self): + """ + Gets the selected_merchant_group_name of this ReportingV3ReportsIdGet200Response. + Selected Merchant Group name + + :return: The selected_merchant_group_name of this ReportingV3ReportsIdGet200Response. + :rtype: str + """ + return self._selected_merchant_group_name + + @selected_merchant_group_name.setter + def selected_merchant_group_name(self, selected_merchant_group_name): + """ + Sets the selected_merchant_group_name of this ReportingV3ReportsIdGet200Response. + Selected Merchant Group name + + :param selected_merchant_group_name: The selected_merchant_group_name of this ReportingV3ReportsIdGet200Response. + :type: str + """ + + self._selected_merchant_group_name = selected_merchant_group_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ReportingV3ReportsIdGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/request_body.py b/CyberSource/models/request_body.py new file mode 100644 index 00000000..56677bd1 --- /dev/null +++ b/CyberSource/models/request_body.py @@ -0,0 +1,438 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class RequestBody(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'organization_id': 'str', + 'report_definition_name': 'str', + 'report_fields': 'list[str]', + 'report_mime_type': 'str', + 'report_frequency': 'str', + 'report_name': 'str', + 'timezone': 'str', + 'start_time': 'datetime', + 'start_day': 'int', + 'report_filters': 'dict(str, list[str])', + 'report_preferences': 'ReportingV3ReportSubscriptionsGet200ResponseReportPreferences', + 'selected_merchant_group_name': 'str' + } + + attribute_map = { + 'organization_id': 'organizationId', + 'report_definition_name': 'reportDefinitionName', + 'report_fields': 'reportFields', + 'report_mime_type': 'reportMimeType', + 'report_frequency': 'reportFrequency', + 'report_name': 'reportName', + 'timezone': 'timezone', + 'start_time': 'startTime', + 'start_day': 'startDay', + 'report_filters': 'reportFilters', + 'report_preferences': 'reportPreferences', + 'selected_merchant_group_name': 'selectedMerchantGroupName' + } + + def __init__(self, organization_id=None, report_definition_name=None, report_fields=None, report_mime_type=None, report_frequency=None, report_name=None, timezone=None, start_time=None, start_day=None, report_filters=None, report_preferences=None, selected_merchant_group_name=None): + """ + RequestBody - a model defined in Swagger + """ + + self._organization_id = None + self._report_definition_name = None + self._report_fields = None + self._report_mime_type = None + self._report_frequency = None + self._report_name = None + self._timezone = None + self._start_time = None + self._start_day = None + self._report_filters = None + self._report_preferences = None + self._selected_merchant_group_name = None + + if organization_id is not None: + self.organization_id = organization_id + #self.report_definition_name = report_definition_name + #self.report_fields = report_fields + if report_mime_type is not None: + self.report_mime_type = report_mime_type + if report_frequency is not None: + self.report_frequency = report_frequency + #self.report_name = report_name + if timezone is not None: + self.timezone = timezone + if start_time is not None: + self.start_time = start_time + if start_day is not None: + self.start_day = start_day + if report_filters is not None: + self.report_filters = report_filters + if report_preferences is not None: + self.report_preferences = report_preferences + if selected_merchant_group_name is not None: + self.selected_merchant_group_name = selected_merchant_group_name + + @property + def organization_id(self): + """ + Gets the organization_id of this RequestBody. + + :return: The organization_id of this RequestBody. + :rtype: str + """ + return self._organization_id + + @organization_id.setter + def organization_id(self, organization_id): + """ + Sets the organization_id of this RequestBody. + + :param organization_id: The organization_id of this RequestBody. + :type: str + """ + if organization_id is not None and not re.search('[a-zA-Z0-9-_]+', organization_id): + raise ValueError("Invalid value for `organization_id`, must be a follow pattern or equal to `/[a-zA-Z0-9-_]+/`") + + self._organization_id = organization_id + + @property + def report_definition_name(self): + """ + Gets the report_definition_name of this RequestBody. + + :return: The report_definition_name of this RequestBody. + :rtype: str + """ + return self._report_definition_name + + @report_definition_name.setter + def report_definition_name(self, report_definition_name): + """ + Sets the report_definition_name of this RequestBody. + + :param report_definition_name: The report_definition_name of this RequestBody. + :type: str + """ + if report_definition_name is None: + raise ValueError("Invalid value for `report_definition_name`, must not be `None`") + if report_definition_name is not None and len(report_definition_name) > 80: + raise ValueError("Invalid value for `report_definition_name`, length must be less than or equal to `80`") + if report_definition_name is not None and len(report_definition_name) < 1: + raise ValueError("Invalid value for `report_definition_name`, length must be greater than or equal to `1`") + if report_definition_name is not None and not re.search('[a-zA-Z0-9-]+', report_definition_name): + raise ValueError("Invalid value for `report_definition_name`, must be a follow pattern or equal to `/[a-zA-Z0-9-]+/`") + + self._report_definition_name = report_definition_name + + @property + def report_fields(self): + """ + Gets the report_fields of this RequestBody. + + :return: The report_fields of this RequestBody. + :rtype: list[str] + """ + return self._report_fields + + @report_fields.setter + def report_fields(self, report_fields): + """ + Sets the report_fields of this RequestBody. + + :param report_fields: The report_fields of this RequestBody. + :type: list[str] + """ + if report_fields is None: + raise ValueError("Invalid value for `report_fields`, must not be `None`") + + self._report_fields = report_fields + + @property + def report_mime_type(self): + """ + Gets the report_mime_type of this RequestBody. + + :return: The report_mime_type of this RequestBody. + :rtype: str + """ + return self._report_mime_type + + @report_mime_type.setter + def report_mime_type(self, report_mime_type): + """ + Sets the report_mime_type of this RequestBody. + + :param report_mime_type: The report_mime_type of this RequestBody. + :type: str + """ + allowed_values = ["application/xml", "text/csv"] + if report_mime_type not in allowed_values: + raise ValueError( + "Invalid value for `report_mime_type` ({0}), must be one of {1}" + .format(report_mime_type, allowed_values) + ) + + self._report_mime_type = report_mime_type + + @property + def report_frequency(self): + """ + Gets the report_frequency of this RequestBody. + + :return: The report_frequency of this RequestBody. + :rtype: str + """ + return self._report_frequency + + @report_frequency.setter + def report_frequency(self, report_frequency): + """ + Sets the report_frequency of this RequestBody. + + :param report_frequency: The report_frequency of this RequestBody. + :type: str + """ + + self._report_frequency = report_frequency + + @property + def report_name(self): + """ + Gets the report_name of this RequestBody. + + :return: The report_name of this RequestBody. + :rtype: str + """ + return self._report_name + + @report_name.setter + def report_name(self, report_name): + """ + Sets the report_name of this RequestBody. + + :param report_name: The report_name of this RequestBody. + :type: str + """ + if report_name is None: + raise ValueError("Invalid value for `report_name`, must not be `None`") + if report_name is not None and len(report_name) > 128: + raise ValueError("Invalid value for `report_name`, length must be less than or equal to `128`") + if report_name is not None and len(report_name) < 1: + raise ValueError("Invalid value for `report_name`, length must be greater than or equal to `1`") + if report_name is not None and not re.search('[a-zA-Z0-9-_ ]+', report_name): + raise ValueError("Invalid value for `report_name`, must be a follow pattern or equal to `/[a-zA-Z0-9-_ ]+/`") + + self._report_name = report_name + + @property + def timezone(self): + """ + Gets the timezone of this RequestBody. + + :return: The timezone of this RequestBody. + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this RequestBody. + + :param timezone: The timezone of this RequestBody. + :type: str + """ + + self._timezone = timezone + + @property + def start_time(self): + """ + Gets the start_time of this RequestBody. + + :return: The start_time of this RequestBody. + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this RequestBody. + + :param start_time: The start_time of this RequestBody. + :type: datetime + """ + + self._start_time = start_time + + @property + def start_day(self): + """ + Gets the start_day of this RequestBody. + + :return: The start_day of this RequestBody. + :rtype: int + """ + return self._start_day + + @start_day.setter + def start_day(self, start_day): + """ + Sets the start_day of this RequestBody. + + :param start_day: The start_day of this RequestBody. + :type: int + """ + if start_day is not None and start_day > 7: + raise ValueError("Invalid value for `start_day`, must be a value less than or equal to `7`") + if start_day is not None and start_day < 1: + raise ValueError("Invalid value for `start_day`, must be a value greater than or equal to `1`") + + self._start_day = start_day + + @property + def report_filters(self): + """ + Gets the report_filters of this RequestBody. + + :return: The report_filters of this RequestBody. + :rtype: dict(str, list[str]) + """ + return self._report_filters + + @report_filters.setter + def report_filters(self, report_filters): + """ + Sets the report_filters of this RequestBody. + + :param report_filters: The report_filters of this RequestBody. + :type: dict(str, list[str]) + """ + + self._report_filters = report_filters + + @property + def report_preferences(self): + """ + Gets the report_preferences of this RequestBody. + + :return: The report_preferences of this RequestBody. + :rtype: ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + """ + return self._report_preferences + + @report_preferences.setter + def report_preferences(self, report_preferences): + """ + Sets the report_preferences of this RequestBody. + + :param report_preferences: The report_preferences of this RequestBody. + :type: ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + """ + + self._report_preferences = report_preferences + + @property + def selected_merchant_group_name(self): + """ + Gets the selected_merchant_group_name of this RequestBody. + + :return: The selected_merchant_group_name of this RequestBody. + :rtype: str + """ + return self._selected_merchant_group_name + + @selected_merchant_group_name.setter + def selected_merchant_group_name(self, selected_merchant_group_name): + """ + Sets the selected_merchant_group_name of this RequestBody. + + :param selected_merchant_group_name: The selected_merchant_group_name of this RequestBody. + :type: str + """ + if selected_merchant_group_name is not None and not re.search('[0-9]*', selected_merchant_group_name): + raise ValueError("Invalid value for `selected_merchant_group_name`, must be a follow pattern or equal to `/[0-9]*/`") + + self._selected_merchant_group_name = selected_merchant_group_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, RequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/request_body_1.py b/CyberSource/models/request_body_1.py new file mode 100644 index 00000000..02fe7d05 --- /dev/null +++ b/CyberSource/models/request_body_1.py @@ -0,0 +1,421 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class RequestBody1(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'organization_id': 'str', + 'report_definition_name': 'str', + 'report_fields': 'list[str]', + 'report_mime_type': 'str', + 'report_name': 'str', + 'timezone': 'str', + 'report_start_time': 'datetime', + 'report_end_time': 'datetime', + 'report_filters': 'dict(str, list[str])', + 'report_preferences': 'ReportingV3ReportSubscriptionsGet200ResponseReportPreferences', + 'selected_merchant_group_name': 'str' + } + + attribute_map = { + 'organization_id': 'organizationId', + 'report_definition_name': 'reportDefinitionName', + 'report_fields': 'reportFields', + 'report_mime_type': 'reportMimeType', + 'report_name': 'reportName', + 'timezone': 'timezone', + 'report_start_time': 'reportStartTime', + 'report_end_time': 'reportEndTime', + 'report_filters': 'reportFilters', + 'report_preferences': 'reportPreferences', + 'selected_merchant_group_name': 'selectedMerchantGroupName' + } + + def __init__(self, organization_id=None, report_definition_name=None, report_fields=None, report_mime_type=None, report_name=None, timezone=None, report_start_time=None, report_end_time=None, report_filters=None, report_preferences=None, selected_merchant_group_name=None): + """ + RequestBody1 - a model defined in Swagger + """ + + self._organization_id = None + self._report_definition_name = None + self._report_fields = None + self._report_mime_type = None + self._report_name = None + self._timezone = None + self._report_start_time = None + self._report_end_time = None + self._report_filters = None + self._report_preferences = None + self._selected_merchant_group_name = None + + if organization_id is not None: + self.organization_id = organization_id + if report_definition_name is not None: + self.report_definition_name = report_definition_name + if report_fields is not None: + self.report_fields = report_fields + if report_mime_type is not None: + self.report_mime_type = report_mime_type + if report_name is not None: + self.report_name = report_name + if timezone is not None: + self.timezone = timezone + if report_start_time is not None: + self.report_start_time = report_start_time + if report_end_time is not None: + self.report_end_time = report_end_time + if report_filters is not None: + self.report_filters = report_filters + if report_preferences is not None: + self.report_preferences = report_preferences + if selected_merchant_group_name is not None: + self.selected_merchant_group_name = selected_merchant_group_name + + @property + def organization_id(self): + """ + Gets the organization_id of this RequestBody1. + Valid CyberSource Organization Id + + :return: The organization_id of this RequestBody1. + :rtype: str + """ + return self._organization_id + + @organization_id.setter + def organization_id(self, organization_id): + """ + Sets the organization_id of this RequestBody1. + Valid CyberSource Organization Id + + :param organization_id: The organization_id of this RequestBody1. + :type: str + """ + if organization_id is not None and not re.search('[a-zA-Z0-9-_]+', organization_id): + raise ValueError("Invalid value for `organization_id`, must be a follow pattern or equal to `/[a-zA-Z0-9-_]+/`") + + self._organization_id = organization_id + + @property + def report_definition_name(self): + """ + Gets the report_definition_name of this RequestBody1. + + :return: The report_definition_name of this RequestBody1. + :rtype: str + """ + return self._report_definition_name + + @report_definition_name.setter + def report_definition_name(self, report_definition_name): + """ + Sets the report_definition_name of this RequestBody1. + + :param report_definition_name: The report_definition_name of this RequestBody1. + :type: str + """ + if report_definition_name is not None and len(report_definition_name) > 80: + raise ValueError("Invalid value for `report_definition_name`, length must be less than or equal to `80`") + if report_definition_name is not None and len(report_definition_name) < 1: + raise ValueError("Invalid value for `report_definition_name`, length must be greater than or equal to `1`") + if report_definition_name is not None and not re.search('[a-zA-Z0-9-]+', report_definition_name): + raise ValueError("Invalid value for `report_definition_name`, must be a follow pattern or equal to `/[a-zA-Z0-9-]+/`") + + self._report_definition_name = report_definition_name + + @property + def report_fields(self): + """ + Gets the report_fields of this RequestBody1. + List of fields which needs to get included in a report + + :return: The report_fields of this RequestBody1. + :rtype: list[str] + """ + return self._report_fields + + @report_fields.setter + def report_fields(self, report_fields): + """ + Sets the report_fields of this RequestBody1. + List of fields which needs to get included in a report + + :param report_fields: The report_fields of this RequestBody1. + :type: list[str] + """ + + self._report_fields = report_fields + + @property + def report_mime_type(self): + """ + Gets the report_mime_type of this RequestBody1. + Format of the report + + :return: The report_mime_type of this RequestBody1. + :rtype: str + """ + return self._report_mime_type + + @report_mime_type.setter + def report_mime_type(self, report_mime_type): + """ + Sets the report_mime_type of this RequestBody1. + Format of the report + + :param report_mime_type: The report_mime_type of this RequestBody1. + :type: str + """ + allowed_values = ["application/xml", "text/csv"] + if report_mime_type not in allowed_values: + raise ValueError( + "Invalid value for `report_mime_type` ({0}), must be one of {1}" + .format(report_mime_type, allowed_values) + ) + + self._report_mime_type = report_mime_type + + @property + def report_name(self): + """ + Gets the report_name of this RequestBody1. + Name of the report + + :return: The report_name of this RequestBody1. + :rtype: str + """ + return self._report_name + + @report_name.setter + def report_name(self, report_name): + """ + Sets the report_name of this RequestBody1. + Name of the report + + :param report_name: The report_name of this RequestBody1. + :type: str + """ + if report_name is not None and len(report_name) > 128: + raise ValueError("Invalid value for `report_name`, length must be less than or equal to `128`") + if report_name is not None and len(report_name) < 1: + raise ValueError("Invalid value for `report_name`, length must be greater than or equal to `1`") + if report_name is not None and not re.search('[a-zA-Z0-9-_ ]+', report_name): + raise ValueError("Invalid value for `report_name`, must be a follow pattern or equal to `/[a-zA-Z0-9-_ ]+/`") + + self._report_name = report_name + + @property + def timezone(self): + """ + Gets the timezone of this RequestBody1. + Timezone of the report + + :return: The timezone of this RequestBody1. + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this RequestBody1. + Timezone of the report + + :param timezone: The timezone of this RequestBody1. + :type: str + """ + + self._timezone = timezone + + @property + def report_start_time(self): + """ + Gets the report_start_time of this RequestBody1. + Start time of the report + + :return: The report_start_time of this RequestBody1. + :rtype: datetime + """ + return self._report_start_time + + @report_start_time.setter + def report_start_time(self, report_start_time): + """ + Sets the report_start_time of this RequestBody1. + Start time of the report + + :param report_start_time: The report_start_time of this RequestBody1. + :type: datetime + """ + + self._report_start_time = report_start_time + + @property + def report_end_time(self): + """ + Gets the report_end_time of this RequestBody1. + End time of the report + + :return: The report_end_time of this RequestBody1. + :rtype: datetime + """ + return self._report_end_time + + @report_end_time.setter + def report_end_time(self, report_end_time): + """ + Sets the report_end_time of this RequestBody1. + End time of the report + + :param report_end_time: The report_end_time of this RequestBody1. + :type: datetime + """ + + self._report_end_time = report_end_time + + @property + def report_filters(self): + """ + Gets the report_filters of this RequestBody1. + + :return: The report_filters of this RequestBody1. + :rtype: dict(str, list[str]) + """ + return self._report_filters + + @report_filters.setter + def report_filters(self, report_filters): + """ + Sets the report_filters of this RequestBody1. + + :param report_filters: The report_filters of this RequestBody1. + :type: dict(str, list[str]) + """ + + self._report_filters = report_filters + + @property + def report_preferences(self): + """ + Gets the report_preferences of this RequestBody1. + + :return: The report_preferences of this RequestBody1. + :rtype: ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + """ + return self._report_preferences + + @report_preferences.setter + def report_preferences(self, report_preferences): + """ + Sets the report_preferences of this RequestBody1. + + :param report_preferences: The report_preferences of this RequestBody1. + :type: ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + """ + + self._report_preferences = report_preferences + + @property + def selected_merchant_group_name(self): + """ + Gets the selected_merchant_group_name of this RequestBody1. + Specifies the group name + + :return: The selected_merchant_group_name of this RequestBody1. + :rtype: str + """ + return self._selected_merchant_group_name + + @selected_merchant_group_name.setter + def selected_merchant_group_name(self, selected_merchant_group_name): + """ + Sets the selected_merchant_group_name of this RequestBody1. + Specifies the group name + + :param selected_merchant_group_name: The selected_merchant_group_name of this RequestBody1. + :type: str + """ + if selected_merchant_group_name is not None and not re.search('[0-9]*', selected_merchant_group_name): + raise ValueError("Invalid value for `selected_merchant_group_name`, must be a follow pattern or equal to `/[0-9]*/`") + + self._selected_merchant_group_name = selected_merchant_group_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, RequestBody1): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_delete409_response.py b/CyberSource/models/tms_v1_instrumentidentifiers_delete409_response.py new file mode 100644 index 00000000..53c30cc0 --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_delete409_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersDelete409Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'TmsV1InstrumentidentifiersDelete409ResponseLinks' + } + + attribute_map = { + 'links': '_links' + } + + def __init__(self, links=None): + """ + TmsV1InstrumentidentifiersDelete409Response - a model defined in Swagger + """ + + self._links = None + + if links is not None: + self.links = links + + @property + def links(self): + """ + Gets the links of this TmsV1InstrumentidentifiersDelete409Response. + + :return: The links of this TmsV1InstrumentidentifiersDelete409Response. + :rtype: TmsV1InstrumentidentifiersDelete409ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this TmsV1InstrumentidentifiersDelete409Response. + + :param links: The links of this TmsV1InstrumentidentifiersDelete409Response. + :type: TmsV1InstrumentidentifiersDelete409ResponseLinks + """ + + self._links = links + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersDelete409Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_delete409_response__links.py b/CyberSource/models/tms_v1_instrumentidentifiers_delete409_response__links.py new file mode 100644 index 00000000..2b0c1780 --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_delete409_response__links.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersDelete409ResponseLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'payment_instruments': 'TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments' + } + + attribute_map = { + 'payment_instruments': 'paymentInstruments' + } + + def __init__(self, payment_instruments=None): + """ + TmsV1InstrumentidentifiersDelete409ResponseLinks - a model defined in Swagger + """ + + self._payment_instruments = None + + if payment_instruments is not None: + self.payment_instruments = payment_instruments + + @property + def payment_instruments(self): + """ + Gets the payment_instruments of this TmsV1InstrumentidentifiersDelete409ResponseLinks. + + :return: The payment_instruments of this TmsV1InstrumentidentifiersDelete409ResponseLinks. + :rtype: TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments + """ + return self._payment_instruments + + @payment_instruments.setter + def payment_instruments(self, payment_instruments): + """ + Sets the payment_instruments of this TmsV1InstrumentidentifiersDelete409ResponseLinks. + + :param payment_instruments: The payment_instruments of this TmsV1InstrumentidentifiersDelete409ResponseLinks. + :type: TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments + """ + + self._payment_instruments = payment_instruments + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersDelete409ResponseLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments.py b/CyberSource/models/tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments.py new file mode 100644 index 00000000..6b994b2e --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str' + } + + attribute_map = { + 'href': 'href' + } + + def __init__(self, href=None): + """ + TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments - a model defined in Swagger + """ + + self._href = None + + if href is not None: + self.href = href + + @property + def href(self): + """ + Gets the href of this TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments. + + :return: The href of this TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments. + + :param href: The href of this TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments. + :type: str + """ + + self._href = href + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response.py b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response.py new file mode 100644 index 00000000..150f3a81 --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response.py @@ -0,0 +1,297 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks', + 'object': 'str', + 'offset': 'str', + 'limit': 'str', + 'count': 'str', + 'total': 'str', + 'embedded': 'object' + } + + attribute_map = { + 'links': '_links', + 'object': 'object', + 'offset': 'offset', + 'limit': 'limit', + 'count': 'count', + 'total': 'total', + 'embedded': '_embedded' + } + + def __init__(self, links=None, object=None, offset=None, limit=None, count=None, total=None, embedded=None): + """ + TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response - a model defined in Swagger + """ + + self._links = None + self._object = None + self._offset = None + self._limit = None + self._count = None + self._total = None + self._embedded = None + + if links is not None: + self.links = links + if object is not None: + self.object = object + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if count is not None: + self.count = count + if total is not None: + self.total = total + if embedded is not None: + self.embedded = embedded + + @property + def links(self): + """ + Gets the links of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + + :return: The links of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :rtype: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + + :param links: The links of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :type: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks + """ + + self._links = links + + @property + def object(self): + """ + Gets the object of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + Shows the response is a collection of objects. + + :return: The object of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :rtype: str + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + Shows the response is a collection of objects. + + :param object: The object of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :type: str + """ + allowed_values = ["collection"] + if object not in allowed_values: + raise ValueError( + "Invalid value for `object` ({0}), must be one of {1}" + .format(object, allowed_values) + ) + + self._object = object + + @property + def offset(self): + """ + Gets the offset of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + The offset parameter supplied in the request. + + :return: The offset of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :rtype: str + """ + return self._offset + + @offset.setter + def offset(self, offset): + """ + Sets the offset of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + The offset parameter supplied in the request. + + :param offset: The offset of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :type: str + """ + + self._offset = offset + + @property + def limit(self): + """ + Gets the limit of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + The limit parameter supplied in the request. + + :return: The limit of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :rtype: str + """ + return self._limit + + @limit.setter + def limit(self, limit): + """ + Sets the limit of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + The limit parameter supplied in the request. + + :param limit: The limit of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :type: str + """ + + self._limit = limit + + @property + def count(self): + """ + Gets the count of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + The number of Payment Instruments returned in the array. + + :return: The count of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :rtype: str + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + The number of Payment Instruments returned in the array. + + :param count: The count of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :type: str + """ + + self._count = count + + @property + def total(self): + """ + Gets the total of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + The total number of Payment Instruments associated with the Instrument Identifier in the zero-based dataset. + + :return: The total of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :rtype: str + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + The total number of Payment Instruments associated with the Instrument Identifier in the zero-based dataset. + + :param total: The total of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :type: str + """ + + self._total = total + + @property + def embedded(self): + """ + Gets the embedded of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + Array of Payment Instruments returned for the supplied Instrument Identifier. + + :return: The embedded of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :rtype: object + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """ + Sets the embedded of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + Array of Payment Instruments returned for the supplied Instrument Identifier. + + :param embedded: The embedded of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response. + :type: object + """ + + self._embedded = embedded + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links.py b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links.py new file mode 100644 index 00000000..32742191 --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + '_self': 'TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf', + 'first': 'TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst', + 'prev': 'TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev', + 'next': 'TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext', + 'last': 'TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast' + } + + attribute_map = { + '_self': 'self', + 'first': 'first', + 'prev': 'prev', + 'next': 'next', + 'last': 'last' + } + + def __init__(self, _self=None, first=None, prev=None, next=None, last=None): + """ + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks - a model defined in Swagger + """ + + self.__self = None + self._first = None + self._prev = None + self._next = None + self._last = None + + if _self is not None: + self._self = _self + if first is not None: + self.first = first + if prev is not None: + self.prev = prev + if next is not None: + self.next = next + if last is not None: + self.last = last + + @property + def _self(self): + """ + Gets the _self of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + + :return: The _self of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + :rtype: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf + """ + return self.__self + + @_self.setter + def _self(self, _self): + """ + Sets the _self of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + + :param _self: The _self of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + :type: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf + """ + + self.__self = _self + + @property + def first(self): + """ + Gets the first of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + + :return: The first of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + :rtype: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst + """ + return self._first + + @first.setter + def first(self, first): + """ + Sets the first of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + + :param first: The first of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + :type: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst + """ + + self._first = first + + @property + def prev(self): + """ + Gets the prev of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + + :return: The prev of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + :rtype: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev + """ + return self._prev + + @prev.setter + def prev(self, prev): + """ + Sets the prev of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + + :param prev: The prev of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + :type: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev + """ + + self._prev = prev + + @property + def next(self): + """ + Gets the next of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + + :return: The next of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + :rtype: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext + """ + return self._next + + @next.setter + def next(self, next): + """ + Sets the next of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + + :param next: The next of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + :type: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext + """ + + self._next = next + + @property + def last(self): + """ + Gets the last of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + + :return: The last of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + :rtype: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast + """ + return self._last + + @last.setter + def last(self, last): + """ + Sets the last of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + + :param last: The last of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks. + :type: TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast + """ + + self._last = last + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first.py b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first.py new file mode 100644 index 00000000..e9c638e4 --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str' + } + + attribute_map = { + 'href': 'href' + } + + def __init__(self, href=None): + """ + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst - a model defined in Swagger + """ + + self._href = None + + if href is not None: + self.href = href + + @property + def href(self): + """ + Gets the href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst. + A link to the collection starting at offset zero for the supplied limit. + + :return: The href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst. + A link to the collection starting at offset zero for the supplied limit. + + :param href: The href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst. + :type: str + """ + + self._href = href + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last.py b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last.py new file mode 100644 index 00000000..b419de64 --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str' + } + + attribute_map = { + 'href': 'href' + } + + def __init__(self, href=None): + """ + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast - a model defined in Swagger + """ + + self._href = None + + if href is not None: + self.href = href + + @property + def href(self): + """ + Gets the href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast. + A link to the last collection containing the remaining objects. + + :return: The href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast. + A link to the last collection containing the remaining objects. + + :param href: The href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast. + :type: str + """ + + self._href = href + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next.py b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next.py new file mode 100644 index 00000000..cb5dd185 --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str' + } + + attribute_map = { + 'href': 'href' + } + + def __init__(self, href=None): + """ + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext - a model defined in Swagger + """ + + self._href = None + + if href is not None: + self.href = href + + @property + def href(self): + """ + Gets the href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext. + A link to the next collection starting at the supplied offset plus the supplied limit. + + :return: The href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext. + A link to the next collection starting at the supplied offset plus the supplied limit. + + :param href: The href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext. + :type: str + """ + + self._href = href + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev.py b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev.py new file mode 100644 index 00000000..fc15635f --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str' + } + + attribute_map = { + 'href': 'href' + } + + def __init__(self, href=None): + """ + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev - a model defined in Swagger + """ + + self._href = None + + if href is not None: + self.href = href + + @property + def href(self): + """ + Gets the href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev. + + :return: The href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev. + + :param href: The href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev. + :type: str + """ + + self._href = href + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self.py b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self.py new file mode 100644 index 00000000..27dc86b9 --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str' + } + + attribute_map = { + 'href': 'href' + } + + def __init__(self, href=None): + """ + TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf - a model defined in Swagger + """ + + self._href = None + + if href is not None: + self.href = href + + @property + def href(self): + """ + Gets the href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf. + A link to the current requested collection. + + :return: The href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf. + A link to the current requested collection. + + :param href: The href of this TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf. + :type: str + """ + + self._href = href + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_instrumentidentifiers_post200_response.py b/CyberSource/models/tms_v1_instrumentidentifiers_post200_response.py new file mode 100644 index 00000000..3ca69157 --- /dev/null +++ b/CyberSource/models/tms_v1_instrumentidentifiers_post200_response.py @@ -0,0 +1,323 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1InstrumentidentifiersPost200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'Tmsv1instrumentidentifiersLinks', + 'id': 'str', + 'object': 'str', + 'state': 'str', + 'card': 'Tmsv1instrumentidentifiersCard', + 'bank_account': 'Tmsv1instrumentidentifiersBankAccount', + 'processing_information': 'Tmsv1instrumentidentifiersProcessingInformation', + 'metadata': 'Tmsv1instrumentidentifiersMetadata' + } + + attribute_map = { + 'links': '_links', + 'id': 'id', + 'object': 'object', + 'state': 'state', + 'card': 'card', + 'bank_account': 'bankAccount', + 'processing_information': 'processingInformation', + 'metadata': 'metadata' + } + + def __init__(self, links=None, id=None, object=None, state=None, card=None, bank_account=None, processing_information=None, metadata=None): + """ + TmsV1InstrumentidentifiersPost200Response - a model defined in Swagger + """ + + self._links = None + self._id = None + self._object = None + self._state = None + self._card = None + self._bank_account = None + self._processing_information = None + self._metadata = None + + if links is not None: + self.links = links + if id is not None: + self.id = id + if object is not None: + self.object = object + if state is not None: + self.state = state + if card is not None: + self.card = card + if bank_account is not None: + self.bank_account = bank_account + if processing_information is not None: + self.processing_information = processing_information + if metadata is not None: + self.metadata = metadata + + @property + def links(self): + """ + Gets the links of this TmsV1InstrumentidentifiersPost200Response. + + :return: The links of this TmsV1InstrumentidentifiersPost200Response. + :rtype: Tmsv1instrumentidentifiersLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this TmsV1InstrumentidentifiersPost200Response. + + :param links: The links of this TmsV1InstrumentidentifiersPost200Response. + :type: Tmsv1instrumentidentifiersLinks + """ + + self._links = links + + @property + def id(self): + """ + Gets the id of this TmsV1InstrumentidentifiersPost200Response. + Unique identification number assigned by CyberSource to the submitted request. + + :return: The id of this TmsV1InstrumentidentifiersPost200Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TmsV1InstrumentidentifiersPost200Response. + Unique identification number assigned by CyberSource to the submitted request. + + :param id: The id of this TmsV1InstrumentidentifiersPost200Response. + :type: str + """ + + self._id = id + + @property + def object(self): + """ + Gets the object of this TmsV1InstrumentidentifiersPost200Response. + Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. + + :return: The object of this TmsV1InstrumentidentifiersPost200Response. + :rtype: str + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this TmsV1InstrumentidentifiersPost200Response. + Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. + + :param object: The object of this TmsV1InstrumentidentifiersPost200Response. + :type: str + """ + allowed_values = ["instrumentIdentifier"] + if object not in allowed_values: + raise ValueError( + "Invalid value for `object` ({0}), must be one of {1}" + .format(object, allowed_values) + ) + + self._object = object + + @property + def state(self): + """ + Gets the state of this TmsV1InstrumentidentifiersPost200Response. + Current state of the token. + + :return: The state of this TmsV1InstrumentidentifiersPost200Response. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this TmsV1InstrumentidentifiersPost200Response. + Current state of the token. + + :param state: The state of this TmsV1InstrumentidentifiersPost200Response. + :type: str + """ + allowed_values = ["ACTIVE", "CLOSED"] + if state not in allowed_values: + raise ValueError( + "Invalid value for `state` ({0}), must be one of {1}" + .format(state, allowed_values) + ) + + self._state = state + + @property + def card(self): + """ + Gets the card of this TmsV1InstrumentidentifiersPost200Response. + + :return: The card of this TmsV1InstrumentidentifiersPost200Response. + :rtype: Tmsv1instrumentidentifiersCard + """ + return self._card + + @card.setter + def card(self, card): + """ + Sets the card of this TmsV1InstrumentidentifiersPost200Response. + + :param card: The card of this TmsV1InstrumentidentifiersPost200Response. + :type: Tmsv1instrumentidentifiersCard + """ + + self._card = card + + @property + def bank_account(self): + """ + Gets the bank_account of this TmsV1InstrumentidentifiersPost200Response. + + :return: The bank_account of this TmsV1InstrumentidentifiersPost200Response. + :rtype: Tmsv1instrumentidentifiersBankAccount + """ + return self._bank_account + + @bank_account.setter + def bank_account(self, bank_account): + """ + Sets the bank_account of this TmsV1InstrumentidentifiersPost200Response. + + :param bank_account: The bank_account of this TmsV1InstrumentidentifiersPost200Response. + :type: Tmsv1instrumentidentifiersBankAccount + """ + + self._bank_account = bank_account + + @property + def processing_information(self): + """ + Gets the processing_information of this TmsV1InstrumentidentifiersPost200Response. + + :return: The processing_information of this TmsV1InstrumentidentifiersPost200Response. + :rtype: Tmsv1instrumentidentifiersProcessingInformation + """ + return self._processing_information + + @processing_information.setter + def processing_information(self, processing_information): + """ + Sets the processing_information of this TmsV1InstrumentidentifiersPost200Response. + + :param processing_information: The processing_information of this TmsV1InstrumentidentifiersPost200Response. + :type: Tmsv1instrumentidentifiersProcessingInformation + """ + + self._processing_information = processing_information + + @property + def metadata(self): + """ + Gets the metadata of this TmsV1InstrumentidentifiersPost200Response. + + :return: The metadata of this TmsV1InstrumentidentifiersPost200Response. + :rtype: Tmsv1instrumentidentifiersMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this TmsV1InstrumentidentifiersPost200Response. + + :param metadata: The metadata of this TmsV1InstrumentidentifiersPost200Response. + :type: Tmsv1instrumentidentifiersMetadata + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1InstrumentidentifiersPost200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tms_v1_paymentinstruments_post201_response.py b/CyberSource/models/tms_v1_paymentinstruments_post201_response.py new file mode 100644 index 00000000..5197e7b7 --- /dev/null +++ b/CyberSource/models/tms_v1_paymentinstruments_post201_response.py @@ -0,0 +1,427 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TmsV1PaymentinstrumentsPost201Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'Tmsv1instrumentidentifiersLinks', + 'id': 'str', + 'object': 'str', + 'state': 'str', + 'bank_account': 'Tmsv1paymentinstrumentsBankAccount', + 'card': 'Tmsv1paymentinstrumentsCard', + 'buyer_information': 'Tmsv1paymentinstrumentsBuyerInformation', + 'bill_to': 'Tmsv1paymentinstrumentsBillTo', + 'processing_information': 'Tmsv1paymentinstrumentsProcessingInformation', + 'merchant_information': 'Tmsv1paymentinstrumentsMerchantInformation', + 'meta_data': 'Tmsv1instrumentidentifiersMetadata', + 'instrument_identifier': 'Tmsv1paymentinstrumentsInstrumentIdentifier' + } + + attribute_map = { + 'links': '_links', + 'id': 'id', + 'object': 'object', + 'state': 'state', + 'bank_account': 'bankAccount', + 'card': 'card', + 'buyer_information': 'buyerInformation', + 'bill_to': 'billTo', + 'processing_information': 'processingInformation', + 'merchant_information': 'merchantInformation', + 'meta_data': 'metaData', + 'instrument_identifier': 'instrumentIdentifier' + } + + def __init__(self, links=None, id=None, object=None, state=None, bank_account=None, card=None, buyer_information=None, bill_to=None, processing_information=None, merchant_information=None, meta_data=None, instrument_identifier=None): + """ + TmsV1PaymentinstrumentsPost201Response - a model defined in Swagger + """ + + self._links = None + self._id = None + self._object = None + self._state = None + self._bank_account = None + self._card = None + self._buyer_information = None + self._bill_to = None + self._processing_information = None + self._merchant_information = None + self._meta_data = None + self._instrument_identifier = None + + if links is not None: + self.links = links + if id is not None: + self.id = id + if object is not None: + self.object = object + if state is not None: + self.state = state + if bank_account is not None: + self.bank_account = bank_account + if card is not None: + self.card = card + if buyer_information is not None: + self.buyer_information = buyer_information + if bill_to is not None: + self.bill_to = bill_to + if processing_information is not None: + self.processing_information = processing_information + if merchant_information is not None: + self.merchant_information = merchant_information + if meta_data is not None: + self.meta_data = meta_data + if instrument_identifier is not None: + self.instrument_identifier = instrument_identifier + + @property + def links(self): + """ + Gets the links of this TmsV1PaymentinstrumentsPost201Response. + + :return: The links of this TmsV1PaymentinstrumentsPost201Response. + :rtype: Tmsv1instrumentidentifiersLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this TmsV1PaymentinstrumentsPost201Response. + + :param links: The links of this TmsV1PaymentinstrumentsPost201Response. + :type: Tmsv1instrumentidentifiersLinks + """ + + self._links = links + + @property + def id(self): + """ + Gets the id of this TmsV1PaymentinstrumentsPost201Response. + Unique identification number assigned by CyberSource to the submitted request. + + :return: The id of this TmsV1PaymentinstrumentsPost201Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TmsV1PaymentinstrumentsPost201Response. + Unique identification number assigned by CyberSource to the submitted request. + + :param id: The id of this TmsV1PaymentinstrumentsPost201Response. + :type: str + """ + + self._id = id + + @property + def object(self): + """ + Gets the object of this TmsV1PaymentinstrumentsPost201Response. + Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. + + :return: The object of this TmsV1PaymentinstrumentsPost201Response. + :rtype: str + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this TmsV1PaymentinstrumentsPost201Response. + Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. + + :param object: The object of this TmsV1PaymentinstrumentsPost201Response. + :type: str + """ + allowed_values = ["paymentInstrument"] + if object not in allowed_values: + raise ValueError( + "Invalid value for `object` ({0}), must be one of {1}" + .format(object, allowed_values) + ) + + self._object = object + + @property + def state(self): + """ + Gets the state of this TmsV1PaymentinstrumentsPost201Response. + Current state of the token. + + :return: The state of this TmsV1PaymentinstrumentsPost201Response. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this TmsV1PaymentinstrumentsPost201Response. + Current state of the token. + + :param state: The state of this TmsV1PaymentinstrumentsPost201Response. + :type: str + """ + allowed_values = ["ACTIVE", "CLOSED"] + if state not in allowed_values: + raise ValueError( + "Invalid value for `state` ({0}), must be one of {1}" + .format(state, allowed_values) + ) + + self._state = state + + @property + def bank_account(self): + """ + Gets the bank_account of this TmsV1PaymentinstrumentsPost201Response. + + :return: The bank_account of this TmsV1PaymentinstrumentsPost201Response. + :rtype: Tmsv1paymentinstrumentsBankAccount + """ + return self._bank_account + + @bank_account.setter + def bank_account(self, bank_account): + """ + Sets the bank_account of this TmsV1PaymentinstrumentsPost201Response. + + :param bank_account: The bank_account of this TmsV1PaymentinstrumentsPost201Response. + :type: Tmsv1paymentinstrumentsBankAccount + """ + + self._bank_account = bank_account + + @property + def card(self): + """ + Gets the card of this TmsV1PaymentinstrumentsPost201Response. + + :return: The card of this TmsV1PaymentinstrumentsPost201Response. + :rtype: Tmsv1paymentinstrumentsCard + """ + return self._card + + @card.setter + def card(self, card): + """ + Sets the card of this TmsV1PaymentinstrumentsPost201Response. + + :param card: The card of this TmsV1PaymentinstrumentsPost201Response. + :type: Tmsv1paymentinstrumentsCard + """ + + self._card = card + + @property + def buyer_information(self): + """ + Gets the buyer_information of this TmsV1PaymentinstrumentsPost201Response. + + :return: The buyer_information of this TmsV1PaymentinstrumentsPost201Response. + :rtype: Tmsv1paymentinstrumentsBuyerInformation + """ + return self._buyer_information + + @buyer_information.setter + def buyer_information(self, buyer_information): + """ + Sets the buyer_information of this TmsV1PaymentinstrumentsPost201Response. + + :param buyer_information: The buyer_information of this TmsV1PaymentinstrumentsPost201Response. + :type: Tmsv1paymentinstrumentsBuyerInformation + """ + + self._buyer_information = buyer_information + + @property + def bill_to(self): + """ + Gets the bill_to of this TmsV1PaymentinstrumentsPost201Response. + + :return: The bill_to of this TmsV1PaymentinstrumentsPost201Response. + :rtype: Tmsv1paymentinstrumentsBillTo + """ + return self._bill_to + + @bill_to.setter + def bill_to(self, bill_to): + """ + Sets the bill_to of this TmsV1PaymentinstrumentsPost201Response. + + :param bill_to: The bill_to of this TmsV1PaymentinstrumentsPost201Response. + :type: Tmsv1paymentinstrumentsBillTo + """ + + self._bill_to = bill_to + + @property + def processing_information(self): + """ + Gets the processing_information of this TmsV1PaymentinstrumentsPost201Response. + + :return: The processing_information of this TmsV1PaymentinstrumentsPost201Response. + :rtype: Tmsv1paymentinstrumentsProcessingInformation + """ + return self._processing_information + + @processing_information.setter + def processing_information(self, processing_information): + """ + Sets the processing_information of this TmsV1PaymentinstrumentsPost201Response. + + :param processing_information: The processing_information of this TmsV1PaymentinstrumentsPost201Response. + :type: Tmsv1paymentinstrumentsProcessingInformation + """ + + self._processing_information = processing_information + + @property + def merchant_information(self): + """ + Gets the merchant_information of this TmsV1PaymentinstrumentsPost201Response. + + :return: The merchant_information of this TmsV1PaymentinstrumentsPost201Response. + :rtype: Tmsv1paymentinstrumentsMerchantInformation + """ + return self._merchant_information + + @merchant_information.setter + def merchant_information(self, merchant_information): + """ + Sets the merchant_information of this TmsV1PaymentinstrumentsPost201Response. + + :param merchant_information: The merchant_information of this TmsV1PaymentinstrumentsPost201Response. + :type: Tmsv1paymentinstrumentsMerchantInformation + """ + + self._merchant_information = merchant_information + + @property + def meta_data(self): + """ + Gets the meta_data of this TmsV1PaymentinstrumentsPost201Response. + + :return: The meta_data of this TmsV1PaymentinstrumentsPost201Response. + :rtype: Tmsv1instrumentidentifiersMetadata + """ + return self._meta_data + + @meta_data.setter + def meta_data(self, meta_data): + """ + Sets the meta_data of this TmsV1PaymentinstrumentsPost201Response. + + :param meta_data: The meta_data of this TmsV1PaymentinstrumentsPost201Response. + :type: Tmsv1instrumentidentifiersMetadata + """ + + self._meta_data = meta_data + + @property + def instrument_identifier(self): + """ + Gets the instrument_identifier of this TmsV1PaymentinstrumentsPost201Response. + + :return: The instrument_identifier of this TmsV1PaymentinstrumentsPost201Response. + :rtype: Tmsv1paymentinstrumentsInstrumentIdentifier + """ + return self._instrument_identifier + + @instrument_identifier.setter + def instrument_identifier(self, instrument_identifier): + """ + Sets the instrument_identifier of this TmsV1PaymentinstrumentsPost201Response. + + :param instrument_identifier: The instrument_identifier of this TmsV1PaymentinstrumentsPost201Response. + :type: Tmsv1paymentinstrumentsInstrumentIdentifier + """ + + self._instrument_identifier = instrument_identifier + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TmsV1PaymentinstrumentsPost201Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1instrumentidentifiers__links.py b/CyberSource/models/tmsv1instrumentidentifiers__links.py new file mode 100644 index 00000000..846d3912 --- /dev/null +++ b/CyberSource/models/tmsv1instrumentidentifiers__links.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1instrumentidentifiersLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + '_self': 'Tmsv1instrumentidentifiersLinksSelf', + 'ancestor': 'Tmsv1instrumentidentifiersLinksSelf', + 'successor': 'Tmsv1instrumentidentifiersLinksSelf' + } + + attribute_map = { + '_self': 'self', + 'ancestor': 'ancestor', + 'successor': 'successor' + } + + def __init__(self, _self=None, ancestor=None, successor=None): + """ + Tmsv1instrumentidentifiersLinks - a model defined in Swagger + """ + + self.__self = None + self._ancestor = None + self._successor = None + + if _self is not None: + self._self = _self + if ancestor is not None: + self.ancestor = ancestor + if successor is not None: + self.successor = successor + + @property + def _self(self): + """ + Gets the _self of this Tmsv1instrumentidentifiersLinks. + + :return: The _self of this Tmsv1instrumentidentifiersLinks. + :rtype: Tmsv1instrumentidentifiersLinksSelf + """ + return self.__self + + @_self.setter + def _self(self, _self): + """ + Sets the _self of this Tmsv1instrumentidentifiersLinks. + + :param _self: The _self of this Tmsv1instrumentidentifiersLinks. + :type: Tmsv1instrumentidentifiersLinksSelf + """ + + self.__self = _self + + @property + def ancestor(self): + """ + Gets the ancestor of this Tmsv1instrumentidentifiersLinks. + + :return: The ancestor of this Tmsv1instrumentidentifiersLinks. + :rtype: Tmsv1instrumentidentifiersLinksSelf + """ + return self._ancestor + + @ancestor.setter + def ancestor(self, ancestor): + """ + Sets the ancestor of this Tmsv1instrumentidentifiersLinks. + + :param ancestor: The ancestor of this Tmsv1instrumentidentifiersLinks. + :type: Tmsv1instrumentidentifiersLinksSelf + """ + + self._ancestor = ancestor + + @property + def successor(self): + """ + Gets the successor of this Tmsv1instrumentidentifiersLinks. + + :return: The successor of this Tmsv1instrumentidentifiersLinks. + :rtype: Tmsv1instrumentidentifiersLinksSelf + """ + return self._successor + + @successor.setter + def successor(self, successor): + """ + Sets the successor of this Tmsv1instrumentidentifiersLinks. + + :param successor: The successor of this Tmsv1instrumentidentifiersLinks. + :type: Tmsv1instrumentidentifiersLinksSelf + """ + + self._successor = successor + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1instrumentidentifiersLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1instrumentidentifiers__links_self.py b/CyberSource/models/tmsv1instrumentidentifiers__links_self.py new file mode 100644 index 00000000..215eb843 --- /dev/null +++ b/CyberSource/models/tmsv1instrumentidentifiers__links_self.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1instrumentidentifiersLinksSelf(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str' + } + + attribute_map = { + 'href': 'href' + } + + def __init__(self, href=None): + """ + Tmsv1instrumentidentifiersLinksSelf - a model defined in Swagger + """ + + self._href = None + + if href is not None: + self.href = href + + @property + def href(self): + """ + Gets the href of this Tmsv1instrumentidentifiersLinksSelf. + + :return: The href of this Tmsv1instrumentidentifiersLinksSelf. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this Tmsv1instrumentidentifiersLinksSelf. + + :param href: The href of this Tmsv1instrumentidentifiersLinksSelf. + :type: str + """ + + self._href = href + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1instrumentidentifiersLinksSelf): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1instrumentidentifiers_bank_account.py b/CyberSource/models/tmsv1instrumentidentifiers_bank_account.py new file mode 100644 index 00000000..30b372e0 --- /dev/null +++ b/CyberSource/models/tmsv1instrumentidentifiers_bank_account.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1instrumentidentifiersBankAccount(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'number': 'str', + 'routing_number': 'str' + } + + attribute_map = { + 'number': 'number', + 'routing_number': 'routingNumber' + } + + def __init__(self, number=None, routing_number=None): + """ + Tmsv1instrumentidentifiersBankAccount - a model defined in Swagger + """ + + self._number = None + self._routing_number = None + + if number is not None: + self.number = number + if routing_number is not None: + self.routing_number = routing_number + + @property + def number(self): + """ + Gets the number of this Tmsv1instrumentidentifiersBankAccount. + Bank account number. + + :return: The number of this Tmsv1instrumentidentifiersBankAccount. + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """ + Sets the number of this Tmsv1instrumentidentifiersBankAccount. + Bank account number. + + :param number: The number of this Tmsv1instrumentidentifiersBankAccount. + :type: str + """ + + self._number = number + + @property + def routing_number(self): + """ + Gets the routing_number of this Tmsv1instrumentidentifiersBankAccount. + Routing number. + + :return: The routing_number of this Tmsv1instrumentidentifiersBankAccount. + :rtype: str + """ + return self._routing_number + + @routing_number.setter + def routing_number(self, routing_number): + """ + Sets the routing_number of this Tmsv1instrumentidentifiersBankAccount. + Routing number. + + :param routing_number: The routing_number of this Tmsv1instrumentidentifiersBankAccount. + :type: str + """ + + self._routing_number = routing_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1instrumentidentifiersBankAccount): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1instrumentidentifiers_card.py b/CyberSource/models/tmsv1instrumentidentifiers_card.py new file mode 100644 index 00000000..c76dff93 --- /dev/null +++ b/CyberSource/models/tmsv1instrumentidentifiers_card.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1instrumentidentifiersCard(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'number': 'str' + } + + attribute_map = { + 'number': 'number' + } + + def __init__(self, number=None): + """ + Tmsv1instrumentidentifiersCard - a model defined in Swagger + """ + + self._number = None + + if number is not None: + self.number = number + + @property + def number(self): + """ + Gets the number of this Tmsv1instrumentidentifiersCard. + Credit card number (PAN). + + :return: The number of this Tmsv1instrumentidentifiersCard. + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """ + Sets the number of this Tmsv1instrumentidentifiersCard. + Credit card number (PAN). + + :param number: The number of this Tmsv1instrumentidentifiersCard. + :type: str + """ + + self._number = number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1instrumentidentifiersCard): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1instrumentidentifiers_details.py b/CyberSource/models/tmsv1instrumentidentifiers_details.py new file mode 100644 index 00000000..abf54f96 --- /dev/null +++ b/CyberSource/models/tmsv1instrumentidentifiers_details.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1instrumentidentifiersDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'location': 'str' + } + + attribute_map = { + 'name': 'name', + 'location': 'location' + } + + def __init__(self, name=None, location=None): + """ + Tmsv1instrumentidentifiersDetails - a model defined in Swagger + """ + + self._name = None + self._location = None + + if name is not None: + self.name = name + if location is not None: + self.location = location + + @property + def name(self): + """ + Gets the name of this Tmsv1instrumentidentifiersDetails. + The name of the field that threw the error. + + :return: The name of this Tmsv1instrumentidentifiersDetails. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Tmsv1instrumentidentifiersDetails. + The name of the field that threw the error. + + :param name: The name of this Tmsv1instrumentidentifiersDetails. + :type: str + """ + + self._name = name + + @property + def location(self): + """ + Gets the location of this Tmsv1instrumentidentifiersDetails. + The location of the field that threw the error. + + :return: The location of this Tmsv1instrumentidentifiersDetails. + :rtype: str + """ + return self._location + + @location.setter + def location(self, location): + """ + Sets the location of this Tmsv1instrumentidentifiersDetails. + The location of the field that threw the error. + + :param location: The location of this Tmsv1instrumentidentifiersDetails. + :type: str + """ + + self._location = location + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1instrumentidentifiersDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1instrumentidentifiers_merchant_initiated_transaction.py b/CyberSource/models/tmsv1instrumentidentifiers_merchant_initiated_transaction.py new file mode 100644 index 00000000..658ada2d --- /dev/null +++ b/CyberSource/models/tmsv1instrumentidentifiers_merchant_initiated_transaction.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'previous_transaction_id': 'str' + } + + attribute_map = { + 'previous_transaction_id': 'previousTransactionId' + } + + def __init__(self, previous_transaction_id=None): + """ + Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - a model defined in Swagger + """ + + self._previous_transaction_id = None + + if previous_transaction_id is not None: + self.previous_transaction_id = previous_transaction_id + + @property + def previous_transaction_id(self): + """ + Gets the previous_transaction_id of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + Previous Consumer Initiated Transaction Id. + + :return: The previous_transaction_id of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + :rtype: str + """ + return self._previous_transaction_id + + @previous_transaction_id.setter + def previous_transaction_id(self, previous_transaction_id): + """ + Sets the previous_transaction_id of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + Previous Consumer Initiated Transaction Id. + + :param previous_transaction_id: The previous_transaction_id of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. + :type: str + """ + + self._previous_transaction_id = previous_transaction_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1instrumentidentifiers_metadata.py b/CyberSource/models/tmsv1instrumentidentifiers_metadata.py new file mode 100644 index 00000000..1b332ce4 --- /dev/null +++ b/CyberSource/models/tmsv1instrumentidentifiers_metadata.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1instrumentidentifiersMetadata(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'creator': 'str' + } + + attribute_map = { + 'creator': 'creator' + } + + def __init__(self, creator=None): + """ + Tmsv1instrumentidentifiersMetadata - a model defined in Swagger + """ + + self._creator = None + + if creator is not None: + self.creator = creator + + @property + def creator(self): + """ + Gets the creator of this Tmsv1instrumentidentifiersMetadata. + The creator of the token. + + :return: The creator of this Tmsv1instrumentidentifiersMetadata. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """ + Sets the creator of this Tmsv1instrumentidentifiersMetadata. + The creator of the token. + + :param creator: The creator of this Tmsv1instrumentidentifiersMetadata. + :type: str + """ + + self._creator = creator + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1instrumentidentifiersMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1instrumentidentifiers_processing_information.py b/CyberSource/models/tmsv1instrumentidentifiers_processing_information.py new file mode 100644 index 00000000..c2934685 --- /dev/null +++ b/CyberSource/models/tmsv1instrumentidentifiers_processing_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1instrumentidentifiersProcessingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'authorization_options': 'Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions' + } + + attribute_map = { + 'authorization_options': 'authorizationOptions' + } + + def __init__(self, authorization_options=None): + """ + Tmsv1instrumentidentifiersProcessingInformation - a model defined in Swagger + """ + + self._authorization_options = None + + if authorization_options is not None: + self.authorization_options = authorization_options + + @property + def authorization_options(self): + """ + Gets the authorization_options of this Tmsv1instrumentidentifiersProcessingInformation. + + :return: The authorization_options of this Tmsv1instrumentidentifiersProcessingInformation. + :rtype: Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions + """ + return self._authorization_options + + @authorization_options.setter + def authorization_options(self, authorization_options): + """ + Sets the authorization_options of this Tmsv1instrumentidentifiersProcessingInformation. + + :param authorization_options: The authorization_options of this Tmsv1instrumentidentifiersProcessingInformation. + :type: Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions + """ + + self._authorization_options = authorization_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1instrumentidentifiersProcessingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1instrumentidentifiers_processing_information_authorization_options.py b/CyberSource/models/tmsv1instrumentidentifiers_processing_information_authorization_options.py new file mode 100644 index 00000000..04cbf1d7 --- /dev/null +++ b/CyberSource/models/tmsv1instrumentidentifiers_processing_information_authorization_options.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'initiator': 'Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator' + } + + attribute_map = { + 'initiator': 'initiator' + } + + def __init__(self, initiator=None): + """ + Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions - a model defined in Swagger + """ + + self._initiator = None + + if initiator is not None: + self.initiator = initiator + + @property + def initiator(self): + """ + Gets the initiator of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions. + + :return: The initiator of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions. + :rtype: Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator + """ + return self._initiator + + @initiator.setter + def initiator(self, initiator): + """ + Sets the initiator of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions. + + :param initiator: The initiator of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions. + :type: Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator + """ + + self._initiator = initiator + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.py b/CyberSource/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.py new file mode 100644 index 00000000..eef177ec --- /dev/null +++ b/CyberSource/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_initiated_transaction': 'Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction' + } + + attribute_map = { + 'merchant_initiated_transaction': 'merchantInitiatedTransaction' + } + + def __init__(self, merchant_initiated_transaction=None): + """ + Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator - a model defined in Swagger + """ + + self._merchant_initiated_transaction = None + + if merchant_initiated_transaction is not None: + self.merchant_initiated_transaction = merchant_initiated_transaction + + @property + def merchant_initiated_transaction(self): + """ + Gets the merchant_initiated_transaction of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator. + + :return: The merchant_initiated_transaction of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator. + :rtype: Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + """ + return self._merchant_initiated_transaction + + @merchant_initiated_transaction.setter + def merchant_initiated_transaction(self, merchant_initiated_transaction): + """ + Sets the merchant_initiated_transaction of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator. + + :param merchant_initiated_transaction: The merchant_initiated_transaction of this Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator. + :type: Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + """ + + self._merchant_initiated_transaction = merchant_initiated_transaction + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_bank_account.py b/CyberSource/models/tmsv1paymentinstruments_bank_account.py new file mode 100644 index 00000000..536ecc7f --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_bank_account.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsBankAccount(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str' + } + + attribute_map = { + 'type': 'type' + } + + def __init__(self, type=None): + """ + Tmsv1paymentinstrumentsBankAccount - a model defined in Swagger + """ + + self._type = None + + if type is not None: + self.type = type + + @property + def type(self): + """ + Gets the type of this Tmsv1paymentinstrumentsBankAccount. + Type of Bank Account. + + :return: The type of this Tmsv1paymentinstrumentsBankAccount. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Tmsv1paymentinstrumentsBankAccount. + Type of Bank Account. + + :param type: The type of this Tmsv1paymentinstrumentsBankAccount. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsBankAccount): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_bill_to.py b/CyberSource/models/tmsv1paymentinstruments_bill_to.py new file mode 100644 index 00000000..2f9bcf7f --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_bill_to.py @@ -0,0 +1,405 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsBillTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first_name': 'str', + 'last_name': 'str', + 'company': 'str', + 'address1': 'str', + 'address2': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'postal_code': 'str', + 'country': 'str', + 'email': 'str', + 'phone_number': 'str' + } + + attribute_map = { + 'first_name': 'firstName', + 'last_name': 'lastName', + 'company': 'company', + 'address1': 'address1', + 'address2': 'address2', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'postal_code': 'postalCode', + 'country': 'country', + 'email': 'email', + 'phone_number': 'phoneNumber' + } + + def __init__(self, first_name=None, last_name=None, company=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, country=None, email=None, phone_number=None): + """ + Tmsv1paymentinstrumentsBillTo - a model defined in Swagger + """ + + self._first_name = None + self._last_name = None + self._company = None + self._address1 = None + self._address2 = None + self._locality = None + self._administrative_area = None + self._postal_code = None + self._country = None + self._email = None + self._phone_number = None + + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if company is not None: + self.company = company + if address1 is not None: + self.address1 = address1 + if address2 is not None: + self.address2 = address2 + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if postal_code is not None: + self.postal_code = postal_code + if country is not None: + self.country = country + if email is not None: + self.email = email + if phone_number is not None: + self.phone_number = phone_number + + @property + def first_name(self): + """ + Gets the first_name of this Tmsv1paymentinstrumentsBillTo. + Bill to First Name. + + :return: The first_name of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this Tmsv1paymentinstrumentsBillTo. + Bill to First Name. + + :param first_name: The first_name of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """ + Gets the last_name of this Tmsv1paymentinstrumentsBillTo. + Bill to Last Name. + + :return: The last_name of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this Tmsv1paymentinstrumentsBillTo. + Bill to Last Name. + + :param last_name: The last_name of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._last_name = last_name + + @property + def company(self): + """ + Gets the company of this Tmsv1paymentinstrumentsBillTo. + Bill to Company. + + :return: The company of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._company + + @company.setter + def company(self, company): + """ + Sets the company of this Tmsv1paymentinstrumentsBillTo. + Bill to Company. + + :param company: The company of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._company = company + + @property + def address1(self): + """ + Gets the address1 of this Tmsv1paymentinstrumentsBillTo. + Bill to Address Line 1. + + :return: The address1 of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this Tmsv1paymentinstrumentsBillTo. + Bill to Address Line 1. + + :param address1: The address1 of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._address1 = address1 + + @property + def address2(self): + """ + Gets the address2 of this Tmsv1paymentinstrumentsBillTo. + Bill to Address Line 2. + + :return: The address2 of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._address2 + + @address2.setter + def address2(self, address2): + """ + Sets the address2 of this Tmsv1paymentinstrumentsBillTo. + Bill to Address Line 2. + + :param address2: The address2 of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._address2 = address2 + + @property + def locality(self): + """ + Gets the locality of this Tmsv1paymentinstrumentsBillTo. + Bill to City. + + :return: The locality of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this Tmsv1paymentinstrumentsBillTo. + Bill to City. + + :param locality: The locality of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Tmsv1paymentinstrumentsBillTo. + Bill to State. + + :return: The administrative_area of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Tmsv1paymentinstrumentsBillTo. + Bill to State. + + :param administrative_area: The administrative_area of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._administrative_area = administrative_area + + @property + def postal_code(self): + """ + Gets the postal_code of this Tmsv1paymentinstrumentsBillTo. + Bill to Postal Code. + + :return: The postal_code of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this Tmsv1paymentinstrumentsBillTo. + Bill to Postal Code. + + :param postal_code: The postal_code of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._postal_code = postal_code + + @property + def country(self): + """ + Gets the country of this Tmsv1paymentinstrumentsBillTo. + Bill to Country. Accepts input in the ISO 3166-1 standard, stores as ISO 3166-1-Alpha-2 + + :return: The country of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this Tmsv1paymentinstrumentsBillTo. + Bill to Country. Accepts input in the ISO 3166-1 standard, stores as ISO 3166-1-Alpha-2 + + :param country: The country of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._country = country + + @property + def email(self): + """ + Gets the email of this Tmsv1paymentinstrumentsBillTo. + Valid Bill to Email. + + :return: The email of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this Tmsv1paymentinstrumentsBillTo. + Valid Bill to Email. + + :param email: The email of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._email = email + + @property + def phone_number(self): + """ + Gets the phone_number of this Tmsv1paymentinstrumentsBillTo. + Bill to Phone Number. + + :return: The phone_number of this Tmsv1paymentinstrumentsBillTo. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this Tmsv1paymentinstrumentsBillTo. + Bill to Phone Number. + + :param phone_number: The phone_number of this Tmsv1paymentinstrumentsBillTo. + :type: str + """ + + self._phone_number = phone_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsBillTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_buyer_information.py b/CyberSource/models/tmsv1paymentinstruments_buyer_information.py new file mode 100644 index 00000000..d5ead9dd --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_buyer_information.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsBuyerInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'company_tax_id': 'str', + 'currency': 'str', + 'date_o_birth': 'str', + 'personal_identification': 'list[Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification]' + } + + attribute_map = { + 'company_tax_id': 'companyTaxID', + 'currency': 'currency', + 'date_o_birth': 'dateOBirth', + 'personal_identification': 'personalIdentification' + } + + def __init__(self, company_tax_id=None, currency=None, date_o_birth=None, personal_identification=None): + """ + Tmsv1paymentinstrumentsBuyerInformation - a model defined in Swagger + """ + + self._company_tax_id = None + self._currency = None + self._date_o_birth = None + self._personal_identification = None + + if company_tax_id is not None: + self.company_tax_id = company_tax_id + if currency is not None: + self.currency = currency + if date_o_birth is not None: + self.date_o_birth = date_o_birth + if personal_identification is not None: + self.personal_identification = personal_identification + + @property + def company_tax_id(self): + """ + Gets the company_tax_id of this Tmsv1paymentinstrumentsBuyerInformation. + Company Tax ID. + + :return: The company_tax_id of this Tmsv1paymentinstrumentsBuyerInformation. + :rtype: str + """ + return self._company_tax_id + + @company_tax_id.setter + def company_tax_id(self, company_tax_id): + """ + Sets the company_tax_id of this Tmsv1paymentinstrumentsBuyerInformation. + Company Tax ID. + + :param company_tax_id: The company_tax_id of this Tmsv1paymentinstrumentsBuyerInformation. + :type: str + """ + + self._company_tax_id = company_tax_id + + @property + def currency(self): + """ + Gets the currency of this Tmsv1paymentinstrumentsBuyerInformation. + Currency. Accepts input in the ISO 4217 standard, stores as ISO 4217 Alpha + + :return: The currency of this Tmsv1paymentinstrumentsBuyerInformation. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this Tmsv1paymentinstrumentsBuyerInformation. + Currency. Accepts input in the ISO 4217 standard, stores as ISO 4217 Alpha + + :param currency: The currency of this Tmsv1paymentinstrumentsBuyerInformation. + :type: str + """ + + self._currency = currency + + @property + def date_o_birth(self): + """ + Gets the date_o_birth of this Tmsv1paymentinstrumentsBuyerInformation. + Date of birth YYYY-MM-DD. + + :return: The date_o_birth of this Tmsv1paymentinstrumentsBuyerInformation. + :rtype: str + """ + return self._date_o_birth + + @date_o_birth.setter + def date_o_birth(self, date_o_birth): + """ + Sets the date_o_birth of this Tmsv1paymentinstrumentsBuyerInformation. + Date of birth YYYY-MM-DD. + + :param date_o_birth: The date_o_birth of this Tmsv1paymentinstrumentsBuyerInformation. + :type: str + """ + + self._date_o_birth = date_o_birth + + @property + def personal_identification(self): + """ + Gets the personal_identification of this Tmsv1paymentinstrumentsBuyerInformation. + + :return: The personal_identification of this Tmsv1paymentinstrumentsBuyerInformation. + :rtype: list[Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification] + """ + return self._personal_identification + + @personal_identification.setter + def personal_identification(self, personal_identification): + """ + Sets the personal_identification of this Tmsv1paymentinstrumentsBuyerInformation. + + :param personal_identification: The personal_identification of this Tmsv1paymentinstrumentsBuyerInformation. + :type: list[Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification] + """ + + self._personal_identification = personal_identification + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsBuyerInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_buyer_information_issued_by.py b/CyberSource/models/tmsv1paymentinstruments_buyer_information_issued_by.py new file mode 100644 index 00000000..ebaddf03 --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_buyer_information_issued_by.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsBuyerInformationIssuedBy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'administrative_area': 'str' + } + + attribute_map = { + 'administrative_area': 'administrativeArea' + } + + def __init__(self, administrative_area=None): + """ + Tmsv1paymentinstrumentsBuyerInformationIssuedBy - a model defined in Swagger + """ + + self._administrative_area = None + + if administrative_area is not None: + self.administrative_area = administrative_area + + @property + def administrative_area(self): + """ + Gets the administrative_area of this Tmsv1paymentinstrumentsBuyerInformationIssuedBy. + State or province where the identification was issued. + + :return: The administrative_area of this Tmsv1paymentinstrumentsBuyerInformationIssuedBy. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this Tmsv1paymentinstrumentsBuyerInformationIssuedBy. + State or province where the identification was issued. + + :param administrative_area: The administrative_area of this Tmsv1paymentinstrumentsBuyerInformationIssuedBy. + :type: str + """ + + self._administrative_area = administrative_area + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsBuyerInformationIssuedBy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_buyer_information_personal_identification.py b/CyberSource/models/tmsv1paymentinstruments_buyer_information_personal_identification.py new file mode 100644 index 00000000..9487b649 --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_buyer_information_personal_identification.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'type': 'str', + 'issued_by': 'Tmsv1paymentinstrumentsBuyerInformationIssuedBy' + } + + attribute_map = { + 'id': 'id', + 'type': 'type', + 'issued_by': 'issuedBy' + } + + def __init__(self, id=None, type=None, issued_by=None): + """ + Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification - a model defined in Swagger + """ + + self._id = None + self._type = None + self._issued_by = None + + if id is not None: + self.id = id + if type is not None: + self.type = type + if issued_by is not None: + self.issued_by = issued_by + + @property + def id(self): + """ + Gets the id of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + Identification Number. + + :return: The id of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + Identification Number. + + :param id: The id of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + :type: str + """ + + self._id = id + + @property + def type(self): + """ + Gets the type of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + Type of personal identification. + + :return: The type of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + Type of personal identification. + + :param type: The type of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + :type: str + """ + + self._type = type + + @property + def issued_by(self): + """ + Gets the issued_by of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + + :return: The issued_by of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + :rtype: Tmsv1paymentinstrumentsBuyerInformationIssuedBy + """ + return self._issued_by + + @issued_by.setter + def issued_by(self, issued_by): + """ + Sets the issued_by of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + + :param issued_by: The issued_by of this Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification. + :type: Tmsv1paymentinstrumentsBuyerInformationIssuedBy + """ + + self._issued_by = issued_by + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_card.py b/CyberSource/models/tmsv1paymentinstruments_card.py new file mode 100644 index 00000000..8d586dfa --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_card.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsCard(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'expiration_month': 'str', + 'expiration_year': 'str', + 'type': 'str', + 'issue_number': 'str', + 'start_month': 'str', + 'start_year': 'str', + 'use_as': 'str' + } + + attribute_map = { + 'expiration_month': 'expirationMonth', + 'expiration_year': 'expirationYear', + 'type': 'type', + 'issue_number': 'issueNumber', + 'start_month': 'startMonth', + 'start_year': 'startYear', + 'use_as': 'useAs' + } + + def __init__(self, expiration_month=None, expiration_year=None, type=None, issue_number=None, start_month=None, start_year=None, use_as=None): + """ + Tmsv1paymentinstrumentsCard - a model defined in Swagger + """ + + self._expiration_month = None + self._expiration_year = None + self._type = None + self._issue_number = None + self._start_month = None + self._start_year = None + self._use_as = None + + if expiration_month is not None: + self.expiration_month = expiration_month + if expiration_year is not None: + self.expiration_year = expiration_year + if type is not None: + self.type = type + if issue_number is not None: + self.issue_number = issue_number + if start_month is not None: + self.start_month = start_month + if start_year is not None: + self.start_year = start_year + if use_as is not None: + self.use_as = use_as + + @property + def expiration_month(self): + """ + Gets the expiration_month of this Tmsv1paymentinstrumentsCard. + Credit card expiration month. + + :return: The expiration_month of this Tmsv1paymentinstrumentsCard. + :rtype: str + """ + return self._expiration_month + + @expiration_month.setter + def expiration_month(self, expiration_month): + """ + Sets the expiration_month of this Tmsv1paymentinstrumentsCard. + Credit card expiration month. + + :param expiration_month: The expiration_month of this Tmsv1paymentinstrumentsCard. + :type: str + """ + + self._expiration_month = expiration_month + + @property + def expiration_year(self): + """ + Gets the expiration_year of this Tmsv1paymentinstrumentsCard. + Credit card expiration year. + + :return: The expiration_year of this Tmsv1paymentinstrumentsCard. + :rtype: str + """ + return self._expiration_year + + @expiration_year.setter + def expiration_year(self, expiration_year): + """ + Sets the expiration_year of this Tmsv1paymentinstrumentsCard. + Credit card expiration year. + + :param expiration_year: The expiration_year of this Tmsv1paymentinstrumentsCard. + :type: str + """ + + self._expiration_year = expiration_year + + @property + def type(self): + """ + Gets the type of this Tmsv1paymentinstrumentsCard. + Credit card brand. + + :return: The type of this Tmsv1paymentinstrumentsCard. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this Tmsv1paymentinstrumentsCard. + Credit card brand. + + :param type: The type of this Tmsv1paymentinstrumentsCard. + :type: str + """ + allowed_values = ["visa", "mastercard", "american express", "discover", "diners club", "carte blanche", "jcb", "optima", "twinpay credit", "twinpay debit", "walmart", "enroute", "lowes consumer", "home depot consumer", "mbna", "dicks sportswear", "casual corner", "sears", "jal", "disney", "maestro uk domestic", "sams club consumer", "sams club business", "nicos", "bill me later", "bebe", "restoration hardware", "delta online", "solo", "visa electron", "dankort", "laser", "carte bleue", "carta si", "pinless debit", "encoded account", "uatp", "household", "maestro international", "ge money uk", "korean cards", "style", "jcrew", "payease china processing ewallet", "payease china processing bank transfer", "meijer private label", "hipercard", "aura", "redecard", "orico", "elo", "capital one private label", "synchrony private label", "china union pay"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) + + self._type = type + + @property + def issue_number(self): + """ + Gets the issue_number of this Tmsv1paymentinstrumentsCard. + Credit card issue number. + + :return: The issue_number of this Tmsv1paymentinstrumentsCard. + :rtype: str + """ + return self._issue_number + + @issue_number.setter + def issue_number(self, issue_number): + """ + Sets the issue_number of this Tmsv1paymentinstrumentsCard. + Credit card issue number. + + :param issue_number: The issue_number of this Tmsv1paymentinstrumentsCard. + :type: str + """ + + self._issue_number = issue_number + + @property + def start_month(self): + """ + Gets the start_month of this Tmsv1paymentinstrumentsCard. + Credit card start month. + + :return: The start_month of this Tmsv1paymentinstrumentsCard. + :rtype: str + """ + return self._start_month + + @start_month.setter + def start_month(self, start_month): + """ + Sets the start_month of this Tmsv1paymentinstrumentsCard. + Credit card start month. + + :param start_month: The start_month of this Tmsv1paymentinstrumentsCard. + :type: str + """ + + self._start_month = start_month + + @property + def start_year(self): + """ + Gets the start_year of this Tmsv1paymentinstrumentsCard. + Credit card start year. + + :return: The start_year of this Tmsv1paymentinstrumentsCard. + :rtype: str + """ + return self._start_year + + @start_year.setter + def start_year(self, start_year): + """ + Sets the start_year of this Tmsv1paymentinstrumentsCard. + Credit card start year. + + :param start_year: The start_year of this Tmsv1paymentinstrumentsCard. + :type: str + """ + + self._start_year = start_year + + @property + def use_as(self): + """ + Gets the use_as of this Tmsv1paymentinstrumentsCard. + Card Use As Field. Supported value of \"pinless debit\" only. Only for use with Pinless Debit tokens. + + :return: The use_as of this Tmsv1paymentinstrumentsCard. + :rtype: str + """ + return self._use_as + + @use_as.setter + def use_as(self, use_as): + """ + Sets the use_as of this Tmsv1paymentinstrumentsCard. + Card Use As Field. Supported value of \"pinless debit\" only. Only for use with Pinless Debit tokens. + + :param use_as: The use_as of this Tmsv1paymentinstrumentsCard. + :type: str + """ + + self._use_as = use_as + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsCard): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_instrument_identifier.py b/CyberSource/models/tmsv1paymentinstruments_instrument_identifier.py new file mode 100644 index 00000000..b862a733 --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_instrument_identifier.py @@ -0,0 +1,323 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsInstrumentIdentifier(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'Tmsv1instrumentidentifiersLinks', + 'object': 'str', + 'state': 'str', + 'id': 'str', + 'card': 'Tmsv1instrumentidentifiersCard', + 'bank_account': 'Tmsv1instrumentidentifiersBankAccount', + 'processing_information': 'Tmsv1instrumentidentifiersProcessingInformation', + 'metadata': 'Tmsv1instrumentidentifiersMetadata' + } + + attribute_map = { + 'links': '_links', + 'object': 'object', + 'state': 'state', + 'id': 'id', + 'card': 'card', + 'bank_account': 'bankAccount', + 'processing_information': 'processingInformation', + 'metadata': 'metadata' + } + + def __init__(self, links=None, object=None, state=None, id=None, card=None, bank_account=None, processing_information=None, metadata=None): + """ + Tmsv1paymentinstrumentsInstrumentIdentifier - a model defined in Swagger + """ + + self._links = None + self._object = None + self._state = None + self._id = None + self._card = None + self._bank_account = None + self._processing_information = None + self._metadata = None + + if links is not None: + self.links = links + if object is not None: + self.object = object + if state is not None: + self.state = state + if id is not None: + self.id = id + if card is not None: + self.card = card + if bank_account is not None: + self.bank_account = bank_account + if processing_information is not None: + self.processing_information = processing_information + if metadata is not None: + self.metadata = metadata + + @property + def links(self): + """ + Gets the links of this Tmsv1paymentinstrumentsInstrumentIdentifier. + + :return: The links of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :rtype: Tmsv1instrumentidentifiersLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this Tmsv1paymentinstrumentsInstrumentIdentifier. + + :param links: The links of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :type: Tmsv1instrumentidentifiersLinks + """ + + self._links = links + + @property + def object(self): + """ + Gets the object of this Tmsv1paymentinstrumentsInstrumentIdentifier. + Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. + + :return: The object of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :rtype: str + """ + return self._object + + @object.setter + def object(self, object): + """ + Sets the object of this Tmsv1paymentinstrumentsInstrumentIdentifier. + Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. + + :param object: The object of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :type: str + """ + allowed_values = ["instrumentIdentifier"] + if object not in allowed_values: + raise ValueError( + "Invalid value for `object` ({0}), must be one of {1}" + .format(object, allowed_values) + ) + + self._object = object + + @property + def state(self): + """ + Gets the state of this Tmsv1paymentinstrumentsInstrumentIdentifier. + Current state of the token. + + :return: The state of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this Tmsv1paymentinstrumentsInstrumentIdentifier. + Current state of the token. + + :param state: The state of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :type: str + """ + allowed_values = ["ACTIVE", "CLOSED"] + if state not in allowed_values: + raise ValueError( + "Invalid value for `state` ({0}), must be one of {1}" + .format(state, allowed_values) + ) + + self._state = state + + @property + def id(self): + """ + Gets the id of this Tmsv1paymentinstrumentsInstrumentIdentifier. + The id of the existing instrument identifier to be linked to the newly created payment instrument. + + :return: The id of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Tmsv1paymentinstrumentsInstrumentIdentifier. + The id of the existing instrument identifier to be linked to the newly created payment instrument. + + :param id: The id of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :type: str + """ + + self._id = id + + @property + def card(self): + """ + Gets the card of this Tmsv1paymentinstrumentsInstrumentIdentifier. + + :return: The card of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :rtype: Tmsv1instrumentidentifiersCard + """ + return self._card + + @card.setter + def card(self, card): + """ + Sets the card of this Tmsv1paymentinstrumentsInstrumentIdentifier. + + :param card: The card of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :type: Tmsv1instrumentidentifiersCard + """ + + self._card = card + + @property + def bank_account(self): + """ + Gets the bank_account of this Tmsv1paymentinstrumentsInstrumentIdentifier. + + :return: The bank_account of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :rtype: Tmsv1instrumentidentifiersBankAccount + """ + return self._bank_account + + @bank_account.setter + def bank_account(self, bank_account): + """ + Sets the bank_account of this Tmsv1paymentinstrumentsInstrumentIdentifier. + + :param bank_account: The bank_account of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :type: Tmsv1instrumentidentifiersBankAccount + """ + + self._bank_account = bank_account + + @property + def processing_information(self): + """ + Gets the processing_information of this Tmsv1paymentinstrumentsInstrumentIdentifier. + + :return: The processing_information of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :rtype: Tmsv1instrumentidentifiersProcessingInformation + """ + return self._processing_information + + @processing_information.setter + def processing_information(self, processing_information): + """ + Sets the processing_information of this Tmsv1paymentinstrumentsInstrumentIdentifier. + + :param processing_information: The processing_information of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :type: Tmsv1instrumentidentifiersProcessingInformation + """ + + self._processing_information = processing_information + + @property + def metadata(self): + """ + Gets the metadata of this Tmsv1paymentinstrumentsInstrumentIdentifier. + + :return: The metadata of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :rtype: Tmsv1instrumentidentifiersMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this Tmsv1paymentinstrumentsInstrumentIdentifier. + + :param metadata: The metadata of this Tmsv1paymentinstrumentsInstrumentIdentifier. + :type: Tmsv1instrumentidentifiersMetadata + """ + + self._metadata = metadata + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsInstrumentIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_merchant_information.py b/CyberSource/models/tmsv1paymentinstruments_merchant_information.py new file mode 100644 index 00000000..f13f6110 --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_merchant_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsMerchantInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_descriptor': 'Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor' + } + + attribute_map = { + 'merchant_descriptor': 'merchantDescriptor' + } + + def __init__(self, merchant_descriptor=None): + """ + Tmsv1paymentinstrumentsMerchantInformation - a model defined in Swagger + """ + + self._merchant_descriptor = None + + if merchant_descriptor is not None: + self.merchant_descriptor = merchant_descriptor + + @property + def merchant_descriptor(self): + """ + Gets the merchant_descriptor of this Tmsv1paymentinstrumentsMerchantInformation. + + :return: The merchant_descriptor of this Tmsv1paymentinstrumentsMerchantInformation. + :rtype: Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor + """ + return self._merchant_descriptor + + @merchant_descriptor.setter + def merchant_descriptor(self, merchant_descriptor): + """ + Sets the merchant_descriptor of this Tmsv1paymentinstrumentsMerchantInformation. + + :param merchant_descriptor: The merchant_descriptor of this Tmsv1paymentinstrumentsMerchantInformation. + :type: Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor + """ + + self._merchant_descriptor = merchant_descriptor + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsMerchantInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_merchant_information_merchant_descriptor.py b/CyberSource/models/tmsv1paymentinstruments_merchant_information_merchant_descriptor.py new file mode 100644 index 00000000..554002da --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_merchant_information_merchant_descriptor.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'alternate_name': 'str' + } + + attribute_map = { + 'alternate_name': 'alternateName' + } + + def __init__(self, alternate_name=None): + """ + Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor - a model defined in Swagger + """ + + self._alternate_name = None + + if alternate_name is not None: + self.alternate_name = alternate_name + + @property + def alternate_name(self): + """ + Gets the alternate_name of this Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor. + Alternate information for your business. This API field overrides the company entry description value in your CyberSource account. + + :return: The alternate_name of this Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._alternate_name + + @alternate_name.setter + def alternate_name(self, alternate_name): + """ + Sets the alternate_name of this Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor. + Alternate information for your business. This API field overrides the company entry description value in your CyberSource account. + + :param alternate_name: The alternate_name of this Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor. + :type: str + """ + + self._alternate_name = alternate_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_processing_information.py b/CyberSource/models/tmsv1paymentinstruments_processing_information.py new file mode 100644 index 00000000..9df87ce7 --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_processing_information.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsProcessingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bill_payment_program_enabled': 'bool', + 'bank_transfer_options': 'Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions' + } + + attribute_map = { + 'bill_payment_program_enabled': 'billPaymentProgramEnabled', + 'bank_transfer_options': 'bankTransferOptions' + } + + def __init__(self, bill_payment_program_enabled=None, bank_transfer_options=None): + """ + Tmsv1paymentinstrumentsProcessingInformation - a model defined in Swagger + """ + + self._bill_payment_program_enabled = None + self._bank_transfer_options = None + + if bill_payment_program_enabled is not None: + self.bill_payment_program_enabled = bill_payment_program_enabled + if bank_transfer_options is not None: + self.bank_transfer_options = bank_transfer_options + + @property + def bill_payment_program_enabled(self): + """ + Gets the bill_payment_program_enabled of this Tmsv1paymentinstrumentsProcessingInformation. + Bill Payment Program Enabled. + + :return: The bill_payment_program_enabled of this Tmsv1paymentinstrumentsProcessingInformation. + :rtype: bool + """ + return self._bill_payment_program_enabled + + @bill_payment_program_enabled.setter + def bill_payment_program_enabled(self, bill_payment_program_enabled): + """ + Sets the bill_payment_program_enabled of this Tmsv1paymentinstrumentsProcessingInformation. + Bill Payment Program Enabled. + + :param bill_payment_program_enabled: The bill_payment_program_enabled of this Tmsv1paymentinstrumentsProcessingInformation. + :type: bool + """ + + self._bill_payment_program_enabled = bill_payment_program_enabled + + @property + def bank_transfer_options(self): + """ + Gets the bank_transfer_options of this Tmsv1paymentinstrumentsProcessingInformation. + + :return: The bank_transfer_options of this Tmsv1paymentinstrumentsProcessingInformation. + :rtype: Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions + """ + return self._bank_transfer_options + + @bank_transfer_options.setter + def bank_transfer_options(self, bank_transfer_options): + """ + Sets the bank_transfer_options of this Tmsv1paymentinstrumentsProcessingInformation. + + :param bank_transfer_options: The bank_transfer_options of this Tmsv1paymentinstrumentsProcessingInformation. + :type: Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions + """ + + self._bank_transfer_options = bank_transfer_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsProcessingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tmsv1paymentinstruments_processing_information_bank_transfer_options.py b/CyberSource/models/tmsv1paymentinstruments_processing_information_bank_transfer_options.py new file mode 100644 index 00000000..d812d7a4 --- /dev/null +++ b/CyberSource/models/tmsv1paymentinstruments_processing_information_bank_transfer_options.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'sec_code': 'str' + } + + attribute_map = { + 'sec_code': 'SECCode' + } + + def __init__(self, sec_code=None): + """ + Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions - a model defined in Swagger + """ + + self._sec_code = None + + if sec_code is not None: + self.sec_code = sec_code + + @property + def sec_code(self): + """ + Gets the sec_code of this Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions. + Authorization method used for the transaction.(acceptable values are CCD, PPD, TEL, WEB). + + :return: The sec_code of this Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions. + :rtype: str + """ + return self._sec_code + + @sec_code.setter + def sec_code(self, sec_code): + """ + Sets the sec_code of this Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions. + Authorization method used for the transaction.(acceptable values are CCD, PPD, TEL, WEB). + + :param sec_code: The sec_code of this Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions. + :type: str + """ + + self._sec_code = sec_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tokenize_parameters.py b/CyberSource/models/tokenize_parameters.py index 71680bf6..855319a2 100644 --- a/CyberSource/models/tokenize_parameters.py +++ b/CyberSource/models/tokenize_parameters.py @@ -32,7 +32,7 @@ class TokenizeParameters(object): """ swagger_types = { 'key_id': 'str', - 'card_info': 'Paymentsflexv1tokensCardInfo' + 'card_info': 'Flexv1tokensCardInfo' } attribute_map = { @@ -82,7 +82,7 @@ def card_info(self): Gets the card_info of this TokenizeParameters. :return: The card_info of this TokenizeParameters. - :rtype: Paymentsflexv1tokensCardInfo + :rtype: Flexv1tokensCardInfo """ return self._card_info @@ -92,7 +92,7 @@ def card_info(self, card_info): Sets the card_info of this TokenizeParameters. :param card_info: The card_info of this TokenizeParameters. - :type: Paymentsflexv1tokensCardInfo + :type: Flexv1tokensCardInfo """ self._card_info = card_info diff --git a/CyberSource/models/tokenize_request.py b/CyberSource/models/tokenize_request.py index 2f4834d9..6fdf49db 100644 --- a/CyberSource/models/tokenize_request.py +++ b/CyberSource/models/tokenize_request.py @@ -32,7 +32,7 @@ class TokenizeRequest(object): """ swagger_types = { 'key_id': 'str', - 'card_info': 'Paymentsflexv1tokensCardInfo' + 'card_info': 'Flexv1tokensCardInfo' } attribute_map = { @@ -82,7 +82,7 @@ def card_info(self): Gets the card_info of this TokenizeRequest. :return: The card_info of this TokenizeRequest. - :rtype: Paymentsflexv1tokensCardInfo + :rtype: Flexv1tokensCardInfo """ return self._card_info @@ -92,7 +92,7 @@ def card_info(self, card_info): Sets the card_info of this TokenizeRequest. :param card_info: The card_info of this TokenizeRequest. - :type: Paymentsflexv1tokensCardInfo + :type: Flexv1tokensCardInfo """ self._card_info = card_info diff --git a/CyberSource/models/tss_v2_transactions_get200_response.py b/CyberSource/models/tss_v2_transactions_get200_response.py new file mode 100644 index 00000000..e338de21 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response.py @@ -0,0 +1,741 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'root_id': 'str', + 'reconciliation_id': 'str', + 'merchant_id': 'str', + 'status': 'str', + 'submit_time_utc': 'str', + 'application_information': 'TssV2TransactionsGet200ResponseApplicationInformation', + 'buyer_information': 'TssV2TransactionsGet200ResponseBuyerInformation', + 'client_reference_information': 'TssV2TransactionsGet200ResponseClientReferenceInformation', + 'consumer_authentication_information': 'TssV2TransactionsGet200ResponseConsumerAuthenticationInformation', + 'device_information': 'TssV2TransactionsGet200ResponseDeviceInformation', + 'error_information': 'TssV2TransactionsGet200ResponseErrorInformation', + 'installment_information': 'TssV2TransactionsGet200ResponseInstallmentInformation', + 'fraud_marking_information': 'TssV2TransactionsGet200ResponseFraudMarkingInformation', + 'merchant_defined_information': 'list[TssV2TransactionsGet200ResponseMerchantDefinedInformation]', + 'merchant_information': 'TssV2TransactionsGet200ResponseMerchantInformation', + 'order_information': 'TssV2TransactionsGet200ResponseOrderInformation', + 'payment_information': 'TssV2TransactionsGet200ResponsePaymentInformation', + 'processing_information': 'TssV2TransactionsGet200ResponseProcessingInformation', + 'processor_information': 'TssV2TransactionsGet200ResponseProcessorInformation', + 'point_of_sale_information': 'TssV2TransactionsGet200ResponsePointOfSaleInformation', + 'risk_information': 'TssV2TransactionsGet200ResponseRiskInformation', + 'sender_information': 'TssV2TransactionsGet200ResponseSenderInformation', + 'links': 'PtsV2PaymentsReversalsPost201ResponseLinks' + } + + attribute_map = { + 'id': 'id', + 'root_id': 'rootId', + 'reconciliation_id': 'reconciliationId', + 'merchant_id': 'merchantId', + 'status': 'status', + 'submit_time_utc': 'submitTimeUtc', + 'application_information': 'applicationInformation', + 'buyer_information': 'buyerInformation', + 'client_reference_information': 'clientReferenceInformation', + 'consumer_authentication_information': 'consumerAuthenticationInformation', + 'device_information': 'deviceInformation', + 'error_information': 'errorInformation', + 'installment_information': 'installmentInformation', + 'fraud_marking_information': 'fraudMarkingInformation', + 'merchant_defined_information': 'merchantDefinedInformation', + 'merchant_information': 'merchantInformation', + 'order_information': 'orderInformation', + 'payment_information': 'paymentInformation', + 'processing_information': 'processingInformation', + 'processor_information': 'processorInformation', + 'point_of_sale_information': 'pointOfSaleInformation', + 'risk_information': 'riskInformation', + 'sender_information': 'senderInformation', + 'links': '_links' + } + + def __init__(self, id=None, root_id=None, reconciliation_id=None, merchant_id=None, status=None, submit_time_utc=None, application_information=None, buyer_information=None, client_reference_information=None, consumer_authentication_information=None, device_information=None, error_information=None, installment_information=None, fraud_marking_information=None, merchant_defined_information=None, merchant_information=None, order_information=None, payment_information=None, processing_information=None, processor_information=None, point_of_sale_information=None, risk_information=None, sender_information=None, links=None): + """ + TssV2TransactionsGet200Response - a model defined in Swagger + """ + + self._id = None + self._root_id = None + self._reconciliation_id = None + self._merchant_id = None + self._status = None + self._submit_time_utc = None + self._application_information = None + self._buyer_information = None + self._client_reference_information = None + self._consumer_authentication_information = None + self._device_information = None + self._error_information = None + self._installment_information = None + self._fraud_marking_information = None + self._merchant_defined_information = None + self._merchant_information = None + self._order_information = None + self._payment_information = None + self._processing_information = None + self._processor_information = None + self._point_of_sale_information = None + self._risk_information = None + self._sender_information = None + self._links = None + + if id is not None: + self.id = id + if root_id is not None: + self.root_id = root_id + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if merchant_id is not None: + self.merchant_id = merchant_id + if status is not None: + self.status = status + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if application_information is not None: + self.application_information = application_information + if buyer_information is not None: + self.buyer_information = buyer_information + if client_reference_information is not None: + self.client_reference_information = client_reference_information + if consumer_authentication_information is not None: + self.consumer_authentication_information = consumer_authentication_information + if device_information is not None: + self.device_information = device_information + if error_information is not None: + self.error_information = error_information + if installment_information is not None: + self.installment_information = installment_information + if fraud_marking_information is not None: + self.fraud_marking_information = fraud_marking_information + if merchant_defined_information is not None: + self.merchant_defined_information = merchant_defined_information + if merchant_information is not None: + self.merchant_information = merchant_information + if order_information is not None: + self.order_information = order_information + if payment_information is not None: + self.payment_information = payment_information + if processing_information is not None: + self.processing_information = processing_information + if processor_information is not None: + self.processor_information = processor_information + if point_of_sale_information is not None: + self.point_of_sale_information = point_of_sale_information + if risk_information is not None: + self.risk_information = risk_information + if sender_information is not None: + self.sender_information = sender_information + if links is not None: + self.links = links + + @property + def id(self): + """ + Gets the id of this TssV2TransactionsGet200Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :return: The id of this TssV2TransactionsGet200Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TssV2TransactionsGet200Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :param id: The id of this TssV2TransactionsGet200Response. + :type: str + """ + if id is not None and len(id) > 26: + raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") + + self._id = id + + @property + def root_id(self): + """ + Gets the root_id of this TssV2TransactionsGet200Response. + Payment Request Id + + :return: The root_id of this TssV2TransactionsGet200Response. + :rtype: str + """ + return self._root_id + + @root_id.setter + def root_id(self, root_id): + """ + Sets the root_id of this TssV2TransactionsGet200Response. + Payment Request Id + + :param root_id: The root_id of this TssV2TransactionsGet200Response. + :type: str + """ + if root_id is not None and len(root_id) > 26: + raise ValueError("Invalid value for `root_id`, length must be less than or equal to `26`") + + self._root_id = root_id + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this TssV2TransactionsGet200Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :return: The reconciliation_id of this TssV2TransactionsGet200Response. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this TssV2TransactionsGet200Response. + The reconciliation id for the submitted transaction. This value is not returned for all processors. + + :param reconciliation_id: The reconciliation_id of this TssV2TransactionsGet200Response. + :type: str + """ + if reconciliation_id is not None and len(reconciliation_id) > 60: + raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") + + self._reconciliation_id = reconciliation_id + + @property + def merchant_id(self): + """ + Gets the merchant_id of this TssV2TransactionsGet200Response. + The description for this field is not available. + + :return: The merchant_id of this TssV2TransactionsGet200Response. + :rtype: str + """ + return self._merchant_id + + @merchant_id.setter + def merchant_id(self, merchant_id): + """ + Sets the merchant_id of this TssV2TransactionsGet200Response. + The description for this field is not available. + + :param merchant_id: The merchant_id of this TssV2TransactionsGet200Response. + :type: str + """ + + self._merchant_id = merchant_id + + @property + def status(self): + """ + Gets the status of this TssV2TransactionsGet200Response. + The status of the submitted transaction. + + :return: The status of this TssV2TransactionsGet200Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this TssV2TransactionsGet200Response. + The status of the submitted transaction. + + :param status: The status of this TssV2TransactionsGet200Response. + :type: str + """ + + self._status = status + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this TssV2TransactionsGet200Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this TssV2TransactionsGet200Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this TssV2TransactionsGet200Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this TssV2TransactionsGet200Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def application_information(self): + """ + Gets the application_information of this TssV2TransactionsGet200Response. + + :return: The application_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseApplicationInformation + """ + return self._application_information + + @application_information.setter + def application_information(self, application_information): + """ + Sets the application_information of this TssV2TransactionsGet200Response. + + :param application_information: The application_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseApplicationInformation + """ + + self._application_information = application_information + + @property + def buyer_information(self): + """ + Gets the buyer_information of this TssV2TransactionsGet200Response. + + :return: The buyer_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseBuyerInformation + """ + return self._buyer_information + + @buyer_information.setter + def buyer_information(self, buyer_information): + """ + Sets the buyer_information of this TssV2TransactionsGet200Response. + + :param buyer_information: The buyer_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseBuyerInformation + """ + + self._buyer_information = buyer_information + + @property + def client_reference_information(self): + """ + Gets the client_reference_information of this TssV2TransactionsGet200Response. + + :return: The client_reference_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseClientReferenceInformation + """ + return self._client_reference_information + + @client_reference_information.setter + def client_reference_information(self, client_reference_information): + """ + Sets the client_reference_information of this TssV2TransactionsGet200Response. + + :param client_reference_information: The client_reference_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseClientReferenceInformation + """ + + self._client_reference_information = client_reference_information + + @property + def consumer_authentication_information(self): + """ + Gets the consumer_authentication_information of this TssV2TransactionsGet200Response. + + :return: The consumer_authentication_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseConsumerAuthenticationInformation + """ + return self._consumer_authentication_information + + @consumer_authentication_information.setter + def consumer_authentication_information(self, consumer_authentication_information): + """ + Sets the consumer_authentication_information of this TssV2TransactionsGet200Response. + + :param consumer_authentication_information: The consumer_authentication_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseConsumerAuthenticationInformation + """ + + self._consumer_authentication_information = consumer_authentication_information + + @property + def device_information(self): + """ + Gets the device_information of this TssV2TransactionsGet200Response. + + :return: The device_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseDeviceInformation + """ + return self._device_information + + @device_information.setter + def device_information(self, device_information): + """ + Sets the device_information of this TssV2TransactionsGet200Response. + + :param device_information: The device_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseDeviceInformation + """ + + self._device_information = device_information + + @property + def error_information(self): + """ + Gets the error_information of this TssV2TransactionsGet200Response. + + :return: The error_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseErrorInformation + """ + return self._error_information + + @error_information.setter + def error_information(self, error_information): + """ + Sets the error_information of this TssV2TransactionsGet200Response. + + :param error_information: The error_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseErrorInformation + """ + + self._error_information = error_information + + @property + def installment_information(self): + """ + Gets the installment_information of this TssV2TransactionsGet200Response. + + :return: The installment_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseInstallmentInformation + """ + return self._installment_information + + @installment_information.setter + def installment_information(self, installment_information): + """ + Sets the installment_information of this TssV2TransactionsGet200Response. + + :param installment_information: The installment_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseInstallmentInformation + """ + + self._installment_information = installment_information + + @property + def fraud_marking_information(self): + """ + Gets the fraud_marking_information of this TssV2TransactionsGet200Response. + + :return: The fraud_marking_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseFraudMarkingInformation + """ + return self._fraud_marking_information + + @fraud_marking_information.setter + def fraud_marking_information(self, fraud_marking_information): + """ + Sets the fraud_marking_information of this TssV2TransactionsGet200Response. + + :param fraud_marking_information: The fraud_marking_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseFraudMarkingInformation + """ + + self._fraud_marking_information = fraud_marking_information + + @property + def merchant_defined_information(self): + """ + Gets the merchant_defined_information of this TssV2TransactionsGet200Response. + The description for this field is not available. + + :return: The merchant_defined_information of this TssV2TransactionsGet200Response. + :rtype: list[TssV2TransactionsGet200ResponseMerchantDefinedInformation] + """ + return self._merchant_defined_information + + @merchant_defined_information.setter + def merchant_defined_information(self, merchant_defined_information): + """ + Sets the merchant_defined_information of this TssV2TransactionsGet200Response. + The description for this field is not available. + + :param merchant_defined_information: The merchant_defined_information of this TssV2TransactionsGet200Response. + :type: list[TssV2TransactionsGet200ResponseMerchantDefinedInformation] + """ + + self._merchant_defined_information = merchant_defined_information + + @property + def merchant_information(self): + """ + Gets the merchant_information of this TssV2TransactionsGet200Response. + + :return: The merchant_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseMerchantInformation + """ + return self._merchant_information + + @merchant_information.setter + def merchant_information(self, merchant_information): + """ + Sets the merchant_information of this TssV2TransactionsGet200Response. + + :param merchant_information: The merchant_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseMerchantInformation + """ + + self._merchant_information = merchant_information + + @property + def order_information(self): + """ + Gets the order_information of this TssV2TransactionsGet200Response. + + :return: The order_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseOrderInformation + """ + return self._order_information + + @order_information.setter + def order_information(self, order_information): + """ + Sets the order_information of this TssV2TransactionsGet200Response. + + :param order_information: The order_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseOrderInformation + """ + + self._order_information = order_information + + @property + def payment_information(self): + """ + Gets the payment_information of this TssV2TransactionsGet200Response. + + :return: The payment_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponsePaymentInformation + """ + return self._payment_information + + @payment_information.setter + def payment_information(self, payment_information): + """ + Sets the payment_information of this TssV2TransactionsGet200Response. + + :param payment_information: The payment_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponsePaymentInformation + """ + + self._payment_information = payment_information + + @property + def processing_information(self): + """ + Gets the processing_information of this TssV2TransactionsGet200Response. + + :return: The processing_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseProcessingInformation + """ + return self._processing_information + + @processing_information.setter + def processing_information(self, processing_information): + """ + Sets the processing_information of this TssV2TransactionsGet200Response. + + :param processing_information: The processing_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseProcessingInformation + """ + + self._processing_information = processing_information + + @property + def processor_information(self): + """ + Gets the processor_information of this TssV2TransactionsGet200Response. + + :return: The processor_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseProcessorInformation + """ + return self._processor_information + + @processor_information.setter + def processor_information(self, processor_information): + """ + Sets the processor_information of this TssV2TransactionsGet200Response. + + :param processor_information: The processor_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseProcessorInformation + """ + + self._processor_information = processor_information + + @property + def point_of_sale_information(self): + """ + Gets the point_of_sale_information of this TssV2TransactionsGet200Response. + + :return: The point_of_sale_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponsePointOfSaleInformation + """ + return self._point_of_sale_information + + @point_of_sale_information.setter + def point_of_sale_information(self, point_of_sale_information): + """ + Sets the point_of_sale_information of this TssV2TransactionsGet200Response. + + :param point_of_sale_information: The point_of_sale_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponsePointOfSaleInformation + """ + + self._point_of_sale_information = point_of_sale_information + + @property + def risk_information(self): + """ + Gets the risk_information of this TssV2TransactionsGet200Response. + + :return: The risk_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseRiskInformation + """ + return self._risk_information + + @risk_information.setter + def risk_information(self, risk_information): + """ + Sets the risk_information of this TssV2TransactionsGet200Response. + + :param risk_information: The risk_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseRiskInformation + """ + + self._risk_information = risk_information + + @property + def sender_information(self): + """ + Gets the sender_information of this TssV2TransactionsGet200Response. + + :return: The sender_information of this TssV2TransactionsGet200Response. + :rtype: TssV2TransactionsGet200ResponseSenderInformation + """ + return self._sender_information + + @sender_information.setter + def sender_information(self, sender_information): + """ + Sets the sender_information of this TssV2TransactionsGet200Response. + + :param sender_information: The sender_information of this TssV2TransactionsGet200Response. + :type: TssV2TransactionsGet200ResponseSenderInformation + """ + + self._sender_information = sender_information + + @property + def links(self): + """ + Gets the links of this TssV2TransactionsGet200Response. + + :return: The links of this TssV2TransactionsGet200Response. + :rtype: PtsV2PaymentsReversalsPost201ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this TssV2TransactionsGet200Response. + + :param links: The links of this TssV2TransactionsGet200Response. + :type: PtsV2PaymentsReversalsPost201ResponseLinks + """ + + self._links = links + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_application_information.py b/CyberSource/models/tss_v2_transactions_get200_response_application_information.py new file mode 100644 index 00000000..efcb4617 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_application_information.py @@ -0,0 +1,235 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseApplicationInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'status': 'str', + 'reason_code': 'str', + 'r_code': 'str', + 'r_flag': 'str', + 'applications': 'list[TssV2TransactionsGet200ResponseApplicationInformationApplications]' + } + + attribute_map = { + 'status': 'status', + 'reason_code': 'reasonCode', + 'r_code': 'rCode', + 'r_flag': 'rFlag', + 'applications': 'applications' + } + + def __init__(self, status=None, reason_code=None, r_code=None, r_flag=None, applications=None): + """ + TssV2TransactionsGet200ResponseApplicationInformation - a model defined in Swagger + """ + + self._status = None + self._reason_code = None + self._r_code = None + self._r_flag = None + self._applications = None + + if status is not None: + self.status = status + if reason_code is not None: + self.reason_code = reason_code + if r_code is not None: + self.r_code = r_code + if r_flag is not None: + self.r_flag = r_flag + if applications is not None: + self.applications = applications + + @property + def status(self): + """ + Gets the status of this TssV2TransactionsGet200ResponseApplicationInformation. + The status of the submitted transaction. + + :return: The status of this TssV2TransactionsGet200ResponseApplicationInformation. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this TssV2TransactionsGet200ResponseApplicationInformation. + The status of the submitted transaction. + + :param status: The status of this TssV2TransactionsGet200ResponseApplicationInformation. + :type: str + """ + + self._status = status + + @property + def reason_code(self): + """ + Gets the reason_code of this TssV2TransactionsGet200ResponseApplicationInformation. + The description for this field is not available. + + :return: The reason_code of this TssV2TransactionsGet200ResponseApplicationInformation. + :rtype: str + """ + return self._reason_code + + @reason_code.setter + def reason_code(self, reason_code): + """ + Sets the reason_code of this TssV2TransactionsGet200ResponseApplicationInformation. + The description for this field is not available. + + :param reason_code: The reason_code of this TssV2TransactionsGet200ResponseApplicationInformation. + :type: str + """ + + self._reason_code = reason_code + + @property + def r_code(self): + """ + Gets the r_code of this TssV2TransactionsGet200ResponseApplicationInformation. + The description for this field is not available. + + :return: The r_code of this TssV2TransactionsGet200ResponseApplicationInformation. + :rtype: str + """ + return self._r_code + + @r_code.setter + def r_code(self, r_code): + """ + Sets the r_code of this TssV2TransactionsGet200ResponseApplicationInformation. + The description for this field is not available. + + :param r_code: The r_code of this TssV2TransactionsGet200ResponseApplicationInformation. + :type: str + """ + + self._r_code = r_code + + @property + def r_flag(self): + """ + Gets the r_flag of this TssV2TransactionsGet200ResponseApplicationInformation. + The description for this field is not available. + + :return: The r_flag of this TssV2TransactionsGet200ResponseApplicationInformation. + :rtype: str + """ + return self._r_flag + + @r_flag.setter + def r_flag(self, r_flag): + """ + Sets the r_flag of this TssV2TransactionsGet200ResponseApplicationInformation. + The description for this field is not available. + + :param r_flag: The r_flag of this TssV2TransactionsGet200ResponseApplicationInformation. + :type: str + """ + + self._r_flag = r_flag + + @property + def applications(self): + """ + Gets the applications of this TssV2TransactionsGet200ResponseApplicationInformation. + + :return: The applications of this TssV2TransactionsGet200ResponseApplicationInformation. + :rtype: list[TssV2TransactionsGet200ResponseApplicationInformationApplications] + """ + return self._applications + + @applications.setter + def applications(self, applications): + """ + Sets the applications of this TssV2TransactionsGet200ResponseApplicationInformation. + + :param applications: The applications of this TssV2TransactionsGet200ResponseApplicationInformation. + :type: list[TssV2TransactionsGet200ResponseApplicationInformationApplications] + """ + + self._applications = applications + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseApplicationInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_application_information_applications.py b/CyberSource/models/tss_v2_transactions_get200_response_application_information_applications.py new file mode 100644 index 00000000..fe92770d --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_application_information_applications.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseApplicationInformationApplications(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'status': 'str', + 'reason_code': 'str', + 'r_code': 'str', + 'r_flag': 'str', + 'reconciliation_id': 'str', + 'r_message': 'str', + 'return_code': 'str' + } + + attribute_map = { + 'name': 'name', + 'status': 'status', + 'reason_code': 'reasonCode', + 'r_code': 'rCode', + 'r_flag': 'rFlag', + 'reconciliation_id': 'reconciliationId', + 'r_message': 'rMessage', + 'return_code': 'returnCode' + } + + def __init__(self, name=None, status=None, reason_code=None, r_code=None, r_flag=None, reconciliation_id=None, r_message=None, return_code=None): + """ + TssV2TransactionsGet200ResponseApplicationInformationApplications - a model defined in Swagger + """ + + self._name = None + self._status = None + self._reason_code = None + self._r_code = None + self._r_flag = None + self._reconciliation_id = None + self._r_message = None + self._return_code = None + + if name is not None: + self.name = name + if status is not None: + self.status = status + if reason_code is not None: + self.reason_code = reason_code + if r_code is not None: + self.r_code = r_code + if r_flag is not None: + self.r_flag = r_flag + if reconciliation_id is not None: + self.reconciliation_id = reconciliation_id + if r_message is not None: + self.r_message = r_message + if return_code is not None: + self.return_code = return_code + + @property + def name(self): + """ + Gets the name of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :return: The name of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :param name: The name of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :type: str + """ + + self._name = name + + @property + def status(self): + """ + Gets the status of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :return: The status of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :param status: The status of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :type: str + """ + + self._status = status + + @property + def reason_code(self): + """ + Gets the reason_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :return: The reason_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :rtype: str + """ + return self._reason_code + + @reason_code.setter + def reason_code(self, reason_code): + """ + Sets the reason_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :param reason_code: The reason_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :type: str + """ + + self._reason_code = reason_code + + @property + def r_code(self): + """ + Gets the r_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :return: The r_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :rtype: str + """ + return self._r_code + + @r_code.setter + def r_code(self, r_code): + """ + Sets the r_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :param r_code: The r_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :type: str + """ + + self._r_code = r_code + + @property + def r_flag(self): + """ + Gets the r_flag of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :return: The r_flag of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :rtype: str + """ + return self._r_flag + + @r_flag.setter + def r_flag(self, r_flag): + """ + Sets the r_flag of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :param r_flag: The r_flag of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :type: str + """ + + self._r_flag = r_flag + + @property + def reconciliation_id(self): + """ + Gets the reconciliation_id of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :return: The reconciliation_id of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :rtype: str + """ + return self._reconciliation_id + + @reconciliation_id.setter + def reconciliation_id(self, reconciliation_id): + """ + Sets the reconciliation_id of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :param reconciliation_id: The reconciliation_id of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :type: str + """ + + self._reconciliation_id = reconciliation_id + + @property + def r_message(self): + """ + Gets the r_message of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :return: The r_message of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :rtype: str + """ + return self._r_message + + @r_message.setter + def r_message(self, r_message): + """ + Sets the r_message of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :param r_message: The r_message of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :type: str + """ + + self._r_message = r_message + + @property + def return_code(self): + """ + Gets the return_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :return: The return_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :rtype: str + """ + return self._return_code + + @return_code.setter + def return_code(self, return_code): + """ + Sets the return_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + The description for this field is not available. + + :param return_code: The return_code of this TssV2TransactionsGet200ResponseApplicationInformationApplications. + :type: str + """ + + self._return_code = return_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseApplicationInformationApplications): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_buyer_information.py b/CyberSource/models/tss_v2_transactions_get200_response_buyer_information.py new file mode 100644 index 00000000..67d30e55 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_buyer_information.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseBuyerInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_customer_id': 'str', + 'hashed_password': 'str' + } + + attribute_map = { + 'merchant_customer_id': 'merchantCustomerId', + 'hashed_password': 'hashedPassword' + } + + def __init__(self, merchant_customer_id=None, hashed_password=None): + """ + TssV2TransactionsGet200ResponseBuyerInformation - a model defined in Swagger + """ + + self._merchant_customer_id = None + self._hashed_password = None + + if merchant_customer_id is not None: + self.merchant_customer_id = merchant_customer_id + if hashed_password is not None: + self.hashed_password = hashed_password + + @property + def merchant_customer_id(self): + """ + Gets the merchant_customer_id of this TssV2TransactionsGet200ResponseBuyerInformation. + Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The merchant_customer_id of this TssV2TransactionsGet200ResponseBuyerInformation. + :rtype: str + """ + return self._merchant_customer_id + + @merchant_customer_id.setter + def merchant_customer_id(self, merchant_customer_id): + """ + Sets the merchant_customer_id of this TssV2TransactionsGet200ResponseBuyerInformation. + Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param merchant_customer_id: The merchant_customer_id of this TssV2TransactionsGet200ResponseBuyerInformation. + :type: str + """ + if merchant_customer_id is not None and len(merchant_customer_id) > 100: + raise ValueError("Invalid value for `merchant_customer_id`, length must be less than or equal to `100`") + + self._merchant_customer_id = merchant_customer_id + + @property + def hashed_password(self): + """ + Gets the hashed_password of this TssV2TransactionsGet200ResponseBuyerInformation. + The description for this field is not available. + + :return: The hashed_password of this TssV2TransactionsGet200ResponseBuyerInformation. + :rtype: str + """ + return self._hashed_password + + @hashed_password.setter + def hashed_password(self, hashed_password): + """ + Sets the hashed_password of this TssV2TransactionsGet200ResponseBuyerInformation. + The description for this field is not available. + + :param hashed_password: The hashed_password of this TssV2TransactionsGet200ResponseBuyerInformation. + :type: str + """ + if hashed_password is not None and len(hashed_password) > 100: + raise ValueError("Invalid value for `hashed_password`, length must be less than or equal to `100`") + + self._hashed_password = hashed_password + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseBuyerInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_client_reference_information.py b/CyberSource/models/tss_v2_transactions_get200_response_client_reference_information.py new file mode 100644 index 00000000..d48c3c31 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_client_reference_information.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseClientReferenceInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'application_version': 'str', + 'application_name': 'str', + 'application_user': 'str', + 'comments': 'str' + } + + attribute_map = { + 'code': 'code', + 'application_version': 'applicationVersion', + 'application_name': 'applicationName', + 'application_user': 'applicationUser', + 'comments': 'comments' + } + + def __init__(self, code=None, application_version=None, application_name=None, application_user=None, comments=None): + """ + TssV2TransactionsGet200ResponseClientReferenceInformation - a model defined in Swagger + """ + + self._code = None + self._application_version = None + self._application_name = None + self._application_user = None + self._comments = None + + if code is not None: + self.code = code + if application_version is not None: + self.application_version = application_version + if application_name is not None: + self.application_name = application_name + if application_user is not None: + self.application_user = application_user + if comments is not None: + self.comments = comments + + @property + def code(self): + """ + Gets the code of this TssV2TransactionsGet200ResponseClientReferenceInformation. + Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + + :return: The code of this TssV2TransactionsGet200ResponseClientReferenceInformation. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this TssV2TransactionsGet200ResponseClientReferenceInformation. + Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + + :param code: The code of this TssV2TransactionsGet200ResponseClientReferenceInformation. + :type: str + """ + if code is not None and len(code) > 50: + raise ValueError("Invalid value for `code`, length must be less than or equal to `50`") + + self._code = code + + @property + def application_version(self): + """ + Gets the application_version of this TssV2TransactionsGet200ResponseClientReferenceInformation. + The description for this field is not available. + + :return: The application_version of this TssV2TransactionsGet200ResponseClientReferenceInformation. + :rtype: str + """ + return self._application_version + + @application_version.setter + def application_version(self, application_version): + """ + Sets the application_version of this TssV2TransactionsGet200ResponseClientReferenceInformation. + The description for this field is not available. + + :param application_version: The application_version of this TssV2TransactionsGet200ResponseClientReferenceInformation. + :type: str + """ + + self._application_version = application_version + + @property + def application_name(self): + """ + Gets the application_name of this TssV2TransactionsGet200ResponseClientReferenceInformation. + The application name of client which is used to submit the request. + + :return: The application_name of this TssV2TransactionsGet200ResponseClientReferenceInformation. + :rtype: str + """ + return self._application_name + + @application_name.setter + def application_name(self, application_name): + """ + Sets the application_name of this TssV2TransactionsGet200ResponseClientReferenceInformation. + The application name of client which is used to submit the request. + + :param application_name: The application_name of this TssV2TransactionsGet200ResponseClientReferenceInformation. + :type: str + """ + + self._application_name = application_name + + @property + def application_user(self): + """ + Gets the application_user of this TssV2TransactionsGet200ResponseClientReferenceInformation. + The description for this field is not available. + + :return: The application_user of this TssV2TransactionsGet200ResponseClientReferenceInformation. + :rtype: str + """ + return self._application_user + + @application_user.setter + def application_user(self, application_user): + """ + Sets the application_user of this TssV2TransactionsGet200ResponseClientReferenceInformation. + The description for this field is not available. + + :param application_user: The application_user of this TssV2TransactionsGet200ResponseClientReferenceInformation. + :type: str + """ + + self._application_user = application_user + + @property + def comments(self): + """ + Gets the comments of this TssV2TransactionsGet200ResponseClientReferenceInformation. + The description for this field is not available. + + :return: The comments of this TssV2TransactionsGet200ResponseClientReferenceInformation. + :rtype: str + """ + return self._comments + + @comments.setter + def comments(self, comments): + """ + Sets the comments of this TssV2TransactionsGet200ResponseClientReferenceInformation. + The description for this field is not available. + + :param comments: The comments of this TssV2TransactionsGet200ResponseClientReferenceInformation. + :type: str + """ + + self._comments = comments + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseClientReferenceInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_consumer_authentication_information.py b/CyberSource/models/tss_v2_transactions_get200_response_consumer_authentication_information.py new file mode 100644 index 00000000..b15b3f8d --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_consumer_authentication_information.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseConsumerAuthenticationInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'eci_raw': 'str', + 'cavv': 'str', + 'xid': 'str', + 'transaction_id': 'str' + } + + attribute_map = { + 'eci_raw': 'eciRaw', + 'cavv': 'cavv', + 'xid': 'xid', + 'transaction_id': 'transactionId' + } + + def __init__(self, eci_raw=None, cavv=None, xid=None, transaction_id=None): + """ + TssV2TransactionsGet200ResponseConsumerAuthenticationInformation - a model defined in Swagger + """ + + self._eci_raw = None + self._cavv = None + self._xid = None + self._transaction_id = None + + if eci_raw is not None: + self.eci_raw = eci_raw + if cavv is not None: + self.cavv = cavv + if xid is not None: + self.xid = xid + if transaction_id is not None: + self.transaction_id = transaction_id + + @property + def eci_raw(self): + """ + Gets the eci_raw of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + Raw electronic commerce indicator (ECI). + + :return: The eci_raw of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + :rtype: str + """ + return self._eci_raw + + @eci_raw.setter + def eci_raw(self, eci_raw): + """ + Sets the eci_raw of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + Raw electronic commerce indicator (ECI). + + :param eci_raw: The eci_raw of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + :type: str + """ + if eci_raw is not None and len(eci_raw) > 2: + raise ValueError("Invalid value for `eci_raw`, length must be less than or equal to `2`") + + self._eci_raw = eci_raw + + @property + def cavv(self): + """ + Gets the cavv of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + Cardholder authentication verification value (CAVV). + + :return: The cavv of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + :rtype: str + """ + return self._cavv + + @cavv.setter + def cavv(self, cavv): + """ + Sets the cavv of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + Cardholder authentication verification value (CAVV). + + :param cavv: The cavv of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + :type: str + """ + if cavv is not None and len(cavv) > 40: + raise ValueError("Invalid value for `cavv`, length must be less than or equal to `40`") + + self._cavv = cavv + + @property + def xid(self): + """ + Gets the xid of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + Transaction identifier. + + :return: The xid of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + :rtype: str + """ + return self._xid + + @xid.setter + def xid(self, xid): + """ + Sets the xid of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + Transaction identifier. + + :param xid: The xid of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + :type: str + """ + if xid is not None and len(xid) > 40: + raise ValueError("Invalid value for `xid`, length must be less than or equal to `40`") + + self._xid = xid + + @property + def transaction_id(self): + """ + Gets the transaction_id of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + Payer auth Transaction identifier. + + :return: The transaction_id of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + :rtype: str + """ + return self._transaction_id + + @transaction_id.setter + def transaction_id(self, transaction_id): + """ + Sets the transaction_id of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + Payer auth Transaction identifier. + + :param transaction_id: The transaction_id of this TssV2TransactionsGet200ResponseConsumerAuthenticationInformation. + :type: str + """ + + self._transaction_id = transaction_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseConsumerAuthenticationInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_device_information.py b/CyberSource/models/tss_v2_transactions_get200_response_device_information.py new file mode 100644 index 00000000..100d911e --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_device_information.py @@ -0,0 +1,185 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseDeviceInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'ip_address': 'str', + 'host_name': 'str', + 'cookies_accepted': 'str' + } + + attribute_map = { + 'ip_address': 'ipAddress', + 'host_name': 'hostName', + 'cookies_accepted': 'cookiesAccepted' + } + + def __init__(self, ip_address=None, host_name=None, cookies_accepted=None): + """ + TssV2TransactionsGet200ResponseDeviceInformation - a model defined in Swagger + """ + + self._ip_address = None + self._host_name = None + self._cookies_accepted = None + + if ip_address is not None: + self.ip_address = ip_address + if host_name is not None: + self.host_name = host_name + if cookies_accepted is not None: + self.cookies_accepted = cookies_accepted + + @property + def ip_address(self): + """ + Gets the ip_address of this TssV2TransactionsGet200ResponseDeviceInformation. + IP address of the customer. + + :return: The ip_address of this TssV2TransactionsGet200ResponseDeviceInformation. + :rtype: str + """ + return self._ip_address + + @ip_address.setter + def ip_address(self, ip_address): + """ + Sets the ip_address of this TssV2TransactionsGet200ResponseDeviceInformation. + IP address of the customer. + + :param ip_address: The ip_address of this TssV2TransactionsGet200ResponseDeviceInformation. + :type: str + """ + if ip_address is not None and len(ip_address) > 15: + raise ValueError("Invalid value for `ip_address`, length must be less than or equal to `15`") + + self._ip_address = ip_address + + @property + def host_name(self): + """ + Gets the host_name of this TssV2TransactionsGet200ResponseDeviceInformation. + DNS resolved hostname from above _ipAddress_. + + :return: The host_name of this TssV2TransactionsGet200ResponseDeviceInformation. + :rtype: str + """ + return self._host_name + + @host_name.setter + def host_name(self, host_name): + """ + Sets the host_name of this TssV2TransactionsGet200ResponseDeviceInformation. + DNS resolved hostname from above _ipAddress_. + + :param host_name: The host_name of this TssV2TransactionsGet200ResponseDeviceInformation. + :type: str + """ + if host_name is not None and len(host_name) > 60: + raise ValueError("Invalid value for `host_name`, length must be less than or equal to `60`") + + self._host_name = host_name + + @property + def cookies_accepted(self): + """ + Gets the cookies_accepted of this TssV2TransactionsGet200ResponseDeviceInformation. + The description for this field is not available. + + :return: The cookies_accepted of this TssV2TransactionsGet200ResponseDeviceInformation. + :rtype: str + """ + return self._cookies_accepted + + @cookies_accepted.setter + def cookies_accepted(self, cookies_accepted): + """ + Sets the cookies_accepted of this TssV2TransactionsGet200ResponseDeviceInformation. + The description for this field is not available. + + :param cookies_accepted: The cookies_accepted of this TssV2TransactionsGet200ResponseDeviceInformation. + :type: str + """ + + self._cookies_accepted = cookies_accepted + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseDeviceInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_error_information.py b/CyberSource/models/tss_v2_transactions_get200_response_error_information.py new file mode 100644 index 00000000..4d3a0bc2 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_error_information.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseErrorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reason': 'str', + 'message': 'str', + 'details': 'list[PtsV2PaymentsPost201ResponseErrorInformationDetails]' + } + + attribute_map = { + 'reason': 'reason', + 'message': 'message', + 'details': 'details' + } + + def __init__(self, reason=None, message=None, details=None): + """ + TssV2TransactionsGet200ResponseErrorInformation - a model defined in Swagger + """ + + self._reason = None + self._message = None + self._details = None + + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + if details is not None: + self.details = details + + @property + def reason(self): + """ + Gets the reason of this TssV2TransactionsGet200ResponseErrorInformation. + The description for this field is not available. + + :return: The reason of this TssV2TransactionsGet200ResponseErrorInformation. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this TssV2TransactionsGet200ResponseErrorInformation. + The description for this field is not available. + + :param reason: The reason of this TssV2TransactionsGet200ResponseErrorInformation. + :type: str + """ + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this TssV2TransactionsGet200ResponseErrorInformation. + The description for this field is not available. + + :return: The message of this TssV2TransactionsGet200ResponseErrorInformation. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this TssV2TransactionsGet200ResponseErrorInformation. + The description for this field is not available. + + :param message: The message of this TssV2TransactionsGet200ResponseErrorInformation. + :type: str + """ + + self._message = message + + @property + def details(self): + """ + Gets the details of this TssV2TransactionsGet200ResponseErrorInformation. + + :return: The details of this TssV2TransactionsGet200ResponseErrorInformation. + :rtype: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this TssV2TransactionsGet200ResponseErrorInformation. + + :param details: The details of this TssV2TransactionsGet200ResponseErrorInformation. + :type: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + + self._details = details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseErrorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_fraud_marking_information.py b/CyberSource/models/tss_v2_transactions_get200_response_fraud_marking_information.py new file mode 100644 index 00000000..92896e90 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_fraud_marking_information.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseFraudMarkingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reason': 'str' + } + + attribute_map = { + 'reason': 'reason' + } + + def __init__(self, reason=None): + """ + TssV2TransactionsGet200ResponseFraudMarkingInformation - a model defined in Swagger + """ + + self._reason = None + + if reason is not None: + self.reason = reason + + @property + def reason(self): + """ + Gets the reason of this TssV2TransactionsGet200ResponseFraudMarkingInformation. + The description for this field is not available. + + :return: The reason of this TssV2TransactionsGet200ResponseFraudMarkingInformation. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this TssV2TransactionsGet200ResponseFraudMarkingInformation. + The description for this field is not available. + + :param reason: The reason of this TssV2TransactionsGet200ResponseFraudMarkingInformation. + :type: str + """ + + self._reason = reason + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseFraudMarkingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_installment_information.py b/CyberSource/models/tss_v2_transactions_get200_response_installment_information.py new file mode 100644 index 00000000..0a1e83bb --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_installment_information.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseInstallmentInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'number_of_installments': 'str' + } + + attribute_map = { + 'number_of_installments': 'numberOfInstallments' + } + + def __init__(self, number_of_installments=None): + """ + TssV2TransactionsGet200ResponseInstallmentInformation - a model defined in Swagger + """ + + self._number_of_installments = None + + if number_of_installments is not None: + self.number_of_installments = number_of_installments + + @property + def number_of_installments(self): + """ + Gets the number_of_installments of this TssV2TransactionsGet200ResponseInstallmentInformation. + Number of Installments. + + :return: The number_of_installments of this TssV2TransactionsGet200ResponseInstallmentInformation. + :rtype: str + """ + return self._number_of_installments + + @number_of_installments.setter + def number_of_installments(self, number_of_installments): + """ + Sets the number_of_installments of this TssV2TransactionsGet200ResponseInstallmentInformation. + Number of Installments. + + :param number_of_installments: The number_of_installments of this TssV2TransactionsGet200ResponseInstallmentInformation. + :type: str + """ + + self._number_of_installments = number_of_installments + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseInstallmentInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_merchant_defined_information.py b/CyberSource/models/tss_v2_transactions_get200_response_merchant_defined_information.py new file mode 100644 index 00000000..447509ae --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_merchant_defined_information.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseMerchantDefinedInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key': 'str', + 'value': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None): + """ + TssV2TransactionsGet200ResponseMerchantDefinedInformation - a model defined in Swagger + """ + + self._key = None + self._value = None + + if key is not None: + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """ + Gets the key of this TssV2TransactionsGet200ResponseMerchantDefinedInformation. + The description for this field is not available. + + :return: The key of this TssV2TransactionsGet200ResponseMerchantDefinedInformation. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + Sets the key of this TssV2TransactionsGet200ResponseMerchantDefinedInformation. + The description for this field is not available. + + :param key: The key of this TssV2TransactionsGet200ResponseMerchantDefinedInformation. + :type: str + """ + if key is not None and len(key) > 50: + raise ValueError("Invalid value for `key`, length must be less than or equal to `50`") + + self._key = key + + @property + def value(self): + """ + Gets the value of this TssV2TransactionsGet200ResponseMerchantDefinedInformation. + The description for this field is not available. + + :return: The value of this TssV2TransactionsGet200ResponseMerchantDefinedInformation. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this TssV2TransactionsGet200ResponseMerchantDefinedInformation. + The description for this field is not available. + + :param value: The value of this TssV2TransactionsGet200ResponseMerchantDefinedInformation. + :type: str + """ + if value is not None and len(value) > 255: + raise ValueError("Invalid value for `value`, length must be less than or equal to `255`") + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseMerchantDefinedInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_merchant_information.py b/CyberSource/models/tss_v2_transactions_get200_response_merchant_information.py new file mode 100644 index 00000000..7b6436de --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_merchant_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseMerchantInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_descriptor': 'TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor' + } + + attribute_map = { + 'merchant_descriptor': 'merchantDescriptor' + } + + def __init__(self, merchant_descriptor=None): + """ + TssV2TransactionsGet200ResponseMerchantInformation - a model defined in Swagger + """ + + self._merchant_descriptor = None + + if merchant_descriptor is not None: + self.merchant_descriptor = merchant_descriptor + + @property + def merchant_descriptor(self): + """ + Gets the merchant_descriptor of this TssV2TransactionsGet200ResponseMerchantInformation. + + :return: The merchant_descriptor of this TssV2TransactionsGet200ResponseMerchantInformation. + :rtype: TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor + """ + return self._merchant_descriptor + + @merchant_descriptor.setter + def merchant_descriptor(self, merchant_descriptor): + """ + Sets the merchant_descriptor of this TssV2TransactionsGet200ResponseMerchantInformation. + + :param merchant_descriptor: The merchant_descriptor of this TssV2TransactionsGet200ResponseMerchantInformation. + :type: TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor + """ + + self._merchant_descriptor = merchant_descriptor + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseMerchantInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.py b/CyberSource/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.py new file mode 100644 index 00000000..e167b3a3 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """ + TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor - a model defined in Swagger + """ + + self._name = None + + if name is not None: + self.name = name + + @property + def name(self): + """ + Gets the name of this TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) + + :return: The name of this TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor. + For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) + + :param name: The name of this TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor. + :type: str + """ + if name is not None and len(name) > 23: + raise ValueError("Invalid value for `name`, length must be less than or equal to `23`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_order_information.py b/CyberSource/models/tss_v2_transactions_get200_response_order_information.py new file mode 100644 index 00000000..2fea2f7d --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_order_information.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseOrderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bill_to': 'TssV2TransactionsGet200ResponseOrderInformationBillTo', + 'ship_to': 'TssV2TransactionsGet200ResponseOrderInformationShipTo', + 'line_items': 'list[TssV2TransactionsGet200ResponseOrderInformationLineItems]', + 'amount_details': 'TssV2TransactionsGet200ResponseOrderInformationAmountDetails', + 'shipping_details': 'TssV2TransactionsGet200ResponseOrderInformationShippingDetails' + } + + attribute_map = { + 'bill_to': 'billTo', + 'ship_to': 'shipTo', + 'line_items': 'lineItems', + 'amount_details': 'amountDetails', + 'shipping_details': 'shippingDetails' + } + + def __init__(self, bill_to=None, ship_to=None, line_items=None, amount_details=None, shipping_details=None): + """ + TssV2TransactionsGet200ResponseOrderInformation - a model defined in Swagger + """ + + self._bill_to = None + self._ship_to = None + self._line_items = None + self._amount_details = None + self._shipping_details = None + + if bill_to is not None: + self.bill_to = bill_to + if ship_to is not None: + self.ship_to = ship_to + if line_items is not None: + self.line_items = line_items + if amount_details is not None: + self.amount_details = amount_details + if shipping_details is not None: + self.shipping_details = shipping_details + + @property + def bill_to(self): + """ + Gets the bill_to of this TssV2TransactionsGet200ResponseOrderInformation. + + :return: The bill_to of this TssV2TransactionsGet200ResponseOrderInformation. + :rtype: TssV2TransactionsGet200ResponseOrderInformationBillTo + """ + return self._bill_to + + @bill_to.setter + def bill_to(self, bill_to): + """ + Sets the bill_to of this TssV2TransactionsGet200ResponseOrderInformation. + + :param bill_to: The bill_to of this TssV2TransactionsGet200ResponseOrderInformation. + :type: TssV2TransactionsGet200ResponseOrderInformationBillTo + """ + + self._bill_to = bill_to + + @property + def ship_to(self): + """ + Gets the ship_to of this TssV2TransactionsGet200ResponseOrderInformation. + + :return: The ship_to of this TssV2TransactionsGet200ResponseOrderInformation. + :rtype: TssV2TransactionsGet200ResponseOrderInformationShipTo + """ + return self._ship_to + + @ship_to.setter + def ship_to(self, ship_to): + """ + Sets the ship_to of this TssV2TransactionsGet200ResponseOrderInformation. + + :param ship_to: The ship_to of this TssV2TransactionsGet200ResponseOrderInformation. + :type: TssV2TransactionsGet200ResponseOrderInformationShipTo + """ + + self._ship_to = ship_to + + @property + def line_items(self): + """ + Gets the line_items of this TssV2TransactionsGet200ResponseOrderInformation. + Transaction Line Item data. + + :return: The line_items of this TssV2TransactionsGet200ResponseOrderInformation. + :rtype: list[TssV2TransactionsGet200ResponseOrderInformationLineItems] + """ + return self._line_items + + @line_items.setter + def line_items(self, line_items): + """ + Sets the line_items of this TssV2TransactionsGet200ResponseOrderInformation. + Transaction Line Item data. + + :param line_items: The line_items of this TssV2TransactionsGet200ResponseOrderInformation. + :type: list[TssV2TransactionsGet200ResponseOrderInformationLineItems] + """ + + self._line_items = line_items + + @property + def amount_details(self): + """ + Gets the amount_details of this TssV2TransactionsGet200ResponseOrderInformation. + + :return: The amount_details of this TssV2TransactionsGet200ResponseOrderInformation. + :rtype: TssV2TransactionsGet200ResponseOrderInformationAmountDetails + """ + return self._amount_details + + @amount_details.setter + def amount_details(self, amount_details): + """ + Sets the amount_details of this TssV2TransactionsGet200ResponseOrderInformation. + + :param amount_details: The amount_details of this TssV2TransactionsGet200ResponseOrderInformation. + :type: TssV2TransactionsGet200ResponseOrderInformationAmountDetails + """ + + self._amount_details = amount_details + + @property + def shipping_details(self): + """ + Gets the shipping_details of this TssV2TransactionsGet200ResponseOrderInformation. + + :return: The shipping_details of this TssV2TransactionsGet200ResponseOrderInformation. + :rtype: TssV2TransactionsGet200ResponseOrderInformationShippingDetails + """ + return self._shipping_details + + @shipping_details.setter + def shipping_details(self, shipping_details): + """ + Sets the shipping_details of this TssV2TransactionsGet200ResponseOrderInformation. + + :param shipping_details: The shipping_details of this TssV2TransactionsGet200ResponseOrderInformation. + :type: TssV2TransactionsGet200ResponseOrderInformationShippingDetails + """ + + self._shipping_details = shipping_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseOrderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_order_information_amount_details.py b/CyberSource/models/tss_v2_transactions_get200_response_order_information_amount_details.py new file mode 100644 index 00000000..1f209146 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_order_information_amount_details.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseOrderInformationAmountDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'total_amount': 'str', + 'currency': 'str', + 'tax_amount': 'str', + 'authorized_amount': 'str' + } + + attribute_map = { + 'total_amount': 'totalAmount', + 'currency': 'currency', + 'tax_amount': 'taxAmount', + 'authorized_amount': 'authorizedAmount' + } + + def __init__(self, total_amount=None, currency=None, tax_amount=None, authorized_amount=None): + """ + TssV2TransactionsGet200ResponseOrderInformationAmountDetails - a model defined in Swagger + """ + + self._total_amount = None + self._currency = None + self._tax_amount = None + self._authorized_amount = None + + if total_amount is not None: + self.total_amount = total_amount + if currency is not None: + self.currency = currency + if tax_amount is not None: + self.tax_amount = tax_amount + if authorized_amount is not None: + self.authorized_amount = authorized_amount + + @property + def total_amount(self): + """ + Gets the total_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The total_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + :rtype: str + """ + return self._total_amount + + @total_amount.setter + def total_amount(self, total_amount): + """ + Sets the total_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param total_amount: The total_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + :type: str + """ + if total_amount is not None and len(total_amount) > 19: + raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") + + self._total_amount = total_amount + + @property + def currency(self): + """ + Gets the currency of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :return: The currency of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. + + :param currency: The currency of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + :type: str + """ + if currency is not None and len(currency) > 3: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") + + self._currency = currency + + @property + def tax_amount(self): + """ + Gets the tax_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :return: The tax_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + :rtype: str + """ + return self._tax_amount + + @tax_amount.setter + def tax_amount(self, tax_amount): + """ + Sets the tax_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) + + :param tax_amount: The tax_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + :type: str + """ + if tax_amount is not None and len(tax_amount) > 12: + raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `12`") + + self._tax_amount = tax_amount + + @property + def authorized_amount(self): + """ + Gets the authorized_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + Amount that was authorized. + + :return: The authorized_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + :rtype: str + """ + return self._authorized_amount + + @authorized_amount.setter + def authorized_amount(self, authorized_amount): + """ + Sets the authorized_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + Amount that was authorized. + + :param authorized_amount: The authorized_amount of this TssV2TransactionsGet200ResponseOrderInformationAmountDetails. + :type: str + """ + if authorized_amount is not None and len(authorized_amount) > 15: + raise ValueError("Invalid value for `authorized_amount`, length must be less than or equal to `15`") + + self._authorized_amount = authorized_amount + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseOrderInformationAmountDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_order_information_bill_to.py b/CyberSource/models/tss_v2_transactions_get200_response_order_information_bill_to.py new file mode 100644 index 00000000..c2e3a2e1 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_order_information_bill_to.py @@ -0,0 +1,517 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseOrderInformationBillTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first_name': 'str', + 'last_name': 'str', + 'middel_name': 'str', + 'name_suffix': 'str', + 'address1': 'str', + 'address2': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'postal_code': 'str', + 'company': 'str', + 'email': 'str', + 'country': 'str', + 'title': 'str', + 'phone_number': 'str' + } + + attribute_map = { + 'first_name': 'firstName', + 'last_name': 'lastName', + 'middel_name': 'middelName', + 'name_suffix': 'nameSuffix', + 'address1': 'address1', + 'address2': 'address2', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'postal_code': 'postalCode', + 'company': 'company', + 'email': 'email', + 'country': 'country', + 'title': 'title', + 'phone_number': 'phoneNumber' + } + + def __init__(self, first_name=None, last_name=None, middel_name=None, name_suffix=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, company=None, email=None, country=None, title=None, phone_number=None): + """ + TssV2TransactionsGet200ResponseOrderInformationBillTo - a model defined in Swagger + """ + + self._first_name = None + self._last_name = None + self._middel_name = None + self._name_suffix = None + self._address1 = None + self._address2 = None + self._locality = None + self._administrative_area = None + self._postal_code = None + self._company = None + self._email = None + self._country = None + self._title = None + self._phone_number = None + + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if middel_name is not None: + self.middel_name = middel_name + if name_suffix is not None: + self.name_suffix = name_suffix + if address1 is not None: + self.address1 = address1 + if address2 is not None: + self.address2 = address2 + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if postal_code is not None: + self.postal_code = postal_code + if company is not None: + self.company = company + if email is not None: + self.email = email + if country is not None: + self.country = country + if title is not None: + self.title = title + if phone_number is not None: + self.phone_number = phone_number + + @property + def first_name(self): + """ + Gets the first_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The first_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param first_name: The first_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if first_name is not None and len(first_name) > 60: + raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") + + self._first_name = first_name + + @property + def last_name(self): + """ + Gets the last_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The last_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param last_name: The last_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if last_name is not None and len(last_name) > 60: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") + + self._last_name = last_name + + @property + def middel_name(self): + """ + Gets the middel_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer’s middle name. + + :return: The middel_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._middel_name + + @middel_name.setter + def middel_name(self, middel_name): + """ + Sets the middel_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer’s middle name. + + :param middel_name: The middel_name of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if middel_name is not None and len(middel_name) > 60: + raise ValueError("Invalid value for `middel_name`, length must be less than or equal to `60`") + + self._middel_name = middel_name + + @property + def name_suffix(self): + """ + Gets the name_suffix of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer’s name suffix. + + :return: The name_suffix of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._name_suffix + + @name_suffix.setter + def name_suffix(self, name_suffix): + """ + Sets the name_suffix of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer’s name suffix. + + :param name_suffix: The name_suffix of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if name_suffix is not None and len(name_suffix) > 60: + raise ValueError("Invalid value for `name_suffix`, length must be less than or equal to `60`") + + self._name_suffix = name_suffix + + @property + def address1(self): + """ + Gets the address1 of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The address1 of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param address1: The address1 of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if address1 is not None and len(address1) > 60: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") + + self._address1 = address1 + + @property + def address2(self): + """ + Gets the address2 of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The address2 of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._address2 + + @address2.setter + def address2(self, address2): + """ + Sets the address2 of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param address2: The address2 of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if address2 is not None and len(address2) > 60: + raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") + + self._address2 = address2 + + @property + def locality(self): + """ + Gets the locality of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The locality of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param locality: The locality of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if locality is not None and len(locality) > 50: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The administrative_area of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param administrative_area: The administrative_area of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 2: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") + + self._administrative_area = administrative_area + + @property + def postal_code(self): + """ + Gets the postal_code of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The postal_code of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param postal_code: The postal_code of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if postal_code is not None and len(postal_code) > 10: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") + + self._postal_code = postal_code + + @property + def company(self): + """ + Gets the company of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The company of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._company + + @company.setter + def company(self, company): + """ + Sets the company of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param company: The company of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if company is not None and len(company) > 60: + raise ValueError("Invalid value for `company`, length must be less than or equal to `60`") + + self._company = company + + @property + def email(self): + """ + Gets the email of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The email of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param email: The email of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if email is not None and len(email) > 255: + raise ValueError("Invalid value for `email`, length must be less than or equal to `255`") + + self._email = email + + @property + def country(self): + """ + Gets the country of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The country of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param country: The country of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def title(self): + """ + Gets the title of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Title. + + :return: The title of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """ + Sets the title of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Title. + + :param title: The title of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if title is not None and len(title) > 60: + raise ValueError("Invalid value for `title`, length must be less than or equal to `60`") + + self._title = title + + @property + def phone_number(self): + """ + Gets the phone_number of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The phone_number of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param phone_number: The phone_number of this TssV2TransactionsGet200ResponseOrderInformationBillTo. + :type: str + """ + if phone_number is not None and len(phone_number) > 15: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") + + self._phone_number = phone_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseOrderInformationBillTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_order_information_line_items.py b/CyberSource/models/tss_v2_transactions_get200_response_order_information_line_items.py new file mode 100644 index 00000000..7ce3f8db --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_order_information_line_items.py @@ -0,0 +1,307 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseOrderInformationLineItems(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'product_code': 'str', + 'product_name': 'str', + 'product_sku': 'str', + 'tax_amount': 'str', + 'quantity': 'float', + 'unit_price': 'str', + 'fulfillment_type': 'str' + } + + attribute_map = { + 'product_code': 'productCode', + 'product_name': 'productName', + 'product_sku': 'productSku', + 'tax_amount': 'taxAmount', + 'quantity': 'quantity', + 'unit_price': 'unitPrice', + 'fulfillment_type': 'fulfillmentType' + } + + def __init__(self, product_code=None, product_name=None, product_sku=None, tax_amount=None, quantity=None, unit_price=None, fulfillment_type=None): + """ + TssV2TransactionsGet200ResponseOrderInformationLineItems - a model defined in Swagger + """ + + self._product_code = None + self._product_name = None + self._product_sku = None + self._tax_amount = None + self._quantity = None + self._unit_price = None + self._fulfillment_type = None + + if product_code is not None: + self.product_code = product_code + if product_name is not None: + self.product_name = product_name + if product_sku is not None: + self.product_sku = product_sku + if tax_amount is not None: + self.tax_amount = tax_amount + if quantity is not None: + self.quantity = quantity + if unit_price is not None: + self.unit_price = unit_price + if fulfillment_type is not None: + self.fulfillment_type = fulfillment_type + + @property + def product_code(self): + """ + Gets the product_code of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. + + :return: The product_code of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :rtype: str + """ + return self._product_code + + @product_code.setter + def product_code(self, product_code): + """ + Sets the product_code of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. + + :param product_code: The product_code of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :type: str + """ + if product_code is not None and len(product_code) > 255: + raise ValueError("Invalid value for `product_code`, length must be less than or equal to `255`") + + self._product_code = product_code + + @property + def product_name(self): + """ + Gets the product_name of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. + + :return: The product_name of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """ + Sets the product_name of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. + + :param product_name: The product_name of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :type: str + """ + if product_name is not None and len(product_name) > 255: + raise ValueError("Invalid value for `product_name`, length must be less than or equal to `255`") + + self._product_name = product_name + + @property + def product_sku(self): + """ + Gets the product_sku of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. + + :return: The product_sku of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :rtype: str + """ + return self._product_sku + + @product_sku.setter + def product_sku(self, product_sku): + """ + Sets the product_sku of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. + + :param product_sku: The product_sku of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :type: str + """ + if product_sku is not None and len(product_sku) > 255: + raise ValueError("Invalid value for `product_sku`, length must be less than or equal to `255`") + + self._product_sku = product_sku + + @property + def tax_amount(self): + """ + Gets the tax_amount of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. + + :return: The tax_amount of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :rtype: str + """ + return self._tax_amount + + @tax_amount.setter + def tax_amount(self, tax_amount): + """ + Sets the tax_amount of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. + + :param tax_amount: The tax_amount of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :type: str + """ + if tax_amount is not None and len(tax_amount) > 15: + raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `15`") + + self._tax_amount = tax_amount + + @property + def quantity(self): + """ + Gets the quantity of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. + + :return: The quantity of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :rtype: float + """ + return self._quantity + + @quantity.setter + def quantity(self, quantity): + """ + Sets the quantity of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. + + :param quantity: The quantity of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :type: float + """ + if quantity is not None and quantity > 9999999999: + raise ValueError("Invalid value for `quantity`, must be a value less than or equal to `9999999999`") + if quantity is not None and quantity < 1: + raise ValueError("Invalid value for `quantity`, must be a value greater than or equal to `1`") + + self._quantity = quantity + + @property + def unit_price(self): + """ + Gets the unit_price of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The unit_price of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :rtype: str + """ + return self._unit_price + + @unit_price.setter + def unit_price(self, unit_price): + """ + Sets the unit_price of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param unit_price: The unit_price of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :type: str + """ + if unit_price is not None and len(unit_price) > 15: + raise ValueError("Invalid value for `unit_price`, length must be less than or equal to `15`") + + self._unit_price = unit_price + + @property + def fulfillment_type(self): + """ + Gets the fulfillment_type of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + The description for this field is not available. + + :return: The fulfillment_type of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :rtype: str + """ + return self._fulfillment_type + + @fulfillment_type.setter + def fulfillment_type(self, fulfillment_type): + """ + Sets the fulfillment_type of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + The description for this field is not available. + + :param fulfillment_type: The fulfillment_type of this TssV2TransactionsGet200ResponseOrderInformationLineItems. + :type: str + """ + + self._fulfillment_type = fulfillment_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseOrderInformationLineItems): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_order_information_ship_to.py b/CyberSource/models/tss_v2_transactions_get200_response_order_information_ship_to.py new file mode 100644 index 00000000..30f050bd --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_order_information_ship_to.py @@ -0,0 +1,397 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseOrderInformationShipTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first_name': 'str', + 'last_name': 'str', + 'address1': 'str', + 'address2': 'str', + 'locality': 'str', + 'administrative_area': 'str', + 'postal_code': 'str', + 'company': 'str', + 'country': 'str', + 'phone_number': 'str' + } + + attribute_map = { + 'first_name': 'firstName', + 'last_name': 'lastName', + 'address1': 'address1', + 'address2': 'address2', + 'locality': 'locality', + 'administrative_area': 'administrativeArea', + 'postal_code': 'postalCode', + 'company': 'company', + 'country': 'country', + 'phone_number': 'phoneNumber' + } + + def __init__(self, first_name=None, last_name=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, company=None, country=None, phone_number=None): + """ + TssV2TransactionsGet200ResponseOrderInformationShipTo - a model defined in Swagger + """ + + self._first_name = None + self._last_name = None + self._address1 = None + self._address2 = None + self._locality = None + self._administrative_area = None + self._postal_code = None + self._company = None + self._country = None + self._phone_number = None + + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if address1 is not None: + self.address1 = address1 + if address2 is not None: + self.address2 = address2 + if locality is not None: + self.locality = locality + if administrative_area is not None: + self.administrative_area = administrative_area + if postal_code is not None: + self.postal_code = postal_code + if company is not None: + self.company = company + if country is not None: + self.country = country + if phone_number is not None: + self.phone_number = phone_number + + @property + def first_name(self): + """ + Gets the first_name of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :return: The first_name of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :param first_name: The first_name of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :type: str + """ + if first_name is not None and len(first_name) > 60: + raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") + + self._first_name = first_name + + @property + def last_name(self): + """ + Gets the last_name of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :return: The last_name of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :param last_name: The last_name of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :type: str + """ + if last_name is not None and len(last_name) > 60: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") + + self._last_name = last_name + + @property + def address1(self): + """ + Gets the address1 of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + First line of the shipping address. + + :return: The address1 of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + First line of the shipping address. + + :param address1: The address1 of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :type: str + """ + if address1 is not None and len(address1) > 60: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") + + self._address1 = address1 + + @property + def address2(self): + """ + Gets the address2 of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Second line of the shipping address. + + :return: The address2 of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :rtype: str + """ + return self._address2 + + @address2.setter + def address2(self, address2): + """ + Sets the address2 of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Second line of the shipping address. + + :param address2: The address2 of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :type: str + """ + if address2 is not None and len(address2) > 60: + raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") + + self._address2 = address2 + + @property + def locality(self): + """ + Gets the locality of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + City of the shipping address. + + :return: The locality of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :rtype: str + """ + return self._locality + + @locality.setter + def locality(self, locality): + """ + Sets the locality of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + City of the shipping address. + + :param locality: The locality of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :type: str + """ + if locality is not None and len(locality) > 50: + raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") + + self._locality = locality + + @property + def administrative_area(self): + """ + Gets the administrative_area of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. + + :return: The administrative_area of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :rtype: str + """ + return self._administrative_area + + @administrative_area.setter + def administrative_area(self, administrative_area): + """ + Sets the administrative_area of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. + + :param administrative_area: The administrative_area of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :type: str + """ + if administrative_area is not None and len(administrative_area) > 2: + raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") + + self._administrative_area = administrative_area + + @property + def postal_code(self): + """ + Gets the postal_code of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 + + :return: The postal_code of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 + + :param postal_code: The postal_code of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :type: str + """ + if postal_code is not None and len(postal_code) > 10: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") + + self._postal_code = postal_code + + @property + def company(self): + """ + Gets the company of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The company of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :rtype: str + """ + return self._company + + @company.setter + def company(self, company): + """ + Sets the company of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param company: The company of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :type: str + """ + if company is not None and len(company) > 60: + raise ValueError("Invalid value for `company`, length must be less than or equal to `60`") + + self._company = company + + @property + def country(self): + """ + Gets the country of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Country of the shipping address. Use the two character ISO Standard Country Codes. + + :return: The country of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Country of the shipping address. Use the two character ISO Standard Country Codes. + + :param country: The country of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def phone_number(self): + """ + Gets the phone_number of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Phone number for the shipping address. + + :return: The phone_number of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + Phone number for the shipping address. + + :param phone_number: The phone_number of this TssV2TransactionsGet200ResponseOrderInformationShipTo. + :type: str + """ + if phone_number is not None and len(phone_number) > 15: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") + + self._phone_number = phone_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseOrderInformationShipTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_order_information_shipping_details.py b/CyberSource/models/tss_v2_transactions_get200_response_order_information_shipping_details.py new file mode 100644 index 00000000..660cdbd8 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_order_information_shipping_details.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseOrderInformationShippingDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'gift_wrap': 'bool', + 'shipping_method': 'str' + } + + attribute_map = { + 'gift_wrap': 'giftWrap', + 'shipping_method': 'shippingMethod' + } + + def __init__(self, gift_wrap=None, shipping_method=None): + """ + TssV2TransactionsGet200ResponseOrderInformationShippingDetails - a model defined in Swagger + """ + + self._gift_wrap = None + self._shipping_method = None + + if gift_wrap is not None: + self.gift_wrap = gift_wrap + if shipping_method is not None: + self.shipping_method = shipping_method + + @property + def gift_wrap(self): + """ + Gets the gift_wrap of this TssV2TransactionsGet200ResponseOrderInformationShippingDetails. + The description for this field is not available. + + :return: The gift_wrap of this TssV2TransactionsGet200ResponseOrderInformationShippingDetails. + :rtype: bool + """ + return self._gift_wrap + + @gift_wrap.setter + def gift_wrap(self, gift_wrap): + """ + Sets the gift_wrap of this TssV2TransactionsGet200ResponseOrderInformationShippingDetails. + The description for this field is not available. + + :param gift_wrap: The gift_wrap of this TssV2TransactionsGet200ResponseOrderInformationShippingDetails. + :type: bool + """ + + self._gift_wrap = gift_wrap + + @property + def shipping_method(self): + """ + Gets the shipping_method of this TssV2TransactionsGet200ResponseOrderInformationShippingDetails. + Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription + + :return: The shipping_method of this TssV2TransactionsGet200ResponseOrderInformationShippingDetails. + :rtype: str + """ + return self._shipping_method + + @shipping_method.setter + def shipping_method(self, shipping_method): + """ + Sets the shipping_method of this TssV2TransactionsGet200ResponseOrderInformationShippingDetails. + Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription + + :param shipping_method: The shipping_method of this TssV2TransactionsGet200ResponseOrderInformationShippingDetails. + :type: str + """ + if shipping_method is not None and len(shipping_method) > 10: + raise ValueError("Invalid value for `shipping_method`, length must be less than or equal to `10`") + + self._shipping_method = shipping_method + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseOrderInformationShippingDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_payment_information.py b/CyberSource/models/tss_v2_transactions_get200_response_payment_information.py new file mode 100644 index 00000000..b8624947 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_payment_information.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponsePaymentInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'payment_type': 'TssV2TransactionsGet200ResponsePaymentInformationPaymentType', + 'customer': 'Ptsv2paymentsPaymentInformationCustomer', + 'card': 'TssV2TransactionsGet200ResponsePaymentInformationCard', + 'invoice': 'TssV2TransactionsGet200ResponsePaymentInformationInvoice', + 'bank': 'TssV2TransactionsGet200ResponsePaymentInformationBank', + 'account_features': 'TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures' + } + + attribute_map = { + 'payment_type': 'paymentType', + 'customer': 'customer', + 'card': 'card', + 'invoice': 'invoice', + 'bank': 'bank', + 'account_features': 'accountFeatures' + } + + def __init__(self, payment_type=None, customer=None, card=None, invoice=None, bank=None, account_features=None): + """ + TssV2TransactionsGet200ResponsePaymentInformation - a model defined in Swagger + """ + + self._payment_type = None + self._customer = None + self._card = None + self._invoice = None + self._bank = None + self._account_features = None + + if payment_type is not None: + self.payment_type = payment_type + if customer is not None: + self.customer = customer + if card is not None: + self.card = card + if invoice is not None: + self.invoice = invoice + if bank is not None: + self.bank = bank + if account_features is not None: + self.account_features = account_features + + @property + def payment_type(self): + """ + Gets the payment_type of this TssV2TransactionsGet200ResponsePaymentInformation. + + :return: The payment_type of this TssV2TransactionsGet200ResponsePaymentInformation. + :rtype: TssV2TransactionsGet200ResponsePaymentInformationPaymentType + """ + return self._payment_type + + @payment_type.setter + def payment_type(self, payment_type): + """ + Sets the payment_type of this TssV2TransactionsGet200ResponsePaymentInformation. + + :param payment_type: The payment_type of this TssV2TransactionsGet200ResponsePaymentInformation. + :type: TssV2TransactionsGet200ResponsePaymentInformationPaymentType + """ + + self._payment_type = payment_type + + @property + def customer(self): + """ + Gets the customer of this TssV2TransactionsGet200ResponsePaymentInformation. + + :return: The customer of this TssV2TransactionsGet200ResponsePaymentInformation. + :rtype: Ptsv2paymentsPaymentInformationCustomer + """ + return self._customer + + @customer.setter + def customer(self, customer): + """ + Sets the customer of this TssV2TransactionsGet200ResponsePaymentInformation. + + :param customer: The customer of this TssV2TransactionsGet200ResponsePaymentInformation. + :type: Ptsv2paymentsPaymentInformationCustomer + """ + + self._customer = customer + + @property + def card(self): + """ + Gets the card of this TssV2TransactionsGet200ResponsePaymentInformation. + + :return: The card of this TssV2TransactionsGet200ResponsePaymentInformation. + :rtype: TssV2TransactionsGet200ResponsePaymentInformationCard + """ + return self._card + + @card.setter + def card(self, card): + """ + Sets the card of this TssV2TransactionsGet200ResponsePaymentInformation. + + :param card: The card of this TssV2TransactionsGet200ResponsePaymentInformation. + :type: TssV2TransactionsGet200ResponsePaymentInformationCard + """ + + self._card = card + + @property + def invoice(self): + """ + Gets the invoice of this TssV2TransactionsGet200ResponsePaymentInformation. + + :return: The invoice of this TssV2TransactionsGet200ResponsePaymentInformation. + :rtype: TssV2TransactionsGet200ResponsePaymentInformationInvoice + """ + return self._invoice + + @invoice.setter + def invoice(self, invoice): + """ + Sets the invoice of this TssV2TransactionsGet200ResponsePaymentInformation. + + :param invoice: The invoice of this TssV2TransactionsGet200ResponsePaymentInformation. + :type: TssV2TransactionsGet200ResponsePaymentInformationInvoice + """ + + self._invoice = invoice + + @property + def bank(self): + """ + Gets the bank of this TssV2TransactionsGet200ResponsePaymentInformation. + + :return: The bank of this TssV2TransactionsGet200ResponsePaymentInformation. + :rtype: TssV2TransactionsGet200ResponsePaymentInformationBank + """ + return self._bank + + @bank.setter + def bank(self, bank): + """ + Sets the bank of this TssV2TransactionsGet200ResponsePaymentInformation. + + :param bank: The bank of this TssV2TransactionsGet200ResponsePaymentInformation. + :type: TssV2TransactionsGet200ResponsePaymentInformationBank + """ + + self._bank = bank + + @property + def account_features(self): + """ + Gets the account_features of this TssV2TransactionsGet200ResponsePaymentInformation. + + :return: The account_features of this TssV2TransactionsGet200ResponsePaymentInformation. + :rtype: TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures + """ + return self._account_features + + @account_features.setter + def account_features(self, account_features): + """ + Sets the account_features of this TssV2TransactionsGet200ResponsePaymentInformation. + + :param account_features: The account_features of this TssV2TransactionsGet200ResponsePaymentInformation. + :type: TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures + """ + + self._account_features = account_features + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponsePaymentInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_payment_information_account_features.py b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_account_features.py new file mode 100644 index 00000000..3388e9d4 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_account_features.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'balance_amount': 'str', + 'previous_balance_amount': 'str', + 'currency': 'str' + } + + attribute_map = { + 'balance_amount': 'balanceAmount', + 'previous_balance_amount': 'previousBalanceAmount', + 'currency': 'currency' + } + + def __init__(self, balance_amount=None, previous_balance_amount=None, currency=None): + """ + TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures - a model defined in Swagger + """ + + self._balance_amount = None + self._previous_balance_amount = None + self._currency = None + + if balance_amount is not None: + self.balance_amount = balance_amount + if previous_balance_amount is not None: + self.previous_balance_amount = previous_balance_amount + if currency is not None: + self.currency = currency + + @property + def balance_amount(self): + """ + Gets the balance_amount of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + Remaining balance on the account. + + :return: The balance_amount of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._balance_amount + + @balance_amount.setter + def balance_amount(self, balance_amount): + """ + Sets the balance_amount of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + Remaining balance on the account. + + :param balance_amount: The balance_amount of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + :type: str + """ + if balance_amount is not None and len(balance_amount) > 12: + raise ValueError("Invalid value for `balance_amount`, length must be less than or equal to `12`") + + self._balance_amount = balance_amount + + @property + def previous_balance_amount(self): + """ + Gets the previous_balance_amount of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + Remaining balance on the account. + + :return: The previous_balance_amount of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._previous_balance_amount + + @previous_balance_amount.setter + def previous_balance_amount(self, previous_balance_amount): + """ + Sets the previous_balance_amount of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + Remaining balance on the account. + + :param previous_balance_amount: The previous_balance_amount of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + :type: str + """ + if previous_balance_amount is not None and len(previous_balance_amount) > 12: + raise ValueError("Invalid value for `previous_balance_amount`, length must be less than or equal to `12`") + + self._previous_balance_amount = previous_balance_amount + + @property + def currency(self): + """ + Gets the currency of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. + + :return: The currency of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """ + Sets the currency of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. + + :param currency: The currency of this TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures. + :type: str + """ + if currency is not None and len(currency) > 5: + raise ValueError("Invalid value for `currency`, length must be less than or equal to `5`") + + self._currency = currency + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_payment_information_bank.py b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_bank.py new file mode 100644 index 00000000..b7eab2fa --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_bank.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponsePaymentInformationBank(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'routing_number': 'str', + 'branch_code': 'str', + 'swift_code': 'str', + 'bank_code': 'str', + 'iban': 'str', + 'account': 'TssV2TransactionsGet200ResponsePaymentInformationBankAccount', + 'mandate': 'TssV2TransactionsGet200ResponsePaymentInformationBankMandate' + } + + attribute_map = { + 'routing_number': 'routingNumber', + 'branch_code': 'branchCode', + 'swift_code': 'swiftCode', + 'bank_code': 'bankCode', + 'iban': 'iban', + 'account': 'account', + 'mandate': 'mandate' + } + + def __init__(self, routing_number=None, branch_code=None, swift_code=None, bank_code=None, iban=None, account=None, mandate=None): + """ + TssV2TransactionsGet200ResponsePaymentInformationBank - a model defined in Swagger + """ + + self._routing_number = None + self._branch_code = None + self._swift_code = None + self._bank_code = None + self._iban = None + self._account = None + self._mandate = None + + if routing_number is not None: + self.routing_number = routing_number + if branch_code is not None: + self.branch_code = branch_code + if swift_code is not None: + self.swift_code = swift_code + if bank_code is not None: + self.bank_code = bank_code + if iban is not None: + self.iban = iban + if account is not None: + self.account = account + if mandate is not None: + self.mandate = mandate + + @property + def routing_number(self): + """ + Gets the routing_number of this TssV2TransactionsGet200ResponsePaymentInformationBank. + The description for this field is not available. + + :return: The routing_number of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :rtype: str + """ + return self._routing_number + + @routing_number.setter + def routing_number(self, routing_number): + """ + Sets the routing_number of this TssV2TransactionsGet200ResponsePaymentInformationBank. + The description for this field is not available. + + :param routing_number: The routing_number of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :type: str + """ + + self._routing_number = routing_number + + @property + def branch_code(self): + """ + Gets the branch_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + The description for this field is not available. + + :return: The branch_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :rtype: str + """ + return self._branch_code + + @branch_code.setter + def branch_code(self, branch_code): + """ + Sets the branch_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + The description for this field is not available. + + :param branch_code: The branch_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :type: str + """ + + self._branch_code = branch_code + + @property + def swift_code(self): + """ + Gets the swift_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + The description for this field is not available. + + :return: The swift_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :rtype: str + """ + return self._swift_code + + @swift_code.setter + def swift_code(self, swift_code): + """ + Sets the swift_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + The description for this field is not available. + + :param swift_code: The swift_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :type: str + """ + + self._swift_code = swift_code + + @property + def bank_code(self): + """ + Gets the bank_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + The description for this field is not available. + + :return: The bank_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :rtype: str + """ + return self._bank_code + + @bank_code.setter + def bank_code(self, bank_code): + """ + Sets the bank_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + The description for this field is not available. + + :param bank_code: The bank_code of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :type: str + """ + + self._bank_code = bank_code + + @property + def iban(self): + """ + Gets the iban of this TssV2TransactionsGet200ResponsePaymentInformationBank. + The description for this field is not available. + + :return: The iban of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :rtype: str + """ + return self._iban + + @iban.setter + def iban(self, iban): + """ + Sets the iban of this TssV2TransactionsGet200ResponsePaymentInformationBank. + The description for this field is not available. + + :param iban: The iban of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :type: str + """ + + self._iban = iban + + @property + def account(self): + """ + Gets the account of this TssV2TransactionsGet200ResponsePaymentInformationBank. + + :return: The account of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :rtype: TssV2TransactionsGet200ResponsePaymentInformationBankAccount + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this TssV2TransactionsGet200ResponsePaymentInformationBank. + + :param account: The account of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :type: TssV2TransactionsGet200ResponsePaymentInformationBankAccount + """ + + self._account = account + + @property + def mandate(self): + """ + Gets the mandate of this TssV2TransactionsGet200ResponsePaymentInformationBank. + + :return: The mandate of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :rtype: TssV2TransactionsGet200ResponsePaymentInformationBankMandate + """ + return self._mandate + + @mandate.setter + def mandate(self, mandate): + """ + Sets the mandate of this TssV2TransactionsGet200ResponsePaymentInformationBank. + + :param mandate: The mandate of this TssV2TransactionsGet200ResponsePaymentInformationBank. + :type: TssV2TransactionsGet200ResponsePaymentInformationBankMandate + """ + + self._mandate = mandate + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponsePaymentInformationBank): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_payment_information_bank_account.py b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_bank_account.py new file mode 100644 index 00000000..d742b345 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_bank_account.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponsePaymentInformationBankAccount(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'suffix': 'str', + 'prefix': 'str', + 'check_number': 'str', + 'type': 'str', + 'name': 'str', + 'check_digit': 'str', + 'encoder_id': 'str' + } + + attribute_map = { + 'suffix': 'suffix', + 'prefix': 'prefix', + 'check_number': 'checkNumber', + 'type': 'type', + 'name': 'name', + 'check_digit': 'checkDigit', + 'encoder_id': 'encoderId' + } + + def __init__(self, suffix=None, prefix=None, check_number=None, type=None, name=None, check_digit=None, encoder_id=None): + """ + TssV2TransactionsGet200ResponsePaymentInformationBankAccount - a model defined in Swagger + """ + + self._suffix = None + self._prefix = None + self._check_number = None + self._type = None + self._name = None + self._check_digit = None + self._encoder_id = None + + if suffix is not None: + self.suffix = suffix + if prefix is not None: + self.prefix = prefix + if check_number is not None: + self.check_number = check_number + if type is not None: + self.type = type + if name is not None: + self.name = name + if check_digit is not None: + self.check_digit = check_digit + if encoder_id is not None: + self.encoder_id = encoder_id + + @property + def suffix(self): + """ + Gets the suffix of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :return: The suffix of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :rtype: str + """ + return self._suffix + + @suffix.setter + def suffix(self, suffix): + """ + Sets the suffix of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :param suffix: The suffix of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :type: str + """ + + self._suffix = suffix + + @property + def prefix(self): + """ + Gets the prefix of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :return: The prefix of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """ + Sets the prefix of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :param prefix: The prefix of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :type: str + """ + + self._prefix = prefix + + @property + def check_number(self): + """ + Gets the check_number of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :return: The check_number of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :rtype: str + """ + return self._check_number + + @check_number.setter + def check_number(self, check_number): + """ + Sets the check_number of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :param check_number: The check_number of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :type: str + """ + + self._check_number = check_number + + @property + def type(self): + """ + Gets the type of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :return: The type of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :param type: The type of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :type: str + """ + + self._type = type + + @property + def name(self): + """ + Gets the name of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :return: The name of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :param name: The name of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :type: str + """ + + self._name = name + + @property + def check_digit(self): + """ + Gets the check_digit of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :return: The check_digit of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :rtype: str + """ + return self._check_digit + + @check_digit.setter + def check_digit(self, check_digit): + """ + Sets the check_digit of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :param check_digit: The check_digit of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :type: str + """ + + self._check_digit = check_digit + + @property + def encoder_id(self): + """ + Gets the encoder_id of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :return: The encoder_id of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :rtype: str + """ + return self._encoder_id + + @encoder_id.setter + def encoder_id(self, encoder_id): + """ + Sets the encoder_id of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + The description for this field is not available. + + :param encoder_id: The encoder_id of this TssV2TransactionsGet200ResponsePaymentInformationBankAccount. + :type: str + """ + + self._encoder_id = encoder_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponsePaymentInformationBankAccount): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.py b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.py new file mode 100644 index 00000000..3c376717 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponsePaymentInformationBankMandate(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reference_number': 'str', + 'recurring_type': 'str', + 'id': 'str' + } + + attribute_map = { + 'reference_number': 'referenceNumber', + 'recurring_type': 'recurringType', + 'id': 'id' + } + + def __init__(self, reference_number=None, recurring_type=None, id=None): + """ + TssV2TransactionsGet200ResponsePaymentInformationBankMandate - a model defined in Swagger + """ + + self._reference_number = None + self._recurring_type = None + self._id = None + + if reference_number is not None: + self.reference_number = reference_number + if recurring_type is not None: + self.recurring_type = recurring_type + if id is not None: + self.id = id + + @property + def reference_number(self): + """ + Gets the reference_number of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + The description for this field is not available. + + :return: The reference_number of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + :rtype: str + """ + return self._reference_number + + @reference_number.setter + def reference_number(self, reference_number): + """ + Sets the reference_number of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + The description for this field is not available. + + :param reference_number: The reference_number of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + :type: str + """ + + self._reference_number = reference_number + + @property + def recurring_type(self): + """ + Gets the recurring_type of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + The description for this field is not available. + + :return: The recurring_type of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + :rtype: str + """ + return self._recurring_type + + @recurring_type.setter + def recurring_type(self, recurring_type): + """ + Sets the recurring_type of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + The description for this field is not available. + + :param recurring_type: The recurring_type of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + :type: str + """ + + self._recurring_type = recurring_type + + @property + def id(self): + """ + Gets the id of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + The description for this field is not available. + + :return: The id of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + The description for this field is not available. + + :param id: The id of this TssV2TransactionsGet200ResponsePaymentInformationBankMandate. + :type: str + """ + + self._id = id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponsePaymentInformationBankMandate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_payment_information_card.py b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_card.py new file mode 100644 index 00000000..e09ef9a0 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_card.py @@ -0,0 +1,397 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponsePaymentInformationCard(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'suffix': 'str', + 'prefix': 'str', + 'expiration_month': 'str', + 'expiration_year': 'str', + 'start_month': 'str', + 'start_year': 'str', + 'issue_number': 'str', + 'type': 'str', + 'account_encoder_id': 'str', + 'use_as': 'str' + } + + attribute_map = { + 'suffix': 'suffix', + 'prefix': 'prefix', + 'expiration_month': 'expirationMonth', + 'expiration_year': 'expirationYear', + 'start_month': 'startMonth', + 'start_year': 'startYear', + 'issue_number': 'issueNumber', + 'type': 'type', + 'account_encoder_id': 'accountEncoderId', + 'use_as': 'useAs' + } + + def __init__(self, suffix=None, prefix=None, expiration_month=None, expiration_year=None, start_month=None, start_year=None, issue_number=None, type=None, account_encoder_id=None, use_as=None): + """ + TssV2TransactionsGet200ResponsePaymentInformationCard - a model defined in Swagger + """ + + self._suffix = None + self._prefix = None + self._expiration_month = None + self._expiration_year = None + self._start_month = None + self._start_year = None + self._issue_number = None + self._type = None + self._account_encoder_id = None + self._use_as = None + + if suffix is not None: + self.suffix = suffix + if prefix is not None: + self.prefix = prefix + if expiration_month is not None: + self.expiration_month = expiration_month + if expiration_year is not None: + self.expiration_year = expiration_year + if start_month is not None: + self.start_month = start_month + if start_year is not None: + self.start_year = start_year + if issue_number is not None: + self.issue_number = issue_number + if type is not None: + self.type = type + if account_encoder_id is not None: + self.account_encoder_id = account_encoder_id + if use_as is not None: + self.use_as = use_as + + @property + def suffix(self): + """ + Gets the suffix of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. + + :return: The suffix of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :rtype: str + """ + return self._suffix + + @suffix.setter + def suffix(self, suffix): + """ + Sets the suffix of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. + + :param suffix: The suffix of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :type: str + """ + if suffix is not None and len(suffix) > 4: + raise ValueError("Invalid value for `suffix`, length must be less than or equal to `4`") + + self._suffix = suffix + + @property + def prefix(self): + """ + Gets the prefix of this TssV2TransactionsGet200ResponsePaymentInformationCard. + The description for this field is not available. + + :return: The prefix of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """ + Sets the prefix of this TssV2TransactionsGet200ResponsePaymentInformationCard. + The description for this field is not available. + + :param prefix: The prefix of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :type: str + """ + if prefix is not None and len(prefix) > 6: + raise ValueError("Invalid value for `prefix`, length must be less than or equal to `6`") + + self._prefix = prefix + + @property + def expiration_month(self): + """ + Gets the expiration_month of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The expiration_month of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :rtype: str + """ + return self._expiration_month + + @expiration_month.setter + def expiration_month(self, expiration_month): + """ + Sets the expiration_month of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param expiration_month: The expiration_month of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :type: str + """ + if expiration_month is not None and len(expiration_month) > 2: + raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") + + self._expiration_month = expiration_month + + @property + def expiration_year(self): + """ + Gets the expiration_year of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The expiration_year of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :rtype: str + """ + return self._expiration_year + + @expiration_year.setter + def expiration_year(self, expiration_year): + """ + Sets the expiration_year of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param expiration_year: The expiration_year of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :type: str + """ + if expiration_year is not None and len(expiration_year) > 4: + raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") + + self._expiration_year = expiration_year + + @property + def start_month(self): + """ + Gets the start_month of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. + + :return: The start_month of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :rtype: str + """ + return self._start_month + + @start_month.setter + def start_month(self, start_month): + """ + Sets the start_month of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. + + :param start_month: The start_month of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :type: str + """ + if start_month is not None and len(start_month) > 2: + raise ValueError("Invalid value for `start_month`, length must be less than or equal to `2`") + + self._start_month = start_month + + @property + def start_year(self): + """ + Gets the start_year of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. + + :return: The start_year of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :rtype: str + """ + return self._start_year + + @start_year.setter + def start_year(self, start_year): + """ + Sets the start_year of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. + + :param start_year: The start_year of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :type: str + """ + if start_year is not None and len(start_year) > 4: + raise ValueError("Invalid value for `start_year`, length must be less than or equal to `4`") + + self._start_year = start_year + + @property + def issue_number(self): + """ + Gets the issue_number of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. + + :return: The issue_number of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :rtype: str + """ + return self._issue_number + + @issue_number.setter + def issue_number(self, issue_number): + """ + Sets the issue_number of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. + + :param issue_number: The issue_number of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :type: str + """ + if issue_number is not None and len(issue_number) > 5: + raise ValueError("Invalid value for `issue_number`, length must be less than or equal to `5`") + + self._issue_number = issue_number + + @property + def type(self): + """ + Gets the type of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :return: The type of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :param type: The type of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :type: str + """ + #if type is not None and len(type) > 3: + #raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") + + self._type = type + + @property + def account_encoder_id(self): + """ + Gets the account_encoder_id of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. + + :return: The account_encoder_id of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :rtype: str + """ + return self._account_encoder_id + + @account_encoder_id.setter + def account_encoder_id(self, account_encoder_id): + """ + Sets the account_encoder_id of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. + + :param account_encoder_id: The account_encoder_id of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :type: str + """ + if account_encoder_id is not None and len(account_encoder_id) > 3: + raise ValueError("Invalid value for `account_encoder_id`, length must be less than or equal to `3`") + + self._account_encoder_id = account_encoder_id + + @property + def use_as(self): + """ + Gets the use_as of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. + + :return: The use_as of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :rtype: str + """ + return self._use_as + + @use_as.setter + def use_as(self, use_as): + """ + Sets the use_as of this TssV2TransactionsGet200ResponsePaymentInformationCard. + Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. + + :param use_as: The use_as of this TssV2TransactionsGet200ResponsePaymentInformationCard. + :type: str + """ + if use_as is not None and len(use_as) > 2: + raise ValueError("Invalid value for `use_as`, length must be less than or equal to `2`") + + self._use_as = use_as + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponsePaymentInformationCard): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_payment_information_invoice.py b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_invoice.py new file mode 100644 index 00000000..7a832552 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_invoice.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponsePaymentInformationInvoice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'number': 'str', + 'barcode_number': 'str', + 'expiration_date': 'str' + } + + attribute_map = { + 'number': 'number', + 'barcode_number': 'barcodeNumber', + 'expiration_date': 'expirationDate' + } + + def __init__(self, number=None, barcode_number=None, expiration_date=None): + """ + TssV2TransactionsGet200ResponsePaymentInformationInvoice - a model defined in Swagger + """ + + self._number = None + self._barcode_number = None + self._expiration_date = None + + if number is not None: + self.number = number + if barcode_number is not None: + self.barcode_number = barcode_number + if expiration_date is not None: + self.expiration_date = expiration_date + + @property + def number(self): + """ + Gets the number of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + Invoice Number. + + :return: The number of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """ + Sets the number of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + Invoice Number. + + :param number: The number of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + :type: str + """ + + self._number = number + + @property + def barcode_number(self): + """ + Gets the barcode_number of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + Barcode Number. + + :return: The barcode_number of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + :rtype: str + """ + return self._barcode_number + + @barcode_number.setter + def barcode_number(self, barcode_number): + """ + Sets the barcode_number of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + Barcode Number. + + :param barcode_number: The barcode_number of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + :type: str + """ + + self._barcode_number = barcode_number + + @property + def expiration_date(self): + """ + Gets the expiration_date of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + Expiration Date. + + :return: The expiration_date of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + :rtype: str + """ + return self._expiration_date + + @expiration_date.setter + def expiration_date(self, expiration_date): + """ + Sets the expiration_date of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + Expiration Date. + + :param expiration_date: The expiration_date of this TssV2TransactionsGet200ResponsePaymentInformationInvoice. + :type: str + """ + + self._expiration_date = expiration_date + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponsePaymentInformationInvoice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_payment_information_payment_type.py b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_payment_type.py new file mode 100644 index 00000000..d946c6a5 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_payment_information_payment_type.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponsePaymentInformationPaymentType(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'type': 'str', + 'sub_type': 'str', + 'method': 'str', + 'funding_source': 'str', + 'funding_source_affiliation': 'str', + 'credential': 'str' + } + + attribute_map = { + 'name': 'name', + 'type': 'type', + 'sub_type': 'subType', + 'method': 'method', + 'funding_source': 'fundingSource', + 'funding_source_affiliation': 'fundingSourceAffiliation', + 'credential': 'credential' + } + + def __init__(self, name=None, type=None, sub_type=None, method=None, funding_source=None, funding_source_affiliation=None, credential=None): + """ + TssV2TransactionsGet200ResponsePaymentInformationPaymentType - a model defined in Swagger + """ + + self._name = None + self._type = None + self._sub_type = None + self._method = None + self._funding_source = None + self._funding_source_affiliation = None + self._credential = None + + if name is not None: + self.name = name + if type is not None: + self.type = type + if sub_type is not None: + self.sub_type = sub_type + if method is not None: + self.method = method + if funding_source is not None: + self.funding_source = funding_source + if funding_source_affiliation is not None: + self.funding_source_affiliation = funding_source_affiliation + if credential is not None: + self.credential = credential + + @property + def name(self): + """ + Gets the name of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :return: The name of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :param name: The name of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :type: str + """ + + self._name = name + + @property + def type(self): + """ + Gets the type of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :return: The type of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :param type: The type of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :type: str + """ + + self._type = type + + @property + def sub_type(self): + """ + Gets the sub_type of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :return: The sub_type of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :rtype: str + """ + return self._sub_type + + @sub_type.setter + def sub_type(self, sub_type): + """ + Sets the sub_type of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :param sub_type: The sub_type of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :type: str + """ + + self._sub_type = sub_type + + @property + def method(self): + """ + Gets the method of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :return: The method of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """ + Sets the method of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :param method: The method of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :type: str + """ + + self._method = method + + @property + def funding_source(self): + """ + Gets the funding_source of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :return: The funding_source of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :rtype: str + """ + return self._funding_source + + @funding_source.setter + def funding_source(self, funding_source): + """ + Sets the funding_source of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :param funding_source: The funding_source of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :type: str + """ + + self._funding_source = funding_source + + @property + def funding_source_affiliation(self): + """ + Gets the funding_source_affiliation of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :return: The funding_source_affiliation of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :rtype: str + """ + return self._funding_source_affiliation + + @funding_source_affiliation.setter + def funding_source_affiliation(self, funding_source_affiliation): + """ + Sets the funding_source_affiliation of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :param funding_source_affiliation: The funding_source_affiliation of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :type: str + """ + + self._funding_source_affiliation = funding_source_affiliation + + @property + def credential(self): + """ + Gets the credential of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :return: The credential of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :rtype: str + """ + return self._credential + + @credential.setter + def credential(self, credential): + """ + Sets the credential of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + The description for this field is not available. + + :param credential: The credential of this TssV2TransactionsGet200ResponsePaymentInformationPaymentType. + :type: str + """ + + self._credential = credential + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponsePaymentInformationPaymentType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_point_of_sale_information.py b/CyberSource/models/tss_v2_transactions_get200_response_point_of_sale_information.py new file mode 100644 index 00000000..a00d8dda --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_point_of_sale_information.py @@ -0,0 +1,159 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponsePointOfSaleInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'entry_mode': 'str', + 'terminal_capability': 'int' + } + + attribute_map = { + 'entry_mode': 'entryMode', + 'terminal_capability': 'terminalCapability' + } + + def __init__(self, entry_mode=None, terminal_capability=None): + """ + TssV2TransactionsGet200ResponsePointOfSaleInformation - a model defined in Swagger + """ + + self._entry_mode = None + self._terminal_capability = None + + if entry_mode is not None: + self.entry_mode = entry_mode + if terminal_capability is not None: + self.terminal_capability = terminal_capability + + @property + def entry_mode(self): + """ + Gets the entry_mode of this TssV2TransactionsGet200ResponsePointOfSaleInformation. + Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. + + :return: The entry_mode of this TssV2TransactionsGet200ResponsePointOfSaleInformation. + :rtype: str + """ + return self._entry_mode + + @entry_mode.setter + def entry_mode(self, entry_mode): + """ + Sets the entry_mode of this TssV2TransactionsGet200ResponsePointOfSaleInformation. + Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. + + :param entry_mode: The entry_mode of this TssV2TransactionsGet200ResponsePointOfSaleInformation. + :type: str + """ + if entry_mode is not None and len(entry_mode) > 11: + raise ValueError("Invalid value for `entry_mode`, length must be less than or equal to `11`") + + self._entry_mode = entry_mode + + @property + def terminal_capability(self): + """ + Gets the terminal_capability of this TssV2TransactionsGet200ResponsePointOfSaleInformation. + POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. + + :return: The terminal_capability of this TssV2TransactionsGet200ResponsePointOfSaleInformation. + :rtype: int + """ + return self._terminal_capability + + @terminal_capability.setter + def terminal_capability(self, terminal_capability): + """ + Sets the terminal_capability of this TssV2TransactionsGet200ResponsePointOfSaleInformation. + POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. + + :param terminal_capability: The terminal_capability of this TssV2TransactionsGet200ResponsePointOfSaleInformation. + :type: int + """ + if terminal_capability is not None and terminal_capability > 5: + raise ValueError("Invalid value for `terminal_capability`, must be a value less than or equal to `5`") + if terminal_capability is not None and terminal_capability < 1: + raise ValueError("Invalid value for `terminal_capability`, must be a value greater than or equal to `1`") + + self._terminal_capability = terminal_capability + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponsePointOfSaleInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_processing_information.py b/CyberSource/models/tss_v2_transactions_get200_response_processing_information.py new file mode 100644 index 00000000..df9bbfe0 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_processing_information.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseProcessingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'payment_solution': 'str', + 'commerce_indicator': 'str', + 'business_application_id': 'str', + 'authorization_options': 'TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions', + 'bank_transfer_options': 'TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions' + } + + attribute_map = { + 'payment_solution': 'paymentSolution', + 'commerce_indicator': 'commerceIndicator', + 'business_application_id': 'businessApplicationId', + 'authorization_options': 'authorizationOptions', + 'bank_transfer_options': 'bankTransferOptions' + } + + def __init__(self, payment_solution=None, commerce_indicator=None, business_application_id=None, authorization_options=None, bank_transfer_options=None): + """ + TssV2TransactionsGet200ResponseProcessingInformation - a model defined in Swagger + """ + + self._payment_solution = None + self._commerce_indicator = None + self._business_application_id = None + self._authorization_options = None + self._bank_transfer_options = None + + if payment_solution is not None: + self.payment_solution = payment_solution + if commerce_indicator is not None: + self.commerce_indicator = commerce_indicator + if business_application_id is not None: + self.business_application_id = business_application_id + if authorization_options is not None: + self.authorization_options = authorization_options + if bank_transfer_options is not None: + self.bank_transfer_options = bank_transfer_options + + @property + def payment_solution(self): + """ + Gets the payment_solution of this TssV2TransactionsGet200ResponseProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :return: The payment_solution of this TssV2TransactionsGet200ResponseProcessingInformation. + :rtype: str + """ + return self._payment_solution + + @payment_solution.setter + def payment_solution(self, payment_solution): + """ + Sets the payment_solution of this TssV2TransactionsGet200ResponseProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :param payment_solution: The payment_solution of this TssV2TransactionsGet200ResponseProcessingInformation. + :type: str + """ + if payment_solution is not None and len(payment_solution) > 12: + raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") + + self._payment_solution = payment_solution + + @property + def commerce_indicator(self): + """ + Gets the commerce_indicator of this TssV2TransactionsGet200ResponseProcessingInformation. + Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. + + :return: The commerce_indicator of this TssV2TransactionsGet200ResponseProcessingInformation. + :rtype: str + """ + return self._commerce_indicator + + @commerce_indicator.setter + def commerce_indicator(self, commerce_indicator): + """ + Sets the commerce_indicator of this TssV2TransactionsGet200ResponseProcessingInformation. + Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. + + :param commerce_indicator: The commerce_indicator of this TssV2TransactionsGet200ResponseProcessingInformation. + :type: str + """ + if commerce_indicator is not None and len(commerce_indicator) > 20: + raise ValueError("Invalid value for `commerce_indicator`, length must be less than or equal to `20`") + + self._commerce_indicator = commerce_indicator + + @property + def business_application_id(self): + """ + Gets the business_application_id of this TssV2TransactionsGet200ResponseProcessingInformation. + The description for this field is not available. + + :return: The business_application_id of this TssV2TransactionsGet200ResponseProcessingInformation. + :rtype: str + """ + return self._business_application_id + + @business_application_id.setter + def business_application_id(self, business_application_id): + """ + Sets the business_application_id of this TssV2TransactionsGet200ResponseProcessingInformation. + The description for this field is not available. + + :param business_application_id: The business_application_id of this TssV2TransactionsGet200ResponseProcessingInformation. + :type: str + """ + + self._business_application_id = business_application_id + + @property + def authorization_options(self): + """ + Gets the authorization_options of this TssV2TransactionsGet200ResponseProcessingInformation. + + :return: The authorization_options of this TssV2TransactionsGet200ResponseProcessingInformation. + :rtype: TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions + """ + return self._authorization_options + + @authorization_options.setter + def authorization_options(self, authorization_options): + """ + Sets the authorization_options of this TssV2TransactionsGet200ResponseProcessingInformation. + + :param authorization_options: The authorization_options of this TssV2TransactionsGet200ResponseProcessingInformation. + :type: TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions + """ + + self._authorization_options = authorization_options + + @property + def bank_transfer_options(self): + """ + Gets the bank_transfer_options of this TssV2TransactionsGet200ResponseProcessingInformation. + + :return: The bank_transfer_options of this TssV2TransactionsGet200ResponseProcessingInformation. + :rtype: TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions + """ + return self._bank_transfer_options + + @bank_transfer_options.setter + def bank_transfer_options(self, bank_transfer_options): + """ + Sets the bank_transfer_options of this TssV2TransactionsGet200ResponseProcessingInformation. + + :param bank_transfer_options: The bank_transfer_options of this TssV2TransactionsGet200ResponseProcessingInformation. + :type: TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions + """ + + self._bank_transfer_options = bank_transfer_options + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseProcessingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_processing_information_authorization_options.py b/CyberSource/models/tss_v2_transactions_get200_response_processing_information_authorization_options.py new file mode 100644 index 00000000..980b270c --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_processing_information_authorization_options.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_type': 'str' + } + + attribute_map = { + 'auth_type': 'authType' + } + + def __init__(self, auth_type=None): + """ + TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions - a model defined in Swagger + """ + + self._auth_type = None + + if auth_type is not None: + self.auth_type = auth_type + + @property + def auth_type(self): + """ + Gets the auth_type of this TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions. + Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The auth_type of this TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions. + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """ + Sets the auth_type of this TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions. + Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param auth_type: The auth_type of this TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions. + :type: str + """ + if auth_type is not None and len(auth_type) > 15: + raise ValueError("Invalid value for `auth_type`, length must be less than or equal to `15`") + + self._auth_type = auth_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.py b/CyberSource/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.py new file mode 100644 index 00000000..bf891f68 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'sec_code': 'str' + } + + attribute_map = { + 'sec_code': 'secCode' + } + + def __init__(self, sec_code=None): + """ + TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions - a model defined in Swagger + """ + + self._sec_code = None + + if sec_code is not None: + self.sec_code = sec_code + + @property + def sec_code(self): + """ + Gets the sec_code of this TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions. + The description for this field is not available. + + :return: The sec_code of this TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions. + :rtype: str + """ + return self._sec_code + + @sec_code.setter + def sec_code(self, sec_code): + """ + Sets the sec_code of this TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions. + The description for this field is not available. + + :param sec_code: The sec_code of this TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions. + :type: str + """ + + self._sec_code = sec_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_processor_information.py b/CyberSource/models/tss_v2_transactions_get200_response_processor_information.py new file mode 100644 index 00000000..e7c60971 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_processor_information.py @@ -0,0 +1,399 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseProcessorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'processor': 'TssV2TransactionsGet200ResponseProcessorInformationProcessor', + 'transaction_id': 'str', + 'network_transaction_id': 'str', + 'response_id': 'str', + 'provider_transaction_id': 'str', + 'approval_code': 'str', + 'response_code': 'str', + 'avs': 'PtsV2PaymentsPost201ResponseProcessorInformationAvs', + 'card_verification': 'TssV2TransactionsGet200ResponseProcessorInformationCardVerification', + 'ach_verification': 'TssV2TransactionsGet200ResponseProcessorInformationAchVerification', + 'electronic_verification_results': 'TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults' + } + + attribute_map = { + 'processor': 'processor', + 'transaction_id': 'transactionId', + 'network_transaction_id': 'networkTransactionId', + 'response_id': 'responseId', + 'provider_transaction_id': 'providerTransactionId', + 'approval_code': 'approvalCode', + 'response_code': 'responseCode', + 'avs': 'avs', + 'card_verification': 'cardVerification', + 'ach_verification': 'achVerification', + 'electronic_verification_results': 'electronicVerificationResults' + } + + def __init__(self, processor=None, transaction_id=None, network_transaction_id=None, response_id=None, provider_transaction_id=None, approval_code=None, response_code=None, avs=None, card_verification=None, ach_verification=None, electronic_verification_results=None): + """ + TssV2TransactionsGet200ResponseProcessorInformation - a model defined in Swagger + """ + + self._processor = None + self._transaction_id = None + self._network_transaction_id = None + self._response_id = None + self._provider_transaction_id = None + self._approval_code = None + self._response_code = None + self._avs = None + self._card_verification = None + self._ach_verification = None + self._electronic_verification_results = None + + if processor is not None: + self.processor = processor + if transaction_id is not None: + self.transaction_id = transaction_id + if network_transaction_id is not None: + self.network_transaction_id = network_transaction_id + if response_id is not None: + self.response_id = response_id + if provider_transaction_id is not None: + self.provider_transaction_id = provider_transaction_id + if approval_code is not None: + self.approval_code = approval_code + if response_code is not None: + self.response_code = response_code + if avs is not None: + self.avs = avs + if card_verification is not None: + self.card_verification = card_verification + if ach_verification is not None: + self.ach_verification = ach_verification + if electronic_verification_results is not None: + self.electronic_verification_results = electronic_verification_results + + @property + def processor(self): + """ + Gets the processor of this TssV2TransactionsGet200ResponseProcessorInformation. + + :return: The processor of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: TssV2TransactionsGet200ResponseProcessorInformationProcessor + """ + return self._processor + + @processor.setter + def processor(self, processor): + """ + Sets the processor of this TssV2TransactionsGet200ResponseProcessorInformation. + + :param processor: The processor of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: TssV2TransactionsGet200ResponseProcessorInformationProcessor + """ + + self._processor = processor + + @property + def transaction_id(self): + """ + Gets the transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. + + :return: The transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: str + """ + return self._transaction_id + + @transaction_id.setter + def transaction_id(self, transaction_id): + """ + Sets the transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. + + :param transaction_id: The transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: str + """ + if transaction_id is not None and len(transaction_id) > 50: + raise ValueError("Invalid value for `transaction_id`, length must be less than or equal to `50`") + + self._transaction_id = transaction_id + + @property + def network_transaction_id(self): + """ + Gets the network_transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + The description for this field is not available. + + :return: The network_transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: str + """ + return self._network_transaction_id + + @network_transaction_id.setter + def network_transaction_id(self, network_transaction_id): + """ + Sets the network_transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + The description for this field is not available. + + :param network_transaction_id: The network_transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: str + """ + + self._network_transaction_id = network_transaction_id + + @property + def response_id(self): + """ + Gets the response_id of this TssV2TransactionsGet200ResponseProcessorInformation. + The description for this field is not available. + + :return: The response_id of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: str + """ + return self._response_id + + @response_id.setter + def response_id(self, response_id): + """ + Sets the response_id of this TssV2TransactionsGet200ResponseProcessorInformation. + The description for this field is not available. + + :param response_id: The response_id of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: str + """ + + self._response_id = response_id + + @property + def provider_transaction_id(self): + """ + Gets the provider_transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + The description for this field is not available. + + :return: The provider_transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: str + """ + return self._provider_transaction_id + + @provider_transaction_id.setter + def provider_transaction_id(self, provider_transaction_id): + """ + Sets the provider_transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + The description for this field is not available. + + :param provider_transaction_id: The provider_transaction_id of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: str + """ + + self._provider_transaction_id = provider_transaction_id + + @property + def approval_code(self): + """ + Gets the approval_code of this TssV2TransactionsGet200ResponseProcessorInformation. + Authorization code. Returned only when the processor returns this value. + + :return: The approval_code of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: str + """ + return self._approval_code + + @approval_code.setter + def approval_code(self, approval_code): + """ + Sets the approval_code of this TssV2TransactionsGet200ResponseProcessorInformation. + Authorization code. Returned only when the processor returns this value. + + :param approval_code: The approval_code of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: str + """ + + self._approval_code = approval_code + + @property + def response_code(self): + """ + Gets the response_code of this TssV2TransactionsGet200ResponseProcessorInformation. + For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. + + :return: The response_code of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: str + """ + return self._response_code + + @response_code.setter + def response_code(self, response_code): + """ + Sets the response_code of this TssV2TransactionsGet200ResponseProcessorInformation. + For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. + + :param response_code: The response_code of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: str + """ + if response_code is not None and len(response_code) > 10: + raise ValueError("Invalid value for `response_code`, length must be less than or equal to `10`") + + self._response_code = response_code + + @property + def avs(self): + """ + Gets the avs of this TssV2TransactionsGet200ResponseProcessorInformation. + + :return: The avs of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: PtsV2PaymentsPost201ResponseProcessorInformationAvs + """ + return self._avs + + @avs.setter + def avs(self, avs): + """ + Sets the avs of this TssV2TransactionsGet200ResponseProcessorInformation. + + :param avs: The avs of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: PtsV2PaymentsPost201ResponseProcessorInformationAvs + """ + + self._avs = avs + + @property + def card_verification(self): + """ + Gets the card_verification of this TssV2TransactionsGet200ResponseProcessorInformation. + + :return: The card_verification of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: TssV2TransactionsGet200ResponseProcessorInformationCardVerification + """ + return self._card_verification + + @card_verification.setter + def card_verification(self, card_verification): + """ + Sets the card_verification of this TssV2TransactionsGet200ResponseProcessorInformation. + + :param card_verification: The card_verification of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: TssV2TransactionsGet200ResponseProcessorInformationCardVerification + """ + + self._card_verification = card_verification + + @property + def ach_verification(self): + """ + Gets the ach_verification of this TssV2TransactionsGet200ResponseProcessorInformation. + + :return: The ach_verification of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: TssV2TransactionsGet200ResponseProcessorInformationAchVerification + """ + return self._ach_verification + + @ach_verification.setter + def ach_verification(self, ach_verification): + """ + Sets the ach_verification of this TssV2TransactionsGet200ResponseProcessorInformation. + + :param ach_verification: The ach_verification of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: TssV2TransactionsGet200ResponseProcessorInformationAchVerification + """ + + self._ach_verification = ach_verification + + @property + def electronic_verification_results(self): + """ + Gets the electronic_verification_results of this TssV2TransactionsGet200ResponseProcessorInformation. + + :return: The electronic_verification_results of this TssV2TransactionsGet200ResponseProcessorInformation. + :rtype: TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults + """ + return self._electronic_verification_results + + @electronic_verification_results.setter + def electronic_verification_results(self, electronic_verification_results): + """ + Sets the electronic_verification_results of this TssV2TransactionsGet200ResponseProcessorInformation. + + :param electronic_verification_results: The electronic_verification_results of this TssV2TransactionsGet200ResponseProcessorInformation. + :type: TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults + """ + + self._electronic_verification_results = electronic_verification_results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseProcessorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_processor_information_ach_verification.py b/CyberSource/models/tss_v2_transactions_get200_response_processor_information_ach_verification.py new file mode 100644 index 00000000..832d3ccb --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_processor_information_ach_verification.py @@ -0,0 +1,157 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseProcessorInformationAchVerification(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'result_code': 'str', + 'result_code_raw': 'str' + } + + attribute_map = { + 'result_code': 'resultCode', + 'result_code_raw': 'resultCodeRaw' + } + + def __init__(self, result_code=None, result_code_raw=None): + """ + TssV2TransactionsGet200ResponseProcessorInformationAchVerification - a model defined in Swagger + """ + + self._result_code = None + self._result_code_raw = None + + if result_code is not None: + self.result_code = result_code + if result_code_raw is not None: + self.result_code_raw = result_code_raw + + @property + def result_code(self): + """ + Gets the result_code of this TssV2TransactionsGet200ResponseProcessorInformationAchVerification. + The description for this field is not available.. + + :return: The result_code of this TssV2TransactionsGet200ResponseProcessorInformationAchVerification. + :rtype: str + """ + return self._result_code + + @result_code.setter + def result_code(self, result_code): + """ + Sets the result_code of this TssV2TransactionsGet200ResponseProcessorInformationAchVerification. + The description for this field is not available.. + + :param result_code: The result_code of this TssV2TransactionsGet200ResponseProcessorInformationAchVerification. + :type: str + """ + if result_code is not None and len(result_code) > 1: + raise ValueError("Invalid value for `result_code`, length must be less than or equal to `1`") + + self._result_code = result_code + + @property + def result_code_raw(self): + """ + Gets the result_code_raw of this TssV2TransactionsGet200ResponseProcessorInformationAchVerification. + The description for this field is not available. + + :return: The result_code_raw of this TssV2TransactionsGet200ResponseProcessorInformationAchVerification. + :rtype: str + """ + return self._result_code_raw + + @result_code_raw.setter + def result_code_raw(self, result_code_raw): + """ + Sets the result_code_raw of this TssV2TransactionsGet200ResponseProcessorInformationAchVerification. + The description for this field is not available. + + :param result_code_raw: The result_code_raw of this TssV2TransactionsGet200ResponseProcessorInformationAchVerification. + :type: str + """ + if result_code_raw is not None and len(result_code_raw) > 10: + raise ValueError("Invalid value for `result_code_raw`, length must be less than or equal to `10`") + + self._result_code_raw = result_code_raw + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseProcessorInformationAchVerification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_processor_information_card_verification.py b/CyberSource/models/tss_v2_transactions_get200_response_processor_information_card_verification.py new file mode 100644 index 00000000..f15961f9 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_processor_information_card_verification.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseProcessorInformationCardVerification(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'result_code': 'str' + } + + attribute_map = { + 'result_code': 'resultCode' + } + + def __init__(self, result_code=None): + """ + TssV2TransactionsGet200ResponseProcessorInformationCardVerification - a model defined in Swagger + """ + + self._result_code = None + + if result_code is not None: + self.result_code = result_code + + @property + def result_code(self): + """ + Gets the result_code of this TssV2TransactionsGet200ResponseProcessorInformationCardVerification. + CVN result code. + + :return: The result_code of this TssV2TransactionsGet200ResponseProcessorInformationCardVerification. + :rtype: str + """ + return self._result_code + + @result_code.setter + def result_code(self, result_code): + """ + Sets the result_code of this TssV2TransactionsGet200ResponseProcessorInformationCardVerification. + CVN result code. + + :param result_code: The result_code of this TssV2TransactionsGet200ResponseProcessorInformationCardVerification. + :type: str + """ + if result_code is not None and len(result_code) > 1: + raise ValueError("Invalid value for `result_code`, length must be less than or equal to `1`") + + self._result_code = result_code + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseProcessorInformationCardVerification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.py b/CyberSource/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.py new file mode 100644 index 00000000..61ef907e --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.py @@ -0,0 +1,397 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str', + 'email_raw': 'str', + 'name': 'str', + 'name_raw': 'str', + 'phone_number': 'str', + 'phone_number_raw': 'str', + 'street': 'str', + 'street_raw': 'str', + 'postal_code': 'str', + 'postal_code_raw': 'str' + } + + attribute_map = { + 'email': 'email', + 'email_raw': 'emailRaw', + 'name': 'name', + 'name_raw': 'nameRaw', + 'phone_number': 'phoneNumber', + 'phone_number_raw': 'phoneNumberRaw', + 'street': 'street', + 'street_raw': 'streetRaw', + 'postal_code': 'postalCode', + 'postal_code_raw': 'postalCodeRaw' + } + + def __init__(self, email=None, email_raw=None, name=None, name_raw=None, phone_number=None, phone_number_raw=None, street=None, street_raw=None, postal_code=None, postal_code_raw=None): + """ + TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults - a model defined in Swagger + """ + + self._email = None + self._email_raw = None + self._name = None + self._name_raw = None + self._phone_number = None + self._phone_number_raw = None + self._street = None + self._street_raw = None + self._postal_code = None + self._postal_code_raw = None + + if email is not None: + self.email = email + if email_raw is not None: + self.email_raw = email_raw + if name is not None: + self.name = name + if name_raw is not None: + self.name_raw = name_raw + if phone_number is not None: + self.phone_number = phone_number + if phone_number_raw is not None: + self.phone_number_raw = phone_number_raw + if street is not None: + self.street = street + if street_raw is not None: + self.street_raw = street_raw + if postal_code is not None: + self.postal_code = postal_code + if postal_code_raw is not None: + self.postal_code_raw = postal_code_raw + + @property + def email(self): + """ + Gets the email of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s email address. + + :return: The email of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s email address. + + :param email: The email of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if email is not None and len(email) > 1: + raise ValueError("Invalid value for `email`, length must be less than or equal to `1`") + + self._email = email + + @property + def email_raw(self): + """ + Gets the email_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s email address. + + :return: The email_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._email_raw + + @email_raw.setter + def email_raw(self, email_raw): + """ + Sets the email_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s email address. + + :param email_raw: The email_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if email_raw is not None and len(email_raw) > 1: + raise ValueError("Invalid value for `email_raw`, length must be less than or equal to `1`") + + self._email_raw = email_raw + + @property + def name(self): + """ + Gets the name of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + The description for this field is not available. + + :return: The name of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + The description for this field is not available. + + :param name: The name of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if name is not None and len(name) > 30: + raise ValueError("Invalid value for `name`, length must be less than or equal to `30`") + + self._name = name + + @property + def name_raw(self): + """ + Gets the name_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + The description for this field is not available. + + :return: The name_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._name_raw + + @name_raw.setter + def name_raw(self, name_raw): + """ + Sets the name_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + The description for this field is not available. + + :param name_raw: The name_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if name_raw is not None and len(name_raw) > 30: + raise ValueError("Invalid value for `name_raw`, length must be less than or equal to `30`") + + self._name_raw = name_raw + + @property + def phone_number(self): + """ + Gets the phone_number of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s phone number. + + :return: The phone_number of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s phone number. + + :param phone_number: The phone_number of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if phone_number is not None and len(phone_number) > 1: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `1`") + + self._phone_number = phone_number + + @property + def phone_number_raw(self): + """ + Gets the phone_number_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s phone number. + + :return: The phone_number_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._phone_number_raw + + @phone_number_raw.setter + def phone_number_raw(self, phone_number_raw): + """ + Sets the phone_number_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s phone number. + + :param phone_number_raw: The phone_number_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if phone_number_raw is not None and len(phone_number_raw) > 1: + raise ValueError("Invalid value for `phone_number_raw`, length must be less than or equal to `1`") + + self._phone_number_raw = phone_number_raw + + @property + def street(self): + """ + Gets the street of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s street address. + + :return: The street of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._street + + @street.setter + def street(self, street): + """ + Sets the street of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s street address. + + :param street: The street of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if street is not None and len(street) > 1: + raise ValueError("Invalid value for `street`, length must be less than or equal to `1`") + + self._street = street + + @property + def street_raw(self): + """ + Gets the street_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s street address. + + :return: The street_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._street_raw + + @street_raw.setter + def street_raw(self, street_raw): + """ + Sets the street_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s street address. + + :param street_raw: The street_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if street_raw is not None and len(street_raw) > 1: + raise ValueError("Invalid value for `street_raw`, length must be less than or equal to `1`") + + self._street_raw = street_raw + + @property + def postal_code(self): + """ + Gets the postal_code of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s postal code. + + :return: The postal_code of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._postal_code + + @postal_code.setter + def postal_code(self, postal_code): + """ + Sets the postal_code of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Mapped Electronic Verification response code for the customer’s postal code. + + :param postal_code: The postal_code of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if postal_code is not None and len(postal_code) > 1: + raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `1`") + + self._postal_code = postal_code + + @property + def postal_code_raw(self): + """ + Gets the postal_code_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s postal code. + + :return: The postal_code_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :rtype: str + """ + return self._postal_code_raw + + @postal_code_raw.setter + def postal_code_raw(self, postal_code_raw): + """ + Sets the postal_code_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + Raw Electronic Verification response code from the processor for the customer’s postal code. + + :param postal_code_raw: The postal_code_raw of this TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults. + :type: str + """ + if postal_code_raw is not None and len(postal_code_raw) > 1: + raise ValueError("Invalid value for `postal_code_raw`, length must be less than or equal to `1`") + + self._postal_code_raw = postal_code_raw + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_processor_information_processor.py b/CyberSource/models/tss_v2_transactions_get200_response_processor_information_processor.py new file mode 100644 index 00000000..d0fd2dd5 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_processor_information_processor.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseProcessorInformationProcessor(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """ + TssV2TransactionsGet200ResponseProcessorInformationProcessor - a model defined in Swagger + """ + + self._name = None + + if name is not None: + self.name = name + + @property + def name(self): + """ + Gets the name of this TssV2TransactionsGet200ResponseProcessorInformationProcessor. + Name of the Processor. + + :return: The name of this TssV2TransactionsGet200ResponseProcessorInformationProcessor. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this TssV2TransactionsGet200ResponseProcessorInformationProcessor. + Name of the Processor. + + :param name: The name of this TssV2TransactionsGet200ResponseProcessorInformationProcessor. + :type: str + """ + if name is not None and len(name) > 30: + raise ValueError("Invalid value for `name`, length must be less than or equal to `30`") + + self._name = name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseProcessorInformationProcessor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_risk_information.py b/CyberSource/models/tss_v2_transactions_get200_response_risk_information.py new file mode 100644 index 00000000..7bbb1598 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_risk_information.py @@ -0,0 +1,255 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseRiskInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'profile': 'TssV2TransactionsGet200ResponseRiskInformationProfile', + 'rules': 'list[TssV2TransactionsGet200ResponseRiskInformationProfile]', + 'passive_profile': 'TssV2TransactionsGet200ResponseRiskInformationProfile', + 'passive_rules': 'list[TssV2TransactionsGet200ResponseRiskInformationProfile]', + 'score': 'TssV2TransactionsGet200ResponseRiskInformationScore', + 'local_time': 'str' + } + + attribute_map = { + 'profile': 'profile', + 'rules': 'rules', + 'passive_profile': 'passiveProfile', + 'passive_rules': 'passiveRules', + 'score': 'score', + 'local_time': 'localTime' + } + + def __init__(self, profile=None, rules=None, passive_profile=None, passive_rules=None, score=None, local_time=None): + """ + TssV2TransactionsGet200ResponseRiskInformation - a model defined in Swagger + """ + + self._profile = None + self._rules = None + self._passive_profile = None + self._passive_rules = None + self._score = None + self._local_time = None + + if profile is not None: + self.profile = profile + if rules is not None: + self.rules = rules + if passive_profile is not None: + self.passive_profile = passive_profile + if passive_rules is not None: + self.passive_rules = passive_rules + if score is not None: + self.score = score + if local_time is not None: + self.local_time = local_time + + @property + def profile(self): + """ + Gets the profile of this TssV2TransactionsGet200ResponseRiskInformation. + + :return: The profile of this TssV2TransactionsGet200ResponseRiskInformation. + :rtype: TssV2TransactionsGet200ResponseRiskInformationProfile + """ + return self._profile + + @profile.setter + def profile(self, profile): + """ + Sets the profile of this TssV2TransactionsGet200ResponseRiskInformation. + + :param profile: The profile of this TssV2TransactionsGet200ResponseRiskInformation. + :type: TssV2TransactionsGet200ResponseRiskInformationProfile + """ + + self._profile = profile + + @property + def rules(self): + """ + Gets the rules of this TssV2TransactionsGet200ResponseRiskInformation. + + :return: The rules of this TssV2TransactionsGet200ResponseRiskInformation. + :rtype: list[TssV2TransactionsGet200ResponseRiskInformationProfile] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this TssV2TransactionsGet200ResponseRiskInformation. + + :param rules: The rules of this TssV2TransactionsGet200ResponseRiskInformation. + :type: list[TssV2TransactionsGet200ResponseRiskInformationProfile] + """ + + self._rules = rules + + @property + def passive_profile(self): + """ + Gets the passive_profile of this TssV2TransactionsGet200ResponseRiskInformation. + + :return: The passive_profile of this TssV2TransactionsGet200ResponseRiskInformation. + :rtype: TssV2TransactionsGet200ResponseRiskInformationProfile + """ + return self._passive_profile + + @passive_profile.setter + def passive_profile(self, passive_profile): + """ + Sets the passive_profile of this TssV2TransactionsGet200ResponseRiskInformation. + + :param passive_profile: The passive_profile of this TssV2TransactionsGet200ResponseRiskInformation. + :type: TssV2TransactionsGet200ResponseRiskInformationProfile + """ + + self._passive_profile = passive_profile + + @property + def passive_rules(self): + """ + Gets the passive_rules of this TssV2TransactionsGet200ResponseRiskInformation. + + :return: The passive_rules of this TssV2TransactionsGet200ResponseRiskInformation. + :rtype: list[TssV2TransactionsGet200ResponseRiskInformationProfile] + """ + return self._passive_rules + + @passive_rules.setter + def passive_rules(self, passive_rules): + """ + Sets the passive_rules of this TssV2TransactionsGet200ResponseRiskInformation. + + :param passive_rules: The passive_rules of this TssV2TransactionsGet200ResponseRiskInformation. + :type: list[TssV2TransactionsGet200ResponseRiskInformationProfile] + """ + + self._passive_rules = passive_rules + + @property + def score(self): + """ + Gets the score of this TssV2TransactionsGet200ResponseRiskInformation. + + :return: The score of this TssV2TransactionsGet200ResponseRiskInformation. + :rtype: TssV2TransactionsGet200ResponseRiskInformationScore + """ + return self._score + + @score.setter + def score(self, score): + """ + Sets the score of this TssV2TransactionsGet200ResponseRiskInformation. + + :param score: The score of this TssV2TransactionsGet200ResponseRiskInformation. + :type: TssV2TransactionsGet200ResponseRiskInformationScore + """ + + self._score = score + + @property + def local_time(self): + """ + Gets the local_time of this TssV2TransactionsGet200ResponseRiskInformation. + Time that the transaction was submitted in local time.. + + :return: The local_time of this TssV2TransactionsGet200ResponseRiskInformation. + :rtype: str + """ + return self._local_time + + @local_time.setter + def local_time(self, local_time): + """ + Sets the local_time of this TssV2TransactionsGet200ResponseRiskInformation. + Time that the transaction was submitted in local time.. + + :param local_time: The local_time of this TssV2TransactionsGet200ResponseRiskInformation. + :type: str + """ + + self._local_time = local_time + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseRiskInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_risk_information_profile.py b/CyberSource/models/tss_v2_transactions_get200_response_risk_information_profile.py new file mode 100644 index 00000000..81677c3f --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_risk_information_profile.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseRiskInformationProfile(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'decision': 'str' + } + + attribute_map = { + 'name': 'name', + 'decision': 'decision' + } + + def __init__(self, name=None, decision=None): + """ + TssV2TransactionsGet200ResponseRiskInformationProfile - a model defined in Swagger + """ + + self._name = None + self._decision = None + + if name is not None: + self.name = name + if decision is not None: + self.decision = decision + + @property + def name(self): + """ + Gets the name of this TssV2TransactionsGet200ResponseRiskInformationProfile. + The description for this field is not available. + + :return: The name of this TssV2TransactionsGet200ResponseRiskInformationProfile. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this TssV2TransactionsGet200ResponseRiskInformationProfile. + The description for this field is not available. + + :param name: The name of this TssV2TransactionsGet200ResponseRiskInformationProfile. + :type: str + """ + + self._name = name + + @property + def decision(self): + """ + Gets the decision of this TssV2TransactionsGet200ResponseRiskInformationProfile. + The description for this field is not available. + + :return: The decision of this TssV2TransactionsGet200ResponseRiskInformationProfile. + :rtype: str + """ + return self._decision + + @decision.setter + def decision(self, decision): + """ + Sets the decision of this TssV2TransactionsGet200ResponseRiskInformationProfile. + The description for this field is not available. + + :param decision: The decision of this TssV2TransactionsGet200ResponseRiskInformationProfile. + :type: str + """ + + self._decision = decision + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseRiskInformationProfile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_risk_information_score.py b/CyberSource/models/tss_v2_transactions_get200_response_risk_information_score.py new file mode 100644 index 00000000..221b7f24 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_risk_information_score.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseRiskInformationScore(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'factor_codes': 'list[str]', + 'result': 'int' + } + + attribute_map = { + 'factor_codes': 'factorCodes', + 'result': 'result' + } + + def __init__(self, factor_codes=None, result=None): + """ + TssV2TransactionsGet200ResponseRiskInformationScore - a model defined in Swagger + """ + + self._factor_codes = None + self._result = None + + if factor_codes is not None: + self.factor_codes = factor_codes + if result is not None: + self.result = result + + @property + def factor_codes(self): + """ + Gets the factor_codes of this TssV2TransactionsGet200ResponseRiskInformationScore. + Array of factor codes. + + :return: The factor_codes of this TssV2TransactionsGet200ResponseRiskInformationScore. + :rtype: list[str] + """ + return self._factor_codes + + @factor_codes.setter + def factor_codes(self, factor_codes): + """ + Sets the factor_codes of this TssV2TransactionsGet200ResponseRiskInformationScore. + Array of factor codes. + + :param factor_codes: The factor_codes of this TssV2TransactionsGet200ResponseRiskInformationScore. + :type: list[str] + """ + + self._factor_codes = factor_codes + + @property + def result(self): + """ + Gets the result of this TssV2TransactionsGet200ResponseRiskInformationScore. + The description for this field is not available. + + :return: The result of this TssV2TransactionsGet200ResponseRiskInformationScore. + :rtype: int + """ + return self._result + + @result.setter + def result(self, result): + """ + Sets the result of this TssV2TransactionsGet200ResponseRiskInformationScore. + The description for this field is not available. + + :param result: The result of this TssV2TransactionsGet200ResponseRiskInformationScore. + :type: int + """ + + self._result = result + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseRiskInformationScore): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_get200_response_sender_information.py b/CyberSource/models/tss_v2_transactions_get200_response_sender_information.py new file mode 100644 index 00000000..da1065bb --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_get200_response_sender_information.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsGet200ResponseSenderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reference_number': 'str' + } + + attribute_map = { + 'reference_number': 'referenceNumber' + } + + def __init__(self, reference_number=None): + """ + TssV2TransactionsGet200ResponseSenderInformation - a model defined in Swagger + """ + + self._reference_number = None + + if reference_number is not None: + self.reference_number = reference_number + + @property + def reference_number(self): + """ + Gets the reference_number of this TssV2TransactionsGet200ResponseSenderInformation. + Reference number generated by you that uniquely identifies the sender. + + :return: The reference_number of this TssV2TransactionsGet200ResponseSenderInformation. + :rtype: str + """ + return self._reference_number + + @reference_number.setter + def reference_number(self, reference_number): + """ + Sets the reference_number of this TssV2TransactionsGet200ResponseSenderInformation. + Reference number generated by you that uniquely identifies the sender. + + :param reference_number: The reference_number of this TssV2TransactionsGet200ResponseSenderInformation. + :type: str + """ + if reference_number is not None and len(reference_number) > 19: + raise ValueError("Invalid value for `reference_number`, length must be less than or equal to `19`") + + self._reference_number = reference_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsGet200ResponseSenderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response.py b/CyberSource/models/tss_v2_transactions_post201_response.py new file mode 100644 index 00000000..33a2229d --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response.py @@ -0,0 +1,459 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'save': 'bool', + 'name': 'str', + 'timezone': 'str', + 'query': 'str', + 'offset': 'int', + 'limit': 'int', + 'sort': 'str', + 'count': 'int', + 'total_count': 'int', + 'submit_time_utc': 'str', + 'embedded': 'TssV2TransactionsPost201ResponseEmbedded', + 'links': 'PtsV2PaymentsReversalsPost201ResponseLinks' + } + + attribute_map = { + 'id': 'id', + 'save': 'save', + 'name': 'name', + 'timezone': 'timezone', + 'query': 'query', + 'offset': 'offset', + 'limit': 'limit', + 'sort': 'sort', + 'count': 'count', + 'total_count': 'totalCount', + 'submit_time_utc': 'submitTimeUtc', + 'embedded': '_embedded', + 'links': '_links' + } + + def __init__(self, id=None, save=None, name=None, timezone=None, query=None, offset=None, limit=None, sort=None, count=None, total_count=None, submit_time_utc=None, embedded=None, links=None): + """ + TssV2TransactionsPost201Response - a model defined in Swagger + """ + + self._id = None + self._save = None + self._name = None + self._timezone = None + self._query = None + self._offset = None + self._limit = None + self._sort = None + self._count = None + self._total_count = None + self._submit_time_utc = None + self._embedded = None + self._links = None + + if id is not None: + self.id = id + if save is not None: + self.save = save + if name is not None: + self.name = name + if timezone is not None: + self.timezone = timezone + if query is not None: + self.query = query + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if sort is not None: + self.sort = sort + if count is not None: + self.count = count + if total_count is not None: + self.total_count = total_count + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if embedded is not None: + self.embedded = embedded + if links is not None: + self.links = links + + @property + def id(self): + """ + Gets the id of this TssV2TransactionsPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :return: The id of this TssV2TransactionsPost201Response. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TssV2TransactionsPost201Response. + An unique identification number assigned by CyberSource to identify the submitted request. + + :param id: The id of this TssV2TransactionsPost201Response. + :type: str + """ + if id is not None and len(id) > 26: + raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") + + self._id = id + + @property + def save(self): + """ + Gets the save of this TssV2TransactionsPost201Response. + save or not save. + + :return: The save of this TssV2TransactionsPost201Response. + :rtype: bool + """ + return self._save + + @save.setter + def save(self, save): + """ + Sets the save of this TssV2TransactionsPost201Response. + save or not save. + + :param save: The save of this TssV2TransactionsPost201Response. + :type: bool + """ + + self._save = save + + @property + def name(self): + """ + Gets the name of this TssV2TransactionsPost201Response. + The description for this field is not available. + + :return: The name of this TssV2TransactionsPost201Response. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this TssV2TransactionsPost201Response. + The description for this field is not available. + + :param name: The name of this TssV2TransactionsPost201Response. + :type: str + """ + + self._name = name + + @property + def timezone(self): + """ + Gets the timezone of this TssV2TransactionsPost201Response. + Time Zone. + + :return: The timezone of this TssV2TransactionsPost201Response. + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this TssV2TransactionsPost201Response. + Time Zone. + + :param timezone: The timezone of this TssV2TransactionsPost201Response. + :type: str + """ + + self._timezone = timezone + + @property + def query(self): + """ + Gets the query of this TssV2TransactionsPost201Response. + transaction search query string. + + :return: The query of this TssV2TransactionsPost201Response. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """ + Sets the query of this TssV2TransactionsPost201Response. + transaction search query string. + + :param query: The query of this TssV2TransactionsPost201Response. + :type: str + """ + + self._query = query + + @property + def offset(self): + """ + Gets the offset of this TssV2TransactionsPost201Response. + offset. + + :return: The offset of this TssV2TransactionsPost201Response. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """ + Sets the offset of this TssV2TransactionsPost201Response. + offset. + + :param offset: The offset of this TssV2TransactionsPost201Response. + :type: int + """ + + self._offset = offset + + @property + def limit(self): + """ + Gets the limit of this TssV2TransactionsPost201Response. + limit on number of results. + + :return: The limit of this TssV2TransactionsPost201Response. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """ + Sets the limit of this TssV2TransactionsPost201Response. + limit on number of results. + + :param limit: The limit of this TssV2TransactionsPost201Response. + :type: int + """ + + self._limit = limit + + @property + def sort(self): + """ + Gets the sort of this TssV2TransactionsPost201Response. + A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc. + + :return: The sort of this TssV2TransactionsPost201Response. + :rtype: str + """ + return self._sort + + @sort.setter + def sort(self, sort): + """ + Sets the sort of this TssV2TransactionsPost201Response. + A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc. + + :param sort: The sort of this TssV2TransactionsPost201Response. + :type: str + """ + + self._sort = sort + + @property + def count(self): + """ + Gets the count of this TssV2TransactionsPost201Response. + Results for this page, this could be below the limit. + + :return: The count of this TssV2TransactionsPost201Response. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this TssV2TransactionsPost201Response. + Results for this page, this could be below the limit. + + :param count: The count of this TssV2TransactionsPost201Response. + :type: int + """ + + self._count = count + + @property + def total_count(self): + """ + Gets the total_count of this TssV2TransactionsPost201Response. + total number of results. + + :return: The total_count of this TssV2TransactionsPost201Response. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """ + Sets the total_count of this TssV2TransactionsPost201Response. + total number of results. + + :param total_count: The total_count of this TssV2TransactionsPost201Response. + :type: int + """ + + self._total_count = total_count + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this TssV2TransactionsPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this TssV2TransactionsPost201Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this TssV2TransactionsPost201Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this TssV2TransactionsPost201Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def embedded(self): + """ + Gets the embedded of this TssV2TransactionsPost201Response. + + :return: The embedded of this TssV2TransactionsPost201Response. + :rtype: TssV2TransactionsPost201ResponseEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """ + Sets the embedded of this TssV2TransactionsPost201Response. + + :param embedded: The embedded of this TssV2TransactionsPost201Response. + :type: TssV2TransactionsPost201ResponseEmbedded + """ + + self._embedded = embedded + + @property + def links(self): + """ + Gets the links of this TssV2TransactionsPost201Response. + + :return: The links of this TssV2TransactionsPost201Response. + :rtype: PtsV2PaymentsReversalsPost201ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this TssV2TransactionsPost201Response. + + :param links: The links of this TssV2TransactionsPost201Response. + :type: PtsV2PaymentsReversalsPost201ResponseLinks + """ + + self._links = links + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded.py new file mode 100644 index 00000000..557c989d --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbedded(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'transaction_summaries': 'list[TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries]' + } + + attribute_map = { + 'transaction_summaries': 'transactionSummaries' + } + + def __init__(self, transaction_summaries=None): + """ + TssV2TransactionsPost201ResponseEmbedded - a model defined in Swagger + """ + + self._transaction_summaries = None + + if transaction_summaries is not None: + self.transaction_summaries = transaction_summaries + + @property + def transaction_summaries(self): + """ + Gets the transaction_summaries of this TssV2TransactionsPost201ResponseEmbedded. + transaction search summary + + :return: The transaction_summaries of this TssV2TransactionsPost201ResponseEmbedded. + :rtype: list[TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries] + """ + return self._transaction_summaries + + @transaction_summaries.setter + def transaction_summaries(self, transaction_summaries): + """ + Sets the transaction_summaries of this TssV2TransactionsPost201ResponseEmbedded. + transaction search summary + + :param transaction_summaries: The transaction_summaries of this TssV2TransactionsPost201ResponseEmbedded. + :type: list[TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries] + """ + + self._transaction_summaries = transaction_summaries + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbedded): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded__links.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded__links.py new file mode 100644 index 00000000..b48ae797 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded__links.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'transaction_detail': 'PtsV2PaymentsPost201ResponseLinksSelf' + } + + attribute_map = { + 'transaction_detail': 'transactionDetail' + } + + def __init__(self, transaction_detail=None): + """ + TssV2TransactionsPost201ResponseEmbeddedLinks - a model defined in Swagger + """ + + self._transaction_detail = None + + if transaction_detail is not None: + self.transaction_detail = transaction_detail + + @property + def transaction_detail(self): + """ + Gets the transaction_detail of this TssV2TransactionsPost201ResponseEmbeddedLinks. + + :return: The transaction_detail of this TssV2TransactionsPost201ResponseEmbeddedLinks. + :rtype: PtsV2PaymentsPost201ResponseLinksSelf + """ + return self._transaction_detail + + @transaction_detail.setter + def transaction_detail(self, transaction_detail): + """ + Sets the transaction_detail of this TssV2TransactionsPost201ResponseEmbeddedLinks. + + :param transaction_detail: The transaction_detail of this TssV2TransactionsPost201ResponseEmbeddedLinks. + :type: PtsV2PaymentsPost201ResponseLinksSelf + """ + + self._transaction_detail = transaction_detail + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_buyer_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_buyer_information.py new file mode 100644 index 00000000..ee76bb69 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_buyer_information.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedBuyerInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'merchant_customer_id': 'str' + } + + attribute_map = { + 'merchant_customer_id': 'merchantCustomerId' + } + + def __init__(self, merchant_customer_id=None): + """ + TssV2TransactionsPost201ResponseEmbeddedBuyerInformation - a model defined in Swagger + """ + + self._merchant_customer_id = None + + if merchant_customer_id is not None: + self.merchant_customer_id = merchant_customer_id + + @property + def merchant_customer_id(self): + """ + Gets the merchant_customer_id of this TssV2TransactionsPost201ResponseEmbeddedBuyerInformation. + Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The merchant_customer_id of this TssV2TransactionsPost201ResponseEmbeddedBuyerInformation. + :rtype: str + """ + return self._merchant_customer_id + + @merchant_customer_id.setter + def merchant_customer_id(self, merchant_customer_id): + """ + Sets the merchant_customer_id of this TssV2TransactionsPost201ResponseEmbeddedBuyerInformation. + Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param merchant_customer_id: The merchant_customer_id of this TssV2TransactionsPost201ResponseEmbeddedBuyerInformation. + :type: str + """ + if merchant_customer_id is not None and len(merchant_customer_id) > 100: + raise ValueError("Invalid value for `merchant_customer_id`, length must be less than or equal to `100`") + + self._merchant_customer_id = merchant_customer_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedBuyerInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_client_reference_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_client_reference_information.py new file mode 100644 index 00000000..ce73ca18 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_client_reference_information.py @@ -0,0 +1,183 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'application_name': 'str', + 'application_user': 'str' + } + + attribute_map = { + 'code': 'code', + 'application_name': 'applicationName', + 'application_user': 'applicationUser' + } + + def __init__(self, code=None, application_name=None, application_user=None): + """ + TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation - a model defined in Swagger + """ + + self._code = None + self._application_name = None + self._application_user = None + + if code is not None: + self.code = code + if application_name is not None: + self.application_name = application_name + if application_user is not None: + self.application_user = application_user + + @property + def code(self): + """ + Gets the code of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + + :return: The code of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. + + :param code: The code of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + :type: str + """ + if code is not None and len(code) > 50: + raise ValueError("Invalid value for `code`, length must be less than or equal to `50`") + + self._code = code + + @property + def application_name(self): + """ + Gets the application_name of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + The application name of client which is used to submit the request. + + :return: The application_name of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + :rtype: str + """ + return self._application_name + + @application_name.setter + def application_name(self, application_name): + """ + Sets the application_name of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + The application name of client which is used to submit the request. + + :param application_name: The application_name of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + :type: str + """ + + self._application_name = application_name + + @property + def application_user(self): + """ + Gets the application_user of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + The description for this field is not available. + + :return: The application_user of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + :rtype: str + """ + return self._application_user + + @application_user.setter + def application_user(self, application_user): + """ + Sets the application_user of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + The description for this field is not available. + + :param application_user: The application_user of this TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation. + :type: str + """ + + self._application_user = application_user + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.py new file mode 100644 index 00000000..c297a9d7 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'xid': 'str', + 'transaction_id': 'str' + } + + attribute_map = { + 'xid': 'xid', + 'transaction_id': 'transactionId' + } + + def __init__(self, xid=None, transaction_id=None): + """ + TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation - a model defined in Swagger + """ + + self._xid = None + self._transaction_id = None + + if xid is not None: + self.xid = xid + if transaction_id is not None: + self.transaction_id = transaction_id + + @property + def xid(self): + """ + Gets the xid of this TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation. + Transaction identifier. + + :return: The xid of this TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation. + :rtype: str + """ + return self._xid + + @xid.setter + def xid(self, xid): + """ + Sets the xid of this TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation. + Transaction identifier. + + :param xid: The xid of this TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation. + :type: str + """ + if xid is not None and len(xid) > 40: + raise ValueError("Invalid value for `xid`, length must be less than or equal to `40`") + + self._xid = xid + + @property + def transaction_id(self): + """ + Gets the transaction_id of this TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation. + Payer auth Transaction identifier. + + :return: The transaction_id of this TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation. + :rtype: str + """ + return self._transaction_id + + @transaction_id.setter + def transaction_id(self, transaction_id): + """ + Sets the transaction_id of this TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation. + Payer auth Transaction identifier. + + :param transaction_id: The transaction_id of this TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation. + :type: str + """ + + self._transaction_id = transaction_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_device_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_device_information.py new file mode 100644 index 00000000..538c52f0 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_device_information.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedDeviceInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'ip_address': 'str' + } + + attribute_map = { + 'ip_address': 'ipAddress' + } + + def __init__(self, ip_address=None): + """ + TssV2TransactionsPost201ResponseEmbeddedDeviceInformation - a model defined in Swagger + """ + + self._ip_address = None + + if ip_address is not None: + self.ip_address = ip_address + + @property + def ip_address(self): + """ + Gets the ip_address of this TssV2TransactionsPost201ResponseEmbeddedDeviceInformation. + IP address of the customer. + + :return: The ip_address of this TssV2TransactionsPost201ResponseEmbeddedDeviceInformation. + :rtype: str + """ + return self._ip_address + + @ip_address.setter + def ip_address(self, ip_address): + """ + Sets the ip_address of this TssV2TransactionsPost201ResponseEmbeddedDeviceInformation. + IP address of the customer. + + :param ip_address: The ip_address of this TssV2TransactionsPost201ResponseEmbeddedDeviceInformation. + :type: str + """ + if ip_address is not None and len(ip_address) > 15: + raise ValueError("Invalid value for `ip_address`, length must be less than or equal to `15`") + + self._ip_address = ip_address + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedDeviceInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_merchant_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_merchant_information.py new file mode 100644 index 00000000..8b914a02 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_merchant_information.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedMerchantInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reseller_id': 'str' + } + + attribute_map = { + 'reseller_id': 'resellerId' + } + + def __init__(self, reseller_id=None): + """ + TssV2TransactionsPost201ResponseEmbeddedMerchantInformation - a model defined in Swagger + """ + + self._reseller_id = None + + if reseller_id is not None: + self.reseller_id = reseller_id + + @property + def reseller_id(self): + """ + Gets the reseller_id of this TssV2TransactionsPost201ResponseEmbeddedMerchantInformation. + An unique identification number assigned by CyberSource to identify the submitted request. + + :return: The reseller_id of this TssV2TransactionsPost201ResponseEmbeddedMerchantInformation. + :rtype: str + """ + return self._reseller_id + + @reseller_id.setter + def reseller_id(self, reseller_id): + """ + Sets the reseller_id of this TssV2TransactionsPost201ResponseEmbeddedMerchantInformation. + An unique identification number assigned by CyberSource to identify the submitted request. + + :param reseller_id: The reseller_id of this TssV2TransactionsPost201ResponseEmbeddedMerchantInformation. + :type: str + """ + if reseller_id is not None and len(reseller_id) > 26: + raise ValueError("Invalid value for `reseller_id`, length must be less than or equal to `26`") + + self._reseller_id = reseller_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedMerchantInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_order_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_order_information.py new file mode 100644 index 00000000..2a0fff0b --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_order_information.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedOrderInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bill_to': 'TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo', + 'ship_to': 'TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo', + 'amount_details': 'Ptsv2paymentsidreversalsReversalInformationAmountDetails' + } + + attribute_map = { + 'bill_to': 'billTo', + 'ship_to': 'shipTo', + 'amount_details': 'amountDetails' + } + + def __init__(self, bill_to=None, ship_to=None, amount_details=None): + """ + TssV2TransactionsPost201ResponseEmbeddedOrderInformation - a model defined in Swagger + """ + + self._bill_to = None + self._ship_to = None + self._amount_details = None + + if bill_to is not None: + self.bill_to = bill_to + if ship_to is not None: + self.ship_to = ship_to + if amount_details is not None: + self.amount_details = amount_details + + @property + def bill_to(self): + """ + Gets the bill_to of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + + :return: The bill_to of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + :rtype: TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo + """ + return self._bill_to + + @bill_to.setter + def bill_to(self, bill_to): + """ + Sets the bill_to of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + + :param bill_to: The bill_to of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + :type: TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo + """ + + self._bill_to = bill_to + + @property + def ship_to(self): + """ + Gets the ship_to of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + + :return: The ship_to of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + :rtype: TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo + """ + return self._ship_to + + @ship_to.setter + def ship_to(self, ship_to): + """ + Sets the ship_to of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + + :param ship_to: The ship_to of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + :type: TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo + """ + + self._ship_to = ship_to + + @property + def amount_details(self): + """ + Gets the amount_details of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + + :return: The amount_details of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + :rtype: Ptsv2paymentsidreversalsReversalInformationAmountDetails + """ + return self._amount_details + + @amount_details.setter + def amount_details(self, amount_details): + """ + Sets the amount_details of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + + :param amount_details: The amount_details of this TssV2TransactionsPost201ResponseEmbeddedOrderInformation. + :type: Ptsv2paymentsidreversalsReversalInformationAmountDetails + """ + + self._amount_details = amount_details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedOrderInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.py new file mode 100644 index 00000000..4430f8db --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first_name': 'str', + 'last_name': 'str', + 'email': 'str', + 'country': 'str', + 'phone_number': 'str' + } + + attribute_map = { + 'first_name': 'firstName', + 'last_name': 'lastName', + 'email': 'email', + 'country': 'country', + 'phone_number': 'phoneNumber' + } + + def __init__(self, first_name=None, last_name=None, email=None, country=None, phone_number=None): + """ + TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo - a model defined in Swagger + """ + + self._first_name = None + self._last_name = None + self._email = None + self._country = None + self._phone_number = None + + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if email is not None: + self.email = email + if country is not None: + self.country = country + if phone_number is not None: + self.phone_number = phone_number + + @property + def first_name(self): + """ + Gets the first_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The first_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param first_name: The first_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + :type: str + """ + if first_name is not None and len(first_name) > 60: + raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") + + self._first_name = first_name + + @property + def last_name(self): + """ + Gets the last_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The last_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param last_name: The last_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + :type: str + """ + if last_name is not None and len(last_name) > 60: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") + + self._last_name = last_name + + @property + def email(self): + """ + Gets the email of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The email of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param email: The email of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + :type: str + """ + if email is not None and len(email) > 255: + raise ValueError("Invalid value for `email`, length must be less than or equal to `255`") + + self._email = email + + @property + def country(self): + """ + Gets the country of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The country of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param country: The country of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def phone_number(self): + """ + Gets the phone_number of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :return: The phone_number of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) + + :param phone_number: The phone_number of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo. + :type: str + """ + if phone_number is not None and len(phone_number) > 15: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") + + self._phone_number = phone_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to.py new file mode 100644 index 00000000..8861814f --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'first_name': 'str', + 'last_name': 'str', + 'address1': 'str', + 'country': 'str', + 'phone_number': 'str' + } + + attribute_map = { + 'first_name': 'firstName', + 'last_name': 'lastName', + 'address1': 'address1', + 'country': 'country', + 'phone_number': 'phoneNumber' + } + + def __init__(self, first_name=None, last_name=None, address1=None, country=None, phone_number=None): + """ + TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo - a model defined in Swagger + """ + + self._first_name = None + self._last_name = None + self._address1 = None + self._country = None + self._phone_number = None + + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if address1 is not None: + self.address1 = address1 + if country is not None: + self.country = country + if phone_number is not None: + self.phone_number = phone_number + + @property + def first_name(self): + """ + Gets the first_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :return: The first_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :param first_name: The first_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + :type: str + """ + if first_name is not None and len(first_name) > 60: + raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") + + self._first_name = first_name + + @property + def last_name(self): + """ + Gets the last_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :return: The last_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 + + :param last_name: The last_name of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + :type: str + """ + if last_name is not None and len(last_name) > 60: + raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") + + self._last_name = last_name + + @property + def address1(self): + """ + Gets the address1 of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + First line of the shipping address. + + :return: The address1 of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + :rtype: str + """ + return self._address1 + + @address1.setter + def address1(self, address1): + """ + Sets the address1 of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + First line of the shipping address. + + :param address1: The address1 of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + :type: str + """ + if address1 is not None and len(address1) > 60: + raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") + + self._address1 = address1 + + @property + def country(self): + """ + Gets the country of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + Country of the shipping address. Use the two character ISO Standard Country Codes. + + :return: The country of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """ + Sets the country of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + Country of the shipping address. Use the two character ISO Standard Country Codes. + + :param country: The country of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + :type: str + """ + if country is not None and len(country) > 2: + raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") + + self._country = country + + @property + def phone_number(self): + """ + Gets the phone_number of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + Phone number for the shipping address. + + :return: The phone_number of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + Phone number for the shipping address. + + :param phone_number: The phone_number of this TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo. + :type: str + """ + if phone_number is not None and len(phone_number) > 15: + raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") + + self._phone_number = phone_number + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_payment_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_payment_information.py new file mode 100644 index 00000000..e40f9573 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_payment_information.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedPaymentInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'payment_method': 'TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod', + 'customer': 'Ptsv2paymentsPaymentInformationCustomer', + 'card': 'TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard' + } + + attribute_map = { + 'payment_method': 'paymentMethod', + 'customer': 'customer', + 'card': 'card' + } + + def __init__(self, payment_method=None, customer=None, card=None): + """ + TssV2TransactionsPost201ResponseEmbeddedPaymentInformation - a model defined in Swagger + """ + + self._payment_method = None + self._customer = None + self._card = None + + if payment_method is not None: + self.payment_method = payment_method + if customer is not None: + self.customer = customer + if card is not None: + self.card = card + + @property + def payment_method(self): + """ + Gets the payment_method of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + + :return: The payment_method of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + :rtype: TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod + """ + return self._payment_method + + @payment_method.setter + def payment_method(self, payment_method): + """ + Sets the payment_method of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + + :param payment_method: The payment_method of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + :type: TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod + """ + + self._payment_method = payment_method + + @property + def customer(self): + """ + Gets the customer of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + + :return: The customer of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + :rtype: Ptsv2paymentsPaymentInformationCustomer + """ + return self._customer + + @customer.setter + def customer(self, customer): + """ + Sets the customer of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + + :param customer: The customer of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + :type: Ptsv2paymentsPaymentInformationCustomer + """ + + self._customer = customer + + @property + def card(self): + """ + Gets the card of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + + :return: The card of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + :rtype: TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard + """ + return self._card + + @card.setter + def card(self, card): + """ + Sets the card of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + + :param card: The card of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformation. + :type: TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard + """ + + self._card = card + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedPaymentInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_payment_information_card.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_payment_information_card.py new file mode 100644 index 00000000..a64fdd5d --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_payment_information_card.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'suffix': 'str', + 'prefix': 'str', + 'type': 'str' + } + + attribute_map = { + 'suffix': 'suffix', + 'prefix': 'prefix', + 'type': 'type' + } + + def __init__(self, suffix=None, prefix=None, type=None): + """ + TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard - a model defined in Swagger + """ + + self._suffix = None + self._prefix = None + self._type = None + + if suffix is not None: + self.suffix = suffix + if prefix is not None: + self.prefix = prefix + if type is not None: + self.type = type + + @property + def suffix(self): + """ + Gets the suffix of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. + + :return: The suffix of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + :rtype: str + """ + return self._suffix + + @suffix.setter + def suffix(self, suffix): + """ + Sets the suffix of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. + + :param suffix: The suffix of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + :type: str + """ + if suffix is not None and len(suffix) > 4: + raise ValueError("Invalid value for `suffix`, length must be less than or equal to `4`") + + self._suffix = suffix + + @property + def prefix(self): + """ + Gets the prefix of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + The description for this field is not available. + + :return: The prefix of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """ + Sets the prefix of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + The description for this field is not available. + + :param prefix: The prefix of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + :type: str + """ + if prefix is not None and len(prefix) > 6: + raise ValueError("Invalid value for `prefix`, length must be less than or equal to `6`") + + self._prefix = prefix + + @property + def type(self): + """ + Gets the type of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :return: The type of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover + + :param type: The type of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard. + :type: str + """ + if type is not None and len(type) > 3: + raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_method.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_method.py new file mode 100644 index 00000000..24ec96db --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_method.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str' + } + + attribute_map = { + 'type': 'type' + } + + def __init__(self, type=None): + """ + TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod - a model defined in Swagger + """ + + self._type = None + + if type is not None: + self.type = type + + @property + def type(self): + """ + Gets the type of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod. + The description for this field is not available. + + :return: The type of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod. + The description for this field is not available. + + :param type: The type of this TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.py new file mode 100644 index 00000000..199e2bbc --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'terminal_id': 'str', + 'terminal_serial_number': 'str', + 'device_id': 'str', + 'partner': 'TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner' + } + + attribute_map = { + 'terminal_id': 'terminalId', + 'terminal_serial_number': 'terminalSerialNumber', + 'device_id': 'deviceId', + 'partner': 'partner' + } + + def __init__(self, terminal_id=None, terminal_serial_number=None, device_id=None, partner=None): + """ + TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation - a model defined in Swagger + """ + + self._terminal_id = None + self._terminal_serial_number = None + self._device_id = None + self._partner = None + + if terminal_id is not None: + self.terminal_id = terminal_id + if terminal_serial_number is not None: + self.terminal_serial_number = terminal_serial_number + if device_id is not None: + self.device_id = device_id + if partner is not None: + self.partner = partner + + @property + def terminal_id(self): + """ + Gets the terminal_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. + + :return: The terminal_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + :rtype: str + """ + return self._terminal_id + + @terminal_id.setter + def terminal_id(self, terminal_id): + """ + Sets the terminal_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. + + :param terminal_id: The terminal_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + :type: str + """ + if terminal_id is not None and len(terminal_id) > 8: + raise ValueError("Invalid value for `terminal_id`, length must be less than or equal to `8`") + + self._terminal_id = terminal_id + + @property + def terminal_serial_number(self): + """ + Gets the terminal_serial_number of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + The description for this field is not available. + + :return: The terminal_serial_number of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + :rtype: str + """ + return self._terminal_serial_number + + @terminal_serial_number.setter + def terminal_serial_number(self, terminal_serial_number): + """ + Sets the terminal_serial_number of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + The description for this field is not available. + + :param terminal_serial_number: The terminal_serial_number of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + :type: str + """ + + self._terminal_serial_number = terminal_serial_number + + @property + def device_id(self): + """ + Gets the device_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + The description for this field is not available. + + :return: The device_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + :rtype: str + """ + return self._device_id + + @device_id.setter + def device_id(self, device_id): + """ + Sets the device_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + The description for this field is not available. + + :param device_id: The device_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + :type: str + """ + + self._device_id = device_id + + @property + def partner(self): + """ + Gets the partner of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + + :return: The partner of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + :rtype: TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner + """ + return self._partner + + @partner.setter + def partner(self, partner): + """ + Sets the partner of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + + :param partner: The partner of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation. + :type: TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner + """ + + self._partner = partner + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.py new file mode 100644 index 00000000..34d07851 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'original_transaction_id': 'str' + } + + attribute_map = { + 'original_transaction_id': 'originalTransactionId' + } + + def __init__(self, original_transaction_id=None): + """ + TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner - a model defined in Swagger + """ + + self._original_transaction_id = None + + if original_transaction_id is not None: + self.original_transaction_id = original_transaction_id + + @property + def original_transaction_id(self): + """ + Gets the original_transaction_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner. + Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. + + :return: The original_transaction_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner. + :rtype: str + """ + return self._original_transaction_id + + @original_transaction_id.setter + def original_transaction_id(self, original_transaction_id): + """ + Sets the original_transaction_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner. + Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. + + :param original_transaction_id: The original_transaction_id of this TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner. + :type: str + """ + if original_transaction_id is not None and len(original_transaction_id) > 50: + raise ValueError("Invalid value for `original_transaction_id`, length must be less than or equal to `50`") + + self._original_transaction_id = original_transaction_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_processing_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_processing_information.py new file mode 100644 index 00000000..6cf9904d --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_processing_information.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedProcessingInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'payment_solution': 'str', + 'business_application_id': 'str' + } + + attribute_map = { + 'payment_solution': 'paymentSolution', + 'business_application_id': 'businessApplicationId' + } + + def __init__(self, payment_solution=None, business_application_id=None): + """ + TssV2TransactionsPost201ResponseEmbeddedProcessingInformation - a model defined in Swagger + """ + + self._payment_solution = None + self._business_application_id = None + + if payment_solution is not None: + self.payment_solution = payment_solution + if business_application_id is not None: + self.business_application_id = business_application_id + + @property + def payment_solution(self): + """ + Gets the payment_solution of this TssV2TransactionsPost201ResponseEmbeddedProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :return: The payment_solution of this TssV2TransactionsPost201ResponseEmbeddedProcessingInformation. + :rtype: str + """ + return self._payment_solution + + @payment_solution.setter + def payment_solution(self, payment_solution): + """ + Sets the payment_solution of this TssV2TransactionsPost201ResponseEmbeddedProcessingInformation. + Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. + + :param payment_solution: The payment_solution of this TssV2TransactionsPost201ResponseEmbeddedProcessingInformation. + :type: str + """ + if payment_solution is not None and len(payment_solution) > 12: + raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") + + self._payment_solution = payment_solution + + @property + def business_application_id(self): + """ + Gets the business_application_id of this TssV2TransactionsPost201ResponseEmbeddedProcessingInformation. + The description for this field is not available. + + :return: The business_application_id of this TssV2TransactionsPost201ResponseEmbeddedProcessingInformation. + :rtype: str + """ + return self._business_application_id + + @business_application_id.setter + def business_application_id(self, business_application_id): + """ + Sets the business_application_id of this TssV2TransactionsPost201ResponseEmbeddedProcessingInformation. + The description for this field is not available. + + :param business_application_id: The business_application_id of this TssV2TransactionsPost201ResponseEmbeddedProcessingInformation. + :type: str + """ + + self._business_application_id = business_application_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedProcessingInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_processor_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_processor_information.py new file mode 100644 index 00000000..2d3a2738 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_processor_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedProcessorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'processor': 'TssV2TransactionsGet200ResponseProcessorInformationProcessor' + } + + attribute_map = { + 'processor': 'processor' + } + + def __init__(self, processor=None): + """ + TssV2TransactionsPost201ResponseEmbeddedProcessorInformation - a model defined in Swagger + """ + + self._processor = None + + if processor is not None: + self.processor = processor + + @property + def processor(self): + """ + Gets the processor of this TssV2TransactionsPost201ResponseEmbeddedProcessorInformation. + + :return: The processor of this TssV2TransactionsPost201ResponseEmbeddedProcessorInformation. + :rtype: TssV2TransactionsGet200ResponseProcessorInformationProcessor + """ + return self._processor + + @processor.setter + def processor(self, processor): + """ + Sets the processor of this TssV2TransactionsPost201ResponseEmbeddedProcessorInformation. + + :param processor: The processor of this TssV2TransactionsPost201ResponseEmbeddedProcessorInformation. + :type: TssV2TransactionsGet200ResponseProcessorInformationProcessor + """ + + self._processor = processor + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedProcessorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_risk_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_risk_information.py new file mode 100644 index 00000000..a0e2cf72 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_risk_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedRiskInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'providers': 'TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders' + } + + attribute_map = { + 'providers': 'providers' + } + + def __init__(self, providers=None): + """ + TssV2TransactionsPost201ResponseEmbeddedRiskInformation - a model defined in Swagger + """ + + self._providers = None + + if providers is not None: + self.providers = providers + + @property + def providers(self): + """ + Gets the providers of this TssV2TransactionsPost201ResponseEmbeddedRiskInformation. + + :return: The providers of this TssV2TransactionsPost201ResponseEmbeddedRiskInformation. + :rtype: TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders + """ + return self._providers + + @providers.setter + def providers(self, providers): + """ + Sets the providers of this TssV2TransactionsPost201ResponseEmbeddedRiskInformation. + + :param providers: The providers of this TssV2TransactionsPost201ResponseEmbeddedRiskInformation. + :type: TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders + """ + + self._providers = providers + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedRiskInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_risk_information_providers.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_risk_information_providers.py new file mode 100644 index 00000000..ee56fc3d --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_risk_information_providers.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'fingerprint': 'TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint' + } + + attribute_map = { + 'fingerprint': 'fingerprint' + } + + def __init__(self, fingerprint=None): + """ + TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders - a model defined in Swagger + """ + + self._fingerprint = None + + if fingerprint is not None: + self.fingerprint = fingerprint + + @property + def fingerprint(self): + """ + Gets the fingerprint of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders. + + :return: The fingerprint of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders. + :rtype: TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint + """ + return self._fingerprint + + @fingerprint.setter + def fingerprint(self, fingerprint): + """ + Sets the fingerprint of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders. + + :param fingerprint: The fingerprint of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders. + :type: TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint + """ + + self._fingerprint = fingerprint + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.py new file mode 100644 index 00000000..54d84a6b --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'true_ipaddress': 'str', + 'hash': 'str', + 'smart_id': 'str' + } + + attribute_map = { + 'true_ipaddress': 'true_ipaddress', + 'hash': 'hash', + 'smart_id': 'smartId' + } + + def __init__(self, true_ipaddress=None, hash=None, smart_id=None): + """ + TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint - a model defined in Swagger + """ + + self._true_ipaddress = None + self._hash = None + self._smart_id = None + + if true_ipaddress is not None: + self.true_ipaddress = true_ipaddress + if hash is not None: + self.hash = hash + if smart_id is not None: + self.smart_id = smart_id + + @property + def true_ipaddress(self): + """ + Gets the true_ipaddress of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + The description for this field is not available. + + :return: The true_ipaddress of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + :rtype: str + """ + return self._true_ipaddress + + @true_ipaddress.setter + def true_ipaddress(self, true_ipaddress): + """ + Sets the true_ipaddress of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + The description for this field is not available. + + :param true_ipaddress: The true_ipaddress of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + :type: str + """ + if true_ipaddress is not None and len(true_ipaddress) > 255: + raise ValueError("Invalid value for `true_ipaddress`, length must be less than or equal to `255`") + + self._true_ipaddress = true_ipaddress + + @property + def hash(self): + """ + Gets the hash of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + The description for this field is not available. + + :return: The hash of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + :rtype: str + """ + return self._hash + + @hash.setter + def hash(self, hash): + """ + Sets the hash of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + The description for this field is not available. + + :param hash: The hash of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + :type: str + """ + if hash is not None and len(hash) > 255: + raise ValueError("Invalid value for `hash`, length must be less than or equal to `255`") + + self._hash = hash + + @property + def smart_id(self): + """ + Gets the smart_id of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + The description for this field is not available. + + :return: The smart_id of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + :rtype: str + """ + return self._smart_id + + @smart_id.setter + def smart_id(self, smart_id): + """ + Sets the smart_id of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + The description for this field is not available. + + :param smart_id: The smart_id of this TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint. + :type: str + """ + if smart_id is not None and len(smart_id) > 255: + raise ValueError("Invalid value for `smart_id`, length must be less than or equal to `255`") + + self._smart_id = smart_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.py new file mode 100644 index 00000000..c316d46e --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.py @@ -0,0 +1,575 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'submit_time_utc': 'str', + 'merchant_id': 'str', + 'application_information': 'TssV2TransactionsGet200ResponseApplicationInformation', + 'buyer_information': 'TssV2TransactionsPost201ResponseEmbeddedBuyerInformation', + 'client_reference_information': 'TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation', + 'consumer_authentication_information': 'TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation', + 'device_information': 'TssV2TransactionsPost201ResponseEmbeddedDeviceInformation', + 'fraud_marking_information': 'TssV2TransactionsGet200ResponseFraudMarkingInformation', + 'merchant_defined_information': 'list[TssV2TransactionsGet200ResponseMerchantDefinedInformation]', + 'merchant_information': 'TssV2TransactionsPost201ResponseEmbeddedMerchantInformation', + 'order_information': 'TssV2TransactionsPost201ResponseEmbeddedOrderInformation', + 'payment_information': 'TssV2TransactionsPost201ResponseEmbeddedPaymentInformation', + 'processing_information': 'TssV2TransactionsPost201ResponseEmbeddedProcessingInformation', + 'processor_information': 'TssV2TransactionsPost201ResponseEmbeddedProcessorInformation', + 'point_of_sale_information': 'TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation', + 'risk_information': 'TssV2TransactionsPost201ResponseEmbeddedRiskInformation', + 'links': 'TssV2TransactionsPost201ResponseEmbeddedLinks' + } + + attribute_map = { + 'id': 'id', + 'submit_time_utc': 'submitTimeUtc', + 'merchant_id': 'merchantId', + 'application_information': 'applicationInformation', + 'buyer_information': 'buyerInformation', + 'client_reference_information': 'clientReferenceInformation', + 'consumer_authentication_information': 'consumerAuthenticationInformation', + 'device_information': 'deviceInformation', + 'fraud_marking_information': 'fraudMarkingInformation', + 'merchant_defined_information': 'merchantDefinedInformation', + 'merchant_information': 'merchantInformation', + 'order_information': 'orderInformation', + 'payment_information': 'paymentInformation', + 'processing_information': 'processingInformation', + 'processor_information': 'processorInformation', + 'point_of_sale_information': 'pointOfSaleInformation', + 'risk_information': 'riskInformation', + 'links': '_links' + } + + def __init__(self, id=None, submit_time_utc=None, merchant_id=None, application_information=None, buyer_information=None, client_reference_information=None, consumer_authentication_information=None, device_information=None, fraud_marking_information=None, merchant_defined_information=None, merchant_information=None, order_information=None, payment_information=None, processing_information=None, processor_information=None, point_of_sale_information=None, risk_information=None, links=None): + """ + TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries - a model defined in Swagger + """ + + self._id = None + self._submit_time_utc = None + self._merchant_id = None + self._application_information = None + self._buyer_information = None + self._client_reference_information = None + self._consumer_authentication_information = None + self._device_information = None + self._fraud_marking_information = None + self._merchant_defined_information = None + self._merchant_information = None + self._order_information = None + self._payment_information = None + self._processing_information = None + self._processor_information = None + self._point_of_sale_information = None + self._risk_information = None + self._links = None + + if id is not None: + self.id = id + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if merchant_id is not None: + self.merchant_id = merchant_id + if application_information is not None: + self.application_information = application_information + if buyer_information is not None: + self.buyer_information = buyer_information + if client_reference_information is not None: + self.client_reference_information = client_reference_information + if consumer_authentication_information is not None: + self.consumer_authentication_information = consumer_authentication_information + if device_information is not None: + self.device_information = device_information + if fraud_marking_information is not None: + self.fraud_marking_information = fraud_marking_information + if merchant_defined_information is not None: + self.merchant_defined_information = merchant_defined_information + if merchant_information is not None: + self.merchant_information = merchant_information + if order_information is not None: + self.order_information = order_information + if payment_information is not None: + self.payment_information = payment_information + if processing_information is not None: + self.processing_information = processing_information + if processor_information is not None: + self.processor_information = processor_information + if point_of_sale_information is not None: + self.point_of_sale_information = point_of_sale_information + if risk_information is not None: + self.risk_information = risk_information + if links is not None: + self.links = links + + @property + def id(self): + """ + Gets the id of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + An unique identification number assigned by CyberSource to identify the submitted request. + + :return: The id of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + An unique identification number assigned by CyberSource to identify the submitted request. + + :param id: The id of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: str + """ + if id is not None and len(id) > 26: + raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") + + self._id = id + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def merchant_id(self): + """ + Gets the merchant_id of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + The description for this field is not available. + + :return: The merchant_id of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: str + """ + return self._merchant_id + + @merchant_id.setter + def merchant_id(self, merchant_id): + """ + Sets the merchant_id of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + The description for this field is not available. + + :param merchant_id: The merchant_id of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: str + """ + + self._merchant_id = merchant_id + + @property + def application_information(self): + """ + Gets the application_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The application_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsGet200ResponseApplicationInformation + """ + return self._application_information + + @application_information.setter + def application_information(self, application_information): + """ + Sets the application_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param application_information: The application_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsGet200ResponseApplicationInformation + """ + + self._application_information = application_information + + @property + def buyer_information(self): + """ + Gets the buyer_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The buyer_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedBuyerInformation + """ + return self._buyer_information + + @buyer_information.setter + def buyer_information(self, buyer_information): + """ + Sets the buyer_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param buyer_information: The buyer_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedBuyerInformation + """ + + self._buyer_information = buyer_information + + @property + def client_reference_information(self): + """ + Gets the client_reference_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The client_reference_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation + """ + return self._client_reference_information + + @client_reference_information.setter + def client_reference_information(self, client_reference_information): + """ + Sets the client_reference_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param client_reference_information: The client_reference_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation + """ + + self._client_reference_information = client_reference_information + + @property + def consumer_authentication_information(self): + """ + Gets the consumer_authentication_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The consumer_authentication_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation + """ + return self._consumer_authentication_information + + @consumer_authentication_information.setter + def consumer_authentication_information(self, consumer_authentication_information): + """ + Sets the consumer_authentication_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param consumer_authentication_information: The consumer_authentication_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation + """ + + self._consumer_authentication_information = consumer_authentication_information + + @property + def device_information(self): + """ + Gets the device_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The device_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedDeviceInformation + """ + return self._device_information + + @device_information.setter + def device_information(self, device_information): + """ + Sets the device_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param device_information: The device_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedDeviceInformation + """ + + self._device_information = device_information + + @property + def fraud_marking_information(self): + """ + Gets the fraud_marking_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The fraud_marking_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsGet200ResponseFraudMarkingInformation + """ + return self._fraud_marking_information + + @fraud_marking_information.setter + def fraud_marking_information(self, fraud_marking_information): + """ + Sets the fraud_marking_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param fraud_marking_information: The fraud_marking_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsGet200ResponseFraudMarkingInformation + """ + + self._fraud_marking_information = fraud_marking_information + + @property + def merchant_defined_information(self): + """ + Gets the merchant_defined_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + The description for this field is not available. + + :return: The merchant_defined_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: list[TssV2TransactionsGet200ResponseMerchantDefinedInformation] + """ + return self._merchant_defined_information + + @merchant_defined_information.setter + def merchant_defined_information(self, merchant_defined_information): + """ + Sets the merchant_defined_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + The description for this field is not available. + + :param merchant_defined_information: The merchant_defined_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: list[TssV2TransactionsGet200ResponseMerchantDefinedInformation] + """ + + self._merchant_defined_information = merchant_defined_information + + @property + def merchant_information(self): + """ + Gets the merchant_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The merchant_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedMerchantInformation + """ + return self._merchant_information + + @merchant_information.setter + def merchant_information(self, merchant_information): + """ + Sets the merchant_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param merchant_information: The merchant_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedMerchantInformation + """ + + self._merchant_information = merchant_information + + @property + def order_information(self): + """ + Gets the order_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The order_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedOrderInformation + """ + return self._order_information + + @order_information.setter + def order_information(self, order_information): + """ + Sets the order_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param order_information: The order_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedOrderInformation + """ + + self._order_information = order_information + + @property + def payment_information(self): + """ + Gets the payment_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The payment_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedPaymentInformation + """ + return self._payment_information + + @payment_information.setter + def payment_information(self, payment_information): + """ + Sets the payment_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param payment_information: The payment_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedPaymentInformation + """ + + self._payment_information = payment_information + + @property + def processing_information(self): + """ + Gets the processing_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The processing_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedProcessingInformation + """ + return self._processing_information + + @processing_information.setter + def processing_information(self, processing_information): + """ + Sets the processing_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param processing_information: The processing_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedProcessingInformation + """ + + self._processing_information = processing_information + + @property + def processor_information(self): + """ + Gets the processor_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The processor_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedProcessorInformation + """ + return self._processor_information + + @processor_information.setter + def processor_information(self, processor_information): + """ + Sets the processor_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param processor_information: The processor_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedProcessorInformation + """ + + self._processor_information = processor_information + + @property + def point_of_sale_information(self): + """ + Gets the point_of_sale_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The point_of_sale_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation + """ + return self._point_of_sale_information + + @point_of_sale_information.setter + def point_of_sale_information(self, point_of_sale_information): + """ + Sets the point_of_sale_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param point_of_sale_information: The point_of_sale_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation + """ + + self._point_of_sale_information = point_of_sale_information + + @property + def risk_information(self): + """ + Gets the risk_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The risk_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedRiskInformation + """ + return self._risk_information + + @risk_information.setter + def risk_information(self, risk_information): + """ + Sets the risk_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param risk_information: The risk_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedRiskInformation + """ + + self._risk_information = risk_information + + @property + def links(self): + """ + Gets the links of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The links of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param links: The links of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedLinks + """ + + self._links = links + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post400_response.py b/CyberSource/models/tss_v2_transactions_post400_response.py new file mode 100644 index 00000000..b2f9554d --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post400_response.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost400Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'submit_time_utc': 'str', + 'status': 'str', + 'message': 'str', + 'details': 'list[PtsV2PaymentsPost201ResponseErrorInformationDetails]' + } + + attribute_map = { + 'submit_time_utc': 'submitTimeUtc', + 'status': 'status', + 'message': 'message', + 'details': 'details' + } + + def __init__(self, submit_time_utc=None, status=None, message=None, details=None): + """ + TssV2TransactionsPost400Response - a model defined in Swagger + """ + + self._submit_time_utc = None + self._status = None + self._message = None + self._details = None + + if submit_time_utc is not None: + self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status + if message is not None: + self.message = message + if details is not None: + self.details = details + + @property + def submit_time_utc(self): + """ + Gets the submit_time_utc of this TssV2TransactionsPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :return: The submit_time_utc of this TssV2TransactionsPost400Response. + :rtype: str + """ + return self._submit_time_utc + + @submit_time_utc.setter + def submit_time_utc(self, submit_time_utc): + """ + Sets the submit_time_utc of this TssV2TransactionsPost400Response. + Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. + + :param submit_time_utc: The submit_time_utc of this TssV2TransactionsPost400Response. + :type: str + """ + + self._submit_time_utc = submit_time_utc + + @property + def status(self): + """ + Gets the status of this TssV2TransactionsPost400Response. + The status of the submitted transaction. + + :return: The status of this TssV2TransactionsPost400Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this TssV2TransactionsPost400Response. + The status of the submitted transaction. + + :param status: The status of this TssV2TransactionsPost400Response. + :type: str + """ + allowed_values = ["INVALID_REQUEST"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def message(self): + """ + Gets the message of this TssV2TransactionsPost400Response. + The detail message related to the status and reason listed above. + + :return: The message of this TssV2TransactionsPost400Response. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this TssV2TransactionsPost400Response. + The detail message related to the status and reason listed above. + + :param message: The message of this TssV2TransactionsPost400Response. + :type: str + """ + + self._message = message + + @property + def details(self): + """ + Gets the details of this TssV2TransactionsPost400Response. + + :return: The details of this TssV2TransactionsPost400Response. + :rtype: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this TssV2TransactionsPost400Response. + + :param details: The details of this TssV2TransactionsPost400Response. + :type: list[PtsV2PaymentsPost201ResponseErrorInformationDetails] + """ + + self._details = details + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost400Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post_response.py b/CyberSource/models/tss_v2_transactions_post_response.py new file mode 100644 index 00000000..42f1cfd9 --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post_response.py @@ -0,0 +1,293 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPostResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'save': 'bool', + 'name': 'str', + 'timezone': 'str', + 'query': 'str', + 'offset': 'int', + 'limit': 'int', + 'sort': 'str' + } + + attribute_map = { + 'save': 'save', + 'name': 'name', + 'timezone': 'timezone', + 'query': 'query', + 'offset': 'offset', + 'limit': 'limit', + 'sort': 'sort' + } + + def __init__(self, save=None, name=None, timezone=None, query=None, offset=None, limit=None, sort=None): + """ + TssV2TransactionsPostResponse - a model defined in Swagger + """ + + self._save = None + self._name = None + self._timezone = None + self._query = None + self._offset = None + self._limit = None + self._sort = None + + if save is not None: + self.save = save + if name is not None: + self.name = name + if timezone is not None: + self.timezone = timezone + if query is not None: + self.query = query + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if sort is not None: + self.sort = sort + + @property + def save(self): + """ + Gets the save of this TssV2TransactionsPostResponse. + save or not save. + + :return: The save of this TssV2TransactionsPostResponse. + :rtype: bool + """ + return self._save + + @save.setter + def save(self, save): + """ + Sets the save of this TssV2TransactionsPostResponse. + save or not save. + + :param save: The save of this TssV2TransactionsPostResponse. + :type: bool + """ + + self._save = save + + @property + def name(self): + """ + Gets the name of this TssV2TransactionsPostResponse. + The description for this field is not available. + + :return: The name of this TssV2TransactionsPostResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this TssV2TransactionsPostResponse. + The description for this field is not available. + + :param name: The name of this TssV2TransactionsPostResponse. + :type: str + """ + + self._name = name + + @property + def timezone(self): + """ + Gets the timezone of this TssV2TransactionsPostResponse. + Time Zone. + + :return: The timezone of this TssV2TransactionsPostResponse. + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this TssV2TransactionsPostResponse. + Time Zone. + + :param timezone: The timezone of this TssV2TransactionsPostResponse. + :type: str + """ + + self._timezone = timezone + + @property + def query(self): + """ + Gets the query of this TssV2TransactionsPostResponse. + transaction search query string. + + :return: The query of this TssV2TransactionsPostResponse. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """ + Sets the query of this TssV2TransactionsPostResponse. + transaction search query string. + + :param query: The query of this TssV2TransactionsPostResponse. + :type: str + """ + + self._query = query + + @property + def offset(self): + """ + Gets the offset of this TssV2TransactionsPostResponse. + offset. + + :return: The offset of this TssV2TransactionsPostResponse. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """ + Sets the offset of this TssV2TransactionsPostResponse. + offset. + + :param offset: The offset of this TssV2TransactionsPostResponse. + :type: int + """ + + self._offset = offset + + @property + def limit(self): + """ + Gets the limit of this TssV2TransactionsPostResponse. + limit on number of results. + + :return: The limit of this TssV2TransactionsPostResponse. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """ + Sets the limit of this TssV2TransactionsPostResponse. + limit on number of results. + + :param limit: The limit of this TssV2TransactionsPostResponse. + :type: int + """ + + self._limit = limit + + @property + def sort(self): + """ + Gets the sort of this TssV2TransactionsPostResponse. + A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc. + + :return: The sort of this TssV2TransactionsPostResponse. + :rtype: str + """ + return self._sort + + @sort.setter + def sort(self, sort): + """ + Sets the sort of this TssV2TransactionsPostResponse. + A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc. + + :param sort: The sort of this TssV2TransactionsPostResponse. + :type: str + """ + + self._sort = sort + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPostResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ums_v1_users_get200_response.py b/CyberSource/models/ums_v1_users_get200_response.py new file mode 100644 index 00000000..b7eefc2c --- /dev/null +++ b/CyberSource/models/ums_v1_users_get200_response.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UmsV1UsersGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'users': 'list[UmsV1UsersGet200ResponseUsers]' + } + + attribute_map = { + 'users': 'users' + } + + def __init__(self, users=None): + """ + UmsV1UsersGet200Response - a model defined in Swagger + """ + + self._users = None + + if users is not None: + self.users = users + + @property + def users(self): + """ + Gets the users of this UmsV1UsersGet200Response. + + :return: The users of this UmsV1UsersGet200Response. + :rtype: list[UmsV1UsersGet200ResponseUsers] + """ + return self._users + + @users.setter + def users(self, users): + """ + Sets the users of this UmsV1UsersGet200Response. + + :param users: The users of this UmsV1UsersGet200Response. + :type: list[UmsV1UsersGet200ResponseUsers] + """ + + self._users = users + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UmsV1UsersGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ums_v1_users_get200_response_account_information.py b/CyberSource/models/ums_v1_users_get200_response_account_information.py new file mode 100644 index 00000000..68d53f08 --- /dev/null +++ b/CyberSource/models/ums_v1_users_get200_response_account_information.py @@ -0,0 +1,311 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UmsV1UsersGet200ResponseAccountInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'user_name': 'str', + 'role_id': 'str', + 'permissions': 'list[str]', + 'status': 'str', + 'created_time': 'datetime', + 'last_access_time': 'datetime', + 'language_preference': 'str', + 'timezone': 'str' + } + + attribute_map = { + 'user_name': 'userName', + 'role_id': 'roleId', + 'permissions': 'permissions', + 'status': 'status', + 'created_time': 'createdTime', + 'last_access_time': 'lastAccessTime', + 'language_preference': 'languagePreference', + 'timezone': 'timezone' + } + + def __init__(self, user_name=None, role_id=None, permissions=None, status=None, created_time=None, last_access_time=None, language_preference=None, timezone=None): + """ + UmsV1UsersGet200ResponseAccountInformation - a model defined in Swagger + """ + + self._user_name = None + self._role_id = None + self._permissions = None + self._status = None + self._created_time = None + self._last_access_time = None + self._language_preference = None + self._timezone = None + + if user_name is not None: + self.user_name = user_name + if role_id is not None: + self.role_id = role_id + if permissions is not None: + self.permissions = permissions + if status is not None: + self.status = status + if created_time is not None: + self.created_time = created_time + if last_access_time is not None: + self.last_access_time = last_access_time + if language_preference is not None: + self.language_preference = language_preference + if timezone is not None: + self.timezone = timezone + + @property + def user_name(self): + """ + Gets the user_name of this UmsV1UsersGet200ResponseAccountInformation. + + :return: The user_name of this UmsV1UsersGet200ResponseAccountInformation. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """ + Sets the user_name of this UmsV1UsersGet200ResponseAccountInformation. + + :param user_name: The user_name of this UmsV1UsersGet200ResponseAccountInformation. + :type: str + """ + + self._user_name = user_name + + @property + def role_id(self): + """ + Gets the role_id of this UmsV1UsersGet200ResponseAccountInformation. + + :return: The role_id of this UmsV1UsersGet200ResponseAccountInformation. + :rtype: str + """ + return self._role_id + + @role_id.setter + def role_id(self, role_id): + """ + Sets the role_id of this UmsV1UsersGet200ResponseAccountInformation. + + :param role_id: The role_id of this UmsV1UsersGet200ResponseAccountInformation. + :type: str + """ + + self._role_id = role_id + + @property + def permissions(self): + """ + Gets the permissions of this UmsV1UsersGet200ResponseAccountInformation. + + :return: The permissions of this UmsV1UsersGet200ResponseAccountInformation. + :rtype: list[str] + """ + return self._permissions + + @permissions.setter + def permissions(self, permissions): + """ + Sets the permissions of this UmsV1UsersGet200ResponseAccountInformation. + + :param permissions: The permissions of this UmsV1UsersGet200ResponseAccountInformation. + :type: list[str] + """ + + self._permissions = permissions + + @property + def status(self): + """ + Gets the status of this UmsV1UsersGet200ResponseAccountInformation. + + :return: The status of this UmsV1UsersGet200ResponseAccountInformation. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this UmsV1UsersGet200ResponseAccountInformation. + + :param status: The status of this UmsV1UsersGet200ResponseAccountInformation. + :type: str + """ + allowed_values = ["active", "inactive", "locked", "disabled", "forgotpassword", "deleted"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def created_time(self): + """ + Gets the created_time of this UmsV1UsersGet200ResponseAccountInformation. + + :return: The created_time of this UmsV1UsersGet200ResponseAccountInformation. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """ + Sets the created_time of this UmsV1UsersGet200ResponseAccountInformation. + + :param created_time: The created_time of this UmsV1UsersGet200ResponseAccountInformation. + :type: datetime + """ + + self._created_time = created_time + + @property + def last_access_time(self): + """ + Gets the last_access_time of this UmsV1UsersGet200ResponseAccountInformation. + + :return: The last_access_time of this UmsV1UsersGet200ResponseAccountInformation. + :rtype: datetime + """ + return self._last_access_time + + @last_access_time.setter + def last_access_time(self, last_access_time): + """ + Sets the last_access_time of this UmsV1UsersGet200ResponseAccountInformation. + + :param last_access_time: The last_access_time of this UmsV1UsersGet200ResponseAccountInformation. + :type: datetime + """ + + self._last_access_time = last_access_time + + @property + def language_preference(self): + """ + Gets the language_preference of this UmsV1UsersGet200ResponseAccountInformation. + + :return: The language_preference of this UmsV1UsersGet200ResponseAccountInformation. + :rtype: str + """ + return self._language_preference + + @language_preference.setter + def language_preference(self, language_preference): + """ + Sets the language_preference of this UmsV1UsersGet200ResponseAccountInformation. + + :param language_preference: The language_preference of this UmsV1UsersGet200ResponseAccountInformation. + :type: str + """ + + self._language_preference = language_preference + + @property + def timezone(self): + """ + Gets the timezone of this UmsV1UsersGet200ResponseAccountInformation. + + :return: The timezone of this UmsV1UsersGet200ResponseAccountInformation. + :rtype: str + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this UmsV1UsersGet200ResponseAccountInformation. + + :param timezone: The timezone of this UmsV1UsersGet200ResponseAccountInformation. + :type: str + """ + + self._timezone = timezone + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UmsV1UsersGet200ResponseAccountInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ums_v1_users_get200_response_contact_information.py b/CyberSource/models/ums_v1_users_get200_response_contact_information.py new file mode 100644 index 00000000..749de002 --- /dev/null +++ b/CyberSource/models/ums_v1_users_get200_response_contact_information.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UmsV1UsersGet200ResponseContactInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str', + 'phone_number': 'str', + 'first_name': 'str', + 'last_name': 'str' + } + + attribute_map = { + 'email': 'email', + 'phone_number': 'phoneNumber', + 'first_name': 'firstName', + 'last_name': 'lastName' + } + + def __init__(self, email=None, phone_number=None, first_name=None, last_name=None): + """ + UmsV1UsersGet200ResponseContactInformation - a model defined in Swagger + """ + + self._email = None + self._phone_number = None + self._first_name = None + self._last_name = None + + if email is not None: + self.email = email + if phone_number is not None: + self.phone_number = phone_number + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + + @property + def email(self): + """ + Gets the email of this UmsV1UsersGet200ResponseContactInformation. + + :return: The email of this UmsV1UsersGet200ResponseContactInformation. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this UmsV1UsersGet200ResponseContactInformation. + + :param email: The email of this UmsV1UsersGet200ResponseContactInformation. + :type: str + """ + + self._email = email + + @property + def phone_number(self): + """ + Gets the phone_number of this UmsV1UsersGet200ResponseContactInformation. + + :return: The phone_number of this UmsV1UsersGet200ResponseContactInformation. + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """ + Sets the phone_number of this UmsV1UsersGet200ResponseContactInformation. + + :param phone_number: The phone_number of this UmsV1UsersGet200ResponseContactInformation. + :type: str + """ + + self._phone_number = phone_number + + @property + def first_name(self): + """ + Gets the first_name of this UmsV1UsersGet200ResponseContactInformation. + + :return: The first_name of this UmsV1UsersGet200ResponseContactInformation. + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """ + Sets the first_name of this UmsV1UsersGet200ResponseContactInformation. + + :param first_name: The first_name of this UmsV1UsersGet200ResponseContactInformation. + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """ + Gets the last_name of this UmsV1UsersGet200ResponseContactInformation. + + :return: The last_name of this UmsV1UsersGet200ResponseContactInformation. + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """ + Sets the last_name of this UmsV1UsersGet200ResponseContactInformation. + + :param last_name: The last_name of this UmsV1UsersGet200ResponseContactInformation. + :type: str + """ + + self._last_name = last_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UmsV1UsersGet200ResponseContactInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ums_v1_users_get200_response_organization_information.py b/CyberSource/models/ums_v1_users_get200_response_organization_information.py new file mode 100644 index 00000000..391c5b05 --- /dev/null +++ b/CyberSource/models/ums_v1_users_get200_response_organization_information.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UmsV1UsersGet200ResponseOrganizationInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'organization_id': 'str' + } + + attribute_map = { + 'organization_id': 'organizationId' + } + + def __init__(self, organization_id=None): + """ + UmsV1UsersGet200ResponseOrganizationInformation - a model defined in Swagger + """ + + self._organization_id = None + + if organization_id is not None: + self.organization_id = organization_id + + @property + def organization_id(self): + """ + Gets the organization_id of this UmsV1UsersGet200ResponseOrganizationInformation. + + :return: The organization_id of this UmsV1UsersGet200ResponseOrganizationInformation. + :rtype: str + """ + return self._organization_id + + @organization_id.setter + def organization_id(self, organization_id): + """ + Sets the organization_id of this UmsV1UsersGet200ResponseOrganizationInformation. + + :param organization_id: The organization_id of this UmsV1UsersGet200ResponseOrganizationInformation. + :type: str + """ + + self._organization_id = organization_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UmsV1UsersGet200ResponseOrganizationInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ums_v1_users_get200_response_users.py b/CyberSource/models/ums_v1_users_get200_response_users.py new file mode 100644 index 00000000..9d8a620e --- /dev/null +++ b/CyberSource/models/ums_v1_users_get200_response_users.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UmsV1UsersGet200ResponseUsers(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_information': 'UmsV1UsersGet200ResponseAccountInformation', + 'organization_information': 'UmsV1UsersGet200ResponseOrganizationInformation', + 'contact_information': 'UmsV1UsersGet200ResponseContactInformation' + } + + attribute_map = { + 'account_information': 'accountInformation', + 'organization_information': 'organizationInformation', + 'contact_information': 'contactInformation' + } + + def __init__(self, account_information=None, organization_information=None, contact_information=None): + """ + UmsV1UsersGet200ResponseUsers - a model defined in Swagger + """ + + self._account_information = None + self._organization_information = None + self._contact_information = None + + if account_information is not None: + self.account_information = account_information + if organization_information is not None: + self.organization_information = organization_information + if contact_information is not None: + self.contact_information = contact_information + + @property + def account_information(self): + """ + Gets the account_information of this UmsV1UsersGet200ResponseUsers. + + :return: The account_information of this UmsV1UsersGet200ResponseUsers. + :rtype: UmsV1UsersGet200ResponseAccountInformation + """ + return self._account_information + + @account_information.setter + def account_information(self, account_information): + """ + Sets the account_information of this UmsV1UsersGet200ResponseUsers. + + :param account_information: The account_information of this UmsV1UsersGet200ResponseUsers. + :type: UmsV1UsersGet200ResponseAccountInformation + """ + + self._account_information = account_information + + @property + def organization_information(self): + """ + Gets the organization_information of this UmsV1UsersGet200ResponseUsers. + + :return: The organization_information of this UmsV1UsersGet200ResponseUsers. + :rtype: UmsV1UsersGet200ResponseOrganizationInformation + """ + return self._organization_information + + @organization_information.setter + def organization_information(self, organization_information): + """ + Sets the organization_information of this UmsV1UsersGet200ResponseUsers. + + :param organization_information: The organization_information of this UmsV1UsersGet200ResponseUsers. + :type: UmsV1UsersGet200ResponseOrganizationInformation + """ + + self._organization_information = organization_information + + @property + def contact_information(self): + """ + Gets the contact_information of this UmsV1UsersGet200ResponseUsers. + + :return: The contact_information of this UmsV1UsersGet200ResponseUsers. + :rtype: UmsV1UsersGet200ResponseContactInformation + """ + return self._contact_information + + @contact_information.setter + def contact_information(self, contact_information): + """ + Sets the contact_information of this UmsV1UsersGet200ResponseUsers. + + :param contact_information: The contact_information of this UmsV1UsersGet200ResponseUsers. + :type: UmsV1UsersGet200ResponseContactInformation + """ + + self._contact_information = contact_information + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UmsV1UsersGet200ResponseUsers): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/v1_file_details_get200_response.py b/CyberSource/models/v1_file_details_get200_response.py new file mode 100644 index 00000000..bbbdaf0e --- /dev/null +++ b/CyberSource/models/v1_file_details_get200_response.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FileDetailsGet200Response(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'file_details': 'list[V1FileDetailsGet200ResponseFileDetails]', + 'links': 'V1FileDetailsGet200ResponseLinks' + } + + attribute_map = { + 'file_details': 'fileDetails', + 'links': '_links' + } + + def __init__(self, file_details=None, links=None): + """ + V1FileDetailsGet200Response - a model defined in Swagger + """ + + self._file_details = None + self._links = None + + if file_details is not None: + self.file_details = file_details + if links is not None: + self.links = links + + @property + def file_details(self): + """ + Gets the file_details of this V1FileDetailsGet200Response. + + :return: The file_details of this V1FileDetailsGet200Response. + :rtype: list[V1FileDetailsGet200ResponseFileDetails] + """ + return self._file_details + + @file_details.setter + def file_details(self, file_details): + """ + Sets the file_details of this V1FileDetailsGet200Response. + + :param file_details: The file_details of this V1FileDetailsGet200Response. + :type: list[V1FileDetailsGet200ResponseFileDetails] + """ + + self._file_details = file_details + + @property + def links(self): + """ + Gets the links of this V1FileDetailsGet200Response. + + :return: The links of this V1FileDetailsGet200Response. + :rtype: V1FileDetailsGet200ResponseLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this V1FileDetailsGet200Response. + + :param links: The links of this V1FileDetailsGet200Response. + :type: V1FileDetailsGet200ResponseLinks + """ + + self._links = links + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1FileDetailsGet200Response): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/v1_file_details_get200_response__links.py b/CyberSource/models/v1_file_details_get200_response__links.py new file mode 100644 index 00000000..237bbca2 --- /dev/null +++ b/CyberSource/models/v1_file_details_get200_response__links.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FileDetailsGet200ResponseLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + '_self': 'V1FileDetailsGet200ResponseLinksSelf', + 'files': 'list[V1FileDetailsGet200ResponseLinksFiles]' + } + + attribute_map = { + '_self': 'self', + 'files': 'files' + } + + def __init__(self, _self=None, files=None): + """ + V1FileDetailsGet200ResponseLinks - a model defined in Swagger + """ + + self.__self = None + self._files = None + + if _self is not None: + self._self = _self + if files is not None: + self.files = files + + @property + def _self(self): + """ + Gets the _self of this V1FileDetailsGet200ResponseLinks. + + :return: The _self of this V1FileDetailsGet200ResponseLinks. + :rtype: V1FileDetailsGet200ResponseLinksSelf + """ + return self.__self + + @_self.setter + def _self(self, _self): + """ + Sets the _self of this V1FileDetailsGet200ResponseLinks. + + :param _self: The _self of this V1FileDetailsGet200ResponseLinks. + :type: V1FileDetailsGet200ResponseLinksSelf + """ + + self.__self = _self + + @property + def files(self): + """ + Gets the files of this V1FileDetailsGet200ResponseLinks. + + :return: The files of this V1FileDetailsGet200ResponseLinks. + :rtype: list[V1FileDetailsGet200ResponseLinksFiles] + """ + return self._files + + @files.setter + def files(self, files): + """ + Sets the files of this V1FileDetailsGet200ResponseLinks. + + :param files: The files of this V1FileDetailsGet200ResponseLinks. + :type: list[V1FileDetailsGet200ResponseLinksFiles] + """ + + self._files = files + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1FileDetailsGet200ResponseLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/v1_file_details_get200_response__links_files.py b/CyberSource/models/v1_file_details_get200_response__links_files.py new file mode 100644 index 00000000..671a09ac --- /dev/null +++ b/CyberSource/models/v1_file_details_get200_response__links_files.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FileDetailsGet200ResponseLinksFiles(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'file_id': 'str', + 'href': 'str', + 'method': 'str' + } + + attribute_map = { + 'file_id': 'fileId', + 'href': 'href', + 'method': 'method' + } + + def __init__(self, file_id=None, href=None, method=None): + """ + V1FileDetailsGet200ResponseLinksFiles - a model defined in Swagger + """ + + self._file_id = None + self._href = None + self._method = None + + if file_id is not None: + self.file_id = file_id + if href is not None: + self.href = href + if method is not None: + self.method = method + + @property + def file_id(self): + """ + Gets the file_id of this V1FileDetailsGet200ResponseLinksFiles. + Unique identifier for each file + + :return: The file_id of this V1FileDetailsGet200ResponseLinksFiles. + :rtype: str + """ + return self._file_id + + @file_id.setter + def file_id(self, file_id): + """ + Sets the file_id of this V1FileDetailsGet200ResponseLinksFiles. + Unique identifier for each file + + :param file_id: The file_id of this V1FileDetailsGet200ResponseLinksFiles. + :type: str + """ + + self._file_id = file_id + + @property + def href(self): + """ + Gets the href of this V1FileDetailsGet200ResponseLinksFiles. + + :return: The href of this V1FileDetailsGet200ResponseLinksFiles. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this V1FileDetailsGet200ResponseLinksFiles. + + :param href: The href of this V1FileDetailsGet200ResponseLinksFiles. + :type: str + """ + + self._href = href + + @property + def method(self): + """ + Gets the method of this V1FileDetailsGet200ResponseLinksFiles. + + :return: The method of this V1FileDetailsGet200ResponseLinksFiles. + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """ + Sets the method of this V1FileDetailsGet200ResponseLinksFiles. + + :param method: The method of this V1FileDetailsGet200ResponseLinksFiles. + :type: str + """ + + self._method = method + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1FileDetailsGet200ResponseLinksFiles): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/v1_file_details_get200_response__links_self.py b/CyberSource/models/v1_file_details_get200_response__links_self.py new file mode 100644 index 00000000..b977bfa4 --- /dev/null +++ b/CyberSource/models/v1_file_details_get200_response__links_self.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FileDetailsGet200ResponseLinksSelf(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'href': 'str', + 'method': 'str' + } + + attribute_map = { + 'href': 'href', + 'method': 'method' + } + + def __init__(self, href=None, method=None): + """ + V1FileDetailsGet200ResponseLinksSelf - a model defined in Swagger + """ + + self._href = None + self._method = None + + if href is not None: + self.href = href + if method is not None: + self.method = method + + @property + def href(self): + """ + Gets the href of this V1FileDetailsGet200ResponseLinksSelf. + + :return: The href of this V1FileDetailsGet200ResponseLinksSelf. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this V1FileDetailsGet200ResponseLinksSelf. + + :param href: The href of this V1FileDetailsGet200ResponseLinksSelf. + :type: str + """ + + self._href = href + + @property + def method(self): + """ + Gets the method of this V1FileDetailsGet200ResponseLinksSelf. + + :return: The method of this V1FileDetailsGet200ResponseLinksSelf. + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """ + Sets the method of this V1FileDetailsGet200ResponseLinksSelf. + + :param method: The method of this V1FileDetailsGet200ResponseLinksSelf. + :type: str + """ + + self._method = method + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1FileDetailsGet200ResponseLinksSelf): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/v1_file_details_get200_response_file_details.py b/CyberSource/models/v1_file_details_get200_response_file_details.py new file mode 100644 index 00000000..8e665e3e --- /dev/null +++ b/CyberSource/models/v1_file_details_get200_response_file_details.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1FileDetailsGet200ResponseFileDetails(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'file_id': 'str', + 'name': 'str', + 'created_time': 'datetime', + 'last_modified_time': 'datetime', + 'date': 'date', + 'mime_type': 'str', + 'size': 'int' + } + + attribute_map = { + 'file_id': 'fileId', + 'name': 'name', + 'created_time': 'createdTime', + 'last_modified_time': 'lastModifiedTime', + 'date': 'date', + 'mime_type': 'mimeType', + 'size': 'size' + } + + def __init__(self, file_id=None, name=None, created_time=None, last_modified_time=None, date=None, mime_type=None, size=None): + """ + V1FileDetailsGet200ResponseFileDetails - a model defined in Swagger + """ + + self._file_id = None + self._name = None + self._created_time = None + self._last_modified_time = None + self._date = None + self._mime_type = None + self._size = None + + if file_id is not None: + self.file_id = file_id + if name is not None: + self.name = name + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if date is not None: + self.date = date + if mime_type is not None: + self.mime_type = mime_type + if size is not None: + self.size = size + + @property + def file_id(self): + """ + Gets the file_id of this V1FileDetailsGet200ResponseFileDetails. + Unique identifier of a file + + :return: The file_id of this V1FileDetailsGet200ResponseFileDetails. + :rtype: str + """ + return self._file_id + + @file_id.setter + def file_id(self, file_id): + """ + Sets the file_id of this V1FileDetailsGet200ResponseFileDetails. + Unique identifier of a file + + :param file_id: The file_id of this V1FileDetailsGet200ResponseFileDetails. + :type: str + """ + + self._file_id = file_id + + @property + def name(self): + """ + Gets the name of this V1FileDetailsGet200ResponseFileDetails. + Name of the file + + :return: The name of this V1FileDetailsGet200ResponseFileDetails. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1FileDetailsGet200ResponseFileDetails. + Name of the file + + :param name: The name of this V1FileDetailsGet200ResponseFileDetails. + :type: str + """ + + self._name = name + + @property + def created_time(self): + """ + Gets the created_time of this V1FileDetailsGet200ResponseFileDetails. + Date and time for the file in PST + + :return: The created_time of this V1FileDetailsGet200ResponseFileDetails. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """ + Sets the created_time of this V1FileDetailsGet200ResponseFileDetails. + Date and time for the file in PST + + :param created_time: The created_time of this V1FileDetailsGet200ResponseFileDetails. + :type: datetime + """ + + self._created_time = created_time + + @property + def last_modified_time(self): + """ + Gets the last_modified_time of this V1FileDetailsGet200ResponseFileDetails. + Date and time for the file in PST + + :return: The last_modified_time of this V1FileDetailsGet200ResponseFileDetails. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """ + Sets the last_modified_time of this V1FileDetailsGet200ResponseFileDetails. + Date and time for the file in PST + + :param last_modified_time: The last_modified_time of this V1FileDetailsGet200ResponseFileDetails. + :type: datetime + """ + + self._last_modified_time = last_modified_time + + @property + def date(self): + """ + Gets the date of this V1FileDetailsGet200ResponseFileDetails. + Date and time for the file in PST + + :return: The date of this V1FileDetailsGet200ResponseFileDetails. + :rtype: date + """ + return self._date + + @date.setter + def date(self, date): + """ + Sets the date of this V1FileDetailsGet200ResponseFileDetails. + Date and time for the file in PST + + :param date: The date of this V1FileDetailsGet200ResponseFileDetails. + :type: date + """ + + self._date = date + + @property + def mime_type(self): + """ + Gets the mime_type of this V1FileDetailsGet200ResponseFileDetails. + File extension + + :return: The mime_type of this V1FileDetailsGet200ResponseFileDetails. + :rtype: str + """ + return self._mime_type + + @mime_type.setter + def mime_type(self, mime_type): + """ + Sets the mime_type of this V1FileDetailsGet200ResponseFileDetails. + File extension + + :param mime_type: The mime_type of this V1FileDetailsGet200ResponseFileDetails. + :type: str + """ + allowed_values = ["application/xml", "text/csv", "application/pdf", "application/octet-stream"] + if mime_type not in allowed_values: + raise ValueError( + "Invalid value for `mime_type` ({0}), must be one of {1}" + .format(mime_type, allowed_values) + ) + + self._mime_type = mime_type + + @property + def size(self): + """ + Gets the size of this V1FileDetailsGet200ResponseFileDetails. + Size of the file in bytes + + :return: The size of this V1FileDetailsGet200ResponseFileDetails. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """ + Sets the size of this V1FileDetailsGet200ResponseFileDetails. + Size of the file in bytes + + :param size: The size of this V1FileDetailsGet200ResponseFileDetails. + :type: int + """ + + self._size = size + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1FileDetailsGet200ResponseFileDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/v2credits_point_of_sale_information.py b/CyberSource/models/v2credits_point_of_sale_information.py deleted file mode 100644 index 4fc8cb36..00000000 --- a/CyberSource/models/v2credits_point_of_sale_information.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2creditsPointOfSaleInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'emv': 'V2creditsPointOfSaleInformationEmv' - } - - attribute_map = { - 'emv': 'emv' - } - - def __init__(self, emv=None): - """ - V2creditsPointOfSaleInformation - a model defined in Swagger - """ - - self._emv = None - - if emv is not None: - self.emv = emv - - @property - def emv(self): - """ - Gets the emv of this V2creditsPointOfSaleInformation. - - :return: The emv of this V2creditsPointOfSaleInformation. - :rtype: V2creditsPointOfSaleInformationEmv - """ - return self._emv - - @emv.setter - def emv(self, emv): - """ - Sets the emv of this V2creditsPointOfSaleInformation. - - :param emv: The emv of this V2creditsPointOfSaleInformation. - :type: V2creditsPointOfSaleInformationEmv - """ - - self._emv = emv - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2creditsPointOfSaleInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2credits_point_of_sale_information_emv.py b/CyberSource/models/v2credits_point_of_sale_information_emv.py deleted file mode 100644 index eee2a5a6..00000000 --- a/CyberSource/models/v2credits_point_of_sale_information_emv.py +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2creditsPointOfSaleInformationEmv(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'tags': 'str', - 'fallback': 'bool', - 'fallback_condition': 'float' - } - - attribute_map = { - 'tags': 'tags', - 'fallback': 'fallback', - 'fallback_condition': 'fallbackCondition' - } - - def __init__(self, tags=None, fallback=False, fallback_condition=None): - """ - V2creditsPointOfSaleInformationEmv - a model defined in Swagger - """ - - self._tags = None - self._fallback = None - self._fallback_condition = None - - if tags is not None: - self.tags = tags - if fallback is not None: - self.fallback = fallback - if fallback_condition is not None: - self.fallback_condition = fallback_condition - - @property - def tags(self): - """ - Gets the tags of this V2creditsPointOfSaleInformationEmv. - EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram - - :return: The tags of this V2creditsPointOfSaleInformationEmv. - :rtype: str - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this V2creditsPointOfSaleInformationEmv. - EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram - - :param tags: The tags of this V2creditsPointOfSaleInformationEmv. - :type: str - """ - if tags is not None and len(tags) > 1998: - raise ValueError("Invalid value for `tags`, length must be less than or equal to `1998`") - - self._tags = tags - - @property - def fallback(self): - """ - Gets the fallback of this V2creditsPointOfSaleInformationEmv. - Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. - - :return: The fallback of this V2creditsPointOfSaleInformationEmv. - :rtype: bool - """ - return self._fallback - - @fallback.setter - def fallback(self, fallback): - """ - Sets the fallback of this V2creditsPointOfSaleInformationEmv. - Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. - - :param fallback: The fallback of this V2creditsPointOfSaleInformationEmv. - :type: bool - """ - - self._fallback = fallback - - @property - def fallback_condition(self): - """ - Gets the fallback_condition of this V2creditsPointOfSaleInformationEmv. - Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. - - :return: The fallback_condition of this V2creditsPointOfSaleInformationEmv. - :rtype: float - """ - return self._fallback_condition - - @fallback_condition.setter - def fallback_condition(self, fallback_condition): - """ - Sets the fallback_condition of this V2creditsPointOfSaleInformationEmv. - Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. - - :param fallback_condition: The fallback_condition of this V2creditsPointOfSaleInformationEmv. - :type: float - """ - - self._fallback_condition = fallback_condition - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2creditsPointOfSaleInformationEmv): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2credits_processing_information.py b/CyberSource/models/v2credits_processing_information.py deleted file mode 100644 index 4f01192a..00000000 --- a/CyberSource/models/v2credits_processing_information.py +++ /dev/null @@ -1,363 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2creditsProcessingInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'commerce_indicator': 'str', - 'processor_id': 'str', - 'payment_solution': 'str', - 'reconciliation_id': 'str', - 'link_id': 'str', - 'report_group': 'str', - 'visa_checkout_id': 'str', - 'purchase_level': 'str', - 'recurring_options': 'V2paymentsidrefundsProcessingInformationRecurringOptions' - } - - attribute_map = { - 'commerce_indicator': 'commerceIndicator', - 'processor_id': 'processorId', - 'payment_solution': 'paymentSolution', - 'reconciliation_id': 'reconciliationId', - 'link_id': 'linkId', - 'report_group': 'reportGroup', - 'visa_checkout_id': 'visaCheckoutId', - 'purchase_level': 'purchaseLevel', - 'recurring_options': 'recurringOptions' - } - - def __init__(self, commerce_indicator=None, processor_id=None, payment_solution=None, reconciliation_id=None, link_id=None, report_group=None, visa_checkout_id=None, purchase_level=None, recurring_options=None): - """ - V2creditsProcessingInformation - a model defined in Swagger - """ - - self._commerce_indicator = None - self._processor_id = None - self._payment_solution = None - self._reconciliation_id = None - self._link_id = None - self._report_group = None - self._visa_checkout_id = None - self._purchase_level = None - self._recurring_options = None - - if commerce_indicator is not None: - self.commerce_indicator = commerce_indicator - if processor_id is not None: - self.processor_id = processor_id - if payment_solution is not None: - self.payment_solution = payment_solution - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if link_id is not None: - self.link_id = link_id - if report_group is not None: - self.report_group = report_group - if visa_checkout_id is not None: - self.visa_checkout_id = visa_checkout_id - if purchase_level is not None: - self.purchase_level = purchase_level - if recurring_options is not None: - self.recurring_options = recurring_options - - @property - def commerce_indicator(self): - """ - Gets the commerce_indicator of this V2creditsProcessingInformation. - Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. - - :return: The commerce_indicator of this V2creditsProcessingInformation. - :rtype: str - """ - return self._commerce_indicator - - @commerce_indicator.setter - def commerce_indicator(self, commerce_indicator): - """ - Sets the commerce_indicator of this V2creditsProcessingInformation. - Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. - - :param commerce_indicator: The commerce_indicator of this V2creditsProcessingInformation. - :type: str - """ - if commerce_indicator is not None and len(commerce_indicator) > 20: - raise ValueError("Invalid value for `commerce_indicator`, length must be less than or equal to `20`") - - self._commerce_indicator = commerce_indicator - - @property - def processor_id(self): - """ - Gets the processor_id of this V2creditsProcessingInformation. - Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. - - :return: The processor_id of this V2creditsProcessingInformation. - :rtype: str - """ - return self._processor_id - - @processor_id.setter - def processor_id(self, processor_id): - """ - Sets the processor_id of this V2creditsProcessingInformation. - Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. - - :param processor_id: The processor_id of this V2creditsProcessingInformation. - :type: str - """ - if processor_id is not None and len(processor_id) > 3: - raise ValueError("Invalid value for `processor_id`, length must be less than or equal to `3`") - - self._processor_id = processor_id - - @property - def payment_solution(self): - """ - Gets the payment_solution of this V2creditsProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :return: The payment_solution of this V2creditsProcessingInformation. - :rtype: str - """ - return self._payment_solution - - @payment_solution.setter - def payment_solution(self, payment_solution): - """ - Sets the payment_solution of this V2creditsProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :param payment_solution: The payment_solution of this V2creditsProcessingInformation. - :type: str - """ - if payment_solution is not None and len(payment_solution) > 12: - raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") - - self._payment_solution = payment_solution - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this V2creditsProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :return: The reconciliation_id of this V2creditsProcessingInformation. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this V2creditsProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :param reconciliation_id: The reconciliation_id of this V2creditsProcessingInformation. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def link_id(self): - """ - Gets the link_id of this V2creditsProcessingInformation. - Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. - - :return: The link_id of this V2creditsProcessingInformation. - :rtype: str - """ - return self._link_id - - @link_id.setter - def link_id(self, link_id): - """ - Sets the link_id of this V2creditsProcessingInformation. - Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. - - :param link_id: The link_id of this V2creditsProcessingInformation. - :type: str - """ - if link_id is not None and len(link_id) > 26: - raise ValueError("Invalid value for `link_id`, length must be less than or equal to `26`") - - self._link_id = link_id - - @property - def report_group(self): - """ - Gets the report_group of this V2creditsProcessingInformation. - Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. - - :return: The report_group of this V2creditsProcessingInformation. - :rtype: str - """ - return self._report_group - - @report_group.setter - def report_group(self, report_group): - """ - Sets the report_group of this V2creditsProcessingInformation. - Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. - - :param report_group: The report_group of this V2creditsProcessingInformation. - :type: str - """ - if report_group is not None and len(report_group) > 25: - raise ValueError("Invalid value for `report_group`, length must be less than or equal to `25`") - - self._report_group = report_group - - @property - def visa_checkout_id(self): - """ - Gets the visa_checkout_id of this V2creditsProcessingInformation. - Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. - - :return: The visa_checkout_id of this V2creditsProcessingInformation. - :rtype: str - """ - return self._visa_checkout_id - - @visa_checkout_id.setter - def visa_checkout_id(self, visa_checkout_id): - """ - Sets the visa_checkout_id of this V2creditsProcessingInformation. - Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. - - :param visa_checkout_id: The visa_checkout_id of this V2creditsProcessingInformation. - :type: str - """ - if visa_checkout_id is not None and len(visa_checkout_id) > 48: - raise ValueError("Invalid value for `visa_checkout_id`, length must be less than or equal to `48`") - - self._visa_checkout_id = visa_checkout_id - - @property - def purchase_level(self): - """ - Gets the purchase_level of this V2creditsProcessingInformation. - Set this field to 3 to indicate that the request includes Level III data. - - :return: The purchase_level of this V2creditsProcessingInformation. - :rtype: str - """ - return self._purchase_level - - @purchase_level.setter - def purchase_level(self, purchase_level): - """ - Sets the purchase_level of this V2creditsProcessingInformation. - Set this field to 3 to indicate that the request includes Level III data. - - :param purchase_level: The purchase_level of this V2creditsProcessingInformation. - :type: str - """ - if purchase_level is not None and len(purchase_level) > 1: - raise ValueError("Invalid value for `purchase_level`, length must be less than or equal to `1`") - - self._purchase_level = purchase_level - - @property - def recurring_options(self): - """ - Gets the recurring_options of this V2creditsProcessingInformation. - - :return: The recurring_options of this V2creditsProcessingInformation. - :rtype: V2paymentsidrefundsProcessingInformationRecurringOptions - """ - return self._recurring_options - - @recurring_options.setter - def recurring_options(self, recurring_options): - """ - Sets the recurring_options of this V2creditsProcessingInformation. - - :param recurring_options: The recurring_options of this V2creditsProcessingInformation. - :type: V2paymentsidrefundsProcessingInformationRecurringOptions - """ - - self._recurring_options = recurring_options - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2creditsProcessingInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_aggregator_information.py b/CyberSource/models/v2payments_aggregator_information.py deleted file mode 100644 index 28998f26..00000000 --- a/CyberSource/models/v2payments_aggregator_information.py +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsAggregatorInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'aggregator_id': 'str', - 'name': 'str', - 'sub_merchant': 'V2paymentsAggregatorInformationSubMerchant' - } - - attribute_map = { - 'aggregator_id': 'aggregatorId', - 'name': 'name', - 'sub_merchant': 'subMerchant' - } - - def __init__(self, aggregator_id=None, name=None, sub_merchant=None): - """ - V2paymentsAggregatorInformation - a model defined in Swagger - """ - - self._aggregator_id = None - self._name = None - self._sub_merchant = None - - if aggregator_id is not None: - self.aggregator_id = aggregator_id - if name is not None: - self.name = name - if sub_merchant is not None: - self.sub_merchant = sub_merchant - - @property - def aggregator_id(self): - """ - Gets the aggregator_id of this V2paymentsAggregatorInformation. - Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The aggregator_id of this V2paymentsAggregatorInformation. - :rtype: str - """ - return self._aggregator_id - - @aggregator_id.setter - def aggregator_id(self, aggregator_id): - """ - Sets the aggregator_id of this V2paymentsAggregatorInformation. - Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param aggregator_id: The aggregator_id of this V2paymentsAggregatorInformation. - :type: str - """ - if aggregator_id is not None and len(aggregator_id) > 20: - raise ValueError("Invalid value for `aggregator_id`, length must be less than or equal to `20`") - - self._aggregator_id = aggregator_id - - @property - def name(self): - """ - Gets the name of this V2paymentsAggregatorInformation. - Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The name of this V2paymentsAggregatorInformation. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V2paymentsAggregatorInformation. - Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param name: The name of this V2paymentsAggregatorInformation. - :type: str - """ - if name is not None and len(name) > 37: - raise ValueError("Invalid value for `name`, length must be less than or equal to `37`") - - self._name = name - - @property - def sub_merchant(self): - """ - Gets the sub_merchant of this V2paymentsAggregatorInformation. - - :return: The sub_merchant of this V2paymentsAggregatorInformation. - :rtype: V2paymentsAggregatorInformationSubMerchant - """ - return self._sub_merchant - - @sub_merchant.setter - def sub_merchant(self, sub_merchant): - """ - Sets the sub_merchant of this V2paymentsAggregatorInformation. - - :param sub_merchant: The sub_merchant of this V2paymentsAggregatorInformation. - :type: V2paymentsAggregatorInformationSubMerchant - """ - - self._sub_merchant = sub_merchant - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsAggregatorInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_aggregator_information_sub_merchant.py b/CyberSource/models/v2payments_aggregator_information_sub_merchant.py deleted file mode 100644 index 58bacca0..00000000 --- a/CyberSource/models/v2payments_aggregator_information_sub_merchant.py +++ /dev/null @@ -1,397 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsAggregatorInformationSubMerchant(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'card_acceptor_id': 'str', - 'name': 'str', - 'address1': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'region': 'str', - 'postal_code': 'str', - 'country': 'str', - 'email': 'str', - 'phone_number': 'str' - } - - attribute_map = { - 'card_acceptor_id': 'cardAcceptorId', - 'name': 'name', - 'address1': 'address1', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'region': 'region', - 'postal_code': 'postalCode', - 'country': 'country', - 'email': 'email', - 'phone_number': 'phoneNumber' - } - - def __init__(self, card_acceptor_id=None, name=None, address1=None, locality=None, administrative_area=None, region=None, postal_code=None, country=None, email=None, phone_number=None): - """ - V2paymentsAggregatorInformationSubMerchant - a model defined in Swagger - """ - - self._card_acceptor_id = None - self._name = None - self._address1 = None - self._locality = None - self._administrative_area = None - self._region = None - self._postal_code = None - self._country = None - self._email = None - self._phone_number = None - - if card_acceptor_id is not None: - self.card_acceptor_id = card_acceptor_id - if name is not None: - self.name = name - if address1 is not None: - self.address1 = address1 - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if region is not None: - self.region = region - if postal_code is not None: - self.postal_code = postal_code - if country is not None: - self.country = country - if email is not None: - self.email = email - if phone_number is not None: - self.phone_number = phone_number - - @property - def card_acceptor_id(self): - """ - Gets the card_acceptor_id of this V2paymentsAggregatorInformationSubMerchant. - Unique identifier assigned by the payment card company to the sub-merchant. - - :return: The card_acceptor_id of this V2paymentsAggregatorInformationSubMerchant. - :rtype: str - """ - return self._card_acceptor_id - - @card_acceptor_id.setter - def card_acceptor_id(self, card_acceptor_id): - """ - Sets the card_acceptor_id of this V2paymentsAggregatorInformationSubMerchant. - Unique identifier assigned by the payment card company to the sub-merchant. - - :param card_acceptor_id: The card_acceptor_id of this V2paymentsAggregatorInformationSubMerchant. - :type: str - """ - if card_acceptor_id is not None and len(card_acceptor_id) > 15: - raise ValueError("Invalid value for `card_acceptor_id`, length must be less than or equal to `15`") - - self._card_acceptor_id = card_acceptor_id - - @property - def name(self): - """ - Gets the name of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s business name. - - :return: The name of this V2paymentsAggregatorInformationSubMerchant. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s business name. - - :param name: The name of this V2paymentsAggregatorInformationSubMerchant. - :type: str - """ - if name is not None and len(name) > 37: - raise ValueError("Invalid value for `name`, length must be less than or equal to `37`") - - self._name = name - - @property - def address1(self): - """ - Gets the address1 of this V2paymentsAggregatorInformationSubMerchant. - First line of the sub-merchant’s street address. - - :return: The address1 of this V2paymentsAggregatorInformationSubMerchant. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this V2paymentsAggregatorInformationSubMerchant. - First line of the sub-merchant’s street address. - - :param address1: The address1 of this V2paymentsAggregatorInformationSubMerchant. - :type: str - """ - if address1 is not None and len(address1) > 38: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `38`") - - self._address1 = address1 - - @property - def locality(self): - """ - Gets the locality of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s city. - - :return: The locality of this V2paymentsAggregatorInformationSubMerchant. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s city. - - :param locality: The locality of this V2paymentsAggregatorInformationSubMerchant. - :type: str - """ - if locality is not None and len(locality) > 21: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `21`") - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. - - :return: The administrative_area of this V2paymentsAggregatorInformationSubMerchant. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. - - :param administrative_area: The administrative_area of this V2paymentsAggregatorInformationSubMerchant. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 3: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `3`") - - self._administrative_area = administrative_area - - @property - def region(self): - """ - Gets the region of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s region. Example `NE` indicates that the sub-merchant is in the northeast region. - - :return: The region of this V2paymentsAggregatorInformationSubMerchant. - :rtype: str - """ - return self._region - - @region.setter - def region(self, region): - """ - Sets the region of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s region. Example `NE` indicates that the sub-merchant is in the northeast region. - - :param region: The region of this V2paymentsAggregatorInformationSubMerchant. - :type: str - """ - if region is not None and len(region) > 3: - raise ValueError("Invalid value for `region`, length must be less than or equal to `3`") - - self._region = region - - @property - def postal_code(self): - """ - Gets the postal_code of this V2paymentsAggregatorInformationSubMerchant. - Partial postal code for the sub-merchant’s address. - - :return: The postal_code of this V2paymentsAggregatorInformationSubMerchant. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2paymentsAggregatorInformationSubMerchant. - Partial postal code for the sub-merchant’s address. - - :param postal_code: The postal_code of this V2paymentsAggregatorInformationSubMerchant. - :type: str - """ - if postal_code is not None and len(postal_code) > 15: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `15`") - - self._postal_code = postal_code - - @property - def country(self): - """ - Gets the country of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s country. Use the two-character ISO Standard Country Codes. - - :return: The country of this V2paymentsAggregatorInformationSubMerchant. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s country. Use the two-character ISO Standard Country Codes. - - :param country: The country of this V2paymentsAggregatorInformationSubMerchant. - :type: str - """ - if country is not None and len(country) > 3: - raise ValueError("Invalid value for `country`, length must be less than or equal to `3`") - - self._country = country - - @property - def email(self): - """ - Gets the email of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 - - :return: The email of this V2paymentsAggregatorInformationSubMerchant. - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """ - Sets the email of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 - - :param email: The email of this V2paymentsAggregatorInformationSubMerchant. - :type: str - """ - if email is not None and len(email) > 40: - raise ValueError("Invalid value for `email`, length must be less than or equal to `40`") - - self._email = email - - @property - def phone_number(self): - """ - Gets the phone_number of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 - - :return: The phone_number of this V2paymentsAggregatorInformationSubMerchant. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this V2paymentsAggregatorInformationSubMerchant. - Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 - - :param phone_number: The phone_number of this V2paymentsAggregatorInformationSubMerchant. - :type: str - """ - if phone_number is not None and len(phone_number) > 20: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `20`") - - self._phone_number = phone_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsAggregatorInformationSubMerchant): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_buyer_information.py b/CyberSource/models/v2payments_buyer_information.py deleted file mode 100644 index 8e2035c0..00000000 --- a/CyberSource/models/v2payments_buyer_information.py +++ /dev/null @@ -1,243 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsBuyerInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'merchant_customer_id': 'str', - 'date_of_birth': 'str', - 'vat_registration_number': 'str', - 'personal_identification': 'list[V2paymentsBuyerInformationPersonalIdentification]', - 'hashed_password': 'str' - } - - attribute_map = { - 'merchant_customer_id': 'merchantCustomerId', - 'date_of_birth': 'dateOfBirth', - 'vat_registration_number': 'vatRegistrationNumber', - 'personal_identification': 'personalIdentification', - 'hashed_password': 'hashedPassword' - } - - def __init__(self, merchant_customer_id=None, date_of_birth=None, vat_registration_number=None, personal_identification=None, hashed_password=None): - """ - V2paymentsBuyerInformation - a model defined in Swagger - """ - - self._merchant_customer_id = None - self._date_of_birth = None - self._vat_registration_number = None - self._personal_identification = None - self._hashed_password = None - - if merchant_customer_id is not None: - self.merchant_customer_id = merchant_customer_id - if date_of_birth is not None: - self.date_of_birth = date_of_birth - if vat_registration_number is not None: - self.vat_registration_number = vat_registration_number - if personal_identification is not None: - self.personal_identification = personal_identification - if hashed_password is not None: - self.hashed_password = hashed_password - - @property - def merchant_customer_id(self): - """ - Gets the merchant_customer_id of this V2paymentsBuyerInformation. - Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The merchant_customer_id of this V2paymentsBuyerInformation. - :rtype: str - """ - return self._merchant_customer_id - - @merchant_customer_id.setter - def merchant_customer_id(self, merchant_customer_id): - """ - Sets the merchant_customer_id of this V2paymentsBuyerInformation. - Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param merchant_customer_id: The merchant_customer_id of this V2paymentsBuyerInformation. - :type: str - """ - if merchant_customer_id is not None and len(merchant_customer_id) > 100: - raise ValueError("Invalid value for `merchant_customer_id`, length must be less than or equal to `100`") - - self._merchant_customer_id = merchant_customer_id - - @property - def date_of_birth(self): - """ - Gets the date_of_birth of this V2paymentsBuyerInformation. - Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - - :return: The date_of_birth of this V2paymentsBuyerInformation. - :rtype: str - """ - return self._date_of_birth - - @date_of_birth.setter - def date_of_birth(self, date_of_birth): - """ - Sets the date_of_birth of this V2paymentsBuyerInformation. - Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - - :param date_of_birth: The date_of_birth of this V2paymentsBuyerInformation. - :type: str - """ - if date_of_birth is not None and len(date_of_birth) > 8: - raise ValueError("Invalid value for `date_of_birth`, length must be less than or equal to `8`") - - self._date_of_birth = date_of_birth - - @property - def vat_registration_number(self): - """ - Gets the vat_registration_number of this V2paymentsBuyerInformation. - Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_registration_number of this V2paymentsBuyerInformation. - :rtype: str - """ - return self._vat_registration_number - - @vat_registration_number.setter - def vat_registration_number(self, vat_registration_number): - """ - Sets the vat_registration_number of this V2paymentsBuyerInformation. - Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_registration_number: The vat_registration_number of this V2paymentsBuyerInformation. - :type: str - """ - if vat_registration_number is not None and len(vat_registration_number) > 20: - raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `20`") - - self._vat_registration_number = vat_registration_number - - @property - def personal_identification(self): - """ - Gets the personal_identification of this V2paymentsBuyerInformation. - - :return: The personal_identification of this V2paymentsBuyerInformation. - :rtype: list[V2paymentsBuyerInformationPersonalIdentification] - """ - return self._personal_identification - - @personal_identification.setter - def personal_identification(self, personal_identification): - """ - Sets the personal_identification of this V2paymentsBuyerInformation. - - :param personal_identification: The personal_identification of this V2paymentsBuyerInformation. - :type: list[V2paymentsBuyerInformationPersonalIdentification] - """ - - self._personal_identification = personal_identification - - @property - def hashed_password(self): - """ - Gets the hashed_password of this V2paymentsBuyerInformation. - TODO - - :return: The hashed_password of this V2paymentsBuyerInformation. - :rtype: str - """ - return self._hashed_password - - @hashed_password.setter - def hashed_password(self, hashed_password): - """ - Sets the hashed_password of this V2paymentsBuyerInformation. - TODO - - :param hashed_password: The hashed_password of this V2paymentsBuyerInformation. - :type: str - """ - if hashed_password is not None and len(hashed_password) > 100: - raise ValueError("Invalid value for `hashed_password`, length must be less than or equal to `100`") - - self._hashed_password = hashed_password - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsBuyerInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_buyer_information_personal_identification.py b/CyberSource/models/v2payments_buyer_information_personal_identification.py deleted file mode 100644 index 3c1f53bb..00000000 --- a/CyberSource/models/v2payments_buyer_information_personal_identification.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsBuyerInformationPersonalIdentification(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'str', - 'id': 'str', - 'issued_by': 'str' - } - - attribute_map = { - 'type': 'type', - 'id': 'id', - 'issued_by': 'issuedBy' - } - - def __init__(self, type=None, id=None, issued_by=None): - """ - V2paymentsBuyerInformationPersonalIdentification - a model defined in Swagger - """ - - self._type = None - self._id = None - self._issued_by = None - - if type is not None: - self.type = type - if id is not None: - self.id = id - if issued_by is not None: - self.issued_by = issued_by - - @property - def type(self): - """ - Gets the type of this V2paymentsBuyerInformationPersonalIdentification. - - :return: The type of this V2paymentsBuyerInformationPersonalIdentification. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V2paymentsBuyerInformationPersonalIdentification. - - :param type: The type of this V2paymentsBuyerInformationPersonalIdentification. - :type: str - """ - allowed_values = ["ssn", "driverlicense"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" - .format(type, allowed_values) - ) - - self._type = type - - @property - def id(self): - """ - Gets the id of this V2paymentsBuyerInformationPersonalIdentification. - Personal Identifier for the customer based on various type. This field is supported only on the processors listed in this description. For processor-specific information, see the personal_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The id of this V2paymentsBuyerInformationPersonalIdentification. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this V2paymentsBuyerInformationPersonalIdentification. - Personal Identifier for the customer based on various type. This field is supported only on the processors listed in this description. For processor-specific information, see the personal_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param id: The id of this V2paymentsBuyerInformationPersonalIdentification. - :type: str - """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") - - self._id = id - - @property - def issued_by(self): - """ - Gets the issued_by of this V2paymentsBuyerInformationPersonalIdentification. - TBD - - :return: The issued_by of this V2paymentsBuyerInformationPersonalIdentification. - :rtype: str - """ - return self._issued_by - - @issued_by.setter - def issued_by(self, issued_by): - """ - Sets the issued_by of this V2paymentsBuyerInformationPersonalIdentification. - TBD - - :param issued_by: The issued_by of this V2paymentsBuyerInformationPersonalIdentification. - :type: str - """ - - self._issued_by = issued_by - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsBuyerInformationPersonalIdentification): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_client_reference_information.py b/CyberSource/models/v2payments_client_reference_information.py deleted file mode 100644 index bfd83e81..00000000 --- a/CyberSource/models/v2payments_client_reference_information.py +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsClientReferenceInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'code': 'str', - 'transaction_id': 'str', - 'comments': 'str' - } - - attribute_map = { - 'code': 'code', - 'transaction_id': 'transactionId', - 'comments': 'comments' - } - - def __init__(self, code=None, transaction_id=None, comments=None): - """ - V2paymentsClientReferenceInformation - a model defined in Swagger - """ - - self._code = None - self._transaction_id = None - self._comments = None - - if code is not None: - self.code = code - if transaction_id is not None: - self.transaction_id = transaction_id - if comments is not None: - self.comments = comments - - @property - def code(self): - """ - Gets the code of this V2paymentsClientReferenceInformation. - Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. - - :return: The code of this V2paymentsClientReferenceInformation. - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this V2paymentsClientReferenceInformation. - Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. - - :param code: The code of this V2paymentsClientReferenceInformation. - :type: str - """ - if code is not None and len(code) > 50: - raise ValueError("Invalid value for `code`, length must be less than or equal to `50`") - - self._code = code - - @property - def transaction_id(self): - """ - Gets the transaction_id of this V2paymentsClientReferenceInformation. - Identifier that you assign to the transaction. See \"Merchant-Initiated Reversals and Voids,\" page 176 - - :return: The transaction_id of this V2paymentsClientReferenceInformation. - :rtype: str - """ - return self._transaction_id - - @transaction_id.setter - def transaction_id(self, transaction_id): - """ - Sets the transaction_id of this V2paymentsClientReferenceInformation. - Identifier that you assign to the transaction. See \"Merchant-Initiated Reversals and Voids,\" page 176 - - :param transaction_id: The transaction_id of this V2paymentsClientReferenceInformation. - :type: str - """ - - self._transaction_id = transaction_id - - @property - def comments(self): - """ - Gets the comments of this V2paymentsClientReferenceInformation. - Comments - - :return: The comments of this V2paymentsClientReferenceInformation. - :rtype: str - """ - return self._comments - - @comments.setter - def comments(self, comments): - """ - Sets the comments of this V2paymentsClientReferenceInformation. - Comments - - :param comments: The comments of this V2paymentsClientReferenceInformation. - :type: str - """ - - self._comments = comments - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsClientReferenceInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_consumer_authentication_information.py b/CyberSource/models/v2payments_consumer_authentication_information.py deleted file mode 100644 index 2b5c719b..00000000 --- a/CyberSource/models/v2payments_consumer_authentication_information.py +++ /dev/null @@ -1,337 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsConsumerAuthenticationInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cavv': 'str', - 'cavv_algorithm': 'str', - 'eci_raw': 'str', - 'pares_status': 'str', - 'veres_enrolled': 'str', - 'xid': 'str', - 'ucaf_authentication_data': 'str', - 'ucaf_collection_indicator': 'str' - } - - attribute_map = { - 'cavv': 'cavv', - 'cavv_algorithm': 'cavvAlgorithm', - 'eci_raw': 'eciRaw', - 'pares_status': 'paresStatus', - 'veres_enrolled': 'veresEnrolled', - 'xid': 'xid', - 'ucaf_authentication_data': 'ucafAuthenticationData', - 'ucaf_collection_indicator': 'ucafCollectionIndicator' - } - - def __init__(self, cavv=None, cavv_algorithm=None, eci_raw=None, pares_status=None, veres_enrolled=None, xid=None, ucaf_authentication_data=None, ucaf_collection_indicator=None): - """ - V2paymentsConsumerAuthenticationInformation - a model defined in Swagger - """ - - self._cavv = None - self._cavv_algorithm = None - self._eci_raw = None - self._pares_status = None - self._veres_enrolled = None - self._xid = None - self._ucaf_authentication_data = None - self._ucaf_collection_indicator = None - - if cavv is not None: - self.cavv = cavv - if cavv_algorithm is not None: - self.cavv_algorithm = cavv_algorithm - if eci_raw is not None: - self.eci_raw = eci_raw - if pares_status is not None: - self.pares_status = pares_status - if veres_enrolled is not None: - self.veres_enrolled = veres_enrolled - if xid is not None: - self.xid = xid - if ucaf_authentication_data is not None: - self.ucaf_authentication_data = ucaf_authentication_data - if ucaf_collection_indicator is not None: - self.ucaf_collection_indicator = ucaf_collection_indicator - - @property - def cavv(self): - """ - Gets the cavv of this V2paymentsConsumerAuthenticationInformation. - Cardholder authentication verification value (CAVV). - - :return: The cavv of this V2paymentsConsumerAuthenticationInformation. - :rtype: str - """ - return self._cavv - - @cavv.setter - def cavv(self, cavv): - """ - Sets the cavv of this V2paymentsConsumerAuthenticationInformation. - Cardholder authentication verification value (CAVV). - - :param cavv: The cavv of this V2paymentsConsumerAuthenticationInformation. - :type: str - """ - if cavv is not None and len(cavv) > 40: - raise ValueError("Invalid value for `cavv`, length must be less than or equal to `40`") - - self._cavv = cavv - - @property - def cavv_algorithm(self): - """ - Gets the cavv_algorithm of this V2paymentsConsumerAuthenticationInformation. - Algorithm used to generate the CAVV for Verified by Visa or the UCAF authentication data for Mastercard SecureCode. - - :return: The cavv_algorithm of this V2paymentsConsumerAuthenticationInformation. - :rtype: str - """ - return self._cavv_algorithm - - @cavv_algorithm.setter - def cavv_algorithm(self, cavv_algorithm): - """ - Sets the cavv_algorithm of this V2paymentsConsumerAuthenticationInformation. - Algorithm used to generate the CAVV for Verified by Visa or the UCAF authentication data for Mastercard SecureCode. - - :param cavv_algorithm: The cavv_algorithm of this V2paymentsConsumerAuthenticationInformation. - :type: str - """ - if cavv_algorithm is not None and len(cavv_algorithm) > 1: - raise ValueError("Invalid value for `cavv_algorithm`, length must be less than or equal to `1`") - - self._cavv_algorithm = cavv_algorithm - - @property - def eci_raw(self): - """ - Gets the eci_raw of this V2paymentsConsumerAuthenticationInformation. - Raw electronic commerce indicator (ECI). - - :return: The eci_raw of this V2paymentsConsumerAuthenticationInformation. - :rtype: str - """ - return self._eci_raw - - @eci_raw.setter - def eci_raw(self, eci_raw): - """ - Sets the eci_raw of this V2paymentsConsumerAuthenticationInformation. - Raw electronic commerce indicator (ECI). - - :param eci_raw: The eci_raw of this V2paymentsConsumerAuthenticationInformation. - :type: str - """ - if eci_raw is not None and len(eci_raw) > 2: - raise ValueError("Invalid value for `eci_raw`, length must be less than or equal to `2`") - - self._eci_raw = eci_raw - - @property - def pares_status(self): - """ - Gets the pares_status of this V2paymentsConsumerAuthenticationInformation. - Payer authentication response status. - - :return: The pares_status of this V2paymentsConsumerAuthenticationInformation. - :rtype: str - """ - return self._pares_status - - @pares_status.setter - def pares_status(self, pares_status): - """ - Sets the pares_status of this V2paymentsConsumerAuthenticationInformation. - Payer authentication response status. - - :param pares_status: The pares_status of this V2paymentsConsumerAuthenticationInformation. - :type: str - """ - if pares_status is not None and len(pares_status) > 1: - raise ValueError("Invalid value for `pares_status`, length must be less than or equal to `1`") - - self._pares_status = pares_status - - @property - def veres_enrolled(self): - """ - Gets the veres_enrolled of this V2paymentsConsumerAuthenticationInformation. - Verification response enrollment status. - - :return: The veres_enrolled of this V2paymentsConsumerAuthenticationInformation. - :rtype: str - """ - return self._veres_enrolled - - @veres_enrolled.setter - def veres_enrolled(self, veres_enrolled): - """ - Sets the veres_enrolled of this V2paymentsConsumerAuthenticationInformation. - Verification response enrollment status. - - :param veres_enrolled: The veres_enrolled of this V2paymentsConsumerAuthenticationInformation. - :type: str - """ - if veres_enrolled is not None and len(veres_enrolled) > 1: - raise ValueError("Invalid value for `veres_enrolled`, length must be less than or equal to `1`") - - self._veres_enrolled = veres_enrolled - - @property - def xid(self): - """ - Gets the xid of this V2paymentsConsumerAuthenticationInformation. - Transaction identifier. - - :return: The xid of this V2paymentsConsumerAuthenticationInformation. - :rtype: str - """ - return self._xid - - @xid.setter - def xid(self, xid): - """ - Sets the xid of this V2paymentsConsumerAuthenticationInformation. - Transaction identifier. - - :param xid: The xid of this V2paymentsConsumerAuthenticationInformation. - :type: str - """ - if xid is not None and len(xid) > 40: - raise ValueError("Invalid value for `xid`, length must be less than or equal to `40`") - - self._xid = xid - - @property - def ucaf_authentication_data(self): - """ - Gets the ucaf_authentication_data of this V2paymentsConsumerAuthenticationInformation. - Universal cardholder authentication field (UCAF) data. - - :return: The ucaf_authentication_data of this V2paymentsConsumerAuthenticationInformation. - :rtype: str - """ - return self._ucaf_authentication_data - - @ucaf_authentication_data.setter - def ucaf_authentication_data(self, ucaf_authentication_data): - """ - Sets the ucaf_authentication_data of this V2paymentsConsumerAuthenticationInformation. - Universal cardholder authentication field (UCAF) data. - - :param ucaf_authentication_data: The ucaf_authentication_data of this V2paymentsConsumerAuthenticationInformation. - :type: str - """ - if ucaf_authentication_data is not None and len(ucaf_authentication_data) > 32: - raise ValueError("Invalid value for `ucaf_authentication_data`, length must be less than or equal to `32`") - - self._ucaf_authentication_data = ucaf_authentication_data - - @property - def ucaf_collection_indicator(self): - """ - Gets the ucaf_collection_indicator of this V2paymentsConsumerAuthenticationInformation. - Universal cardholder authentication field (UCAF) collection indicator. - - :return: The ucaf_collection_indicator of this V2paymentsConsumerAuthenticationInformation. - :rtype: str - """ - return self._ucaf_collection_indicator - - @ucaf_collection_indicator.setter - def ucaf_collection_indicator(self, ucaf_collection_indicator): - """ - Sets the ucaf_collection_indicator of this V2paymentsConsumerAuthenticationInformation. - Universal cardholder authentication field (UCAF) collection indicator. - - :param ucaf_collection_indicator: The ucaf_collection_indicator of this V2paymentsConsumerAuthenticationInformation. - :type: str - """ - if ucaf_collection_indicator is not None and len(ucaf_collection_indicator) > 1: - raise ValueError("Invalid value for `ucaf_collection_indicator`, length must be less than or equal to `1`") - - self._ucaf_collection_indicator = ucaf_collection_indicator - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsConsumerAuthenticationInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_device_information.py b/CyberSource/models/v2payments_device_information.py deleted file mode 100644 index e537792b..00000000 --- a/CyberSource/models/v2payments_device_information.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsDeviceInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'host_name': 'str', - 'ip_address': 'str', - 'user_agent': 'str' - } - - attribute_map = { - 'host_name': 'hostName', - 'ip_address': 'ipAddress', - 'user_agent': 'userAgent' - } - - def __init__(self, host_name=None, ip_address=None, user_agent=None): - """ - V2paymentsDeviceInformation - a model defined in Swagger - """ - - self._host_name = None - self._ip_address = None - self._user_agent = None - - if host_name is not None: - self.host_name = host_name - if ip_address is not None: - self.ip_address = ip_address - if user_agent is not None: - self.user_agent = user_agent - - @property - def host_name(self): - """ - Gets the host_name of this V2paymentsDeviceInformation. - DNS resolved hostname from above _ipAddress_. - - :return: The host_name of this V2paymentsDeviceInformation. - :rtype: str - """ - return self._host_name - - @host_name.setter - def host_name(self, host_name): - """ - Sets the host_name of this V2paymentsDeviceInformation. - DNS resolved hostname from above _ipAddress_. - - :param host_name: The host_name of this V2paymentsDeviceInformation. - :type: str - """ - if host_name is not None and len(host_name) > 60: - raise ValueError("Invalid value for `host_name`, length must be less than or equal to `60`") - - self._host_name = host_name - - @property - def ip_address(self): - """ - Gets the ip_address of this V2paymentsDeviceInformation. - IP address of the customer. - - :return: The ip_address of this V2paymentsDeviceInformation. - :rtype: str - """ - return self._ip_address - - @ip_address.setter - def ip_address(self, ip_address): - """ - Sets the ip_address of this V2paymentsDeviceInformation. - IP address of the customer. - - :param ip_address: The ip_address of this V2paymentsDeviceInformation. - :type: str - """ - if ip_address is not None and len(ip_address) > 15: - raise ValueError("Invalid value for `ip_address`, length must be less than or equal to `15`") - - self._ip_address = ip_address - - @property - def user_agent(self): - """ - Gets the user_agent of this V2paymentsDeviceInformation. - Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser. - - :return: The user_agent of this V2paymentsDeviceInformation. - :rtype: str - """ - return self._user_agent - - @user_agent.setter - def user_agent(self, user_agent): - """ - Sets the user_agent of this V2paymentsDeviceInformation. - Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser. - - :param user_agent: The user_agent of this V2paymentsDeviceInformation. - :type: str - """ - if user_agent is not None and len(user_agent) > 40: - raise ValueError("Invalid value for `user_agent`, length must be less than or equal to `40`") - - self._user_agent = user_agent - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsDeviceInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_merchant_defined_information.py b/CyberSource/models/v2payments_merchant_defined_information.py deleted file mode 100644 index 2810ee5a..00000000 --- a/CyberSource/models/v2payments_merchant_defined_information.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsMerchantDefinedInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'key': 'str', - 'value': 'str' - } - - attribute_map = { - 'key': 'key', - 'value': 'value' - } - - def __init__(self, key=None, value=None): - """ - V2paymentsMerchantDefinedInformation - a model defined in Swagger - """ - - self._key = None - self._value = None - - if key is not None: - self.key = key - if value is not None: - self.value = value - - @property - def key(self): - """ - Gets the key of this V2paymentsMerchantDefinedInformation. - TBD - - :return: The key of this V2paymentsMerchantDefinedInformation. - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this V2paymentsMerchantDefinedInformation. - TBD - - :param key: The key of this V2paymentsMerchantDefinedInformation. - :type: str - """ - if key is not None and len(key) > 50: - raise ValueError("Invalid value for `key`, length must be less than or equal to `50`") - - self._key = key - - @property - def value(self): - """ - Gets the value of this V2paymentsMerchantDefinedInformation. - TBD - - :return: The value of this V2paymentsMerchantDefinedInformation. - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """ - Sets the value of this V2paymentsMerchantDefinedInformation. - TBD - - :param value: The value of this V2paymentsMerchantDefinedInformation. - :type: str - """ - if value is not None and len(value) > 255: - raise ValueError("Invalid value for `value`, length must be less than or equal to `255`") - - self._value = value - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsMerchantDefinedInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_merchant_information.py b/CyberSource/models/v2payments_merchant_information.py deleted file mode 100644 index 5eaa4187..00000000 --- a/CyberSource/models/v2payments_merchant_information.py +++ /dev/null @@ -1,273 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsMerchantInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'merchant_descriptor': 'V2paymentsMerchantInformationMerchantDescriptor', - 'sales_organization_id': 'str', - 'category_code': 'int', - 'vat_registration_number': 'str', - 'card_acceptor_reference_number': 'str', - 'transaction_local_date_time': 'str' - } - - attribute_map = { - 'merchant_descriptor': 'merchantDescriptor', - 'sales_organization_id': 'salesOrganizationId', - 'category_code': 'categoryCode', - 'vat_registration_number': 'vatRegistrationNumber', - 'card_acceptor_reference_number': 'cardAcceptorReferenceNumber', - 'transaction_local_date_time': 'transactionLocalDateTime' - } - - def __init__(self, merchant_descriptor=None, sales_organization_id=None, category_code=None, vat_registration_number=None, card_acceptor_reference_number=None, transaction_local_date_time=None): - """ - V2paymentsMerchantInformation - a model defined in Swagger - """ - - self._merchant_descriptor = None - self._sales_organization_id = None - self._category_code = None - self._vat_registration_number = None - self._card_acceptor_reference_number = None - self._transaction_local_date_time = None - - if merchant_descriptor is not None: - self.merchant_descriptor = merchant_descriptor - if sales_organization_id is not None: - self.sales_organization_id = sales_organization_id - if category_code is not None: - self.category_code = category_code - if vat_registration_number is not None: - self.vat_registration_number = vat_registration_number - if card_acceptor_reference_number is not None: - self.card_acceptor_reference_number = card_acceptor_reference_number - if transaction_local_date_time is not None: - self.transaction_local_date_time = transaction_local_date_time - - @property - def merchant_descriptor(self): - """ - Gets the merchant_descriptor of this V2paymentsMerchantInformation. - - :return: The merchant_descriptor of this V2paymentsMerchantInformation. - :rtype: V2paymentsMerchantInformationMerchantDescriptor - """ - return self._merchant_descriptor - - @merchant_descriptor.setter - def merchant_descriptor(self, merchant_descriptor): - """ - Sets the merchant_descriptor of this V2paymentsMerchantInformation. - - :param merchant_descriptor: The merchant_descriptor of this V2paymentsMerchantInformation. - :type: V2paymentsMerchantInformationMerchantDescriptor - """ - - self._merchant_descriptor = merchant_descriptor - - @property - def sales_organization_id(self): - """ - Gets the sales_organization_id of this V2paymentsMerchantInformation. - Company ID assigned to an independent sales organization. Get this value from Mastercard. For processor-specific information, see the sales_organization_ID field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The sales_organization_id of this V2paymentsMerchantInformation. - :rtype: str - """ - return self._sales_organization_id - - @sales_organization_id.setter - def sales_organization_id(self, sales_organization_id): - """ - Sets the sales_organization_id of this V2paymentsMerchantInformation. - Company ID assigned to an independent sales organization. Get this value from Mastercard. For processor-specific information, see the sales_organization_ID field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param sales_organization_id: The sales_organization_id of this V2paymentsMerchantInformation. - :type: str - """ - if sales_organization_id is not None and len(sales_organization_id) > 11: - raise ValueError("Invalid value for `sales_organization_id`, length must be less than or equal to `11`") - - self._sales_organization_id = sales_organization_id - - @property - def category_code(self): - """ - Gets the category_code of this V2paymentsMerchantInformation. - Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The category_code of this V2paymentsMerchantInformation. - :rtype: int - """ - return self._category_code - - @category_code.setter - def category_code(self, category_code): - """ - Sets the category_code of this V2paymentsMerchantInformation. - Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param category_code: The category_code of this V2paymentsMerchantInformation. - :type: int - """ - if category_code is not None and category_code > 9999: - raise ValueError("Invalid value for `category_code`, must be a value less than or equal to `9999`") - - self._category_code = category_code - - @property - def vat_registration_number(self): - """ - Gets the vat_registration_number of this V2paymentsMerchantInformation. - Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_registration_number of this V2paymentsMerchantInformation. - :rtype: str - """ - return self._vat_registration_number - - @vat_registration_number.setter - def vat_registration_number(self, vat_registration_number): - """ - Sets the vat_registration_number of this V2paymentsMerchantInformation. - Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_registration_number: The vat_registration_number of this V2paymentsMerchantInformation. - :type: str - """ - if vat_registration_number is not None and len(vat_registration_number) > 21: - raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `21`") - - self._vat_registration_number = vat_registration_number - - @property - def card_acceptor_reference_number(self): - """ - Gets the card_acceptor_reference_number of this V2paymentsMerchantInformation. - Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The card_acceptor_reference_number of this V2paymentsMerchantInformation. - :rtype: str - """ - return self._card_acceptor_reference_number - - @card_acceptor_reference_number.setter - def card_acceptor_reference_number(self, card_acceptor_reference_number): - """ - Sets the card_acceptor_reference_number of this V2paymentsMerchantInformation. - Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param card_acceptor_reference_number: The card_acceptor_reference_number of this V2paymentsMerchantInformation. - :type: str - """ - if card_acceptor_reference_number is not None and len(card_acceptor_reference_number) > 25: - raise ValueError("Invalid value for `card_acceptor_reference_number`, length must be less than or equal to `25`") - - self._card_acceptor_reference_number = card_acceptor_reference_number - - @property - def transaction_local_date_time(self): - """ - Gets the transaction_local_date_time of this V2paymentsMerchantInformation. - Local date and time at your physical location. Include both the date and time in this field or leave it blank. This field is supported only for **CyberSource through VisaNet**. For processor-specific information, see the transaction_local_date_time field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) `Format: YYYYMMDDhhmmss`, where: - YYYY = year - MM = month - DD = day - hh = hour - mm = minutes - ss = seconds - - :return: The transaction_local_date_time of this V2paymentsMerchantInformation. - :rtype: str - """ - return self._transaction_local_date_time - - @transaction_local_date_time.setter - def transaction_local_date_time(self, transaction_local_date_time): - """ - Sets the transaction_local_date_time of this V2paymentsMerchantInformation. - Local date and time at your physical location. Include both the date and time in this field or leave it blank. This field is supported only for **CyberSource through VisaNet**. For processor-specific information, see the transaction_local_date_time field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) `Format: YYYYMMDDhhmmss`, where: - YYYY = year - MM = month - DD = day - hh = hour - mm = minutes - ss = seconds - - :param transaction_local_date_time: The transaction_local_date_time of this V2paymentsMerchantInformation. - :type: str - """ - if transaction_local_date_time is not None and len(transaction_local_date_time) > 14: - raise ValueError("Invalid value for `transaction_local_date_time`, length must be less than or equal to `14`") - - self._transaction_local_date_time = transaction_local_date_time - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsMerchantInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_merchant_information_merchant_descriptor.py b/CyberSource/models/v2payments_merchant_information_merchant_descriptor.py deleted file mode 100644 index da373c3c..00000000 --- a/CyberSource/models/v2payments_merchant_information_merchant_descriptor.py +++ /dev/null @@ -1,337 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsMerchantInformationMerchantDescriptor(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'alternate_name': 'str', - 'contact': 'str', - 'address1': 'str', - 'locality': 'str', - 'country': 'str', - 'postal_code': 'str', - 'administrative_area': 'str' - } - - attribute_map = { - 'name': 'name', - 'alternate_name': 'alternateName', - 'contact': 'contact', - 'address1': 'address1', - 'locality': 'locality', - 'country': 'country', - 'postal_code': 'postalCode', - 'administrative_area': 'administrativeArea' - } - - def __init__(self, name=None, alternate_name=None, contact=None, address1=None, locality=None, country=None, postal_code=None, administrative_area=None): - """ - V2paymentsMerchantInformationMerchantDescriptor - a model defined in Swagger - """ - - self._name = None - self._alternate_name = None - self._contact = None - self._address1 = None - self._locality = None - self._country = None - self._postal_code = None - self._administrative_area = None - - if name is not None: - self.name = name - if alternate_name is not None: - self.alternate_name = alternate_name - if contact is not None: - self.contact = contact - if address1 is not None: - self.address1 = address1 - if locality is not None: - self.locality = locality - if country is not None: - self.country = country - if postal_code is not None: - self.postal_code = postal_code - if administrative_area is not None: - self.administrative_area = administrative_area - - @property - def name(self): - """ - Gets the name of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) - - :return: The name of this V2paymentsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) - - :param name: The name of this V2paymentsMerchantInformationMerchantDescriptor. - :type: str - """ - if name is not None and len(name) > 23: - raise ValueError("Invalid value for `name`, length must be less than or equal to `23`") - - self._name = name - - @property - def alternate_name(self): - """ - Gets the alternate_name of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The alternate_name of this V2paymentsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._alternate_name - - @alternate_name.setter - def alternate_name(self, alternate_name): - """ - Sets the alternate_name of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param alternate_name: The alternate_name of this V2paymentsMerchantInformationMerchantDescriptor. - :type: str - """ - if alternate_name is not None and len(alternate_name) > 13: - raise ValueError("Invalid value for `alternate_name`, length must be less than or equal to `13`") - - self._alternate_name = alternate_name - - @property - def contact(self): - """ - Gets the contact of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) - - :return: The contact of this V2paymentsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._contact - - @contact.setter - def contact(self, contact): - """ - Sets the contact of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) - - :param contact: The contact of this V2paymentsMerchantInformationMerchantDescriptor. - :type: str - """ - if contact is not None and len(contact) > 14: - raise ValueError("Invalid value for `contact`, length must be less than or equal to `14`") - - self._contact = contact - - @property - def address1(self): - """ - Gets the address1 of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The address1 of this V2paymentsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param address1: The address1 of this V2paymentsMerchantInformationMerchantDescriptor. - :type: str - """ - if address1 is not None and len(address1) > 60: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") - - self._address1 = address1 - - @property - def locality(self): - """ - Gets the locality of this V2paymentsMerchantInformationMerchantDescriptor. - Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The locality of this V2paymentsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this V2paymentsMerchantInformationMerchantDescriptor. - Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param locality: The locality of this V2paymentsMerchantInformationMerchantDescriptor. - :type: str - """ - if locality is not None and len(locality) > 13: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `13`") - - self._locality = locality - - @property - def country(self): - """ - Gets the country of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The country of this V2paymentsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param country: The country of this V2paymentsMerchantInformationMerchantDescriptor. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - @property - def postal_code(self): - """ - Gets the postal_code of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The postal_code of this V2paymentsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2paymentsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param postal_code: The postal_code of this V2paymentsMerchantInformationMerchantDescriptor. - :type: str - """ - if postal_code is not None and len(postal_code) > 14: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `14`") - - self._postal_code = postal_code - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2paymentsMerchantInformationMerchantDescriptor. - Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The administrative_area of this V2paymentsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2paymentsMerchantInformationMerchantDescriptor. - Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param administrative_area: The administrative_area of this V2paymentsMerchantInformationMerchantDescriptor. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 3: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `3`") - - self._administrative_area = administrative_area - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsMerchantInformationMerchantDescriptor): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information.py b/CyberSource/models/v2payments_order_information.py deleted file mode 100644 index 220fad79..00000000 --- a/CyberSource/models/v2payments_order_information.py +++ /dev/null @@ -1,253 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'amount_details': 'V2paymentsOrderInformationAmountDetails', - 'bill_to': 'V2paymentsOrderInformationBillTo', - 'ship_to': 'V2paymentsOrderInformationShipTo', - 'line_items': 'list[V2paymentsOrderInformationLineItems]', - 'invoice_details': 'V2paymentsOrderInformationInvoiceDetails', - 'shipping_details': 'V2paymentsOrderInformationShippingDetails' - } - - attribute_map = { - 'amount_details': 'amountDetails', - 'bill_to': 'billTo', - 'ship_to': 'shipTo', - 'line_items': 'lineItems', - 'invoice_details': 'invoiceDetails', - 'shipping_details': 'shippingDetails' - } - - def __init__(self, amount_details=None, bill_to=None, ship_to=None, line_items=None, invoice_details=None, shipping_details=None): - """ - V2paymentsOrderInformation - a model defined in Swagger - """ - - self._amount_details = None - self._bill_to = None - self._ship_to = None - self._line_items = None - self._invoice_details = None - self._shipping_details = None - - if amount_details is not None: - self.amount_details = amount_details - if bill_to is not None: - self.bill_to = bill_to - if ship_to is not None: - self.ship_to = ship_to - if line_items is not None: - self.line_items = line_items - if invoice_details is not None: - self.invoice_details = invoice_details - if shipping_details is not None: - self.shipping_details = shipping_details - - @property - def amount_details(self): - """ - Gets the amount_details of this V2paymentsOrderInformation. - - :return: The amount_details of this V2paymentsOrderInformation. - :rtype: V2paymentsOrderInformationAmountDetails - """ - return self._amount_details - - @amount_details.setter - def amount_details(self, amount_details): - """ - Sets the amount_details of this V2paymentsOrderInformation. - - :param amount_details: The amount_details of this V2paymentsOrderInformation. - :type: V2paymentsOrderInformationAmountDetails - """ - - self._amount_details = amount_details - - @property - def bill_to(self): - """ - Gets the bill_to of this V2paymentsOrderInformation. - - :return: The bill_to of this V2paymentsOrderInformation. - :rtype: V2paymentsOrderInformationBillTo - """ - return self._bill_to - - @bill_to.setter - def bill_to(self, bill_to): - """ - Sets the bill_to of this V2paymentsOrderInformation. - - :param bill_to: The bill_to of this V2paymentsOrderInformation. - :type: V2paymentsOrderInformationBillTo - """ - - self._bill_to = bill_to - - @property - def ship_to(self): - """ - Gets the ship_to of this V2paymentsOrderInformation. - - :return: The ship_to of this V2paymentsOrderInformation. - :rtype: V2paymentsOrderInformationShipTo - """ - return self._ship_to - - @ship_to.setter - def ship_to(self, ship_to): - """ - Sets the ship_to of this V2paymentsOrderInformation. - - :param ship_to: The ship_to of this V2paymentsOrderInformation. - :type: V2paymentsOrderInformationShipTo - """ - - self._ship_to = ship_to - - @property - def line_items(self): - """ - Gets the line_items of this V2paymentsOrderInformation. - - :return: The line_items of this V2paymentsOrderInformation. - :rtype: list[V2paymentsOrderInformationLineItems] - """ - return self._line_items - - @line_items.setter - def line_items(self, line_items): - """ - Sets the line_items of this V2paymentsOrderInformation. - - :param line_items: The line_items of this V2paymentsOrderInformation. - :type: list[V2paymentsOrderInformationLineItems] - """ - - self._line_items = line_items - - @property - def invoice_details(self): - """ - Gets the invoice_details of this V2paymentsOrderInformation. - - :return: The invoice_details of this V2paymentsOrderInformation. - :rtype: V2paymentsOrderInformationInvoiceDetails - """ - return self._invoice_details - - @invoice_details.setter - def invoice_details(self, invoice_details): - """ - Sets the invoice_details of this V2paymentsOrderInformation. - - :param invoice_details: The invoice_details of this V2paymentsOrderInformation. - :type: V2paymentsOrderInformationInvoiceDetails - """ - - self._invoice_details = invoice_details - - @property - def shipping_details(self): - """ - Gets the shipping_details of this V2paymentsOrderInformation. - - :return: The shipping_details of this V2paymentsOrderInformation. - :rtype: V2paymentsOrderInformationShippingDetails - """ - return self._shipping_details - - @shipping_details.setter - def shipping_details(self, shipping_details): - """ - Sets the shipping_details of this V2paymentsOrderInformation. - - :param shipping_details: The shipping_details of this V2paymentsOrderInformation. - :type: V2paymentsOrderInformationShippingDetails - """ - - self._shipping_details = shipping_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information_amount_details.py b/CyberSource/models/v2payments_order_information_amount_details.py deleted file mode 100644 index 571a2fdd..00000000 --- a/CyberSource/models/v2payments_order_information_amount_details.py +++ /dev/null @@ -1,655 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformationAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'total_amount': 'str', - 'currency': 'str', - 'discount_amount': 'str', - 'duty_amount': 'str', - 'tax_amount': 'str', - 'national_tax_included': 'str', - 'tax_applied_after_discount': 'str', - 'tax_applied_level': 'str', - 'tax_type_code': 'str', - 'freight_amount': 'str', - 'foreign_amount': 'str', - 'foreign_currency': 'str', - 'exchange_rate': 'str', - 'exchange_rate_time_stamp': 'str', - 'surcharge': 'V2paymentsOrderInformationAmountDetailsSurcharge', - 'settlement_amount': 'str', - 'settlement_currency': 'str', - 'amex_additional_amounts': 'list[V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts]', - 'tax_details': 'list[V2paymentsOrderInformationAmountDetailsTaxDetails]' - } - - attribute_map = { - 'total_amount': 'totalAmount', - 'currency': 'currency', - 'discount_amount': 'discountAmount', - 'duty_amount': 'dutyAmount', - 'tax_amount': 'taxAmount', - 'national_tax_included': 'nationalTaxIncluded', - 'tax_applied_after_discount': 'taxAppliedAfterDiscount', - 'tax_applied_level': 'taxAppliedLevel', - 'tax_type_code': 'taxTypeCode', - 'freight_amount': 'freightAmount', - 'foreign_amount': 'foreignAmount', - 'foreign_currency': 'foreignCurrency', - 'exchange_rate': 'exchangeRate', - 'exchange_rate_time_stamp': 'exchangeRateTimeStamp', - 'surcharge': 'surcharge', - 'settlement_amount': 'settlementAmount', - 'settlement_currency': 'settlementCurrency', - 'amex_additional_amounts': 'amexAdditionalAmounts', - 'tax_details': 'taxDetails' - } - - def __init__(self, total_amount=None, currency=None, discount_amount=None, duty_amount=None, tax_amount=None, national_tax_included=None, tax_applied_after_discount=None, tax_applied_level=None, tax_type_code=None, freight_amount=None, foreign_amount=None, foreign_currency=None, exchange_rate=None, exchange_rate_time_stamp=None, surcharge=None, settlement_amount=None, settlement_currency=None, amex_additional_amounts=None, tax_details=None): - """ - V2paymentsOrderInformationAmountDetails - a model defined in Swagger - """ - - self._total_amount = None - self._currency = None - self._discount_amount = None - self._duty_amount = None - self._tax_amount = None - self._national_tax_included = None - self._tax_applied_after_discount = None - self._tax_applied_level = None - self._tax_type_code = None - self._freight_amount = None - self._foreign_amount = None - self._foreign_currency = None - self._exchange_rate = None - self._exchange_rate_time_stamp = None - self._surcharge = None - self._settlement_amount = None - self._settlement_currency = None - self._amex_additional_amounts = None - self._tax_details = None - - if total_amount is not None: - self.total_amount = total_amount - if currency is not None: - self.currency = currency - if discount_amount is not None: - self.discount_amount = discount_amount - if duty_amount is not None: - self.duty_amount = duty_amount - if tax_amount is not None: - self.tax_amount = tax_amount - if national_tax_included is not None: - self.national_tax_included = national_tax_included - if tax_applied_after_discount is not None: - self.tax_applied_after_discount = tax_applied_after_discount - if tax_applied_level is not None: - self.tax_applied_level = tax_applied_level - if tax_type_code is not None: - self.tax_type_code = tax_type_code - if freight_amount is not None: - self.freight_amount = freight_amount - if foreign_amount is not None: - self.foreign_amount = foreign_amount - if foreign_currency is not None: - self.foreign_currency = foreign_currency - if exchange_rate is not None: - self.exchange_rate = exchange_rate - if exchange_rate_time_stamp is not None: - self.exchange_rate_time_stamp = exchange_rate_time_stamp - if surcharge is not None: - self.surcharge = surcharge - if settlement_amount is not None: - self.settlement_amount = settlement_amount - if settlement_currency is not None: - self.settlement_currency = settlement_currency - if amex_additional_amounts is not None: - self.amex_additional_amounts = amex_additional_amounts - if tax_details is not None: - self.tax_details = tax_details - - @property - def total_amount(self): - """ - Gets the total_amount of this V2paymentsOrderInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The total_amount of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this V2paymentsOrderInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param total_amount: The total_amount of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if total_amount is not None and len(total_amount) > 19: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") - - self._total_amount = total_amount - - @property - def currency(self): - """ - Gets the currency of this V2paymentsOrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this V2paymentsOrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - @property - def discount_amount(self): - """ - Gets the discount_amount of this V2paymentsOrderInformationAmountDetails. - Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The discount_amount of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._discount_amount - - @discount_amount.setter - def discount_amount(self, discount_amount): - """ - Sets the discount_amount of this V2paymentsOrderInformationAmountDetails. - Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param discount_amount: The discount_amount of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if discount_amount is not None and len(discount_amount) > 15: - raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `15`") - - self._discount_amount = discount_amount - - @property - def duty_amount(self): - """ - Gets the duty_amount of this V2paymentsOrderInformationAmountDetails. - Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The duty_amount of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._duty_amount - - @duty_amount.setter - def duty_amount(self, duty_amount): - """ - Sets the duty_amount of this V2paymentsOrderInformationAmountDetails. - Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param duty_amount: The duty_amount of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if duty_amount is not None and len(duty_amount) > 15: - raise ValueError("Invalid value for `duty_amount`, length must be less than or equal to `15`") - - self._duty_amount = duty_amount - - @property - def tax_amount(self): - """ - Gets the tax_amount of this V2paymentsOrderInformationAmountDetails. - Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The tax_amount of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._tax_amount - - @tax_amount.setter - def tax_amount(self, tax_amount): - """ - Sets the tax_amount of this V2paymentsOrderInformationAmountDetails. - Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param tax_amount: The tax_amount of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if tax_amount is not None and len(tax_amount) > 12: - raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `12`") - - self._tax_amount = tax_amount - - @property - def national_tax_included(self): - """ - Gets the national_tax_included of this V2paymentsOrderInformationAmountDetails. - Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The national_tax_included of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._national_tax_included - - @national_tax_included.setter - def national_tax_included(self, national_tax_included): - """ - Sets the national_tax_included of this V2paymentsOrderInformationAmountDetails. - Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param national_tax_included: The national_tax_included of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if national_tax_included is not None and len(national_tax_included) > 1: - raise ValueError("Invalid value for `national_tax_included`, length must be less than or equal to `1`") - - self._national_tax_included = national_tax_included - - @property - def tax_applied_after_discount(self): - """ - Gets the tax_applied_after_discount of this V2paymentsOrderInformationAmountDetails. - Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The tax_applied_after_discount of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._tax_applied_after_discount - - @tax_applied_after_discount.setter - def tax_applied_after_discount(self, tax_applied_after_discount): - """ - Sets the tax_applied_after_discount of this V2paymentsOrderInformationAmountDetails. - Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param tax_applied_after_discount: The tax_applied_after_discount of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if tax_applied_after_discount is not None and len(tax_applied_after_discount) > 1: - raise ValueError("Invalid value for `tax_applied_after_discount`, length must be less than or equal to `1`") - - self._tax_applied_after_discount = tax_applied_after_discount - - @property - def tax_applied_level(self): - """ - Gets the tax_applied_level of this V2paymentsOrderInformationAmountDetails. - Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The tax_applied_level of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._tax_applied_level - - @tax_applied_level.setter - def tax_applied_level(self, tax_applied_level): - """ - Sets the tax_applied_level of this V2paymentsOrderInformationAmountDetails. - Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param tax_applied_level: The tax_applied_level of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if tax_applied_level is not None and len(tax_applied_level) > 1: - raise ValueError("Invalid value for `tax_applied_level`, length must be less than or equal to `1`") - - self._tax_applied_level = tax_applied_level - - @property - def tax_type_code(self): - """ - Gets the tax_type_code of this V2paymentsOrderInformationAmountDetails. - For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The tax_type_code of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._tax_type_code - - @tax_type_code.setter - def tax_type_code(self, tax_type_code): - """ - Sets the tax_type_code of this V2paymentsOrderInformationAmountDetails. - For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param tax_type_code: The tax_type_code of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if tax_type_code is not None and len(tax_type_code) > 3: - raise ValueError("Invalid value for `tax_type_code`, length must be less than or equal to `3`") - - self._tax_type_code = tax_type_code - - @property - def freight_amount(self): - """ - Gets the freight_amount of this V2paymentsOrderInformationAmountDetails. - Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The freight_amount of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._freight_amount - - @freight_amount.setter - def freight_amount(self, freight_amount): - """ - Sets the freight_amount of this V2paymentsOrderInformationAmountDetails. - Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param freight_amount: The freight_amount of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if freight_amount is not None and len(freight_amount) > 13: - raise ValueError("Invalid value for `freight_amount`, length must be less than or equal to `13`") - - self._freight_amount = freight_amount - - @property - def foreign_amount(self): - """ - Gets the foreign_amount of this V2paymentsOrderInformationAmountDetails. - Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The foreign_amount of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._foreign_amount - - @foreign_amount.setter - def foreign_amount(self, foreign_amount): - """ - Sets the foreign_amount of this V2paymentsOrderInformationAmountDetails. - Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param foreign_amount: The foreign_amount of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if foreign_amount is not None and len(foreign_amount) > 15: - raise ValueError("Invalid value for `foreign_amount`, length must be less than or equal to `15`") - - self._foreign_amount = foreign_amount - - @property - def foreign_currency(self): - """ - Gets the foreign_currency of this V2paymentsOrderInformationAmountDetails. - Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The foreign_currency of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._foreign_currency - - @foreign_currency.setter - def foreign_currency(self, foreign_currency): - """ - Sets the foreign_currency of this V2paymentsOrderInformationAmountDetails. - Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param foreign_currency: The foreign_currency of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if foreign_currency is not None and len(foreign_currency) > 5: - raise ValueError("Invalid value for `foreign_currency`, length must be less than or equal to `5`") - - self._foreign_currency = foreign_currency - - @property - def exchange_rate(self): - """ - Gets the exchange_rate of this V2paymentsOrderInformationAmountDetails. - Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The exchange_rate of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._exchange_rate - - @exchange_rate.setter - def exchange_rate(self, exchange_rate): - """ - Sets the exchange_rate of this V2paymentsOrderInformationAmountDetails. - Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param exchange_rate: The exchange_rate of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if exchange_rate is not None and len(exchange_rate) > 13: - raise ValueError("Invalid value for `exchange_rate`, length must be less than or equal to `13`") - - self._exchange_rate = exchange_rate - - @property - def exchange_rate_time_stamp(self): - """ - Gets the exchange_rate_time_stamp of this V2paymentsOrderInformationAmountDetails. - Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The exchange_rate_time_stamp of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._exchange_rate_time_stamp - - @exchange_rate_time_stamp.setter - def exchange_rate_time_stamp(self, exchange_rate_time_stamp): - """ - Sets the exchange_rate_time_stamp of this V2paymentsOrderInformationAmountDetails. - Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param exchange_rate_time_stamp: The exchange_rate_time_stamp of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if exchange_rate_time_stamp is not None and len(exchange_rate_time_stamp) > 14: - raise ValueError("Invalid value for `exchange_rate_time_stamp`, length must be less than or equal to `14`") - - self._exchange_rate_time_stamp = exchange_rate_time_stamp - - @property - def surcharge(self): - """ - Gets the surcharge of this V2paymentsOrderInformationAmountDetails. - - :return: The surcharge of this V2paymentsOrderInformationAmountDetails. - :rtype: V2paymentsOrderInformationAmountDetailsSurcharge - """ - return self._surcharge - - @surcharge.setter - def surcharge(self, surcharge): - """ - Sets the surcharge of this V2paymentsOrderInformationAmountDetails. - - :param surcharge: The surcharge of this V2paymentsOrderInformationAmountDetails. - :type: V2paymentsOrderInformationAmountDetailsSurcharge - """ - - self._surcharge = surcharge - - @property - def settlement_amount(self): - """ - Gets the settlement_amount of this V2paymentsOrderInformationAmountDetails. - This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. - - :return: The settlement_amount of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._settlement_amount - - @settlement_amount.setter - def settlement_amount(self, settlement_amount): - """ - Sets the settlement_amount of this V2paymentsOrderInformationAmountDetails. - This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. - - :param settlement_amount: The settlement_amount of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if settlement_amount is not None and len(settlement_amount) > 12: - raise ValueError("Invalid value for `settlement_amount`, length must be less than or equal to `12`") - - self._settlement_amount = settlement_amount - - @property - def settlement_currency(self): - """ - Gets the settlement_currency of this V2paymentsOrderInformationAmountDetails. - This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. - - :return: The settlement_currency of this V2paymentsOrderInformationAmountDetails. - :rtype: str - """ - return self._settlement_currency - - @settlement_currency.setter - def settlement_currency(self, settlement_currency): - """ - Sets the settlement_currency of this V2paymentsOrderInformationAmountDetails. - This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. - - :param settlement_currency: The settlement_currency of this V2paymentsOrderInformationAmountDetails. - :type: str - """ - if settlement_currency is not None and len(settlement_currency) > 3: - raise ValueError("Invalid value for `settlement_currency`, length must be less than or equal to `3`") - - self._settlement_currency = settlement_currency - - @property - def amex_additional_amounts(self): - """ - Gets the amex_additional_amounts of this V2paymentsOrderInformationAmountDetails. - - :return: The amex_additional_amounts of this V2paymentsOrderInformationAmountDetails. - :rtype: list[V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts] - """ - return self._amex_additional_amounts - - @amex_additional_amounts.setter - def amex_additional_amounts(self, amex_additional_amounts): - """ - Sets the amex_additional_amounts of this V2paymentsOrderInformationAmountDetails. - - :param amex_additional_amounts: The amex_additional_amounts of this V2paymentsOrderInformationAmountDetails. - :type: list[V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts] - """ - - self._amex_additional_amounts = amex_additional_amounts - - @property - def tax_details(self): - """ - Gets the tax_details of this V2paymentsOrderInformationAmountDetails. - - :return: The tax_details of this V2paymentsOrderInformationAmountDetails. - :rtype: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - return self._tax_details - - @tax_details.setter - def tax_details(self, tax_details): - """ - Sets the tax_details of this V2paymentsOrderInformationAmountDetails. - - :param tax_details: The tax_details of this V2paymentsOrderInformationAmountDetails. - :type: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - - self._tax_details = tax_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformationAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information_amount_details_amex_additional_amounts.py b/CyberSource/models/v2payments_order_information_amount_details_amex_additional_amounts.py deleted file mode 100644 index 16c1a53a..00000000 --- a/CyberSource/models/v2payments_order_information_amount_details_amex_additional_amounts.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'code': 'str', - 'amount': 'str' - } - - attribute_map = { - 'code': 'code', - 'amount': 'amount' - } - - def __init__(self, code=None, amount=None): - """ - V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts - a model defined in Swagger - """ - - self._code = None - self._amount = None - - if code is not None: - self.code = code - if amount is not None: - self.amount = amount - - @property - def code(self): - """ - Gets the code of this V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. - Additional amount type. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The code of this V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. - Additional amount type. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param code: The code of this V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. - :type: str - """ - if code is not None and len(code) > 3: - raise ValueError("Invalid value for `code`, length must be less than or equal to `3`") - - self._code = code - - @property - def amount(self): - """ - Gets the amount of this V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. - Additional amount. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The amount of this V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. - :rtype: str - """ - return self._amount - - @amount.setter - def amount(self, amount): - """ - Sets the amount of this V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. - Additional amount. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param amount: The amount of this V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts. - :type: str - """ - if amount is not None and len(amount) > 12: - raise ValueError("Invalid value for `amount`, length must be less than or equal to `12`") - - self._amount = amount - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information_amount_details_surcharge.py b/CyberSource/models/v2payments_order_information_amount_details_surcharge.py deleted file mode 100644 index 42c167c4..00000000 --- a/CyberSource/models/v2payments_order_information_amount_details_surcharge.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformationAmountDetailsSurcharge(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'amount': 'str', - 'description': 'str' - } - - attribute_map = { - 'amount': 'amount', - 'description': 'description' - } - - def __init__(self, amount=None, description=None): - """ - V2paymentsOrderInformationAmountDetailsSurcharge - a model defined in Swagger - """ - - self._amount = None - self._description = None - - if amount is not None: - self.amount = amount - if description is not None: - self.description = description - - @property - def amount(self): - """ - Gets the amount of this V2paymentsOrderInformationAmountDetailsSurcharge. - The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The amount of this V2paymentsOrderInformationAmountDetailsSurcharge. - :rtype: str - """ - return self._amount - - @amount.setter - def amount(self, amount): - """ - Sets the amount of this V2paymentsOrderInformationAmountDetailsSurcharge. - The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param amount: The amount of this V2paymentsOrderInformationAmountDetailsSurcharge. - :type: str - """ - if amount is not None and len(amount) > 15: - raise ValueError("Invalid value for `amount`, length must be less than or equal to `15`") - - self._amount = amount - - @property - def description(self): - """ - Gets the description of this V2paymentsOrderInformationAmountDetailsSurcharge. - TBD - - :return: The description of this V2paymentsOrderInformationAmountDetailsSurcharge. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """ - Sets the description of this V2paymentsOrderInformationAmountDetailsSurcharge. - TBD - - :param description: The description of this V2paymentsOrderInformationAmountDetailsSurcharge. - :type: str - """ - - self._description = description - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformationAmountDetailsSurcharge): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information_amount_details_tax_details.py b/CyberSource/models/v2payments_order_information_amount_details_tax_details.py deleted file mode 100644 index bee52e3d..00000000 --- a/CyberSource/models/v2payments_order_information_amount_details_tax_details.py +++ /dev/null @@ -1,279 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformationAmountDetailsTaxDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'str', - 'amount': 'str', - 'rate': 'str', - 'code': 'str', - 'tax_id': 'str', - 'applied': 'bool' - } - - attribute_map = { - 'type': 'type', - 'amount': 'amount', - 'rate': 'rate', - 'code': 'code', - 'tax_id': 'taxId', - 'applied': 'applied' - } - - def __init__(self, type=None, amount=None, rate=None, code=None, tax_id=None, applied=None): - """ - V2paymentsOrderInformationAmountDetailsTaxDetails - a model defined in Swagger - """ - - self._type = None - self._amount = None - self._rate = None - self._code = None - self._tax_id = None - self._applied = None - - if type is not None: - self.type = type - if amount is not None: - self.amount = amount - if rate is not None: - self.rate = rate - if code is not None: - self.code = code - if tax_id is not None: - self.tax_id = tax_id - if applied is not None: - self.applied = applied - - @property - def type(self): - """ - Gets the type of this V2paymentsOrderInformationAmountDetailsTaxDetails. - This is used to determine what type of tax related data should be inclued under _taxDetails_ object. - - :return: The type of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V2paymentsOrderInformationAmountDetailsTaxDetails. - This is used to determine what type of tax related data should be inclued under _taxDetails_ object. - - :param type: The type of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :type: str - """ - allowed_values = ["alternate", "local", "national", "vat"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" - .format(type, allowed_values) - ) - - self._type = type - - @property - def amount(self): - """ - Gets the amount of this V2paymentsOrderInformationAmountDetailsTaxDetails. - Please see below table for related decription based on above _type_ field. | type | amount description | |-----------|--------------------| | alternate | Total amount of alternate tax for the order. | | local | Sales tax for the order. | | national | National tax for the order. | | vat | Total amount of VAT or other tax included in the order. | - - :return: The amount of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :rtype: str - """ - return self._amount - - @amount.setter - def amount(self, amount): - """ - Sets the amount of this V2paymentsOrderInformationAmountDetailsTaxDetails. - Please see below table for related decription based on above _type_ field. | type | amount description | |-----------|--------------------| | alternate | Total amount of alternate tax for the order. | | local | Sales tax for the order. | | national | National tax for the order. | | vat | Total amount of VAT or other tax included in the order. | - - :param amount: The amount of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :type: str - """ - if amount is not None and len(amount) > 13: - raise ValueError("Invalid value for `amount`, length must be less than or equal to `13`") - - self._amount = amount - - @property - def rate(self): - """ - Gets the rate of this V2paymentsOrderInformationAmountDetailsTaxDetails. - Rate of VAT or other tax for the order. Example 0.040 (=4%) Valid range: 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated) - - :return: The rate of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :rtype: str - """ - return self._rate - - @rate.setter - def rate(self, rate): - """ - Sets the rate of this V2paymentsOrderInformationAmountDetailsTaxDetails. - Rate of VAT or other tax for the order. Example 0.040 (=4%) Valid range: 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated) - - :param rate: The rate of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :type: str - """ - if rate is not None and len(rate) > 6: - raise ValueError("Invalid value for `rate`, length must be less than or equal to `6`") - - self._rate = rate - - @property - def code(self): - """ - Gets the code of this V2paymentsOrderInformationAmountDetailsTaxDetails. - Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. - - :return: The code of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this V2paymentsOrderInformationAmountDetailsTaxDetails. - Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. - - :param code: The code of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :type: str - """ - if code is not None and len(code) > 4: - raise ValueError("Invalid value for `code`, length must be less than or equal to `4`") - - self._code = code - - @property - def tax_id(self): - """ - Gets the tax_id of this V2paymentsOrderInformationAmountDetailsTaxDetails. - Your tax ID number to use for the alternate tax amount. Required if you set alternate tax amount to any value, including zero. You may send this field without sending alternate tax amount. - - :return: The tax_id of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :rtype: str - """ - return self._tax_id - - @tax_id.setter - def tax_id(self, tax_id): - """ - Sets the tax_id of this V2paymentsOrderInformationAmountDetailsTaxDetails. - Your tax ID number to use for the alternate tax amount. Required if you set alternate tax amount to any value, including zero. You may send this field without sending alternate tax amount. - - :param tax_id: The tax_id of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :type: str - """ - if tax_id is not None and len(tax_id) > 15: - raise ValueError("Invalid value for `tax_id`, length must be less than or equal to `15`") - - self._tax_id = tax_id - - @property - def applied(self): - """ - Gets the applied of this V2paymentsOrderInformationAmountDetailsTaxDetails. - The tax is applied. Valid value is `true` or `false`. - - :return: The applied of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :rtype: bool - """ - return self._applied - - @applied.setter - def applied(self, applied): - """ - Sets the applied of this V2paymentsOrderInformationAmountDetailsTaxDetails. - The tax is applied. Valid value is `true` or `false`. - - :param applied: The applied of this V2paymentsOrderInformationAmountDetailsTaxDetails. - :type: bool - """ - - self._applied = applied - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformationAmountDetailsTaxDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information_bill_to.py b/CyberSource/models/v2payments_order_information_bill_to.py deleted file mode 100644 index 83db9cd4..00000000 --- a/CyberSource/models/v2payments_order_information_bill_to.py +++ /dev/null @@ -1,611 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformationBillTo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'first_name': 'str', - 'last_name': 'str', - 'middle_name': 'str', - 'name_suffix': 'str', - 'title': 'str', - 'company': 'str', - 'address1': 'str', - 'address2': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'postal_code': 'str', - 'country': 'str', - 'district': 'str', - 'building_number': 'str', - 'email': 'str', - 'phone_number': 'str', - 'phone_type': 'str' - } - - attribute_map = { - 'first_name': 'firstName', - 'last_name': 'lastName', - 'middle_name': 'middleName', - 'name_suffix': 'nameSuffix', - 'title': 'title', - 'company': 'company', - 'address1': 'address1', - 'address2': 'address2', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'postal_code': 'postalCode', - 'country': 'country', - 'district': 'district', - 'building_number': 'buildingNumber', - 'email': 'email', - 'phone_number': 'phoneNumber', - 'phone_type': 'phoneType' - } - - def __init__(self, first_name=None, last_name=None, middle_name=None, name_suffix=None, title=None, company=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, country=None, district=None, building_number=None, email=None, phone_number=None, phone_type=None): - """ - V2paymentsOrderInformationBillTo - a model defined in Swagger - """ - - self._first_name = None - self._last_name = None - self._middle_name = None - self._name_suffix = None - self._title = None - self._company = None - self._address1 = None - self._address2 = None - self._locality = None - self._administrative_area = None - self._postal_code = None - self._country = None - self._district = None - self._building_number = None - self._email = None - self._phone_number = None - self._phone_type = None - - if first_name is not None: - self.first_name = first_name - if last_name is not None: - self.last_name = last_name - if middle_name is not None: - self.middle_name = middle_name - if name_suffix is not None: - self.name_suffix = name_suffix - if title is not None: - self.title = title - if company is not None: - self.company = company - if address1 is not None: - self.address1 = address1 - if address2 is not None: - self.address2 = address2 - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if postal_code is not None: - self.postal_code = postal_code - if country is not None: - self.country = country - if district is not None: - self.district = district - if building_number is not None: - self.building_number = building_number - if email is not None: - self.email = email - if phone_number is not None: - self.phone_number = phone_number - if phone_type is not None: - self.phone_type = phone_type - - @property - def first_name(self): - """ - Gets the first_name of this V2paymentsOrderInformationBillTo. - Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The first_name of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """ - Sets the first_name of this V2paymentsOrderInformationBillTo. - Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param first_name: The first_name of this V2paymentsOrderInformationBillTo. - :type: str - """ - if first_name is not None and len(first_name) > 60: - raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") - - self._first_name = first_name - - @property - def last_name(self): - """ - Gets the last_name of this V2paymentsOrderInformationBillTo. - Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The last_name of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this V2paymentsOrderInformationBillTo. - Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param last_name: The last_name of this V2paymentsOrderInformationBillTo. - :type: str - """ - if last_name is not None and len(last_name) > 60: - raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") - - self._last_name = last_name - - @property - def middle_name(self): - """ - Gets the middle_name of this V2paymentsOrderInformationBillTo. - Customer’s middle name. - - :return: The middle_name of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._middle_name - - @middle_name.setter - def middle_name(self, middle_name): - """ - Sets the middle_name of this V2paymentsOrderInformationBillTo. - Customer’s middle name. - - :param middle_name: The middle_name of this V2paymentsOrderInformationBillTo. - :type: str - """ - if middle_name is not None and len(middle_name) > 60: - raise ValueError("Invalid value for `middle_name`, length must be less than or equal to `60`") - - self._middle_name = middle_name - - @property - def name_suffix(self): - """ - Gets the name_suffix of this V2paymentsOrderInformationBillTo. - Customer’s name suffix. - - :return: The name_suffix of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._name_suffix - - @name_suffix.setter - def name_suffix(self, name_suffix): - """ - Sets the name_suffix of this V2paymentsOrderInformationBillTo. - Customer’s name suffix. - - :param name_suffix: The name_suffix of this V2paymentsOrderInformationBillTo. - :type: str - """ - if name_suffix is not None and len(name_suffix) > 60: - raise ValueError("Invalid value for `name_suffix`, length must be less than or equal to `60`") - - self._name_suffix = name_suffix - - @property - def title(self): - """ - Gets the title of this V2paymentsOrderInformationBillTo. - Title. - - :return: The title of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """ - Sets the title of this V2paymentsOrderInformationBillTo. - Title. - - :param title: The title of this V2paymentsOrderInformationBillTo. - :type: str - """ - if title is not None and len(title) > 60: - raise ValueError("Invalid value for `title`, length must be less than or equal to `60`") - - self._title = title - - @property - def company(self): - """ - Gets the company of this V2paymentsOrderInformationBillTo. - Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The company of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._company - - @company.setter - def company(self, company): - """ - Sets the company of this V2paymentsOrderInformationBillTo. - Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param company: The company of this V2paymentsOrderInformationBillTo. - :type: str - """ - if company is not None and len(company) > 60: - raise ValueError("Invalid value for `company`, length must be less than or equal to `60`") - - self._company = company - - @property - def address1(self): - """ - Gets the address1 of this V2paymentsOrderInformationBillTo. - First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The address1 of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this V2paymentsOrderInformationBillTo. - First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param address1: The address1 of this V2paymentsOrderInformationBillTo. - :type: str - """ - if address1 is not None and len(address1) > 60: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") - - self._address1 = address1 - - @property - def address2(self): - """ - Gets the address2 of this V2paymentsOrderInformationBillTo. - Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The address2 of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._address2 - - @address2.setter - def address2(self, address2): - """ - Sets the address2 of this V2paymentsOrderInformationBillTo. - Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param address2: The address2 of this V2paymentsOrderInformationBillTo. - :type: str - """ - if address2 is not None and len(address2) > 60: - raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") - - self._address2 = address2 - - @property - def locality(self): - """ - Gets the locality of this V2paymentsOrderInformationBillTo. - City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The locality of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this V2paymentsOrderInformationBillTo. - City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param locality: The locality of this V2paymentsOrderInformationBillTo. - :type: str - """ - if locality is not None and len(locality) > 50: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2paymentsOrderInformationBillTo. - State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The administrative_area of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2paymentsOrderInformationBillTo. - State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param administrative_area: The administrative_area of this V2paymentsOrderInformationBillTo. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 2: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") - - self._administrative_area = administrative_area - - @property - def postal_code(self): - """ - Gets the postal_code of this V2paymentsOrderInformationBillTo. - Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The postal_code of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2paymentsOrderInformationBillTo. - Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param postal_code: The postal_code of this V2paymentsOrderInformationBillTo. - :type: str - """ - if postal_code is not None and len(postal_code) > 10: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") - - self._postal_code = postal_code - - @property - def country(self): - """ - Gets the country of this V2paymentsOrderInformationBillTo. - Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The country of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this V2paymentsOrderInformationBillTo. - Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param country: The country of this V2paymentsOrderInformationBillTo. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - @property - def district(self): - """ - Gets the district of this V2paymentsOrderInformationBillTo. - Customer’s neighborhood, community, or region (a barrio in Brazil) within the city or municipality. This field is available only on **Cielo**. - - :return: The district of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._district - - @district.setter - def district(self, district): - """ - Sets the district of this V2paymentsOrderInformationBillTo. - Customer’s neighborhood, community, or region (a barrio in Brazil) within the city or municipality. This field is available only on **Cielo**. - - :param district: The district of this V2paymentsOrderInformationBillTo. - :type: str - """ - if district is not None and len(district) > 50: - raise ValueError("Invalid value for `district`, length must be less than or equal to `50`") - - self._district = district - - @property - def building_number(self): - """ - Gets the building_number of this V2paymentsOrderInformationBillTo. - Building number in the street address. This field is supported only for: - Cielo transactions. - Redecard customer validation with CyberSource Latin American Processing. - - :return: The building_number of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._building_number - - @building_number.setter - def building_number(self, building_number): - """ - Sets the building_number of this V2paymentsOrderInformationBillTo. - Building number in the street address. This field is supported only for: - Cielo transactions. - Redecard customer validation with CyberSource Latin American Processing. - - :param building_number: The building_number of this V2paymentsOrderInformationBillTo. - :type: str - """ - if building_number is not None and len(building_number) > 256: - raise ValueError("Invalid value for `building_number`, length must be less than or equal to `256`") - - self._building_number = building_number - - @property - def email(self): - """ - Gets the email of this V2paymentsOrderInformationBillTo. - Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The email of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """ - Sets the email of this V2paymentsOrderInformationBillTo. - Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param email: The email of this V2paymentsOrderInformationBillTo. - :type: str - """ - if email is not None and len(email) > 255: - raise ValueError("Invalid value for `email`, length must be less than or equal to `255`") - - self._email = email - - @property - def phone_number(self): - """ - Gets the phone_number of this V2paymentsOrderInformationBillTo. - Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The phone_number of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this V2paymentsOrderInformationBillTo. - Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param phone_number: The phone_number of this V2paymentsOrderInformationBillTo. - :type: str - """ - if phone_number is not None and len(phone_number) > 15: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") - - self._phone_number = phone_number - - @property - def phone_type(self): - """ - Gets the phone_type of this V2paymentsOrderInformationBillTo. - Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work - - :return: The phone_type of this V2paymentsOrderInformationBillTo. - :rtype: str - """ - return self._phone_type - - @phone_type.setter - def phone_type(self, phone_type): - """ - Sets the phone_type of this V2paymentsOrderInformationBillTo. - Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work - - :param phone_type: The phone_type of this V2paymentsOrderInformationBillTo. - :type: str - """ - allowed_values = ["day", "home", "night", "work"] - if phone_type not in allowed_values: - raise ValueError( - "Invalid value for `phone_type` ({0}), must be one of {1}" - .format(phone_type, allowed_values) - ) - - self._phone_type = phone_type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformationBillTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information_invoice_details.py b/CyberSource/models/v2payments_order_information_invoice_details.py deleted file mode 100644 index 46d06c8e..00000000 --- a/CyberSource/models/v2payments_order_information_invoice_details.py +++ /dev/null @@ -1,329 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformationInvoiceDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'purchase_order_number': 'str', - 'purchase_order_date': 'str', - 'purchase_contact_name': 'str', - 'taxable': 'bool', - 'vat_invoice_reference_number': 'str', - 'commodity_code': 'str', - 'merchandise_code': 'float', - 'transaction_advice_addendum': 'list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]' - } - - attribute_map = { - 'purchase_order_number': 'purchaseOrderNumber', - 'purchase_order_date': 'purchaseOrderDate', - 'purchase_contact_name': 'purchaseContactName', - 'taxable': 'taxable', - 'vat_invoice_reference_number': 'vatInvoiceReferenceNumber', - 'commodity_code': 'commodityCode', - 'merchandise_code': 'merchandiseCode', - 'transaction_advice_addendum': 'transactionAdviceAddendum' - } - - def __init__(self, purchase_order_number=None, purchase_order_date=None, purchase_contact_name=None, taxable=None, vat_invoice_reference_number=None, commodity_code=None, merchandise_code=None, transaction_advice_addendum=None): - """ - V2paymentsOrderInformationInvoiceDetails - a model defined in Swagger - """ - - self._purchase_order_number = None - self._purchase_order_date = None - self._purchase_contact_name = None - self._taxable = None - self._vat_invoice_reference_number = None - self._commodity_code = None - self._merchandise_code = None - self._transaction_advice_addendum = None - - if purchase_order_number is not None: - self.purchase_order_number = purchase_order_number - if purchase_order_date is not None: - self.purchase_order_date = purchase_order_date - if purchase_contact_name is not None: - self.purchase_contact_name = purchase_contact_name - if taxable is not None: - self.taxable = taxable - if vat_invoice_reference_number is not None: - self.vat_invoice_reference_number = vat_invoice_reference_number - if commodity_code is not None: - self.commodity_code = commodity_code - if merchandise_code is not None: - self.merchandise_code = merchandise_code - if transaction_advice_addendum is not None: - self.transaction_advice_addendum = transaction_advice_addendum - - @property - def purchase_order_number(self): - """ - Gets the purchase_order_number of this V2paymentsOrderInformationInvoiceDetails. - Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The purchase_order_number of this V2paymentsOrderInformationInvoiceDetails. - :rtype: str - """ - return self._purchase_order_number - - @purchase_order_number.setter - def purchase_order_number(self, purchase_order_number): - """ - Sets the purchase_order_number of this V2paymentsOrderInformationInvoiceDetails. - Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param purchase_order_number: The purchase_order_number of this V2paymentsOrderInformationInvoiceDetails. - :type: str - """ - if purchase_order_number is not None and len(purchase_order_number) > 25: - raise ValueError("Invalid value for `purchase_order_number`, length must be less than or equal to `25`") - - self._purchase_order_number = purchase_order_number - - @property - def purchase_order_date(self): - """ - Gets the purchase_order_date of this V2paymentsOrderInformationInvoiceDetails. - Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The purchase_order_date of this V2paymentsOrderInformationInvoiceDetails. - :rtype: str - """ - return self._purchase_order_date - - @purchase_order_date.setter - def purchase_order_date(self, purchase_order_date): - """ - Sets the purchase_order_date of this V2paymentsOrderInformationInvoiceDetails. - Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param purchase_order_date: The purchase_order_date of this V2paymentsOrderInformationInvoiceDetails. - :type: str - """ - if purchase_order_date is not None and len(purchase_order_date) > 10: - raise ValueError("Invalid value for `purchase_order_date`, length must be less than or equal to `10`") - - self._purchase_order_date = purchase_order_date - - @property - def purchase_contact_name(self): - """ - Gets the purchase_contact_name of this V2paymentsOrderInformationInvoiceDetails. - The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The purchase_contact_name of this V2paymentsOrderInformationInvoiceDetails. - :rtype: str - """ - return self._purchase_contact_name - - @purchase_contact_name.setter - def purchase_contact_name(self, purchase_contact_name): - """ - Sets the purchase_contact_name of this V2paymentsOrderInformationInvoiceDetails. - The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param purchase_contact_name: The purchase_contact_name of this V2paymentsOrderInformationInvoiceDetails. - :type: str - """ - if purchase_contact_name is not None and len(purchase_contact_name) > 36: - raise ValueError("Invalid value for `purchase_contact_name`, length must be less than or equal to `36`") - - self._purchase_contact_name = purchase_contact_name - - @property - def taxable(self): - """ - Gets the taxable of this V2paymentsOrderInformationInvoiceDetails. - Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The taxable of this V2paymentsOrderInformationInvoiceDetails. - :rtype: bool - """ - return self._taxable - - @taxable.setter - def taxable(self, taxable): - """ - Sets the taxable of this V2paymentsOrderInformationInvoiceDetails. - Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param taxable: The taxable of this V2paymentsOrderInformationInvoiceDetails. - :type: bool - """ - - self._taxable = taxable - - @property - def vat_invoice_reference_number(self): - """ - Gets the vat_invoice_reference_number of this V2paymentsOrderInformationInvoiceDetails. - VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_invoice_reference_number of this V2paymentsOrderInformationInvoiceDetails. - :rtype: str - """ - return self._vat_invoice_reference_number - - @vat_invoice_reference_number.setter - def vat_invoice_reference_number(self, vat_invoice_reference_number): - """ - Sets the vat_invoice_reference_number of this V2paymentsOrderInformationInvoiceDetails. - VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_invoice_reference_number: The vat_invoice_reference_number of this V2paymentsOrderInformationInvoiceDetails. - :type: str - """ - if vat_invoice_reference_number is not None and len(vat_invoice_reference_number) > 15: - raise ValueError("Invalid value for `vat_invoice_reference_number`, length must be less than or equal to `15`") - - self._vat_invoice_reference_number = vat_invoice_reference_number - - @property - def commodity_code(self): - """ - Gets the commodity_code of this V2paymentsOrderInformationInvoiceDetails. - International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The commodity_code of this V2paymentsOrderInformationInvoiceDetails. - :rtype: str - """ - return self._commodity_code - - @commodity_code.setter - def commodity_code(self, commodity_code): - """ - Sets the commodity_code of this V2paymentsOrderInformationInvoiceDetails. - International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param commodity_code: The commodity_code of this V2paymentsOrderInformationInvoiceDetails. - :type: str - """ - if commodity_code is not None and len(commodity_code) > 4: - raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `4`") - - self._commodity_code = commodity_code - - @property - def merchandise_code(self): - """ - Gets the merchandise_code of this V2paymentsOrderInformationInvoiceDetails. - Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. - - :return: The merchandise_code of this V2paymentsOrderInformationInvoiceDetails. - :rtype: float - """ - return self._merchandise_code - - @merchandise_code.setter - def merchandise_code(self, merchandise_code): - """ - Sets the merchandise_code of this V2paymentsOrderInformationInvoiceDetails. - Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. - - :param merchandise_code: The merchandise_code of this V2paymentsOrderInformationInvoiceDetails. - :type: float - """ - - self._merchandise_code = merchandise_code - - @property - def transaction_advice_addendum(self): - """ - Gets the transaction_advice_addendum of this V2paymentsOrderInformationInvoiceDetails. - - :return: The transaction_advice_addendum of this V2paymentsOrderInformationInvoiceDetails. - :rtype: list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] - """ - return self._transaction_advice_addendum - - @transaction_advice_addendum.setter - def transaction_advice_addendum(self, transaction_advice_addendum): - """ - Sets the transaction_advice_addendum of this V2paymentsOrderInformationInvoiceDetails. - - :param transaction_advice_addendum: The transaction_advice_addendum of this V2paymentsOrderInformationInvoiceDetails. - :type: list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] - """ - - self._transaction_advice_addendum = transaction_advice_addendum - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformationInvoiceDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information_invoice_details_transaction_advice_addendum.py b/CyberSource/models/v2payments_order_information_invoice_details_transaction_advice_addendum.py deleted file mode 100644 index 63edcfdb..00000000 --- a/CyberSource/models/v2payments_order_information_invoice_details_transaction_advice_addendum.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'data': 'str' - } - - attribute_map = { - 'data': 'data' - } - - def __init__(self, data=None): - """ - V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum - a model defined in Swagger - """ - - self._data = None - - if data is not None: - self.data = data - - @property - def data(self): - """ - Gets the data of this V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum. - Four Transaction Advice Addendum (TAA) fields. These fields are used to display descriptive information about a transaction on the customer’s American Express card statement. When you send TAA fields, start with amexdata_taa1, then ...taa2, and so on. Skipping a TAA field causes subsequent TAA fields to be ignored. To use these fields, contact CyberSource Customer Support to have your account enabled for this feature. - - :return: The data of this V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum. - :rtype: str - """ - return self._data - - @data.setter - def data(self, data): - """ - Sets the data of this V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum. - Four Transaction Advice Addendum (TAA) fields. These fields are used to display descriptive information about a transaction on the customer’s American Express card statement. When you send TAA fields, start with amexdata_taa1, then ...taa2, and so on. Skipping a TAA field causes subsequent TAA fields to be ignored. To use these fields, contact CyberSource Customer Support to have your account enabled for this feature. - - :param data: The data of this V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum. - :type: str - """ - if data is not None and len(data) > 40: - raise ValueError("Invalid value for `data`, length must be less than or equal to `40`") - - self._data = data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information_line_items.py b/CyberSource/models/v2payments_order_information_line_items.py deleted file mode 100644 index 9bfbb6f6..00000000 --- a/CyberSource/models/v2payments_order_information_line_items.py +++ /dev/null @@ -1,719 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformationLineItems(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'product_code': 'str', - 'product_name': 'str', - 'product_sku': 'str', - 'quantity': 'float', - 'unit_price': 'str', - 'unit_of_measure': 'str', - 'total_amount': 'str', - 'tax_amount': 'str', - 'tax_rate': 'str', - 'tax_applied_after_discount': 'str', - 'tax_status_indicator': 'str', - 'tax_type_code': 'str', - 'amount_includes_tax': 'bool', - 'type_of_supply': 'str', - 'commodity_code': 'str', - 'discount_amount': 'str', - 'discount_applied': 'bool', - 'discount_rate': 'str', - 'invoice_number': 'str', - 'tax_details': 'list[V2paymentsOrderInformationAmountDetailsTaxDetails]', - 'fulfillment_type': 'str' - } - - attribute_map = { - 'product_code': 'productCode', - 'product_name': 'productName', - 'product_sku': 'productSku', - 'quantity': 'quantity', - 'unit_price': 'unitPrice', - 'unit_of_measure': 'unitOfMeasure', - 'total_amount': 'totalAmount', - 'tax_amount': 'taxAmount', - 'tax_rate': 'taxRate', - 'tax_applied_after_discount': 'taxAppliedAfterDiscount', - 'tax_status_indicator': 'taxStatusIndicator', - 'tax_type_code': 'taxTypeCode', - 'amount_includes_tax': 'amountIncludesTax', - 'type_of_supply': 'typeOfSupply', - 'commodity_code': 'commodityCode', - 'discount_amount': 'discountAmount', - 'discount_applied': 'discountApplied', - 'discount_rate': 'discountRate', - 'invoice_number': 'invoiceNumber', - 'tax_details': 'taxDetails', - 'fulfillment_type': 'fulfillmentType' - } - - def __init__(self, product_code=None, product_name=None, product_sku=None, quantity=None, unit_price=None, unit_of_measure=None, total_amount=None, tax_amount=None, tax_rate=None, tax_applied_after_discount=None, tax_status_indicator=None, tax_type_code=None, amount_includes_tax=None, type_of_supply=None, commodity_code=None, discount_amount=None, discount_applied=None, discount_rate=None, invoice_number=None, tax_details=None, fulfillment_type=None): - """ - V2paymentsOrderInformationLineItems - a model defined in Swagger - """ - - self._product_code = None - self._product_name = None - self._product_sku = None - self._quantity = None - self._unit_price = None - self._unit_of_measure = None - self._total_amount = None - self._tax_amount = None - self._tax_rate = None - self._tax_applied_after_discount = None - self._tax_status_indicator = None - self._tax_type_code = None - self._amount_includes_tax = None - self._type_of_supply = None - self._commodity_code = None - self._discount_amount = None - self._discount_applied = None - self._discount_rate = None - self._invoice_number = None - self._tax_details = None - self._fulfillment_type = None - - if product_code is not None: - self.product_code = product_code - if product_name is not None: - self.product_name = product_name - if product_sku is not None: - self.product_sku = product_sku - if quantity is not None: - self.quantity = quantity - if unit_price is not None: - self.unit_price = unit_price - if unit_of_measure is not None: - self.unit_of_measure = unit_of_measure - if total_amount is not None: - self.total_amount = total_amount - if tax_amount is not None: - self.tax_amount = tax_amount - if tax_rate is not None: - self.tax_rate = tax_rate - if tax_applied_after_discount is not None: - self.tax_applied_after_discount = tax_applied_after_discount - if tax_status_indicator is not None: - self.tax_status_indicator = tax_status_indicator - if tax_type_code is not None: - self.tax_type_code = tax_type_code - if amount_includes_tax is not None: - self.amount_includes_tax = amount_includes_tax - if type_of_supply is not None: - self.type_of_supply = type_of_supply - if commodity_code is not None: - self.commodity_code = commodity_code - if discount_amount is not None: - self.discount_amount = discount_amount - if discount_applied is not None: - self.discount_applied = discount_applied - if discount_rate is not None: - self.discount_rate = discount_rate - if invoice_number is not None: - self.invoice_number = invoice_number - if tax_details is not None: - self.tax_details = tax_details - if fulfillment_type is not None: - self.fulfillment_type = fulfillment_type - - @property - def product_code(self): - """ - Gets the product_code of this V2paymentsOrderInformationLineItems. - Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. - - :return: The product_code of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._product_code - - @product_code.setter - def product_code(self, product_code): - """ - Sets the product_code of this V2paymentsOrderInformationLineItems. - Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. - - :param product_code: The product_code of this V2paymentsOrderInformationLineItems. - :type: str - """ - if product_code is not None and len(product_code) > 255: - raise ValueError("Invalid value for `product_code`, length must be less than or equal to `255`") - - self._product_code = product_code - - @property - def product_name(self): - """ - Gets the product_name of this V2paymentsOrderInformationLineItems. - For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. - - :return: The product_name of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._product_name - - @product_name.setter - def product_name(self, product_name): - """ - Sets the product_name of this V2paymentsOrderInformationLineItems. - For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. - - :param product_name: The product_name of this V2paymentsOrderInformationLineItems. - :type: str - """ - if product_name is not None and len(product_name) > 255: - raise ValueError("Invalid value for `product_name`, length must be less than or equal to `255`") - - self._product_name = product_name - - @property - def product_sku(self): - """ - Gets the product_sku of this V2paymentsOrderInformationLineItems. - Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. - - :return: The product_sku of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._product_sku - - @product_sku.setter - def product_sku(self, product_sku): - """ - Sets the product_sku of this V2paymentsOrderInformationLineItems. - Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. - - :param product_sku: The product_sku of this V2paymentsOrderInformationLineItems. - :type: str - """ - if product_sku is not None and len(product_sku) > 255: - raise ValueError("Invalid value for `product_sku`, length must be less than or equal to `255`") - - self._product_sku = product_sku - - @property - def quantity(self): - """ - Gets the quantity of this V2paymentsOrderInformationLineItems. - For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. - - :return: The quantity of this V2paymentsOrderInformationLineItems. - :rtype: float - """ - return self._quantity - - @quantity.setter - def quantity(self, quantity): - """ - Sets the quantity of this V2paymentsOrderInformationLineItems. - For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. - - :param quantity: The quantity of this V2paymentsOrderInformationLineItems. - :type: float - """ - if quantity is not None and quantity > 9999999999: - raise ValueError("Invalid value for `quantity`, must be a value less than or equal to `9999999999`") - if quantity is not None and quantity < 1: - raise ValueError("Invalid value for `quantity`, must be a value greater than or equal to `1`") - - self._quantity = quantity - - @property - def unit_price(self): - """ - Gets the unit_price of this V2paymentsOrderInformationLineItems. - Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The unit_price of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._unit_price - - @unit_price.setter - def unit_price(self, unit_price): - """ - Sets the unit_price of this V2paymentsOrderInformationLineItems. - Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param unit_price: The unit_price of this V2paymentsOrderInformationLineItems. - :type: str - """ - if unit_price is not None and len(unit_price) > 15: - raise ValueError("Invalid value for `unit_price`, length must be less than or equal to `15`") - - self._unit_price = unit_price - - @property - def unit_of_measure(self): - """ - Gets the unit_of_measure of this V2paymentsOrderInformationLineItems. - Unit of measure, or unit of measure code, for the item. - - :return: The unit_of_measure of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._unit_of_measure - - @unit_of_measure.setter - def unit_of_measure(self, unit_of_measure): - """ - Sets the unit_of_measure of this V2paymentsOrderInformationLineItems. - Unit of measure, or unit of measure code, for the item. - - :param unit_of_measure: The unit_of_measure of this V2paymentsOrderInformationLineItems. - :type: str - """ - if unit_of_measure is not None and len(unit_of_measure) > 12: - raise ValueError("Invalid value for `unit_of_measure`, length must be less than or equal to `12`") - - self._unit_of_measure = unit_of_measure - - @property - def total_amount(self): - """ - Gets the total_amount of this V2paymentsOrderInformationLineItems. - Total amount for the item. Normally calculated as the unit price x quantity. - - :return: The total_amount of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this V2paymentsOrderInformationLineItems. - Total amount for the item. Normally calculated as the unit price x quantity. - - :param total_amount: The total_amount of this V2paymentsOrderInformationLineItems. - :type: str - """ - if total_amount is not None and len(total_amount) > 13: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `13`") - - self._total_amount = total_amount - - @property - def tax_amount(self): - """ - Gets the tax_amount of this V2paymentsOrderInformationLineItems. - Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. - - :return: The tax_amount of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._tax_amount - - @tax_amount.setter - def tax_amount(self, tax_amount): - """ - Sets the tax_amount of this V2paymentsOrderInformationLineItems. - Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. - - :param tax_amount: The tax_amount of this V2paymentsOrderInformationLineItems. - :type: str - """ - if tax_amount is not None and len(tax_amount) > 15: - raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `15`") - - self._tax_amount = tax_amount - - @property - def tax_rate(self): - """ - Gets the tax_rate of this V2paymentsOrderInformationLineItems. - Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). - - :return: The tax_rate of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._tax_rate - - @tax_rate.setter - def tax_rate(self, tax_rate): - """ - Sets the tax_rate of this V2paymentsOrderInformationLineItems. - Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). - - :param tax_rate: The tax_rate of this V2paymentsOrderInformationLineItems. - :type: str - """ - if tax_rate is not None and len(tax_rate) > 7: - raise ValueError("Invalid value for `tax_rate`, length must be less than or equal to `7`") - - self._tax_rate = tax_rate - - @property - def tax_applied_after_discount(self): - """ - Gets the tax_applied_after_discount of this V2paymentsOrderInformationLineItems. - Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. - - :return: The tax_applied_after_discount of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._tax_applied_after_discount - - @tax_applied_after_discount.setter - def tax_applied_after_discount(self, tax_applied_after_discount): - """ - Sets the tax_applied_after_discount of this V2paymentsOrderInformationLineItems. - Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. - - :param tax_applied_after_discount: The tax_applied_after_discount of this V2paymentsOrderInformationLineItems. - :type: str - """ - if tax_applied_after_discount is not None and len(tax_applied_after_discount) > 1: - raise ValueError("Invalid value for `tax_applied_after_discount`, length must be less than or equal to `1`") - - self._tax_applied_after_discount = tax_applied_after_discount - - @property - def tax_status_indicator(self): - """ - Gets the tax_status_indicator of this V2paymentsOrderInformationLineItems. - Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax - - :return: The tax_status_indicator of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._tax_status_indicator - - @tax_status_indicator.setter - def tax_status_indicator(self, tax_status_indicator): - """ - Sets the tax_status_indicator of this V2paymentsOrderInformationLineItems. - Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax - - :param tax_status_indicator: The tax_status_indicator of this V2paymentsOrderInformationLineItems. - :type: str - """ - if tax_status_indicator is not None and len(tax_status_indicator) > 1: - raise ValueError("Invalid value for `tax_status_indicator`, length must be less than or equal to `1`") - - self._tax_status_indicator = tax_status_indicator - - @property - def tax_type_code(self): - """ - Gets the tax_type_code of this V2paymentsOrderInformationLineItems. - Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. - - :return: The tax_type_code of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._tax_type_code - - @tax_type_code.setter - def tax_type_code(self, tax_type_code): - """ - Sets the tax_type_code of this V2paymentsOrderInformationLineItems. - Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. - - :param tax_type_code: The tax_type_code of this V2paymentsOrderInformationLineItems. - :type: str - """ - if tax_type_code is not None and len(tax_type_code) > 4: - raise ValueError("Invalid value for `tax_type_code`, length must be less than or equal to `4`") - - self._tax_type_code = tax_type_code - - @property - def amount_includes_tax(self): - """ - Gets the amount_includes_tax of this V2paymentsOrderInformationLineItems. - Flag that indicates whether the tax amount is included in the Line Item Total. - - :return: The amount_includes_tax of this V2paymentsOrderInformationLineItems. - :rtype: bool - """ - return self._amount_includes_tax - - @amount_includes_tax.setter - def amount_includes_tax(self, amount_includes_tax): - """ - Sets the amount_includes_tax of this V2paymentsOrderInformationLineItems. - Flag that indicates whether the tax amount is included in the Line Item Total. - - :param amount_includes_tax: The amount_includes_tax of this V2paymentsOrderInformationLineItems. - :type: bool - """ - - self._amount_includes_tax = amount_includes_tax - - @property - def type_of_supply(self): - """ - Gets the type_of_supply of this V2paymentsOrderInformationLineItems. - Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services - - :return: The type_of_supply of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._type_of_supply - - @type_of_supply.setter - def type_of_supply(self, type_of_supply): - """ - Sets the type_of_supply of this V2paymentsOrderInformationLineItems. - Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services - - :param type_of_supply: The type_of_supply of this V2paymentsOrderInformationLineItems. - :type: str - """ - if type_of_supply is not None and len(type_of_supply) > 2: - raise ValueError("Invalid value for `type_of_supply`, length must be less than or equal to `2`") - - self._type_of_supply = type_of_supply - - @property - def commodity_code(self): - """ - Gets the commodity_code of this V2paymentsOrderInformationLineItems. - Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. - - :return: The commodity_code of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._commodity_code - - @commodity_code.setter - def commodity_code(self, commodity_code): - """ - Sets the commodity_code of this V2paymentsOrderInformationLineItems. - Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. - - :param commodity_code: The commodity_code of this V2paymentsOrderInformationLineItems. - :type: str - """ - if commodity_code is not None and len(commodity_code) > 15: - raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `15`") - - self._commodity_code = commodity_code - - @property - def discount_amount(self): - """ - Gets the discount_amount of this V2paymentsOrderInformationLineItems. - Discount applied to the item. - - :return: The discount_amount of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._discount_amount - - @discount_amount.setter - def discount_amount(self, discount_amount): - """ - Sets the discount_amount of this V2paymentsOrderInformationLineItems. - Discount applied to the item. - - :param discount_amount: The discount_amount of this V2paymentsOrderInformationLineItems. - :type: str - """ - if discount_amount is not None and len(discount_amount) > 13: - raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `13`") - - self._discount_amount = discount_amount - - @property - def discount_applied(self): - """ - Gets the discount_applied of this V2paymentsOrderInformationLineItems. - Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. - - :return: The discount_applied of this V2paymentsOrderInformationLineItems. - :rtype: bool - """ - return self._discount_applied - - @discount_applied.setter - def discount_applied(self, discount_applied): - """ - Sets the discount_applied of this V2paymentsOrderInformationLineItems. - Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. - - :param discount_applied: The discount_applied of this V2paymentsOrderInformationLineItems. - :type: bool - """ - - self._discount_applied = discount_applied - - @property - def discount_rate(self): - """ - Gets the discount_rate of this V2paymentsOrderInformationLineItems. - Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) - - :return: The discount_rate of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._discount_rate - - @discount_rate.setter - def discount_rate(self, discount_rate): - """ - Sets the discount_rate of this V2paymentsOrderInformationLineItems. - Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) - - :param discount_rate: The discount_rate of this V2paymentsOrderInformationLineItems. - :type: str - """ - if discount_rate is not None and len(discount_rate) > 6: - raise ValueError("Invalid value for `discount_rate`, length must be less than or equal to `6`") - - self._discount_rate = discount_rate - - @property - def invoice_number(self): - """ - Gets the invoice_number of this V2paymentsOrderInformationLineItems. - Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. - - :return: The invoice_number of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._invoice_number - - @invoice_number.setter - def invoice_number(self, invoice_number): - """ - Sets the invoice_number of this V2paymentsOrderInformationLineItems. - Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. - - :param invoice_number: The invoice_number of this V2paymentsOrderInformationLineItems. - :type: str - """ - if invoice_number is not None and len(invoice_number) > 23: - raise ValueError("Invalid value for `invoice_number`, length must be less than or equal to `23`") - - self._invoice_number = invoice_number - - @property - def tax_details(self): - """ - Gets the tax_details of this V2paymentsOrderInformationLineItems. - - :return: The tax_details of this V2paymentsOrderInformationLineItems. - :rtype: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - return self._tax_details - - @tax_details.setter - def tax_details(self, tax_details): - """ - Sets the tax_details of this V2paymentsOrderInformationLineItems. - - :param tax_details: The tax_details of this V2paymentsOrderInformationLineItems. - :type: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - - self._tax_details = tax_details - - @property - def fulfillment_type(self): - """ - Gets the fulfillment_type of this V2paymentsOrderInformationLineItems. - TODO - - :return: The fulfillment_type of this V2paymentsOrderInformationLineItems. - :rtype: str - """ - return self._fulfillment_type - - @fulfillment_type.setter - def fulfillment_type(self, fulfillment_type): - """ - Sets the fulfillment_type of this V2paymentsOrderInformationLineItems. - TODO - - :param fulfillment_type: The fulfillment_type of this V2paymentsOrderInformationLineItems. - :type: str - """ - - self._fulfillment_type = fulfillment_type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformationLineItems): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information_ship_to.py b/CyberSource/models/v2payments_order_information_ship_to.py deleted file mode 100644 index d81c8bed..00000000 --- a/CyberSource/models/v2payments_order_information_ship_to.py +++ /dev/null @@ -1,457 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformationShipTo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'first_name': 'str', - 'last_name': 'str', - 'address1': 'str', - 'address2': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'postal_code': 'str', - 'country': 'str', - 'district': 'str', - 'building_number': 'str', - 'phone_number': 'str', - 'company': 'str' - } - - attribute_map = { - 'first_name': 'firstName', - 'last_name': 'lastName', - 'address1': 'address1', - 'address2': 'address2', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'postal_code': 'postalCode', - 'country': 'country', - 'district': 'district', - 'building_number': 'buildingNumber', - 'phone_number': 'phoneNumber', - 'company': 'company' - } - - def __init__(self, first_name=None, last_name=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, country=None, district=None, building_number=None, phone_number=None, company=None): - """ - V2paymentsOrderInformationShipTo - a model defined in Swagger - """ - - self._first_name = None - self._last_name = None - self._address1 = None - self._address2 = None - self._locality = None - self._administrative_area = None - self._postal_code = None - self._country = None - self._district = None - self._building_number = None - self._phone_number = None - self._company = None - - if first_name is not None: - self.first_name = first_name - if last_name is not None: - self.last_name = last_name - if address1 is not None: - self.address1 = address1 - if address2 is not None: - self.address2 = address2 - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if postal_code is not None: - self.postal_code = postal_code - if country is not None: - self.country = country - if district is not None: - self.district = district - if building_number is not None: - self.building_number = building_number - if phone_number is not None: - self.phone_number = phone_number - if company is not None: - self.company = company - - @property - def first_name(self): - """ - Gets the first_name of this V2paymentsOrderInformationShipTo. - First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 - - :return: The first_name of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """ - Sets the first_name of this V2paymentsOrderInformationShipTo. - First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 - - :param first_name: The first_name of this V2paymentsOrderInformationShipTo. - :type: str - """ - if first_name is not None and len(first_name) > 60: - raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") - - self._first_name = first_name - - @property - def last_name(self): - """ - Gets the last_name of this V2paymentsOrderInformationShipTo. - Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 - - :return: The last_name of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this V2paymentsOrderInformationShipTo. - Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 - - :param last_name: The last_name of this V2paymentsOrderInformationShipTo. - :type: str - """ - if last_name is not None and len(last_name) > 60: - raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") - - self._last_name = last_name - - @property - def address1(self): - """ - Gets the address1 of this V2paymentsOrderInformationShipTo. - First line of the shipping address. - - :return: The address1 of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this V2paymentsOrderInformationShipTo. - First line of the shipping address. - - :param address1: The address1 of this V2paymentsOrderInformationShipTo. - :type: str - """ - if address1 is not None and len(address1) > 60: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") - - self._address1 = address1 - - @property - def address2(self): - """ - Gets the address2 of this V2paymentsOrderInformationShipTo. - Second line of the shipping address. - - :return: The address2 of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._address2 - - @address2.setter - def address2(self, address2): - """ - Sets the address2 of this V2paymentsOrderInformationShipTo. - Second line of the shipping address. - - :param address2: The address2 of this V2paymentsOrderInformationShipTo. - :type: str - """ - if address2 is not None and len(address2) > 60: - raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") - - self._address2 = address2 - - @property - def locality(self): - """ - Gets the locality of this V2paymentsOrderInformationShipTo. - City of the shipping address. - - :return: The locality of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this V2paymentsOrderInformationShipTo. - City of the shipping address. - - :param locality: The locality of this V2paymentsOrderInformationShipTo. - :type: str - """ - if locality is not None and len(locality) > 50: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2paymentsOrderInformationShipTo. - State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. - - :return: The administrative_area of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2paymentsOrderInformationShipTo. - State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. - - :param administrative_area: The administrative_area of this V2paymentsOrderInformationShipTo. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 2: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") - - self._administrative_area = administrative_area - - @property - def postal_code(self): - """ - Gets the postal_code of this V2paymentsOrderInformationShipTo. - Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 - - :return: The postal_code of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2paymentsOrderInformationShipTo. - Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 - - :param postal_code: The postal_code of this V2paymentsOrderInformationShipTo. - :type: str - """ - if postal_code is not None and len(postal_code) > 10: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") - - self._postal_code = postal_code - - @property - def country(self): - """ - Gets the country of this V2paymentsOrderInformationShipTo. - Country of the shipping address. Use the two character ISO Standard Country Codes. - - :return: The country of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this V2paymentsOrderInformationShipTo. - Country of the shipping address. Use the two character ISO Standard Country Codes. - - :param country: The country of this V2paymentsOrderInformationShipTo. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - @property - def district(self): - """ - Gets the district of this V2paymentsOrderInformationShipTo. - Neighborhood, community, or region within a city or municipality. - - :return: The district of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._district - - @district.setter - def district(self, district): - """ - Sets the district of this V2paymentsOrderInformationShipTo. - Neighborhood, community, or region within a city or municipality. - - :param district: The district of this V2paymentsOrderInformationShipTo. - :type: str - """ - if district is not None and len(district) > 50: - raise ValueError("Invalid value for `district`, length must be less than or equal to `50`") - - self._district = district - - @property - def building_number(self): - """ - Gets the building_number of this V2paymentsOrderInformationShipTo. - Building number in the street address. For example, the building number is 187 in the following address: Rua da Quitanda 187 - - :return: The building_number of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._building_number - - @building_number.setter - def building_number(self, building_number): - """ - Sets the building_number of this V2paymentsOrderInformationShipTo. - Building number in the street address. For example, the building number is 187 in the following address: Rua da Quitanda 187 - - :param building_number: The building_number of this V2paymentsOrderInformationShipTo. - :type: str - """ - if building_number is not None and len(building_number) > 15: - raise ValueError("Invalid value for `building_number`, length must be less than or equal to `15`") - - self._building_number = building_number - - @property - def phone_number(self): - """ - Gets the phone_number of this V2paymentsOrderInformationShipTo. - Phone number for the shipping address. - - :return: The phone_number of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this V2paymentsOrderInformationShipTo. - Phone number for the shipping address. - - :param phone_number: The phone_number of this V2paymentsOrderInformationShipTo. - :type: str - """ - if phone_number is not None and len(phone_number) > 15: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") - - self._phone_number = phone_number - - @property - def company(self): - """ - Gets the company of this V2paymentsOrderInformationShipTo. - Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The company of this V2paymentsOrderInformationShipTo. - :rtype: str - """ - return self._company - - @company.setter - def company(self, company): - """ - Sets the company of this V2paymentsOrderInformationShipTo. - Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param company: The company of this V2paymentsOrderInformationShipTo. - :type: str - """ - if company is not None and len(company) > 60: - raise ValueError("Invalid value for `company`, length must be less than or equal to `60`") - - self._company = company - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformationShipTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_order_information_shipping_details.py b/CyberSource/models/v2payments_order_information_shipping_details.py deleted file mode 100644 index 7c1af94e..00000000 --- a/CyberSource/models/v2payments_order_information_shipping_details.py +++ /dev/null @@ -1,185 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsOrderInformationShippingDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'gift_wrap': 'bool', - 'shipping_method': 'str', - 'ship_from_postal_code': 'str' - } - - attribute_map = { - 'gift_wrap': 'giftWrap', - 'shipping_method': 'shippingMethod', - 'ship_from_postal_code': 'shipFromPostalCode' - } - - def __init__(self, gift_wrap=None, shipping_method=None, ship_from_postal_code=None): - """ - V2paymentsOrderInformationShippingDetails - a model defined in Swagger - """ - - self._gift_wrap = None - self._shipping_method = None - self._ship_from_postal_code = None - - if gift_wrap is not None: - self.gift_wrap = gift_wrap - if shipping_method is not None: - self.shipping_method = shipping_method - if ship_from_postal_code is not None: - self.ship_from_postal_code = ship_from_postal_code - - @property - def gift_wrap(self): - """ - Gets the gift_wrap of this V2paymentsOrderInformationShippingDetails. - TBD - - :return: The gift_wrap of this V2paymentsOrderInformationShippingDetails. - :rtype: bool - """ - return self._gift_wrap - - @gift_wrap.setter - def gift_wrap(self, gift_wrap): - """ - Sets the gift_wrap of this V2paymentsOrderInformationShippingDetails. - TBD - - :param gift_wrap: The gift_wrap of this V2paymentsOrderInformationShippingDetails. - :type: bool - """ - - self._gift_wrap = gift_wrap - - @property - def shipping_method(self): - """ - Gets the shipping_method of this V2paymentsOrderInformationShippingDetails. - Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription - - :return: The shipping_method of this V2paymentsOrderInformationShippingDetails. - :rtype: str - """ - return self._shipping_method - - @shipping_method.setter - def shipping_method(self, shipping_method): - """ - Sets the shipping_method of this V2paymentsOrderInformationShippingDetails. - Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription - - :param shipping_method: The shipping_method of this V2paymentsOrderInformationShippingDetails. - :type: str - """ - if shipping_method is not None and len(shipping_method) > 10: - raise ValueError("Invalid value for `shipping_method`, length must be less than or equal to `10`") - - self._shipping_method = shipping_method - - @property - def ship_from_postal_code(self): - """ - Gets the ship_from_postal_code of this V2paymentsOrderInformationShippingDetails. - Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. - - :return: The ship_from_postal_code of this V2paymentsOrderInformationShippingDetails. - :rtype: str - """ - return self._ship_from_postal_code - - @ship_from_postal_code.setter - def ship_from_postal_code(self, ship_from_postal_code): - """ - Sets the ship_from_postal_code of this V2paymentsOrderInformationShippingDetails. - Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. - - :param ship_from_postal_code: The ship_from_postal_code of this V2paymentsOrderInformationShippingDetails. - :type: str - """ - if ship_from_postal_code is not None and len(ship_from_postal_code) > 10: - raise ValueError("Invalid value for `ship_from_postal_code`, length must be less than or equal to `10`") - - self._ship_from_postal_code = ship_from_postal_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsOrderInformationShippingDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_payment_information.py b/CyberSource/models/v2payments_payment_information.py deleted file mode 100644 index efb5311e..00000000 --- a/CyberSource/models/v2payments_payment_information.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsPaymentInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'card': 'V2paymentsPaymentInformationCard', - 'tokenized_card': 'V2paymentsPaymentInformationTokenizedCard', - 'fluid_data': 'V2paymentsPaymentInformationFluidData', - 'customer': 'V2paymentsPaymentInformationCustomer' - } - - attribute_map = { - 'card': 'card', - 'tokenized_card': 'tokenizedCard', - 'fluid_data': 'fluidData', - 'customer': 'customer' - } - - def __init__(self, card=None, tokenized_card=None, fluid_data=None, customer=None): - """ - V2paymentsPaymentInformation - a model defined in Swagger - """ - - self._card = None - self._tokenized_card = None - self._fluid_data = None - self._customer = None - - if card is not None: - self.card = card - if tokenized_card is not None: - self.tokenized_card = tokenized_card - if fluid_data is not None: - self.fluid_data = fluid_data - if customer is not None: - self.customer = customer - - @property - def card(self): - """ - Gets the card of this V2paymentsPaymentInformation. - - :return: The card of this V2paymentsPaymentInformation. - :rtype: V2paymentsPaymentInformationCard - """ - return self._card - - @card.setter - def card(self, card): - """ - Sets the card of this V2paymentsPaymentInformation. - - :param card: The card of this V2paymentsPaymentInformation. - :type: V2paymentsPaymentInformationCard - """ - - self._card = card - - @property - def tokenized_card(self): - """ - Gets the tokenized_card of this V2paymentsPaymentInformation. - - :return: The tokenized_card of this V2paymentsPaymentInformation. - :rtype: V2paymentsPaymentInformationTokenizedCard - """ - return self._tokenized_card - - @tokenized_card.setter - def tokenized_card(self, tokenized_card): - """ - Sets the tokenized_card of this V2paymentsPaymentInformation. - - :param tokenized_card: The tokenized_card of this V2paymentsPaymentInformation. - :type: V2paymentsPaymentInformationTokenizedCard - """ - - self._tokenized_card = tokenized_card - - @property - def fluid_data(self): - """ - Gets the fluid_data of this V2paymentsPaymentInformation. - - :return: The fluid_data of this V2paymentsPaymentInformation. - :rtype: V2paymentsPaymentInformationFluidData - """ - return self._fluid_data - - @fluid_data.setter - def fluid_data(self, fluid_data): - """ - Sets the fluid_data of this V2paymentsPaymentInformation. - - :param fluid_data: The fluid_data of this V2paymentsPaymentInformation. - :type: V2paymentsPaymentInformationFluidData - """ - - self._fluid_data = fluid_data - - @property - def customer(self): - """ - Gets the customer of this V2paymentsPaymentInformation. - - :return: The customer of this V2paymentsPaymentInformation. - :rtype: V2paymentsPaymentInformationCustomer - """ - return self._customer - - @customer.setter - def customer(self, customer): - """ - Sets the customer of this V2paymentsPaymentInformation. - - :param customer: The customer of this V2paymentsPaymentInformation. - :type: V2paymentsPaymentInformationCustomer - """ - - self._customer = customer - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsPaymentInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_payment_information_card.py b/CyberSource/models/v2payments_payment_information_card.py deleted file mode 100644 index a4ed4071..00000000 --- a/CyberSource/models/v2payments_payment_information_card.py +++ /dev/null @@ -1,457 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsPaymentInformationCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'number': 'str', - 'expiration_month': 'str', - 'expiration_year': 'str', - 'type': 'str', - 'use_as': 'str', - 'source_account_type': 'str', - 'security_code': 'str', - 'security_code_indicator': 'str', - 'account_encoder_id': 'str', - 'issue_number': 'str', - 'start_month': 'str', - 'start_year': 'str' - } - - attribute_map = { - 'number': 'number', - 'expiration_month': 'expirationMonth', - 'expiration_year': 'expirationYear', - 'type': 'type', - 'use_as': 'useAs', - 'source_account_type': 'sourceAccountType', - 'security_code': 'securityCode', - 'security_code_indicator': 'securityCodeIndicator', - 'account_encoder_id': 'accountEncoderId', - 'issue_number': 'issueNumber', - 'start_month': 'startMonth', - 'start_year': 'startYear' - } - - def __init__(self, number=None, expiration_month=None, expiration_year=None, type=None, use_as=None, source_account_type=None, security_code=None, security_code_indicator=None, account_encoder_id=None, issue_number=None, start_month=None, start_year=None): - """ - V2paymentsPaymentInformationCard - a model defined in Swagger - """ - - self._number = None - self._expiration_month = None - self._expiration_year = None - self._type = None - self._use_as = None - self._source_account_type = None - self._security_code = None - self._security_code_indicator = None - self._account_encoder_id = None - self._issue_number = None - self._start_month = None - self._start_year = None - - if number is not None: - self.number = number - if expiration_month is not None: - self.expiration_month = expiration_month - if expiration_year is not None: - self.expiration_year = expiration_year - if type is not None: - self.type = type - if use_as is not None: - self.use_as = use_as - if source_account_type is not None: - self.source_account_type = source_account_type - if security_code is not None: - self.security_code = security_code - if security_code_indicator is not None: - self.security_code_indicator = security_code_indicator - if account_encoder_id is not None: - self.account_encoder_id = account_encoder_id - if issue_number is not None: - self.issue_number = issue_number - if start_month is not None: - self.start_month = start_month - if start_year is not None: - self.start_year = start_year - - @property - def number(self): - """ - Gets the number of this V2paymentsPaymentInformationCard. - Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The number of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._number - - @number.setter - def number(self, number): - """ - Sets the number of this V2paymentsPaymentInformationCard. - Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param number: The number of this V2paymentsPaymentInformationCard. - :type: str - """ - if number is not None and len(number) > 20: - raise ValueError("Invalid value for `number`, length must be less than or equal to `20`") - - self._number = number - - @property - def expiration_month(self): - """ - Gets the expiration_month of this V2paymentsPaymentInformationCard. - Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The expiration_month of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._expiration_month - - @expiration_month.setter - def expiration_month(self, expiration_month): - """ - Sets the expiration_month of this V2paymentsPaymentInformationCard. - Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param expiration_month: The expiration_month of this V2paymentsPaymentInformationCard. - :type: str - """ - if expiration_month is not None and len(expiration_month) > 2: - raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") - - self._expiration_month = expiration_month - - @property - def expiration_year(self): - """ - Gets the expiration_year of this V2paymentsPaymentInformationCard. - Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The expiration_year of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._expiration_year - - @expiration_year.setter - def expiration_year(self, expiration_year): - """ - Sets the expiration_year of this V2paymentsPaymentInformationCard. - Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param expiration_year: The expiration_year of this V2paymentsPaymentInformationCard. - :type: str - """ - if expiration_year is not None and len(expiration_year) > 4: - raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") - - self._expiration_year = expiration_year - - @property - def type(self): - """ - Gets the type of this V2paymentsPaymentInformationCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :return: The type of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V2paymentsPaymentInformationCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :param type: The type of this V2paymentsPaymentInformationCard. - :type: str - """ - if type is not None and len(type) > 3: - raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") - - self._type = type - - @property - def use_as(self): - """ - Gets the use_as of this V2paymentsPaymentInformationCard. - Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - - :return: The use_as of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._use_as - - @use_as.setter - def use_as(self, use_as): - """ - Sets the use_as of this V2paymentsPaymentInformationCard. - Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - - :param use_as: The use_as of this V2paymentsPaymentInformationCard. - :type: str - """ - if use_as is not None and len(use_as) > 2: - raise ValueError("Invalid value for `use_as`, length must be less than or equal to `2`") - - self._use_as = use_as - - @property - def source_account_type(self): - """ - Gets the source_account_type of this V2paymentsPaymentInformationCard. - Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account - - :return: The source_account_type of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._source_account_type - - @source_account_type.setter - def source_account_type(self, source_account_type): - """ - Sets the source_account_type of this V2paymentsPaymentInformationCard. - Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account - - :param source_account_type: The source_account_type of this V2paymentsPaymentInformationCard. - :type: str - """ - if source_account_type is not None and len(source_account_type) > 2: - raise ValueError("Invalid value for `source_account_type`, length must be less than or equal to `2`") - - self._source_account_type = source_account_type - - @property - def security_code(self): - """ - Gets the security_code of this V2paymentsPaymentInformationCard. - Card Verification Number. - - :return: The security_code of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._security_code - - @security_code.setter - def security_code(self, security_code): - """ - Sets the security_code of this V2paymentsPaymentInformationCard. - Card Verification Number. - - :param security_code: The security_code of this V2paymentsPaymentInformationCard. - :type: str - """ - if security_code is not None and len(security_code) > 4: - raise ValueError("Invalid value for `security_code`, length must be less than or equal to `4`") - - self._security_code = security_code - - @property - def security_code_indicator(self): - """ - Gets the security_code_indicator of this V2paymentsPaymentInformationCard. - Flag that indicates whether a CVN code was sent. Possible values: - 0 (default): CVN service not requested. CyberSource uses this default value when you do not include _securityCode_ in the request. - 1 (default): CVN service requested and supported. CyberSource uses this default value when you include _securityCode_ in the request. - 2: CVN on credit card is illegible. - 9: CVN was not imprinted on credit card. - - :return: The security_code_indicator of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._security_code_indicator - - @security_code_indicator.setter - def security_code_indicator(self, security_code_indicator): - """ - Sets the security_code_indicator of this V2paymentsPaymentInformationCard. - Flag that indicates whether a CVN code was sent. Possible values: - 0 (default): CVN service not requested. CyberSource uses this default value when you do not include _securityCode_ in the request. - 1 (default): CVN service requested and supported. CyberSource uses this default value when you include _securityCode_ in the request. - 2: CVN on credit card is illegible. - 9: CVN was not imprinted on credit card. - - :param security_code_indicator: The security_code_indicator of this V2paymentsPaymentInformationCard. - :type: str - """ - if security_code_indicator is not None and len(security_code_indicator) > 1: - raise ValueError("Invalid value for `security_code_indicator`, length must be less than or equal to `1`") - - self._security_code_indicator = security_code_indicator - - @property - def account_encoder_id(self): - """ - Gets the account_encoder_id of this V2paymentsPaymentInformationCard. - Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. - - :return: The account_encoder_id of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._account_encoder_id - - @account_encoder_id.setter - def account_encoder_id(self, account_encoder_id): - """ - Sets the account_encoder_id of this V2paymentsPaymentInformationCard. - Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. - - :param account_encoder_id: The account_encoder_id of this V2paymentsPaymentInformationCard. - :type: str - """ - if account_encoder_id is not None and len(account_encoder_id) > 3: - raise ValueError("Invalid value for `account_encoder_id`, length must be less than or equal to `3`") - - self._account_encoder_id = account_encoder_id - - @property - def issue_number(self): - """ - Gets the issue_number of this V2paymentsPaymentInformationCard. - Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. - - :return: The issue_number of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._issue_number - - @issue_number.setter - def issue_number(self, issue_number): - """ - Sets the issue_number of this V2paymentsPaymentInformationCard. - Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. - - :param issue_number: The issue_number of this V2paymentsPaymentInformationCard. - :type: str - """ - if issue_number is not None and len(issue_number) > 5: - raise ValueError("Invalid value for `issue_number`, length must be less than or equal to `5`") - - self._issue_number = issue_number - - @property - def start_month(self): - """ - Gets the start_month of this V2paymentsPaymentInformationCard. - Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. - - :return: The start_month of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._start_month - - @start_month.setter - def start_month(self, start_month): - """ - Sets the start_month of this V2paymentsPaymentInformationCard. - Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. - - :param start_month: The start_month of this V2paymentsPaymentInformationCard. - :type: str - """ - if start_month is not None and len(start_month) > 2: - raise ValueError("Invalid value for `start_month`, length must be less than or equal to `2`") - - self._start_month = start_month - - @property - def start_year(self): - """ - Gets the start_year of this V2paymentsPaymentInformationCard. - Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. - - :return: The start_year of this V2paymentsPaymentInformationCard. - :rtype: str - """ - return self._start_year - - @start_year.setter - def start_year(self, start_year): - """ - Sets the start_year of this V2paymentsPaymentInformationCard. - Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. - - :param start_year: The start_year of this V2paymentsPaymentInformationCard. - :type: str - """ - if start_year is not None and len(start_year) > 4: - raise ValueError("Invalid value for `start_year`, length must be less than or equal to `4`") - - self._start_year = start_year - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsPaymentInformationCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_payment_information_customer.py b/CyberSource/models/v2payments_payment_information_customer.py deleted file mode 100644 index ee9dc099..00000000 --- a/CyberSource/models/v2payments_payment_information_customer.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsPaymentInformationCustomer(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'customer_id': 'str' - } - - attribute_map = { - 'customer_id': 'customerId' - } - - def __init__(self, customer_id=None): - """ - V2paymentsPaymentInformationCustomer - a model defined in Swagger - """ - - self._customer_id = None - - if customer_id is not None: - self.customer_id = customer_id - - @property - def customer_id(self): - """ - Gets the customer_id of this V2paymentsPaymentInformationCustomer. - Unique identifier for the customer's card and billing information. - - :return: The customer_id of this V2paymentsPaymentInformationCustomer. - :rtype: str - """ - return self._customer_id - - @customer_id.setter - def customer_id(self, customer_id): - """ - Sets the customer_id of this V2paymentsPaymentInformationCustomer. - Unique identifier for the customer's card and billing information. - - :param customer_id: The customer_id of this V2paymentsPaymentInformationCustomer. - :type: str - """ - if customer_id is not None and len(customer_id) > 26: - raise ValueError("Invalid value for `customer_id`, length must be less than or equal to `26`") - - self._customer_id = customer_id - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsPaymentInformationCustomer): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_payment_information_fluid_data.py b/CyberSource/models/v2payments_payment_information_fluid_data.py deleted file mode 100644 index 7b4e23df..00000000 --- a/CyberSource/models/v2payments_payment_information_fluid_data.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsPaymentInformationFluidData(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'key': 'str', - 'descriptor': 'str', - 'value': 'str', - 'encoding': 'str' - } - - attribute_map = { - 'key': 'key', - 'descriptor': 'descriptor', - 'value': 'value', - 'encoding': 'encoding' - } - - def __init__(self, key=None, descriptor=None, value=None, encoding=None): - """ - V2paymentsPaymentInformationFluidData - a model defined in Swagger - """ - - self._key = None - self._descriptor = None - self._value = None - self._encoding = None - - if key is not None: - self.key = key - if descriptor is not None: - self.descriptor = descriptor - if value is not None: - self.value = value - if encoding is not None: - self.encoding = encoding - - @property - def key(self): - """ - Gets the key of this V2paymentsPaymentInformationFluidData. - TBD - - :return: The key of this V2paymentsPaymentInformationFluidData. - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """ - Sets the key of this V2paymentsPaymentInformationFluidData. - TBD - - :param key: The key of this V2paymentsPaymentInformationFluidData. - :type: str - """ - - self._key = key - - @property - def descriptor(self): - """ - Gets the descriptor of this V2paymentsPaymentInformationFluidData. - Format of the encrypted payment data. - - :return: The descriptor of this V2paymentsPaymentInformationFluidData. - :rtype: str - """ - return self._descriptor - - @descriptor.setter - def descriptor(self, descriptor): - """ - Sets the descriptor of this V2paymentsPaymentInformationFluidData. - Format of the encrypted payment data. - - :param descriptor: The descriptor of this V2paymentsPaymentInformationFluidData. - :type: str - """ - if descriptor is not None and len(descriptor) > 128: - raise ValueError("Invalid value for `descriptor`, length must be less than or equal to `128`") - - self._descriptor = descriptor - - @property - def value(self): - """ - Gets the value of this V2paymentsPaymentInformationFluidData. - The encrypted payment data value. If using Apple Pay or Samsung Pay, the values are: - Apple Pay: RklEPUNPTU1PTi5BUFBMRS5JTkFQUC5QQVlNRU5U - Samsung Pay: RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ= - - :return: The value of this V2paymentsPaymentInformationFluidData. - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """ - Sets the value of this V2paymentsPaymentInformationFluidData. - The encrypted payment data value. If using Apple Pay or Samsung Pay, the values are: - Apple Pay: RklEPUNPTU1PTi5BUFBMRS5JTkFQUC5QQVlNRU5U - Samsung Pay: RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ= - - :param value: The value of this V2paymentsPaymentInformationFluidData. - :type: str - """ - if value is not None and len(value) > 3072: - raise ValueError("Invalid value for `value`, length must be less than or equal to `3072`") - - self._value = value - - @property - def encoding(self): - """ - Gets the encoding of this V2paymentsPaymentInformationFluidData. - Encoding method used to encrypt the payment data. Possible value: Base64 - - :return: The encoding of this V2paymentsPaymentInformationFluidData. - :rtype: str - """ - return self._encoding - - @encoding.setter - def encoding(self, encoding): - """ - Sets the encoding of this V2paymentsPaymentInformationFluidData. - Encoding method used to encrypt the payment data. Possible value: Base64 - - :param encoding: The encoding of this V2paymentsPaymentInformationFluidData. - :type: str - """ - if encoding is not None and len(encoding) > 6: - raise ValueError("Invalid value for `encoding`, length must be less than or equal to `6`") - - self._encoding = encoding - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsPaymentInformationFluidData): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_payment_information_tokenized_card.py b/CyberSource/models/v2payments_payment_information_tokenized_card.py deleted file mode 100644 index 89976f62..00000000 --- a/CyberSource/models/v2payments_payment_information_tokenized_card.py +++ /dev/null @@ -1,397 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsPaymentInformationTokenizedCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'number': 'str', - 'expiration_month': 'str', - 'expiration_year': 'str', - 'type': 'str', - 'cryptogram': 'str', - 'requestor_id': 'str', - 'transaction_type': 'str', - 'assurance_level': 'str', - 'storage_method': 'str', - 'security_code': 'str' - } - - attribute_map = { - 'number': 'number', - 'expiration_month': 'expirationMonth', - 'expiration_year': 'expirationYear', - 'type': 'type', - 'cryptogram': 'cryptogram', - 'requestor_id': 'requestorId', - 'transaction_type': 'transactionType', - 'assurance_level': 'assuranceLevel', - 'storage_method': 'storageMethod', - 'security_code': 'securityCode' - } - - def __init__(self, number=None, expiration_month=None, expiration_year=None, type=None, cryptogram=None, requestor_id=None, transaction_type=None, assurance_level=None, storage_method=None, security_code=None): - """ - V2paymentsPaymentInformationTokenizedCard - a model defined in Swagger - """ - - self._number = None - self._expiration_month = None - self._expiration_year = None - self._type = None - self._cryptogram = None - self._requestor_id = None - self._transaction_type = None - self._assurance_level = None - self._storage_method = None - self._security_code = None - - if number is not None: - self.number = number - if expiration_month is not None: - self.expiration_month = expiration_month - if expiration_year is not None: - self.expiration_year = expiration_year - if type is not None: - self.type = type - if cryptogram is not None: - self.cryptogram = cryptogram - if requestor_id is not None: - self.requestor_id = requestor_id - if transaction_type is not None: - self.transaction_type = transaction_type - if assurance_level is not None: - self.assurance_level = assurance_level - if storage_method is not None: - self.storage_method = storage_method - if security_code is not None: - self.security_code = security_code - - @property - def number(self): - """ - Gets the number of this V2paymentsPaymentInformationTokenizedCard. - Customer’s payment network token value. - - :return: The number of this V2paymentsPaymentInformationTokenizedCard. - :rtype: str - """ - return self._number - - @number.setter - def number(self, number): - """ - Sets the number of this V2paymentsPaymentInformationTokenizedCard. - Customer’s payment network token value. - - :param number: The number of this V2paymentsPaymentInformationTokenizedCard. - :type: str - """ - if number is not None and len(number) > 20: - raise ValueError("Invalid value for `number`, length must be less than or equal to `20`") - - self._number = number - - @property - def expiration_month(self): - """ - Gets the expiration_month of this V2paymentsPaymentInformationTokenizedCard. - Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. - - :return: The expiration_month of this V2paymentsPaymentInformationTokenizedCard. - :rtype: str - """ - return self._expiration_month - - @expiration_month.setter - def expiration_month(self, expiration_month): - """ - Sets the expiration_month of this V2paymentsPaymentInformationTokenizedCard. - Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. - - :param expiration_month: The expiration_month of this V2paymentsPaymentInformationTokenizedCard. - :type: str - """ - if expiration_month is not None and len(expiration_month) > 2: - raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") - - self._expiration_month = expiration_month - - @property - def expiration_year(self): - """ - Gets the expiration_year of this V2paymentsPaymentInformationTokenizedCard. - Four-digit year in which the payment network token expires. `Format: YYYY`. - - :return: The expiration_year of this V2paymentsPaymentInformationTokenizedCard. - :rtype: str - """ - return self._expiration_year - - @expiration_year.setter - def expiration_year(self, expiration_year): - """ - Sets the expiration_year of this V2paymentsPaymentInformationTokenizedCard. - Four-digit year in which the payment network token expires. `Format: YYYY`. - - :param expiration_year: The expiration_year of this V2paymentsPaymentInformationTokenizedCard. - :type: str - """ - if expiration_year is not None and len(expiration_year) > 4: - raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") - - self._expiration_year = expiration_year - - @property - def type(self): - """ - Gets the type of this V2paymentsPaymentInformationTokenizedCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :return: The type of this V2paymentsPaymentInformationTokenizedCard. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V2paymentsPaymentInformationTokenizedCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :param type: The type of this V2paymentsPaymentInformationTokenizedCard. - :type: str - """ - if type is not None and len(type) > 3: - raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") - - self._type = type - - @property - def cryptogram(self): - """ - Gets the cryptogram of this V2paymentsPaymentInformationTokenizedCard. - This field is used internally. - - :return: The cryptogram of this V2paymentsPaymentInformationTokenizedCard. - :rtype: str - """ - return self._cryptogram - - @cryptogram.setter - def cryptogram(self, cryptogram): - """ - Sets the cryptogram of this V2paymentsPaymentInformationTokenizedCard. - This field is used internally. - - :param cryptogram: The cryptogram of this V2paymentsPaymentInformationTokenizedCard. - :type: str - """ - if cryptogram is not None and len(cryptogram) > 40: - raise ValueError("Invalid value for `cryptogram`, length must be less than or equal to `40`") - - self._cryptogram = cryptogram - - @property - def requestor_id(self): - """ - Gets the requestor_id of this V2paymentsPaymentInformationTokenizedCard. - Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. - - :return: The requestor_id of this V2paymentsPaymentInformationTokenizedCard. - :rtype: str - """ - return self._requestor_id - - @requestor_id.setter - def requestor_id(self, requestor_id): - """ - Sets the requestor_id of this V2paymentsPaymentInformationTokenizedCard. - Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. - - :param requestor_id: The requestor_id of this V2paymentsPaymentInformationTokenizedCard. - :type: str - """ - if requestor_id is not None and len(requestor_id) > 11: - raise ValueError("Invalid value for `requestor_id`, length must be less than or equal to `11`") - - self._requestor_id = requestor_id - - @property - def transaction_type(self): - """ - Gets the transaction_type of this V2paymentsPaymentInformationTokenizedCard. - Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data. - - :return: The transaction_type of this V2paymentsPaymentInformationTokenizedCard. - :rtype: str - """ - return self._transaction_type - - @transaction_type.setter - def transaction_type(self, transaction_type): - """ - Sets the transaction_type of this V2paymentsPaymentInformationTokenizedCard. - Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data. - - :param transaction_type: The transaction_type of this V2paymentsPaymentInformationTokenizedCard. - :type: str - """ - if transaction_type is not None and len(transaction_type) > 1: - raise ValueError("Invalid value for `transaction_type`, length must be less than or equal to `1`") - - self._transaction_type = transaction_type - - @property - def assurance_level(self): - """ - Gets the assurance_level of this V2paymentsPaymentInformationTokenizedCard. - Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. - - :return: The assurance_level of this V2paymentsPaymentInformationTokenizedCard. - :rtype: str - """ - return self._assurance_level - - @assurance_level.setter - def assurance_level(self, assurance_level): - """ - Sets the assurance_level of this V2paymentsPaymentInformationTokenizedCard. - Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. - - :param assurance_level: The assurance_level of this V2paymentsPaymentInformationTokenizedCard. - :type: str - """ - if assurance_level is not None and len(assurance_level) > 2: - raise ValueError("Invalid value for `assurance_level`, length must be less than or equal to `2`") - - self._assurance_level = assurance_level - - @property - def storage_method(self): - """ - Gets the storage_method of this V2paymentsPaymentInformationTokenizedCard. - Type of technology used in the device to store token data. Possible values: - 001: Secure Element (SE) Smart card or memory with restricted access and encryption to prevent data tampering. For storing payment credentials, a SE is tested against a set of requirements defined by the payment networks. `Note` This field is supported only for **FDC Compass**. - 002: Host Card Emulation (HCE) Emulation of a smart card by using software to create a virtual and exact representation of the card. Sensitive data is stored in a database that is hosted in the cloud. For storing payment credentials, a database must meet very stringent security requirements that exceed PCI DSS. `Note` This field is supported only for **FDC Compass**. - - :return: The storage_method of this V2paymentsPaymentInformationTokenizedCard. - :rtype: str - """ - return self._storage_method - - @storage_method.setter - def storage_method(self, storage_method): - """ - Sets the storage_method of this V2paymentsPaymentInformationTokenizedCard. - Type of technology used in the device to store token data. Possible values: - 001: Secure Element (SE) Smart card or memory with restricted access and encryption to prevent data tampering. For storing payment credentials, a SE is tested against a set of requirements defined by the payment networks. `Note` This field is supported only for **FDC Compass**. - 002: Host Card Emulation (HCE) Emulation of a smart card by using software to create a virtual and exact representation of the card. Sensitive data is stored in a database that is hosted in the cloud. For storing payment credentials, a database must meet very stringent security requirements that exceed PCI DSS. `Note` This field is supported only for **FDC Compass**. - - :param storage_method: The storage_method of this V2paymentsPaymentInformationTokenizedCard. - :type: str - """ - if storage_method is not None and len(storage_method) > 3: - raise ValueError("Invalid value for `storage_method`, length must be less than or equal to `3`") - - self._storage_method = storage_method - - @property - def security_code(self): - """ - Gets the security_code of this V2paymentsPaymentInformationTokenizedCard. - CVN. - - :return: The security_code of this V2paymentsPaymentInformationTokenizedCard. - :rtype: str - """ - return self._security_code - - @security_code.setter - def security_code(self, security_code): - """ - Sets the security_code of this V2paymentsPaymentInformationTokenizedCard. - CVN. - - :param security_code: The security_code of this V2paymentsPaymentInformationTokenizedCard. - :type: str - """ - if security_code is not None and len(security_code) > 4: - raise ValueError("Invalid value for `security_code`, length must be less than or equal to `4`") - - self._security_code = security_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsPaymentInformationTokenizedCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_point_of_sale_information.py b/CyberSource/models/v2payments_point_of_sale_information.py deleted file mode 100644 index f84145df..00000000 --- a/CyberSource/models/v2payments_point_of_sale_information.py +++ /dev/null @@ -1,453 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsPointOfSaleInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'terminal_id': 'str', - 'terminal_serial_number': 'str', - 'lane_number': 'str', - 'card_present': 'bool', - 'cat_level': 'int', - 'entry_mode': 'str', - 'terminal_capability': 'int', - 'pin_entry_capability': 'int', - 'operating_environment': 'str', - 'emv': 'V2paymentsPointOfSaleInformationEmv', - 'amex_capn_data': 'str', - 'track_data': 'str' - } - - attribute_map = { - 'terminal_id': 'terminalId', - 'terminal_serial_number': 'terminalSerialNumber', - 'lane_number': 'laneNumber', - 'card_present': 'cardPresent', - 'cat_level': 'catLevel', - 'entry_mode': 'entryMode', - 'terminal_capability': 'terminalCapability', - 'pin_entry_capability': 'pinEntryCapability', - 'operating_environment': 'operatingEnvironment', - 'emv': 'emv', - 'amex_capn_data': 'amexCapnData', - 'track_data': 'trackData' - } - - def __init__(self, terminal_id=None, terminal_serial_number=None, lane_number=None, card_present=None, cat_level=None, entry_mode=None, terminal_capability=None, pin_entry_capability=None, operating_environment=None, emv=None, amex_capn_data=None, track_data=None): - """ - V2paymentsPointOfSaleInformation - a model defined in Swagger - """ - - self._terminal_id = None - self._terminal_serial_number = None - self._lane_number = None - self._card_present = None - self._cat_level = None - self._entry_mode = None - self._terminal_capability = None - self._pin_entry_capability = None - self._operating_environment = None - self._emv = None - self._amex_capn_data = None - self._track_data = None - - if terminal_id is not None: - self.terminal_id = terminal_id - if terminal_serial_number is not None: - self.terminal_serial_number = terminal_serial_number - if lane_number is not None: - self.lane_number = lane_number - if card_present is not None: - self.card_present = card_present - if cat_level is not None: - self.cat_level = cat_level - if entry_mode is not None: - self.entry_mode = entry_mode - if terminal_capability is not None: - self.terminal_capability = terminal_capability - if pin_entry_capability is not None: - self.pin_entry_capability = pin_entry_capability - if operating_environment is not None: - self.operating_environment = operating_environment - if emv is not None: - self.emv = emv - if amex_capn_data is not None: - self.amex_capn_data = amex_capn_data - if track_data is not None: - self.track_data = track_data - - @property - def terminal_id(self): - """ - Gets the terminal_id of this V2paymentsPointOfSaleInformation. - Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. - - :return: The terminal_id of this V2paymentsPointOfSaleInformation. - :rtype: str - """ - return self._terminal_id - - @terminal_id.setter - def terminal_id(self, terminal_id): - """ - Sets the terminal_id of this V2paymentsPointOfSaleInformation. - Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. - - :param terminal_id: The terminal_id of this V2paymentsPointOfSaleInformation. - :type: str - """ - if terminal_id is not None and len(terminal_id) > 8: - raise ValueError("Invalid value for `terminal_id`, length must be less than or equal to `8`") - - self._terminal_id = terminal_id - - @property - def terminal_serial_number(self): - """ - Gets the terminal_serial_number of this V2paymentsPointOfSaleInformation. - TBD - - :return: The terminal_serial_number of this V2paymentsPointOfSaleInformation. - :rtype: str - """ - return self._terminal_serial_number - - @terminal_serial_number.setter - def terminal_serial_number(self, terminal_serial_number): - """ - Sets the terminal_serial_number of this V2paymentsPointOfSaleInformation. - TBD - - :param terminal_serial_number: The terminal_serial_number of this V2paymentsPointOfSaleInformation. - :type: str - """ - - self._terminal_serial_number = terminal_serial_number - - @property - def lane_number(self): - """ - Gets the lane_number of this V2paymentsPointOfSaleInformation. - Identifier for an alternate terminal at your retail location. You define the value for this field. This field is supported only for MasterCard transactions on FDC Nashville Global. Use the _terminalID_ field to identify the main terminal at your retail location. If your retail location has multiple terminals, use this _alternateTerminalID_ field to identify the terminal used for the transaction. This field is a pass-through, which means that CyberSource does not check the value or modify the value in any way before sending it to the processor. - - :return: The lane_number of this V2paymentsPointOfSaleInformation. - :rtype: str - """ - return self._lane_number - - @lane_number.setter - def lane_number(self, lane_number): - """ - Sets the lane_number of this V2paymentsPointOfSaleInformation. - Identifier for an alternate terminal at your retail location. You define the value for this field. This field is supported only for MasterCard transactions on FDC Nashville Global. Use the _terminalID_ field to identify the main terminal at your retail location. If your retail location has multiple terminals, use this _alternateTerminalID_ field to identify the terminal used for the transaction. This field is a pass-through, which means that CyberSource does not check the value or modify the value in any way before sending it to the processor. - - :param lane_number: The lane_number of this V2paymentsPointOfSaleInformation. - :type: str - """ - if lane_number is not None and len(lane_number) > 8: - raise ValueError("Invalid value for `lane_number`, length must be less than or equal to `8`") - - self._lane_number = lane_number - - @property - def card_present(self): - """ - Gets the card_present of this V2paymentsPointOfSaleInformation. - Indicates whether the card is present at the time of the transaction. Possible values: - **true**: Card is present. - **false**: Card is not present. - - :return: The card_present of this V2paymentsPointOfSaleInformation. - :rtype: bool - """ - return self._card_present - - @card_present.setter - def card_present(self, card_present): - """ - Sets the card_present of this V2paymentsPointOfSaleInformation. - Indicates whether the card is present at the time of the transaction. Possible values: - **true**: Card is present. - **false**: Card is not present. - - :param card_present: The card_present of this V2paymentsPointOfSaleInformation. - :type: bool - """ - - self._card_present = card_present - - @property - def cat_level(self): - """ - Gets the cat_level of this V2paymentsPointOfSaleInformation. - Type of cardholder-activated terminal. Possible values: - 1: Automated dispensing machine - 2: Self-service terminal - 3: Limited amount terminal - 4: In-flight commerce (IFC) terminal - 5: Radio frequency device - 6: Mobile acceptance terminal - 7: Electronic cash register - 8: E-commerce device at your location - 9: Terminal or cash register that uses a dialup connection to connect to the transaction processing network * Applicable only for CTV for Payouts. - - :return: The cat_level of this V2paymentsPointOfSaleInformation. - :rtype: int - """ - return self._cat_level - - @cat_level.setter - def cat_level(self, cat_level): - """ - Sets the cat_level of this V2paymentsPointOfSaleInformation. - Type of cardholder-activated terminal. Possible values: - 1: Automated dispensing machine - 2: Self-service terminal - 3: Limited amount terminal - 4: In-flight commerce (IFC) terminal - 5: Radio frequency device - 6: Mobile acceptance terminal - 7: Electronic cash register - 8: E-commerce device at your location - 9: Terminal or cash register that uses a dialup connection to connect to the transaction processing network * Applicable only for CTV for Payouts. - - :param cat_level: The cat_level of this V2paymentsPointOfSaleInformation. - :type: int - """ - if cat_level is not None and cat_level > 9: - raise ValueError("Invalid value for `cat_level`, must be a value less than or equal to `9`") - if cat_level is not None and cat_level < 1: - raise ValueError("Invalid value for `cat_level`, must be a value greater than or equal to `1`") - - self._cat_level = cat_level - - @property - def entry_mode(self): - """ - Gets the entry_mode of this V2paymentsPointOfSaleInformation. - Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. - - :return: The entry_mode of this V2paymentsPointOfSaleInformation. - :rtype: str - """ - return self._entry_mode - - @entry_mode.setter - def entry_mode(self, entry_mode): - """ - Sets the entry_mode of this V2paymentsPointOfSaleInformation. - Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. - - :param entry_mode: The entry_mode of this V2paymentsPointOfSaleInformation. - :type: str - """ - if entry_mode is not None and len(entry_mode) > 11: - raise ValueError("Invalid value for `entry_mode`, length must be less than or equal to `11`") - - self._entry_mode = entry_mode - - @property - def terminal_capability(self): - """ - Gets the terminal_capability of this V2paymentsPointOfSaleInformation. - POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. - - :return: The terminal_capability of this V2paymentsPointOfSaleInformation. - :rtype: int - """ - return self._terminal_capability - - @terminal_capability.setter - def terminal_capability(self, terminal_capability): - """ - Sets the terminal_capability of this V2paymentsPointOfSaleInformation. - POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. - - :param terminal_capability: The terminal_capability of this V2paymentsPointOfSaleInformation. - :type: int - """ - if terminal_capability is not None and terminal_capability > 5: - raise ValueError("Invalid value for `terminal_capability`, must be a value less than or equal to `5`") - if terminal_capability is not None and terminal_capability < 1: - raise ValueError("Invalid value for `terminal_capability`, must be a value greater than or equal to `1`") - - self._terminal_capability = terminal_capability - - @property - def pin_entry_capability(self): - """ - Gets the pin_entry_capability of this V2paymentsPointOfSaleInformation. - A one-digit code that identifies the capability of terminal to capture PINs. This code does not necessarily mean that a PIN was entered or is included in this message. For Payouts: This field is applicable for CtV. - - :return: The pin_entry_capability of this V2paymentsPointOfSaleInformation. - :rtype: int - """ - return self._pin_entry_capability - - @pin_entry_capability.setter - def pin_entry_capability(self, pin_entry_capability): - """ - Sets the pin_entry_capability of this V2paymentsPointOfSaleInformation. - A one-digit code that identifies the capability of terminal to capture PINs. This code does not necessarily mean that a PIN was entered or is included in this message. For Payouts: This field is applicable for CtV. - - :param pin_entry_capability: The pin_entry_capability of this V2paymentsPointOfSaleInformation. - :type: int - """ - if pin_entry_capability is not None and pin_entry_capability > 1: - raise ValueError("Invalid value for `pin_entry_capability`, must be a value less than or equal to `1`") - if pin_entry_capability is not None and pin_entry_capability < 1: - raise ValueError("Invalid value for `pin_entry_capability`, must be a value greater than or equal to `1`") - - self._pin_entry_capability = pin_entry_capability - - @property - def operating_environment(self): - """ - Gets the operating_environment of this V2paymentsPointOfSaleInformation. - Operating environment. Possible values: - 0: No terminal used or unknown environment. - 1: On merchant premises, attended. - 2: On merchant premises, unattended, or cardholder terminal. Examples: oil, kiosks, self-checkout, home computer, mobile telephone, personal digital assistant (PDA). Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 3: Off merchant premises, attended. Examples: portable POS devices at trade shows, at service calls, or in taxis. - 4: Off merchant premises, unattended, or cardholder terminal. Examples: vending machines, home computer, mobile telephone, PDA. Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 5: On premises of cardholder, unattended. - 9: Unknown delivery mode. - S: Electronic delivery of product. Examples: music, software, or eTickets that are downloaded over the internet. - T: Physical delivery of product. Examples: music or software that is delivered by mail or by a courier. This field is supported only for **American Express Direct** and **CyberSource through VisaNet**. **CyberSource through VisaNet** For MasterCard transactions, the only valid values are 2 and 4. - - :return: The operating_environment of this V2paymentsPointOfSaleInformation. - :rtype: str - """ - return self._operating_environment - - @operating_environment.setter - def operating_environment(self, operating_environment): - """ - Sets the operating_environment of this V2paymentsPointOfSaleInformation. - Operating environment. Possible values: - 0: No terminal used or unknown environment. - 1: On merchant premises, attended. - 2: On merchant premises, unattended, or cardholder terminal. Examples: oil, kiosks, self-checkout, home computer, mobile telephone, personal digital assistant (PDA). Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 3: Off merchant premises, attended. Examples: portable POS devices at trade shows, at service calls, or in taxis. - 4: Off merchant premises, unattended, or cardholder terminal. Examples: vending machines, home computer, mobile telephone, PDA. Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 5: On premises of cardholder, unattended. - 9: Unknown delivery mode. - S: Electronic delivery of product. Examples: music, software, or eTickets that are downloaded over the internet. - T: Physical delivery of product. Examples: music or software that is delivered by mail or by a courier. This field is supported only for **American Express Direct** and **CyberSource through VisaNet**. **CyberSource through VisaNet** For MasterCard transactions, the only valid values are 2 and 4. - - :param operating_environment: The operating_environment of this V2paymentsPointOfSaleInformation. - :type: str - """ - if operating_environment is not None and len(operating_environment) > 1: - raise ValueError("Invalid value for `operating_environment`, length must be less than or equal to `1`") - - self._operating_environment = operating_environment - - @property - def emv(self): - """ - Gets the emv of this V2paymentsPointOfSaleInformation. - - :return: The emv of this V2paymentsPointOfSaleInformation. - :rtype: V2paymentsPointOfSaleInformationEmv - """ - return self._emv - - @emv.setter - def emv(self, emv): - """ - Sets the emv of this V2paymentsPointOfSaleInformation. - - :param emv: The emv of this V2paymentsPointOfSaleInformation. - :type: V2paymentsPointOfSaleInformationEmv - """ - - self._emv = emv - - @property - def amex_capn_data(self): - """ - Gets the amex_capn_data of this V2paymentsPointOfSaleInformation. - Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. - - :return: The amex_capn_data of this V2paymentsPointOfSaleInformation. - :rtype: str - """ - return self._amex_capn_data - - @amex_capn_data.setter - def amex_capn_data(self, amex_capn_data): - """ - Sets the amex_capn_data of this V2paymentsPointOfSaleInformation. - Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. - - :param amex_capn_data: The amex_capn_data of this V2paymentsPointOfSaleInformation. - :type: str - """ - if amex_capn_data is not None and len(amex_capn_data) > 12: - raise ValueError("Invalid value for `amex_capn_data`, length must be less than or equal to `12`") - - self._amex_capn_data = amex_capn_data - - @property - def track_data(self): - """ - Gets the track_data of this V2paymentsPointOfSaleInformation. - Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000? - - :return: The track_data of this V2paymentsPointOfSaleInformation. - :rtype: str - """ - return self._track_data - - @track_data.setter - def track_data(self, track_data): - """ - Sets the track_data of this V2paymentsPointOfSaleInformation. - Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000? - - :param track_data: The track_data of this V2paymentsPointOfSaleInformation. - :type: str - """ - - self._track_data = track_data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsPointOfSaleInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_point_of_sale_information_emv.py b/CyberSource/models/v2payments_point_of_sale_information_emv.py deleted file mode 100644 index 7a4e0835..00000000 --- a/CyberSource/models/v2payments_point_of_sale_information_emv.py +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsPointOfSaleInformationEmv(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'tags': 'str', - 'cardholder_verification_method': 'float', - 'card_sequence_number': 'str', - 'fallback': 'bool', - 'fallback_condition': 'float' - } - - attribute_map = { - 'tags': 'tags', - 'cardholder_verification_method': 'cardholderVerificationMethod', - 'card_sequence_number': 'cardSequenceNumber', - 'fallback': 'fallback', - 'fallback_condition': 'fallbackCondition' - } - - def __init__(self, tags=None, cardholder_verification_method=None, card_sequence_number=None, fallback=False, fallback_condition=None): - """ - V2paymentsPointOfSaleInformationEmv - a model defined in Swagger - """ - - self._tags = None - self._cardholder_verification_method = None - self._card_sequence_number = None - self._fallback = None - self._fallback_condition = None - - if tags is not None: - self.tags = tags - if cardholder_verification_method is not None: - self.cardholder_verification_method = cardholder_verification_method - if card_sequence_number is not None: - self.card_sequence_number = card_sequence_number - if fallback is not None: - self.fallback = fallback - if fallback_condition is not None: - self.fallback_condition = fallback_condition - - @property - def tags(self): - """ - Gets the tags of this V2paymentsPointOfSaleInformationEmv. - EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram - - :return: The tags of this V2paymentsPointOfSaleInformationEmv. - :rtype: str - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this V2paymentsPointOfSaleInformationEmv. - EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram - - :param tags: The tags of this V2paymentsPointOfSaleInformationEmv. - :type: str - """ - if tags is not None and len(tags) > 1998: - raise ValueError("Invalid value for `tags`, length must be less than or equal to `1998`") - - self._tags = tags - - @property - def cardholder_verification_method(self): - """ - Gets the cardholder_verification_method of this V2paymentsPointOfSaleInformationEmv. - Method that was used to verify the cardholder's identity. Possible values: - **0**: No verification - **1**: Signature This field is supported only on **American Express Direct**. - - :return: The cardholder_verification_method of this V2paymentsPointOfSaleInformationEmv. - :rtype: float - """ - return self._cardholder_verification_method - - @cardholder_verification_method.setter - def cardholder_verification_method(self, cardholder_verification_method): - """ - Sets the cardholder_verification_method of this V2paymentsPointOfSaleInformationEmv. - Method that was used to verify the cardholder's identity. Possible values: - **0**: No verification - **1**: Signature This field is supported only on **American Express Direct**. - - :param cardholder_verification_method: The cardholder_verification_method of this V2paymentsPointOfSaleInformationEmv. - :type: float - """ - - self._cardholder_verification_method = cardholder_verification_method - - @property - def card_sequence_number(self): - """ - Gets the card_sequence_number of this V2paymentsPointOfSaleInformationEmv. - Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. - - :return: The card_sequence_number of this V2paymentsPointOfSaleInformationEmv. - :rtype: str - """ - return self._card_sequence_number - - @card_sequence_number.setter - def card_sequence_number(self, card_sequence_number): - """ - Sets the card_sequence_number of this V2paymentsPointOfSaleInformationEmv. - Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. - - :param card_sequence_number: The card_sequence_number of this V2paymentsPointOfSaleInformationEmv. - :type: str - """ - if card_sequence_number is not None and len(card_sequence_number) > 3: - raise ValueError("Invalid value for `card_sequence_number`, length must be less than or equal to `3`") - - self._card_sequence_number = card_sequence_number - - @property - def fallback(self): - """ - Gets the fallback of this V2paymentsPointOfSaleInformationEmv. - Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. - - :return: The fallback of this V2paymentsPointOfSaleInformationEmv. - :rtype: bool - """ - return self._fallback - - @fallback.setter - def fallback(self, fallback): - """ - Sets the fallback of this V2paymentsPointOfSaleInformationEmv. - Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. - - :param fallback: The fallback of this V2paymentsPointOfSaleInformationEmv. - :type: bool - """ - - self._fallback = fallback - - @property - def fallback_condition(self): - """ - Gets the fallback_condition of this V2paymentsPointOfSaleInformationEmv. - Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. - - :return: The fallback_condition of this V2paymentsPointOfSaleInformationEmv. - :rtype: float - """ - return self._fallback_condition - - @fallback_condition.setter - def fallback_condition(self, fallback_condition): - """ - Sets the fallback_condition of this V2paymentsPointOfSaleInformationEmv. - Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. - - :param fallback_condition: The fallback_condition of this V2paymentsPointOfSaleInformationEmv. - :type: float - """ - - self._fallback_condition = fallback_condition - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsPointOfSaleInformationEmv): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_processing_information.py b/CyberSource/models/v2payments_processing_information.py deleted file mode 100644 index 0413e90d..00000000 --- a/CyberSource/models/v2payments_processing_information.py +++ /dev/null @@ -1,497 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsProcessingInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'capture': 'bool', - 'processor_id': 'str', - 'business_application_id': 'str', - 'commerce_indicator': 'str', - 'payment_solution': 'str', - 'reconciliation_id': 'str', - 'link_id': 'str', - 'purchase_level': 'str', - 'report_group': 'str', - 'visa_checkout_id': 'str', - 'issuer': 'V2paymentsProcessingInformationIssuer', - 'authorization_options': 'V2paymentsProcessingInformationAuthorizationOptions', - 'capture_options': 'V2paymentsProcessingInformationCaptureOptions', - 'recurring_options': 'V2paymentsProcessingInformationRecurringOptions' - } - - attribute_map = { - 'capture': 'capture', - 'processor_id': 'processorId', - 'business_application_id': 'businessApplicationId', - 'commerce_indicator': 'commerceIndicator', - 'payment_solution': 'paymentSolution', - 'reconciliation_id': 'reconciliationId', - 'link_id': 'linkId', - 'purchase_level': 'purchaseLevel', - 'report_group': 'reportGroup', - 'visa_checkout_id': 'visaCheckoutId', - 'issuer': 'issuer', - 'authorization_options': 'authorizationOptions', - 'capture_options': 'captureOptions', - 'recurring_options': 'recurringOptions' - } - - def __init__(self, capture=False, processor_id=None, business_application_id=None, commerce_indicator=None, payment_solution=None, reconciliation_id=None, link_id=None, purchase_level=None, report_group=None, visa_checkout_id=None, issuer=None, authorization_options=None, capture_options=None, recurring_options=None): - """ - V2paymentsProcessingInformation - a model defined in Swagger - """ - - self._capture = None - self._processor_id = None - self._business_application_id = None - self._commerce_indicator = None - self._payment_solution = None - self._reconciliation_id = None - self._link_id = None - self._purchase_level = None - self._report_group = None - self._visa_checkout_id = None - self._issuer = None - self._authorization_options = None - self._capture_options = None - self._recurring_options = None - - if capture is not None: - self.capture = capture - if processor_id is not None: - self.processor_id = processor_id - if business_application_id is not None: - self.business_application_id = business_application_id - if commerce_indicator is not None: - self.commerce_indicator = commerce_indicator - if payment_solution is not None: - self.payment_solution = payment_solution - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if link_id is not None: - self.link_id = link_id - if purchase_level is not None: - self.purchase_level = purchase_level - if report_group is not None: - self.report_group = report_group - if visa_checkout_id is not None: - self.visa_checkout_id = visa_checkout_id - if issuer is not None: - self.issuer = issuer - if authorization_options is not None: - self.authorization_options = authorization_options - if capture_options is not None: - self.capture_options = capture_options - if recurring_options is not None: - self.recurring_options = recurring_options - - @property - def capture(self): - """ - Gets the capture of this V2paymentsProcessingInformation. - Flag that specifies whether to also include capture service in the submitted request or not. - - :return: The capture of this V2paymentsProcessingInformation. - :rtype: bool - """ - return self._capture - - @capture.setter - def capture(self, capture): - """ - Sets the capture of this V2paymentsProcessingInformation. - Flag that specifies whether to also include capture service in the submitted request or not. - - :param capture: The capture of this V2paymentsProcessingInformation. - :type: bool - """ - - self._capture = capture - - @property - def processor_id(self): - """ - Gets the processor_id of this V2paymentsProcessingInformation. - Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. - - :return: The processor_id of this V2paymentsProcessingInformation. - :rtype: str - """ - return self._processor_id - - @processor_id.setter - def processor_id(self, processor_id): - """ - Sets the processor_id of this V2paymentsProcessingInformation. - Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. - - :param processor_id: The processor_id of this V2paymentsProcessingInformation. - :type: str - """ - if processor_id is not None and len(processor_id) > 3: - raise ValueError("Invalid value for `processor_id`, length must be less than or equal to `3`") - - self._processor_id = processor_id - - @property - def business_application_id(self): - """ - Gets the business_application_id of this V2paymentsProcessingInformation. - TBD - - :return: The business_application_id of this V2paymentsProcessingInformation. - :rtype: str - """ - return self._business_application_id - - @business_application_id.setter - def business_application_id(self, business_application_id): - """ - Sets the business_application_id of this V2paymentsProcessingInformation. - TBD - - :param business_application_id: The business_application_id of this V2paymentsProcessingInformation. - :type: str - """ - - self._business_application_id = business_application_id - - @property - def commerce_indicator(self): - """ - Gets the commerce_indicator of this V2paymentsProcessingInformation. - Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. - - :return: The commerce_indicator of this V2paymentsProcessingInformation. - :rtype: str - """ - return self._commerce_indicator - - @commerce_indicator.setter - def commerce_indicator(self, commerce_indicator): - """ - Sets the commerce_indicator of this V2paymentsProcessingInformation. - Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. - - :param commerce_indicator: The commerce_indicator of this V2paymentsProcessingInformation. - :type: str - """ - if commerce_indicator is not None and len(commerce_indicator) > 20: - raise ValueError("Invalid value for `commerce_indicator`, length must be less than or equal to `20`") - - self._commerce_indicator = commerce_indicator - - @property - def payment_solution(self): - """ - Gets the payment_solution of this V2paymentsProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :return: The payment_solution of this V2paymentsProcessingInformation. - :rtype: str - """ - return self._payment_solution - - @payment_solution.setter - def payment_solution(self, payment_solution): - """ - Sets the payment_solution of this V2paymentsProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :param payment_solution: The payment_solution of this V2paymentsProcessingInformation. - :type: str - """ - if payment_solution is not None and len(payment_solution) > 12: - raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") - - self._payment_solution = payment_solution - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this V2paymentsProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :return: The reconciliation_id of this V2paymentsProcessingInformation. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this V2paymentsProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :param reconciliation_id: The reconciliation_id of this V2paymentsProcessingInformation. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def link_id(self): - """ - Gets the link_id of this V2paymentsProcessingInformation. - Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. - - :return: The link_id of this V2paymentsProcessingInformation. - :rtype: str - """ - return self._link_id - - @link_id.setter - def link_id(self, link_id): - """ - Sets the link_id of this V2paymentsProcessingInformation. - Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. - - :param link_id: The link_id of this V2paymentsProcessingInformation. - :type: str - """ - if link_id is not None and len(link_id) > 26: - raise ValueError("Invalid value for `link_id`, length must be less than or equal to `26`") - - self._link_id = link_id - - @property - def purchase_level(self): - """ - Gets the purchase_level of this V2paymentsProcessingInformation. - Set this field to 3 to indicate that the request includes Level III data. - - :return: The purchase_level of this V2paymentsProcessingInformation. - :rtype: str - """ - return self._purchase_level - - @purchase_level.setter - def purchase_level(self, purchase_level): - """ - Sets the purchase_level of this V2paymentsProcessingInformation. - Set this field to 3 to indicate that the request includes Level III data. - - :param purchase_level: The purchase_level of this V2paymentsProcessingInformation. - :type: str - """ - if purchase_level is not None and len(purchase_level) > 1: - raise ValueError("Invalid value for `purchase_level`, length must be less than or equal to `1`") - - self._purchase_level = purchase_level - - @property - def report_group(self): - """ - Gets the report_group of this V2paymentsProcessingInformation. - Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. - - :return: The report_group of this V2paymentsProcessingInformation. - :rtype: str - """ - return self._report_group - - @report_group.setter - def report_group(self, report_group): - """ - Sets the report_group of this V2paymentsProcessingInformation. - Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. - - :param report_group: The report_group of this V2paymentsProcessingInformation. - :type: str - """ - if report_group is not None and len(report_group) > 25: - raise ValueError("Invalid value for `report_group`, length must be less than or equal to `25`") - - self._report_group = report_group - - @property - def visa_checkout_id(self): - """ - Gets the visa_checkout_id of this V2paymentsProcessingInformation. - Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. - - :return: The visa_checkout_id of this V2paymentsProcessingInformation. - :rtype: str - """ - return self._visa_checkout_id - - @visa_checkout_id.setter - def visa_checkout_id(self, visa_checkout_id): - """ - Sets the visa_checkout_id of this V2paymentsProcessingInformation. - Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. - - :param visa_checkout_id: The visa_checkout_id of this V2paymentsProcessingInformation. - :type: str - """ - if visa_checkout_id is not None and len(visa_checkout_id) > 48: - raise ValueError("Invalid value for `visa_checkout_id`, length must be less than or equal to `48`") - - self._visa_checkout_id = visa_checkout_id - - @property - def issuer(self): - """ - Gets the issuer of this V2paymentsProcessingInformation. - - :return: The issuer of this V2paymentsProcessingInformation. - :rtype: V2paymentsProcessingInformationIssuer - """ - return self._issuer - - @issuer.setter - def issuer(self, issuer): - """ - Sets the issuer of this V2paymentsProcessingInformation. - - :param issuer: The issuer of this V2paymentsProcessingInformation. - :type: V2paymentsProcessingInformationIssuer - """ - - self._issuer = issuer - - @property - def authorization_options(self): - """ - Gets the authorization_options of this V2paymentsProcessingInformation. - - :return: The authorization_options of this V2paymentsProcessingInformation. - :rtype: V2paymentsProcessingInformationAuthorizationOptions - """ - return self._authorization_options - - @authorization_options.setter - def authorization_options(self, authorization_options): - """ - Sets the authorization_options of this V2paymentsProcessingInformation. - - :param authorization_options: The authorization_options of this V2paymentsProcessingInformation. - :type: V2paymentsProcessingInformationAuthorizationOptions - """ - - self._authorization_options = authorization_options - - @property - def capture_options(self): - """ - Gets the capture_options of this V2paymentsProcessingInformation. - - :return: The capture_options of this V2paymentsProcessingInformation. - :rtype: V2paymentsProcessingInformationCaptureOptions - """ - return self._capture_options - - @capture_options.setter - def capture_options(self, capture_options): - """ - Sets the capture_options of this V2paymentsProcessingInformation. - - :param capture_options: The capture_options of this V2paymentsProcessingInformation. - :type: V2paymentsProcessingInformationCaptureOptions - """ - - self._capture_options = capture_options - - @property - def recurring_options(self): - """ - Gets the recurring_options of this V2paymentsProcessingInformation. - - :return: The recurring_options of this V2paymentsProcessingInformation. - :rtype: V2paymentsProcessingInformationRecurringOptions - """ - return self._recurring_options - - @recurring_options.setter - def recurring_options(self, recurring_options): - """ - Sets the recurring_options of this V2paymentsProcessingInformation. - - :param recurring_options: The recurring_options of this V2paymentsProcessingInformation. - :type: V2paymentsProcessingInformationRecurringOptions - """ - - self._recurring_options = recurring_options - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsProcessingInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_processing_information_authorization_options.py b/CyberSource/models/v2payments_processing_information_authorization_options.py deleted file mode 100644 index f29d6f0d..00000000 --- a/CyberSource/models/v2payments_processing_information_authorization_options.py +++ /dev/null @@ -1,390 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsProcessingInformationAuthorizationOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'auth_type': 'str', - 'verbal_auth_code': 'str', - 'verbal_auth_transaction_id': 'str', - 'auth_indicator': 'str', - 'partial_auth_indicator': 'bool', - 'balance_inquiry': 'bool', - 'ignore_avs_result': 'bool', - 'decline_avs_flags': 'list[str]', - 'ignore_cv_result': 'bool', - 'initiator': 'V2paymentsProcessingInformationAuthorizationOptionsInitiator' - } - - attribute_map = { - 'auth_type': 'authType', - 'verbal_auth_code': 'verbalAuthCode', - 'verbal_auth_transaction_id': 'verbalAuthTransactionId', - 'auth_indicator': 'authIndicator', - 'partial_auth_indicator': 'partialAuthIndicator', - 'balance_inquiry': 'balanceInquiry', - 'ignore_avs_result': 'ignoreAvsResult', - 'decline_avs_flags': 'declineAvsFlags', - 'ignore_cv_result': 'ignoreCvResult', - 'initiator': 'initiator' - } - - def __init__(self, auth_type=None, verbal_auth_code=None, verbal_auth_transaction_id=None, auth_indicator=None, partial_auth_indicator=None, balance_inquiry=None, ignore_avs_result=False, decline_avs_flags=None, ignore_cv_result=False, initiator=None): - """ - V2paymentsProcessingInformationAuthorizationOptions - a model defined in Swagger - """ - - self._auth_type = None - self._verbal_auth_code = None - self._verbal_auth_transaction_id = None - self._auth_indicator = None - self._partial_auth_indicator = None - self._balance_inquiry = None - self._ignore_avs_result = None - self._decline_avs_flags = None - self._ignore_cv_result = None - self._initiator = None - - if auth_type is not None: - self.auth_type = auth_type - if verbal_auth_code is not None: - self.verbal_auth_code = verbal_auth_code - if verbal_auth_transaction_id is not None: - self.verbal_auth_transaction_id = verbal_auth_transaction_id - if auth_indicator is not None: - self.auth_indicator = auth_indicator - if partial_auth_indicator is not None: - self.partial_auth_indicator = partial_auth_indicator - if balance_inquiry is not None: - self.balance_inquiry = balance_inquiry - if ignore_avs_result is not None: - self.ignore_avs_result = ignore_avs_result - if decline_avs_flags is not None: - self.decline_avs_flags = decline_avs_flags - if ignore_cv_result is not None: - self.ignore_cv_result = ignore_cv_result - if initiator is not None: - self.initiator = initiator - - @property - def auth_type(self): - """ - Gets the auth_type of this V2paymentsProcessingInformationAuthorizationOptions. - Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The auth_type of this V2paymentsProcessingInformationAuthorizationOptions. - :rtype: str - """ - return self._auth_type - - @auth_type.setter - def auth_type(self, auth_type): - """ - Sets the auth_type of this V2paymentsProcessingInformationAuthorizationOptions. - Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param auth_type: The auth_type of this V2paymentsProcessingInformationAuthorizationOptions. - :type: str - """ - if auth_type is not None and len(auth_type) > 15: - raise ValueError("Invalid value for `auth_type`, length must be less than or equal to `15`") - - self._auth_type = auth_type - - @property - def verbal_auth_code(self): - """ - Gets the verbal_auth_code of this V2paymentsProcessingInformationAuthorizationOptions. - Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The verbal_auth_code of this V2paymentsProcessingInformationAuthorizationOptions. - :rtype: str - """ - return self._verbal_auth_code - - @verbal_auth_code.setter - def verbal_auth_code(self, verbal_auth_code): - """ - Sets the verbal_auth_code of this V2paymentsProcessingInformationAuthorizationOptions. - Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param verbal_auth_code: The verbal_auth_code of this V2paymentsProcessingInformationAuthorizationOptions. - :type: str - """ - if verbal_auth_code is not None and len(verbal_auth_code) > 7: - raise ValueError("Invalid value for `verbal_auth_code`, length must be less than or equal to `7`") - - self._verbal_auth_code = verbal_auth_code - - @property - def verbal_auth_transaction_id(self): - """ - Gets the verbal_auth_transaction_id of this V2paymentsProcessingInformationAuthorizationOptions. - Transaction ID (TID). - - :return: The verbal_auth_transaction_id of this V2paymentsProcessingInformationAuthorizationOptions. - :rtype: str - """ - return self._verbal_auth_transaction_id - - @verbal_auth_transaction_id.setter - def verbal_auth_transaction_id(self, verbal_auth_transaction_id): - """ - Sets the verbal_auth_transaction_id of this V2paymentsProcessingInformationAuthorizationOptions. - Transaction ID (TID). - - :param verbal_auth_transaction_id: The verbal_auth_transaction_id of this V2paymentsProcessingInformationAuthorizationOptions. - :type: str - """ - if verbal_auth_transaction_id is not None and len(verbal_auth_transaction_id) > 15: - raise ValueError("Invalid value for `verbal_auth_transaction_id`, length must be less than or equal to `15`") - - self._verbal_auth_transaction_id = verbal_auth_transaction_id - - @property - def auth_indicator(self): - """ - Gets the auth_indicator of this V2paymentsProcessingInformationAuthorizationOptions. - Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization For processor-specific information, see the auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The auth_indicator of this V2paymentsProcessingInformationAuthorizationOptions. - :rtype: str - """ - return self._auth_indicator - - @auth_indicator.setter - def auth_indicator(self, auth_indicator): - """ - Sets the auth_indicator of this V2paymentsProcessingInformationAuthorizationOptions. - Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization For processor-specific information, see the auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param auth_indicator: The auth_indicator of this V2paymentsProcessingInformationAuthorizationOptions. - :type: str - """ - if auth_indicator is not None and len(auth_indicator) > 1: - raise ValueError("Invalid value for `auth_indicator`, length must be less than or equal to `1`") - - self._auth_indicator = auth_indicator - - @property - def partial_auth_indicator(self): - """ - Gets the partial_auth_indicator of this V2paymentsProcessingInformationAuthorizationOptions. - Flag that indicates whether the transaction is enabled for partial authorization or not. When your request includes this field, this value overrides the information in your CyberSource account. For processor-specific information, see the auth_partial_auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The partial_auth_indicator of this V2paymentsProcessingInformationAuthorizationOptions. - :rtype: bool - """ - return self._partial_auth_indicator - - @partial_auth_indicator.setter - def partial_auth_indicator(self, partial_auth_indicator): - """ - Sets the partial_auth_indicator of this V2paymentsProcessingInformationAuthorizationOptions. - Flag that indicates whether the transaction is enabled for partial authorization or not. When your request includes this field, this value overrides the information in your CyberSource account. For processor-specific information, see the auth_partial_auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param partial_auth_indicator: The partial_auth_indicator of this V2paymentsProcessingInformationAuthorizationOptions. - :type: bool - """ - - self._partial_auth_indicator = partial_auth_indicator - - @property - def balance_inquiry(self): - """ - Gets the balance_inquiry of this V2paymentsProcessingInformationAuthorizationOptions. - Flag that indicates whether to return balance information. - - :return: The balance_inquiry of this V2paymentsProcessingInformationAuthorizationOptions. - :rtype: bool - """ - return self._balance_inquiry - - @balance_inquiry.setter - def balance_inquiry(self, balance_inquiry): - """ - Sets the balance_inquiry of this V2paymentsProcessingInformationAuthorizationOptions. - Flag that indicates whether to return balance information. - - :param balance_inquiry: The balance_inquiry of this V2paymentsProcessingInformationAuthorizationOptions. - :type: bool - """ - - self._balance_inquiry = balance_inquiry - - @property - def ignore_avs_result(self): - """ - Gets the ignore_avs_result of this V2paymentsProcessingInformationAuthorizationOptions. - Flag that indicates whether to allow the capture service to run even when the payment receives an AVS decline. - - :return: The ignore_avs_result of this V2paymentsProcessingInformationAuthorizationOptions. - :rtype: bool - """ - return self._ignore_avs_result - - @ignore_avs_result.setter - def ignore_avs_result(self, ignore_avs_result): - """ - Sets the ignore_avs_result of this V2paymentsProcessingInformationAuthorizationOptions. - Flag that indicates whether to allow the capture service to run even when the payment receives an AVS decline. - - :param ignore_avs_result: The ignore_avs_result of this V2paymentsProcessingInformationAuthorizationOptions. - :type: bool - """ - - self._ignore_avs_result = ignore_avs_result - - @property - def decline_avs_flags(self): - """ - Gets the decline_avs_flags of this V2paymentsProcessingInformationAuthorizationOptions. - An array of AVS flags that cause the reply flag to be returned. `Important` To receive declines for the AVS code N, include the value N in the array. - - :return: The decline_avs_flags of this V2paymentsProcessingInformationAuthorizationOptions. - :rtype: list[str] - """ - return self._decline_avs_flags - - @decline_avs_flags.setter - def decline_avs_flags(self, decline_avs_flags): - """ - Sets the decline_avs_flags of this V2paymentsProcessingInformationAuthorizationOptions. - An array of AVS flags that cause the reply flag to be returned. `Important` To receive declines for the AVS code N, include the value N in the array. - - :param decline_avs_flags: The decline_avs_flags of this V2paymentsProcessingInformationAuthorizationOptions. - :type: list[str] - """ - allowed_values = ["D", "A", "V", "S", "N", "O"] - if not set(decline_avs_flags).issubset(set(allowed_values)): - raise ValueError( - "Invalid values for `decline_avs_flags` [{0}], must be a subset of [{1}]" - .format(", ".join(map(str, set(decline_avs_flags)-set(allowed_values))), - ", ".join(map(str, allowed_values))) - ) - - self._decline_avs_flags = decline_avs_flags - - @property - def ignore_cv_result(self): - """ - Gets the ignore_cv_result of this V2paymentsProcessingInformationAuthorizationOptions. - Flag that indicates whether to allow the capture service to run even when the payment receives a CVN decline. - - :return: The ignore_cv_result of this V2paymentsProcessingInformationAuthorizationOptions. - :rtype: bool - """ - return self._ignore_cv_result - - @ignore_cv_result.setter - def ignore_cv_result(self, ignore_cv_result): - """ - Sets the ignore_cv_result of this V2paymentsProcessingInformationAuthorizationOptions. - Flag that indicates whether to allow the capture service to run even when the payment receives a CVN decline. - - :param ignore_cv_result: The ignore_cv_result of this V2paymentsProcessingInformationAuthorizationOptions. - :type: bool - """ - - self._ignore_cv_result = ignore_cv_result - - @property - def initiator(self): - """ - Gets the initiator of this V2paymentsProcessingInformationAuthorizationOptions. - - :return: The initiator of this V2paymentsProcessingInformationAuthorizationOptions. - :rtype: V2paymentsProcessingInformationAuthorizationOptionsInitiator - """ - return self._initiator - - @initiator.setter - def initiator(self, initiator): - """ - Sets the initiator of this V2paymentsProcessingInformationAuthorizationOptions. - - :param initiator: The initiator of this V2paymentsProcessingInformationAuthorizationOptions. - :type: V2paymentsProcessingInformationAuthorizationOptionsInitiator - """ - - self._initiator = initiator - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsProcessingInformationAuthorizationOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_processing_information_authorization_options_initiator.py b/CyberSource/models/v2payments_processing_information_authorization_options_initiator.py deleted file mode 100644 index 2aec94c5..00000000 --- a/CyberSource/models/v2payments_processing_information_authorization_options_initiator.py +++ /dev/null @@ -1,213 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsProcessingInformationAuthorizationOptionsInitiator(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'str', - 'credential_stored_on_file': 'bool', - 'stored_credential_used': 'bool', - 'merchant_initiated_transaction': 'V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction' - } - - attribute_map = { - 'type': 'type', - 'credential_stored_on_file': 'credentialStoredOnFile', - 'stored_credential_used': 'storedCredentialUsed', - 'merchant_initiated_transaction': 'merchantInitiatedTransaction' - } - - def __init__(self, type=None, credential_stored_on_file=None, stored_credential_used=None, merchant_initiated_transaction=None): - """ - V2paymentsProcessingInformationAuthorizationOptionsInitiator - a model defined in Swagger - """ - - self._type = None - self._credential_stored_on_file = None - self._stored_credential_used = None - self._merchant_initiated_transaction = None - - if type is not None: - self.type = type - if credential_stored_on_file is not None: - self.credential_stored_on_file = credential_stored_on_file - if stored_credential_used is not None: - self.stored_credential_used = stored_credential_used - if merchant_initiated_transaction is not None: - self.merchant_initiated_transaction = merchant_initiated_transaction - - @property - def type(self): - """ - Gets the type of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction. - - :return: The type of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction. - - :param type: The type of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - :type: str - """ - allowed_values = ["customer", "merchant"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" - .format(type, allowed_values) - ) - - self._type = type - - @property - def credential_stored_on_file(self): - """ - Gets the credential_stored_on_file of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. - - :return: The credential_stored_on_file of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - :rtype: bool - """ - return self._credential_stored_on_file - - @credential_stored_on_file.setter - def credential_stored_on_file(self, credential_stored_on_file): - """ - Sets the credential_stored_on_file of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. - - :param credential_stored_on_file: The credential_stored_on_file of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - :type: bool - """ - - self._credential_stored_on_file = credential_stored_on_file - - @property - def stored_credential_used(self): - """ - Gets the stored_credential_used of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. - - :return: The stored_credential_used of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - :rtype: bool - """ - return self._stored_credential_used - - @stored_credential_used.setter - def stored_credential_used(self, stored_credential_used): - """ - Sets the stored_credential_used of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. - - :param stored_credential_used: The stored_credential_used of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - :type: bool - """ - - self._stored_credential_used = stored_credential_used - - @property - def merchant_initiated_transaction(self): - """ - Gets the merchant_initiated_transaction of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - - :return: The merchant_initiated_transaction of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - :rtype: V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - """ - return self._merchant_initiated_transaction - - @merchant_initiated_transaction.setter - def merchant_initiated_transaction(self, merchant_initiated_transaction): - """ - Sets the merchant_initiated_transaction of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - - :param merchant_initiated_transaction: The merchant_initiated_transaction of this V2paymentsProcessingInformationAuthorizationOptionsInitiator. - :type: V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - """ - - self._merchant_initiated_transaction = merchant_initiated_transaction - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsProcessingInformationAuthorizationOptionsInitiator): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction.py b/CyberSource/models/v2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction.py deleted file mode 100644 index 22e2e798..00000000 --- a/CyberSource/models/v2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'reason': 'str', - 'previous_transaction_id': 'str' - } - - attribute_map = { - 'reason': 'reason', - 'previous_transaction_id': 'previousTransactionId' - } - - def __init__(self, reason=None, previous_transaction_id=None): - """ - V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - a model defined in Swagger - """ - - self._reason = None - self._previous_transaction_id = None - - if reason is not None: - self.reason = reason - if previous_transaction_id is not None: - self.previous_transaction_id = previous_transaction_id - - @property - def reason(self): - """ - Gets the reason of this V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - Reason for the merchant-initiated transaction. Possible values: - **1**: Resubmission - **2**: Delayed charge - **3**: Reauthorization for split shipment - **4**: No show - **5**: Account top up This field is not required for installment payments or recurring payments or when _reAuth.first_ is true. It is required for all other merchant-initiated transactions. This field is supported only for Visa transactions on CyberSource through VisaNet. - - :return: The reason of this V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - Reason for the merchant-initiated transaction. Possible values: - **1**: Resubmission - **2**: Delayed charge - **3**: Reauthorization for split shipment - **4**: No show - **5**: Account top up This field is not required for installment payments or recurring payments or when _reAuth.first_ is true. It is required for all other merchant-initiated transactions. This field is supported only for Visa transactions on CyberSource through VisaNet. - - :param reason: The reason of this V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - :type: str - """ - if reason is not None and len(reason) > 1: - raise ValueError("Invalid value for `reason`, length must be less than or equal to `1`") - - self._reason = reason - - @property - def previous_transaction_id(self): - """ - Gets the previous_transaction_id of this V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - Transaction identifier that was returned in the payment response field _processorInformation.transactionID_ in the reply message for either the original merchant initiated payment in the series or the previous merchant-initiated payment in the series.

If the current payment request includes a token instead of an account number, the following time limits apply for the value of this field: For a **resubmission**, the transaction ID must be less than 14 days old. For a **delayed charge** or **reauthorization**, the transaction ID must be less than 30 days old. The value for this field does not correspond to any data in the TC 33 capture file. This field is supported only for Visa transactions on CyberSource through VisaNet. - - :return: The previous_transaction_id of this V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - :rtype: str - """ - return self._previous_transaction_id - - @previous_transaction_id.setter - def previous_transaction_id(self, previous_transaction_id): - """ - Sets the previous_transaction_id of this V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - Transaction identifier that was returned in the payment response field _processorInformation.transactionID_ in the reply message for either the original merchant initiated payment in the series or the previous merchant-initiated payment in the series.

If the current payment request includes a token instead of an account number, the following time limits apply for the value of this field: For a **resubmission**, the transaction ID must be less than 14 days old. For a **delayed charge** or **reauthorization**, the transaction ID must be less than 30 days old. The value for this field does not correspond to any data in the TC 33 capture file. This field is supported only for Visa transactions on CyberSource through VisaNet. - - :param previous_transaction_id: The previous_transaction_id of this V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction. - :type: str - """ - if previous_transaction_id is not None and len(previous_transaction_id) > 15: - raise ValueError("Invalid value for `previous_transaction_id`, length must be less than or equal to `15`") - - self._previous_transaction_id = previous_transaction_id - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_processing_information_capture_options.py b/CyberSource/models/v2payments_processing_information_capture_options.py deleted file mode 100644 index 09d28160..00000000 --- a/CyberSource/models/v2payments_processing_information_capture_options.py +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsProcessingInformationCaptureOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'capture_sequence_number': 'float', - 'total_capture_count': 'float', - 'date_to_capture': 'str' - } - - attribute_map = { - 'capture_sequence_number': 'captureSequenceNumber', - 'total_capture_count': 'totalCaptureCount', - 'date_to_capture': 'dateToCapture' - } - - def __init__(self, capture_sequence_number=None, total_capture_count=None, date_to_capture=None): - """ - V2paymentsProcessingInformationCaptureOptions - a model defined in Swagger - """ - - self._capture_sequence_number = None - self._total_capture_count = None - self._date_to_capture = None - - if capture_sequence_number is not None: - self.capture_sequence_number = capture_sequence_number - if total_capture_count is not None: - self.total_capture_count = total_capture_count - if date_to_capture is not None: - self.date_to_capture = date_to_capture - - @property - def capture_sequence_number(self): - """ - Gets the capture_sequence_number of this V2paymentsProcessingInformationCaptureOptions. - Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 - - :return: The capture_sequence_number of this V2paymentsProcessingInformationCaptureOptions. - :rtype: float - """ - return self._capture_sequence_number - - @capture_sequence_number.setter - def capture_sequence_number(self, capture_sequence_number): - """ - Sets the capture_sequence_number of this V2paymentsProcessingInformationCaptureOptions. - Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 - - :param capture_sequence_number: The capture_sequence_number of this V2paymentsProcessingInformationCaptureOptions. - :type: float - """ - if capture_sequence_number is not None and capture_sequence_number > 99: - raise ValueError("Invalid value for `capture_sequence_number`, must be a value less than or equal to `99`") - if capture_sequence_number is not None and capture_sequence_number < 1: - raise ValueError("Invalid value for `capture_sequence_number`, must be a value greater than or equal to `1`") - - self._capture_sequence_number = capture_sequence_number - - @property - def total_capture_count(self): - """ - Gets the total_capture_count of this V2paymentsProcessingInformationCaptureOptions. - Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 - - :return: The total_capture_count of this V2paymentsProcessingInformationCaptureOptions. - :rtype: float - """ - return self._total_capture_count - - @total_capture_count.setter - def total_capture_count(self, total_capture_count): - """ - Sets the total_capture_count of this V2paymentsProcessingInformationCaptureOptions. - Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 - - :param total_capture_count: The total_capture_count of this V2paymentsProcessingInformationCaptureOptions. - :type: float - """ - if total_capture_count is not None and total_capture_count > 99: - raise ValueError("Invalid value for `total_capture_count`, must be a value less than or equal to `99`") - if total_capture_count is not None and total_capture_count < 1: - raise ValueError("Invalid value for `total_capture_count`, must be a value greater than or equal to `1`") - - self._total_capture_count = total_capture_count - - @property - def date_to_capture(self): - """ - Gets the date_to_capture of this V2paymentsProcessingInformationCaptureOptions. - Date on which you want the capture to occur. This field is supported only for **CyberSource through VisaNet**. `Format: MMDD` - - :return: The date_to_capture of this V2paymentsProcessingInformationCaptureOptions. - :rtype: str - """ - return self._date_to_capture - - @date_to_capture.setter - def date_to_capture(self, date_to_capture): - """ - Sets the date_to_capture of this V2paymentsProcessingInformationCaptureOptions. - Date on which you want the capture to occur. This field is supported only for **CyberSource through VisaNet**. `Format: MMDD` - - :param date_to_capture: The date_to_capture of this V2paymentsProcessingInformationCaptureOptions. - :type: str - """ - if date_to_capture is not None and len(date_to_capture) > 4: - raise ValueError("Invalid value for `date_to_capture`, length must be less than or equal to `4`") - - self._date_to_capture = date_to_capture - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsProcessingInformationCaptureOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_processing_information_issuer.py b/CyberSource/models/v2payments_processing_information_issuer.py deleted file mode 100644 index 63fb4141..00000000 --- a/CyberSource/models/v2payments_processing_information_issuer.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsProcessingInformationIssuer(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'discretionary_data': 'str' - } - - attribute_map = { - 'discretionary_data': 'discretionaryData' - } - - def __init__(self, discretionary_data=None): - """ - V2paymentsProcessingInformationIssuer - a model defined in Swagger - """ - - self._discretionary_data = None - - if discretionary_data is not None: - self.discretionary_data = discretionary_data - - @property - def discretionary_data(self): - """ - Gets the discretionary_data of this V2paymentsProcessingInformationIssuer. - Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. - - :return: The discretionary_data of this V2paymentsProcessingInformationIssuer. - :rtype: str - """ - return self._discretionary_data - - @discretionary_data.setter - def discretionary_data(self, discretionary_data): - """ - Sets the discretionary_data of this V2paymentsProcessingInformationIssuer. - Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. - - :param discretionary_data: The discretionary_data of this V2paymentsProcessingInformationIssuer. - :type: str - """ - if discretionary_data is not None and len(discretionary_data) > 255: - raise ValueError("Invalid value for `discretionary_data`, length must be less than or equal to `255`") - - self._discretionary_data = discretionary_data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsProcessingInformationIssuer): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_processing_information_recurring_options.py b/CyberSource/models/v2payments_processing_information_recurring_options.py deleted file mode 100644 index 3295fe74..00000000 --- a/CyberSource/models/v2payments_processing_information_recurring_options.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsProcessingInformationRecurringOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'loan_payment': 'bool', - 'first_recurring_payment': 'bool' - } - - attribute_map = { - 'loan_payment': 'loanPayment', - 'first_recurring_payment': 'firstRecurringPayment' - } - - def __init__(self, loan_payment=False, first_recurring_payment=False): - """ - V2paymentsProcessingInformationRecurringOptions - a model defined in Swagger - """ - - self._loan_payment = None - self._first_recurring_payment = None - - if loan_payment is not None: - self.loan_payment = loan_payment - if first_recurring_payment is not None: - self.first_recurring_payment = first_recurring_payment - - @property - def loan_payment(self): - """ - Gets the loan_payment of this V2paymentsProcessingInformationRecurringOptions. - Flag that indicates whether this is a payment towards an existing contractual loan. - - :return: The loan_payment of this V2paymentsProcessingInformationRecurringOptions. - :rtype: bool - """ - return self._loan_payment - - @loan_payment.setter - def loan_payment(self, loan_payment): - """ - Sets the loan_payment of this V2paymentsProcessingInformationRecurringOptions. - Flag that indicates whether this is a payment towards an existing contractual loan. - - :param loan_payment: The loan_payment of this V2paymentsProcessingInformationRecurringOptions. - :type: bool - """ - - self._loan_payment = loan_payment - - @property - def first_recurring_payment(self): - """ - Gets the first_recurring_payment of this V2paymentsProcessingInformationRecurringOptions. - Flag that indicates whether this transaction is the first in a series of recurring payments. This field is supported only for **Atos**, **FDC Nashville Global**, and **OmniPay Direct**. - - :return: The first_recurring_payment of this V2paymentsProcessingInformationRecurringOptions. - :rtype: bool - """ - return self._first_recurring_payment - - @first_recurring_payment.setter - def first_recurring_payment(self, first_recurring_payment): - """ - Sets the first_recurring_payment of this V2paymentsProcessingInformationRecurringOptions. - Flag that indicates whether this transaction is the first in a series of recurring payments. This field is supported only for **Atos**, **FDC Nashville Global**, and **OmniPay Direct**. - - :param first_recurring_payment: The first_recurring_payment of this V2paymentsProcessingInformationRecurringOptions. - :type: bool - """ - - self._first_recurring_payment = first_recurring_payment - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsProcessingInformationRecurringOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payments_recipient_information.py b/CyberSource/models/v2payments_recipient_information.py deleted file mode 100644 index 55b25cc1..00000000 --- a/CyberSource/models/v2payments_recipient_information.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsRecipientInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'account_id': 'str', - 'last_name': 'str', - 'postal_code': 'str' - } - - attribute_map = { - 'account_id': 'accountId', - 'last_name': 'lastName', - 'postal_code': 'postalCode' - } - - def __init__(self, account_id=None, last_name=None, postal_code=None): - """ - V2paymentsRecipientInformation - a model defined in Swagger - """ - - self._account_id = None - self._last_name = None - self._postal_code = None - - if account_id is not None: - self.account_id = account_id - if last_name is not None: - self.last_name = last_name - if postal_code is not None: - self.postal_code = postal_code - - @property - def account_id(self): - """ - Gets the account_id of this V2paymentsRecipientInformation. - Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account number. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - - :return: The account_id of this V2paymentsRecipientInformation. - :rtype: str - """ - return self._account_id - - @account_id.setter - def account_id(self, account_id): - """ - Sets the account_id of this V2paymentsRecipientInformation. - Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account number. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - - :param account_id: The account_id of this V2paymentsRecipientInformation. - :type: str - """ - if account_id is not None and len(account_id) > 10: - raise ValueError("Invalid value for `account_id`, length must be less than or equal to `10`") - - self._account_id = account_id - - @property - def last_name(self): - """ - Gets the last_name of this V2paymentsRecipientInformation. - Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - - :return: The last_name of this V2paymentsRecipientInformation. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this V2paymentsRecipientInformation. - Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - - :param last_name: The last_name of this V2paymentsRecipientInformation. - :type: str - """ - if last_name is not None and len(last_name) > 6: - raise ValueError("Invalid value for `last_name`, length must be less than or equal to `6`") - - self._last_name = last_name - - @property - def postal_code(self): - """ - Gets the postal_code of this V2paymentsRecipientInformation. - Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - - :return: The postal_code of this V2paymentsRecipientInformation. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2paymentsRecipientInformation. - Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. - - :param postal_code: The postal_code of this V2paymentsRecipientInformation. - :type: str - """ - if postal_code is not None and len(postal_code) > 6: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `6`") - - self._postal_code = postal_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsRecipientInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_aggregator_information.py b/CyberSource/models/v2paymentsidcaptures_aggregator_information.py deleted file mode 100644 index e4aa0618..00000000 --- a/CyberSource/models/v2paymentsidcaptures_aggregator_information.py +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesAggregatorInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'aggregator_id': 'str', - 'name': 'str', - 'sub_merchant': 'V2paymentsidcapturesAggregatorInformationSubMerchant' - } - - attribute_map = { - 'aggregator_id': 'aggregatorId', - 'name': 'name', - 'sub_merchant': 'subMerchant' - } - - def __init__(self, aggregator_id=None, name=None, sub_merchant=None): - """ - V2paymentsidcapturesAggregatorInformation - a model defined in Swagger - """ - - self._aggregator_id = None - self._name = None - self._sub_merchant = None - - if aggregator_id is not None: - self.aggregator_id = aggregator_id - if name is not None: - self.name = name - if sub_merchant is not None: - self.sub_merchant = sub_merchant - - @property - def aggregator_id(self): - """ - Gets the aggregator_id of this V2paymentsidcapturesAggregatorInformation. - Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The aggregator_id of this V2paymentsidcapturesAggregatorInformation. - :rtype: str - """ - return self._aggregator_id - - @aggregator_id.setter - def aggregator_id(self, aggregator_id): - """ - Sets the aggregator_id of this V2paymentsidcapturesAggregatorInformation. - Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param aggregator_id: The aggregator_id of this V2paymentsidcapturesAggregatorInformation. - :type: str - """ - if aggregator_id is not None and len(aggregator_id) > 20: - raise ValueError("Invalid value for `aggregator_id`, length must be less than or equal to `20`") - - self._aggregator_id = aggregator_id - - @property - def name(self): - """ - Gets the name of this V2paymentsidcapturesAggregatorInformation. - Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The name of this V2paymentsidcapturesAggregatorInformation. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V2paymentsidcapturesAggregatorInformation. - Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param name: The name of this V2paymentsidcapturesAggregatorInformation. - :type: str - """ - if name is not None and len(name) > 37: - raise ValueError("Invalid value for `name`, length must be less than or equal to `37`") - - self._name = name - - @property - def sub_merchant(self): - """ - Gets the sub_merchant of this V2paymentsidcapturesAggregatorInformation. - - :return: The sub_merchant of this V2paymentsidcapturesAggregatorInformation. - :rtype: V2paymentsidcapturesAggregatorInformationSubMerchant - """ - return self._sub_merchant - - @sub_merchant.setter - def sub_merchant(self, sub_merchant): - """ - Sets the sub_merchant of this V2paymentsidcapturesAggregatorInformation. - - :param sub_merchant: The sub_merchant of this V2paymentsidcapturesAggregatorInformation. - :type: V2paymentsidcapturesAggregatorInformationSubMerchant - """ - - self._sub_merchant = sub_merchant - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesAggregatorInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_aggregator_information_sub_merchant.py b/CyberSource/models/v2paymentsidcaptures_aggregator_information_sub_merchant.py deleted file mode 100644 index d0ff4091..00000000 --- a/CyberSource/models/v2paymentsidcaptures_aggregator_information_sub_merchant.py +++ /dev/null @@ -1,337 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesAggregatorInformationSubMerchant(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'address1': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'postal_code': 'str', - 'country': 'str', - 'email': 'str', - 'phone_number': 'str' - } - - attribute_map = { - 'name': 'name', - 'address1': 'address1', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'postal_code': 'postalCode', - 'country': 'country', - 'email': 'email', - 'phone_number': 'phoneNumber' - } - - def __init__(self, name=None, address1=None, locality=None, administrative_area=None, postal_code=None, country=None, email=None, phone_number=None): - """ - V2paymentsidcapturesAggregatorInformationSubMerchant - a model defined in Swagger - """ - - self._name = None - self._address1 = None - self._locality = None - self._administrative_area = None - self._postal_code = None - self._country = None - self._email = None - self._phone_number = None - - if name is not None: - self.name = name - if address1 is not None: - self.address1 = address1 - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if postal_code is not None: - self.postal_code = postal_code - if country is not None: - self.country = country - if email is not None: - self.email = email - if phone_number is not None: - self.phone_number = phone_number - - @property - def name(self): - """ - Gets the name of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s business name. - - :return: The name of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s business name. - - :param name: The name of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :type: str - """ - if name is not None and len(name) > 37: - raise ValueError("Invalid value for `name`, length must be less than or equal to `37`") - - self._name = name - - @property - def address1(self): - """ - Gets the address1 of this V2paymentsidcapturesAggregatorInformationSubMerchant. - First line of the sub-merchant’s street address. - - :return: The address1 of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this V2paymentsidcapturesAggregatorInformationSubMerchant. - First line of the sub-merchant’s street address. - - :param address1: The address1 of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :type: str - """ - if address1 is not None and len(address1) > 38: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `38`") - - self._address1 = address1 - - @property - def locality(self): - """ - Gets the locality of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s city. - - :return: The locality of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s city. - - :param locality: The locality of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :type: str - """ - if locality is not None and len(locality) > 21: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `21`") - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. - - :return: The administrative_area of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. - - :param administrative_area: The administrative_area of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 3: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `3`") - - self._administrative_area = administrative_area - - @property - def postal_code(self): - """ - Gets the postal_code of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Partial postal code for the sub-merchant’s address. - - :return: The postal_code of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Partial postal code for the sub-merchant’s address. - - :param postal_code: The postal_code of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :type: str - """ - if postal_code is not None and len(postal_code) > 15: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `15`") - - self._postal_code = postal_code - - @property - def country(self): - """ - Gets the country of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s country. Use the two-character ISO Standard Country Codes. - - :return: The country of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s country. Use the two-character ISO Standard Country Codes. - - :param country: The country of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :type: str - """ - if country is not None and len(country) > 3: - raise ValueError("Invalid value for `country`, length must be less than or equal to `3`") - - self._country = country - - @property - def email(self): - """ - Gets the email of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 - - :return: The email of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """ - Sets the email of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 - - :param email: The email of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :type: str - """ - if email is not None and len(email) > 40: - raise ValueError("Invalid value for `email`, length must be less than or equal to `40`") - - self._email = email - - @property - def phone_number(self): - """ - Gets the phone_number of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 - - :return: The phone_number of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this V2paymentsidcapturesAggregatorInformationSubMerchant. - Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 - - :param phone_number: The phone_number of this V2paymentsidcapturesAggregatorInformationSubMerchant. - :type: str - """ - if phone_number is not None and len(phone_number) > 20: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `20`") - - self._phone_number = phone_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesAggregatorInformationSubMerchant): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_buyer_information.py b/CyberSource/models/v2paymentsidcaptures_buyer_information.py deleted file mode 100644 index 6874bcb0..00000000 --- a/CyberSource/models/v2paymentsidcaptures_buyer_information.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesBuyerInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'merchant_customer_id': 'str', - 'vat_registration_number': 'str' - } - - attribute_map = { - 'merchant_customer_id': 'merchantCustomerId', - 'vat_registration_number': 'vatRegistrationNumber' - } - - def __init__(self, merchant_customer_id=None, vat_registration_number=None): - """ - V2paymentsidcapturesBuyerInformation - a model defined in Swagger - """ - - self._merchant_customer_id = None - self._vat_registration_number = None - - if merchant_customer_id is not None: - self.merchant_customer_id = merchant_customer_id - if vat_registration_number is not None: - self.vat_registration_number = vat_registration_number - - @property - def merchant_customer_id(self): - """ - Gets the merchant_customer_id of this V2paymentsidcapturesBuyerInformation. - Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The merchant_customer_id of this V2paymentsidcapturesBuyerInformation. - :rtype: str - """ - return self._merchant_customer_id - - @merchant_customer_id.setter - def merchant_customer_id(self, merchant_customer_id): - """ - Sets the merchant_customer_id of this V2paymentsidcapturesBuyerInformation. - Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param merchant_customer_id: The merchant_customer_id of this V2paymentsidcapturesBuyerInformation. - :type: str - """ - if merchant_customer_id is not None and len(merchant_customer_id) > 100: - raise ValueError("Invalid value for `merchant_customer_id`, length must be less than or equal to `100`") - - self._merchant_customer_id = merchant_customer_id - - @property - def vat_registration_number(self): - """ - Gets the vat_registration_number of this V2paymentsidcapturesBuyerInformation. - Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_registration_number of this V2paymentsidcapturesBuyerInformation. - :rtype: str - """ - return self._vat_registration_number - - @vat_registration_number.setter - def vat_registration_number(self, vat_registration_number): - """ - Sets the vat_registration_number of this V2paymentsidcapturesBuyerInformation. - Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_registration_number: The vat_registration_number of this V2paymentsidcapturesBuyerInformation. - :type: str - """ - if vat_registration_number is not None and len(vat_registration_number) > 20: - raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `20`") - - self._vat_registration_number = vat_registration_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesBuyerInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_merchant_information.py b/CyberSource/models/v2paymentsidcaptures_merchant_information.py deleted file mode 100644 index 809eb381..00000000 --- a/CyberSource/models/v2paymentsidcaptures_merchant_information.py +++ /dev/null @@ -1,213 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesMerchantInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'merchant_descriptor': 'V2paymentsMerchantInformationMerchantDescriptor', - 'card_acceptor_reference_number': 'str', - 'category_code': 'int', - 'vat_registration_number': 'str' - } - - attribute_map = { - 'merchant_descriptor': 'merchantDescriptor', - 'card_acceptor_reference_number': 'cardAcceptorReferenceNumber', - 'category_code': 'categoryCode', - 'vat_registration_number': 'vatRegistrationNumber' - } - - def __init__(self, merchant_descriptor=None, card_acceptor_reference_number=None, category_code=None, vat_registration_number=None): - """ - V2paymentsidcapturesMerchantInformation - a model defined in Swagger - """ - - self._merchant_descriptor = None - self._card_acceptor_reference_number = None - self._category_code = None - self._vat_registration_number = None - - if merchant_descriptor is not None: - self.merchant_descriptor = merchant_descriptor - if card_acceptor_reference_number is not None: - self.card_acceptor_reference_number = card_acceptor_reference_number - if category_code is not None: - self.category_code = category_code - if vat_registration_number is not None: - self.vat_registration_number = vat_registration_number - - @property - def merchant_descriptor(self): - """ - Gets the merchant_descriptor of this V2paymentsidcapturesMerchantInformation. - - :return: The merchant_descriptor of this V2paymentsidcapturesMerchantInformation. - :rtype: V2paymentsMerchantInformationMerchantDescriptor - """ - return self._merchant_descriptor - - @merchant_descriptor.setter - def merchant_descriptor(self, merchant_descriptor): - """ - Sets the merchant_descriptor of this V2paymentsidcapturesMerchantInformation. - - :param merchant_descriptor: The merchant_descriptor of this V2paymentsidcapturesMerchantInformation. - :type: V2paymentsMerchantInformationMerchantDescriptor - """ - - self._merchant_descriptor = merchant_descriptor - - @property - def card_acceptor_reference_number(self): - """ - Gets the card_acceptor_reference_number of this V2paymentsidcapturesMerchantInformation. - Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The card_acceptor_reference_number of this V2paymentsidcapturesMerchantInformation. - :rtype: str - """ - return self._card_acceptor_reference_number - - @card_acceptor_reference_number.setter - def card_acceptor_reference_number(self, card_acceptor_reference_number): - """ - Sets the card_acceptor_reference_number of this V2paymentsidcapturesMerchantInformation. - Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param card_acceptor_reference_number: The card_acceptor_reference_number of this V2paymentsidcapturesMerchantInformation. - :type: str - """ - if card_acceptor_reference_number is not None and len(card_acceptor_reference_number) > 25: - raise ValueError("Invalid value for `card_acceptor_reference_number`, length must be less than or equal to `25`") - - self._card_acceptor_reference_number = card_acceptor_reference_number - - @property - def category_code(self): - """ - Gets the category_code of this V2paymentsidcapturesMerchantInformation. - Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The category_code of this V2paymentsidcapturesMerchantInformation. - :rtype: int - """ - return self._category_code - - @category_code.setter - def category_code(self, category_code): - """ - Sets the category_code of this V2paymentsidcapturesMerchantInformation. - Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param category_code: The category_code of this V2paymentsidcapturesMerchantInformation. - :type: int - """ - if category_code is not None and category_code > 9999: - raise ValueError("Invalid value for `category_code`, must be a value less than or equal to `9999`") - - self._category_code = category_code - - @property - def vat_registration_number(self): - """ - Gets the vat_registration_number of this V2paymentsidcapturesMerchantInformation. - Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_registration_number of this V2paymentsidcapturesMerchantInformation. - :rtype: str - """ - return self._vat_registration_number - - @vat_registration_number.setter - def vat_registration_number(self, vat_registration_number): - """ - Sets the vat_registration_number of this V2paymentsidcapturesMerchantInformation. - Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_registration_number: The vat_registration_number of this V2paymentsidcapturesMerchantInformation. - :type: str - """ - if vat_registration_number is not None and len(vat_registration_number) > 21: - raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `21`") - - self._vat_registration_number = vat_registration_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesMerchantInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_order_information.py b/CyberSource/models/v2paymentsidcaptures_order_information.py deleted file mode 100644 index c38602e7..00000000 --- a/CyberSource/models/v2paymentsidcaptures_order_information.py +++ /dev/null @@ -1,253 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesOrderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'amount_details': 'V2paymentsidcapturesOrderInformationAmountDetails', - 'bill_to': 'V2paymentsidcapturesOrderInformationBillTo', - 'ship_to': 'V2paymentsidcapturesOrderInformationShipTo', - 'line_items': 'list[V2paymentsOrderInformationLineItems]', - 'invoice_details': 'V2paymentsidcapturesOrderInformationInvoiceDetails', - 'shipping_details': 'V2paymentsidcapturesOrderInformationShippingDetails' - } - - attribute_map = { - 'amount_details': 'amountDetails', - 'bill_to': 'billTo', - 'ship_to': 'shipTo', - 'line_items': 'lineItems', - 'invoice_details': 'invoiceDetails', - 'shipping_details': 'shippingDetails' - } - - def __init__(self, amount_details=None, bill_to=None, ship_to=None, line_items=None, invoice_details=None, shipping_details=None): - """ - V2paymentsidcapturesOrderInformation - a model defined in Swagger - """ - - self._amount_details = None - self._bill_to = None - self._ship_to = None - self._line_items = None - self._invoice_details = None - self._shipping_details = None - - if amount_details is not None: - self.amount_details = amount_details - if bill_to is not None: - self.bill_to = bill_to - if ship_to is not None: - self.ship_to = ship_to - if line_items is not None: - self.line_items = line_items - if invoice_details is not None: - self.invoice_details = invoice_details - if shipping_details is not None: - self.shipping_details = shipping_details - - @property - def amount_details(self): - """ - Gets the amount_details of this V2paymentsidcapturesOrderInformation. - - :return: The amount_details of this V2paymentsidcapturesOrderInformation. - :rtype: V2paymentsidcapturesOrderInformationAmountDetails - """ - return self._amount_details - - @amount_details.setter - def amount_details(self, amount_details): - """ - Sets the amount_details of this V2paymentsidcapturesOrderInformation. - - :param amount_details: The amount_details of this V2paymentsidcapturesOrderInformation. - :type: V2paymentsidcapturesOrderInformationAmountDetails - """ - - self._amount_details = amount_details - - @property - def bill_to(self): - """ - Gets the bill_to of this V2paymentsidcapturesOrderInformation. - - :return: The bill_to of this V2paymentsidcapturesOrderInformation. - :rtype: V2paymentsidcapturesOrderInformationBillTo - """ - return self._bill_to - - @bill_to.setter - def bill_to(self, bill_to): - """ - Sets the bill_to of this V2paymentsidcapturesOrderInformation. - - :param bill_to: The bill_to of this V2paymentsidcapturesOrderInformation. - :type: V2paymentsidcapturesOrderInformationBillTo - """ - - self._bill_to = bill_to - - @property - def ship_to(self): - """ - Gets the ship_to of this V2paymentsidcapturesOrderInformation. - - :return: The ship_to of this V2paymentsidcapturesOrderInformation. - :rtype: V2paymentsidcapturesOrderInformationShipTo - """ - return self._ship_to - - @ship_to.setter - def ship_to(self, ship_to): - """ - Sets the ship_to of this V2paymentsidcapturesOrderInformation. - - :param ship_to: The ship_to of this V2paymentsidcapturesOrderInformation. - :type: V2paymentsidcapturesOrderInformationShipTo - """ - - self._ship_to = ship_to - - @property - def line_items(self): - """ - Gets the line_items of this V2paymentsidcapturesOrderInformation. - - :return: The line_items of this V2paymentsidcapturesOrderInformation. - :rtype: list[V2paymentsOrderInformationLineItems] - """ - return self._line_items - - @line_items.setter - def line_items(self, line_items): - """ - Sets the line_items of this V2paymentsidcapturesOrderInformation. - - :param line_items: The line_items of this V2paymentsidcapturesOrderInformation. - :type: list[V2paymentsOrderInformationLineItems] - """ - - self._line_items = line_items - - @property - def invoice_details(self): - """ - Gets the invoice_details of this V2paymentsidcapturesOrderInformation. - - :return: The invoice_details of this V2paymentsidcapturesOrderInformation. - :rtype: V2paymentsidcapturesOrderInformationInvoiceDetails - """ - return self._invoice_details - - @invoice_details.setter - def invoice_details(self, invoice_details): - """ - Sets the invoice_details of this V2paymentsidcapturesOrderInformation. - - :param invoice_details: The invoice_details of this V2paymentsidcapturesOrderInformation. - :type: V2paymentsidcapturesOrderInformationInvoiceDetails - """ - - self._invoice_details = invoice_details - - @property - def shipping_details(self): - """ - Gets the shipping_details of this V2paymentsidcapturesOrderInformation. - - :return: The shipping_details of this V2paymentsidcapturesOrderInformation. - :rtype: V2paymentsidcapturesOrderInformationShippingDetails - """ - return self._shipping_details - - @shipping_details.setter - def shipping_details(self, shipping_details): - """ - Sets the shipping_details of this V2paymentsidcapturesOrderInformation. - - :param shipping_details: The shipping_details of this V2paymentsidcapturesOrderInformation. - :type: V2paymentsidcapturesOrderInformationShippingDetails - """ - - self._shipping_details = shipping_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesOrderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_order_information_amount_details.py b/CyberSource/models/v2paymentsidcaptures_order_information_amount_details.py deleted file mode 100644 index 8375c379..00000000 --- a/CyberSource/models/v2paymentsidcaptures_order_information_amount_details.py +++ /dev/null @@ -1,569 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesOrderInformationAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'total_amount': 'str', - 'currency': 'str', - 'discount_amount': 'str', - 'duty_amount': 'str', - 'tax_amount': 'str', - 'national_tax_included': 'str', - 'tax_applied_after_discount': 'str', - 'tax_applied_level': 'str', - 'tax_type_code': 'str', - 'freight_amount': 'str', - 'foreign_amount': 'str', - 'foreign_currency': 'str', - 'exchange_rate': 'str', - 'exchange_rate_time_stamp': 'str', - 'amex_additional_amounts': 'list[V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts]', - 'tax_details': 'list[V2paymentsOrderInformationAmountDetailsTaxDetails]' - } - - attribute_map = { - 'total_amount': 'totalAmount', - 'currency': 'currency', - 'discount_amount': 'discountAmount', - 'duty_amount': 'dutyAmount', - 'tax_amount': 'taxAmount', - 'national_tax_included': 'nationalTaxIncluded', - 'tax_applied_after_discount': 'taxAppliedAfterDiscount', - 'tax_applied_level': 'taxAppliedLevel', - 'tax_type_code': 'taxTypeCode', - 'freight_amount': 'freightAmount', - 'foreign_amount': 'foreignAmount', - 'foreign_currency': 'foreignCurrency', - 'exchange_rate': 'exchangeRate', - 'exchange_rate_time_stamp': 'exchangeRateTimeStamp', - 'amex_additional_amounts': 'amexAdditionalAmounts', - 'tax_details': 'taxDetails' - } - - def __init__(self, total_amount=None, currency=None, discount_amount=None, duty_amount=None, tax_amount=None, national_tax_included=None, tax_applied_after_discount=None, tax_applied_level=None, tax_type_code=None, freight_amount=None, foreign_amount=None, foreign_currency=None, exchange_rate=None, exchange_rate_time_stamp=None, amex_additional_amounts=None, tax_details=None): - """ - V2paymentsidcapturesOrderInformationAmountDetails - a model defined in Swagger - """ - - self._total_amount = None - self._currency = None - self._discount_amount = None - self._duty_amount = None - self._tax_amount = None - self._national_tax_included = None - self._tax_applied_after_discount = None - self._tax_applied_level = None - self._tax_type_code = None - self._freight_amount = None - self._foreign_amount = None - self._foreign_currency = None - self._exchange_rate = None - self._exchange_rate_time_stamp = None - self._amex_additional_amounts = None - self._tax_details = None - - if total_amount is not None: - self.total_amount = total_amount - if currency is not None: - self.currency = currency - if discount_amount is not None: - self.discount_amount = discount_amount - if duty_amount is not None: - self.duty_amount = duty_amount - if tax_amount is not None: - self.tax_amount = tax_amount - if national_tax_included is not None: - self.national_tax_included = national_tax_included - if tax_applied_after_discount is not None: - self.tax_applied_after_discount = tax_applied_after_discount - if tax_applied_level is not None: - self.tax_applied_level = tax_applied_level - if tax_type_code is not None: - self.tax_type_code = tax_type_code - if freight_amount is not None: - self.freight_amount = freight_amount - if foreign_amount is not None: - self.foreign_amount = foreign_amount - if foreign_currency is not None: - self.foreign_currency = foreign_currency - if exchange_rate is not None: - self.exchange_rate = exchange_rate - if exchange_rate_time_stamp is not None: - self.exchange_rate_time_stamp = exchange_rate_time_stamp - if amex_additional_amounts is not None: - self.amex_additional_amounts = amex_additional_amounts - if tax_details is not None: - self.tax_details = tax_details - - @property - def total_amount(self): - """ - Gets the total_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The total_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param total_amount: The total_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if total_amount is not None and len(total_amount) > 19: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") - - self._total_amount = total_amount - - @property - def currency(self): - """ - Gets the currency of this V2paymentsidcapturesOrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this V2paymentsidcapturesOrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - @property - def discount_amount(self): - """ - Gets the discount_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The discount_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._discount_amount - - @discount_amount.setter - def discount_amount(self, discount_amount): - """ - Sets the discount_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param discount_amount: The discount_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if discount_amount is not None and len(discount_amount) > 15: - raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `15`") - - self._discount_amount = discount_amount - - @property - def duty_amount(self): - """ - Gets the duty_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The duty_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._duty_amount - - @duty_amount.setter - def duty_amount(self, duty_amount): - """ - Sets the duty_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param duty_amount: The duty_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if duty_amount is not None and len(duty_amount) > 15: - raise ValueError("Invalid value for `duty_amount`, length must be less than or equal to `15`") - - self._duty_amount = duty_amount - - @property - def tax_amount(self): - """ - Gets the tax_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The tax_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._tax_amount - - @tax_amount.setter - def tax_amount(self, tax_amount): - """ - Sets the tax_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param tax_amount: The tax_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if tax_amount is not None and len(tax_amount) > 12: - raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `12`") - - self._tax_amount = tax_amount - - @property - def national_tax_included(self): - """ - Gets the national_tax_included of this V2paymentsidcapturesOrderInformationAmountDetails. - Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The national_tax_included of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._national_tax_included - - @national_tax_included.setter - def national_tax_included(self, national_tax_included): - """ - Sets the national_tax_included of this V2paymentsidcapturesOrderInformationAmountDetails. - Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param national_tax_included: The national_tax_included of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if national_tax_included is not None and len(national_tax_included) > 1: - raise ValueError("Invalid value for `national_tax_included`, length must be less than or equal to `1`") - - self._national_tax_included = national_tax_included - - @property - def tax_applied_after_discount(self): - """ - Gets the tax_applied_after_discount of this V2paymentsidcapturesOrderInformationAmountDetails. - Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The tax_applied_after_discount of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._tax_applied_after_discount - - @tax_applied_after_discount.setter - def tax_applied_after_discount(self, tax_applied_after_discount): - """ - Sets the tax_applied_after_discount of this V2paymentsidcapturesOrderInformationAmountDetails. - Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param tax_applied_after_discount: The tax_applied_after_discount of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if tax_applied_after_discount is not None and len(tax_applied_after_discount) > 1: - raise ValueError("Invalid value for `tax_applied_after_discount`, length must be less than or equal to `1`") - - self._tax_applied_after_discount = tax_applied_after_discount - - @property - def tax_applied_level(self): - """ - Gets the tax_applied_level of this V2paymentsidcapturesOrderInformationAmountDetails. - Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The tax_applied_level of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._tax_applied_level - - @tax_applied_level.setter - def tax_applied_level(self, tax_applied_level): - """ - Sets the tax_applied_level of this V2paymentsidcapturesOrderInformationAmountDetails. - Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param tax_applied_level: The tax_applied_level of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if tax_applied_level is not None and len(tax_applied_level) > 1: - raise ValueError("Invalid value for `tax_applied_level`, length must be less than or equal to `1`") - - self._tax_applied_level = tax_applied_level - - @property - def tax_type_code(self): - """ - Gets the tax_type_code of this V2paymentsidcapturesOrderInformationAmountDetails. - For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The tax_type_code of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._tax_type_code - - @tax_type_code.setter - def tax_type_code(self, tax_type_code): - """ - Sets the tax_type_code of this V2paymentsidcapturesOrderInformationAmountDetails. - For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param tax_type_code: The tax_type_code of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if tax_type_code is not None and len(tax_type_code) > 3: - raise ValueError("Invalid value for `tax_type_code`, length must be less than or equal to `3`") - - self._tax_type_code = tax_type_code - - @property - def freight_amount(self): - """ - Gets the freight_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The freight_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._freight_amount - - @freight_amount.setter - def freight_amount(self, freight_amount): - """ - Sets the freight_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param freight_amount: The freight_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if freight_amount is not None and len(freight_amount) > 13: - raise ValueError("Invalid value for `freight_amount`, length must be less than or equal to `13`") - - self._freight_amount = freight_amount - - @property - def foreign_amount(self): - """ - Gets the foreign_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The foreign_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._foreign_amount - - @foreign_amount.setter - def foreign_amount(self, foreign_amount): - """ - Sets the foreign_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param foreign_amount: The foreign_amount of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if foreign_amount is not None and len(foreign_amount) > 15: - raise ValueError("Invalid value for `foreign_amount`, length must be less than or equal to `15`") - - self._foreign_amount = foreign_amount - - @property - def foreign_currency(self): - """ - Gets the foreign_currency of this V2paymentsidcapturesOrderInformationAmountDetails. - Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The foreign_currency of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._foreign_currency - - @foreign_currency.setter - def foreign_currency(self, foreign_currency): - """ - Sets the foreign_currency of this V2paymentsidcapturesOrderInformationAmountDetails. - Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param foreign_currency: The foreign_currency of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if foreign_currency is not None and len(foreign_currency) > 5: - raise ValueError("Invalid value for `foreign_currency`, length must be less than or equal to `5`") - - self._foreign_currency = foreign_currency - - @property - def exchange_rate(self): - """ - Gets the exchange_rate of this V2paymentsidcapturesOrderInformationAmountDetails. - Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The exchange_rate of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._exchange_rate - - @exchange_rate.setter - def exchange_rate(self, exchange_rate): - """ - Sets the exchange_rate of this V2paymentsidcapturesOrderInformationAmountDetails. - Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param exchange_rate: The exchange_rate of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if exchange_rate is not None and len(exchange_rate) > 13: - raise ValueError("Invalid value for `exchange_rate`, length must be less than or equal to `13`") - - self._exchange_rate = exchange_rate - - @property - def exchange_rate_time_stamp(self): - """ - Gets the exchange_rate_time_stamp of this V2paymentsidcapturesOrderInformationAmountDetails. - Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The exchange_rate_time_stamp of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: str - """ - return self._exchange_rate_time_stamp - - @exchange_rate_time_stamp.setter - def exchange_rate_time_stamp(self, exchange_rate_time_stamp): - """ - Sets the exchange_rate_time_stamp of this V2paymentsidcapturesOrderInformationAmountDetails. - Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param exchange_rate_time_stamp: The exchange_rate_time_stamp of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: str - """ - if exchange_rate_time_stamp is not None and len(exchange_rate_time_stamp) > 14: - raise ValueError("Invalid value for `exchange_rate_time_stamp`, length must be less than or equal to `14`") - - self._exchange_rate_time_stamp = exchange_rate_time_stamp - - @property - def amex_additional_amounts(self): - """ - Gets the amex_additional_amounts of this V2paymentsidcapturesOrderInformationAmountDetails. - - :return: The amex_additional_amounts of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: list[V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts] - """ - return self._amex_additional_amounts - - @amex_additional_amounts.setter - def amex_additional_amounts(self, amex_additional_amounts): - """ - Sets the amex_additional_amounts of this V2paymentsidcapturesOrderInformationAmountDetails. - - :param amex_additional_amounts: The amex_additional_amounts of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: list[V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts] - """ - - self._amex_additional_amounts = amex_additional_amounts - - @property - def tax_details(self): - """ - Gets the tax_details of this V2paymentsidcapturesOrderInformationAmountDetails. - - :return: The tax_details of this V2paymentsidcapturesOrderInformationAmountDetails. - :rtype: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - return self._tax_details - - @tax_details.setter - def tax_details(self, tax_details): - """ - Sets the tax_details of this V2paymentsidcapturesOrderInformationAmountDetails. - - :param tax_details: The tax_details of this V2paymentsidcapturesOrderInformationAmountDetails. - :type: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - - self._tax_details = tax_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesOrderInformationAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_order_information_bill_to.py b/CyberSource/models/v2paymentsidcaptures_order_information_bill_to.py deleted file mode 100644 index f9a9e718..00000000 --- a/CyberSource/models/v2paymentsidcaptures_order_information_bill_to.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesOrderInformationBillTo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'first_name': 'str', - 'last_name': 'str', - 'company': 'str', - 'address1': 'str', - 'address2': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'postal_code': 'str', - 'country': 'str', - 'email': 'str', - 'phone_number': 'str' - } - - attribute_map = { - 'first_name': 'firstName', - 'last_name': 'lastName', - 'company': 'company', - 'address1': 'address1', - 'address2': 'address2', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'postal_code': 'postalCode', - 'country': 'country', - 'email': 'email', - 'phone_number': 'phoneNumber' - } - - def __init__(self, first_name=None, last_name=None, company=None, address1=None, address2=None, locality=None, administrative_area=None, postal_code=None, country=None, email=None, phone_number=None): - """ - V2paymentsidcapturesOrderInformationBillTo - a model defined in Swagger - """ - - self._first_name = None - self._last_name = None - self._company = None - self._address1 = None - self._address2 = None - self._locality = None - self._administrative_area = None - self._postal_code = None - self._country = None - self._email = None - self._phone_number = None - - if first_name is not None: - self.first_name = first_name - if last_name is not None: - self.last_name = last_name - if company is not None: - self.company = company - if address1 is not None: - self.address1 = address1 - if address2 is not None: - self.address2 = address2 - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if postal_code is not None: - self.postal_code = postal_code - if country is not None: - self.country = country - if email is not None: - self.email = email - if phone_number is not None: - self.phone_number = phone_number - - @property - def first_name(self): - """ - Gets the first_name of this V2paymentsidcapturesOrderInformationBillTo. - Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The first_name of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """ - Sets the first_name of this V2paymentsidcapturesOrderInformationBillTo. - Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param first_name: The first_name of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if first_name is not None and len(first_name) > 60: - raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") - - self._first_name = first_name - - @property - def last_name(self): - """ - Gets the last_name of this V2paymentsidcapturesOrderInformationBillTo. - Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The last_name of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this V2paymentsidcapturesOrderInformationBillTo. - Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param last_name: The last_name of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if last_name is not None and len(last_name) > 60: - raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") - - self._last_name = last_name - - @property - def company(self): - """ - Gets the company of this V2paymentsidcapturesOrderInformationBillTo. - Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The company of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._company - - @company.setter - def company(self, company): - """ - Sets the company of this V2paymentsidcapturesOrderInformationBillTo. - Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param company: The company of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if company is not None and len(company) > 60: - raise ValueError("Invalid value for `company`, length must be less than or equal to `60`") - - self._company = company - - @property - def address1(self): - """ - Gets the address1 of this V2paymentsidcapturesOrderInformationBillTo. - First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The address1 of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this V2paymentsidcapturesOrderInformationBillTo. - First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param address1: The address1 of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if address1 is not None and len(address1) > 60: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") - - self._address1 = address1 - - @property - def address2(self): - """ - Gets the address2 of this V2paymentsidcapturesOrderInformationBillTo. - Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The address2 of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._address2 - - @address2.setter - def address2(self, address2): - """ - Sets the address2 of this V2paymentsidcapturesOrderInformationBillTo. - Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param address2: The address2 of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if address2 is not None and len(address2) > 60: - raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") - - self._address2 = address2 - - @property - def locality(self): - """ - Gets the locality of this V2paymentsidcapturesOrderInformationBillTo. - City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The locality of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this V2paymentsidcapturesOrderInformationBillTo. - City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param locality: The locality of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if locality is not None and len(locality) > 50: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2paymentsidcapturesOrderInformationBillTo. - State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The administrative_area of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2paymentsidcapturesOrderInformationBillTo. - State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param administrative_area: The administrative_area of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 2: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") - - self._administrative_area = administrative_area - - @property - def postal_code(self): - """ - Gets the postal_code of this V2paymentsidcapturesOrderInformationBillTo. - Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The postal_code of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2paymentsidcapturesOrderInformationBillTo. - Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param postal_code: The postal_code of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if postal_code is not None and len(postal_code) > 10: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") - - self._postal_code = postal_code - - @property - def country(self): - """ - Gets the country of this V2paymentsidcapturesOrderInformationBillTo. - Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The country of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this V2paymentsidcapturesOrderInformationBillTo. - Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param country: The country of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - @property - def email(self): - """ - Gets the email of this V2paymentsidcapturesOrderInformationBillTo. - Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The email of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """ - Sets the email of this V2paymentsidcapturesOrderInformationBillTo. - Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param email: The email of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if email is not None and len(email) > 255: - raise ValueError("Invalid value for `email`, length must be less than or equal to `255`") - - self._email = email - - @property - def phone_number(self): - """ - Gets the phone_number of this V2paymentsidcapturesOrderInformationBillTo. - Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The phone_number of this V2paymentsidcapturesOrderInformationBillTo. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this V2paymentsidcapturesOrderInformationBillTo. - Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param phone_number: The phone_number of this V2paymentsidcapturesOrderInformationBillTo. - :type: str - """ - if phone_number is not None and len(phone_number) > 15: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") - - self._phone_number = phone_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesOrderInformationBillTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_order_information_invoice_details.py b/CyberSource/models/v2paymentsidcaptures_order_information_invoice_details.py deleted file mode 100644 index b8c77230..00000000 --- a/CyberSource/models/v2paymentsidcaptures_order_information_invoice_details.py +++ /dev/null @@ -1,301 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesOrderInformationInvoiceDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'purchase_order_number': 'str', - 'purchase_order_date': 'str', - 'purchase_contact_name': 'str', - 'taxable': 'bool', - 'vat_invoice_reference_number': 'str', - 'commodity_code': 'str', - 'transaction_advice_addendum': 'list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]' - } - - attribute_map = { - 'purchase_order_number': 'purchaseOrderNumber', - 'purchase_order_date': 'purchaseOrderDate', - 'purchase_contact_name': 'purchaseContactName', - 'taxable': 'taxable', - 'vat_invoice_reference_number': 'vatInvoiceReferenceNumber', - 'commodity_code': 'commodityCode', - 'transaction_advice_addendum': 'transactionAdviceAddendum' - } - - def __init__(self, purchase_order_number=None, purchase_order_date=None, purchase_contact_name=None, taxable=None, vat_invoice_reference_number=None, commodity_code=None, transaction_advice_addendum=None): - """ - V2paymentsidcapturesOrderInformationInvoiceDetails - a model defined in Swagger - """ - - self._purchase_order_number = None - self._purchase_order_date = None - self._purchase_contact_name = None - self._taxable = None - self._vat_invoice_reference_number = None - self._commodity_code = None - self._transaction_advice_addendum = None - - if purchase_order_number is not None: - self.purchase_order_number = purchase_order_number - if purchase_order_date is not None: - self.purchase_order_date = purchase_order_date - if purchase_contact_name is not None: - self.purchase_contact_name = purchase_contact_name - if taxable is not None: - self.taxable = taxable - if vat_invoice_reference_number is not None: - self.vat_invoice_reference_number = vat_invoice_reference_number - if commodity_code is not None: - self.commodity_code = commodity_code - if transaction_advice_addendum is not None: - self.transaction_advice_addendum = transaction_advice_addendum - - @property - def purchase_order_number(self): - """ - Gets the purchase_order_number of this V2paymentsidcapturesOrderInformationInvoiceDetails. - Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The purchase_order_number of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :rtype: str - """ - return self._purchase_order_number - - @purchase_order_number.setter - def purchase_order_number(self, purchase_order_number): - """ - Sets the purchase_order_number of this V2paymentsidcapturesOrderInformationInvoiceDetails. - Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param purchase_order_number: The purchase_order_number of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :type: str - """ - if purchase_order_number is not None and len(purchase_order_number) > 25: - raise ValueError("Invalid value for `purchase_order_number`, length must be less than or equal to `25`") - - self._purchase_order_number = purchase_order_number - - @property - def purchase_order_date(self): - """ - Gets the purchase_order_date of this V2paymentsidcapturesOrderInformationInvoiceDetails. - Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The purchase_order_date of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :rtype: str - """ - return self._purchase_order_date - - @purchase_order_date.setter - def purchase_order_date(self, purchase_order_date): - """ - Sets the purchase_order_date of this V2paymentsidcapturesOrderInformationInvoiceDetails. - Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param purchase_order_date: The purchase_order_date of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :type: str - """ - if purchase_order_date is not None and len(purchase_order_date) > 10: - raise ValueError("Invalid value for `purchase_order_date`, length must be less than or equal to `10`") - - self._purchase_order_date = purchase_order_date - - @property - def purchase_contact_name(self): - """ - Gets the purchase_contact_name of this V2paymentsidcapturesOrderInformationInvoiceDetails. - The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The purchase_contact_name of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :rtype: str - """ - return self._purchase_contact_name - - @purchase_contact_name.setter - def purchase_contact_name(self, purchase_contact_name): - """ - Sets the purchase_contact_name of this V2paymentsidcapturesOrderInformationInvoiceDetails. - The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param purchase_contact_name: The purchase_contact_name of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :type: str - """ - if purchase_contact_name is not None and len(purchase_contact_name) > 36: - raise ValueError("Invalid value for `purchase_contact_name`, length must be less than or equal to `36`") - - self._purchase_contact_name = purchase_contact_name - - @property - def taxable(self): - """ - Gets the taxable of this V2paymentsidcapturesOrderInformationInvoiceDetails. - Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The taxable of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :rtype: bool - """ - return self._taxable - - @taxable.setter - def taxable(self, taxable): - """ - Sets the taxable of this V2paymentsidcapturesOrderInformationInvoiceDetails. - Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param taxable: The taxable of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :type: bool - """ - - self._taxable = taxable - - @property - def vat_invoice_reference_number(self): - """ - Gets the vat_invoice_reference_number of this V2paymentsidcapturesOrderInformationInvoiceDetails. - VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_invoice_reference_number of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :rtype: str - """ - return self._vat_invoice_reference_number - - @vat_invoice_reference_number.setter - def vat_invoice_reference_number(self, vat_invoice_reference_number): - """ - Sets the vat_invoice_reference_number of this V2paymentsidcapturesOrderInformationInvoiceDetails. - VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_invoice_reference_number: The vat_invoice_reference_number of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :type: str - """ - if vat_invoice_reference_number is not None and len(vat_invoice_reference_number) > 15: - raise ValueError("Invalid value for `vat_invoice_reference_number`, length must be less than or equal to `15`") - - self._vat_invoice_reference_number = vat_invoice_reference_number - - @property - def commodity_code(self): - """ - Gets the commodity_code of this V2paymentsidcapturesOrderInformationInvoiceDetails. - International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The commodity_code of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :rtype: str - """ - return self._commodity_code - - @commodity_code.setter - def commodity_code(self, commodity_code): - """ - Sets the commodity_code of this V2paymentsidcapturesOrderInformationInvoiceDetails. - International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param commodity_code: The commodity_code of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :type: str - """ - if commodity_code is not None and len(commodity_code) > 4: - raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `4`") - - self._commodity_code = commodity_code - - @property - def transaction_advice_addendum(self): - """ - Gets the transaction_advice_addendum of this V2paymentsidcapturesOrderInformationInvoiceDetails. - - :return: The transaction_advice_addendum of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :rtype: list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] - """ - return self._transaction_advice_addendum - - @transaction_advice_addendum.setter - def transaction_advice_addendum(self, transaction_advice_addendum): - """ - Sets the transaction_advice_addendum of this V2paymentsidcapturesOrderInformationInvoiceDetails. - - :param transaction_advice_addendum: The transaction_advice_addendum of this V2paymentsidcapturesOrderInformationInvoiceDetails. - :type: list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum] - """ - - self._transaction_advice_addendum = transaction_advice_addendum - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesOrderInformationInvoiceDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_order_information_ship_to.py b/CyberSource/models/v2paymentsidcaptures_order_information_ship_to.py deleted file mode 100644 index 31033046..00000000 --- a/CyberSource/models/v2paymentsidcaptures_order_information_ship_to.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesOrderInformationShipTo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'administrative_area': 'str', - 'country': 'str', - 'postal_code': 'str' - } - - attribute_map = { - 'administrative_area': 'administrativeArea', - 'country': 'country', - 'postal_code': 'postalCode' - } - - def __init__(self, administrative_area=None, country=None, postal_code=None): - """ - V2paymentsidcapturesOrderInformationShipTo - a model defined in Swagger - """ - - self._administrative_area = None - self._country = None - self._postal_code = None - - if administrative_area is not None: - self.administrative_area = administrative_area - if country is not None: - self.country = country - if postal_code is not None: - self.postal_code = postal_code - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2paymentsidcapturesOrderInformationShipTo. - State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. - - :return: The administrative_area of this V2paymentsidcapturesOrderInformationShipTo. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2paymentsidcapturesOrderInformationShipTo. - State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. - - :param administrative_area: The administrative_area of this V2paymentsidcapturesOrderInformationShipTo. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 2: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") - - self._administrative_area = administrative_area - - @property - def country(self): - """ - Gets the country of this V2paymentsidcapturesOrderInformationShipTo. - Country of the shipping address. Use the two character ISO Standard Country Codes. - - :return: The country of this V2paymentsidcapturesOrderInformationShipTo. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this V2paymentsidcapturesOrderInformationShipTo. - Country of the shipping address. Use the two character ISO Standard Country Codes. - - :param country: The country of this V2paymentsidcapturesOrderInformationShipTo. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - @property - def postal_code(self): - """ - Gets the postal_code of this V2paymentsidcapturesOrderInformationShipTo. - Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 - - :return: The postal_code of this V2paymentsidcapturesOrderInformationShipTo. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2paymentsidcapturesOrderInformationShipTo. - Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 - - :param postal_code: The postal_code of this V2paymentsidcapturesOrderInformationShipTo. - :type: str - """ - if postal_code is not None and len(postal_code) > 10: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") - - self._postal_code = postal_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesOrderInformationShipTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_order_information_shipping_details.py b/CyberSource/models/v2paymentsidcaptures_order_information_shipping_details.py deleted file mode 100644 index 9f5e7d0b..00000000 --- a/CyberSource/models/v2paymentsidcaptures_order_information_shipping_details.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesOrderInformationShippingDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'ship_from_postal_code': 'str' - } - - attribute_map = { - 'ship_from_postal_code': 'shipFromPostalCode' - } - - def __init__(self, ship_from_postal_code=None): - """ - V2paymentsidcapturesOrderInformationShippingDetails - a model defined in Swagger - """ - - self._ship_from_postal_code = None - - if ship_from_postal_code is not None: - self.ship_from_postal_code = ship_from_postal_code - - @property - def ship_from_postal_code(self): - """ - Gets the ship_from_postal_code of this V2paymentsidcapturesOrderInformationShippingDetails. - Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. - - :return: The ship_from_postal_code of this V2paymentsidcapturesOrderInformationShippingDetails. - :rtype: str - """ - return self._ship_from_postal_code - - @ship_from_postal_code.setter - def ship_from_postal_code(self, ship_from_postal_code): - """ - Sets the ship_from_postal_code of this V2paymentsidcapturesOrderInformationShippingDetails. - Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. - - :param ship_from_postal_code: The ship_from_postal_code of this V2paymentsidcapturesOrderInformationShippingDetails. - :type: str - """ - if ship_from_postal_code is not None and len(ship_from_postal_code) > 10: - raise ValueError("Invalid value for `ship_from_postal_code`, length must be less than or equal to `10`") - - self._ship_from_postal_code = ship_from_postal_code - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesOrderInformationShippingDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_payment_information.py b/CyberSource/models/v2paymentsidcaptures_payment_information.py deleted file mode 100644 index 99824e94..00000000 --- a/CyberSource/models/v2paymentsidcaptures_payment_information.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesPaymentInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'customer': 'V2paymentsPaymentInformationCustomer' - } - - attribute_map = { - 'customer': 'customer' - } - - def __init__(self, customer=None): - """ - V2paymentsidcapturesPaymentInformation - a model defined in Swagger - """ - - self._customer = None - - if customer is not None: - self.customer = customer - - @property - def customer(self): - """ - Gets the customer of this V2paymentsidcapturesPaymentInformation. - - :return: The customer of this V2paymentsidcapturesPaymentInformation. - :rtype: V2paymentsPaymentInformationCustomer - """ - return self._customer - - @customer.setter - def customer(self, customer): - """ - Sets the customer of this V2paymentsidcapturesPaymentInformation. - - :param customer: The customer of this V2paymentsidcapturesPaymentInformation. - :type: V2paymentsPaymentInformationCustomer - """ - - self._customer = customer - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesPaymentInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_point_of_sale_information.py b/CyberSource/models/v2paymentsidcaptures_point_of_sale_information.py deleted file mode 100644 index 95b9d879..00000000 --- a/CyberSource/models/v2paymentsidcaptures_point_of_sale_information.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesPointOfSaleInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'emv': 'V2paymentsidcapturesPointOfSaleInformationEmv', - 'amex_capn_data': 'str' - } - - attribute_map = { - 'emv': 'emv', - 'amex_capn_data': 'amexCapnData' - } - - def __init__(self, emv=None, amex_capn_data=None): - """ - V2paymentsidcapturesPointOfSaleInformation - a model defined in Swagger - """ - - self._emv = None - self._amex_capn_data = None - - if emv is not None: - self.emv = emv - if amex_capn_data is not None: - self.amex_capn_data = amex_capn_data - - @property - def emv(self): - """ - Gets the emv of this V2paymentsidcapturesPointOfSaleInformation. - - :return: The emv of this V2paymentsidcapturesPointOfSaleInformation. - :rtype: V2paymentsidcapturesPointOfSaleInformationEmv - """ - return self._emv - - @emv.setter - def emv(self, emv): - """ - Sets the emv of this V2paymentsidcapturesPointOfSaleInformation. - - :param emv: The emv of this V2paymentsidcapturesPointOfSaleInformation. - :type: V2paymentsidcapturesPointOfSaleInformationEmv - """ - - self._emv = emv - - @property - def amex_capn_data(self): - """ - Gets the amex_capn_data of this V2paymentsidcapturesPointOfSaleInformation. - Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. - - :return: The amex_capn_data of this V2paymentsidcapturesPointOfSaleInformation. - :rtype: str - """ - return self._amex_capn_data - - @amex_capn_data.setter - def amex_capn_data(self, amex_capn_data): - """ - Sets the amex_capn_data of this V2paymentsidcapturesPointOfSaleInformation. - Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. - - :param amex_capn_data: The amex_capn_data of this V2paymentsidcapturesPointOfSaleInformation. - :type: str - """ - if amex_capn_data is not None and len(amex_capn_data) > 12: - raise ValueError("Invalid value for `amex_capn_data`, length must be less than or equal to `12`") - - self._amex_capn_data = amex_capn_data - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesPointOfSaleInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_point_of_sale_information_emv.py b/CyberSource/models/v2paymentsidcaptures_point_of_sale_information_emv.py deleted file mode 100644 index e4b05ab2..00000000 --- a/CyberSource/models/v2paymentsidcaptures_point_of_sale_information_emv.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesPointOfSaleInformationEmv(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'tags': 'str', - 'fallback': 'bool' - } - - attribute_map = { - 'tags': 'tags', - 'fallback': 'fallback' - } - - def __init__(self, tags=None, fallback=False): - """ - V2paymentsidcapturesPointOfSaleInformationEmv - a model defined in Swagger - """ - - self._tags = None - self._fallback = None - - if tags is not None: - self.tags = tags - if fallback is not None: - self.fallback = fallback - - @property - def tags(self): - """ - Gets the tags of this V2paymentsidcapturesPointOfSaleInformationEmv. - EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram - - :return: The tags of this V2paymentsidcapturesPointOfSaleInformationEmv. - :rtype: str - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this V2paymentsidcapturesPointOfSaleInformationEmv. - EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram - - :param tags: The tags of this V2paymentsidcapturesPointOfSaleInformationEmv. - :type: str - """ - if tags is not None and len(tags) > 1998: - raise ValueError("Invalid value for `tags`, length must be less than or equal to `1998`") - - self._tags = tags - - @property - def fallback(self): - """ - Gets the fallback of this V2paymentsidcapturesPointOfSaleInformationEmv. - Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. - - :return: The fallback of this V2paymentsidcapturesPointOfSaleInformationEmv. - :rtype: bool - """ - return self._fallback - - @fallback.setter - def fallback(self, fallback): - """ - Sets the fallback of this V2paymentsidcapturesPointOfSaleInformationEmv. - Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. - - :param fallback: The fallback of this V2paymentsidcapturesPointOfSaleInformationEmv. - :type: bool - """ - - self._fallback = fallback - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesPointOfSaleInformationEmv): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_processing_information.py b/CyberSource/models/v2paymentsidcaptures_processing_information.py deleted file mode 100644 index e859e085..00000000 --- a/CyberSource/models/v2paymentsidcaptures_processing_information.py +++ /dev/null @@ -1,355 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesProcessingInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'payment_solution': 'str', - 'reconciliation_id': 'str', - 'link_id': 'str', - 'report_group': 'str', - 'visa_checkout_id': 'str', - 'purchase_level': 'str', - 'issuer': 'V2paymentsProcessingInformationIssuer', - 'authorization_options': 'V2paymentsidcapturesProcessingInformationAuthorizationOptions', - 'capture_options': 'V2paymentsidcapturesProcessingInformationCaptureOptions' - } - - attribute_map = { - 'payment_solution': 'paymentSolution', - 'reconciliation_id': 'reconciliationId', - 'link_id': 'linkId', - 'report_group': 'reportGroup', - 'visa_checkout_id': 'visaCheckoutId', - 'purchase_level': 'purchaseLevel', - 'issuer': 'issuer', - 'authorization_options': 'authorizationOptions', - 'capture_options': 'captureOptions' - } - - def __init__(self, payment_solution=None, reconciliation_id=None, link_id=None, report_group=None, visa_checkout_id=None, purchase_level=None, issuer=None, authorization_options=None, capture_options=None): - """ - V2paymentsidcapturesProcessingInformation - a model defined in Swagger - """ - - self._payment_solution = None - self._reconciliation_id = None - self._link_id = None - self._report_group = None - self._visa_checkout_id = None - self._purchase_level = None - self._issuer = None - self._authorization_options = None - self._capture_options = None - - if payment_solution is not None: - self.payment_solution = payment_solution - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if link_id is not None: - self.link_id = link_id - if report_group is not None: - self.report_group = report_group - if visa_checkout_id is not None: - self.visa_checkout_id = visa_checkout_id - if purchase_level is not None: - self.purchase_level = purchase_level - if issuer is not None: - self.issuer = issuer - if authorization_options is not None: - self.authorization_options = authorization_options - if capture_options is not None: - self.capture_options = capture_options - - @property - def payment_solution(self): - """ - Gets the payment_solution of this V2paymentsidcapturesProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :return: The payment_solution of this V2paymentsidcapturesProcessingInformation. - :rtype: str - """ - return self._payment_solution - - @payment_solution.setter - def payment_solution(self, payment_solution): - """ - Sets the payment_solution of this V2paymentsidcapturesProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :param payment_solution: The payment_solution of this V2paymentsidcapturesProcessingInformation. - :type: str - """ - if payment_solution is not None and len(payment_solution) > 12: - raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") - - self._payment_solution = payment_solution - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this V2paymentsidcapturesProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :return: The reconciliation_id of this V2paymentsidcapturesProcessingInformation. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this V2paymentsidcapturesProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :param reconciliation_id: The reconciliation_id of this V2paymentsidcapturesProcessingInformation. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def link_id(self): - """ - Gets the link_id of this V2paymentsidcapturesProcessingInformation. - Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. - - :return: The link_id of this V2paymentsidcapturesProcessingInformation. - :rtype: str - """ - return self._link_id - - @link_id.setter - def link_id(self, link_id): - """ - Sets the link_id of this V2paymentsidcapturesProcessingInformation. - Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. - - :param link_id: The link_id of this V2paymentsidcapturesProcessingInformation. - :type: str - """ - if link_id is not None and len(link_id) > 26: - raise ValueError("Invalid value for `link_id`, length must be less than or equal to `26`") - - self._link_id = link_id - - @property - def report_group(self): - """ - Gets the report_group of this V2paymentsidcapturesProcessingInformation. - Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. - - :return: The report_group of this V2paymentsidcapturesProcessingInformation. - :rtype: str - """ - return self._report_group - - @report_group.setter - def report_group(self, report_group): - """ - Sets the report_group of this V2paymentsidcapturesProcessingInformation. - Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. - - :param report_group: The report_group of this V2paymentsidcapturesProcessingInformation. - :type: str - """ - if report_group is not None and len(report_group) > 25: - raise ValueError("Invalid value for `report_group`, length must be less than or equal to `25`") - - self._report_group = report_group - - @property - def visa_checkout_id(self): - """ - Gets the visa_checkout_id of this V2paymentsidcapturesProcessingInformation. - Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. - - :return: The visa_checkout_id of this V2paymentsidcapturesProcessingInformation. - :rtype: str - """ - return self._visa_checkout_id - - @visa_checkout_id.setter - def visa_checkout_id(self, visa_checkout_id): - """ - Sets the visa_checkout_id of this V2paymentsidcapturesProcessingInformation. - Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. - - :param visa_checkout_id: The visa_checkout_id of this V2paymentsidcapturesProcessingInformation. - :type: str - """ - if visa_checkout_id is not None and len(visa_checkout_id) > 48: - raise ValueError("Invalid value for `visa_checkout_id`, length must be less than or equal to `48`") - - self._visa_checkout_id = visa_checkout_id - - @property - def purchase_level(self): - """ - Gets the purchase_level of this V2paymentsidcapturesProcessingInformation. - Set this field to 3 to indicate that the request includes Level III data. - - :return: The purchase_level of this V2paymentsidcapturesProcessingInformation. - :rtype: str - """ - return self._purchase_level - - @purchase_level.setter - def purchase_level(self, purchase_level): - """ - Sets the purchase_level of this V2paymentsidcapturesProcessingInformation. - Set this field to 3 to indicate that the request includes Level III data. - - :param purchase_level: The purchase_level of this V2paymentsidcapturesProcessingInformation. - :type: str - """ - if purchase_level is not None and len(purchase_level) > 1: - raise ValueError("Invalid value for `purchase_level`, length must be less than or equal to `1`") - - self._purchase_level = purchase_level - - @property - def issuer(self): - """ - Gets the issuer of this V2paymentsidcapturesProcessingInformation. - - :return: The issuer of this V2paymentsidcapturesProcessingInformation. - :rtype: V2paymentsProcessingInformationIssuer - """ - return self._issuer - - @issuer.setter - def issuer(self, issuer): - """ - Sets the issuer of this V2paymentsidcapturesProcessingInformation. - - :param issuer: The issuer of this V2paymentsidcapturesProcessingInformation. - :type: V2paymentsProcessingInformationIssuer - """ - - self._issuer = issuer - - @property - def authorization_options(self): - """ - Gets the authorization_options of this V2paymentsidcapturesProcessingInformation. - - :return: The authorization_options of this V2paymentsidcapturesProcessingInformation. - :rtype: V2paymentsidcapturesProcessingInformationAuthorizationOptions - """ - return self._authorization_options - - @authorization_options.setter - def authorization_options(self, authorization_options): - """ - Sets the authorization_options of this V2paymentsidcapturesProcessingInformation. - - :param authorization_options: The authorization_options of this V2paymentsidcapturesProcessingInformation. - :type: V2paymentsidcapturesProcessingInformationAuthorizationOptions - """ - - self._authorization_options = authorization_options - - @property - def capture_options(self): - """ - Gets the capture_options of this V2paymentsidcapturesProcessingInformation. - - :return: The capture_options of this V2paymentsidcapturesProcessingInformation. - :rtype: V2paymentsidcapturesProcessingInformationCaptureOptions - """ - return self._capture_options - - @capture_options.setter - def capture_options(self, capture_options): - """ - Sets the capture_options of this V2paymentsidcapturesProcessingInformation. - - :param capture_options: The capture_options of this V2paymentsidcapturesProcessingInformation. - :type: V2paymentsidcapturesProcessingInformationCaptureOptions - """ - - self._capture_options = capture_options - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesProcessingInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_processing_information_authorization_options.py b/CyberSource/models/v2paymentsidcaptures_processing_information_authorization_options.py deleted file mode 100644 index a61c0de2..00000000 --- a/CyberSource/models/v2paymentsidcaptures_processing_information_authorization_options.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesProcessingInformationAuthorizationOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'auth_type': 'str', - 'verbal_auth_code': 'str', - 'verbal_auth_transaction_id': 'str' - } - - attribute_map = { - 'auth_type': 'authType', - 'verbal_auth_code': 'verbalAuthCode', - 'verbal_auth_transaction_id': 'verbalAuthTransactionId' - } - - def __init__(self, auth_type=None, verbal_auth_code=None, verbal_auth_transaction_id=None): - """ - V2paymentsidcapturesProcessingInformationAuthorizationOptions - a model defined in Swagger - """ - - self._auth_type = None - self._verbal_auth_code = None - self._verbal_auth_transaction_id = None - - if auth_type is not None: - self.auth_type = auth_type - if verbal_auth_code is not None: - self.verbal_auth_code = verbal_auth_code - if verbal_auth_transaction_id is not None: - self.verbal_auth_transaction_id = verbal_auth_transaction_id - - @property - def auth_type(self): - """ - Gets the auth_type of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The auth_type of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - :rtype: str - """ - return self._auth_type - - @auth_type.setter - def auth_type(self, auth_type): - """ - Sets the auth_type of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param auth_type: The auth_type of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - :type: str - """ - if auth_type is not None and len(auth_type) > 15: - raise ValueError("Invalid value for `auth_type`, length must be less than or equal to `15`") - - self._auth_type = auth_type - - @property - def verbal_auth_code(self): - """ - Gets the verbal_auth_code of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The verbal_auth_code of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - :rtype: str - """ - return self._verbal_auth_code - - @verbal_auth_code.setter - def verbal_auth_code(self, verbal_auth_code): - """ - Sets the verbal_auth_code of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param verbal_auth_code: The verbal_auth_code of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - :type: str - """ - if verbal_auth_code is not None and len(verbal_auth_code) > 7: - raise ValueError("Invalid value for `verbal_auth_code`, length must be less than or equal to `7`") - - self._verbal_auth_code = verbal_auth_code - - @property - def verbal_auth_transaction_id(self): - """ - Gets the verbal_auth_transaction_id of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - Transaction ID (TID). - - :return: The verbal_auth_transaction_id of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - :rtype: str - """ - return self._verbal_auth_transaction_id - - @verbal_auth_transaction_id.setter - def verbal_auth_transaction_id(self, verbal_auth_transaction_id): - """ - Sets the verbal_auth_transaction_id of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - Transaction ID (TID). - - :param verbal_auth_transaction_id: The verbal_auth_transaction_id of this V2paymentsidcapturesProcessingInformationAuthorizationOptions. - :type: str - """ - if verbal_auth_transaction_id is not None and len(verbal_auth_transaction_id) > 15: - raise ValueError("Invalid value for `verbal_auth_transaction_id`, length must be less than or equal to `15`") - - self._verbal_auth_transaction_id = verbal_auth_transaction_id - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesProcessingInformationAuthorizationOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidcaptures_processing_information_capture_options.py b/CyberSource/models/v2paymentsidcaptures_processing_information_capture_options.py deleted file mode 100644 index 928ad1d3..00000000 --- a/CyberSource/models/v2paymentsidcaptures_processing_information_capture_options.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidcapturesProcessingInformationCaptureOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'capture_sequence_number': 'float', - 'total_capture_count': 'float' - } - - attribute_map = { - 'capture_sequence_number': 'captureSequenceNumber', - 'total_capture_count': 'totalCaptureCount' - } - - def __init__(self, capture_sequence_number=None, total_capture_count=None): - """ - V2paymentsidcapturesProcessingInformationCaptureOptions - a model defined in Swagger - """ - - self._capture_sequence_number = None - self._total_capture_count = None - - if capture_sequence_number is not None: - self.capture_sequence_number = capture_sequence_number - if total_capture_count is not None: - self.total_capture_count = total_capture_count - - @property - def capture_sequence_number(self): - """ - Gets the capture_sequence_number of this V2paymentsidcapturesProcessingInformationCaptureOptions. - Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 - - :return: The capture_sequence_number of this V2paymentsidcapturesProcessingInformationCaptureOptions. - :rtype: float - """ - return self._capture_sequence_number - - @capture_sequence_number.setter - def capture_sequence_number(self, capture_sequence_number): - """ - Sets the capture_sequence_number of this V2paymentsidcapturesProcessingInformationCaptureOptions. - Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 - - :param capture_sequence_number: The capture_sequence_number of this V2paymentsidcapturesProcessingInformationCaptureOptions. - :type: float - """ - if capture_sequence_number is not None and capture_sequence_number > 99: - raise ValueError("Invalid value for `capture_sequence_number`, must be a value less than or equal to `99`") - if capture_sequence_number is not None and capture_sequence_number < 1: - raise ValueError("Invalid value for `capture_sequence_number`, must be a value greater than or equal to `1`") - - self._capture_sequence_number = capture_sequence_number - - @property - def total_capture_count(self): - """ - Gets the total_capture_count of this V2paymentsidcapturesProcessingInformationCaptureOptions. - Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 - - :return: The total_capture_count of this V2paymentsidcapturesProcessingInformationCaptureOptions. - :rtype: float - """ - return self._total_capture_count - - @total_capture_count.setter - def total_capture_count(self, total_capture_count): - """ - Sets the total_capture_count of this V2paymentsidcapturesProcessingInformationCaptureOptions. - Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 - - :param total_capture_count: The total_capture_count of this V2paymentsidcapturesProcessingInformationCaptureOptions. - :type: float - """ - if total_capture_count is not None and total_capture_count > 99: - raise ValueError("Invalid value for `total_capture_count`, must be a value less than or equal to `99`") - if total_capture_count is not None and total_capture_count < 1: - raise ValueError("Invalid value for `total_capture_count`, must be a value greater than or equal to `1`") - - self._total_capture_count = total_capture_count - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidcapturesProcessingInformationCaptureOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidrefunds_merchant_information.py b/CyberSource/models/v2paymentsidrefunds_merchant_information.py deleted file mode 100644 index 47cbfc07..00000000 --- a/CyberSource/models/v2paymentsidrefunds_merchant_information.py +++ /dev/null @@ -1,213 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidrefundsMerchantInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'merchant_descriptor': 'V2paymentsMerchantInformationMerchantDescriptor', - 'category_code': 'int', - 'vat_registration_number': 'str', - 'card_acceptor_reference_number': 'str' - } - - attribute_map = { - 'merchant_descriptor': 'merchantDescriptor', - 'category_code': 'categoryCode', - 'vat_registration_number': 'vatRegistrationNumber', - 'card_acceptor_reference_number': 'cardAcceptorReferenceNumber' - } - - def __init__(self, merchant_descriptor=None, category_code=None, vat_registration_number=None, card_acceptor_reference_number=None): - """ - V2paymentsidrefundsMerchantInformation - a model defined in Swagger - """ - - self._merchant_descriptor = None - self._category_code = None - self._vat_registration_number = None - self._card_acceptor_reference_number = None - - if merchant_descriptor is not None: - self.merchant_descriptor = merchant_descriptor - if category_code is not None: - self.category_code = category_code - if vat_registration_number is not None: - self.vat_registration_number = vat_registration_number - if card_acceptor_reference_number is not None: - self.card_acceptor_reference_number = card_acceptor_reference_number - - @property - def merchant_descriptor(self): - """ - Gets the merchant_descriptor of this V2paymentsidrefundsMerchantInformation. - - :return: The merchant_descriptor of this V2paymentsidrefundsMerchantInformation. - :rtype: V2paymentsMerchantInformationMerchantDescriptor - """ - return self._merchant_descriptor - - @merchant_descriptor.setter - def merchant_descriptor(self, merchant_descriptor): - """ - Sets the merchant_descriptor of this V2paymentsidrefundsMerchantInformation. - - :param merchant_descriptor: The merchant_descriptor of this V2paymentsidrefundsMerchantInformation. - :type: V2paymentsMerchantInformationMerchantDescriptor - """ - - self._merchant_descriptor = merchant_descriptor - - @property - def category_code(self): - """ - Gets the category_code of this V2paymentsidrefundsMerchantInformation. - Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The category_code of this V2paymentsidrefundsMerchantInformation. - :rtype: int - """ - return self._category_code - - @category_code.setter - def category_code(self, category_code): - """ - Sets the category_code of this V2paymentsidrefundsMerchantInformation. - Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param category_code: The category_code of this V2paymentsidrefundsMerchantInformation. - :type: int - """ - if category_code is not None and category_code > 9999: - raise ValueError("Invalid value for `category_code`, must be a value less than or equal to `9999`") - - self._category_code = category_code - - @property - def vat_registration_number(self): - """ - Gets the vat_registration_number of this V2paymentsidrefundsMerchantInformation. - Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_registration_number of this V2paymentsidrefundsMerchantInformation. - :rtype: str - """ - return self._vat_registration_number - - @vat_registration_number.setter - def vat_registration_number(self, vat_registration_number): - """ - Sets the vat_registration_number of this V2paymentsidrefundsMerchantInformation. - Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_registration_number: The vat_registration_number of this V2paymentsidrefundsMerchantInformation. - :type: str - """ - if vat_registration_number is not None and len(vat_registration_number) > 21: - raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `21`") - - self._vat_registration_number = vat_registration_number - - @property - def card_acceptor_reference_number(self): - """ - Gets the card_acceptor_reference_number of this V2paymentsidrefundsMerchantInformation. - Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The card_acceptor_reference_number of this V2paymentsidrefundsMerchantInformation. - :rtype: str - """ - return self._card_acceptor_reference_number - - @card_acceptor_reference_number.setter - def card_acceptor_reference_number(self, card_acceptor_reference_number): - """ - Sets the card_acceptor_reference_number of this V2paymentsidrefundsMerchantInformation. - Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param card_acceptor_reference_number: The card_acceptor_reference_number of this V2paymentsidrefundsMerchantInformation. - :type: str - """ - if card_acceptor_reference_number is not None and len(card_acceptor_reference_number) > 25: - raise ValueError("Invalid value for `card_acceptor_reference_number`, length must be less than or equal to `25`") - - self._card_acceptor_reference_number = card_acceptor_reference_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidrefundsMerchantInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidrefunds_order_information.py b/CyberSource/models/v2paymentsidrefunds_order_information.py deleted file mode 100644 index 37114856..00000000 --- a/CyberSource/models/v2paymentsidrefunds_order_information.py +++ /dev/null @@ -1,253 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidrefundsOrderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'amount_details': 'V2paymentsidcapturesOrderInformationAmountDetails', - 'bill_to': 'V2paymentsidcapturesOrderInformationBillTo', - 'ship_to': 'V2paymentsidcapturesOrderInformationShipTo', - 'line_items': 'list[V2paymentsidrefundsOrderInformationLineItems]', - 'invoice_details': 'V2paymentsidcapturesOrderInformationInvoiceDetails', - 'shipping_details': 'V2paymentsidcapturesOrderInformationShippingDetails' - } - - attribute_map = { - 'amount_details': 'amountDetails', - 'bill_to': 'billTo', - 'ship_to': 'shipTo', - 'line_items': 'lineItems', - 'invoice_details': 'invoiceDetails', - 'shipping_details': 'shippingDetails' - } - - def __init__(self, amount_details=None, bill_to=None, ship_to=None, line_items=None, invoice_details=None, shipping_details=None): - """ - V2paymentsidrefundsOrderInformation - a model defined in Swagger - """ - - self._amount_details = None - self._bill_to = None - self._ship_to = None - self._line_items = None - self._invoice_details = None - self._shipping_details = None - - if amount_details is not None: - self.amount_details = amount_details - if bill_to is not None: - self.bill_to = bill_to - if ship_to is not None: - self.ship_to = ship_to - if line_items is not None: - self.line_items = line_items - if invoice_details is not None: - self.invoice_details = invoice_details - if shipping_details is not None: - self.shipping_details = shipping_details - - @property - def amount_details(self): - """ - Gets the amount_details of this V2paymentsidrefundsOrderInformation. - - :return: The amount_details of this V2paymentsidrefundsOrderInformation. - :rtype: V2paymentsidcapturesOrderInformationAmountDetails - """ - return self._amount_details - - @amount_details.setter - def amount_details(self, amount_details): - """ - Sets the amount_details of this V2paymentsidrefundsOrderInformation. - - :param amount_details: The amount_details of this V2paymentsidrefundsOrderInformation. - :type: V2paymentsidcapturesOrderInformationAmountDetails - """ - - self._amount_details = amount_details - - @property - def bill_to(self): - """ - Gets the bill_to of this V2paymentsidrefundsOrderInformation. - - :return: The bill_to of this V2paymentsidrefundsOrderInformation. - :rtype: V2paymentsidcapturesOrderInformationBillTo - """ - return self._bill_to - - @bill_to.setter - def bill_to(self, bill_to): - """ - Sets the bill_to of this V2paymentsidrefundsOrderInformation. - - :param bill_to: The bill_to of this V2paymentsidrefundsOrderInformation. - :type: V2paymentsidcapturesOrderInformationBillTo - """ - - self._bill_to = bill_to - - @property - def ship_to(self): - """ - Gets the ship_to of this V2paymentsidrefundsOrderInformation. - - :return: The ship_to of this V2paymentsidrefundsOrderInformation. - :rtype: V2paymentsidcapturesOrderInformationShipTo - """ - return self._ship_to - - @ship_to.setter - def ship_to(self, ship_to): - """ - Sets the ship_to of this V2paymentsidrefundsOrderInformation. - - :param ship_to: The ship_to of this V2paymentsidrefundsOrderInformation. - :type: V2paymentsidcapturesOrderInformationShipTo - """ - - self._ship_to = ship_to - - @property - def line_items(self): - """ - Gets the line_items of this V2paymentsidrefundsOrderInformation. - - :return: The line_items of this V2paymentsidrefundsOrderInformation. - :rtype: list[V2paymentsidrefundsOrderInformationLineItems] - """ - return self._line_items - - @line_items.setter - def line_items(self, line_items): - """ - Sets the line_items of this V2paymentsidrefundsOrderInformation. - - :param line_items: The line_items of this V2paymentsidrefundsOrderInformation. - :type: list[V2paymentsidrefundsOrderInformationLineItems] - """ - - self._line_items = line_items - - @property - def invoice_details(self): - """ - Gets the invoice_details of this V2paymentsidrefundsOrderInformation. - - :return: The invoice_details of this V2paymentsidrefundsOrderInformation. - :rtype: V2paymentsidcapturesOrderInformationInvoiceDetails - """ - return self._invoice_details - - @invoice_details.setter - def invoice_details(self, invoice_details): - """ - Sets the invoice_details of this V2paymentsidrefundsOrderInformation. - - :param invoice_details: The invoice_details of this V2paymentsidrefundsOrderInformation. - :type: V2paymentsidcapturesOrderInformationInvoiceDetails - """ - - self._invoice_details = invoice_details - - @property - def shipping_details(self): - """ - Gets the shipping_details of this V2paymentsidrefundsOrderInformation. - - :return: The shipping_details of this V2paymentsidrefundsOrderInformation. - :rtype: V2paymentsidcapturesOrderInformationShippingDetails - """ - return self._shipping_details - - @shipping_details.setter - def shipping_details(self, shipping_details): - """ - Sets the shipping_details of this V2paymentsidrefundsOrderInformation. - - :param shipping_details: The shipping_details of this V2paymentsidrefundsOrderInformation. - :type: V2paymentsidcapturesOrderInformationShippingDetails - """ - - self._shipping_details = shipping_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidrefundsOrderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidrefunds_order_information_line_items.py b/CyberSource/models/v2paymentsidrefunds_order_information_line_items.py deleted file mode 100644 index 3b6eca90..00000000 --- a/CyberSource/models/v2paymentsidrefunds_order_information_line_items.py +++ /dev/null @@ -1,691 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidrefundsOrderInformationLineItems(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'product_code': 'str', - 'product_name': 'str', - 'product_sku': 'str', - 'quantity': 'float', - 'unit_price': 'str', - 'unit_of_measure': 'str', - 'total_amount': 'str', - 'tax_amount': 'str', - 'tax_rate': 'str', - 'tax_applied_after_discount': 'str', - 'tax_status_indicator': 'str', - 'tax_type_code': 'str', - 'amount_includes_tax': 'bool', - 'type_of_supply': 'str', - 'commodity_code': 'str', - 'discount_amount': 'str', - 'discount_applied': 'bool', - 'discount_rate': 'str', - 'invoice_number': 'str', - 'tax_details': 'list[V2paymentsOrderInformationAmountDetailsTaxDetails]' - } - - attribute_map = { - 'product_code': 'productCode', - 'product_name': 'productName', - 'product_sku': 'productSku', - 'quantity': 'quantity', - 'unit_price': 'unitPrice', - 'unit_of_measure': 'unitOfMeasure', - 'total_amount': 'totalAmount', - 'tax_amount': 'taxAmount', - 'tax_rate': 'taxRate', - 'tax_applied_after_discount': 'taxAppliedAfterDiscount', - 'tax_status_indicator': 'taxStatusIndicator', - 'tax_type_code': 'taxTypeCode', - 'amount_includes_tax': 'amountIncludesTax', - 'type_of_supply': 'typeOfSupply', - 'commodity_code': 'commodityCode', - 'discount_amount': 'discountAmount', - 'discount_applied': 'discountApplied', - 'discount_rate': 'discountRate', - 'invoice_number': 'invoiceNumber', - 'tax_details': 'taxDetails' - } - - def __init__(self, product_code=None, product_name=None, product_sku=None, quantity=None, unit_price=None, unit_of_measure=None, total_amount=None, tax_amount=None, tax_rate=None, tax_applied_after_discount=None, tax_status_indicator=None, tax_type_code=None, amount_includes_tax=None, type_of_supply=None, commodity_code=None, discount_amount=None, discount_applied=None, discount_rate=None, invoice_number=None, tax_details=None): - """ - V2paymentsidrefundsOrderInformationLineItems - a model defined in Swagger - """ - - self._product_code = None - self._product_name = None - self._product_sku = None - self._quantity = None - self._unit_price = None - self._unit_of_measure = None - self._total_amount = None - self._tax_amount = None - self._tax_rate = None - self._tax_applied_after_discount = None - self._tax_status_indicator = None - self._tax_type_code = None - self._amount_includes_tax = None - self._type_of_supply = None - self._commodity_code = None - self._discount_amount = None - self._discount_applied = None - self._discount_rate = None - self._invoice_number = None - self._tax_details = None - - if product_code is not None: - self.product_code = product_code - if product_name is not None: - self.product_name = product_name - if product_sku is not None: - self.product_sku = product_sku - if quantity is not None: - self.quantity = quantity - if unit_price is not None: - self.unit_price = unit_price - if unit_of_measure is not None: - self.unit_of_measure = unit_of_measure - if total_amount is not None: - self.total_amount = total_amount - if tax_amount is not None: - self.tax_amount = tax_amount - if tax_rate is not None: - self.tax_rate = tax_rate - if tax_applied_after_discount is not None: - self.tax_applied_after_discount = tax_applied_after_discount - if tax_status_indicator is not None: - self.tax_status_indicator = tax_status_indicator - if tax_type_code is not None: - self.tax_type_code = tax_type_code - if amount_includes_tax is not None: - self.amount_includes_tax = amount_includes_tax - if type_of_supply is not None: - self.type_of_supply = type_of_supply - if commodity_code is not None: - self.commodity_code = commodity_code - if discount_amount is not None: - self.discount_amount = discount_amount - if discount_applied is not None: - self.discount_applied = discount_applied - if discount_rate is not None: - self.discount_rate = discount_rate - if invoice_number is not None: - self.invoice_number = invoice_number - if tax_details is not None: - self.tax_details = tax_details - - @property - def product_code(self): - """ - Gets the product_code of this V2paymentsidrefundsOrderInformationLineItems. - Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. - - :return: The product_code of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._product_code - - @product_code.setter - def product_code(self, product_code): - """ - Sets the product_code of this V2paymentsidrefundsOrderInformationLineItems. - Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. - - :param product_code: The product_code of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if product_code is not None and len(product_code) > 255: - raise ValueError("Invalid value for `product_code`, length must be less than or equal to `255`") - - self._product_code = product_code - - @property - def product_name(self): - """ - Gets the product_name of this V2paymentsidrefundsOrderInformationLineItems. - For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. - - :return: The product_name of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._product_name - - @product_name.setter - def product_name(self, product_name): - """ - Sets the product_name of this V2paymentsidrefundsOrderInformationLineItems. - For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. - - :param product_name: The product_name of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if product_name is not None and len(product_name) > 255: - raise ValueError("Invalid value for `product_name`, length must be less than or equal to `255`") - - self._product_name = product_name - - @property - def product_sku(self): - """ - Gets the product_sku of this V2paymentsidrefundsOrderInformationLineItems. - Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. - - :return: The product_sku of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._product_sku - - @product_sku.setter - def product_sku(self, product_sku): - """ - Sets the product_sku of this V2paymentsidrefundsOrderInformationLineItems. - Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. - - :param product_sku: The product_sku of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if product_sku is not None and len(product_sku) > 255: - raise ValueError("Invalid value for `product_sku`, length must be less than or equal to `255`") - - self._product_sku = product_sku - - @property - def quantity(self): - """ - Gets the quantity of this V2paymentsidrefundsOrderInformationLineItems. - For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. - - :return: The quantity of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: float - """ - return self._quantity - - @quantity.setter - def quantity(self, quantity): - """ - Sets the quantity of this V2paymentsidrefundsOrderInformationLineItems. - For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. - - :param quantity: The quantity of this V2paymentsidrefundsOrderInformationLineItems. - :type: float - """ - if quantity is not None and quantity > 9999999999: - raise ValueError("Invalid value for `quantity`, must be a value less than or equal to `9999999999`") - if quantity is not None and quantity < 1: - raise ValueError("Invalid value for `quantity`, must be a value greater than or equal to `1`") - - self._quantity = quantity - - @property - def unit_price(self): - """ - Gets the unit_price of this V2paymentsidrefundsOrderInformationLineItems. - Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The unit_price of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._unit_price - - @unit_price.setter - def unit_price(self, unit_price): - """ - Sets the unit_price of this V2paymentsidrefundsOrderInformationLineItems. - Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param unit_price: The unit_price of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if unit_price is not None and len(unit_price) > 15: - raise ValueError("Invalid value for `unit_price`, length must be less than or equal to `15`") - - self._unit_price = unit_price - - @property - def unit_of_measure(self): - """ - Gets the unit_of_measure of this V2paymentsidrefundsOrderInformationLineItems. - Unit of measure, or unit of measure code, for the item. - - :return: The unit_of_measure of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._unit_of_measure - - @unit_of_measure.setter - def unit_of_measure(self, unit_of_measure): - """ - Sets the unit_of_measure of this V2paymentsidrefundsOrderInformationLineItems. - Unit of measure, or unit of measure code, for the item. - - :param unit_of_measure: The unit_of_measure of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if unit_of_measure is not None and len(unit_of_measure) > 12: - raise ValueError("Invalid value for `unit_of_measure`, length must be less than or equal to `12`") - - self._unit_of_measure = unit_of_measure - - @property - def total_amount(self): - """ - Gets the total_amount of this V2paymentsidrefundsOrderInformationLineItems. - Total amount for the item. Normally calculated as the unit price x quantity. - - :return: The total_amount of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this V2paymentsidrefundsOrderInformationLineItems. - Total amount for the item. Normally calculated as the unit price x quantity. - - :param total_amount: The total_amount of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if total_amount is not None and len(total_amount) > 13: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `13`") - - self._total_amount = total_amount - - @property - def tax_amount(self): - """ - Gets the tax_amount of this V2paymentsidrefundsOrderInformationLineItems. - Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. - - :return: The tax_amount of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._tax_amount - - @tax_amount.setter - def tax_amount(self, tax_amount): - """ - Sets the tax_amount of this V2paymentsidrefundsOrderInformationLineItems. - Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. - - :param tax_amount: The tax_amount of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if tax_amount is not None and len(tax_amount) > 15: - raise ValueError("Invalid value for `tax_amount`, length must be less than or equal to `15`") - - self._tax_amount = tax_amount - - @property - def tax_rate(self): - """ - Gets the tax_rate of this V2paymentsidrefundsOrderInformationLineItems. - Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). - - :return: The tax_rate of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._tax_rate - - @tax_rate.setter - def tax_rate(self, tax_rate): - """ - Sets the tax_rate of this V2paymentsidrefundsOrderInformationLineItems. - Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). - - :param tax_rate: The tax_rate of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if tax_rate is not None and len(tax_rate) > 7: - raise ValueError("Invalid value for `tax_rate`, length must be less than or equal to `7`") - - self._tax_rate = tax_rate - - @property - def tax_applied_after_discount(self): - """ - Gets the tax_applied_after_discount of this V2paymentsidrefundsOrderInformationLineItems. - Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. - - :return: The tax_applied_after_discount of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._tax_applied_after_discount - - @tax_applied_after_discount.setter - def tax_applied_after_discount(self, tax_applied_after_discount): - """ - Sets the tax_applied_after_discount of this V2paymentsidrefundsOrderInformationLineItems. - Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. - - :param tax_applied_after_discount: The tax_applied_after_discount of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if tax_applied_after_discount is not None and len(tax_applied_after_discount) > 1: - raise ValueError("Invalid value for `tax_applied_after_discount`, length must be less than or equal to `1`") - - self._tax_applied_after_discount = tax_applied_after_discount - - @property - def tax_status_indicator(self): - """ - Gets the tax_status_indicator of this V2paymentsidrefundsOrderInformationLineItems. - Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax - - :return: The tax_status_indicator of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._tax_status_indicator - - @tax_status_indicator.setter - def tax_status_indicator(self, tax_status_indicator): - """ - Sets the tax_status_indicator of this V2paymentsidrefundsOrderInformationLineItems. - Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax - - :param tax_status_indicator: The tax_status_indicator of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if tax_status_indicator is not None and len(tax_status_indicator) > 1: - raise ValueError("Invalid value for `tax_status_indicator`, length must be less than or equal to `1`") - - self._tax_status_indicator = tax_status_indicator - - @property - def tax_type_code(self): - """ - Gets the tax_type_code of this V2paymentsidrefundsOrderInformationLineItems. - Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. - - :return: The tax_type_code of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._tax_type_code - - @tax_type_code.setter - def tax_type_code(self, tax_type_code): - """ - Sets the tax_type_code of this V2paymentsidrefundsOrderInformationLineItems. - Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. - - :param tax_type_code: The tax_type_code of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if tax_type_code is not None and len(tax_type_code) > 4: - raise ValueError("Invalid value for `tax_type_code`, length must be less than or equal to `4`") - - self._tax_type_code = tax_type_code - - @property - def amount_includes_tax(self): - """ - Gets the amount_includes_tax of this V2paymentsidrefundsOrderInformationLineItems. - Flag that indicates whether the tax amount is included in the Line Item Total. - - :return: The amount_includes_tax of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: bool - """ - return self._amount_includes_tax - - @amount_includes_tax.setter - def amount_includes_tax(self, amount_includes_tax): - """ - Sets the amount_includes_tax of this V2paymentsidrefundsOrderInformationLineItems. - Flag that indicates whether the tax amount is included in the Line Item Total. - - :param amount_includes_tax: The amount_includes_tax of this V2paymentsidrefundsOrderInformationLineItems. - :type: bool - """ - - self._amount_includes_tax = amount_includes_tax - - @property - def type_of_supply(self): - """ - Gets the type_of_supply of this V2paymentsidrefundsOrderInformationLineItems. - Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services - - :return: The type_of_supply of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._type_of_supply - - @type_of_supply.setter - def type_of_supply(self, type_of_supply): - """ - Sets the type_of_supply of this V2paymentsidrefundsOrderInformationLineItems. - Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services - - :param type_of_supply: The type_of_supply of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if type_of_supply is not None and len(type_of_supply) > 2: - raise ValueError("Invalid value for `type_of_supply`, length must be less than or equal to `2`") - - self._type_of_supply = type_of_supply - - @property - def commodity_code(self): - """ - Gets the commodity_code of this V2paymentsidrefundsOrderInformationLineItems. - Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. - - :return: The commodity_code of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._commodity_code - - @commodity_code.setter - def commodity_code(self, commodity_code): - """ - Sets the commodity_code of this V2paymentsidrefundsOrderInformationLineItems. - Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. - - :param commodity_code: The commodity_code of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if commodity_code is not None and len(commodity_code) > 15: - raise ValueError("Invalid value for `commodity_code`, length must be less than or equal to `15`") - - self._commodity_code = commodity_code - - @property - def discount_amount(self): - """ - Gets the discount_amount of this V2paymentsidrefundsOrderInformationLineItems. - Discount applied to the item. - - :return: The discount_amount of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._discount_amount - - @discount_amount.setter - def discount_amount(self, discount_amount): - """ - Sets the discount_amount of this V2paymentsidrefundsOrderInformationLineItems. - Discount applied to the item. - - :param discount_amount: The discount_amount of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if discount_amount is not None and len(discount_amount) > 13: - raise ValueError("Invalid value for `discount_amount`, length must be less than or equal to `13`") - - self._discount_amount = discount_amount - - @property - def discount_applied(self): - """ - Gets the discount_applied of this V2paymentsidrefundsOrderInformationLineItems. - Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. - - :return: The discount_applied of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: bool - """ - return self._discount_applied - - @discount_applied.setter - def discount_applied(self, discount_applied): - """ - Sets the discount_applied of this V2paymentsidrefundsOrderInformationLineItems. - Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. - - :param discount_applied: The discount_applied of this V2paymentsidrefundsOrderInformationLineItems. - :type: bool - """ - - self._discount_applied = discount_applied - - @property - def discount_rate(self): - """ - Gets the discount_rate of this V2paymentsidrefundsOrderInformationLineItems. - Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) - - :return: The discount_rate of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._discount_rate - - @discount_rate.setter - def discount_rate(self, discount_rate): - """ - Sets the discount_rate of this V2paymentsidrefundsOrderInformationLineItems. - Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) - - :param discount_rate: The discount_rate of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if discount_rate is not None and len(discount_rate) > 6: - raise ValueError("Invalid value for `discount_rate`, length must be less than or equal to `6`") - - self._discount_rate = discount_rate - - @property - def invoice_number(self): - """ - Gets the invoice_number of this V2paymentsidrefundsOrderInformationLineItems. - Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. - - :return: The invoice_number of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: str - """ - return self._invoice_number - - @invoice_number.setter - def invoice_number(self, invoice_number): - """ - Sets the invoice_number of this V2paymentsidrefundsOrderInformationLineItems. - Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. - - :param invoice_number: The invoice_number of this V2paymentsidrefundsOrderInformationLineItems. - :type: str - """ - if invoice_number is not None and len(invoice_number) > 23: - raise ValueError("Invalid value for `invoice_number`, length must be less than or equal to `23`") - - self._invoice_number = invoice_number - - @property - def tax_details(self): - """ - Gets the tax_details of this V2paymentsidrefundsOrderInformationLineItems. - - :return: The tax_details of this V2paymentsidrefundsOrderInformationLineItems. - :rtype: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - return self._tax_details - - @tax_details.setter - def tax_details(self, tax_details): - """ - Sets the tax_details of this V2paymentsidrefundsOrderInformationLineItems. - - :param tax_details: The tax_details of this V2paymentsidrefundsOrderInformationLineItems. - :type: list[V2paymentsOrderInformationAmountDetailsTaxDetails] - """ - - self._tax_details = tax_details - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidrefundsOrderInformationLineItems): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidrefunds_payment_information.py b/CyberSource/models/v2paymentsidrefunds_payment_information.py deleted file mode 100644 index aacc4d07..00000000 --- a/CyberSource/models/v2paymentsidrefunds_payment_information.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidrefundsPaymentInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'card': 'V2paymentsidrefundsPaymentInformationCard' - } - - attribute_map = { - 'card': 'card' - } - - def __init__(self, card=None): - """ - V2paymentsidrefundsPaymentInformation - a model defined in Swagger - """ - - self._card = None - - if card is not None: - self.card = card - - @property - def card(self): - """ - Gets the card of this V2paymentsidrefundsPaymentInformation. - - :return: The card of this V2paymentsidrefundsPaymentInformation. - :rtype: V2paymentsidrefundsPaymentInformationCard - """ - return self._card - - @card.setter - def card(self, card): - """ - Sets the card of this V2paymentsidrefundsPaymentInformation. - - :param card: The card of this V2paymentsidrefundsPaymentInformation. - :type: V2paymentsidrefundsPaymentInformationCard - """ - - self._card = card - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidrefundsPaymentInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidrefunds_payment_information_card.py b/CyberSource/models/v2paymentsidrefunds_payment_information_card.py deleted file mode 100644 index 6b68ba9e..00000000 --- a/CyberSource/models/v2paymentsidrefunds_payment_information_card.py +++ /dev/null @@ -1,337 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidrefundsPaymentInformationCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'number': 'str', - 'expiration_month': 'str', - 'expiration_year': 'str', - 'type': 'str', - 'account_encoder_id': 'str', - 'issue_number': 'str', - 'start_month': 'str', - 'start_year': 'str' - } - - attribute_map = { - 'number': 'number', - 'expiration_month': 'expirationMonth', - 'expiration_year': 'expirationYear', - 'type': 'type', - 'account_encoder_id': 'accountEncoderId', - 'issue_number': 'issueNumber', - 'start_month': 'startMonth', - 'start_year': 'startYear' - } - - def __init__(self, number=None, expiration_month=None, expiration_year=None, type=None, account_encoder_id=None, issue_number=None, start_month=None, start_year=None): - """ - V2paymentsidrefundsPaymentInformationCard - a model defined in Swagger - """ - - self._number = None - self._expiration_month = None - self._expiration_year = None - self._type = None - self._account_encoder_id = None - self._issue_number = None - self._start_month = None - self._start_year = None - - if number is not None: - self.number = number - if expiration_month is not None: - self.expiration_month = expiration_month - if expiration_year is not None: - self.expiration_year = expiration_year - if type is not None: - self.type = type - if account_encoder_id is not None: - self.account_encoder_id = account_encoder_id - if issue_number is not None: - self.issue_number = issue_number - if start_month is not None: - self.start_month = start_month - if start_year is not None: - self.start_year = start_year - - @property - def number(self): - """ - Gets the number of this V2paymentsidrefundsPaymentInformationCard. - Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The number of this V2paymentsidrefundsPaymentInformationCard. - :rtype: str - """ - return self._number - - @number.setter - def number(self, number): - """ - Sets the number of this V2paymentsidrefundsPaymentInformationCard. - Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param number: The number of this V2paymentsidrefundsPaymentInformationCard. - :type: str - """ - if number is not None and len(number) > 20: - raise ValueError("Invalid value for `number`, length must be less than or equal to `20`") - - self._number = number - - @property - def expiration_month(self): - """ - Gets the expiration_month of this V2paymentsidrefundsPaymentInformationCard. - Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The expiration_month of this V2paymentsidrefundsPaymentInformationCard. - :rtype: str - """ - return self._expiration_month - - @expiration_month.setter - def expiration_month(self, expiration_month): - """ - Sets the expiration_month of this V2paymentsidrefundsPaymentInformationCard. - Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param expiration_month: The expiration_month of this V2paymentsidrefundsPaymentInformationCard. - :type: str - """ - if expiration_month is not None and len(expiration_month) > 2: - raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") - - self._expiration_month = expiration_month - - @property - def expiration_year(self): - """ - Gets the expiration_year of this V2paymentsidrefundsPaymentInformationCard. - Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The expiration_year of this V2paymentsidrefundsPaymentInformationCard. - :rtype: str - """ - return self._expiration_year - - @expiration_year.setter - def expiration_year(self, expiration_year): - """ - Sets the expiration_year of this V2paymentsidrefundsPaymentInformationCard. - Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param expiration_year: The expiration_year of this V2paymentsidrefundsPaymentInformationCard. - :type: str - """ - if expiration_year is not None and len(expiration_year) > 4: - raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") - - self._expiration_year = expiration_year - - @property - def type(self): - """ - Gets the type of this V2paymentsidrefundsPaymentInformationCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :return: The type of this V2paymentsidrefundsPaymentInformationCard. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V2paymentsidrefundsPaymentInformationCard. - Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - - :param type: The type of this V2paymentsidrefundsPaymentInformationCard. - :type: str - """ - if type is not None and len(type) > 3: - raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") - - self._type = type - - @property - def account_encoder_id(self): - """ - Gets the account_encoder_id of this V2paymentsidrefundsPaymentInformationCard. - Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. - - :return: The account_encoder_id of this V2paymentsidrefundsPaymentInformationCard. - :rtype: str - """ - return self._account_encoder_id - - @account_encoder_id.setter - def account_encoder_id(self, account_encoder_id): - """ - Sets the account_encoder_id of this V2paymentsidrefundsPaymentInformationCard. - Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. - - :param account_encoder_id: The account_encoder_id of this V2paymentsidrefundsPaymentInformationCard. - :type: str - """ - if account_encoder_id is not None and len(account_encoder_id) > 3: - raise ValueError("Invalid value for `account_encoder_id`, length must be less than or equal to `3`") - - self._account_encoder_id = account_encoder_id - - @property - def issue_number(self): - """ - Gets the issue_number of this V2paymentsidrefundsPaymentInformationCard. - Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. - - :return: The issue_number of this V2paymentsidrefundsPaymentInformationCard. - :rtype: str - """ - return self._issue_number - - @issue_number.setter - def issue_number(self, issue_number): - """ - Sets the issue_number of this V2paymentsidrefundsPaymentInformationCard. - Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. - - :param issue_number: The issue_number of this V2paymentsidrefundsPaymentInformationCard. - :type: str - """ - if issue_number is not None and len(issue_number) > 5: - raise ValueError("Invalid value for `issue_number`, length must be less than or equal to `5`") - - self._issue_number = issue_number - - @property - def start_month(self): - """ - Gets the start_month of this V2paymentsidrefundsPaymentInformationCard. - Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. - - :return: The start_month of this V2paymentsidrefundsPaymentInformationCard. - :rtype: str - """ - return self._start_month - - @start_month.setter - def start_month(self, start_month): - """ - Sets the start_month of this V2paymentsidrefundsPaymentInformationCard. - Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. - - :param start_month: The start_month of this V2paymentsidrefundsPaymentInformationCard. - :type: str - """ - if start_month is not None and len(start_month) > 2: - raise ValueError("Invalid value for `start_month`, length must be less than or equal to `2`") - - self._start_month = start_month - - @property - def start_year(self): - """ - Gets the start_year of this V2paymentsidrefundsPaymentInformationCard. - Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. - - :return: The start_year of this V2paymentsidrefundsPaymentInformationCard. - :rtype: str - """ - return self._start_year - - @start_year.setter - def start_year(self, start_year): - """ - Sets the start_year of this V2paymentsidrefundsPaymentInformationCard. - Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. - - :param start_year: The start_year of this V2paymentsidrefundsPaymentInformationCard. - :type: str - """ - if start_year is not None and len(start_year) > 4: - raise ValueError("Invalid value for `start_year`, length must be less than or equal to `4`") - - self._start_year = start_year - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidrefundsPaymentInformationCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidrefunds_point_of_sale_information.py b/CyberSource/models/v2paymentsidrefunds_point_of_sale_information.py deleted file mode 100644 index 175fc31f..00000000 --- a/CyberSource/models/v2paymentsidrefunds_point_of_sale_information.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidrefundsPointOfSaleInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'emv': 'V2paymentsidcapturesPointOfSaleInformationEmv' - } - - attribute_map = { - 'emv': 'emv' - } - - def __init__(self, emv=None): - """ - V2paymentsidrefundsPointOfSaleInformation - a model defined in Swagger - """ - - self._emv = None - - if emv is not None: - self.emv = emv - - @property - def emv(self): - """ - Gets the emv of this V2paymentsidrefundsPointOfSaleInformation. - - :return: The emv of this V2paymentsidrefundsPointOfSaleInformation. - :rtype: V2paymentsidcapturesPointOfSaleInformationEmv - """ - return self._emv - - @emv.setter - def emv(self, emv): - """ - Sets the emv of this V2paymentsidrefundsPointOfSaleInformation. - - :param emv: The emv of this V2paymentsidrefundsPointOfSaleInformation. - :type: V2paymentsidcapturesPointOfSaleInformationEmv - """ - - self._emv = emv - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidrefundsPointOfSaleInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidrefunds_processing_information.py b/CyberSource/models/v2paymentsidrefunds_processing_information.py deleted file mode 100644 index ffca0c47..00000000 --- a/CyberSource/models/v2paymentsidrefunds_processing_information.py +++ /dev/null @@ -1,303 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidrefundsProcessingInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'payment_solution': 'str', - 'reconciliation_id': 'str', - 'link_id': 'str', - 'report_group': 'str', - 'visa_checkout_id': 'str', - 'purchase_level': 'str', - 'recurring_options': 'V2paymentsidrefundsProcessingInformationRecurringOptions' - } - - attribute_map = { - 'payment_solution': 'paymentSolution', - 'reconciliation_id': 'reconciliationId', - 'link_id': 'linkId', - 'report_group': 'reportGroup', - 'visa_checkout_id': 'visaCheckoutId', - 'purchase_level': 'purchaseLevel', - 'recurring_options': 'recurringOptions' - } - - def __init__(self, payment_solution=None, reconciliation_id=None, link_id=None, report_group=None, visa_checkout_id=None, purchase_level=None, recurring_options=None): - """ - V2paymentsidrefundsProcessingInformation - a model defined in Swagger - """ - - self._payment_solution = None - self._reconciliation_id = None - self._link_id = None - self._report_group = None - self._visa_checkout_id = None - self._purchase_level = None - self._recurring_options = None - - if payment_solution is not None: - self.payment_solution = payment_solution - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if link_id is not None: - self.link_id = link_id - if report_group is not None: - self.report_group = report_group - if visa_checkout_id is not None: - self.visa_checkout_id = visa_checkout_id - if purchase_level is not None: - self.purchase_level = purchase_level - if recurring_options is not None: - self.recurring_options = recurring_options - - @property - def payment_solution(self): - """ - Gets the payment_solution of this V2paymentsidrefundsProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :return: The payment_solution of this V2paymentsidrefundsProcessingInformation. - :rtype: str - """ - return self._payment_solution - - @payment_solution.setter - def payment_solution(self, payment_solution): - """ - Sets the payment_solution of this V2paymentsidrefundsProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :param payment_solution: The payment_solution of this V2paymentsidrefundsProcessingInformation. - :type: str - """ - if payment_solution is not None and len(payment_solution) > 12: - raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") - - self._payment_solution = payment_solution - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this V2paymentsidrefundsProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :return: The reconciliation_id of this V2paymentsidrefundsProcessingInformation. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this V2paymentsidrefundsProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :param reconciliation_id: The reconciliation_id of this V2paymentsidrefundsProcessingInformation. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def link_id(self): - """ - Gets the link_id of this V2paymentsidrefundsProcessingInformation. - Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. - - :return: The link_id of this V2paymentsidrefundsProcessingInformation. - :rtype: str - """ - return self._link_id - - @link_id.setter - def link_id(self, link_id): - """ - Sets the link_id of this V2paymentsidrefundsProcessingInformation. - Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. - - :param link_id: The link_id of this V2paymentsidrefundsProcessingInformation. - :type: str - """ - if link_id is not None and len(link_id) > 26: - raise ValueError("Invalid value for `link_id`, length must be less than or equal to `26`") - - self._link_id = link_id - - @property - def report_group(self): - """ - Gets the report_group of this V2paymentsidrefundsProcessingInformation. - Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. - - :return: The report_group of this V2paymentsidrefundsProcessingInformation. - :rtype: str - """ - return self._report_group - - @report_group.setter - def report_group(self, report_group): - """ - Sets the report_group of this V2paymentsidrefundsProcessingInformation. - Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. - - :param report_group: The report_group of this V2paymentsidrefundsProcessingInformation. - :type: str - """ - if report_group is not None and len(report_group) > 25: - raise ValueError("Invalid value for `report_group`, length must be less than or equal to `25`") - - self._report_group = report_group - - @property - def visa_checkout_id(self): - """ - Gets the visa_checkout_id of this V2paymentsidrefundsProcessingInformation. - Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. - - :return: The visa_checkout_id of this V2paymentsidrefundsProcessingInformation. - :rtype: str - """ - return self._visa_checkout_id - - @visa_checkout_id.setter - def visa_checkout_id(self, visa_checkout_id): - """ - Sets the visa_checkout_id of this V2paymentsidrefundsProcessingInformation. - Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. - - :param visa_checkout_id: The visa_checkout_id of this V2paymentsidrefundsProcessingInformation. - :type: str - """ - if visa_checkout_id is not None and len(visa_checkout_id) > 48: - raise ValueError("Invalid value for `visa_checkout_id`, length must be less than or equal to `48`") - - self._visa_checkout_id = visa_checkout_id - - @property - def purchase_level(self): - """ - Gets the purchase_level of this V2paymentsidrefundsProcessingInformation. - Set this field to 3 to indicate that the request includes Level III data. - - :return: The purchase_level of this V2paymentsidrefundsProcessingInformation. - :rtype: str - """ - return self._purchase_level - - @purchase_level.setter - def purchase_level(self, purchase_level): - """ - Sets the purchase_level of this V2paymentsidrefundsProcessingInformation. - Set this field to 3 to indicate that the request includes Level III data. - - :param purchase_level: The purchase_level of this V2paymentsidrefundsProcessingInformation. - :type: str - """ - if purchase_level is not None and len(purchase_level) > 1: - raise ValueError("Invalid value for `purchase_level`, length must be less than or equal to `1`") - - self._purchase_level = purchase_level - - @property - def recurring_options(self): - """ - Gets the recurring_options of this V2paymentsidrefundsProcessingInformation. - - :return: The recurring_options of this V2paymentsidrefundsProcessingInformation. - :rtype: V2paymentsidrefundsProcessingInformationRecurringOptions - """ - return self._recurring_options - - @recurring_options.setter - def recurring_options(self, recurring_options): - """ - Sets the recurring_options of this V2paymentsidrefundsProcessingInformation. - - :param recurring_options: The recurring_options of this V2paymentsidrefundsProcessingInformation. - :type: V2paymentsidrefundsProcessingInformationRecurringOptions - """ - - self._recurring_options = recurring_options - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidrefundsProcessingInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidrefunds_processing_information_recurring_options.py b/CyberSource/models/v2paymentsidrefunds_processing_information_recurring_options.py deleted file mode 100644 index 6fd4a0ca..00000000 --- a/CyberSource/models/v2paymentsidrefunds_processing_information_recurring_options.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidrefundsProcessingInformationRecurringOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'loan_payment': 'bool' - } - - attribute_map = { - 'loan_payment': 'loanPayment' - } - - def __init__(self, loan_payment=False): - """ - V2paymentsidrefundsProcessingInformationRecurringOptions - a model defined in Swagger - """ - - self._loan_payment = None - - if loan_payment is not None: - self.loan_payment = loan_payment - - @property - def loan_payment(self): - """ - Gets the loan_payment of this V2paymentsidrefundsProcessingInformationRecurringOptions. - Flag that indicates whether this is a payment towards an existing contractual loan. - - :return: The loan_payment of this V2paymentsidrefundsProcessingInformationRecurringOptions. - :rtype: bool - """ - return self._loan_payment - - @loan_payment.setter - def loan_payment(self, loan_payment): - """ - Sets the loan_payment of this V2paymentsidrefundsProcessingInformationRecurringOptions. - Flag that indicates whether this is a payment towards an existing contractual loan. - - :param loan_payment: The loan_payment of this V2paymentsidrefundsProcessingInformationRecurringOptions. - :type: bool - """ - - self._loan_payment = loan_payment - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidrefundsProcessingInformationRecurringOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidreversals_client_reference_information.py b/CyberSource/models/v2paymentsidreversals_client_reference_information.py deleted file mode 100644 index 585c246c..00000000 --- a/CyberSource/models/v2paymentsidreversals_client_reference_information.py +++ /dev/null @@ -1,155 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidreversalsClientReferenceInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'code': 'str', - 'comments': 'str' - } - - attribute_map = { - 'code': 'code', - 'comments': 'comments' - } - - def __init__(self, code=None, comments=None): - """ - V2paymentsidreversalsClientReferenceInformation - a model defined in Swagger - """ - - self._code = None - self._comments = None - - if code is not None: - self.code = code - if comments is not None: - self.comments = comments - - @property - def code(self): - """ - Gets the code of this V2paymentsidreversalsClientReferenceInformation. - Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. - - :return: The code of this V2paymentsidreversalsClientReferenceInformation. - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """ - Sets the code of this V2paymentsidreversalsClientReferenceInformation. - Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. - - :param code: The code of this V2paymentsidreversalsClientReferenceInformation. - :type: str - """ - if code is not None and len(code) > 50: - raise ValueError("Invalid value for `code`, length must be less than or equal to `50`") - - self._code = code - - @property - def comments(self): - """ - Gets the comments of this V2paymentsidreversalsClientReferenceInformation. - Comments - - :return: The comments of this V2paymentsidreversalsClientReferenceInformation. - :rtype: str - """ - return self._comments - - @comments.setter - def comments(self, comments): - """ - Sets the comments of this V2paymentsidreversalsClientReferenceInformation. - Comments - - :param comments: The comments of this V2paymentsidreversalsClientReferenceInformation. - :type: str - """ - - self._comments = comments - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidreversalsClientReferenceInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidreversals_order_information.py b/CyberSource/models/v2paymentsidreversals_order_information.py deleted file mode 100644 index a267c21e..00000000 --- a/CyberSource/models/v2paymentsidreversals_order_information.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidreversalsOrderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'line_items': 'list[V2paymentsidreversalsOrderInformationLineItems]' - } - - attribute_map = { - 'line_items': 'lineItems' - } - - def __init__(self, line_items=None): - """ - V2paymentsidreversalsOrderInformation - a model defined in Swagger - """ - - self._line_items = None - - if line_items is not None: - self.line_items = line_items - - @property - def line_items(self): - """ - Gets the line_items of this V2paymentsidreversalsOrderInformation. - - :return: The line_items of this V2paymentsidreversalsOrderInformation. - :rtype: list[V2paymentsidreversalsOrderInformationLineItems] - """ - return self._line_items - - @line_items.setter - def line_items(self, line_items): - """ - Sets the line_items of this V2paymentsidreversalsOrderInformation. - - :param line_items: The line_items of this V2paymentsidreversalsOrderInformation. - :type: list[V2paymentsidreversalsOrderInformationLineItems] - """ - - self._line_items = line_items - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidreversalsOrderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidreversals_order_information_line_items.py b/CyberSource/models/v2paymentsidreversals_order_information_line_items.py deleted file mode 100644 index 489fe3a5..00000000 --- a/CyberSource/models/v2paymentsidreversals_order_information_line_items.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidreversalsOrderInformationLineItems(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'quantity': 'float', - 'unit_price': 'str' - } - - attribute_map = { - 'quantity': 'quantity', - 'unit_price': 'unitPrice' - } - - def __init__(self, quantity=None, unit_price=None): - """ - V2paymentsidreversalsOrderInformationLineItems - a model defined in Swagger - """ - - self._quantity = None - self._unit_price = None - - if quantity is not None: - self.quantity = quantity - if unit_price is not None: - self.unit_price = unit_price - - @property - def quantity(self): - """ - Gets the quantity of this V2paymentsidreversalsOrderInformationLineItems. - For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. - - :return: The quantity of this V2paymentsidreversalsOrderInformationLineItems. - :rtype: float - """ - return self._quantity - - @quantity.setter - def quantity(self, quantity): - """ - Sets the quantity of this V2paymentsidreversalsOrderInformationLineItems. - For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. - - :param quantity: The quantity of this V2paymentsidreversalsOrderInformationLineItems. - :type: float - """ - if quantity is not None and quantity > 9999999999: - raise ValueError("Invalid value for `quantity`, must be a value less than or equal to `9999999999`") - if quantity is not None and quantity < 1: - raise ValueError("Invalid value for `quantity`, must be a value greater than or equal to `1`") - - self._quantity = quantity - - @property - def unit_price(self): - """ - Gets the unit_price of this V2paymentsidreversalsOrderInformationLineItems. - Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The unit_price of this V2paymentsidreversalsOrderInformationLineItems. - :rtype: str - """ - return self._unit_price - - @unit_price.setter - def unit_price(self, unit_price): - """ - Sets the unit_price of this V2paymentsidreversalsOrderInformationLineItems. - Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param unit_price: The unit_price of this V2paymentsidreversalsOrderInformationLineItems. - :type: str - """ - if unit_price is not None and len(unit_price) > 15: - raise ValueError("Invalid value for `unit_price`, length must be less than or equal to `15`") - - self._unit_price = unit_price - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidreversalsOrderInformationLineItems): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidreversals_point_of_sale_information.py b/CyberSource/models/v2paymentsidreversals_point_of_sale_information.py deleted file mode 100644 index 07899821..00000000 --- a/CyberSource/models/v2paymentsidreversals_point_of_sale_information.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidreversalsPointOfSaleInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'emv': 'InlineResponse201PointOfSaleInformationEmv' - } - - attribute_map = { - 'emv': 'emv' - } - - def __init__(self, emv=None): - """ - V2paymentsidreversalsPointOfSaleInformation - a model defined in Swagger - """ - - self._emv = None - - if emv is not None: - self.emv = emv - - @property - def emv(self): - """ - Gets the emv of this V2paymentsidreversalsPointOfSaleInformation. - - :return: The emv of this V2paymentsidreversalsPointOfSaleInformation. - :rtype: InlineResponse201PointOfSaleInformationEmv - """ - return self._emv - - @emv.setter - def emv(self, emv): - """ - Sets the emv of this V2paymentsidreversalsPointOfSaleInformation. - - :param emv: The emv of this V2paymentsidreversalsPointOfSaleInformation. - :type: InlineResponse201PointOfSaleInformationEmv - """ - - self._emv = emv - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidreversalsPointOfSaleInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidreversals_processing_information.py b/CyberSource/models/v2paymentsidreversals_processing_information.py deleted file mode 100644 index f4cc4375..00000000 --- a/CyberSource/models/v2paymentsidreversals_processing_information.py +++ /dev/null @@ -1,273 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidreversalsProcessingInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'payment_solution': 'str', - 'reconciliation_id': 'str', - 'link_id': 'str', - 'report_group': 'str', - 'visa_checkout_id': 'str', - 'issuer': 'V2paymentsProcessingInformationIssuer' - } - - attribute_map = { - 'payment_solution': 'paymentSolution', - 'reconciliation_id': 'reconciliationId', - 'link_id': 'linkId', - 'report_group': 'reportGroup', - 'visa_checkout_id': 'visaCheckoutId', - 'issuer': 'issuer' - } - - def __init__(self, payment_solution=None, reconciliation_id=None, link_id=None, report_group=None, visa_checkout_id=None, issuer=None): - """ - V2paymentsidreversalsProcessingInformation - a model defined in Swagger - """ - - self._payment_solution = None - self._reconciliation_id = None - self._link_id = None - self._report_group = None - self._visa_checkout_id = None - self._issuer = None - - if payment_solution is not None: - self.payment_solution = payment_solution - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if link_id is not None: - self.link_id = link_id - if report_group is not None: - self.report_group = report_group - if visa_checkout_id is not None: - self.visa_checkout_id = visa_checkout_id - if issuer is not None: - self.issuer = issuer - - @property - def payment_solution(self): - """ - Gets the payment_solution of this V2paymentsidreversalsProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :return: The payment_solution of this V2paymentsidreversalsProcessingInformation. - :rtype: str - """ - return self._payment_solution - - @payment_solution.setter - def payment_solution(self, payment_solution): - """ - Sets the payment_solution of this V2paymentsidreversalsProcessingInformation. - Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. - - :param payment_solution: The payment_solution of this V2paymentsidreversalsProcessingInformation. - :type: str - """ - if payment_solution is not None and len(payment_solution) > 12: - raise ValueError("Invalid value for `payment_solution`, length must be less than or equal to `12`") - - self._payment_solution = payment_solution - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this V2paymentsidreversalsProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :return: The reconciliation_id of this V2paymentsidreversalsProcessingInformation. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this V2paymentsidreversalsProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :param reconciliation_id: The reconciliation_id of this V2paymentsidreversalsProcessingInformation. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def link_id(self): - """ - Gets the link_id of this V2paymentsidreversalsProcessingInformation. - Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. - - :return: The link_id of this V2paymentsidreversalsProcessingInformation. - :rtype: str - """ - return self._link_id - - @link_id.setter - def link_id(self, link_id): - """ - Sets the link_id of this V2paymentsidreversalsProcessingInformation. - Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. - - :param link_id: The link_id of this V2paymentsidreversalsProcessingInformation. - :type: str - """ - if link_id is not None and len(link_id) > 26: - raise ValueError("Invalid value for `link_id`, length must be less than or equal to `26`") - - self._link_id = link_id - - @property - def report_group(self): - """ - Gets the report_group of this V2paymentsidreversalsProcessingInformation. - Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. - - :return: The report_group of this V2paymentsidreversalsProcessingInformation. - :rtype: str - """ - return self._report_group - - @report_group.setter - def report_group(self, report_group): - """ - Sets the report_group of this V2paymentsidreversalsProcessingInformation. - Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. - - :param report_group: The report_group of this V2paymentsidreversalsProcessingInformation. - :type: str - """ - if report_group is not None and len(report_group) > 25: - raise ValueError("Invalid value for `report_group`, length must be less than or equal to `25`") - - self._report_group = report_group - - @property - def visa_checkout_id(self): - """ - Gets the visa_checkout_id of this V2paymentsidreversalsProcessingInformation. - Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. - - :return: The visa_checkout_id of this V2paymentsidreversalsProcessingInformation. - :rtype: str - """ - return self._visa_checkout_id - - @visa_checkout_id.setter - def visa_checkout_id(self, visa_checkout_id): - """ - Sets the visa_checkout_id of this V2paymentsidreversalsProcessingInformation. - Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. - - :param visa_checkout_id: The visa_checkout_id of this V2paymentsidreversalsProcessingInformation. - :type: str - """ - if visa_checkout_id is not None and len(visa_checkout_id) > 48: - raise ValueError("Invalid value for `visa_checkout_id`, length must be less than or equal to `48`") - - self._visa_checkout_id = visa_checkout_id - - @property - def issuer(self): - """ - Gets the issuer of this V2paymentsidreversalsProcessingInformation. - - :return: The issuer of this V2paymentsidreversalsProcessingInformation. - :rtype: V2paymentsProcessingInformationIssuer - """ - return self._issuer - - @issuer.setter - def issuer(self, issuer): - """ - Sets the issuer of this V2paymentsidreversalsProcessingInformation. - - :param issuer: The issuer of this V2paymentsidreversalsProcessingInformation. - :type: V2paymentsProcessingInformationIssuer - """ - - self._issuer = issuer - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidreversalsProcessingInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidreversals_reversal_information.py b/CyberSource/models/v2paymentsidreversals_reversal_information.py deleted file mode 100644 index fbedaa11..00000000 --- a/CyberSource/models/v2paymentsidreversals_reversal_information.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidreversalsReversalInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'amount_details': 'V2paymentsidreversalsReversalInformationAmountDetails', - 'reason': 'str' - } - - attribute_map = { - 'amount_details': 'amountDetails', - 'reason': 'reason' - } - - def __init__(self, amount_details=None, reason=None): - """ - V2paymentsidreversalsReversalInformation - a model defined in Swagger - """ - - self._amount_details = None - self._reason = None - - if amount_details is not None: - self.amount_details = amount_details - if reason is not None: - self.reason = reason - - @property - def amount_details(self): - """ - Gets the amount_details of this V2paymentsidreversalsReversalInformation. - - :return: The amount_details of this V2paymentsidreversalsReversalInformation. - :rtype: V2paymentsidreversalsReversalInformationAmountDetails - """ - return self._amount_details - - @amount_details.setter - def amount_details(self, amount_details): - """ - Sets the amount_details of this V2paymentsidreversalsReversalInformation. - - :param amount_details: The amount_details of this V2paymentsidreversalsReversalInformation. - :type: V2paymentsidreversalsReversalInformationAmountDetails - """ - - self._amount_details = amount_details - - @property - def reason(self): - """ - Gets the reason of this V2paymentsidreversalsReversalInformation. - Reason for the authorization reversal. Possible value: - 34: Suspected fraud CyberSource ignores this field for processors that do not support this value. - - :return: The reason of this V2paymentsidreversalsReversalInformation. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this V2paymentsidreversalsReversalInformation. - Reason for the authorization reversal. Possible value: - 34: Suspected fraud CyberSource ignores this field for processors that do not support this value. - - :param reason: The reason of this V2paymentsidreversalsReversalInformation. - :type: str - """ - #if reason is not None and len(reason) > 3: - #raise ValueError("Invalid value for `reason`, length must be less than or equal to `3`") - - self._reason = reason - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidreversalsReversalInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2paymentsidreversals_reversal_information_amount_details.py b/CyberSource/models/v2paymentsidreversals_reversal_information_amount_details.py deleted file mode 100644 index da6b31cc..00000000 --- a/CyberSource/models/v2paymentsidreversals_reversal_information_amount_details.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2paymentsidreversalsReversalInformationAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'total_amount': 'str', - 'currency': 'str' - } - - attribute_map = { - 'total_amount': 'totalAmount', - 'currency': 'currency' - } - - def __init__(self, total_amount=None, currency=None): - """ - V2paymentsidreversalsReversalInformationAmountDetails - a model defined in Swagger - """ - - self._total_amount = None - self._currency = None - - if total_amount is not None: - self.total_amount = total_amount - if currency is not None: - self.currency = currency - - @property - def total_amount(self): - """ - Gets the total_amount of this V2paymentsidreversalsReversalInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The total_amount of this V2paymentsidreversalsReversalInformationAmountDetails. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this V2paymentsidreversalsReversalInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param total_amount: The total_amount of this V2paymentsidreversalsReversalInformationAmountDetails. - :type: str - """ - if total_amount is not None and len(total_amount) > 19: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") - - self._total_amount = total_amount - - @property - def currency(self): - """ - Gets the currency of this V2paymentsidreversalsReversalInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this V2paymentsidreversalsReversalInformationAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this V2paymentsidreversalsReversalInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this V2paymentsidreversalsReversalInformationAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2paymentsidreversalsReversalInformationAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_merchant_information.py b/CyberSource/models/v2payouts_merchant_information.py deleted file mode 100644 index fae81b72..00000000 --- a/CyberSource/models/v2payouts_merchant_information.py +++ /dev/null @@ -1,213 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsMerchantInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'category_code': 'int', - 'submit_local_date_time': 'str', - 'vat_registration_number': 'str', - 'merchant_descriptor': 'V2payoutsMerchantInformationMerchantDescriptor' - } - - attribute_map = { - 'category_code': 'categoryCode', - 'submit_local_date_time': 'submitLocalDateTime', - 'vat_registration_number': 'vatRegistrationNumber', - 'merchant_descriptor': 'merchantDescriptor' - } - - def __init__(self, category_code=None, submit_local_date_time=None, vat_registration_number=None, merchant_descriptor=None): - """ - V2payoutsMerchantInformation - a model defined in Swagger - """ - - self._category_code = None - self._submit_local_date_time = None - self._vat_registration_number = None - self._merchant_descriptor = None - - if category_code is not None: - self.category_code = category_code - if submit_local_date_time is not None: - self.submit_local_date_time = submit_local_date_time - if vat_registration_number is not None: - self.vat_registration_number = vat_registration_number - if merchant_descriptor is not None: - self.merchant_descriptor = merchant_descriptor - - @property - def category_code(self): - """ - Gets the category_code of this V2payoutsMerchantInformation. - Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The category_code of this V2payoutsMerchantInformation. - :rtype: int - """ - return self._category_code - - @category_code.setter - def category_code(self, category_code): - """ - Sets the category_code of this V2payoutsMerchantInformation. - Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param category_code: The category_code of this V2payoutsMerchantInformation. - :type: int - """ - if category_code is not None and category_code > 9999: - raise ValueError("Invalid value for `category_code`, must be a value less than or equal to `9999`") - - self._category_code = category_code - - @property - def submit_local_date_time(self): - """ - Gets the submit_local_date_time of this V2payoutsMerchantInformation. - Time that the transaction was submitted in local time. The time is in hhmmss format. - - :return: The submit_local_date_time of this V2payoutsMerchantInformation. - :rtype: str - """ - return self._submit_local_date_time - - @submit_local_date_time.setter - def submit_local_date_time(self, submit_local_date_time): - """ - Sets the submit_local_date_time of this V2payoutsMerchantInformation. - Time that the transaction was submitted in local time. The time is in hhmmss format. - - :param submit_local_date_time: The submit_local_date_time of this V2payoutsMerchantInformation. - :type: str - """ - if submit_local_date_time is not None and len(submit_local_date_time) > 6: - raise ValueError("Invalid value for `submit_local_date_time`, length must be less than or equal to `6`") - - self._submit_local_date_time = submit_local_date_time - - @property - def vat_registration_number(self): - """ - Gets the vat_registration_number of this V2payoutsMerchantInformation. - Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :return: The vat_registration_number of this V2payoutsMerchantInformation. - :rtype: str - """ - return self._vat_registration_number - - @vat_registration_number.setter - def vat_registration_number(self, vat_registration_number): - """ - Sets the vat_registration_number of this V2payoutsMerchantInformation. - Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) - - :param vat_registration_number: The vat_registration_number of this V2payoutsMerchantInformation. - :type: str - """ - if vat_registration_number is not None and len(vat_registration_number) > 21: - raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `21`") - - self._vat_registration_number = vat_registration_number - - @property - def merchant_descriptor(self): - """ - Gets the merchant_descriptor of this V2payoutsMerchantInformation. - - :return: The merchant_descriptor of this V2payoutsMerchantInformation. - :rtype: V2payoutsMerchantInformationMerchantDescriptor - """ - return self._merchant_descriptor - - @merchant_descriptor.setter - def merchant_descriptor(self, merchant_descriptor): - """ - Sets the merchant_descriptor of this V2payoutsMerchantInformation. - - :param merchant_descriptor: The merchant_descriptor of this V2payoutsMerchantInformation. - :type: V2payoutsMerchantInformationMerchantDescriptor - """ - - self._merchant_descriptor = merchant_descriptor - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsMerchantInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_merchant_information_merchant_descriptor.py b/CyberSource/models/v2payouts_merchant_information_merchant_descriptor.py deleted file mode 100644 index 4d60766a..00000000 --- a/CyberSource/models/v2payouts_merchant_information_merchant_descriptor.py +++ /dev/null @@ -1,277 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsMerchantInformationMerchantDescriptor(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'locality': 'str', - 'country': 'str', - 'administrative_area': 'str', - 'postal_code': 'str', - 'contact': 'str' - } - - attribute_map = { - 'name': 'name', - 'locality': 'locality', - 'country': 'country', - 'administrative_area': 'administrativeArea', - 'postal_code': 'postalCode', - 'contact': 'contact' - } - - def __init__(self, name=None, locality=None, country=None, administrative_area=None, postal_code=None, contact=None): - """ - V2payoutsMerchantInformationMerchantDescriptor - a model defined in Swagger - """ - - self._name = None - self._locality = None - self._country = None - self._administrative_area = None - self._postal_code = None - self._contact = None - - if name is not None: - self.name = name - if locality is not None: - self.locality = locality - if country is not None: - self.country = country - if administrative_area is not None: - self.administrative_area = administrative_area - if postal_code is not None: - self.postal_code = postal_code - if contact is not None: - self.contact = contact - - @property - def name(self): - """ - Gets the name of this V2payoutsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) - - :return: The name of this V2payoutsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V2payoutsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) - - :param name: The name of this V2payoutsMerchantInformationMerchantDescriptor. - :type: str - """ - if name is not None and len(name) > 23: - raise ValueError("Invalid value for `name`, length must be less than or equal to `23`") - - self._name = name - - @property - def locality(self): - """ - Gets the locality of this V2payoutsMerchantInformationMerchantDescriptor. - Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The locality of this V2payoutsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this V2payoutsMerchantInformationMerchantDescriptor. - Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param locality: The locality of this V2payoutsMerchantInformationMerchantDescriptor. - :type: str - """ - if locality is not None and len(locality) > 13: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `13`") - - self._locality = locality - - @property - def country(self): - """ - Gets the country of this V2payoutsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The country of this V2payoutsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this V2payoutsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param country: The country of this V2payoutsMerchantInformationMerchantDescriptor. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2payoutsMerchantInformationMerchantDescriptor. - Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The administrative_area of this V2payoutsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2payoutsMerchantInformationMerchantDescriptor. - Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param administrative_area: The administrative_area of this V2payoutsMerchantInformationMerchantDescriptor. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 3: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `3`") - - self._administrative_area = administrative_area - - @property - def postal_code(self): - """ - Gets the postal_code of this V2payoutsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The postal_code of this V2payoutsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2payoutsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param postal_code: The postal_code of this V2payoutsMerchantInformationMerchantDescriptor. - :type: str - """ - if postal_code is not None and len(postal_code) > 14: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `14`") - - self._postal_code = postal_code - - @property - def contact(self): - """ - Gets the contact of this V2payoutsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) - - :return: The contact of this V2payoutsMerchantInformationMerchantDescriptor. - :rtype: str - """ - return self._contact - - @contact.setter - def contact(self, contact): - """ - Sets the contact of this V2payoutsMerchantInformationMerchantDescriptor. - For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) - - :param contact: The contact of this V2payoutsMerchantInformationMerchantDescriptor. - :type: str - """ - if contact is not None and len(contact) > 14: - raise ValueError("Invalid value for `contact`, length must be less than or equal to `14`") - - self._contact = contact - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsMerchantInformationMerchantDescriptor): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_order_information.py b/CyberSource/models/v2payouts_order_information.py deleted file mode 100644 index b202a774..00000000 --- a/CyberSource/models/v2payouts_order_information.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsOrderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'amount_details': 'V2payoutsOrderInformationAmountDetails', - 'bill_to': 'V2payoutsOrderInformationBillTo' - } - - attribute_map = { - 'amount_details': 'amountDetails', - 'bill_to': 'billTo' - } - - def __init__(self, amount_details=None, bill_to=None): - """ - V2payoutsOrderInformation - a model defined in Swagger - """ - - self._amount_details = None - self._bill_to = None - - if amount_details is not None: - self.amount_details = amount_details - if bill_to is not None: - self.bill_to = bill_to - - @property - def amount_details(self): - """ - Gets the amount_details of this V2payoutsOrderInformation. - - :return: The amount_details of this V2payoutsOrderInformation. - :rtype: V2payoutsOrderInformationAmountDetails - """ - return self._amount_details - - @amount_details.setter - def amount_details(self, amount_details): - """ - Sets the amount_details of this V2payoutsOrderInformation. - - :param amount_details: The amount_details of this V2payoutsOrderInformation. - :type: V2payoutsOrderInformationAmountDetails - """ - - self._amount_details = amount_details - - @property - def bill_to(self): - """ - Gets the bill_to of this V2payoutsOrderInformation. - - :return: The bill_to of this V2payoutsOrderInformation. - :rtype: V2payoutsOrderInformationBillTo - """ - return self._bill_to - - @bill_to.setter - def bill_to(self, bill_to): - """ - Sets the bill_to of this V2payoutsOrderInformation. - - :param bill_to: The bill_to of this V2payoutsOrderInformation. - :type: V2payoutsOrderInformationBillTo - """ - - self._bill_to = bill_to - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsOrderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_order_information_amount_details.py b/CyberSource/models/v2payouts_order_information_amount_details.py deleted file mode 100644 index f38377ab..00000000 --- a/CyberSource/models/v2payouts_order_information_amount_details.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsOrderInformationAmountDetails(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'total_amount': 'str', - 'currency': 'str', - 'surcharge_amount': 'str' - } - - attribute_map = { - 'total_amount': 'totalAmount', - 'currency': 'currency', - 'surcharge_amount': 'surchargeAmount' - } - - def __init__(self, total_amount=None, currency=None, surcharge_amount=None): - """ - V2payoutsOrderInformationAmountDetails - a model defined in Swagger - """ - - self._total_amount = None - self._currency = None - self._surcharge_amount = None - - if total_amount is not None: - self.total_amount = total_amount - if currency is not None: - self.currency = currency - if surcharge_amount is not None: - self.surcharge_amount = surcharge_amount - - @property - def total_amount(self): - """ - Gets the total_amount of this V2payoutsOrderInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The total_amount of this V2payoutsOrderInformationAmountDetails. - :rtype: str - """ - return self._total_amount - - @total_amount.setter - def total_amount(self, total_amount): - """ - Sets the total_amount of this V2payoutsOrderInformationAmountDetails. - Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param total_amount: The total_amount of this V2payoutsOrderInformationAmountDetails. - :type: str - """ - if total_amount is not None and len(total_amount) > 19: - raise ValueError("Invalid value for `total_amount`, length must be less than or equal to `19`") - - self._total_amount = total_amount - - @property - def currency(self): - """ - Gets the currency of this V2payoutsOrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :return: The currency of this V2payoutsOrderInformationAmountDetails. - :rtype: str - """ - return self._currency - - @currency.setter - def currency(self, currency): - """ - Sets the currency of this V2payoutsOrderInformationAmountDetails. - Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. - - :param currency: The currency of this V2payoutsOrderInformationAmountDetails. - :type: str - """ - if currency is not None and len(currency) > 3: - raise ValueError("Invalid value for `currency`, length must be less than or equal to `3`") - - self._currency = currency - - @property - def surcharge_amount(self): - """ - Gets the surcharge_amount of this V2payoutsOrderInformationAmountDetails. - The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. * Applicable only for CTV for Payouts. * CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The surcharge_amount of this V2payoutsOrderInformationAmountDetails. - :rtype: str - """ - return self._surcharge_amount - - @surcharge_amount.setter - def surcharge_amount(self, surcharge_amount): - """ - Sets the surcharge_amount of this V2payoutsOrderInformationAmountDetails. - The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. * Applicable only for CTV for Payouts. * CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param surcharge_amount: The surcharge_amount of this V2payoutsOrderInformationAmountDetails. - :type: str - """ - if surcharge_amount is not None and len(surcharge_amount) > 15: - raise ValueError("Invalid value for `surcharge_amount`, length must be less than or equal to `15`") - - self._surcharge_amount = surcharge_amount - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsOrderInformationAmountDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_order_information_bill_to.py b/CyberSource/models/v2payouts_order_information_bill_to.py deleted file mode 100644 index ca49c43f..00000000 --- a/CyberSource/models/v2payouts_order_information_bill_to.py +++ /dev/null @@ -1,401 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsOrderInformationBillTo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'first_name': 'str', - 'last_name': 'str', - 'address1': 'str', - 'address2': 'str', - 'country': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'postal_code': 'str', - 'phone_number': 'str', - 'phone_type': 'str' - } - - attribute_map = { - 'first_name': 'firstName', - 'last_name': 'lastName', - 'address1': 'address1', - 'address2': 'address2', - 'country': 'country', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'postal_code': 'postalCode', - 'phone_number': 'phoneNumber', - 'phone_type': 'phoneType' - } - - def __init__(self, first_name=None, last_name=None, address1=None, address2=None, country=None, locality=None, administrative_area=None, postal_code=None, phone_number=None, phone_type=None): - """ - V2payoutsOrderInformationBillTo - a model defined in Swagger - """ - - self._first_name = None - self._last_name = None - self._address1 = None - self._address2 = None - self._country = None - self._locality = None - self._administrative_area = None - self._postal_code = None - self._phone_number = None - self._phone_type = None - - if first_name is not None: - self.first_name = first_name - if last_name is not None: - self.last_name = last_name - if address1 is not None: - self.address1 = address1 - if address2 is not None: - self.address2 = address2 - if country is not None: - self.country = country - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if postal_code is not None: - self.postal_code = postal_code - if phone_number is not None: - self.phone_number = phone_number - if phone_type is not None: - self.phone_type = phone_type - - @property - def first_name(self): - """ - Gets the first_name of this V2payoutsOrderInformationBillTo. - Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The first_name of this V2payoutsOrderInformationBillTo. - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """ - Sets the first_name of this V2payoutsOrderInformationBillTo. - Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param first_name: The first_name of this V2payoutsOrderInformationBillTo. - :type: str - """ - if first_name is not None and len(first_name) > 60: - raise ValueError("Invalid value for `first_name`, length must be less than or equal to `60`") - - self._first_name = first_name - - @property - def last_name(self): - """ - Gets the last_name of this V2payoutsOrderInformationBillTo. - Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The last_name of this V2payoutsOrderInformationBillTo. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this V2payoutsOrderInformationBillTo. - Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param last_name: The last_name of this V2payoutsOrderInformationBillTo. - :type: str - """ - if last_name is not None and len(last_name) > 60: - raise ValueError("Invalid value for `last_name`, length must be less than or equal to `60`") - - self._last_name = last_name - - @property - def address1(self): - """ - Gets the address1 of this V2payoutsOrderInformationBillTo. - First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The address1 of this V2payoutsOrderInformationBillTo. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this V2payoutsOrderInformationBillTo. - First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param address1: The address1 of this V2payoutsOrderInformationBillTo. - :type: str - """ - if address1 is not None and len(address1) > 60: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `60`") - - self._address1 = address1 - - @property - def address2(self): - """ - Gets the address2 of this V2payoutsOrderInformationBillTo. - Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The address2 of this V2payoutsOrderInformationBillTo. - :rtype: str - """ - return self._address2 - - @address2.setter - def address2(self, address2): - """ - Sets the address2 of this V2payoutsOrderInformationBillTo. - Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param address2: The address2 of this V2payoutsOrderInformationBillTo. - :type: str - """ - if address2 is not None and len(address2) > 60: - raise ValueError("Invalid value for `address2`, length must be less than or equal to `60`") - - self._address2 = address2 - - @property - def country(self): - """ - Gets the country of this V2payoutsOrderInformationBillTo. - Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The country of this V2payoutsOrderInformationBillTo. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this V2payoutsOrderInformationBillTo. - Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param country: The country of this V2payoutsOrderInformationBillTo. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - @property - def locality(self): - """ - Gets the locality of this V2payoutsOrderInformationBillTo. - City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The locality of this V2payoutsOrderInformationBillTo. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this V2payoutsOrderInformationBillTo. - City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param locality: The locality of this V2payoutsOrderInformationBillTo. - :type: str - """ - if locality is not None and len(locality) > 50: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `50`") - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2payoutsOrderInformationBillTo. - State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The administrative_area of this V2payoutsOrderInformationBillTo. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2payoutsOrderInformationBillTo. - State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param administrative_area: The administrative_area of this V2payoutsOrderInformationBillTo. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 2: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") - - self._administrative_area = administrative_area - - @property - def postal_code(self): - """ - Gets the postal_code of this V2payoutsOrderInformationBillTo. - Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The postal_code of this V2payoutsOrderInformationBillTo. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2payoutsOrderInformationBillTo. - Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param postal_code: The postal_code of this V2payoutsOrderInformationBillTo. - :type: str - """ - if postal_code is not None and len(postal_code) > 10: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") - - self._postal_code = postal_code - - @property - def phone_number(self): - """ - Gets the phone_number of this V2payoutsOrderInformationBillTo. - Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The phone_number of this V2payoutsOrderInformationBillTo. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this V2payoutsOrderInformationBillTo. - Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param phone_number: The phone_number of this V2payoutsOrderInformationBillTo. - :type: str - """ - if phone_number is not None and len(phone_number) > 15: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `15`") - - self._phone_number = phone_number - - @property - def phone_type(self): - """ - Gets the phone_type of this V2payoutsOrderInformationBillTo. - Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work - - :return: The phone_type of this V2payoutsOrderInformationBillTo. - :rtype: str - """ - return self._phone_type - - @phone_type.setter - def phone_type(self, phone_type): - """ - Sets the phone_type of this V2payoutsOrderInformationBillTo. - Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work - - :param phone_type: The phone_type of this V2payoutsOrderInformationBillTo. - :type: str - """ - allowed_values = ["day", "home", "night", "work"] - if phone_type not in allowed_values: - raise ValueError( - "Invalid value for `phone_type` ({0}), must be one of {1}" - .format(phone_type, allowed_values) - ) - - self._phone_type = phone_type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsOrderInformationBillTo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_payment_information.py b/CyberSource/models/v2payouts_payment_information.py deleted file mode 100644 index ae6699b7..00000000 --- a/CyberSource/models/v2payouts_payment_information.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsPaymentInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'card': 'V2payoutsPaymentInformationCard' - } - - attribute_map = { - 'card': 'card' - } - - def __init__(self, card=None): - """ - V2payoutsPaymentInformation - a model defined in Swagger - """ - - self._card = None - - if card is not None: - self.card = card - - @property - def card(self): - """ - Gets the card of this V2payoutsPaymentInformation. - - :return: The card of this V2payoutsPaymentInformation. - :rtype: V2payoutsPaymentInformationCard - """ - return self._card - - @card.setter - def card(self, card): - """ - Sets the card of this V2payoutsPaymentInformation. - - :param card: The card of this V2payoutsPaymentInformation. - :type: V2payoutsPaymentInformationCard - """ - - self._card = card - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsPaymentInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_payment_information_card.py b/CyberSource/models/v2payouts_payment_information_card.py deleted file mode 100644 index a0dbbd12..00000000 --- a/CyberSource/models/v2payouts_payment_information_card.py +++ /dev/null @@ -1,247 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsPaymentInformationCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'str', - 'number': 'str', - 'expiration_month': 'str', - 'expiration_year': 'str', - 'source_account_type': 'str' - } - - attribute_map = { - 'type': 'type', - 'number': 'number', - 'expiration_month': 'expirationMonth', - 'expiration_year': 'expirationYear', - 'source_account_type': 'sourceAccountType' - } - - def __init__(self, type=None, number=None, expiration_month=None, expiration_year=None, source_account_type=None): - """ - V2payoutsPaymentInformationCard - a model defined in Swagger - """ - - self._type = None - self._number = None - self._expiration_month = None - self._expiration_year = None - self._source_account_type = None - - if type is not None: - self.type = type - if number is not None: - self.number = number - if expiration_month is not None: - self.expiration_month = expiration_month - if expiration_year is not None: - self.expiration_year = expiration_year - if source_account_type is not None: - self.source_account_type = source_account_type - - @property - def type(self): - """ - Gets the type of this V2payoutsPaymentInformationCard. - Type of card to authorize. * 001 Visa * 002 Mastercard * 003 Amex * 004 Discover - - :return: The type of this V2payoutsPaymentInformationCard. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this V2payoutsPaymentInformationCard. - Type of card to authorize. * 001 Visa * 002 Mastercard * 003 Amex * 004 Discover - - :param type: The type of this V2payoutsPaymentInformationCard. - :type: str - """ - if type is not None and len(type) > 3: - raise ValueError("Invalid value for `type`, length must be less than or equal to `3`") - - self._type = type - - @property - def number(self): - """ - Gets the number of this V2payoutsPaymentInformationCard. - Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The number of this V2payoutsPaymentInformationCard. - :rtype: str - """ - return self._number - - @number.setter - def number(self, number): - """ - Sets the number of this V2payoutsPaymentInformationCard. - Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param number: The number of this V2payoutsPaymentInformationCard. - :type: str - """ - if number is not None and len(number) > 20: - raise ValueError("Invalid value for `number`, length must be less than or equal to `20`") - - self._number = number - - @property - def expiration_month(self): - """ - Gets the expiration_month of this V2payoutsPaymentInformationCard. - Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The expiration_month of this V2payoutsPaymentInformationCard. - :rtype: str - """ - return self._expiration_month - - @expiration_month.setter - def expiration_month(self, expiration_month): - """ - Sets the expiration_month of this V2payoutsPaymentInformationCard. - Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param expiration_month: The expiration_month of this V2payoutsPaymentInformationCard. - :type: str - """ - if expiration_month is not None and len(expiration_month) > 2: - raise ValueError("Invalid value for `expiration_month`, length must be less than or equal to `2`") - - self._expiration_month = expiration_month - - @property - def expiration_year(self): - """ - Gets the expiration_year of this V2payoutsPaymentInformationCard. - Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :return: The expiration_year of this V2payoutsPaymentInformationCard. - :rtype: str - """ - return self._expiration_year - - @expiration_year.setter - def expiration_year(self, expiration_year): - """ - Sets the expiration_year of this V2payoutsPaymentInformationCard. - Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) - - :param expiration_year: The expiration_year of this V2payoutsPaymentInformationCard. - :type: str - """ - if expiration_year is not None and len(expiration_year) > 4: - raise ValueError("Invalid value for `expiration_year`, length must be less than or equal to `4`") - - self._expiration_year = expiration_year - - @property - def source_account_type(self): - """ - Gets the source_account_type of this V2payoutsPaymentInformationCard. - Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. * Debit transactions on Cielo and Comercio Latino. * Transactions with Brazilian-issued cards on CyberSource through VisaNet. * Applicable only for CTV. Note Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. * CH: Checking account * CR: Credit card account * SA: Savings account * UA: Universal Account For combo card transactions with Mastercard in Brazil on CyberSource through VisaNet, the **cardUsage** field is also supported. - - :return: The source_account_type of this V2payoutsPaymentInformationCard. - :rtype: str - """ - return self._source_account_type - - @source_account_type.setter - def source_account_type(self, source_account_type): - """ - Sets the source_account_type of this V2payoutsPaymentInformationCard. - Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. * Debit transactions on Cielo and Comercio Latino. * Transactions with Brazilian-issued cards on CyberSource through VisaNet. * Applicable only for CTV. Note Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. * CH: Checking account * CR: Credit card account * SA: Savings account * UA: Universal Account For combo card transactions with Mastercard in Brazil on CyberSource through VisaNet, the **cardUsage** field is also supported. - - :param source_account_type: The source_account_type of this V2payoutsPaymentInformationCard. - :type: str - """ - if source_account_type is not None and len(source_account_type) > 2: - raise ValueError("Invalid value for `source_account_type`, length must be less than or equal to `2`") - - self._source_account_type = source_account_type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsPaymentInformationCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_processing_information.py b/CyberSource/models/v2payouts_processing_information.py deleted file mode 100644 index dbc45075..00000000 --- a/CyberSource/models/v2payouts_processing_information.py +++ /dev/null @@ -1,243 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsProcessingInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'business_application_id': 'str', - 'network_routing_order': 'str', - 'commerce_indicator': 'str', - 'reconciliation_id': 'str', - 'payouts_options': 'V2payoutsProcessingInformationPayoutsOptions' - } - - attribute_map = { - 'business_application_id': 'businessApplicationId', - 'network_routing_order': 'networkRoutingOrder', - 'commerce_indicator': 'commerceIndicator', - 'reconciliation_id': 'reconciliationId', - 'payouts_options': 'payoutsOptions' - } - - def __init__(self, business_application_id=None, network_routing_order=None, commerce_indicator=None, reconciliation_id=None, payouts_options=None): - """ - V2payoutsProcessingInformation - a model defined in Swagger - """ - - self._business_application_id = None - self._network_routing_order = None - self._commerce_indicator = None - self._reconciliation_id = None - self._payouts_options = None - - if business_application_id is not None: - self.business_application_id = business_application_id - if network_routing_order is not None: - self.network_routing_order = network_routing_order - if commerce_indicator is not None: - self.commerce_indicator = commerce_indicator - if reconciliation_id is not None: - self.reconciliation_id = reconciliation_id - if payouts_options is not None: - self.payouts_options = payouts_options - - @property - def business_application_id(self): - """ - Gets the business_application_id of this V2payoutsProcessingInformation. - Payouts transaction type. Applicable Processors: FDC Compass, Paymentech, CtV Possible values: **Credit Card Bill Payment** - **CP**: credit card bill payment **Funds Disbursement** - **FD**: funds disbursement - **GD**: government disbursement - **MD**: merchant disbursement **Money Transfer** - **AA**: account to account. Sender and receiver are same person. - **PP**: person to person. Sender and receiver are different. **Prepaid Load** - **TU**: top up - - :return: The business_application_id of this V2payoutsProcessingInformation. - :rtype: str - """ - return self._business_application_id - - @business_application_id.setter - def business_application_id(self, business_application_id): - """ - Sets the business_application_id of this V2payoutsProcessingInformation. - Payouts transaction type. Applicable Processors: FDC Compass, Paymentech, CtV Possible values: **Credit Card Bill Payment** - **CP**: credit card bill payment **Funds Disbursement** - **FD**: funds disbursement - **GD**: government disbursement - **MD**: merchant disbursement **Money Transfer** - **AA**: account to account. Sender and receiver are same person. - **PP**: person to person. Sender and receiver are different. **Prepaid Load** - **TU**: top up - - :param business_application_id: The business_application_id of this V2payoutsProcessingInformation. - :type: str - """ - if business_application_id is not None and len(business_application_id) > 2: - raise ValueError("Invalid value for `business_application_id`, length must be less than or equal to `2`") - - self._business_application_id = business_application_id - - @property - def network_routing_order(self): - """ - Gets the network_routing_order of this V2payoutsProcessingInformation. - This field is optionally used by Push Payments Gateway participants (merchants and acquirers) to get the attributes for specified networks only. The networks specified in this field must be a subset of the information provided during program enrollment. Refer to Sharing Group Code/Network Routing Order. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the network routing order. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities. See https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code , under section 'Network ID and Sharing Group Code' on the left panel for available values - - :return: The network_routing_order of this V2payoutsProcessingInformation. - :rtype: str - """ - return self._network_routing_order - - @network_routing_order.setter - def network_routing_order(self, network_routing_order): - """ - Sets the network_routing_order of this V2payoutsProcessingInformation. - This field is optionally used by Push Payments Gateway participants (merchants and acquirers) to get the attributes for specified networks only. The networks specified in this field must be a subset of the information provided during program enrollment. Refer to Sharing Group Code/Network Routing Order. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the network routing order. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities. See https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code , under section 'Network ID and Sharing Group Code' on the left panel for available values - - :param network_routing_order: The network_routing_order of this V2payoutsProcessingInformation. - :type: str - """ - if network_routing_order is not None and len(network_routing_order) > 30: - raise ValueError("Invalid value for `network_routing_order`, length must be less than or equal to `30`") - - self._network_routing_order = network_routing_order - - @property - def commerce_indicator(self): - """ - Gets the commerce_indicator of this V2payoutsProcessingInformation. - Type of transaction. Possible value for Fast Payments transactions: - internet - - :return: The commerce_indicator of this V2payoutsProcessingInformation. - :rtype: str - """ - return self._commerce_indicator - - @commerce_indicator.setter - def commerce_indicator(self, commerce_indicator): - """ - Sets the commerce_indicator of this V2payoutsProcessingInformation. - Type of transaction. Possible value for Fast Payments transactions: - internet - - :param commerce_indicator: The commerce_indicator of this V2payoutsProcessingInformation. - :type: str - """ - if commerce_indicator is not None and len(commerce_indicator) > 13: - raise ValueError("Invalid value for `commerce_indicator`, length must be less than or equal to `13`") - - self._commerce_indicator = commerce_indicator - - @property - def reconciliation_id(self): - """ - Gets the reconciliation_id of this V2payoutsProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :return: The reconciliation_id of this V2payoutsProcessingInformation. - :rtype: str - """ - return self._reconciliation_id - - @reconciliation_id.setter - def reconciliation_id(self, reconciliation_id): - """ - Sets the reconciliation_id of this V2payoutsProcessingInformation. - Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). - - :param reconciliation_id: The reconciliation_id of this V2payoutsProcessingInformation. - :type: str - """ - if reconciliation_id is not None and len(reconciliation_id) > 60: - raise ValueError("Invalid value for `reconciliation_id`, length must be less than or equal to `60`") - - self._reconciliation_id = reconciliation_id - - @property - def payouts_options(self): - """ - Gets the payouts_options of this V2payoutsProcessingInformation. - - :return: The payouts_options of this V2payoutsProcessingInformation. - :rtype: V2payoutsProcessingInformationPayoutsOptions - """ - return self._payouts_options - - @payouts_options.setter - def payouts_options(self, payouts_options): - """ - Sets the payouts_options of this V2payoutsProcessingInformation. - - :param payouts_options: The payouts_options of this V2payoutsProcessingInformation. - :type: V2payoutsProcessingInformationPayoutsOptions - """ - - self._payouts_options = payouts_options - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsProcessingInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_processing_information_payouts_options.py b/CyberSource/models/v2payouts_processing_information_payouts_options.py deleted file mode 100644 index 08f93b18..00000000 --- a/CyberSource/models/v2payouts_processing_information_payouts_options.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsProcessingInformationPayoutsOptions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'acquirer_merchant_id': 'str', - 'acquirer_bin': 'str', - 'retrieval_reference_number': 'str', - 'account_funding_reference_id': 'str' - } - - attribute_map = { - 'acquirer_merchant_id': 'acquirerMerchantId', - 'acquirer_bin': 'acquirerBin', - 'retrieval_reference_number': 'retrievalReferenceNumber', - 'account_funding_reference_id': 'accountFundingReferenceId' - } - - def __init__(self, acquirer_merchant_id=None, acquirer_bin=None, retrieval_reference_number=None, account_funding_reference_id=None): - """ - V2payoutsProcessingInformationPayoutsOptions - a model defined in Swagger - """ - - self._acquirer_merchant_id = None - self._acquirer_bin = None - self._retrieval_reference_number = None - self._account_funding_reference_id = None - - if acquirer_merchant_id is not None: - self.acquirer_merchant_id = acquirer_merchant_id - if acquirer_bin is not None: - self.acquirer_bin = acquirer_bin - if retrieval_reference_number is not None: - self.retrieval_reference_number = retrieval_reference_number - if account_funding_reference_id is not None: - self.account_funding_reference_id = account_funding_reference_id - - @property - def acquirer_merchant_id(self): - """ - Gets the acquirer_merchant_id of this V2payoutsProcessingInformationPayoutsOptions. - This field identifies the card acceptor for defining the point of service terminal in both local and interchange environments. An acquirer-assigned code identifying the card acceptor for the transaction. Depending on the acquirer and merchant billing and reporting requirements, the code can represent a merchant, a specific merchant location, or a specific merchant location terminal. Acquiring Institution Identification Code uniquely identifies the merchant. The value from the original is required in any subsequent messages, including reversals, chargebacks, and representments. * Applicable only for CTV for Payouts. - - :return: The acquirer_merchant_id of this V2payoutsProcessingInformationPayoutsOptions. - :rtype: str - """ - return self._acquirer_merchant_id - - @acquirer_merchant_id.setter - def acquirer_merchant_id(self, acquirer_merchant_id): - """ - Sets the acquirer_merchant_id of this V2payoutsProcessingInformationPayoutsOptions. - This field identifies the card acceptor for defining the point of service terminal in both local and interchange environments. An acquirer-assigned code identifying the card acceptor for the transaction. Depending on the acquirer and merchant billing and reporting requirements, the code can represent a merchant, a specific merchant location, or a specific merchant location terminal. Acquiring Institution Identification Code uniquely identifies the merchant. The value from the original is required in any subsequent messages, including reversals, chargebacks, and representments. * Applicable only for CTV for Payouts. - - :param acquirer_merchant_id: The acquirer_merchant_id of this V2payoutsProcessingInformationPayoutsOptions. - :type: str - """ - if acquirer_merchant_id is not None and len(acquirer_merchant_id) > 15: - raise ValueError("Invalid value for `acquirer_merchant_id`, length must be less than or equal to `15`") - - self._acquirer_merchant_id = acquirer_merchant_id - - @property - def acquirer_bin(self): - """ - Gets the acquirer_bin of this V2payoutsProcessingInformationPayoutsOptions. - This code identifies the financial institution acting as the acquirer of this customer transaction. The acquirer is the member or system user that signed the merchant or ADM or dispensed cash. This number is usually Visa-assigned. * Applicable only for CTV for Payouts. - - :return: The acquirer_bin of this V2payoutsProcessingInformationPayoutsOptions. - :rtype: str - """ - return self._acquirer_bin - - @acquirer_bin.setter - def acquirer_bin(self, acquirer_bin): - """ - Sets the acquirer_bin of this V2payoutsProcessingInformationPayoutsOptions. - This code identifies the financial institution acting as the acquirer of this customer transaction. The acquirer is the member or system user that signed the merchant or ADM or dispensed cash. This number is usually Visa-assigned. * Applicable only for CTV for Payouts. - - :param acquirer_bin: The acquirer_bin of this V2payoutsProcessingInformationPayoutsOptions. - :type: str - """ - if acquirer_bin is not None and len(acquirer_bin) > 11: - raise ValueError("Invalid value for `acquirer_bin`, length must be less than or equal to `11`") - - self._acquirer_bin = acquirer_bin - - @property - def retrieval_reference_number(self): - """ - Gets the retrieval_reference_number of this V2payoutsProcessingInformationPayoutsOptions. - This field contains a number that is used with other data elements as a key to identify and track all messages related to a given cardholder transaction; that is, to a given transaction set. * Applicable only for CTV for Payouts. - - :return: The retrieval_reference_number of this V2payoutsProcessingInformationPayoutsOptions. - :rtype: str - """ - return self._retrieval_reference_number - - @retrieval_reference_number.setter - def retrieval_reference_number(self, retrieval_reference_number): - """ - Sets the retrieval_reference_number of this V2payoutsProcessingInformationPayoutsOptions. - This field contains a number that is used with other data elements as a key to identify and track all messages related to a given cardholder transaction; that is, to a given transaction set. * Applicable only for CTV for Payouts. - - :param retrieval_reference_number: The retrieval_reference_number of this V2payoutsProcessingInformationPayoutsOptions. - :type: str - """ - if retrieval_reference_number is not None and len(retrieval_reference_number) > 12: - raise ValueError("Invalid value for `retrieval_reference_number`, length must be less than or equal to `12`") - - self._retrieval_reference_number = retrieval_reference_number - - @property - def account_funding_reference_id(self): - """ - Gets the account_funding_reference_id of this V2payoutsProcessingInformationPayoutsOptions. - Visa-generated transaction identifier (TID) that is unique for each original authorization and financial request. * Applicable only for CTV for Payouts. - - :return: The account_funding_reference_id of this V2payoutsProcessingInformationPayoutsOptions. - :rtype: str - """ - return self._account_funding_reference_id - - @account_funding_reference_id.setter - def account_funding_reference_id(self, account_funding_reference_id): - """ - Sets the account_funding_reference_id of this V2payoutsProcessingInformationPayoutsOptions. - Visa-generated transaction identifier (TID) that is unique for each original authorization and financial request. * Applicable only for CTV for Payouts. - - :param account_funding_reference_id: The account_funding_reference_id of this V2payoutsProcessingInformationPayoutsOptions. - :type: str - """ - if account_funding_reference_id is not None and len(account_funding_reference_id) > 15: - raise ValueError("Invalid value for `account_funding_reference_id`, length must be less than or equal to `15`") - - self._account_funding_reference_id = account_funding_reference_id - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsProcessingInformationPayoutsOptions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_recipient_information.py b/CyberSource/models/v2payouts_recipient_information.py deleted file mode 100644 index 7ef516a3..00000000 --- a/CyberSource/models/v2payouts_recipient_information.py +++ /dev/null @@ -1,399 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsRecipientInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'first_name': 'str', - 'middle_initial': 'str', - 'last_name': 'str', - 'address1': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'country': 'str', - 'postal_code': 'str', - 'phone_number': 'str', - 'date_of_birth': 'str' - } - - attribute_map = { - 'first_name': 'firstName', - 'middle_initial': 'middleInitial', - 'last_name': 'lastName', - 'address1': 'address1', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'country': 'country', - 'postal_code': 'postalCode', - 'phone_number': 'phoneNumber', - 'date_of_birth': 'dateOfBirth' - } - - def __init__(self, first_name=None, middle_initial=None, last_name=None, address1=None, locality=None, administrative_area=None, country=None, postal_code=None, phone_number=None, date_of_birth=None): - """ - V2payoutsRecipientInformation - a model defined in Swagger - """ - - self._first_name = None - self._middle_initial = None - self._last_name = None - self._address1 = None - self._locality = None - self._administrative_area = None - self._country = None - self._postal_code = None - self._phone_number = None - self._date_of_birth = None - - if first_name is not None: - self.first_name = first_name - if middle_initial is not None: - self.middle_initial = middle_initial - if last_name is not None: - self.last_name = last_name - if address1 is not None: - self.address1 = address1 - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if country is not None: - self.country = country - if postal_code is not None: - self.postal_code = postal_code - if phone_number is not None: - self.phone_number = phone_number - if date_of_birth is not None: - self.date_of_birth = date_of_birth - - @property - def first_name(self): - """ - Gets the first_name of this V2payoutsRecipientInformation. - First name of recipient. characters. * CTV (14) * Paymentech (30) - - :return: The first_name of this V2payoutsRecipientInformation. - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """ - Sets the first_name of this V2payoutsRecipientInformation. - First name of recipient. characters. * CTV (14) * Paymentech (30) - - :param first_name: The first_name of this V2payoutsRecipientInformation. - :type: str - """ - if first_name is not None and len(first_name) > 35: - raise ValueError("Invalid value for `first_name`, length must be less than or equal to `35`") - - self._first_name = first_name - - @property - def middle_initial(self): - """ - Gets the middle_initial of this V2payoutsRecipientInformation. - Middle Initial of recipient. Required only for FDCCompass. - - :return: The middle_initial of this V2payoutsRecipientInformation. - :rtype: str - """ - return self._middle_initial - - @middle_initial.setter - def middle_initial(self, middle_initial): - """ - Sets the middle_initial of this V2payoutsRecipientInformation. - Middle Initial of recipient. Required only for FDCCompass. - - :param middle_initial: The middle_initial of this V2payoutsRecipientInformation. - :type: str - """ - if middle_initial is not None and len(middle_initial) > 1: - raise ValueError("Invalid value for `middle_initial`, length must be less than or equal to `1`") - - self._middle_initial = middle_initial - - @property - def last_name(self): - """ - Gets the last_name of this V2payoutsRecipientInformation. - Last name of recipient. characters. * CTV (14) * Paymentech (30) - - :return: The last_name of this V2payoutsRecipientInformation. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this V2payoutsRecipientInformation. - Last name of recipient. characters. * CTV (14) * Paymentech (30) - - :param last_name: The last_name of this V2payoutsRecipientInformation. - :type: str - """ - if last_name is not None and len(last_name) > 35: - raise ValueError("Invalid value for `last_name`, length must be less than or equal to `35`") - - self._last_name = last_name - - @property - def address1(self): - """ - Gets the address1 of this V2payoutsRecipientInformation. - Recipient address information. Required only for FDCCompass. - - :return: The address1 of this V2payoutsRecipientInformation. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this V2payoutsRecipientInformation. - Recipient address information. Required only for FDCCompass. - - :param address1: The address1 of this V2payoutsRecipientInformation. - :type: str - """ - if address1 is not None and len(address1) > 50: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `50`") - - self._address1 = address1 - - @property - def locality(self): - """ - Gets the locality of this V2payoutsRecipientInformation. - Recipient city. Required only for FDCCompass. - - :return: The locality of this V2payoutsRecipientInformation. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this V2payoutsRecipientInformation. - Recipient city. Required only for FDCCompass. - - :param locality: The locality of this V2payoutsRecipientInformation. - :type: str - """ - if locality is not None and len(locality) > 25: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `25`") - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2payoutsRecipientInformation. - Recipient State. Required only for FDCCompass. - - :return: The administrative_area of this V2payoutsRecipientInformation. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2payoutsRecipientInformation. - Recipient State. Required only for FDCCompass. - - :param administrative_area: The administrative_area of this V2payoutsRecipientInformation. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 3: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `3`") - - self._administrative_area = administrative_area - - @property - def country(self): - """ - Gets the country of this V2payoutsRecipientInformation. - Recipient country code. Required only for FDCCompass. - - :return: The country of this V2payoutsRecipientInformation. - :rtype: str - """ - return self._country - - @country.setter - def country(self, country): - """ - Sets the country of this V2payoutsRecipientInformation. - Recipient country code. Required only for FDCCompass. - - :param country: The country of this V2payoutsRecipientInformation. - :type: str - """ - if country is not None and len(country) > 2: - raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") - - self._country = country - - @property - def postal_code(self): - """ - Gets the postal_code of this V2payoutsRecipientInformation. - Recipient postal code. Required only for FDCCompass. - - :return: The postal_code of this V2payoutsRecipientInformation. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2payoutsRecipientInformation. - Recipient postal code. Required only for FDCCompass. - - :param postal_code: The postal_code of this V2payoutsRecipientInformation. - :type: str - """ - if postal_code is not None and len(postal_code) > 10: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") - - self._postal_code = postal_code - - @property - def phone_number(self): - """ - Gets the phone_number of this V2payoutsRecipientInformation. - Recipient phone number. Required only for FDCCompass. - - :return: The phone_number of this V2payoutsRecipientInformation. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this V2payoutsRecipientInformation. - Recipient phone number. Required only for FDCCompass. - - :param phone_number: The phone_number of this V2payoutsRecipientInformation. - :type: str - """ - if phone_number is not None and len(phone_number) > 20: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `20`") - - self._phone_number = phone_number - - @property - def date_of_birth(self): - """ - Gets the date_of_birth of this V2payoutsRecipientInformation. - Recipient date of birth in YYYYMMDD format. Required only for FDCCompass. - - :return: The date_of_birth of this V2payoutsRecipientInformation. - :rtype: str - """ - return self._date_of_birth - - @date_of_birth.setter - def date_of_birth(self, date_of_birth): - """ - Sets the date_of_birth of this V2payoutsRecipientInformation. - Recipient date of birth in YYYYMMDD format. Required only for FDCCompass. - - :param date_of_birth: The date_of_birth of this V2payoutsRecipientInformation. - :type: str - """ - if date_of_birth is not None and len(date_of_birth) > 8: - raise ValueError("Invalid value for `date_of_birth`, length must be less than or equal to `8`") - if date_of_birth is not None and len(date_of_birth) < 8: - raise ValueError("Invalid value for `date_of_birth`, length must be greater than or equal to `8`") - - self._date_of_birth = date_of_birth - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsRecipientInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_sender_information.py b/CyberSource/models/v2payouts_sender_information.py deleted file mode 100644 index 117e31ac..00000000 --- a/CyberSource/models/v2payouts_sender_information.py +++ /dev/null @@ -1,515 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsSenderInformation(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'reference_number': 'str', - 'account': 'V2payoutsSenderInformationAccount', - 'first_name': 'str', - 'middle_initial': 'str', - 'last_name': 'str', - 'name': 'str', - 'address1': 'str', - 'locality': 'str', - 'administrative_area': 'str', - 'country_code': 'str', - 'postal_code': 'str', - 'phone_number': 'str', - 'date_of_birth': 'str', - 'vat_registration_number': 'str' - } - - attribute_map = { - 'reference_number': 'referenceNumber', - 'account': 'account', - 'first_name': 'firstName', - 'middle_initial': 'middleInitial', - 'last_name': 'lastName', - 'name': 'name', - 'address1': 'address1', - 'locality': 'locality', - 'administrative_area': 'administrativeArea', - 'country_code': 'countryCode', - 'postal_code': 'postalCode', - 'phone_number': 'phoneNumber', - 'date_of_birth': 'dateOfBirth', - 'vat_registration_number': 'vatRegistrationNumber' - } - - def __init__(self, reference_number=None, account=None, first_name=None, middle_initial=None, last_name=None, name=None, address1=None, locality=None, administrative_area=None, country_code=None, postal_code=None, phone_number=None, date_of_birth=None, vat_registration_number=None): - """ - V2payoutsSenderInformation - a model defined in Swagger - """ - - self._reference_number = None - self._account = None - self._first_name = None - self._middle_initial = None - self._last_name = None - self._name = None - self._address1 = None - self._locality = None - self._administrative_area = None - self._country_code = None - self._postal_code = None - self._phone_number = None - self._date_of_birth = None - self._vat_registration_number = None - - if reference_number is not None: - self.reference_number = reference_number - if account is not None: - self.account = account - if first_name is not None: - self.first_name = first_name - if middle_initial is not None: - self.middle_initial = middle_initial - if last_name is not None: - self.last_name = last_name - if name is not None: - self.name = name - if address1 is not None: - self.address1 = address1 - if locality is not None: - self.locality = locality - if administrative_area is not None: - self.administrative_area = administrative_area - if country_code is not None: - self.country_code = country_code - if postal_code is not None: - self.postal_code = postal_code - if phone_number is not None: - self.phone_number = phone_number - if date_of_birth is not None: - self.date_of_birth = date_of_birth - if vat_registration_number is not None: - self.vat_registration_number = vat_registration_number - - @property - def reference_number(self): - """ - Gets the reference_number of this V2payoutsSenderInformation. - Reference number generated by you that uniquely identifies the sender. - - :return: The reference_number of this V2payoutsSenderInformation. - :rtype: str - """ - return self._reference_number - - @reference_number.setter - def reference_number(self, reference_number): - """ - Sets the reference_number of this V2payoutsSenderInformation. - Reference number generated by you that uniquely identifies the sender. - - :param reference_number: The reference_number of this V2payoutsSenderInformation. - :type: str - """ - if reference_number is not None and len(reference_number) > 19: - raise ValueError("Invalid value for `reference_number`, length must be less than or equal to `19`") - - self._reference_number = reference_number - - @property - def account(self): - """ - Gets the account of this V2payoutsSenderInformation. - - :return: The account of this V2payoutsSenderInformation. - :rtype: V2payoutsSenderInformationAccount - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this V2payoutsSenderInformation. - - :param account: The account of this V2payoutsSenderInformation. - :type: V2payoutsSenderInformationAccount - """ - - self._account = account - - @property - def first_name(self): - """ - Gets the first_name of this V2payoutsSenderInformation. - First name of sender (Optional). * CTV (14) * Paymentech (30) - - :return: The first_name of this V2payoutsSenderInformation. - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """ - Sets the first_name of this V2payoutsSenderInformation. - First name of sender (Optional). * CTV (14) * Paymentech (30) - - :param first_name: The first_name of this V2payoutsSenderInformation. - :type: str - """ - if first_name is not None and len(first_name) > 35: - raise ValueError("Invalid value for `first_name`, length must be less than or equal to `35`") - - self._first_name = first_name - - @property - def middle_initial(self): - """ - Gets the middle_initial of this V2payoutsSenderInformation. - Recipient middle initial (Optional). - - :return: The middle_initial of this V2payoutsSenderInformation. - :rtype: str - """ - return self._middle_initial - - @middle_initial.setter - def middle_initial(self, middle_initial): - """ - Sets the middle_initial of this V2payoutsSenderInformation. - Recipient middle initial (Optional). - - :param middle_initial: The middle_initial of this V2payoutsSenderInformation. - :type: str - """ - if middle_initial is not None and len(middle_initial) > 1: - raise ValueError("Invalid value for `middle_initial`, length must be less than or equal to `1`") - - self._middle_initial = middle_initial - - @property - def last_name(self): - """ - Gets the last_name of this V2payoutsSenderInformation. - Recipient last name (Optional). * CTV (14) * Paymentech (30) - - :return: The last_name of this V2payoutsSenderInformation. - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """ - Sets the last_name of this V2payoutsSenderInformation. - Recipient last name (Optional). * CTV (14) * Paymentech (30) - - :param last_name: The last_name of this V2payoutsSenderInformation. - :type: str - """ - if last_name is not None and len(last_name) > 35: - raise ValueError("Invalid value for `last_name`, length must be less than or equal to `35`") - - self._last_name = last_name - - @property - def name(self): - """ - Gets the name of this V2payoutsSenderInformation. - Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30) - - :return: The name of this V2payoutsSenderInformation. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V2payoutsSenderInformation. - Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30) - - :param name: The name of this V2payoutsSenderInformation. - :type: str - """ - if name is not None and len(name) > 24: - raise ValueError("Invalid value for `name`, length must be less than or equal to `24`") - - self._name = name - - @property - def address1(self): - """ - Gets the address1 of this V2payoutsSenderInformation. - Street address of sender. **Funds Disbursement** This value is the address of the originator sending the funds disbursement. - - :return: The address1 of this V2payoutsSenderInformation. - :rtype: str - """ - return self._address1 - - @address1.setter - def address1(self, address1): - """ - Sets the address1 of this V2payoutsSenderInformation. - Street address of sender. **Funds Disbursement** This value is the address of the originator sending the funds disbursement. - - :param address1: The address1 of this V2payoutsSenderInformation. - :type: str - """ - if address1 is not None and len(address1) > 50: - raise ValueError("Invalid value for `address1`, length must be less than or equal to `50`") - - self._address1 = address1 - - @property - def locality(self): - """ - Gets the locality of this V2payoutsSenderInformation. - City of sender. **Funds Disbursement** This value is the city of the originator sending the funds disbursement. - - :return: The locality of this V2payoutsSenderInformation. - :rtype: str - """ - return self._locality - - @locality.setter - def locality(self, locality): - """ - Sets the locality of this V2payoutsSenderInformation. - City of sender. **Funds Disbursement** This value is the city of the originator sending the funds disbursement. - - :param locality: The locality of this V2payoutsSenderInformation. - :type: str - """ - if locality is not None and len(locality) > 25: - raise ValueError("Invalid value for `locality`, length must be less than or equal to `25`") - - self._locality = locality - - @property - def administrative_area(self): - """ - Gets the administrative_area of this V2payoutsSenderInformation. - Sender’s state. Use the State, Province, and Territory Codes for the United States and Canada. - - :return: The administrative_area of this V2payoutsSenderInformation. - :rtype: str - """ - return self._administrative_area - - @administrative_area.setter - def administrative_area(self, administrative_area): - """ - Sets the administrative_area of this V2payoutsSenderInformation. - Sender’s state. Use the State, Province, and Territory Codes for the United States and Canada. - - :param administrative_area: The administrative_area of this V2payoutsSenderInformation. - :type: str - """ - if administrative_area is not None and len(administrative_area) > 2: - raise ValueError("Invalid value for `administrative_area`, length must be less than or equal to `2`") - - self._administrative_area = administrative_area - - @property - def country_code(self): - """ - Gets the country_code of this V2payoutsSenderInformation. - Country of sender. Use the ISO Standard Country Codes. * CTV (3) - - :return: The country_code of this V2payoutsSenderInformation. - :rtype: str - """ - return self._country_code - - @country_code.setter - def country_code(self, country_code): - """ - Sets the country_code of this V2payoutsSenderInformation. - Country of sender. Use the ISO Standard Country Codes. * CTV (3) - - :param country_code: The country_code of this V2payoutsSenderInformation. - :type: str - """ - if country_code is not None and len(country_code) > 2: - raise ValueError("Invalid value for `country_code`, length must be less than or equal to `2`") - - self._country_code = country_code - - @property - def postal_code(self): - """ - Gets the postal_code of this V2payoutsSenderInformation. - Sender’s postal code. Required only for FDCCompass. - - :return: The postal_code of this V2payoutsSenderInformation. - :rtype: str - """ - return self._postal_code - - @postal_code.setter - def postal_code(self, postal_code): - """ - Sets the postal_code of this V2payoutsSenderInformation. - Sender’s postal code. Required only for FDCCompass. - - :param postal_code: The postal_code of this V2payoutsSenderInformation. - :type: str - """ - if postal_code is not None and len(postal_code) > 10: - raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `10`") - - self._postal_code = postal_code - - @property - def phone_number(self): - """ - Gets the phone_number of this V2payoutsSenderInformation. - Sender’s phone number. Required only for FDCCompass. - - :return: The phone_number of this V2payoutsSenderInformation. - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """ - Sets the phone_number of this V2payoutsSenderInformation. - Sender’s phone number. Required only for FDCCompass. - - :param phone_number: The phone_number of this V2payoutsSenderInformation. - :type: str - """ - if phone_number is not None and len(phone_number) > 20: - raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `20`") - - self._phone_number = phone_number - - @property - def date_of_birth(self): - """ - Gets the date_of_birth of this V2payoutsSenderInformation. - Sender’s date of birth in YYYYMMDD format. Required only for FDCCompass. - - :return: The date_of_birth of this V2payoutsSenderInformation. - :rtype: str - """ - return self._date_of_birth - - @date_of_birth.setter - def date_of_birth(self, date_of_birth): - """ - Sets the date_of_birth of this V2payoutsSenderInformation. - Sender’s date of birth in YYYYMMDD format. Required only for FDCCompass. - - :param date_of_birth: The date_of_birth of this V2payoutsSenderInformation. - :type: str - """ - if date_of_birth is not None and len(date_of_birth) > 8: - raise ValueError("Invalid value for `date_of_birth`, length must be less than or equal to `8`") - if date_of_birth is not None and len(date_of_birth) < 8: - raise ValueError("Invalid value for `date_of_birth`, length must be greater than or equal to `8`") - - self._date_of_birth = date_of_birth - - @property - def vat_registration_number(self): - """ - Gets the vat_registration_number of this V2payoutsSenderInformation. - Customer's government-assigned tax identification number. - - :return: The vat_registration_number of this V2payoutsSenderInformation. - :rtype: str - """ - return self._vat_registration_number - - @vat_registration_number.setter - def vat_registration_number(self, vat_registration_number): - """ - Sets the vat_registration_number of this V2payoutsSenderInformation. - Customer's government-assigned tax identification number. - - :param vat_registration_number: The vat_registration_number of this V2payoutsSenderInformation. - :type: str - """ - if vat_registration_number is not None and len(vat_registration_number) > 13: - raise ValueError("Invalid value for `vat_registration_number`, length must be less than or equal to `13`") - - self._vat_registration_number = vat_registration_number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsSenderInformation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/v2payouts_sender_information_account.py b/CyberSource/models/v2payouts_sender_information_account.py deleted file mode 100644 index 28ec5457..00000000 --- a/CyberSource/models/v2payouts_sender_information_account.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V2payoutsSenderInformationAccount(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'funds_source': 'str', - 'number': 'str' - } - - attribute_map = { - 'funds_source': 'fundsSource', - 'number': 'number' - } - - def __init__(self, funds_source=None, number=None): - """ - V2payoutsSenderInformationAccount - a model defined in Swagger - """ - - self._funds_source = None - self._number = None - - if funds_source is not None: - self.funds_source = funds_source - if number is not None: - self.number = number - - @property - def funds_source(self): - """ - Gets the funds_source of this V2payoutsSenderInformationAccount. - Source of funds. Possible values: Paymentech, CTV, FDC Compass: - 01: Credit card - 02: Debit card - 03: Prepaid card Paymentech, CTV - - 04: Cash - 05: Debit or deposit account that is not linked to a Visa card. Includes checking accounts, savings accounts, and proprietary debit or ATM cards. - 06: Credit account that is not linked to a Visa card. Includes credit cards and proprietary lines of credit. FDCCompass - - 04: Deposit Account **Funds Disbursement** This value is most likely 05 to identify that the originator used a deposit account to fund the disbursement. **Credit Card Bill Payment** This value must be 02, 03, 04, or 05. - - :return: The funds_source of this V2payoutsSenderInformationAccount. - :rtype: str - """ - return self._funds_source - - @funds_source.setter - def funds_source(self, funds_source): - """ - Sets the funds_source of this V2payoutsSenderInformationAccount. - Source of funds. Possible values: Paymentech, CTV, FDC Compass: - 01: Credit card - 02: Debit card - 03: Prepaid card Paymentech, CTV - - 04: Cash - 05: Debit or deposit account that is not linked to a Visa card. Includes checking accounts, savings accounts, and proprietary debit or ATM cards. - 06: Credit account that is not linked to a Visa card. Includes credit cards and proprietary lines of credit. FDCCompass - - 04: Deposit Account **Funds Disbursement** This value is most likely 05 to identify that the originator used a deposit account to fund the disbursement. **Credit Card Bill Payment** This value must be 02, 03, 04, or 05. - - :param funds_source: The funds_source of this V2payoutsSenderInformationAccount. - :type: str - """ - if funds_source is not None and len(funds_source) > 2: - raise ValueError("Invalid value for `funds_source`, length must be less than or equal to `2`") - if funds_source is not None and len(funds_source) < 2: - raise ValueError("Invalid value for `funds_source`, length must be greater than or equal to `2`") - - self._funds_source = funds_source - - @property - def number(self): - """ - Gets the number of this V2payoutsSenderInformationAccount. - The account number of the entity funding the transaction. It is the sender’s account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16) - - :return: The number of this V2payoutsSenderInformationAccount. - :rtype: str - """ - return self._number - - @number.setter - def number(self, number): - """ - Sets the number of this V2payoutsSenderInformationAccount. - The account number of the entity funding the transaction. It is the sender’s account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16) - - :param number: The number of this V2payoutsSenderInformationAccount. - :type: str - """ - if number is not None and len(number) > 34: - raise ValueError("Invalid value for `number`, length must be less than or equal to `34`") - - self._number = number - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V2payoutsSenderInformationAccount): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/CyberSource/models/void_capture_request.py b/CyberSource/models/void_capture_request.py index 65aecb08..f8fdd998 100644 --- a/CyberSource/models/void_capture_request.py +++ b/CyberSource/models/void_capture_request.py @@ -31,7 +31,7 @@ class VoidCaptureRequest(object): and the value is json key in definition. """ swagger_types = { - 'client_reference_information': 'V2paymentsidreversalsClientReferenceInformation' + 'client_reference_information': 'Ptsv2paymentsidreversalsClientReferenceInformation' } attribute_map = { @@ -54,7 +54,7 @@ def client_reference_information(self): Gets the client_reference_information of this VoidCaptureRequest. :return: The client_reference_information of this VoidCaptureRequest. - :rtype: V2paymentsidreversalsClientReferenceInformation + :rtype: Ptsv2paymentsidreversalsClientReferenceInformation """ return self._client_reference_information @@ -64,7 +64,7 @@ def client_reference_information(self, client_reference_information): Sets the client_reference_information of this VoidCaptureRequest. :param client_reference_information: The client_reference_information of this VoidCaptureRequest. - :type: V2paymentsidreversalsClientReferenceInformation + :type: Ptsv2paymentsidreversalsClientReferenceInformation """ self._client_reference_information = client_reference_information diff --git a/CyberSource/models/void_credit_request.py b/CyberSource/models/void_credit_request.py index ab25306c..fe2fb316 100644 --- a/CyberSource/models/void_credit_request.py +++ b/CyberSource/models/void_credit_request.py @@ -31,7 +31,7 @@ class VoidCreditRequest(object): and the value is json key in definition. """ swagger_types = { - 'client_reference_information': 'V2paymentsidreversalsClientReferenceInformation' + 'client_reference_information': 'Ptsv2paymentsidreversalsClientReferenceInformation' } attribute_map = { @@ -54,7 +54,7 @@ def client_reference_information(self): Gets the client_reference_information of this VoidCreditRequest. :return: The client_reference_information of this VoidCreditRequest. - :rtype: V2paymentsidreversalsClientReferenceInformation + :rtype: Ptsv2paymentsidreversalsClientReferenceInformation """ return self._client_reference_information @@ -64,7 +64,7 @@ def client_reference_information(self, client_reference_information): Sets the client_reference_information of this VoidCreditRequest. :param client_reference_information: The client_reference_information of this VoidCreditRequest. - :type: V2paymentsidreversalsClientReferenceInformation + :type: Ptsv2paymentsidreversalsClientReferenceInformation """ self._client_reference_information = client_reference_information diff --git a/CyberSource/models/void_payment_request.py b/CyberSource/models/void_payment_request.py index 976d38de..30cbf144 100644 --- a/CyberSource/models/void_payment_request.py +++ b/CyberSource/models/void_payment_request.py @@ -31,7 +31,7 @@ class VoidPaymentRequest(object): and the value is json key in definition. """ swagger_types = { - 'client_reference_information': 'V2paymentsidreversalsClientReferenceInformation' + 'client_reference_information': 'Ptsv2paymentsidreversalsClientReferenceInformation' } attribute_map = { @@ -54,7 +54,7 @@ def client_reference_information(self): Gets the client_reference_information of this VoidPaymentRequest. :return: The client_reference_information of this VoidPaymentRequest. - :rtype: V2paymentsidreversalsClientReferenceInformation + :rtype: Ptsv2paymentsidreversalsClientReferenceInformation """ return self._client_reference_information @@ -64,7 +64,7 @@ def client_reference_information(self, client_reference_information): Sets the client_reference_information of this VoidPaymentRequest. :param client_reference_information: The client_reference_information of this VoidPaymentRequest. - :type: V2paymentsidreversalsClientReferenceInformation + :type: Ptsv2paymentsidreversalsClientReferenceInformation """ self._client_reference_information = client_reference_information diff --git a/CyberSource/models/void_refund_request.py b/CyberSource/models/void_refund_request.py index 4453a4f2..e8bbcac1 100644 --- a/CyberSource/models/void_refund_request.py +++ b/CyberSource/models/void_refund_request.py @@ -31,7 +31,7 @@ class VoidRefundRequest(object): and the value is json key in definition. """ swagger_types = { - 'client_reference_information': 'V2paymentsidreversalsClientReferenceInformation' + 'client_reference_information': 'Ptsv2paymentsidreversalsClientReferenceInformation' } attribute_map = { @@ -54,7 +54,7 @@ def client_reference_information(self): Gets the client_reference_information of this VoidRefundRequest. :return: The client_reference_information of this VoidRefundRequest. - :rtype: V2paymentsidreversalsClientReferenceInformation + :rtype: Ptsv2paymentsidreversalsClientReferenceInformation """ return self._client_reference_information @@ -64,7 +64,7 @@ def client_reference_information(self, client_reference_information): Sets the client_reference_information of this VoidRefundRequest. :param client_reference_information: The client_reference_information of this VoidRefundRequest. - :type: V2paymentsidreversalsClientReferenceInformation + :type: Ptsv2paymentsidreversalsClientReferenceInformation """ self._client_reference_information = client_reference_information diff --git a/README.md b/README.md index 00d1ae33..d28bfcd2 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,432 @@ -# Python SDK for the CyberSource REST API +# CyberSource +Simple PAN tokenization service + +This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: + +- API version: 0.0.1 +- Package version: 1.0.0 +- Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. -Python 2.7 and 3.4+ +Python 3.4+ ## Installation & Usage ### pip install +If the python package is hosted on Github, you can install directly from Github + +```sh +git clone git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git +``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) +Then import the Python SDK: +```python +pip install cybersource-rest-client-python +``` ### Setuptools +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + ## Getting Started +Please follow the [installation procedure](#installation--usage) and then run the following: + +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint +# create an instance of the API class +api_instance = CyberSource.CaptureApi() +capture_payment_request = CyberSource.CapturePaymentRequest() # CapturePaymentRequest | +id = 'id_example' # str | The payment ID returned from a previous payment request. This ID links the capture to the payment. + +try: + # Capture a Payment + api_response = api_instance.capture_payment(capture_payment_request, id) + pprint(api_response) +except ApiException as e: + print("Exception when calling CaptureApi->capture_payment: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://apitest.cybersource.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*CaptureApi* | [**capture_payment**](docs/CaptureApi.md#capture_payment) | **POST** /pts/v2/payments/{id}/captures | Capture a Payment +*CreditApi* | [**create_credit**](docs/CreditApi.md#create_credit) | **POST** /pts/v2/credits/ | Process a Credit +*FlexTokenApi* | [**tokenize**](docs/FlexTokenApi.md#tokenize) | **POST** /flex/v1/tokens/ | Flex Tokenize card +*InstrumentIdentifierApi* | [**tms_v1_instrumentidentifiers_token_id_delete**](docs/InstrumentIdentifierApi.md#tms_v1_instrumentidentifiers_token_id_delete) | **DELETE** /tms/v1/instrumentidentifiers/{tokenId} | Delete an Instrument Identifier +*InstrumentIdentifierApi* | [**tms_v1_instrumentidentifiers_token_id_get**](docs/InstrumentIdentifierApi.md#tms_v1_instrumentidentifiers_token_id_get) | **GET** /tms/v1/instrumentidentifiers/{tokenId} | Retrieve an Instrument Identifier +*InstrumentIdentifierApi* | [**tms_v1_instrumentidentifiers_token_id_patch**](docs/InstrumentIdentifierApi.md#tms_v1_instrumentidentifiers_token_id_patch) | **PATCH** /tms/v1/instrumentidentifiers/{tokenId} | Update a Instrument Identifier +*InstrumentIdentifiersApi* | [**tms_v1_instrumentidentifiers_post**](docs/InstrumentIdentifiersApi.md#tms_v1_instrumentidentifiers_post) | **POST** /tms/v1/instrumentidentifiers | Create an Instrument Identifier +*KeyGenerationApi* | [**generate_public_key**](docs/KeyGenerationApi.md#generate_public_key) | **POST** /flex/v1/keys/ | Generate Key +*NotificationOfChangesApi* | [**get_notification_of_change_report**](docs/NotificationOfChangesApi.md#get_notification_of_change_report) | **GET** /reporting/v3/notification-of-changes | Get Notification Of Changes +*PaymentInstrumentsApi* | [**tms_v1_instrumentidentifiers_token_id_paymentinstruments_get**](docs/PaymentInstrumentsApi.md#tms_v1_instrumentidentifiers_token_id_paymentinstruments_get) | **GET** /tms/v1/instrumentidentifiers/{tokenId}/paymentinstruments | Retrieve all Payment Instruments associated with an Instrument Identifier +*PaymentInstrumentsApi* | [**tms_v1_paymentinstruments_post**](docs/PaymentInstrumentsApi.md#tms_v1_paymentinstruments_post) | **POST** /tms/v1/paymentinstruments | Create a Payment Instrument +*PaymentInstrumentsApi* | [**tms_v1_paymentinstruments_token_id_delete**](docs/PaymentInstrumentsApi.md#tms_v1_paymentinstruments_token_id_delete) | **DELETE** /tms/v1/paymentinstruments/{tokenId} | Delete a Payment Instrument +*PaymentInstrumentsApi* | [**tms_v1_paymentinstruments_token_id_get**](docs/PaymentInstrumentsApi.md#tms_v1_paymentinstruments_token_id_get) | **GET** /tms/v1/paymentinstruments/{tokenId} | Retrieve a Payment Instrument +*PaymentInstrumentsApi* | [**tms_v1_paymentinstruments_token_id_patch**](docs/PaymentInstrumentsApi.md#tms_v1_paymentinstruments_token_id_patch) | **PATCH** /tms/v1/paymentinstruments/{tokenId} | Update a Payment Instrument +*PaymentsApi* | [**create_payment**](docs/PaymentsApi.md#create_payment) | **POST** /pts/v2/payments/ | Process a Payment +*ProcessAPayoutApi* | [**oct_create_payment**](docs/ProcessAPayoutApi.md#oct_create_payment) | **POST** /pts/v2/payouts/ | Process a Payout +*PurchaseAndRefundDetailsApi* | [**get_purchase_and_refund_details**](docs/PurchaseAndRefundDetailsApi.md#get_purchase_and_refund_details) | **GET** /reporting/v3/purchase-refund-details | Get Purchase and Refund details +*RefundApi* | [**refund_capture**](docs/RefundApi.md#refund_capture) | **POST** /pts/v2/captures/{id}/refunds | Refund a Capture +*RefundApi* | [**refund_payment**](docs/RefundApi.md#refund_payment) | **POST** /pts/v2/payments/{id}/refunds | Refund a Payment +*ReportDefinitionsApi* | [**get_resource_info_by_report_definition**](docs/ReportDefinitionsApi.md#get_resource_info_by_report_definition) | **GET** /reporting/v3/report-definitions/{reportDefinitionName} | Get a single report definition information +*ReportDefinitionsApi* | [**get_resource_v2_info**](docs/ReportDefinitionsApi.md#get_resource_v2_info) | **GET** /reporting/v3/report-definitions | Get reporting resource information +*ReportDownloadsApi* | [**download_report**](docs/ReportDownloadsApi.md#download_report) | **GET** /reporting/v3/report-downloads | Download a report +*ReportSubscriptionsApi* | [**create_subscription**](docs/ReportSubscriptionsApi.md#create_subscription) | **PUT** /reporting/v3/report-subscriptions/{reportName} | Create Report Subscription for a report name by organization +*ReportSubscriptionsApi* | [**delete_subscription**](docs/ReportSubscriptionsApi.md#delete_subscription) | **DELETE** /reporting/v3/report-subscriptions/{reportName} | Delete subscription of a report name by organization +*ReportSubscriptionsApi* | [**get_all_subscriptions**](docs/ReportSubscriptionsApi.md#get_all_subscriptions) | **GET** /reporting/v3/report-subscriptions | Retrieve all subscriptions by organization +*ReportSubscriptionsApi* | [**get_subscription**](docs/ReportSubscriptionsApi.md#get_subscription) | **GET** /reporting/v3/report-subscriptions/{reportName} | Retrieve subscription for a report name by organization +*ReportsApi* | [**create_report**](docs/ReportsApi.md#create_report) | **POST** /reporting/v3/reports | Create Adhoc Report +*ReportsApi* | [**get_report_by_report_id**](docs/ReportsApi.md#get_report_by_report_id) | **GET** /reporting/v3/reports/{reportId} | Get Report based on reportId +*ReportsApi* | [**search_reports**](docs/ReportsApi.md#search_reports) | **GET** /reporting/v3/reports | Retrieve available reports +*ReversalApi* | [**auth_reversal**](docs/ReversalApi.md#auth_reversal) | **POST** /pts/v2/payments/{id}/reversals | Process an Authorization Reversal +*SearchTransactionsApi* | [**create_search**](docs/SearchTransactionsApi.md#create_search) | **POST** /tss/v2/searches | Create a search request +*SearchTransactionsApi* | [**get_search**](docs/SearchTransactionsApi.md#get_search) | **GET** /tss/v2/searches/{id} | Get Search results +*SecureFileShareApi* | [**get_file**](docs/SecureFileShareApi.md#get_file) | **GET** /v1/files/{fileId} | Download a file with file identifier +*SecureFileShareApi* | [**get_file_details**](docs/SecureFileShareApi.md#get_file_details) | **GET** /v1/file-details | Get list of files +*TransactionBatchApi* | [**pts_v1_transaction_batches_id_get**](docs/TransactionBatchApi.md#pts_v1_transaction_batches_id_get) | **GET** /pts/v1/transaction-batches/{id} | Get an individual batch file Details processed through the Offline Transaction Submission Services +*TransactionBatchesApi* | [**pts_v1_transaction_batches_get**](docs/TransactionBatchesApi.md#pts_v1_transaction_batches_get) | **GET** /pts/v1/transaction-batches | Get a list of batch files processed through the Offline Transaction Submission Services +*TransactionDetailsApi* | [**get_transaction**](docs/TransactionDetailsApi.md#get_transaction) | **GET** /tss/v2/transactions/{id} | Retrieve a Transaction +*UserManagementApi* | [**get_users**](docs/UserManagementApi.md#get_users) | **GET** /ums/v1/users | Get user based on organization Id, username, permission and role +*VoidApi* | [**void_capture**](docs/VoidApi.md#void_capture) | **POST** /pts/v2/captures/{id}/voids | Void a Capture +*VoidApi* | [**void_credit**](docs/VoidApi.md#void_credit) | **POST** /pts/v2/credits/{id}/voids | Void a Credit +*VoidApi* | [**void_payment**](docs/VoidApi.md#void_payment) | **POST** /pts/v2/payments/{id}/voids | Void a Payment +*VoidApi* | [**void_refund**](docs/VoidApi.md#void_refund) | **POST** /pts/v2/refunds/{id}/voids | Void a Refund + + +## Documentation For Models + + - [AuthReversalRequest](docs/AuthReversalRequest.md) + - [Body](docs/Body.md) + - [Body1](docs/Body1.md) + - [Body2](docs/Body2.md) + - [Body3](docs/Body3.md) + - [CapturePaymentRequest](docs/CapturePaymentRequest.md) + - [CardInfo](docs/CardInfo.md) + - [CreateCreditRequest](docs/CreateCreditRequest.md) + - [CreatePaymentRequest](docs/CreatePaymentRequest.md) + - [DerPublicKey](docs/DerPublicKey.md) + - [Error](docs/Error.md) + - [ErrorLinks](docs/ErrorLinks.md) + - [ErrorResponse](docs/ErrorResponse.md) + - [FlexV1KeysPost200Response](docs/FlexV1KeysPost200Response.md) + - [FlexV1KeysPost200ResponseDer](docs/FlexV1KeysPost200ResponseDer.md) + - [FlexV1KeysPost200ResponseJwk](docs/FlexV1KeysPost200ResponseJwk.md) + - [FlexV1TokensPost200Response](docs/FlexV1TokensPost200Response.md) + - [Flexv1tokensCardInfo](docs/Flexv1tokensCardInfo.md) + - [GeneratePublicKeyRequest](docs/GeneratePublicKeyRequest.md) + - [InlineResponse400](docs/InlineResponse400.md) + - [InlineResponseDefault](docs/InlineResponseDefault.md) + - [InlineResponseDefaultLinks](docs/InlineResponseDefaultLinks.md) + - [InlineResponseDefaultLinksNext](docs/InlineResponseDefaultLinksNext.md) + - [InlineResponseDefaultResponseStatus](docs/InlineResponseDefaultResponseStatus.md) + - [InlineResponseDefaultResponseStatusDetails](docs/InlineResponseDefaultResponseStatusDetails.md) + - [JsonWebKey](docs/JsonWebKey.md) + - [KeyParameters](docs/KeyParameters.md) + - [KeyResult](docs/KeyResult.md) + - [Link](docs/Link.md) + - [Links](docs/Links.md) + - [PtsV1TransactionBatchesGet200Response](docs/PtsV1TransactionBatchesGet200Response.md) + - [PtsV1TransactionBatchesGet200ResponseLinks](docs/PtsV1TransactionBatchesGet200ResponseLinks.md) + - [PtsV1TransactionBatchesGet200ResponseLinksSelf](docs/PtsV1TransactionBatchesGet200ResponseLinksSelf.md) + - [PtsV1TransactionBatchesGet200ResponseTransactionBatches](docs/PtsV1TransactionBatchesGet200ResponseTransactionBatches.md) + - [PtsV1TransactionBatchesGet400Response](docs/PtsV1TransactionBatchesGet400Response.md) + - [PtsV1TransactionBatchesGet400ResponseErrorInformation](docs/PtsV1TransactionBatchesGet400ResponseErrorInformation.md) + - [PtsV1TransactionBatchesGet400ResponseErrorInformationDetails](docs/PtsV1TransactionBatchesGet400ResponseErrorInformationDetails.md) + - [PtsV1TransactionBatchesGet500Response](docs/PtsV1TransactionBatchesGet500Response.md) + - [PtsV1TransactionBatchesGet500ResponseErrorInformation](docs/PtsV1TransactionBatchesGet500ResponseErrorInformation.md) + - [PtsV2CreditsPost201Response](docs/PtsV2CreditsPost201Response.md) + - [PtsV2CreditsPost201ResponseCreditAmountDetails](docs/PtsV2CreditsPost201ResponseCreditAmountDetails.md) + - [PtsV2PaymentsCapturesPost201Response](docs/PtsV2PaymentsCapturesPost201Response.md) + - [PtsV2PaymentsCapturesPost201ResponseLinks](docs/PtsV2PaymentsCapturesPost201ResponseLinks.md) + - [PtsV2PaymentsCapturesPost201ResponseOrderInformation](docs/PtsV2PaymentsCapturesPost201ResponseOrderInformation.md) + - [PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails](docs/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.md) + - [PtsV2PaymentsCapturesPost201ResponseProcessorInformation](docs/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.md) + - [PtsV2PaymentsCapturesPost400Response](docs/PtsV2PaymentsCapturesPost400Response.md) + - [PtsV2PaymentsPost201Response](docs/PtsV2PaymentsPost201Response.md) + - [PtsV2PaymentsPost201ResponseClientReferenceInformation](docs/PtsV2PaymentsPost201ResponseClientReferenceInformation.md) + - [PtsV2PaymentsPost201ResponseErrorInformation](docs/PtsV2PaymentsPost201ResponseErrorInformation.md) + - [PtsV2PaymentsPost201ResponseErrorInformationDetails](docs/PtsV2PaymentsPost201ResponseErrorInformationDetails.md) + - [PtsV2PaymentsPost201ResponseLinks](docs/PtsV2PaymentsPost201ResponseLinks.md) + - [PtsV2PaymentsPost201ResponseLinksSelf](docs/PtsV2PaymentsPost201ResponseLinksSelf.md) + - [PtsV2PaymentsPost201ResponseOrderInformation](docs/PtsV2PaymentsPost201ResponseOrderInformation.md) + - [PtsV2PaymentsPost201ResponseOrderInformationAmountDetails](docs/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.md) + - [PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails](docs/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.md) + - [PtsV2PaymentsPost201ResponsePaymentInformation](docs/PtsV2PaymentsPost201ResponsePaymentInformation.md) + - [PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures](docs/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.md) + - [PtsV2PaymentsPost201ResponsePaymentInformationCard](docs/PtsV2PaymentsPost201ResponsePaymentInformationCard.md) + - [PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard](docs/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.md) + - [PtsV2PaymentsPost201ResponsePointOfSaleInformation](docs/PtsV2PaymentsPost201ResponsePointOfSaleInformation.md) + - [PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv](docs/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.md) + - [PtsV2PaymentsPost201ResponseProcessorInformation](docs/PtsV2PaymentsPost201ResponseProcessorInformation.md) + - [PtsV2PaymentsPost201ResponseProcessorInformationAvs](docs/PtsV2PaymentsPost201ResponseProcessorInformationAvs.md) + - [PtsV2PaymentsPost201ResponseProcessorInformationCardVerification](docs/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.md) + - [PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse](docs/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.md) + - [PtsV2PaymentsPost201ResponseProcessorInformationCustomer](docs/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.md) + - [PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults](docs/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.md) + - [PtsV2PaymentsPost201ResponseProcessorInformationIssuer](docs/PtsV2PaymentsPost201ResponseProcessorInformationIssuer.md) + - [PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice](docs/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.md) + - [PtsV2PaymentsPost400Response](docs/PtsV2PaymentsPost400Response.md) + - [PtsV2PaymentsPost502Response](docs/PtsV2PaymentsPost502Response.md) + - [PtsV2PaymentsRefundPost201Response](docs/PtsV2PaymentsRefundPost201Response.md) + - [PtsV2PaymentsRefundPost201ResponseLinks](docs/PtsV2PaymentsRefundPost201ResponseLinks.md) + - [PtsV2PaymentsRefundPost201ResponseOrderInformation](docs/PtsV2PaymentsRefundPost201ResponseOrderInformation.md) + - [PtsV2PaymentsRefundPost201ResponseProcessorInformation](docs/PtsV2PaymentsRefundPost201ResponseProcessorInformation.md) + - [PtsV2PaymentsRefundPost201ResponseRefundAmountDetails](docs/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.md) + - [PtsV2PaymentsRefundPost400Response](docs/PtsV2PaymentsRefundPost400Response.md) + - [PtsV2PaymentsReversalsPost201Response](docs/PtsV2PaymentsReversalsPost201Response.md) + - [PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation](docs/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.md) + - [PtsV2PaymentsReversalsPost201ResponseLinks](docs/PtsV2PaymentsReversalsPost201ResponseLinks.md) + - [PtsV2PaymentsReversalsPost201ResponseProcessorInformation](docs/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.md) + - [PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails](docs/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.md) + - [PtsV2PaymentsReversalsPost400Response](docs/PtsV2PaymentsReversalsPost400Response.md) + - [PtsV2PaymentsVoidsPost201Response](docs/PtsV2PaymentsVoidsPost201Response.md) + - [PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails](docs/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.md) + - [PtsV2PaymentsVoidsPost400Response](docs/PtsV2PaymentsVoidsPost400Response.md) + - [PtsV2PayoutsPost400Response](docs/PtsV2PayoutsPost400Response.md) + - [PtsV2PayoutsPostResponse](docs/PtsV2PayoutsPostResponse.md) + - [Ptsv2creditsPointOfSaleInformation](docs/Ptsv2creditsPointOfSaleInformation.md) + - [Ptsv2creditsPointOfSaleInformationEmv](docs/Ptsv2creditsPointOfSaleInformationEmv.md) + - [Ptsv2creditsProcessingInformation](docs/Ptsv2creditsProcessingInformation.md) + - [Ptsv2paymentsAggregatorInformation](docs/Ptsv2paymentsAggregatorInformation.md) + - [Ptsv2paymentsAggregatorInformationSubMerchant](docs/Ptsv2paymentsAggregatorInformationSubMerchant.md) + - [Ptsv2paymentsBuyerInformation](docs/Ptsv2paymentsBuyerInformation.md) + - [Ptsv2paymentsBuyerInformationPersonalIdentification](docs/Ptsv2paymentsBuyerInformationPersonalIdentification.md) + - [Ptsv2paymentsClientReferenceInformation](docs/Ptsv2paymentsClientReferenceInformation.md) + - [Ptsv2paymentsConsumerAuthenticationInformation](docs/Ptsv2paymentsConsumerAuthenticationInformation.md) + - [Ptsv2paymentsDeviceInformation](docs/Ptsv2paymentsDeviceInformation.md) + - [Ptsv2paymentsMerchantDefinedInformation](docs/Ptsv2paymentsMerchantDefinedInformation.md) + - [Ptsv2paymentsMerchantInformation](docs/Ptsv2paymentsMerchantInformation.md) + - [Ptsv2paymentsMerchantInformationMerchantDescriptor](docs/Ptsv2paymentsMerchantInformationMerchantDescriptor.md) + - [Ptsv2paymentsOrderInformation](docs/Ptsv2paymentsOrderInformation.md) + - [Ptsv2paymentsOrderInformationAmountDetails](docs/Ptsv2paymentsOrderInformationAmountDetails.md) + - [Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts](docs/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md) + - [Ptsv2paymentsOrderInformationAmountDetailsSurcharge](docs/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.md) + - [Ptsv2paymentsOrderInformationAmountDetailsTaxDetails](docs/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.md) + - [Ptsv2paymentsOrderInformationBillTo](docs/Ptsv2paymentsOrderInformationBillTo.md) + - [Ptsv2paymentsOrderInformationInvoiceDetails](docs/Ptsv2paymentsOrderInformationInvoiceDetails.md) + - [Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum](docs/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md) + - [Ptsv2paymentsOrderInformationLineItems](docs/Ptsv2paymentsOrderInformationLineItems.md) + - [Ptsv2paymentsOrderInformationShipTo](docs/Ptsv2paymentsOrderInformationShipTo.md) + - [Ptsv2paymentsOrderInformationShippingDetails](docs/Ptsv2paymentsOrderInformationShippingDetails.md) + - [Ptsv2paymentsPaymentInformation](docs/Ptsv2paymentsPaymentInformation.md) + - [Ptsv2paymentsPaymentInformationCard](docs/Ptsv2paymentsPaymentInformationCard.md) + - [Ptsv2paymentsPaymentInformationCustomer](docs/Ptsv2paymentsPaymentInformationCustomer.md) + - [Ptsv2paymentsPaymentInformationFluidData](docs/Ptsv2paymentsPaymentInformationFluidData.md) + - [Ptsv2paymentsPaymentInformationTokenizedCard](docs/Ptsv2paymentsPaymentInformationTokenizedCard.md) + - [Ptsv2paymentsPointOfSaleInformation](docs/Ptsv2paymentsPointOfSaleInformation.md) + - [Ptsv2paymentsPointOfSaleInformationEmv](docs/Ptsv2paymentsPointOfSaleInformationEmv.md) + - [Ptsv2paymentsProcessingInformation](docs/Ptsv2paymentsProcessingInformation.md) + - [Ptsv2paymentsProcessingInformationAuthorizationOptions](docs/Ptsv2paymentsProcessingInformationAuthorizationOptions.md) + - [Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator](docs/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.md) + - [Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction](docs/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md) + - [Ptsv2paymentsProcessingInformationCaptureOptions](docs/Ptsv2paymentsProcessingInformationCaptureOptions.md) + - [Ptsv2paymentsProcessingInformationIssuer](docs/Ptsv2paymentsProcessingInformationIssuer.md) + - [Ptsv2paymentsProcessingInformationRecurringOptions](docs/Ptsv2paymentsProcessingInformationRecurringOptions.md) + - [Ptsv2paymentsRecipientInformation](docs/Ptsv2paymentsRecipientInformation.md) + - [Ptsv2paymentsidcapturesAggregatorInformation](docs/Ptsv2paymentsidcapturesAggregatorInformation.md) + - [Ptsv2paymentsidcapturesAggregatorInformationSubMerchant](docs/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.md) + - [Ptsv2paymentsidcapturesBuyerInformation](docs/Ptsv2paymentsidcapturesBuyerInformation.md) + - [Ptsv2paymentsidcapturesMerchantInformation](docs/Ptsv2paymentsidcapturesMerchantInformation.md) + - [Ptsv2paymentsidcapturesOrderInformation](docs/Ptsv2paymentsidcapturesOrderInformation.md) + - [Ptsv2paymentsidcapturesOrderInformationAmountDetails](docs/Ptsv2paymentsidcapturesOrderInformationAmountDetails.md) + - [Ptsv2paymentsidcapturesOrderInformationBillTo](docs/Ptsv2paymentsidcapturesOrderInformationBillTo.md) + - [Ptsv2paymentsidcapturesOrderInformationInvoiceDetails](docs/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.md) + - [Ptsv2paymentsidcapturesOrderInformationShipTo](docs/Ptsv2paymentsidcapturesOrderInformationShipTo.md) + - [Ptsv2paymentsidcapturesOrderInformationShippingDetails](docs/Ptsv2paymentsidcapturesOrderInformationShippingDetails.md) + - [Ptsv2paymentsidcapturesPaymentInformation](docs/Ptsv2paymentsidcapturesPaymentInformation.md) + - [Ptsv2paymentsidcapturesPointOfSaleInformation](docs/Ptsv2paymentsidcapturesPointOfSaleInformation.md) + - [Ptsv2paymentsidcapturesPointOfSaleInformationEmv](docs/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.md) + - [Ptsv2paymentsidcapturesProcessingInformation](docs/Ptsv2paymentsidcapturesProcessingInformation.md) + - [Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions](docs/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.md) + - [Ptsv2paymentsidcapturesProcessingInformationCaptureOptions](docs/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.md) + - [Ptsv2paymentsidrefundsMerchantInformation](docs/Ptsv2paymentsidrefundsMerchantInformation.md) + - [Ptsv2paymentsidrefundsOrderInformation](docs/Ptsv2paymentsidrefundsOrderInformation.md) + - [Ptsv2paymentsidrefundsOrderInformationLineItems](docs/Ptsv2paymentsidrefundsOrderInformationLineItems.md) + - [Ptsv2paymentsidrefundsPaymentInformation](docs/Ptsv2paymentsidrefundsPaymentInformation.md) + - [Ptsv2paymentsidrefundsPaymentInformationCard](docs/Ptsv2paymentsidrefundsPaymentInformationCard.md) + - [Ptsv2paymentsidrefundsPointOfSaleInformation](docs/Ptsv2paymentsidrefundsPointOfSaleInformation.md) + - [Ptsv2paymentsidrefundsProcessingInformation](docs/Ptsv2paymentsidrefundsProcessingInformation.md) + - [Ptsv2paymentsidrefundsProcessingInformationRecurringOptions](docs/Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.md) + - [Ptsv2paymentsidreversalsClientReferenceInformation](docs/Ptsv2paymentsidreversalsClientReferenceInformation.md) + - [Ptsv2paymentsidreversalsOrderInformation](docs/Ptsv2paymentsidreversalsOrderInformation.md) + - [Ptsv2paymentsidreversalsOrderInformationLineItems](docs/Ptsv2paymentsidreversalsOrderInformationLineItems.md) + - [Ptsv2paymentsidreversalsPointOfSaleInformation](docs/Ptsv2paymentsidreversalsPointOfSaleInformation.md) + - [Ptsv2paymentsidreversalsProcessingInformation](docs/Ptsv2paymentsidreversalsProcessingInformation.md) + - [Ptsv2paymentsidreversalsReversalInformation](docs/Ptsv2paymentsidreversalsReversalInformation.md) + - [Ptsv2paymentsidreversalsReversalInformationAmountDetails](docs/Ptsv2paymentsidreversalsReversalInformationAmountDetails.md) + - [Ptsv2payoutsMerchantInformation](docs/Ptsv2payoutsMerchantInformation.md) + - [Ptsv2payoutsMerchantInformationMerchantDescriptor](docs/Ptsv2payoutsMerchantInformationMerchantDescriptor.md) + - [Ptsv2payoutsOrderInformation](docs/Ptsv2payoutsOrderInformation.md) + - [Ptsv2payoutsOrderInformationAmountDetails](docs/Ptsv2payoutsOrderInformationAmountDetails.md) + - [Ptsv2payoutsOrderInformationAmountDetailsSurcharge](docs/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.md) + - [Ptsv2payoutsOrderInformationBillTo](docs/Ptsv2payoutsOrderInformationBillTo.md) + - [Ptsv2payoutsPaymentInformation](docs/Ptsv2payoutsPaymentInformation.md) + - [Ptsv2payoutsPaymentInformationCard](docs/Ptsv2payoutsPaymentInformationCard.md) + - [Ptsv2payoutsProcessingInformation](docs/Ptsv2payoutsProcessingInformation.md) + - [Ptsv2payoutsProcessingInformationPayoutsOptions](docs/Ptsv2payoutsProcessingInformationPayoutsOptions.md) + - [Ptsv2payoutsRecipientInformation](docs/Ptsv2payoutsRecipientInformation.md) + - [Ptsv2payoutsSenderInformation](docs/Ptsv2payoutsSenderInformation.md) + - [Ptsv2payoutsSenderInformationAccount](docs/Ptsv2payoutsSenderInformationAccount.md) + - [RefundCaptureRequest](docs/RefundCaptureRequest.md) + - [RefundPaymentRequest](docs/RefundPaymentRequest.md) + - [ReportingV3NotificationofChangesGet200Response](docs/ReportingV3NotificationofChangesGet200Response.md) + - [ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges](docs/ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges.md) + - [ReportingV3NotificationofChangesGet400Response](docs/ReportingV3NotificationofChangesGet400Response.md) + - [ReportingV3NotificationofChangesGet400ResponseFields](docs/ReportingV3NotificationofChangesGet400ResponseFields.md) + - [ReportingV3ReportDefinitionsGet200Response](docs/ReportingV3ReportDefinitionsGet200Response.md) + - [ReportingV3ReportDefinitionsGet200ResponseReportDefinitions](docs/ReportingV3ReportDefinitionsGet200ResponseReportDefinitions.md) + - [ReportingV3ReportDefinitionsNameGet200Response](docs/ReportingV3ReportDefinitionsNameGet200Response.md) + - [ReportingV3ReportDefinitionsNameGet200ResponseAttributes](docs/ReportingV3ReportDefinitionsNameGet200ResponseAttributes.md) + - [ReportingV3ReportSubscriptionsGet200Response](docs/ReportingV3ReportSubscriptionsGet200Response.md) + - [ReportingV3ReportSubscriptionsGet200ResponseReportPreferences](docs/ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.md) + - [ReportingV3ReportSubscriptionsGet200ResponseSubscriptions](docs/ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.md) + - [ReportingV3ReportsGet200Response](docs/ReportingV3ReportsGet200Response.md) + - [ReportingV3ReportsGet200ResponseReports](docs/ReportingV3ReportsGet200ResponseReports.md) + - [ReportingV3ReportsIdGet200Response](docs/ReportingV3ReportsIdGet200Response.md) + - [RequestBody](docs/RequestBody.md) + - [RequestBody1](docs/RequestBody1.md) + - [ResponseStatus](docs/ResponseStatus.md) + - [ResponseStatusDetails](docs/ResponseStatusDetails.md) + - [TmsV1InstrumentidentifiersDelete409Response](docs/TmsV1InstrumentidentifiersDelete409Response.md) + - [TmsV1InstrumentidentifiersDelete409ResponseLinks](docs/TmsV1InstrumentidentifiersDelete409ResponseLinks.md) + - [TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments](docs/TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments.md) + - [TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response](docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.md) + - [TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks](docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.md) + - [TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst](docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst.md) + - [TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast](docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast.md) + - [TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext](docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext.md) + - [TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev](docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev.md) + - [TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf](docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf.md) + - [TmsV1InstrumentidentifiersPost200Response](docs/TmsV1InstrumentidentifiersPost200Response.md) + - [TmsV1PaymentinstrumentsPost201Response](docs/TmsV1PaymentinstrumentsPost201Response.md) + - [Tmsv1instrumentidentifiersBankAccount](docs/Tmsv1instrumentidentifiersBankAccount.md) + - [Tmsv1instrumentidentifiersCard](docs/Tmsv1instrumentidentifiersCard.md) + - [Tmsv1instrumentidentifiersDetails](docs/Tmsv1instrumentidentifiersDetails.md) + - [Tmsv1instrumentidentifiersLinks](docs/Tmsv1instrumentidentifiersLinks.md) + - [Tmsv1instrumentidentifiersLinksSelf](docs/Tmsv1instrumentidentifiersLinksSelf.md) + - [Tmsv1instrumentidentifiersMetadata](docs/Tmsv1instrumentidentifiersMetadata.md) + - [Tmsv1instrumentidentifiersProcessingInformation](docs/Tmsv1instrumentidentifiersProcessingInformation.md) + - [Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions](docs/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions.md) + - [Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator](docs/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.md) + - [Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction](docs/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md) + - [Tmsv1paymentinstrumentsBankAccount](docs/Tmsv1paymentinstrumentsBankAccount.md) + - [Tmsv1paymentinstrumentsBillTo](docs/Tmsv1paymentinstrumentsBillTo.md) + - [Tmsv1paymentinstrumentsBuyerInformation](docs/Tmsv1paymentinstrumentsBuyerInformation.md) + - [Tmsv1paymentinstrumentsBuyerInformationIssuedBy](docs/Tmsv1paymentinstrumentsBuyerInformationIssuedBy.md) + - [Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification](docs/Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.md) + - [Tmsv1paymentinstrumentsCard](docs/Tmsv1paymentinstrumentsCard.md) + - [Tmsv1paymentinstrumentsInstrumentIdentifier](docs/Tmsv1paymentinstrumentsInstrumentIdentifier.md) + - [Tmsv1paymentinstrumentsMerchantInformation](docs/Tmsv1paymentinstrumentsMerchantInformation.md) + - [Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor](docs/Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor.md) + - [Tmsv1paymentinstrumentsProcessingInformation](docs/Tmsv1paymentinstrumentsProcessingInformation.md) + - [Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions](docs/Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions.md) + - [TokenizeParameters](docs/TokenizeParameters.md) + - [TokenizeRequest](docs/TokenizeRequest.md) + - [TokenizeResult](docs/TokenizeResult.md) + - [TssV2TransactionsGet200Response](docs/TssV2TransactionsGet200Response.md) + - [TssV2TransactionsGet200ResponseApplicationInformation](docs/TssV2TransactionsGet200ResponseApplicationInformation.md) + - [TssV2TransactionsGet200ResponseApplicationInformationApplications](docs/TssV2TransactionsGet200ResponseApplicationInformationApplications.md) + - [TssV2TransactionsGet200ResponseBuyerInformation](docs/TssV2TransactionsGet200ResponseBuyerInformation.md) + - [TssV2TransactionsGet200ResponseClientReferenceInformation](docs/TssV2TransactionsGet200ResponseClientReferenceInformation.md) + - [TssV2TransactionsGet200ResponseConsumerAuthenticationInformation](docs/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.md) + - [TssV2TransactionsGet200ResponseDeviceInformation](docs/TssV2TransactionsGet200ResponseDeviceInformation.md) + - [TssV2TransactionsGet200ResponseErrorInformation](docs/TssV2TransactionsGet200ResponseErrorInformation.md) + - [TssV2TransactionsGet200ResponseFraudMarkingInformation](docs/TssV2TransactionsGet200ResponseFraudMarkingInformation.md) + - [TssV2TransactionsGet200ResponseInstallmentInformation](docs/TssV2TransactionsGet200ResponseInstallmentInformation.md) + - [TssV2TransactionsGet200ResponseMerchantDefinedInformation](docs/TssV2TransactionsGet200ResponseMerchantDefinedInformation.md) + - [TssV2TransactionsGet200ResponseMerchantInformation](docs/TssV2TransactionsGet200ResponseMerchantInformation.md) + - [TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor](docs/TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.md) + - [TssV2TransactionsGet200ResponseOrderInformation](docs/TssV2TransactionsGet200ResponseOrderInformation.md) + - [TssV2TransactionsGet200ResponseOrderInformationAmountDetails](docs/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.md) + - [TssV2TransactionsGet200ResponseOrderInformationBillTo](docs/TssV2TransactionsGet200ResponseOrderInformationBillTo.md) + - [TssV2TransactionsGet200ResponseOrderInformationLineItems](docs/TssV2TransactionsGet200ResponseOrderInformationLineItems.md) + - [TssV2TransactionsGet200ResponseOrderInformationShipTo](docs/TssV2TransactionsGet200ResponseOrderInformationShipTo.md) + - [TssV2TransactionsGet200ResponseOrderInformationShippingDetails](docs/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.md) + - [TssV2TransactionsGet200ResponsePaymentInformation](docs/TssV2TransactionsGet200ResponsePaymentInformation.md) + - [TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures](docs/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.md) + - [TssV2TransactionsGet200ResponsePaymentInformationBank](docs/TssV2TransactionsGet200ResponsePaymentInformationBank.md) + - [TssV2TransactionsGet200ResponsePaymentInformationBankAccount](docs/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.md) + - [TssV2TransactionsGet200ResponsePaymentInformationBankMandate](docs/TssV2TransactionsGet200ResponsePaymentInformationBankMandate.md) + - [TssV2TransactionsGet200ResponsePaymentInformationCard](docs/TssV2TransactionsGet200ResponsePaymentInformationCard.md) + - [TssV2TransactionsGet200ResponsePaymentInformationInvoice](docs/TssV2TransactionsGet200ResponsePaymentInformationInvoice.md) + - [TssV2TransactionsGet200ResponsePaymentInformationPaymentType](docs/TssV2TransactionsGet200ResponsePaymentInformationPaymentType.md) + - [TssV2TransactionsGet200ResponsePointOfSaleInformation](docs/TssV2TransactionsGet200ResponsePointOfSaleInformation.md) + - [TssV2TransactionsGet200ResponseProcessingInformation](docs/TssV2TransactionsGet200ResponseProcessingInformation.md) + - [TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions](docs/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.md) + - [TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions](docs/TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.md) + - [TssV2TransactionsGet200ResponseProcessorInformation](docs/TssV2TransactionsGet200ResponseProcessorInformation.md) + - [TssV2TransactionsGet200ResponseProcessorInformationAchVerification](docs/TssV2TransactionsGet200ResponseProcessorInformationAchVerification.md) + - [TssV2TransactionsGet200ResponseProcessorInformationCardVerification](docs/TssV2TransactionsGet200ResponseProcessorInformationCardVerification.md) + - [TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults](docs/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.md) + - [TssV2TransactionsGet200ResponseProcessorInformationProcessor](docs/TssV2TransactionsGet200ResponseProcessorInformationProcessor.md) + - [TssV2TransactionsGet200ResponseRiskInformation](docs/TssV2TransactionsGet200ResponseRiskInformation.md) + - [TssV2TransactionsGet200ResponseRiskInformationProfile](docs/TssV2TransactionsGet200ResponseRiskInformationProfile.md) + - [TssV2TransactionsGet200ResponseRiskInformationScore](docs/TssV2TransactionsGet200ResponseRiskInformationScore.md) + - [TssV2TransactionsGet200ResponseSenderInformation](docs/TssV2TransactionsGet200ResponseSenderInformation.md) + - [TssV2TransactionsPost201Response](docs/TssV2TransactionsPost201Response.md) + - [TssV2TransactionsPost201ResponseEmbedded](docs/TssV2TransactionsPost201ResponseEmbedded.md) + - [TssV2TransactionsPost201ResponseEmbeddedBuyerInformation](docs/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation](docs/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation](docs/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedDeviceInformation](docs/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedLinks](docs/TssV2TransactionsPost201ResponseEmbeddedLinks.md) + - [TssV2TransactionsPost201ResponseEmbeddedMerchantInformation](docs/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedOrderInformation](docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo](docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.md) + - [TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo](docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.md) + - [TssV2TransactionsPost201ResponseEmbeddedPaymentInformation](docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard](docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.md) + - [TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod](docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod.md) + - [TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation](docs/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner](docs/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.md) + - [TssV2TransactionsPost201ResponseEmbeddedProcessingInformation](docs/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedProcessorInformation](docs/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedRiskInformation](docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformation.md) + - [TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders](docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.md) + - [TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint](docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.md) + - [TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries](docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md) + - [TssV2TransactionsPost400Response](docs/TssV2TransactionsPost400Response.md) + - [TssV2TransactionsPostResponse](docs/TssV2TransactionsPostResponse.md) + - [UmsV1UsersGet200Response](docs/UmsV1UsersGet200Response.md) + - [UmsV1UsersGet200ResponseAccountInformation](docs/UmsV1UsersGet200ResponseAccountInformation.md) + - [UmsV1UsersGet200ResponseContactInformation](docs/UmsV1UsersGet200ResponseContactInformation.md) + - [UmsV1UsersGet200ResponseOrganizationInformation](docs/UmsV1UsersGet200ResponseOrganizationInformation.md) + - [UmsV1UsersGet200ResponseUsers](docs/UmsV1UsersGet200ResponseUsers.md) + - [V1FileDetailsGet200Response](docs/V1FileDetailsGet200Response.md) + - [V1FileDetailsGet200ResponseFileDetails](docs/V1FileDetailsGet200ResponseFileDetails.md) + - [V1FileDetailsGet200ResponseLinks](docs/V1FileDetailsGet200ResponseLinks.md) + - [V1FileDetailsGet200ResponseLinksFiles](docs/V1FileDetailsGet200ResponseLinksFiles.md) + - [V1FileDetailsGet200ResponseLinksSelf](docs/V1FileDetailsGet200ResponseLinksSelf.md) + - [VoidCaptureRequest](docs/VoidCaptureRequest.md) + - [VoidCreditRequest](docs/VoidCreditRequest.md) + - [VoidPaymentRequest](docs/VoidPaymentRequest.md) + - [VoidRefundRequest](docs/VoidRefundRequest.md) + + +## Documentation For Authorization + + All endpoints do not require authorization. + + +## Author + + + diff --git a/authenticationsdk/core/Authorization.py b/authenticationsdk/core/Authorization.py index 46a200b2..43be2dd7 100644 --- a/authenticationsdk/core/Authorization.py +++ b/authenticationsdk/core/Authorization.py @@ -82,5 +82,5 @@ def get_token(self, mconfig, date_time, logger): def validate_request_type_method(self, mconfig): if not ( - mconfig.request_type_method.upper() == GlobalLabelParameters.GET or mconfig.request_type_method.upper() == GlobalLabelParameters.POST or mconfig.request_type_method.upper() == GlobalLabelParameters.PUT or mconfig.request_type_method.upper() == GlobalLabelParameters.DELETE): + mconfig.request_type_method.upper() == GlobalLabelParameters.GET or mconfig.request_type_method.upper() == GlobalLabelParameters.POST or mconfig.request_type_method.upper() == GlobalLabelParameters.PUT or mconfig.request_type_method.upper() == GlobalLabelParameters.DELETE or mconfig.request_type_method.upper() == GlobalLabelParameters.PATCH): raise ApiException(1, GlobalLabelParameters.INVALID_REQUEST_TYPE_METHOD) diff --git a/authenticationsdk/http/GetSignatureParameter.py b/authenticationsdk/http/GetSignatureParameter.py index eaf4a4c6..4a913e80 100644 --- a/authenticationsdk/http/GetSignatureParameter.py +++ b/authenticationsdk/http/GetSignatureParameter.py @@ -60,6 +60,9 @@ def get_signature_param(self, merchant_secret_key, merchant_id, httpmethod): elif httpmethod.upper() == GlobalLabelParameters.PUT: put_request_target = GlobalLabelParameters.PUT_LOWER_CASE + self.merchant_config_sigparam.request_target signature_list.append(put_request_target) + elif httpmethod.upper() == GlobalLabelParameters.PATCH: + patch_request_target = GlobalLabelParameters.PATCH_LOWER_CASE + self.merchant_config_sigparam.request_target + signature_list.append(patch_request_target) elif httpmethod.upper() == GlobalLabelParameters.DELETE: delete_request_target = GlobalLabelParameters.DELETE_LOWER_CASE + self.merchant_config_sigparam.request_target signature_list.append(delete_request_target) @@ -67,7 +70,7 @@ def get_signature_param(self, merchant_secret_key, merchant_id, httpmethod): signature_list.append("\n") # This method adds the digest header only for post - if httpmethod.upper() == GlobalLabelParameters.POST or httpmethod.upper() == GlobalLabelParameters.PUT: + if httpmethod.upper() == GlobalLabelParameters.POST or httpmethod.upper() == GlobalLabelParameters.PUT or httpmethod.upper() == GlobalLabelParameters.PATCH : digest_get_obj = DigestAndPayload() digest = digest_get_obj.string_digest_generation( self.merchant_config_sigparam.request_json_path_data) diff --git a/authenticationsdk/http/HTTPSignatureToken.py b/authenticationsdk/http/HTTPSignatureToken.py index 1221b34c..f72ea52b 100644 --- a/authenticationsdk/http/HTTPSignatureToken.py +++ b/authenticationsdk/http/HTTPSignatureToken.py @@ -59,6 +59,9 @@ def signature_header(self): elif self.http_method_sig.upper() == GlobalLabelParameters.PUT: putheaders = "host date (request-target) digest v-c-merchant-id" header_list.append(GlobalLabelParameters.HEADERS_PARAM + putheaders + "\"") + elif self.http_method_sig.upper() == GlobalLabelParameters.PATCH: + patchheaders = "host date (request-target) digest v-c-merchant-id" + header_list.append(GlobalLabelParameters.HEADERS_PARAM + patchheaders + "\"") elif self.http_method_sig.upper() == GlobalLabelParameters.DELETE: deleteheaders = "host date (request-target)" + " " + "v-c-merchant-id" header_list.append(GlobalLabelParameters.HEADERS_PARAM + deleteheaders + "\"") diff --git a/authenticationsdk/jwt/Token.py b/authenticationsdk/jwt/Token.py index fa25a332..070ac7a2 100644 --- a/authenticationsdk/jwt/Token.py +++ b/authenticationsdk/jwt/Token.py @@ -31,6 +31,8 @@ def set_token(self): token = self.token_for_put() elif self.jwt_method.upper() == GlobalLabelParameters.DELETE: token = self.token_for_delete() + elif self.jwt_method.upper() == GlobalLabelParameters.PATCH: + token = self.token_for_patch() return token @@ -112,6 +114,33 @@ def token_for_put(self): return encoded_jwt + def token_for_patch(self): + + digest_payload_obj = DigestAndPayload() + digest = digest_payload_obj.string_digest_generation( + self.merchant_config.request_json_path_data) + # Setting the jwt body for JWT-post + jwt_body = {GlobalLabelParameters.JWT_DIGEST: digest.decode("utf-8"), + GlobalLabelParameters.JWT_ALGORITHM: "SHA-256", + GlobalLabelParameters.JWT_TIME: self.date} + # reading the p12 file from cache memory + cache_obj = FileCache() + cache_memory = cache_obj.grab_file(self.merchant_config, self.merchant_config.key_file_path, + self.merchant_config.key_file_name) + der_cert_string = cache_memory[0] + private_key = cache_memory[1] + # setting the headers -merchant_id and the public key + headers_jwt = { + GlobalLabelParameters.MERCHANT_ID: str(self.merchant_config.key_alias)} + public_key_list = ([]) + public_key_list.append(der_cert_string.decode("utf-8")) + public_key_headers = {GlobalLabelParameters.PUBLIC_KEY: public_key_list} + headers_jwt.update(public_key_headers) + # generating the token of jwt + encoded_jwt = jwt.encode(jwt_body, private_key, algorithm='RS256', headers=headers_jwt) + + return encoded_jwt + def token_for_delete(self): # Setting the jwt body for JWT-get diff --git a/authenticationsdk/util/GlobalLabelParameters.py b/authenticationsdk/util/GlobalLabelParameters.py index f5eb24e6..9ecc730b 100644 --- a/authenticationsdk/util/GlobalLabelParameters.py +++ b/authenticationsdk/util/GlobalLabelParameters.py @@ -3,10 +3,12 @@ class GlobalLabelParameters: GET = "GET" PUT = "PUT" DELETE = "DELETE" + PATCH = "PATCH" GET_LOWER_CASE = "get " POST_LOWER_CASE = "post " PUT_LOWER_CASE = "put " DELETE_LOWER_CASE = "delete " + PATCH_LOWER_CASE = "patch " HTTP_URL_PREFIX = "https://" HTTP = "HTTP_Signature" MERCHANT_ID = "v-c-merchant-id" @@ -60,7 +62,7 @@ class GlobalLabelParameters: INVALID_KEY_PASSWORD = "KeyPassword Invalid. Assigining merchantID value" KEY_DIRECTORY_EMPTY = "KeysDirectory not provided. Using Default Path:" REQUEST_JSON_EMPTY = "RequestJsonPath not provided" - INVALID_REQUEST_TYPE_METHOD = "Entered Request Type should be (GET/POST/PUT)" + INVALID_REQUEST_TYPE_METHOD = "Entered Request Type should be (GET/POST/PUT/PATCH)" RUN_ENVIRONMENT_EMPTY = "RunEnvironment Is Mandatory." DEFAULT_LOG_FILE_NAME = "Log File Name Empty/None.Using Default Value" DEFAULT_ENABLE_LOG = True diff --git a/docs/AuthReversalRequest.md b/docs/AuthReversalRequest.md index cd7de36f..c908ec5b 100644 --- a/docs/AuthReversalRequest.md +++ b/docs/AuthReversalRequest.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**V2paymentsidreversalsClientReferenceInformation**](V2paymentsidreversalsClientReferenceInformation.md) | | [optional] -**reversal_information** | [**V2paymentsidreversalsReversalInformation**](V2paymentsidreversalsReversalInformation.md) | | [optional] -**processing_information** | [**V2paymentsidreversalsProcessingInformation**](V2paymentsidreversalsProcessingInformation.md) | | [optional] -**order_information** | [**V2paymentsidreversalsOrderInformation**](V2paymentsidreversalsOrderInformation.md) | | [optional] -**point_of_sale_information** | [**V2paymentsidreversalsPointOfSaleInformation**](V2paymentsidreversalsPointOfSaleInformation.md) | | [optional] +**client_reference_information** | [**Ptsv2paymentsidreversalsClientReferenceInformation**](Ptsv2paymentsidreversalsClientReferenceInformation.md) | | [optional] +**reversal_information** | [**Ptsv2paymentsidreversalsReversalInformation**](Ptsv2paymentsidreversalsReversalInformation.md) | | [optional] +**processing_information** | [**Ptsv2paymentsidreversalsProcessingInformation**](Ptsv2paymentsidreversalsProcessingInformation.md) | | [optional] +**order_information** | [**Ptsv2paymentsidreversalsOrderInformation**](Ptsv2paymentsidreversalsOrderInformation.md) | | [optional] +**point_of_sale_information** | [**Ptsv2paymentsidreversalsPointOfSaleInformation**](Ptsv2paymentsidreversalsPointOfSaleInformation.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Body.md b/docs/Body.md index 8883fae9..fce2da38 100644 --- a/docs/Body.md +++ b/docs/Body.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**links** | [**InstrumentidentifiersLinks**](InstrumentidentifiersLinks.md) | | [optional] +**links** | [**Tmsv1instrumentidentifiersLinks**](Tmsv1instrumentidentifiersLinks.md) | | [optional] **id** | **str** | Unique identification number assigned by CyberSource to the submitted request. | [optional] **object** | **str** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional] **state** | **str** | Current state of the token. | [optional] -**card** | [**InstrumentidentifiersCard**](InstrumentidentifiersCard.md) | | [optional] -**bank_account** | [**InstrumentidentifiersBankAccount**](InstrumentidentifiersBankAccount.md) | | [optional] -**processing_information** | [**InstrumentidentifiersProcessingInformation**](InstrumentidentifiersProcessingInformation.md) | | [optional] -**metadata** | [**InstrumentidentifiersMetadata**](InstrumentidentifiersMetadata.md) | | [optional] +**card** | [**Tmsv1instrumentidentifiersCard**](Tmsv1instrumentidentifiersCard.md) | | [optional] +**bank_account** | [**Tmsv1instrumentidentifiersBankAccount**](Tmsv1instrumentidentifiersBankAccount.md) | | [optional] +**processing_information** | [**Tmsv1instrumentidentifiersProcessingInformation**](Tmsv1instrumentidentifiersProcessingInformation.md) | | [optional] +**metadata** | [**Tmsv1instrumentidentifiersMetadata**](Tmsv1instrumentidentifiersMetadata.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Body1.md b/docs/Body1.md index 73acf14b..ffae22c6 100644 --- a/docs/Body1.md +++ b/docs/Body1.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**processing_information** | [**InstrumentidentifiersProcessingInformation**](InstrumentidentifiersProcessingInformation.md) | | [optional] +**processing_information** | [**Tmsv1instrumentidentifiersProcessingInformation**](Tmsv1instrumentidentifiersProcessingInformation.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Body2.md b/docs/Body2.md index bbbb7dd7..94314ca8 100644 --- a/docs/Body2.md +++ b/docs/Body2.md @@ -3,18 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**links** | [**InstrumentidentifiersLinks**](InstrumentidentifiersLinks.md) | | [optional] +**links** | [**Tmsv1instrumentidentifiersLinks**](Tmsv1instrumentidentifiersLinks.md) | | [optional] **id** | **str** | Unique identification number assigned by CyberSource to the submitted request. | [optional] **object** | **str** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional] **state** | **str** | Current state of the token. | [optional] -**bank_account** | [**PaymentinstrumentsBankAccount**](PaymentinstrumentsBankAccount.md) | | [optional] -**card** | [**PaymentinstrumentsCard**](PaymentinstrumentsCard.md) | | [optional] -**buyer_information** | [**PaymentinstrumentsBuyerInformation**](PaymentinstrumentsBuyerInformation.md) | | [optional] -**bill_to** | [**PaymentinstrumentsBillTo**](PaymentinstrumentsBillTo.md) | | [optional] -**processing_information** | [**PaymentinstrumentsProcessingInformation**](PaymentinstrumentsProcessingInformation.md) | | [optional] -**merchant_information** | [**PaymentinstrumentsMerchantInformation**](PaymentinstrumentsMerchantInformation.md) | | [optional] -**meta_data** | [**InstrumentidentifiersMetadata**](InstrumentidentifiersMetadata.md) | | [optional] -**instrument_identifier** | [**PaymentinstrumentsInstrumentIdentifier**](PaymentinstrumentsInstrumentIdentifier.md) | | [optional] +**bank_account** | [**Tmsv1paymentinstrumentsBankAccount**](Tmsv1paymentinstrumentsBankAccount.md) | | [optional] +**card** | [**Tmsv1paymentinstrumentsCard**](Tmsv1paymentinstrumentsCard.md) | | [optional] +**buyer_information** | [**Tmsv1paymentinstrumentsBuyerInformation**](Tmsv1paymentinstrumentsBuyerInformation.md) | | [optional] +**bill_to** | [**Tmsv1paymentinstrumentsBillTo**](Tmsv1paymentinstrumentsBillTo.md) | | [optional] +**processing_information** | [**Tmsv1paymentinstrumentsProcessingInformation**](Tmsv1paymentinstrumentsProcessingInformation.md) | | [optional] +**merchant_information** | [**Tmsv1paymentinstrumentsMerchantInformation**](Tmsv1paymentinstrumentsMerchantInformation.md) | | [optional] +**meta_data** | [**Tmsv1instrumentidentifiersMetadata**](Tmsv1instrumentidentifiersMetadata.md) | | [optional] +**instrument_identifier** | [**Tmsv1paymentinstrumentsInstrumentIdentifier**](Tmsv1paymentinstrumentsInstrumentIdentifier.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Body3.md b/docs/Body3.md index d991f0cb..477096c3 100644 --- a/docs/Body3.md +++ b/docs/Body3.md @@ -3,18 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**links** | [**InstrumentidentifiersLinks**](InstrumentidentifiersLinks.md) | | [optional] +**links** | [**Tmsv1instrumentidentifiersLinks**](Tmsv1instrumentidentifiersLinks.md) | | [optional] **id** | **str** | Unique identification number assigned by CyberSource to the submitted request. | [optional] **object** | **str** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional] **state** | **str** | Current state of the token. | [optional] -**bank_account** | [**PaymentinstrumentsBankAccount**](PaymentinstrumentsBankAccount.md) | | [optional] -**card** | [**PaymentinstrumentsCard**](PaymentinstrumentsCard.md) | | [optional] -**buyer_information** | [**PaymentinstrumentsBuyerInformation**](PaymentinstrumentsBuyerInformation.md) | | [optional] -**bill_to** | [**PaymentinstrumentsBillTo**](PaymentinstrumentsBillTo.md) | | [optional] -**processing_information** | [**PaymentinstrumentsProcessingInformation**](PaymentinstrumentsProcessingInformation.md) | | [optional] -**merchant_information** | [**PaymentinstrumentsMerchantInformation**](PaymentinstrumentsMerchantInformation.md) | | [optional] -**meta_data** | [**InstrumentidentifiersMetadata**](InstrumentidentifiersMetadata.md) | | [optional] -**instrument_identifier** | [**PaymentinstrumentsInstrumentIdentifier**](PaymentinstrumentsInstrumentIdentifier.md) | | [optional] +**bank_account** | [**Tmsv1paymentinstrumentsBankAccount**](Tmsv1paymentinstrumentsBankAccount.md) | | [optional] +**card** | [**Tmsv1paymentinstrumentsCard**](Tmsv1paymentinstrumentsCard.md) | | [optional] +**buyer_information** | [**Tmsv1paymentinstrumentsBuyerInformation**](Tmsv1paymentinstrumentsBuyerInformation.md) | | [optional] +**bill_to** | [**Tmsv1paymentinstrumentsBillTo**](Tmsv1paymentinstrumentsBillTo.md) | | [optional] +**processing_information** | [**Tmsv1paymentinstrumentsProcessingInformation**](Tmsv1paymentinstrumentsProcessingInformation.md) | | [optional] +**merchant_information** | [**Tmsv1paymentinstrumentsMerchantInformation**](Tmsv1paymentinstrumentsMerchantInformation.md) | | [optional] +**meta_data** | [**Tmsv1instrumentidentifiersMetadata**](Tmsv1instrumentidentifiersMetadata.md) | | [optional] +**instrument_identifier** | [**Tmsv1paymentinstrumentsInstrumentIdentifier**](Tmsv1paymentinstrumentsInstrumentIdentifier.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CaptureApi.md b/docs/CaptureApi.md index 9965aca8..23d855cf 100644 --- a/docs/CaptureApi.md +++ b/docs/CaptureApi.md @@ -1,15 +1,14 @@ # CyberSource.CaptureApi -All URIs are relative to *https://api.cybersource.com* +All URIs are relative to *https://apitest.cybersource.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**capture_payment**](CaptureApi.md#capture_payment) | **POST** /v2/payments/{id}/captures | Capture a Payment -[**get_capture**](CaptureApi.md#get_capture) | **GET** /v2/captures/{id} | Retrieve a Capture +[**capture_payment**](CaptureApi.md#capture_payment) | **POST** /pts/v2/payments/{id}/captures | Capture a Payment # **capture_payment** -> InlineResponse2012 capture_payment(capture_payment_request, id) +> PtsV2PaymentsCapturesPost201Response capture_payment(capture_payment_request, id) Capture a Payment @@ -45,7 +44,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2012**](InlineResponse2012.md) +[**PtsV2PaymentsCapturesPost201Response**](PtsV2PaymentsCapturesPost201Response.md) ### Authorization @@ -53,56 +52,8 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_capture** -> InlineResponse2004 get_capture(id) - -Retrieve a Capture - -Include the capture ID in the GET request to retrieve the capture details. - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.CaptureApi() -id = 'id_example' # str | The capture ID returned from a previous capture request. - -try: - # Retrieve a Capture - api_response = api_instance.get_capture(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling CaptureApi->get_capture: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| The capture ID returned from a previous capture request. | - -### Return type - -[**InlineResponse2004**](InlineResponse2004.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/CapturePaymentRequest.md b/docs/CapturePaymentRequest.md index b05b94c2..6af10db3 100644 --- a/docs/CapturePaymentRequest.md +++ b/docs/CapturePaymentRequest.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**V2paymentsClientReferenceInformation**](V2paymentsClientReferenceInformation.md) | | [optional] -**processing_information** | [**V2paymentsidcapturesProcessingInformation**](V2paymentsidcapturesProcessingInformation.md) | | [optional] -**payment_information** | [**V2paymentsidcapturesPaymentInformation**](V2paymentsidcapturesPaymentInformation.md) | | [optional] -**order_information** | [**V2paymentsidcapturesOrderInformation**](V2paymentsidcapturesOrderInformation.md) | | [optional] -**buyer_information** | [**V2paymentsidcapturesBuyerInformation**](V2paymentsidcapturesBuyerInformation.md) | | [optional] -**device_information** | [**V2paymentsDeviceInformation**](V2paymentsDeviceInformation.md) | | [optional] -**merchant_information** | [**V2paymentsidcapturesMerchantInformation**](V2paymentsidcapturesMerchantInformation.md) | | [optional] -**aggregator_information** | [**V2paymentsidcapturesAggregatorInformation**](V2paymentsidcapturesAggregatorInformation.md) | | [optional] -**point_of_sale_information** | [**V2paymentsidcapturesPointOfSaleInformation**](V2paymentsidcapturesPointOfSaleInformation.md) | | [optional] -**merchant_defined_information** | [**list[V2paymentsMerchantDefinedInformation]**](V2paymentsMerchantDefinedInformation.md) | TBD | [optional] +**client_reference_information** | [**Ptsv2paymentsClientReferenceInformation**](Ptsv2paymentsClientReferenceInformation.md) | | [optional] +**processing_information** | [**Ptsv2paymentsidcapturesProcessingInformation**](Ptsv2paymentsidcapturesProcessingInformation.md) | | [optional] +**payment_information** | [**Ptsv2paymentsidcapturesPaymentInformation**](Ptsv2paymentsidcapturesPaymentInformation.md) | | [optional] +**order_information** | [**Ptsv2paymentsidcapturesOrderInformation**](Ptsv2paymentsidcapturesOrderInformation.md) | | [optional] +**buyer_information** | [**Ptsv2paymentsidcapturesBuyerInformation**](Ptsv2paymentsidcapturesBuyerInformation.md) | | [optional] +**device_information** | [**Ptsv2paymentsDeviceInformation**](Ptsv2paymentsDeviceInformation.md) | | [optional] +**merchant_information** | [**Ptsv2paymentsidcapturesMerchantInformation**](Ptsv2paymentsidcapturesMerchantInformation.md) | | [optional] +**aggregator_information** | [**Ptsv2paymentsidcapturesAggregatorInformation**](Ptsv2paymentsidcapturesAggregatorInformation.md) | | [optional] +**point_of_sale_information** | [**Ptsv2paymentsidcapturesPointOfSaleInformation**](Ptsv2paymentsidcapturesPointOfSaleInformation.md) | | [optional] +**merchant_defined_information** | [**list[Ptsv2paymentsMerchantDefinedInformation]**](Ptsv2paymentsMerchantDefinedInformation.md) | Description of this field is not available. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateCreditRequest.md b/docs/CreateCreditRequest.md index 4a86c2aa..ac353fd7 100644 --- a/docs/CreateCreditRequest.md +++ b/docs/CreateCreditRequest.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**V2paymentsClientReferenceInformation**](V2paymentsClientReferenceInformation.md) | | [optional] -**processing_information** | [**V2creditsProcessingInformation**](V2creditsProcessingInformation.md) | | [optional] -**payment_information** | [**V2paymentsidrefundsPaymentInformation**](V2paymentsidrefundsPaymentInformation.md) | | [optional] -**order_information** | [**V2paymentsidrefundsOrderInformation**](V2paymentsidrefundsOrderInformation.md) | | [optional] -**buyer_information** | [**V2paymentsidcapturesBuyerInformation**](V2paymentsidcapturesBuyerInformation.md) | | [optional] -**device_information** | [**V2paymentsDeviceInformation**](V2paymentsDeviceInformation.md) | | [optional] -**merchant_information** | [**V2paymentsidrefundsMerchantInformation**](V2paymentsidrefundsMerchantInformation.md) | | [optional] -**aggregator_information** | [**V2paymentsidcapturesAggregatorInformation**](V2paymentsidcapturesAggregatorInformation.md) | | [optional] -**point_of_sale_information** | [**V2creditsPointOfSaleInformation**](V2creditsPointOfSaleInformation.md) | | [optional] -**merchant_defined_information** | [**list[V2paymentsMerchantDefinedInformation]**](V2paymentsMerchantDefinedInformation.md) | TBD | [optional] +**client_reference_information** | [**Ptsv2paymentsClientReferenceInformation**](Ptsv2paymentsClientReferenceInformation.md) | | [optional] +**processing_information** | [**Ptsv2creditsProcessingInformation**](Ptsv2creditsProcessingInformation.md) | | [optional] +**payment_information** | [**Ptsv2paymentsidrefundsPaymentInformation**](Ptsv2paymentsidrefundsPaymentInformation.md) | | [optional] +**order_information** | [**Ptsv2paymentsidrefundsOrderInformation**](Ptsv2paymentsidrefundsOrderInformation.md) | | [optional] +**buyer_information** | [**Ptsv2paymentsidcapturesBuyerInformation**](Ptsv2paymentsidcapturesBuyerInformation.md) | | [optional] +**device_information** | [**Ptsv2paymentsDeviceInformation**](Ptsv2paymentsDeviceInformation.md) | | [optional] +**merchant_information** | [**Ptsv2paymentsidrefundsMerchantInformation**](Ptsv2paymentsidrefundsMerchantInformation.md) | | [optional] +**aggregator_information** | [**Ptsv2paymentsidcapturesAggregatorInformation**](Ptsv2paymentsidcapturesAggregatorInformation.md) | | [optional] +**point_of_sale_information** | [**Ptsv2creditsPointOfSaleInformation**](Ptsv2creditsPointOfSaleInformation.md) | | [optional] +**merchant_defined_information** | [**list[Ptsv2paymentsMerchantDefinedInformation]**](Ptsv2paymentsMerchantDefinedInformation.md) | Description of this field is not available. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreatePaymentRequest.md b/docs/CreatePaymentRequest.md index 07e33bf8..615e940e 100644 --- a/docs/CreatePaymentRequest.md +++ b/docs/CreatePaymentRequest.md @@ -3,18 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**V2paymentsClientReferenceInformation**](V2paymentsClientReferenceInformation.md) | | [optional] -**processing_information** | [**V2paymentsProcessingInformation**](V2paymentsProcessingInformation.md) | | [optional] -**payment_information** | [**V2paymentsPaymentInformation**](V2paymentsPaymentInformation.md) | | [optional] -**order_information** | [**V2paymentsOrderInformation**](V2paymentsOrderInformation.md) | | [optional] -**buyer_information** | [**V2paymentsBuyerInformation**](V2paymentsBuyerInformation.md) | | [optional] -**recipient_information** | [**V2paymentsRecipientInformation**](V2paymentsRecipientInformation.md) | | [optional] -**device_information** | [**V2paymentsDeviceInformation**](V2paymentsDeviceInformation.md) | | [optional] -**merchant_information** | [**V2paymentsMerchantInformation**](V2paymentsMerchantInformation.md) | | [optional] -**aggregator_information** | [**V2paymentsAggregatorInformation**](V2paymentsAggregatorInformation.md) | | [optional] -**consumer_authentication_information** | [**V2paymentsConsumerAuthenticationInformation**](V2paymentsConsumerAuthenticationInformation.md) | | [optional] -**point_of_sale_information** | [**V2paymentsPointOfSaleInformation**](V2paymentsPointOfSaleInformation.md) | | [optional] -**merchant_defined_information** | [**list[V2paymentsMerchantDefinedInformation]**](V2paymentsMerchantDefinedInformation.md) | TBD | [optional] +**client_reference_information** | [**Ptsv2paymentsClientReferenceInformation**](Ptsv2paymentsClientReferenceInformation.md) | | [optional] +**processing_information** | [**Ptsv2paymentsProcessingInformation**](Ptsv2paymentsProcessingInformation.md) | | [optional] +**payment_information** | [**Ptsv2paymentsPaymentInformation**](Ptsv2paymentsPaymentInformation.md) | | [optional] +**order_information** | [**Ptsv2paymentsOrderInformation**](Ptsv2paymentsOrderInformation.md) | | [optional] +**buyer_information** | [**Ptsv2paymentsBuyerInformation**](Ptsv2paymentsBuyerInformation.md) | | [optional] +**recipient_information** | [**Ptsv2paymentsRecipientInformation**](Ptsv2paymentsRecipientInformation.md) | | [optional] +**device_information** | [**Ptsv2paymentsDeviceInformation**](Ptsv2paymentsDeviceInformation.md) | | [optional] +**merchant_information** | [**Ptsv2paymentsMerchantInformation**](Ptsv2paymentsMerchantInformation.md) | | [optional] +**aggregator_information** | [**Ptsv2paymentsAggregatorInformation**](Ptsv2paymentsAggregatorInformation.md) | | [optional] +**consumer_authentication_information** | [**Ptsv2paymentsConsumerAuthenticationInformation**](Ptsv2paymentsConsumerAuthenticationInformation.md) | | [optional] +**point_of_sale_information** | [**Ptsv2paymentsPointOfSaleInformation**](Ptsv2paymentsPointOfSaleInformation.md) | | [optional] +**merchant_defined_information** | [**list[Ptsv2paymentsMerchantDefinedInformation]**](Ptsv2paymentsMerchantDefinedInformation.md) | Description of this field is not available. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreditApi.md b/docs/CreditApi.md index c5186d8a..f2abe3b7 100644 --- a/docs/CreditApi.md +++ b/docs/CreditApi.md @@ -1,15 +1,14 @@ # CyberSource.CreditApi -All URIs are relative to *https://api.cybersource.com* +All URIs are relative to *https://apitest.cybersource.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_credit**](CreditApi.md#create_credit) | **POST** /v2/credits/ | Process a Credit -[**get_credit**](CreditApi.md#get_credit) | **GET** /v2/credits/{id} | Retrieve a Credit +[**create_credit**](CreditApi.md#create_credit) | **POST** /pts/v2/credits/ | Process a Credit # **create_credit** -> InlineResponse2014 create_credit(create_credit_request) +> PtsV2CreditsPost201Response create_credit(create_credit_request) Process a Credit @@ -43,7 +42,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2014**](InlineResponse2014.md) +[**PtsV2CreditsPost201Response**](PtsV2CreditsPost201Response.md) ### Authorization @@ -51,56 +50,8 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_credit** -> InlineResponse2006 get_credit(id) - -Retrieve a Credit - -Include the credit ID in the GET request to return details of the credit. - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.CreditApi() -id = 'id_example' # str | The credit ID returned from a previous stand-alone credit request. - -try: - # Retrieve a Credit - api_response = api_instance.get_credit(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling CreditApi->get_credit: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| The credit ID returned from a previous stand-alone credit request. | - -### Return type - -[**InlineResponse2006**](InlineResponse2006.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md deleted file mode 100644 index 9ced3714..00000000 --- a/docs/DefaultApi.md +++ /dev/null @@ -1,56 +0,0 @@ -# CyberSource.DefaultApi - -All URIs are relative to *https://api.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**oct_create_payment**](DefaultApi.md#oct_create_payment) | **POST** /v2/payouts/ | Process a Payout - - -# **oct_create_payment** -> oct_create_payment(oct_create_payment_request) - -Process a Payout - -Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT). - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.DefaultApi() -oct_create_payment_request = CyberSource.OctCreatePaymentRequest() # OctCreatePaymentRequest | - -try: - # Process a Payout - api_instance.oct_create_payment(oct_create_payment_request) -except ApiException as e: - print("Exception when calling DefaultApi->oct_create_payment: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **oct_create_payment_request** | [**OctCreatePaymentRequest**](OctCreatePaymentRequest.md)| | - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/FlexTokenApi.md b/docs/FlexTokenApi.md new file mode 100644 index 00000000..26ef62c5 --- /dev/null +++ b/docs/FlexTokenApi.md @@ -0,0 +1,57 @@ +# CyberSource.FlexTokenApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**tokenize**](FlexTokenApi.md#tokenize) | **POST** /flex/v1/tokens/ | Flex Tokenize card + + +# **tokenize** +> FlexV1TokensPost200Response tokenize(tokenize_request=tokenize_request) + +Flex Tokenize card + +Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser. + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.FlexTokenApi() +tokenize_request = CyberSource.TokenizeRequest() # TokenizeRequest | (optional) + +try: + # Flex Tokenize card + api_response = api_instance.tokenize(tokenize_request=tokenize_request) + pprint(api_response) +except ApiException as e: + print("Exception when calling FlexTokenApi->tokenize: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tokenize_request** | [**TokenizeRequest**](TokenizeRequest.md)| | [optional] + +### Return type + +[**FlexV1TokensPost200Response**](FlexV1TokensPost200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FlexV1KeysPost200Response.md b/docs/FlexV1KeysPost200Response.md new file mode 100644 index 00000000..fee4e38e --- /dev/null +++ b/docs/FlexV1KeysPost200Response.md @@ -0,0 +1,12 @@ +# FlexV1KeysPost200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key_id** | **str** | Unique identifier for the generated token. Used in the subsequent Tokenize Card request from your customer’s device or browser. | [optional] +**der** | [**FlexV1KeysPost200ResponseDer**](FlexV1KeysPost200ResponseDer.md) | | [optional] +**jwk** | [**FlexV1KeysPost200ResponseJwk**](FlexV1KeysPost200ResponseJwk.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FlexV1KeysPost200ResponseDer.md b/docs/FlexV1KeysPost200ResponseDer.md new file mode 100644 index 00000000..d2fcfd1f --- /dev/null +++ b/docs/FlexV1KeysPost200ResponseDer.md @@ -0,0 +1,12 @@ +# FlexV1KeysPost200ResponseDer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | Specifies the format of the public key; currently X.509. | [optional] +**algorithm** | **str** | Algorithm used to encrypt the public key. | [optional] +**public_key** | **str** | Base64 encoded public key value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FlexV1KeysPost200ResponseJwk.md b/docs/FlexV1KeysPost200ResponseJwk.md new file mode 100644 index 00000000..d56a4792 --- /dev/null +++ b/docs/FlexV1KeysPost200ResponseJwk.md @@ -0,0 +1,14 @@ +# FlexV1KeysPost200ResponseJwk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kty** | **str** | Algorithm used to encrypt the public key. | [optional] +**use** | **str** | Defines whether to use the key for encryption (enc) or verifying a signature (sig). Always returned as enc. | [optional] +**kid** | **str** | The key ID in JWK format. | [optional] +**n** | **str** | JWK RSA Modulus | [optional] +**e** | **str** | JWK RSA Exponent | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FlexV1TokensPost200Response.md b/docs/FlexV1TokensPost200Response.md new file mode 100644 index 00000000..40b0109b --- /dev/null +++ b/docs/FlexV1TokensPost200Response.md @@ -0,0 +1,17 @@ +# FlexV1TokensPost200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key_id** | **str** | The Key ID. | [optional] +**token** | **str** | The generated token. The token replaces card data and is used as the Subscription ID in the CyberSource Simple Order API or SCMP API. | [optional] +**masked_pan** | **str** | The masked card number displaying the first 6 digits and the last 4 digits. | [optional] +**card_type** | **str** | The card type. | [optional] +**timestamp** | **int** | The UTC date and time in milliseconds at which the signature was generated. | [optional] +**signed_fields** | **str** | Indicates which fields from the response make up the data that is used when verifying the response signature. See the [sample code] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/java/com/cybersource/flex/application/CheckoutController.java) on how to verify the signature. | [optional] +**signature** | **str** | Flex-generated digital signature. To ensure the values have not been tampered with while passing through the client, verify this server-side using the public key generated from the /keys resource. | [optional] +**discoverable_services** | **dict(str, object)** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Flexv1tokensCardInfo.md b/docs/Flexv1tokensCardInfo.md new file mode 100644 index 00000000..5db19ba9 --- /dev/null +++ b/docs/Flexv1tokensCardInfo.md @@ -0,0 +1,13 @@ +# Flexv1tokensCardInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card_number** | **str** | Encrypted or plain text card number. If the encryption type of “None” was used in the Generate Key request, this value can be set to the plaintext card number/Personal Account Number (PAN). If the encryption type of RsaOaep256 was used in the Generate Key request, this value needs to be the RSA OAEP 256 encrypted card number. The card number should be encrypted on the cardholders’ device. The [WebCrypto API] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/resources/public/flex.js) can be used with the JWK obtained in the Generate Key request. | [optional] +**card_expiration_month** | **str** | Two digit expiration month | [optional] +**card_expiration_year** | **str** | Four digit expiration year | [optional] +**card_type** | **str** | Card Type. This field is required. Refer to the CyberSource Credit Card Services documentation for supported card types. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GeneratePublicKeyRequest.md b/docs/GeneratePublicKeyRequest.md index 19a3bdc4..49c69147 100644 --- a/docs/GeneratePublicKeyRequest.md +++ b/docs/GeneratePublicKeyRequest.md @@ -3,7 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**encryption_type** | **str** | How the card number should be encrypted in the subsequent Tokenize Card request. Possible values are RsaOaep256 or None (if using this value the card number must be in plain text when included in the Tokenize Card request). The Tokenize Card request uses a secure connection (TLS 1.2+) regardless of what encryption type is specified. | [optional] +**encryption_type** | **str** | How the card number should be encrypted in the subsequent Tokenize Card request. Possible values are RsaOaep256 or None (if using this value the card number must be in plain text when included in the Tokenize Card request). The Tokenize Card request uses a secure connection (TLS 1.2+) regardless of what encryption type is specified. | +**target_origin** | **str** | This should only be used if using the Microform implementation. This is the protocol, URL, and if used, port number of the page that will host the Microform. Unless using http://localhost, the protocol must be https://. For example, if serving Microform on example.com, the targetOrigin is https://example.com The value is used to restrict the frame ancestor of the Microform. If there is a mismatch between this value and the frame ancestor, the Microfrom will not load. | [optional] +**unmasked_left** | **int** | Specifies the number of card number digits to be returned un-masked from the left. For example, setting this value to 6 will return: 411111XXXXXXXXXX Default value: 6 Maximum value: 6 | [optional] +**unmasked_right** | **int** | Specifies the number of card number digits to be returned un-masked from the right. For example, setting this value to 4 will return: 411111XXXXXX1111 Default value: 4 Maximum value: 4 | [optional] +**enable_billing_address** | **bool** | Specifies whether or not 'dummy' address data should be specified in the create token request. If you have 'Relaxed AVS' enabled for your MID, this value can be set to False.Default value: true | [optional] +**currency** | **str** | Three character ISO currency code to be associated with the token. Required for legacy integrations. Default value: USD. | [optional] +**enable_auto_auth** | **bool** | Specifies whether or not an account verification authorization ($0 Authorization) is carried out on token creation. Default is false, as it is assumed a full or zero amount authorization will be carried out in a separate call from your server. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md deleted file mode 100644 index 20800090..00000000 --- a/docs/InlineResponse200.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse200 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key_id** | **str** | Unique identifier for the generated token. Used in the subsequent Tokenize Card request from your customer’s device or browser. | [optional] -**der** | [**InlineResponse200Der**](InlineResponse200Der.md) | | [optional] -**jwk** | [**InlineResponse200Jwk**](InlineResponse200Jwk.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md deleted file mode 100644 index 8b50bb75..00000000 --- a/docs/InlineResponse2001.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse2001 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key_id** | **str** | The Key ID. | [optional] -**token** | **str** | The generated token. The token replaces card data and is used as the Subscription ID in the CyberSource Simple Order API or SCMP API. | [optional] -**masked_pan** | **str** | The masked card number displaying the first 6 digits and the last 4 digits. | [optional] -**card_type** | **str** | The card type. | [optional] -**timestamp** | **int** | The UTC date and time in milliseconds at which the signature was generated. | [optional] -**signed_fields** | **str** | Indicates which fields from the response make up the data that is used when verifying the response signature. See the [sample code] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/java/com/cybersource/flex/application/CheckoutController.java) on how to verify the signature. | [optional] -**signature** | **str** | Flex-generated digital signature. To ensure the values have not been tampered with while passing through the client, verify this server-side using the public key generated from the /keys resource. | [optional] -**discoverable_services** | **dict(str, object)** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002.md b/docs/InlineResponse2002.md deleted file mode 100644 index 87cfa0dc..00000000 --- a/docs/InlineResponse2002.md +++ /dev/null @@ -1,24 +0,0 @@ -# InlineResponse2002 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse201Links**](InlineResponse201Links.md) | | [optional] -**embedded** | [**InlineResponse201Embedded**](InlineResponse201Embedded.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] -**error_information** | [**InlineResponse201ErrorInformation**](InlineResponse201ErrorInformation.md) | | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**processing_information** | [**InlineResponse2002ProcessingInformation**](InlineResponse2002ProcessingInformation.md) | | [optional] -**processor_information** | [**InlineResponse2002ProcessorInformation**](InlineResponse2002ProcessorInformation.md) | | [optional] -**payment_information** | [**InlineResponse2002PaymentInformation**](InlineResponse2002PaymentInformation.md) | | [optional] -**order_information** | [**InlineResponse2002OrderInformation**](InlineResponse2002OrderInformation.md) | | [optional] -**buyer_information** | [**InlineResponse2002BuyerInformation**](InlineResponse2002BuyerInformation.md) | | [optional] -**merchant_information** | [**InlineResponse2002MerchantInformation**](InlineResponse2002MerchantInformation.md) | | [optional] -**device_information** | [**InlineResponse2002DeviceInformation**](InlineResponse2002DeviceInformation.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002BuyerInformation.md b/docs/InlineResponse2002BuyerInformation.md deleted file mode 100644 index 9430b7da..00000000 --- a/docs/InlineResponse2002BuyerInformation.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse2002BuyerInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merchant_customer_id** | **str** | Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**date_of_birth** | **str** | Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] -**vat_registration_number** | **str** | Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**personal_identification** | [**list[V2paymentsBuyerInformationPersonalIdentification]**](V2paymentsBuyerInformationPersonalIdentification.md) | | [optional] -**tax_id** | **str** | TBD | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002DeviceInformation.md b/docs/InlineResponse2002DeviceInformation.md deleted file mode 100644 index b80505dd..00000000 --- a/docs/InlineResponse2002DeviceInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2002DeviceInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | TBD | [optional] -**fingerprint_id** | **str** | TBD | [optional] -**ip_address** | **str** | IP address of the customer. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002MerchantInformation.md b/docs/InlineResponse2002MerchantInformation.md deleted file mode 100644 index 9bc421b9..00000000 --- a/docs/InlineResponse2002MerchantInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2002MerchantInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**category_code** | **int** | Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**vat_registration_number** | **str** | Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**merchant_descriptor** | [**V2paymentsMerchantInformationMerchantDescriptor**](V2paymentsMerchantInformationMerchantDescriptor.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002OrderInformation.md b/docs/InlineResponse2002OrderInformation.md deleted file mode 100644 index 1164e4df..00000000 --- a/docs/InlineResponse2002OrderInformation.md +++ /dev/null @@ -1,15 +0,0 @@ -# InlineResponse2002OrderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount_details** | [**InlineResponse2002OrderInformationAmountDetails**](InlineResponse2002OrderInformationAmountDetails.md) | | [optional] -**bill_to** | [**InlineResponse2002OrderInformationBillTo**](InlineResponse2002OrderInformationBillTo.md) | | [optional] -**ship_to** | [**InlineResponse2002OrderInformationShipTo**](InlineResponse2002OrderInformationShipTo.md) | | [optional] -**line_items** | [**list[InlineResponse2002OrderInformationLineItems]**](InlineResponse2002OrderInformationLineItems.md) | | [optional] -**invoice_details** | [**InlineResponse2002OrderInformationInvoiceDetails**](InlineResponse2002OrderInformationInvoiceDetails.md) | | [optional] -**shipping_details** | [**V2paymentsOrderInformationShippingDetails**](V2paymentsOrderInformationShippingDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002OrderInformationAmountDetails.md b/docs/InlineResponse2002OrderInformationAmountDetails.md deleted file mode 100644 index 518f8e96..00000000 --- a/docs/InlineResponse2002OrderInformationAmountDetails.md +++ /dev/null @@ -1,18 +0,0 @@ -# InlineResponse2002OrderInformationAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authorized_amount** | **str** | Amount that was authorized. | [optional] -**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] -**discount_amount** | **str** | Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**duty_amount** | **str** | Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_amount** | **str** | Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**national_tax_included** | **str** | Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**freight_amount** | **str** | Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_details** | [**list[V2paymentsOrderInformationAmountDetailsTaxDetails]**](V2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002OrderInformationBillTo.md b/docs/InlineResponse2002OrderInformationBillTo.md deleted file mode 100644 index 773e46ca..00000000 --- a/docs/InlineResponse2002OrderInformationBillTo.md +++ /dev/null @@ -1,21 +0,0 @@ -# InlineResponse2002OrderInformationBillTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**first_name** | **str** | Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**last_name** | **str** | Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**company** | **str** | Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**address1** | **str** | First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**address2** | **str** | Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**locality** | **str** | City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**administrative_area** | **str** | State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**postal_code** | **str** | Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**county** | **str** | TBD | [optional] -**country** | **str** | Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**email** | **str** | Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**phone_number** | **str** | Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002OrderInformationInvoiceDetails.md b/docs/InlineResponse2002OrderInformationInvoiceDetails.md deleted file mode 100644 index fc2cc259..00000000 --- a/docs/InlineResponse2002OrderInformationInvoiceDetails.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse2002OrderInformationInvoiceDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **str** | Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**purchase_order_date** | **str** | Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**taxable** | **bool** | Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**vat_invoice_reference_number** | **str** | VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**commodity_code** | **str** | International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**merchandise_code** | **float** | Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. | [optional] -**transaction_advice_addendum** | [**list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]**](V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md) | | [optional] -**level3_transmission_status** | **bool** | Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002OrderInformationLineItems.md b/docs/InlineResponse2002OrderInformationLineItems.md deleted file mode 100644 index 0c6f1ecd..00000000 --- a/docs/InlineResponse2002OrderInformationLineItems.md +++ /dev/null @@ -1,26 +0,0 @@ -# InlineResponse2002OrderInformationLineItems - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_code** | **str** | Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. | [optional] -**product_name** | **str** | For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] -**product_sku** | **str** | Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. | [optional] -**quantity** | **float** | For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] -**unit_price** | **str** | Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**unit_of_measure** | **str** | Unit of measure, or unit of measure code, for the item. | [optional] -**total_amount** | **str** | Total amount for the item. Normally calculated as the unit price x quantity. | [optional] -**tax_amount** | **str** | Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. | [optional] -**tax_rate** | **str** | Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). | [optional] -**tax_type_code** | **str** | Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. | [optional] -**amount_includes_tax** | **bool** | Flag that indicates whether the tax amount is included in the Line Item Total. | [optional] -**commodity_code** | **str** | Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. | [optional] -**discount_amount** | **str** | Discount applied to the item. | [optional] -**discount_applied** | **bool** | Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. | [optional] -**discount_rate** | **str** | Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) | [optional] -**invoice_number** | **str** | Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. | [optional] -**tax_details** | [**list[V2paymentsOrderInformationAmountDetailsTaxDetails]**](V2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002OrderInformationShipTo.md b/docs/InlineResponse2002OrderInformationShipTo.md deleted file mode 100644 index 4af8adb7..00000000 --- a/docs/InlineResponse2002OrderInformationShipTo.md +++ /dev/null @@ -1,21 +0,0 @@ -# InlineResponse2002OrderInformationShipTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**first_name** | **str** | First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 | [optional] -**last_name** | **str** | Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 | [optional] -**company** | **str** | TBD | [optional] -**address1** | **str** | First line of the shipping address. | [optional] -**address2** | **str** | Second line of the shipping address. | [optional] -**locality** | **str** | City of the shipping address. | [optional] -**administrative_area** | **str** | State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] -**postal_code** | **str** | Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 | [optional] -**county** | **str** | TBD | [optional] -**country** | **str** | Country of the shipping address. Use the two character ISO Standard Country Codes. | [optional] -**email** | **str** | TBD | [optional] -**phone_number** | **str** | Phone number for the shipping address. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002PaymentInformation.md b/docs/InlineResponse2002PaymentInformation.md deleted file mode 100644 index 7cfe8bd6..00000000 --- a/docs/InlineResponse2002PaymentInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2002PaymentInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**card** | [**InlineResponse2002PaymentInformationCard**](InlineResponse2002PaymentInformationCard.md) | | [optional] -**tokenized_card** | [**InlineResponse2002PaymentInformationTokenizedCard**](InlineResponse2002PaymentInformationTokenizedCard.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002PaymentInformationCard.md b/docs/InlineResponse2002PaymentInformationCard.md deleted file mode 100644 index c8c7fa0d..00000000 --- a/docs/InlineResponse2002PaymentInformationCard.md +++ /dev/null @@ -1,13 +0,0 @@ -# InlineResponse2002PaymentInformationCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**suffix** | **str** | Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. | [optional] -**expiration_month** | **str** | Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**expiration_year** | **str** | Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002PaymentInformationTokenizedCard.md b/docs/InlineResponse2002PaymentInformationTokenizedCard.md deleted file mode 100644 index cd770d8e..00000000 --- a/docs/InlineResponse2002PaymentInformationTokenizedCard.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse2002PaymentInformationTokenizedCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**prefix** | **str** | First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. | [optional] -**suffix** | **str** | Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. | [optional] -**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] -**expiration_month** | **str** | Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. | [optional] -**expiration_year** | **str** | Four-digit year in which the payment network token expires. `Format: YYYY`. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002ProcessingInformation.md b/docs/InlineResponse2002ProcessingInformation.md deleted file mode 100644 index 6bacbb65..00000000 --- a/docs/InlineResponse2002ProcessingInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2002ProcessingInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002ProcessorInformation.md b/docs/InlineResponse2002ProcessorInformation.md deleted file mode 100644 index f4dcb02f..00000000 --- a/docs/InlineResponse2002ProcessorInformation.md +++ /dev/null @@ -1,13 +0,0 @@ -# InlineResponse2002ProcessorInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**approval_code** | **str** | Authorization code. Returned only when the processor returns this value. | [optional] -**card_verification** | [**InlineResponse2002ProcessorInformationCardVerification**](InlineResponse2002ProcessorInformationCardVerification.md) | | [optional] -**avs** | [**InlineResponse2002ProcessorInformationAvs**](InlineResponse2002ProcessorInformationAvs.md) | | [optional] -**transaction_id** | **str** | Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002ProcessorInformationAvs.md b/docs/InlineResponse2002ProcessorInformationAvs.md deleted file mode 100644 index d625d2e1..00000000 --- a/docs/InlineResponse2002ProcessorInformationAvs.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2002ProcessorInformationAvs - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | AVS result code. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2002ProcessorInformationCardVerification.md b/docs/InlineResponse2002ProcessorInformationCardVerification.md deleted file mode 100644 index 0352ffa0..00000000 --- a/docs/InlineResponse2002ProcessorInformationCardVerification.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2002ProcessorInformationCardVerification - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result_code** | **str** | CVN result code. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2003.md b/docs/InlineResponse2003.md deleted file mode 100644 index 1977503b..00000000 --- a/docs/InlineResponse2003.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse2003 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse201EmbeddedCaptureLinks**](InlineResponse201EmbeddedCaptureLinks.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**processor_information** | [**InlineResponse2011ProcessorInformation**](InlineResponse2011ProcessorInformation.md) | | [optional] -**reversal_amount_details** | [**InlineResponse2011ReversalAmountDetails**](InlineResponse2011ReversalAmountDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2004.md b/docs/InlineResponse2004.md deleted file mode 100644 index 2ed5bac1..00000000 --- a/docs/InlineResponse2004.md +++ /dev/null @@ -1,21 +0,0 @@ -# InlineResponse2004 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse2012Links**](InlineResponse2012Links.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**processing_information** | [**InlineResponse2004ProcessingInformation**](InlineResponse2004ProcessingInformation.md) | | [optional] -**processor_information** | [**InlineResponse2012ProcessorInformation**](InlineResponse2012ProcessorInformation.md) | | [optional] -**order_information** | [**InlineResponse2004OrderInformation**](InlineResponse2004OrderInformation.md) | | [optional] -**buyer_information** | [**V2paymentsidcapturesBuyerInformation**](V2paymentsidcapturesBuyerInformation.md) | | [optional] -**merchant_information** | [**InlineResponse2002MerchantInformation**](InlineResponse2002MerchantInformation.md) | | [optional] -**device_information** | [**InlineResponse2004DeviceInformation**](InlineResponse2004DeviceInformation.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2004DeviceInformation.md b/docs/InlineResponse2004DeviceInformation.md deleted file mode 100644 index b334c1bc..00000000 --- a/docs/InlineResponse2004DeviceInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2004DeviceInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ip_address** | **str** | IP address of the customer. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2004OrderInformation.md b/docs/InlineResponse2004OrderInformation.md deleted file mode 100644 index e43c43f8..00000000 --- a/docs/InlineResponse2004OrderInformation.md +++ /dev/null @@ -1,15 +0,0 @@ -# InlineResponse2004OrderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount_details** | [**InlineResponse2004OrderInformationAmountDetails**](InlineResponse2004OrderInformationAmountDetails.md) | | [optional] -**bill_to** | [**InlineResponse2002OrderInformationBillTo**](InlineResponse2002OrderInformationBillTo.md) | | [optional] -**ship_to** | [**InlineResponse2004OrderInformationShipTo**](InlineResponse2004OrderInformationShipTo.md) | | [optional] -**line_items** | [**list[InlineResponse2002OrderInformationLineItems]**](InlineResponse2002OrderInformationLineItems.md) | | [optional] -**invoice_details** | [**InlineResponse2004OrderInformationInvoiceDetails**](InlineResponse2004OrderInformationInvoiceDetails.md) | | [optional] -**shipping_details** | [**V2paymentsidcapturesOrderInformationShippingDetails**](V2paymentsidcapturesOrderInformationShippingDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2004OrderInformationAmountDetails.md b/docs/InlineResponse2004OrderInformationAmountDetails.md deleted file mode 100644 index aea2f374..00000000 --- a/docs/InlineResponse2004OrderInformationAmountDetails.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse2004OrderInformationAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] -**discount_amount** | **str** | Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**duty_amount** | **str** | Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_amount** | **str** | Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**national_tax_included** | **str** | Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**freight_amount** | **str** | Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_details** | [**list[V2paymentsOrderInformationAmountDetailsTaxDetails]**](V2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2004OrderInformationInvoiceDetails.md b/docs/InlineResponse2004OrderInformationInvoiceDetails.md deleted file mode 100644 index 5011c6de..00000000 --- a/docs/InlineResponse2004OrderInformationInvoiceDetails.md +++ /dev/null @@ -1,16 +0,0 @@ -# InlineResponse2004OrderInformationInvoiceDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **str** | Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**purchase_order_date** | **str** | Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**taxable** | **bool** | Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**vat_invoice_reference_number** | **str** | VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**commodity_code** | **str** | International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**transaction_advice_addendum** | [**list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]**](V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md) | | [optional] -**level3_transmission_status** | **bool** | Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2004OrderInformationShipTo.md b/docs/InlineResponse2004OrderInformationShipTo.md deleted file mode 100644 index 9abe4e3b..00000000 --- a/docs/InlineResponse2004OrderInformationShipTo.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2004OrderInformationShipTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**administrative_area** | **str** | State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] -**postal_code** | **str** | Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 | [optional] -**country** | **str** | Country of the shipping address. Use the two character ISO Standard Country Codes. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2004ProcessingInformation.md b/docs/InlineResponse2004ProcessingInformation.md deleted file mode 100644 index 5ad5b6e8..00000000 --- a/docs/InlineResponse2004ProcessingInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2004ProcessingInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] -**authorization_options** | [**InlineResponse2004ProcessingInformationAuthorizationOptions**](InlineResponse2004ProcessingInformationAuthorizationOptions.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2004ProcessingInformationAuthorizationOptions.md b/docs/InlineResponse2004ProcessingInformationAuthorizationOptions.md deleted file mode 100644 index 90c9241b..00000000 --- a/docs/InlineResponse2004ProcessingInformationAuthorizationOptions.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2004ProcessingInformationAuthorizationOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**verbal_auth_code** | **str** | Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2005.md b/docs/InlineResponse2005.md deleted file mode 100644 index 0d86d60a..00000000 --- a/docs/InlineResponse2005.md +++ /dev/null @@ -1,16 +0,0 @@ -# InlineResponse2005 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse2013Links**](InlineResponse2013Links.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**refund_amount_details** | [**InlineResponse2013RefundAmountDetails**](InlineResponse2013RefundAmountDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2006.md b/docs/InlineResponse2006.md deleted file mode 100644 index e37c5c6e..00000000 --- a/docs/InlineResponse2006.md +++ /dev/null @@ -1,16 +0,0 @@ -# InlineResponse2006 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse2013Links**](InlineResponse2013Links.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**credit_amount_details** | [**InlineResponse2014CreditAmountDetails**](InlineResponse2014CreditAmountDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md deleted file mode 100644 index 002bfe96..00000000 --- a/docs/InlineResponse2007.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse2007 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InstrumentidentifiersLinks**](InstrumentidentifiersLinks.md) | | [optional] -**id** | **str** | Unique identification number assigned by CyberSource to the submitted request. | [optional] -**object** | **str** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional] -**state** | **str** | Current state of the token. | [optional] -**card** | [**InstrumentidentifiersCard**](InstrumentidentifiersCard.md) | | [optional] -**bank_account** | [**InstrumentidentifiersBankAccount**](InstrumentidentifiersBankAccount.md) | | [optional] -**processing_information** | [**InstrumentidentifiersProcessingInformation**](InstrumentidentifiersProcessingInformation.md) | | [optional] -**metadata** | [**InstrumentidentifiersMetadata**](InstrumentidentifiersMetadata.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md deleted file mode 100644 index 97e83567..00000000 --- a/docs/InlineResponse2008.md +++ /dev/null @@ -1,16 +0,0 @@ -# InlineResponse2008 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse2008Links**](InlineResponse2008Links.md) | | [optional] -**object** | **str** | Shows the response is a collection of objects. | [optional] -**offset** | **str** | The offset parameter supplied in the request. | [optional] -**limit** | **str** | The limit parameter supplied in the request. | [optional] -**count** | **str** | The number of Payment Instruments returned in the array. | [optional] -**total** | **str** | The total number of Payment Instruments associated with the Instrument Identifier in the zero-based dataset. | [optional] -**embedded** | **object** | Array of Payment Instruments returned for the supplied Instrument Identifier. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2008Links.md b/docs/InlineResponse2008Links.md deleted file mode 100644 index 3b369932..00000000 --- a/docs/InlineResponse2008Links.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse2008Links - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**InlineResponse2008LinksSelf**](InlineResponse2008LinksSelf.md) | | [optional] -**first** | [**InlineResponse2008LinksFirst**](InlineResponse2008LinksFirst.md) | | [optional] -**prev** | [**InlineResponse2008LinksPrev**](InlineResponse2008LinksPrev.md) | | [optional] -**next** | [**InlineResponse2008LinksNext**](InlineResponse2008LinksNext.md) | | [optional] -**last** | [**InlineResponse2008LinksLast**](InlineResponse2008LinksLast.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2008LinksFirst.md b/docs/InlineResponse2008LinksFirst.md deleted file mode 100644 index 2697bd56..00000000 --- a/docs/InlineResponse2008LinksFirst.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2008LinksFirst - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | A link to the collection starting at offset zero for the supplied limit. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2008LinksLast.md b/docs/InlineResponse2008LinksLast.md deleted file mode 100644 index 8aaabc28..00000000 --- a/docs/InlineResponse2008LinksLast.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2008LinksLast - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | A link to the last collection containing the remaining objects. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2008LinksNext.md b/docs/InlineResponse2008LinksNext.md deleted file mode 100644 index 4dc94947..00000000 --- a/docs/InlineResponse2008LinksNext.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2008LinksNext - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | A link to the next collection starting at the supplied offset plus the supplied limit. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2008LinksPrev.md b/docs/InlineResponse2008LinksPrev.md deleted file mode 100644 index e1d6f6cf..00000000 --- a/docs/InlineResponse2008LinksPrev.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2008LinksPrev - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2008LinksSelf.md b/docs/InlineResponse2008LinksSelf.md deleted file mode 100644 index 8a08b7e9..00000000 --- a/docs/InlineResponse2008LinksSelf.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2008LinksSelf - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | A link to the current requested collection. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse200Der.md b/docs/InlineResponse200Der.md deleted file mode 100644 index ad6eba35..00000000 --- a/docs/InlineResponse200Der.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse200Der - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**format** | **str** | Specifies the format of the public key; currently X.509. | [optional] -**algorithm** | **str** | Algorithm used to encrypt the public key. | [optional] -**public_key** | **str** | Base64 encoded public key value. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse200Jwk.md b/docs/InlineResponse200Jwk.md deleted file mode 100644 index bc78e6f5..00000000 --- a/docs/InlineResponse200Jwk.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse200Jwk - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kty** | **str** | Algorithm used to encrypt the public key. | [optional] -**use** | **str** | Defines whether to use the key for encryption (enc) or verifying a signature (sig). Always returned as enc. | [optional] -**kid** | **str** | The key ID in JWK format. | [optional] -**n** | **str** | JWK RSA Modulus | [optional] -**e** | **str** | JWK RSA Exponent | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201.md b/docs/InlineResponse201.md deleted file mode 100644 index ea4946ad..00000000 --- a/docs/InlineResponse201.md +++ /dev/null @@ -1,21 +0,0 @@ -# InlineResponse201 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse201Links**](InlineResponse201Links.md) | | [optional] -**embedded** | [**InlineResponse201Embedded**](InlineResponse201Embedded.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] -**error_information** | [**InlineResponse201ErrorInformation**](InlineResponse201ErrorInformation.md) | | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**processor_information** | [**InlineResponse201ProcessorInformation**](InlineResponse201ProcessorInformation.md) | | [optional] -**payment_information** | [**InlineResponse201PaymentInformation**](InlineResponse201PaymentInformation.md) | | [optional] -**order_information** | [**InlineResponse201OrderInformation**](InlineResponse201OrderInformation.md) | | [optional] -**point_of_sale_information** | [**InlineResponse201PointOfSaleInformation**](InlineResponse201PointOfSaleInformation.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2011.md b/docs/InlineResponse2011.md deleted file mode 100644 index 2a54ec78..00000000 --- a/docs/InlineResponse2011.md +++ /dev/null @@ -1,19 +0,0 @@ -# InlineResponse2011 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse201EmbeddedCaptureLinks**](InlineResponse201EmbeddedCaptureLinks.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**reversal_amount_details** | [**InlineResponse2011ReversalAmountDetails**](InlineResponse2011ReversalAmountDetails.md) | | [optional] -**processor_information** | [**InlineResponse2011ProcessorInformation**](InlineResponse2011ProcessorInformation.md) | | [optional] -**authorization_information** | [**InlineResponse2011AuthorizationInformation**](InlineResponse2011AuthorizationInformation.md) | | [optional] -**point_of_sale_information** | [**V2paymentsidreversalsPointOfSaleInformation**](V2paymentsidreversalsPointOfSaleInformation.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2011AuthorizationInformation.md b/docs/InlineResponse2011AuthorizationInformation.md deleted file mode 100644 index d9658a41..00000000 --- a/docs/InlineResponse2011AuthorizationInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2011AuthorizationInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**approval_code** | **str** | The authorization code returned by the processor. | [optional] -**reason_code** | **str** | Reply flag for the original transaction. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2011ProcessorInformation.md b/docs/InlineResponse2011ProcessorInformation.md deleted file mode 100644 index 32364fae..00000000 --- a/docs/InlineResponse2011ProcessorInformation.md +++ /dev/null @@ -1,15 +0,0 @@ -# InlineResponse2011ProcessorInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **str** | Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 | [optional] -**response_code** | **str** | For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. | [optional] -**response_category_code** | **str** | Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 | [optional] -**forwarded_acquirer_code** | **str** | Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. | [optional] -**master_card_service_code** | **str** | Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service | [optional] -**master_card_service_reply_code** | **str** | Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2011ReversalAmountDetails.md b/docs/InlineResponse2011ReversalAmountDetails.md deleted file mode 100644 index c7f1dabf..00000000 --- a/docs/InlineResponse2011ReversalAmountDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2011ReversalAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reversed_amount** | **str** | Total reversed amount. | [optional] -**original_transaction_amount** | **str** | Amount of the original transaction. | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2012.md b/docs/InlineResponse2012.md deleted file mode 100644 index ddfbbcbd..00000000 --- a/docs/InlineResponse2012.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse2012 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse2012Links**](InlineResponse2012Links.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**processor_information** | [**InlineResponse2012ProcessorInformation**](InlineResponse2012ProcessorInformation.md) | | [optional] -**order_information** | [**InlineResponse2012OrderInformation**](InlineResponse2012OrderInformation.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2012Links.md b/docs/InlineResponse2012Links.md deleted file mode 100644 index 7eb666a6..00000000 --- a/docs/InlineResponse2012Links.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2012Links - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**InlineResponse201LinksSelf**](InlineResponse201LinksSelf.md) | | [optional] -**void** | [**InlineResponse201LinksSelf**](InlineResponse201LinksSelf.md) | | [optional] -**refund** | [**InlineResponse201LinksSelf**](InlineResponse201LinksSelf.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2012OrderInformation.md b/docs/InlineResponse2012OrderInformation.md deleted file mode 100644 index 5cc28936..00000000 --- a/docs/InlineResponse2012OrderInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2012OrderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount_details** | [**InlineResponse2012OrderInformationAmountDetails**](InlineResponse2012OrderInformationAmountDetails.md) | | [optional] -**invoice_details** | [**InlineResponse201OrderInformationInvoiceDetails**](InlineResponse201OrderInformationInvoiceDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2012OrderInformationAmountDetails.md b/docs/InlineResponse2012OrderInformationAmountDetails.md deleted file mode 100644 index 80d4b2e4..00000000 --- a/docs/InlineResponse2012OrderInformationAmountDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2012OrderInformationAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_amount** | **str** | Amount you requested for the capture. | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2012ProcessorInformation.md b/docs/InlineResponse2012ProcessorInformation.md deleted file mode 100644 index 103efe4f..00000000 --- a/docs/InlineResponse2012ProcessorInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2012ProcessorInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **str** | Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2013.md b/docs/InlineResponse2013.md deleted file mode 100644 index fb11402b..00000000 --- a/docs/InlineResponse2013.md +++ /dev/null @@ -1,18 +0,0 @@ -# InlineResponse2013 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse2013Links**](InlineResponse2013Links.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**refund_amount_details** | [**InlineResponse2013RefundAmountDetails**](InlineResponse2013RefundAmountDetails.md) | | [optional] -**processor_information** | [**InlineResponse2013ProcessorInformation**](InlineResponse2013ProcessorInformation.md) | | [optional] -**order_information** | [**InlineResponse2013OrderInformation**](InlineResponse2013OrderInformation.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2013Links.md b/docs/InlineResponse2013Links.md deleted file mode 100644 index 4dfca226..00000000 --- a/docs/InlineResponse2013Links.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2013Links - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**InlineResponse201LinksSelf**](InlineResponse201LinksSelf.md) | | [optional] -**void** | [**InlineResponse201LinksSelf**](InlineResponse201LinksSelf.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2013OrderInformation.md b/docs/InlineResponse2013OrderInformation.md deleted file mode 100644 index a64501c4..00000000 --- a/docs/InlineResponse2013OrderInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2013OrderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invoice_details** | [**InlineResponse201OrderInformationInvoiceDetails**](InlineResponse201OrderInformationInvoiceDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2013ProcessorInformation.md b/docs/InlineResponse2013ProcessorInformation.md deleted file mode 100644 index 2b0eb8e5..00000000 --- a/docs/InlineResponse2013ProcessorInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2013ProcessorInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **str** | Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 | [optional] -**forwarded_acquirer_code** | **str** | Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2013RefundAmountDetails.md b/docs/InlineResponse2013RefundAmountDetails.md deleted file mode 100644 index 38977af5..00000000 --- a/docs/InlineResponse2013RefundAmountDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2013RefundAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**refund_amount** | **str** | Total amount of the refund. | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2014.md b/docs/InlineResponse2014.md deleted file mode 100644 index 7d772baf..00000000 --- a/docs/InlineResponse2014.md +++ /dev/null @@ -1,18 +0,0 @@ -# InlineResponse2014 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse2013Links**](InlineResponse2013Links.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**credit_amount_details** | [**InlineResponse2014CreditAmountDetails**](InlineResponse2014CreditAmountDetails.md) | | [optional] -**processor_information** | [**InlineResponse2013ProcessorInformation**](InlineResponse2013ProcessorInformation.md) | | [optional] -**order_information** | [**InlineResponse2013OrderInformation**](InlineResponse2013OrderInformation.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2014CreditAmountDetails.md b/docs/InlineResponse2014CreditAmountDetails.md deleted file mode 100644 index 3cab5a31..00000000 --- a/docs/InlineResponse2014CreditAmountDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2014CreditAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**credit_amount** | **str** | Total amount of the credit. | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2015.md b/docs/InlineResponse2015.md deleted file mode 100644 index b7504917..00000000 --- a/docs/InlineResponse2015.md +++ /dev/null @@ -1,15 +0,0 @@ -# InlineResponse2015 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse201EmbeddedCaptureLinks**](InlineResponse201EmbeddedCaptureLinks.md) | | [optional] -**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**void_amount_details** | [**InlineResponse2015VoidAmountDetails**](InlineResponse2015VoidAmountDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2015VoidAmountDetails.md b/docs/InlineResponse2015VoidAmountDetails.md deleted file mode 100644 index b3894461..00000000 --- a/docs/InlineResponse2015VoidAmountDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2015VoidAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**void_amount** | **str** | Total amount of the void. | [optional] -**original_transaction_amount** | **str** | Amount of the original transaction. | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse2016.md b/docs/InlineResponse2016.md deleted file mode 100644 index 0e71794a..00000000 --- a/docs/InlineResponse2016.md +++ /dev/null @@ -1,21 +0,0 @@ -# InlineResponse2016 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InstrumentidentifiersLinks**](InstrumentidentifiersLinks.md) | | [optional] -**id** | **str** | Unique identification number assigned by CyberSource to the submitted request. | [optional] -**object** | **str** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional] -**state** | **str** | Current state of the token. | [optional] -**bank_account** | [**PaymentinstrumentsBankAccount**](PaymentinstrumentsBankAccount.md) | | [optional] -**card** | [**PaymentinstrumentsCard**](PaymentinstrumentsCard.md) | | [optional] -**buyer_information** | [**PaymentinstrumentsBuyerInformation**](PaymentinstrumentsBuyerInformation.md) | | [optional] -**bill_to** | [**PaymentinstrumentsBillTo**](PaymentinstrumentsBillTo.md) | | [optional] -**processing_information** | [**PaymentinstrumentsProcessingInformation**](PaymentinstrumentsProcessingInformation.md) | | [optional] -**merchant_information** | [**PaymentinstrumentsMerchantInformation**](PaymentinstrumentsMerchantInformation.md) | | [optional] -**meta_data** | [**InstrumentidentifiersMetadata**](InstrumentidentifiersMetadata.md) | | [optional] -**instrument_identifier** | [**PaymentinstrumentsInstrumentIdentifier**](PaymentinstrumentsInstrumentIdentifier.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ClientReferenceInformation.md b/docs/InlineResponse201ClientReferenceInformation.md deleted file mode 100644 index 8840a354..00000000 --- a/docs/InlineResponse201ClientReferenceInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse201ClientReferenceInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201Embedded.md b/docs/InlineResponse201Embedded.md deleted file mode 100644 index 1f732860..00000000 --- a/docs/InlineResponse201Embedded.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse201Embedded - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capture** | [**InlineResponse201EmbeddedCapture**](InlineResponse201EmbeddedCapture.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201EmbeddedCapture.md b/docs/InlineResponse201EmbeddedCapture.md deleted file mode 100644 index ff2c6837..00000000 --- a/docs/InlineResponse201EmbeddedCapture.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse201EmbeddedCapture - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **str** | The status of the submitted transaction. | [optional] -**links** | [**InlineResponse201EmbeddedCaptureLinks**](InlineResponse201EmbeddedCaptureLinks.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201EmbeddedCaptureLinks.md b/docs/InlineResponse201EmbeddedCaptureLinks.md deleted file mode 100644 index a135c3ab..00000000 --- a/docs/InlineResponse201EmbeddedCaptureLinks.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse201EmbeddedCaptureLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**InlineResponse201LinksSelf**](InlineResponse201LinksSelf.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ErrorInformation.md b/docs/InlineResponse201ErrorInformation.md deleted file mode 100644 index eb5daa9a..00000000 --- a/docs/InlineResponse201ErrorInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse201ErrorInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reason** | **str** | The reason of the status. | [optional] -**message** | **str** | The detail message related to the status and reason listed above. | [optional] -**details** | [**list[InlineResponse201ErrorInformationDetails]**](InlineResponse201ErrorInformationDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ErrorInformationDetails.md b/docs/InlineResponse201ErrorInformationDetails.md deleted file mode 100644 index 33da3d7b..00000000 --- a/docs/InlineResponse201ErrorInformationDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse201ErrorInformationDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**field** | **str** | This is the flattened JSON object field name/path that is either missing or invalid. | [optional] -**reason** | **str** | Possible reasons for the error. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201Links.md b/docs/InlineResponse201Links.md deleted file mode 100644 index f14f095e..00000000 --- a/docs/InlineResponse201Links.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse201Links - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**InlineResponse201LinksSelf**](InlineResponse201LinksSelf.md) | | [optional] -**reversal** | [**InlineResponse201LinksSelf**](InlineResponse201LinksSelf.md) | | [optional] -**capture** | [**InlineResponse201LinksSelf**](InlineResponse201LinksSelf.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201LinksSelf.md b/docs/InlineResponse201LinksSelf.md deleted file mode 100644 index 2930c352..00000000 --- a/docs/InlineResponse201LinksSelf.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse201LinksSelf - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | URL | [optional] -**method** | **str** | HTTP method applied to above URL | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201OrderInformation.md b/docs/InlineResponse201OrderInformation.md deleted file mode 100644 index 8b884121..00000000 --- a/docs/InlineResponse201OrderInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse201OrderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount_details** | [**InlineResponse201OrderInformationAmountDetails**](InlineResponse201OrderInformationAmountDetails.md) | | [optional] -**invoice_details** | [**InlineResponse201OrderInformationInvoiceDetails**](InlineResponse201OrderInformationInvoiceDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201OrderInformationAmountDetails.md b/docs/InlineResponse201OrderInformationAmountDetails.md deleted file mode 100644 index 78596d47..00000000 --- a/docs/InlineResponse201OrderInformationAmountDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse201OrderInformationAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_amount** | **str** | Amount you requested for the payment or capture. This value is returned for partial authorizations. | [optional] -**authorized_amount** | **str** | Amount that was authorized. | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201OrderInformationInvoiceDetails.md b/docs/InlineResponse201OrderInformationInvoiceDetails.md deleted file mode 100644 index d4aa3dca..00000000 --- a/docs/InlineResponse201OrderInformationInvoiceDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse201OrderInformationInvoiceDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**level3_transmission_status** | **bool** | Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201PaymentInformation.md b/docs/InlineResponse201PaymentInformation.md deleted file mode 100644 index 65259da4..00000000 --- a/docs/InlineResponse201PaymentInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse201PaymentInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**card** | [**InlineResponse201PaymentInformationCard**](InlineResponse201PaymentInformationCard.md) | | [optional] -**tokenized_card** | [**InlineResponse201PaymentInformationTokenizedCard**](InlineResponse201PaymentInformationTokenizedCard.md) | | [optional] -**account_features** | [**InlineResponse201PaymentInformationAccountFeatures**](InlineResponse201PaymentInformationAccountFeatures.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201PaymentInformationAccountFeatures.md b/docs/InlineResponse201PaymentInformationAccountFeatures.md deleted file mode 100644 index f2895caf..00000000 --- a/docs/InlineResponse201PaymentInformationAccountFeatures.md +++ /dev/null @@ -1,26 +0,0 @@ -# InlineResponse201PaymentInformationAccountFeatures - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_type** | **str** | Type of account. This value is returned only if you requested a balance inquiry. Possible values: - **00**: Not applicable or not specified - **10**: Savings account - **20**: Checking account - **30**: Credit card account - **40**: Universal account | [optional] -**account_status** | **str** | Possible values: - **N**: Nonregulated - **R**: Regulated `Note` This field is returned only for CyberSource through VisaNet. | [optional] -**balance_amount** | **str** | Remaining balance on the account. | [optional] -**balance_amount_type** | **str** | Type of amount. This value is returned only if you requested a balance inquiry. The issuer determines the value that is returned. Possible values for deposit accounts: - **01**: Current ledger (posted) balance. - **02**: Current available balance, which is typically the ledger balance less outstanding authorizations. Some depository institutions also include pending deposits and the credit or overdraft line associated with the account. Possible values for credit card accounts: - **01**: Credit amount remaining for customer (open to buy). - **02**: Credit limit. | [optional] -**currency** | **str** | Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. | [optional] -**balance_sign** | **str** | Sign for the remaining balance on the account. Returned only when the processor returns this value. Possible values: | [optional] -**affluence_indicator** | **str** | **Chase Paymentech Solutions** Indicates whether a customer has high credit limits. This information enables you to market high cost items to these customers and to understand the kinds of cards that high income customers are using. This field is supported for Visa, Mastercard, Discover, and Diners Club. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown **Litle** Flag that indicates that a Visa cardholder or Mastercard cardholder is in one of the affluent categories. Possible values: - **AFFLUENT**: High income customer with high spending pattern (>100k USD annual income and >40k USD annual card usage). - **MASS AFFLUENT**: High income customer (>100k USD annual income). **Processor specific maximum length**: - Chase Paymentech Solutions: 1 - Litle: 13 | [optional] -**category** | **str** | **CyberSource through VisaNet** Visa product ID. **GPN** Visa or Mastercard product ID. **Litle** Type of card used in the transaction. The only possible value is: - PREPAID: Prepaid Card **RBS WorldPay Atlanta** Type of card used in the transaction. Possible values: - **B**: Business Card - **O**: Noncommercial Card - **R**: Corporate Card - **S**: Purchase Card - **Blank**: Purchase card not supported **Maximum length for processors**: - CyberSource through VisaNet: 3 - GPN: 3 - Litle: 7 - RBS WorldPay Atlanta: 1 | [optional] -**commercial** | **str** | Indicates whether the card is a commercial card, which enables you to include Level II data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] -**group** | **str** | Type of commercial card. This field is supported only for CyberSource through VisaNet. Possible values: - **B**: Business card - **R**: Corporate card - **S**: Purchasing card - **0**: Noncommercial card | [optional] -**health_care** | **str** | Indicates whether the card is a healthcare card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] -**payroll** | **str** | Indicates whether the card is a payroll card. This field is supported for Visa, Discover, Diners Club, and JCB on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] -**level3_eligible** | **str** | Indicates whether the card is eligible for Level III interchange fees, which enables you to include Level III data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] -**pinless_debit** | **str** | Indicates whether the card is a PINless debit card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] -**signature_debit** | **str** | Indicates whether the card is a signature debit card. This information enables you to alter the way an order is processed. For example, you might not want to reauthorize a transaction for a signature debit card, or you might want to perform reversals promptly for a signature debit card. This field is supported for Visa, Mastercard, and Maestro (International) on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] -**prepaid** | **str** | Indicates whether the card is a prepaid card. This information enables you to determine when a gift card or prepaid card is presented for use when establishing a new recurring, installment, or deferred billing relationship. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] -**regulated** | **str** | Indicates whether the card is regulated according to the Durbin Amendment. If the card is regulated, the card issuer is subject to price caps and interchange rules. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes (assets greater than 10B USD) - **N**: No (assets less than 10B USD) - **X**: Not applicable / Unknown | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201PaymentInformationCard.md b/docs/InlineResponse201PaymentInformationCard.md deleted file mode 100644 index acdb8e3c..00000000 --- a/docs/InlineResponse201PaymentInformationCard.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse201PaymentInformationCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**suffix** | **str** | Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201PaymentInformationTokenizedCard.md b/docs/InlineResponse201PaymentInformationTokenizedCard.md deleted file mode 100644 index f91b8c23..00000000 --- a/docs/InlineResponse201PaymentInformationTokenizedCard.md +++ /dev/null @@ -1,16 +0,0 @@ -# InlineResponse201PaymentInformationTokenizedCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**prefix** | **str** | First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. | [optional] -**suffix** | **str** | Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. | [optional] -**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] -**assurance_level** | **str** | Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. | [optional] -**expiration_month** | **str** | Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. | [optional] -**expiration_year** | **str** | Four-digit year in which the payment network token expires. `Format: YYYY`. | [optional] -**requestor_id** | **str** | Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201PointOfSaleInformation.md b/docs/InlineResponse201PointOfSaleInformation.md deleted file mode 100644 index ec1a8e22..00000000 --- a/docs/InlineResponse201PointOfSaleInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse201PointOfSaleInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emv** | [**InlineResponse201PointOfSaleInformationEmv**](InlineResponse201PointOfSaleInformationEmv.md) | | [optional] -**amex_capn_data** | **str** | Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201PointOfSaleInformationEmv.md b/docs/InlineResponse201PointOfSaleInformationEmv.md deleted file mode 100644 index ed874de0..00000000 --- a/docs/InlineResponse201PointOfSaleInformationEmv.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse201PointOfSaleInformationEmv - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | **str** | EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ProcessorInformation.md b/docs/InlineResponse201ProcessorInformation.md deleted file mode 100644 index 0698972c..00000000 --- a/docs/InlineResponse201ProcessorInformation.md +++ /dev/null @@ -1,34 +0,0 @@ -# InlineResponse201ProcessorInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**approval_code** | **str** | Authorization code. Returned only when the processor returns this value. | [optional] -**transaction_id** | **str** | Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. | [optional] -**network_transaction_id** | **str** | TBD | [optional] -**provider_transaction_id** | **str** | TBD | [optional] -**response_code** | **str** | For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. | [optional] -**response_code_source** | **str** | Used by Visa only and contains the response source/reason code that identifies the source of the response decision. | [optional] -**response_details** | **str** | This field might contain information about a decline. This field is supported only for **CyberSource through VisaNet**. | [optional] -**response_category_code** | **str** | Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 | [optional] -**forwarded_acquirer_code** | **str** | Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. | [optional] -**avs** | [**InlineResponse201ProcessorInformationAvs**](InlineResponse201ProcessorInformationAvs.md) | | [optional] -**card_verification** | [**InlineResponse201ProcessorInformationCardVerification**](InlineResponse201ProcessorInformationCardVerification.md) | | [optional] -**merchant_advice** | [**InlineResponse201ProcessorInformationMerchantAdvice**](InlineResponse201ProcessorInformationMerchantAdvice.md) | | [optional] -**electronic_verification_results** | [**InlineResponse201ProcessorInformationElectronicVerificationResults**](InlineResponse201ProcessorInformationElectronicVerificationResults.md) | | [optional] -**customer** | [**InlineResponse201ProcessorInformationCustomer**](InlineResponse201ProcessorInformationCustomer.md) | | [optional] -**consumer_authentication_response** | [**InlineResponse201ProcessorInformationConsumerAuthenticationResponse**](InlineResponse201ProcessorInformationConsumerAuthenticationResponse.md) | | [optional] -**issuer** | [**InlineResponse201ProcessorInformationIssuer**](InlineResponse201ProcessorInformationIssuer.md) | | [optional] -**system_trace_audit_number** | **str** | This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. **American Express Direct** System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. **CyberSource through VisaNet** System trace number that must be printed on the customer’s receipt. | [optional] -**payment_account_reference_number** | **str** | Visa-generated reference number that identifies a card-present transaction for which youprovided one of the following: - Visa primary account number (PAN) - Visa-generated token for a PAN This reference number serves as a link to the cardholder account and to all transactions for that account. | [optional] -**transaction_integrity_code** | **str** | Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - **A1**: EMV or token in a secure, trusted environment - **B1**: EMV or chip equivalent - **C1**: Magnetic stripe - **E1**: Key entered - **U0**: Unclassified For card-not-present transactions, possible values: - **A2**: Digital transactions - **B2**: Authenticated checkout - **C2**: Transaction validation - **D2**: Enhanced data - **E2**: Generic messaging - **U0**: Unclassified For information about these values, contact Mastercard or your acquirer. | [optional] -**amex_verbal_auth_reference_number** | **str** | Referral response number for a verbal authorization with FDMS Nashville when using an American Express card. Give this number to American Express when you call them for the verbal authorization. | [optional] -**sales_slip_number** | **float** | Transaction identifier that CyberSource generates. You have the option of printing the sales slip number on the receipt. This field is supported only for **JCN Gateway**. | [optional] -**master_card_service_code** | **str** | Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service | [optional] -**master_card_service_reply_code** | **str** | Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. | [optional] -**master_card_authentication_type** | **str** | Type of authentication for which the transaction qualifies as determined by the Mastercard authentication service, which confirms the identity of the cardholder. Mastercard provides this value to CyberSource. Possible values: - **1**: Transaction qualifies for Mastercard authentication type 1. - **2**: Transaction qualifies for Mastercard authentication type 2. | [optional] -**name** | **str** | Name of the Processor. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ProcessorInformationAvs.md b/docs/InlineResponse201ProcessorInformationAvs.md deleted file mode 100644 index a357ed3e..00000000 --- a/docs/InlineResponse201ProcessorInformationAvs.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse201ProcessorInformationAvs - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | AVS result code. | [optional] -**code_raw** | **str** | AVS result code sent directly from the processor. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of AVS. Use for debugging purposes only. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ProcessorInformationCardVerification.md b/docs/InlineResponse201ProcessorInformationCardVerification.md deleted file mode 100644 index d3ea3b4d..00000000 --- a/docs/InlineResponse201ProcessorInformationCardVerification.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse201ProcessorInformationCardVerification - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result_code** | **str** | CVN result code. | [optional] -**result_code_raw** | **str** | CVN result code sent directly from the processor. Returned only when the processor returns this value. `Important` Do not use this field to evaluate the result of card verification. Use for debugging purposes only. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ProcessorInformationConsumerAuthenticationResponse.md b/docs/InlineResponse201ProcessorInformationConsumerAuthenticationResponse.md deleted file mode 100644 index 045c364d..00000000 --- a/docs/InlineResponse201ProcessorInformationConsumerAuthenticationResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse201ProcessorInformationConsumerAuthenticationResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | Mapped response code for Verified by Visa and American Express SafeKey: | [optional] -**code_raw** | **str** | Raw response code sent directly from the processor for Verified by Visa and American Express SafeKey: | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ProcessorInformationCustomer.md b/docs/InlineResponse201ProcessorInformationCustomer.md deleted file mode 100644 index 1f4320b3..00000000 --- a/docs/InlineResponse201ProcessorInformationCustomer.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse201ProcessorInformationCustomer - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**personal_id_result** | **str** | Personal identifier result. This field is supported only for Redecard in Brazil for CyberSource Latin American Processing. If you included _buyerInformation.personalIdentification[].ID_ in the request, this value indicates whether or not _buyerInformation.personalIdentification[].ID_ matched a value in a record on file. Returned only when the personal ID result is returned by the processor. Possible values: - **Y**: Match - **N**: No match - **K**: Not supported - **U**: Unknown - **Z**: No response returned | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ProcessorInformationElectronicVerificationResults.md b/docs/InlineResponse201ProcessorInformationElectronicVerificationResults.md deleted file mode 100644 index 64fd590d..00000000 --- a/docs/InlineResponse201ProcessorInformationElectronicVerificationResults.md +++ /dev/null @@ -1,21 +0,0 @@ -# InlineResponse201ProcessorInformationElectronicVerificationResults - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | Mapped Electronic Verification response code for the customer’s name. | [optional] -**code_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s last name | [optional] -**email** | **str** | Mapped Electronic Verification response code for the customer’s email address. | [optional] -**email_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s email address. | [optional] -**phone_number** | **str** | Mapped Electronic Verification response code for the customer’s phone number. | [optional] -**phone_number_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s phone number. | [optional] -**postal_code** | **str** | Mapped Electronic Verification response code for the customer’s postal code. | [optional] -**postal_code_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s postal code. | [optional] -**street** | **str** | Mapped Electronic Verification response code for the customer’s street address. | [optional] -**street_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s street address. | [optional] -**name** | **str** | TODO | [optional] -**name_raw** | **str** | TODO | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ProcessorInformationIssuer.md b/docs/InlineResponse201ProcessorInformationIssuer.md deleted file mode 100644 index ee42e1d6..00000000 --- a/docs/InlineResponse201ProcessorInformationIssuer.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse201ProcessorInformationIssuer - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**country** | **str** | Country in which the card was issued. This information enables you to determine whether the card was issued domestically or internationally. Use the two-character ISO Standard Country Codes. This field is supported for Visa, Mastercard, Discover, Diners Club, JCB, and Maestro (International) on Chase Paymentech Solutions. | [optional] -**discretionary_data** | **str** | Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse201ProcessorInformationMerchantAdvice.md b/docs/InlineResponse201ProcessorInformationMerchantAdvice.md deleted file mode 100644 index bdff3478..00000000 --- a/docs/InlineResponse201ProcessorInformationMerchantAdvice.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse201ProcessorInformationMerchantAdvice - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | Reason the recurring payment transaction was declined. For some processors, this field is used only for Mastercard. For other processors, this field is used for Visa and Mastercard. And for other processors, this field is not implemented. Possible values: - **00**: Response not provided. - **01**: New account information is available. Obtain the new information. - **02**: Try again later. - **03**: Do not try again. Obtain another type of payment from the customer. - **04**: Problem with a token or a partial shipment indicator. - **21**: Recurring payment cancellation service. - **99**: An unknown value was returned from the processor. | [optional] -**code_raw** | **str** | Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. For processor-specific information, see the auth_merchant_advice_code_raw field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse400.md b/docs/InlineResponse400.md index 8db63f44..b9d9dc52 100644 --- a/docs/InlineResponse400.md +++ b/docs/InlineResponse400.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reason** | **str** | The reason of the status. | [optional] -**message** | **str** | The detail message related to the status and reason listed above. | [optional] -**details** | [**list[InlineResponse201ErrorInformationDetails]**](InlineResponse201ErrorInformationDetails.md) | | [optional] +**type** | **str** | | [optional] +**message** | **str** | The detailed message related to the type stated above. | [optional] +**details** | [**Tmsv1instrumentidentifiersDetails**](Tmsv1instrumentidentifiersDetails.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse4001.md b/docs/InlineResponse4001.md deleted file mode 100644 index 8095f5c7..00000000 --- a/docs/InlineResponse4001.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse4001 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reason** | **str** | The reason of the status. | [optional] -**message** | **str** | The detail message related to the status and reason listed above. | [optional] -**details** | [**list[InlineResponse201ErrorInformationDetails]**](InlineResponse201ErrorInformationDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse4002.md b/docs/InlineResponse4002.md deleted file mode 100644 index 70f9876b..00000000 --- a/docs/InlineResponse4002.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse4002 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reason** | **str** | The reason of the status. | [optional] -**message** | **str** | The detail message related to the status and reason listed above. | [optional] -**details** | [**list[InlineResponse201ErrorInformationDetails]**](InlineResponse201ErrorInformationDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse4003.md b/docs/InlineResponse4003.md deleted file mode 100644 index eab08199..00000000 --- a/docs/InlineResponse4003.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse4003 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reason** | **str** | The reason of the status. | [optional] -**message** | **str** | The detail message related to the status and reason listed above. | [optional] -**details** | [**list[InlineResponse201ErrorInformationDetails]**](InlineResponse201ErrorInformationDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse4004.md b/docs/InlineResponse4004.md deleted file mode 100644 index ef4bc9de..00000000 --- a/docs/InlineResponse4004.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse4004 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reason** | **str** | The reason of the status. | [optional] -**message** | **str** | The detail message related to the status and reason listed above. | [optional] -**details** | [**list[InlineResponse201ErrorInformationDetails]**](InlineResponse201ErrorInformationDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse4005.md b/docs/InlineResponse4005.md deleted file mode 100644 index 44190681..00000000 --- a/docs/InlineResponse4005.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse4005 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reason** | **str** | The reason of the status. | [optional] -**message** | **str** | The detail message related to the status and reason listed above. Possible value is: - Your aggregator or acquirer is not accepting transactions from you at this time. - Your aggregator or acquirer is not accepting this transaction. - CyberSource declined the request because the credit card has expired. You might also receive this value if the expiration date you provided does not match the date the issuing bank has on file. - The bank declined the transaction. - The merchant reference number for this authorization request matches the merchant reference number of another authorization request that you sent within the past 15 minutes. Resend the request with a unique merchant reference number. - The credit card number did not pass CyberSource basic checks. - Data provided is not consistent with the request. For example, you requested a product with negative cost. - The request is missing a required field. | [optional] -**details** | [**list[InlineResponse201ErrorInformationDetails]**](InlineResponse201ErrorInformationDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse4006.md b/docs/InlineResponse4006.md deleted file mode 100644 index 0e263209..00000000 --- a/docs/InlineResponse4006.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse4006 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [optional] -**message** | **str** | The detailed message related to the type stated above. | [optional] -**details** | [**InstrumentidentifiersDetails**](InstrumentidentifiersDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse409.md b/docs/InlineResponse409.md deleted file mode 100644 index b38a1354..00000000 --- a/docs/InlineResponse409.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse409 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InlineResponse409Links**](InlineResponse409Links.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse409Links.md b/docs/InlineResponse409Links.md deleted file mode 100644 index b6f7d7aa..00000000 --- a/docs/InlineResponse409Links.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse409Links - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_instruments** | [**InlineResponse409LinksPaymentInstruments**](InlineResponse409LinksPaymentInstruments.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse409LinksPaymentInstruments.md b/docs/InlineResponse409LinksPaymentInstruments.md deleted file mode 100644 index 30416446..00000000 --- a/docs/InlineResponse409LinksPaymentInstruments.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse409LinksPaymentInstruments - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InlineResponse502.md b/docs/InlineResponse502.md deleted file mode 100644 index f9e9b0cf..00000000 --- a/docs/InlineResponse502.md +++ /dev/null @@ -1,13 +0,0 @@ -# InlineResponse502 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] -**reason** | **str** | The reason of the status. | [optional] -**message** | **str** | The detail message related to the status and reason listed above. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InstrumentIdentifierApi.md b/docs/InstrumentIdentifierApi.md index cb0b649f..f2263230 100644 --- a/docs/InstrumentIdentifierApi.md +++ b/docs/InstrumentIdentifierApi.md @@ -1,66 +1,16 @@ # CyberSource.InstrumentIdentifierApi -All URIs are relative to *https://api.cybersource.com* +All URIs are relative to *https://apitest.cybersource.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**instrumentidentifiers_post**](InstrumentIdentifierApi.md#instrumentidentifiers_post) | **POST** /instrumentidentifiers | Create an Instrument Identifier -[**instrumentidentifiers_token_id_delete**](InstrumentIdentifierApi.md#instrumentidentifiers_token_id_delete) | **DELETE** /instrumentidentifiers/{tokenId} | Delete an Instrument Identifier -[**instrumentidentifiers_token_id_get**](InstrumentIdentifierApi.md#instrumentidentifiers_token_id_get) | **GET** /instrumentidentifiers/{tokenId} | Retrieve an Instrument Identifier -[**instrumentidentifiers_token_id_patch**](InstrumentIdentifierApi.md#instrumentidentifiers_token_id_patch) | **PATCH** /instrumentidentifiers/{tokenId} | Update a Instrument Identifier -[**instrumentidentifiers_token_id_paymentinstruments_get**](InstrumentIdentifierApi.md#instrumentidentifiers_token_id_paymentinstruments_get) | **GET** /instrumentidentifiers/{tokenId}/paymentinstruments | Retrieve all Payment Instruments associated with an Instrument Identifier +[**tms_v1_instrumentidentifiers_token_id_delete**](InstrumentIdentifierApi.md#tms_v1_instrumentidentifiers_token_id_delete) | **DELETE** /tms/v1/instrumentidentifiers/{tokenId} | Delete an Instrument Identifier +[**tms_v1_instrumentidentifiers_token_id_get**](InstrumentIdentifierApi.md#tms_v1_instrumentidentifiers_token_id_get) | **GET** /tms/v1/instrumentidentifiers/{tokenId} | Retrieve an Instrument Identifier +[**tms_v1_instrumentidentifiers_token_id_patch**](InstrumentIdentifierApi.md#tms_v1_instrumentidentifiers_token_id_patch) | **PATCH** /tms/v1/instrumentidentifiers/{tokenId} | Update a Instrument Identifier -# **instrumentidentifiers_post** -> InlineResponse2007 instrumentidentifiers_post(profile_id, body=body) - -Create an Instrument Identifier - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.InstrumentIdentifierApi() -profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. -body = CyberSource.Body() # Body | Please specify either a Card or Bank Account. (optional) - -try: - # Create an Instrument Identifier - api_response = api_instance.instrumentidentifiers_post(profile_id, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling InstrumentIdentifierApi->instrumentidentifiers_post: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | - **body** | [**Body**](Body.md)| Please specify either a Card or Bank Account. | [optional] - -### Return type - -[**InlineResponse2007**](InlineResponse2007.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **instrumentidentifiers_token_id_delete** -> instrumentidentifiers_token_id_delete(profile_id, token_id) +# **tms_v1_instrumentidentifiers_token_id_delete** +> tms_v1_instrumentidentifiers_token_id_delete(profile_id, token_id) Delete an Instrument Identifier @@ -79,9 +29,9 @@ token_id = 'token_id_example' # str | The TokenId of an Instrument Identifier. try: # Delete an Instrument Identifier - api_instance.instrumentidentifiers_token_id_delete(profile_id, token_id) + api_instance.tms_v1_instrumentidentifiers_token_id_delete(profile_id, token_id) except ApiException as e: - print("Exception when calling InstrumentIdentifierApi->instrumentidentifiers_token_id_delete: %s\n" % e) + print("Exception when calling InstrumentIdentifierApi->tms_v1_instrumentidentifiers_token_id_delete: %s\n" % e) ``` ### Parameters @@ -101,13 +51,13 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **instrumentidentifiers_token_id_get** -> InlineResponse2007 instrumentidentifiers_token_id_get(profile_id, token_id) +# **tms_v1_instrumentidentifiers_token_id_get** +> TmsV1InstrumentidentifiersPost200Response tms_v1_instrumentidentifiers_token_id_get(profile_id, token_id) Retrieve an Instrument Identifier @@ -126,10 +76,10 @@ token_id = 'token_id_example' # str | The TokenId of an Instrument Identifier. try: # Retrieve an Instrument Identifier - api_response = api_instance.instrumentidentifiers_token_id_get(profile_id, token_id) + api_response = api_instance.tms_v1_instrumentidentifiers_token_id_get(profile_id, token_id) pprint(api_response) except ApiException as e: - print("Exception when calling InstrumentIdentifierApi->instrumentidentifiers_token_id_get: %s\n" % e) + print("Exception when calling InstrumentIdentifierApi->tms_v1_instrumentidentifiers_token_id_get: %s\n" % e) ``` ### Parameters @@ -141,7 +91,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2007**](InlineResponse2007.md) +[**TmsV1InstrumentidentifiersPost200Response**](TmsV1InstrumentidentifiersPost200Response.md) ### Authorization @@ -149,13 +99,13 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **instrumentidentifiers_token_id_patch** -> InlineResponse2007 instrumentidentifiers_token_id_patch(profile_id, token_id, body) +# **tms_v1_instrumentidentifiers_token_id_patch** +> TmsV1InstrumentidentifiersPost200Response tms_v1_instrumentidentifiers_token_id_patch(profile_id, token_id, body) Update a Instrument Identifier @@ -170,66 +120,15 @@ from pprint import pprint # create an instance of the API class api_instance = CyberSource.InstrumentIdentifierApi() profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. -token_id = 'token_id_example' # str | The TokenId of an Instrument Identifier +token_id = 'token_id_example' # str | The TokenId of an Instrument Identifier. body = CyberSource.Body1() # Body1 | Please specify the previous transaction Id to update. try: # Update a Instrument Identifier - api_response = api_instance.instrumentidentifiers_token_id_patch(profile_id, token_id, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling InstrumentIdentifierApi->instrumentidentifiers_token_id_patch: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | - **token_id** | **str**| The TokenId of an Instrument Identifier | - **body** | [**Body1**](Body1.md)| Please specify the previous transaction Id to update. | - -### Return type - -[**InlineResponse2007**](InlineResponse2007.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **instrumentidentifiers_token_id_paymentinstruments_get** -> InlineResponse2008 instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, offset=offset, limit=limit) - -Retrieve all Payment Instruments associated with an Instrument Identifier - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.InstrumentIdentifierApi() -profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. -token_id = 'token_id_example' # str | The TokenId of an Instrument Identifier. -offset = 'offset_example' # str | Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) -limit = '20' # str | The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional) (default to 20) - -try: - # Retrieve all Payment Instruments associated with an Instrument Identifier - api_response = api_instance.instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, offset=offset, limit=limit) + api_response = api_instance.tms_v1_instrumentidentifiers_token_id_patch(profile_id, token_id, body) pprint(api_response) except ApiException as e: - print("Exception when calling InstrumentIdentifierApi->instrumentidentifiers_token_id_paymentinstruments_get: %s\n" % e) + print("Exception when calling InstrumentIdentifierApi->tms_v1_instrumentidentifiers_token_id_patch: %s\n" % e) ``` ### Parameters @@ -238,12 +137,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | **token_id** | **str**| The TokenId of an Instrument Identifier. | - **offset** | **str**| Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. | [optional] - **limit** | **str**| The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. | [optional] [default to 20] + **body** | [**Body1**](Body1.md)| Please specify the previous transaction Id to update. | ### Return type -[**InlineResponse2008**](InlineResponse2008.md) +[**TmsV1InstrumentidentifiersPost200Response**](TmsV1InstrumentidentifiersPost200Response.md) ### Authorization @@ -251,8 +149,8 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/InstrumentIdentifiersApi.md b/docs/InstrumentIdentifiersApi.md new file mode 100644 index 00000000..770d1022 --- /dev/null +++ b/docs/InstrumentIdentifiersApi.md @@ -0,0 +1,57 @@ +# CyberSource.InstrumentIdentifiersApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**tms_v1_instrumentidentifiers_post**](InstrumentIdentifiersApi.md#tms_v1_instrumentidentifiers_post) | **POST** /tms/v1/instrumentidentifiers | Create an Instrument Identifier + + +# **tms_v1_instrumentidentifiers_post** +> TmsV1InstrumentidentifiersPost200Response tms_v1_instrumentidentifiers_post(profile_id, body) + +Create an Instrument Identifier + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.InstrumentIdentifiersApi() +profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. +body = CyberSource.Body() # Body | Please specify either a Card or Bank Account. + +try: + # Create an Instrument Identifier + api_response = api_instance.tms_v1_instrumentidentifiers_post(profile_id, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling InstrumentIdentifiersApi->tms_v1_instrumentidentifiers_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | + **body** | [**Body**](Body.md)| Please specify either a Card or Bank Account. | + +### Return type + +[**TmsV1InstrumentidentifiersPost200Response**](TmsV1InstrumentidentifiersPost200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/InstrumentidentifiersBankAccount.md b/docs/InstrumentidentifiersBankAccount.md deleted file mode 100644 index 79c9a7be..00000000 --- a/docs/InstrumentidentifiersBankAccount.md +++ /dev/null @@ -1,11 +0,0 @@ -# InstrumentidentifiersBankAccount - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number** | **str** | Bank account number. | [optional] -**routing_number** | **str** | Routing number. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InstrumentidentifiersCard.md b/docs/InstrumentidentifiersCard.md deleted file mode 100644 index bb4ef342..00000000 --- a/docs/InstrumentidentifiersCard.md +++ /dev/null @@ -1,10 +0,0 @@ -# InstrumentidentifiersCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number** | **str** | Credit card number (PAN). | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InstrumentidentifiersDetails.md b/docs/InstrumentidentifiersDetails.md deleted file mode 100644 index b17beaaf..00000000 --- a/docs/InstrumentidentifiersDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -# InstrumentidentifiersDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name of the field that threw the error. | [optional] -**location** | **str** | The location of the field that threw the error. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InstrumentidentifiersLinks.md b/docs/InstrumentidentifiersLinks.md deleted file mode 100644 index b31b8b7d..00000000 --- a/docs/InstrumentidentifiersLinks.md +++ /dev/null @@ -1,12 +0,0 @@ -# InstrumentidentifiersLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_self** | [**InstrumentidentifiersLinksSelf**](InstrumentidentifiersLinksSelf.md) | | [optional] -**ancestor** | [**InstrumentidentifiersLinksSelf**](InstrumentidentifiersLinksSelf.md) | | [optional] -**successor** | [**InstrumentidentifiersLinksSelf**](InstrumentidentifiersLinksSelf.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InstrumentidentifiersLinksSelf.md b/docs/InstrumentidentifiersLinksSelf.md deleted file mode 100644 index 36c8cd42..00000000 --- a/docs/InstrumentidentifiersLinksSelf.md +++ /dev/null @@ -1,10 +0,0 @@ -# InstrumentidentifiersLinksSelf - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**href** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InstrumentidentifiersMetadata.md b/docs/InstrumentidentifiersMetadata.md deleted file mode 100644 index cb3083df..00000000 --- a/docs/InstrumentidentifiersMetadata.md +++ /dev/null @@ -1,10 +0,0 @@ -# InstrumentidentifiersMetadata - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**creator** | **str** | The creator of the token. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InstrumentidentifiersProcessingInformation.md b/docs/InstrumentidentifiersProcessingInformation.md deleted file mode 100644 index 23c59147..00000000 --- a/docs/InstrumentidentifiersProcessingInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# InstrumentidentifiersProcessingInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authorization_options** | [**InstrumentidentifiersProcessingInformationAuthorizationOptions**](InstrumentidentifiersProcessingInformationAuthorizationOptions.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InstrumentidentifiersProcessingInformationAuthorizationOptions.md b/docs/InstrumentidentifiersProcessingInformationAuthorizationOptions.md deleted file mode 100644 index f05062b5..00000000 --- a/docs/InstrumentidentifiersProcessingInformationAuthorizationOptions.md +++ /dev/null @@ -1,10 +0,0 @@ -# InstrumentidentifiersProcessingInformationAuthorizationOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**initiator** | [**InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator**](InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.md b/docs/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.md deleted file mode 100644 index 56e8788f..00000000 --- a/docs/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.md +++ /dev/null @@ -1,10 +0,0 @@ -# InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merchant_initiated_transaction** | [**InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction**](InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md b/docs/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md deleted file mode 100644 index 7543459e..00000000 --- a/docs/InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md +++ /dev/null @@ -1,10 +0,0 @@ -# InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**previous_transaction_id** | **str** | Previous Consumer Initiated Transaction Id. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/KeyGenerationApi.md b/docs/KeyGenerationApi.md index 533b07f2..5b5267dd 100644 --- a/docs/KeyGenerationApi.md +++ b/docs/KeyGenerationApi.md @@ -1,14 +1,14 @@ # CyberSource.KeyGenerationApi -All URIs are relative to *https://api.cybersource.com* +All URIs are relative to *https://apitest.cybersource.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**generate_public_key**](KeyGenerationApi.md#generate_public_key) | **POST** /payments/flex/v1/keys/ | Generate Key +[**generate_public_key**](KeyGenerationApi.md#generate_public_key) | **POST** /flex/v1/keys/ | Generate Key # **generate_public_key** -> InlineResponse200 generate_public_key(generate_public_key_request) +> FlexV1KeysPost200Response generate_public_key(generate_public_key_request=generate_public_key_request) Generate Key @@ -24,11 +24,11 @@ from pprint import pprint # create an instance of the API class api_instance = CyberSource.KeyGenerationApi() -generate_public_key_request = CyberSource.GeneratePublicKeyRequest() # GeneratePublicKeyRequest | +generate_public_key_request = CyberSource.GeneratePublicKeyRequest() # GeneratePublicKeyRequest | (optional) try: # Generate Key - api_response = api_instance.generate_public_key(generate_public_key_request) + api_response = api_instance.generate_public_key(generate_public_key_request=generate_public_key_request) pprint(api_response) except ApiException as e: print("Exception when calling KeyGenerationApi->generate_public_key: %s\n" % e) @@ -38,11 +38,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **generate_public_key_request** | [**GeneratePublicKeyRequest**](GeneratePublicKeyRequest.md)| | + **generate_public_key_request** | [**GeneratePublicKeyRequest**](GeneratePublicKeyRequest.md)| | [optional] ### Return type -[**InlineResponse200**](InlineResponse200.md) +[**FlexV1KeysPost200Response**](FlexV1KeysPost200Response.md) ### Authorization @@ -50,7 +50,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json;charset=utf-8 - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/KeyResult.md b/docs/KeyResult.md index 666e72a0..d4abe970 100644 --- a/docs/KeyResult.md +++ b/docs/KeyResult.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key_id** | **str** | Unique identifier for the generated token. Used in the subsequent Tokenize Card request from your customer’s device or browser. | [optional] -**der** | [**InlineResponse200Der**](InlineResponse200Der.md) | | [optional] -**jwk** | [**InlineResponse200Jwk**](InlineResponse200Jwk.md) | | [optional] +**der** | [**FlexV1KeysPost200ResponseDer**](FlexV1KeysPost200ResponseDer.md) | | [optional] +**jwk** | [**FlexV1KeysPost200ResponseJwk**](FlexV1KeysPost200ResponseJwk.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/NotificationOfChangesApi.md b/docs/NotificationOfChangesApi.md new file mode 100644 index 00000000..50f6db8d --- /dev/null +++ b/docs/NotificationOfChangesApi.md @@ -0,0 +1,59 @@ +# CyberSource.NotificationOfChangesApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_notification_of_change_report**](NotificationOfChangesApi.md#get_notification_of_change_report) | **GET** /reporting/v3/notification-of-changes | Get Notification Of Changes + + +# **get_notification_of_change_report** +> ReportingV3NotificationofChangesGet200Response get_notification_of_change_report(start_time, end_time) + +Get Notification Of Changes + +Notification of Change Report + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.NotificationOfChangesApi() +start_time = '2013-10-20T19:20:30+01:00' # datetime | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX +end_time = '2013-10-20T19:20:30+01:00' # datetime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX + +try: + # Get Notification Of Changes + api_response = api_instance.get_notification_of_change_report(start_time, end_time) + pprint(api_response) +except ApiException as e: + print("Exception when calling NotificationOfChangesApi->get_notification_of_change_report: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_time** | **datetime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX | + **end_time** | **datetime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX | + +### Return type + +[**ReportingV3NotificationofChangesGet200Response**](ReportingV3NotificationofChangesGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/OctCreatePaymentRequest.md b/docs/OctCreatePaymentRequest.md deleted file mode 100644 index d817f90f..00000000 --- a/docs/OctCreatePaymentRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# OctCreatePaymentRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_reference_information** | [**InlineResponse201ClientReferenceInformation**](InlineResponse201ClientReferenceInformation.md) | | [optional] -**order_information** | [**V2payoutsOrderInformation**](V2payoutsOrderInformation.md) | | [optional] -**merchant_information** | [**V2payoutsMerchantInformation**](V2payoutsMerchantInformation.md) | | [optional] -**recipient_information** | [**V2payoutsRecipientInformation**](V2payoutsRecipientInformation.md) | | [optional] -**sender_information** | [**V2payoutsSenderInformation**](V2payoutsSenderInformation.md) | | [optional] -**processing_information** | [**V2payoutsProcessingInformation**](V2payoutsProcessingInformation.md) | | [optional] -**payment_information** | [**V2payoutsPaymentInformation**](V2payoutsPaymentInformation.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentApi.md b/docs/PaymentApi.md deleted file mode 100644 index b04f4bb3..00000000 --- a/docs/PaymentApi.md +++ /dev/null @@ -1,106 +0,0 @@ -# CyberSource.PaymentApi - -All URIs are relative to *https://api.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_payment**](PaymentApi.md#create_payment) | **POST** /v2/payments/ | Process a Payment -[**get_payment**](PaymentApi.md#get_payment) | **GET** /v2/payments/{id} | Retrieve a Payment - - -# **create_payment** -> InlineResponse201 create_payment(create_payment_request) - -Process a Payment - -Authorize the payment for the transaction. - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.PaymentApi() -create_payment_request = CyberSource.CreatePaymentRequest() # CreatePaymentRequest | - -try: - # Process a Payment - api_response = api_instance.create_payment(create_payment_request) - pprint(api_response) -except ApiException as e: - print("Exception when calling PaymentApi->create_payment: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_payment_request** | [**CreatePaymentRequest**](CreatePaymentRequest.md)| | - -### Return type - -[**InlineResponse201**](InlineResponse201.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_payment** -> InlineResponse2002 get_payment(id) - -Retrieve a Payment - -Include the payment ID in the GET request to retrieve the payment details. - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.PaymentApi() -id = 'id_example' # str | The payment ID returned from a previous payment request. - -try: - # Retrieve a Payment - api_response = api_instance.get_payment(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling PaymentApi->get_payment: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| The payment ID returned from a previous payment request. | - -### Return type - -[**InlineResponse2002**](InlineResponse2002.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/PaymentInstrumentApi.md b/docs/PaymentInstrumentApi.md deleted file mode 100644 index 9c17473e..00000000 --- a/docs/PaymentInstrumentApi.md +++ /dev/null @@ -1,205 +0,0 @@ -# CyberSource.PaymentInstrumentApi - -All URIs are relative to *https://api.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**paymentinstruments_post**](PaymentInstrumentApi.md#paymentinstruments_post) | **POST** /paymentinstruments | Create a Payment Instrument -[**paymentinstruments_token_id_delete**](PaymentInstrumentApi.md#paymentinstruments_token_id_delete) | **DELETE** /paymentinstruments/{tokenId} | Delete a Payment Instrument -[**paymentinstruments_token_id_get**](PaymentInstrumentApi.md#paymentinstruments_token_id_get) | **GET** /paymentinstruments/{tokenId} | Retrieve a Payment Instrument -[**paymentinstruments_token_id_patch**](PaymentInstrumentApi.md#paymentinstruments_token_id_patch) | **PATCH** /paymentinstruments/{tokenId} | Update a Payment Instrument - - -# **paymentinstruments_post** -> InlineResponse2016 paymentinstruments_post(profile_id, body) - -Create a Payment Instrument - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.PaymentInstrumentApi() -profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. -body = CyberSource.Body2() # Body2 | Please specify the customers payment details for card or bank account. - -try: - # Create a Payment Instrument - api_response = api_instance.paymentinstruments_post(profile_id, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling PaymentInstrumentApi->paymentinstruments_post: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | - **body** | [**Body2**](Body2.md)| Please specify the customers payment details for card or bank account. | - -### Return type - -[**InlineResponse2016**](InlineResponse2016.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **paymentinstruments_token_id_delete** -> paymentinstruments_token_id_delete(profile_id, token_id) - -Delete a Payment Instrument - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.PaymentInstrumentApi() -profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. -token_id = 'token_id_example' # str | The TokenId of a Payment Instrument. - -try: - # Delete a Payment Instrument - api_instance.paymentinstruments_token_id_delete(profile_id, token_id) -except ApiException as e: - print("Exception when calling PaymentInstrumentApi->paymentinstruments_token_id_delete: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | - **token_id** | **str**| The TokenId of a Payment Instrument. | - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **paymentinstruments_token_id_get** -> InlineResponse2016 paymentinstruments_token_id_get(profile_id, token_id) - -Retrieve a Payment Instrument - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.PaymentInstrumentApi() -profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. -token_id = 'token_id_example' # str | The TokenId of a Payment Instrument. - -try: - # Retrieve a Payment Instrument - api_response = api_instance.paymentinstruments_token_id_get(profile_id, token_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling PaymentInstrumentApi->paymentinstruments_token_id_get: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | - **token_id** | **str**| The TokenId of a Payment Instrument. | - -### Return type - -[**InlineResponse2016**](InlineResponse2016.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **paymentinstruments_token_id_patch** -> InlineResponse2016 paymentinstruments_token_id_patch(profile_id, token_id, body) - -Update a Payment Instrument - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.PaymentInstrumentApi() -profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. -token_id = 'token_id_example' # str | The TokenId of a Payment Instrument. -body = CyberSource.Body3() # Body3 | Please specify the customers payment details. - -try: - # Update a Payment Instrument - api_response = api_instance.paymentinstruments_token_id_patch(profile_id, token_id, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling PaymentInstrumentApi->paymentinstruments_token_id_patch: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | - **token_id** | **str**| The TokenId of a Payment Instrument. | - **body** | [**Body3**](Body3.md)| Please specify the customers payment details. | - -### Return type - -[**InlineResponse2016**](InlineResponse2016.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/PaymentInstrumentsApi.md b/docs/PaymentInstrumentsApi.md new file mode 100644 index 00000000..cc727835 --- /dev/null +++ b/docs/PaymentInstrumentsApi.md @@ -0,0 +1,258 @@ +# CyberSource.PaymentInstrumentsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**tms_v1_instrumentidentifiers_token_id_paymentinstruments_get**](PaymentInstrumentsApi.md#tms_v1_instrumentidentifiers_token_id_paymentinstruments_get) | **GET** /tms/v1/instrumentidentifiers/{tokenId}/paymentinstruments | Retrieve all Payment Instruments associated with an Instrument Identifier +[**tms_v1_paymentinstruments_post**](PaymentInstrumentsApi.md#tms_v1_paymentinstruments_post) | **POST** /tms/v1/paymentinstruments | Create a Payment Instrument +[**tms_v1_paymentinstruments_token_id_delete**](PaymentInstrumentsApi.md#tms_v1_paymentinstruments_token_id_delete) | **DELETE** /tms/v1/paymentinstruments/{tokenId} | Delete a Payment Instrument +[**tms_v1_paymentinstruments_token_id_get**](PaymentInstrumentsApi.md#tms_v1_paymentinstruments_token_id_get) | **GET** /tms/v1/paymentinstruments/{tokenId} | Retrieve a Payment Instrument +[**tms_v1_paymentinstruments_token_id_patch**](PaymentInstrumentsApi.md#tms_v1_paymentinstruments_token_id_patch) | **PATCH** /tms/v1/paymentinstruments/{tokenId} | Update a Payment Instrument + + +# **tms_v1_instrumentidentifiers_token_id_paymentinstruments_get** +> TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response tms_v1_instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, offset=offset, limit=limit) + +Retrieve all Payment Instruments associated with an Instrument Identifier + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.PaymentInstrumentsApi() +profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. +token_id = 'token_id_example' # str | The TokenId of an Instrument Identifier. +offset = 'offset_example' # str | Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) +limit = '20' # str | The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional) (default to 20) + +try: + # Retrieve all Payment Instruments associated with an Instrument Identifier + api_response = api_instance.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, offset=offset, limit=limit) + pprint(api_response) +except ApiException as e: + print("Exception when calling PaymentInstrumentsApi->tms_v1_instrumentidentifiers_token_id_paymentinstruments_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | + **token_id** | **str**| The TokenId of an Instrument Identifier. | + **offset** | **str**| Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. | [optional] + **limit** | **str**| The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. | [optional] [default to 20] + +### Return type + +[**TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response**](TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **tms_v1_paymentinstruments_post** +> TmsV1PaymentinstrumentsPost201Response tms_v1_paymentinstruments_post(profile_id, body) + +Create a Payment Instrument + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.PaymentInstrumentsApi() +profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. +body = CyberSource.Body2() # Body2 | Please specify the customers payment details for card or bank account. + +try: + # Create a Payment Instrument + api_response = api_instance.tms_v1_paymentinstruments_post(profile_id, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling PaymentInstrumentsApi->tms_v1_paymentinstruments_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | + **body** | [**Body2**](Body2.md)| Please specify the customers payment details for card or bank account. | + +### Return type + +[**TmsV1PaymentinstrumentsPost201Response**](TmsV1PaymentinstrumentsPost201Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **tms_v1_paymentinstruments_token_id_delete** +> tms_v1_paymentinstruments_token_id_delete(profile_id, token_id) + +Delete a Payment Instrument + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.PaymentInstrumentsApi() +profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. +token_id = 'token_id_example' # str | The TokenId of a Payment Instrument. + +try: + # Delete a Payment Instrument + api_instance.tms_v1_paymentinstruments_token_id_delete(profile_id, token_id) +except ApiException as e: + print("Exception when calling PaymentInstrumentsApi->tms_v1_paymentinstruments_token_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | + **token_id** | **str**| The TokenId of a Payment Instrument. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **tms_v1_paymentinstruments_token_id_get** +> TmsV1PaymentinstrumentsPost201Response tms_v1_paymentinstruments_token_id_get(profile_id, token_id) + +Retrieve a Payment Instrument + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.PaymentInstrumentsApi() +profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. +token_id = 'token_id_example' # str | The TokenId of a Payment Instrument. + +try: + # Retrieve a Payment Instrument + api_response = api_instance.tms_v1_paymentinstruments_token_id_get(profile_id, token_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling PaymentInstrumentsApi->tms_v1_paymentinstruments_token_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | + **token_id** | **str**| The TokenId of a Payment Instrument. | + +### Return type + +[**TmsV1PaymentinstrumentsPost201Response**](TmsV1PaymentinstrumentsPost201Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **tms_v1_paymentinstruments_token_id_patch** +> TmsV1PaymentinstrumentsPost201Response tms_v1_paymentinstruments_token_id_patch(profile_id, token_id, body) + +Update a Payment Instrument + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.PaymentInstrumentsApi() +profile_id = 'profile_id_example' # str | The id of a profile containing user specific TMS configuration. +token_id = 'token_id_example' # str | The TokenId of a Payment Instrument. +body = CyberSource.Body3() # Body3 | Please specify the customers payment details. + +try: + # Update a Payment Instrument + api_response = api_instance.tms_v1_paymentinstruments_token_id_patch(profile_id, token_id, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling PaymentInstrumentsApi->tms_v1_paymentinstruments_token_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **profile_id** | **str**| The id of a profile containing user specific TMS configuration. | + **token_id** | **str**| The TokenId of a Payment Instrument. | + **body** | [**Body3**](Body3.md)| Please specify the customers payment details. | + +### Return type + +[**TmsV1PaymentinstrumentsPost201Response**](TmsV1PaymentinstrumentsPost201Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PaymentinstrumentsBankAccount.md b/docs/PaymentinstrumentsBankAccount.md deleted file mode 100644 index 6515177c..00000000 --- a/docs/PaymentinstrumentsBankAccount.md +++ /dev/null @@ -1,10 +0,0 @@ -# PaymentinstrumentsBankAccount - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | Type of Bank Account. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentinstrumentsBillTo.md b/docs/PaymentinstrumentsBillTo.md deleted file mode 100644 index a56b3a3e..00000000 --- a/docs/PaymentinstrumentsBillTo.md +++ /dev/null @@ -1,20 +0,0 @@ -# PaymentinstrumentsBillTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**first_name** | **str** | Bill to First Name. | [optional] -**last_name** | **str** | Bill to Last Name. | [optional] -**company** | **str** | Bill to Company. | [optional] -**address1** | **str** | Bill to Address Line 1. | [optional] -**address2** | **str** | Bill to Address Line 2. | [optional] -**locality** | **str** | Bill to City. | [optional] -**administrative_area** | **str** | Bill to State. | [optional] -**postal_code** | **str** | Bill to Postal Code. | [optional] -**country** | **str** | Bill to Country. Accepts input in the ISO 3166-1 standard, stores as ISO 3166-1-Alpha-2 | [optional] -**email** | **str** | Valid Bill to Email. | [optional] -**phone_number** | **str** | Bill to Phone Number. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentinstrumentsBuyerInformation.md b/docs/PaymentinstrumentsBuyerInformation.md deleted file mode 100644 index 11ebd23f..00000000 --- a/docs/PaymentinstrumentsBuyerInformation.md +++ /dev/null @@ -1,13 +0,0 @@ -# PaymentinstrumentsBuyerInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**company_tax_id** | **str** | Company Tax ID. | [optional] -**currency** | **str** | Currency. Accepts input in the ISO 4217 standard, stores as ISO 4217 Alpha | [optional] -**date_o_birth** | **str** | Date of birth YYYY-MM-DD. | [optional] -**personal_identification** | [**list[PaymentinstrumentsBuyerInformationPersonalIdentification]**](PaymentinstrumentsBuyerInformationPersonalIdentification.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentinstrumentsBuyerInformationIssuedBy.md b/docs/PaymentinstrumentsBuyerInformationIssuedBy.md deleted file mode 100644 index 3e798fed..00000000 --- a/docs/PaymentinstrumentsBuyerInformationIssuedBy.md +++ /dev/null @@ -1,10 +0,0 @@ -# PaymentinstrumentsBuyerInformationIssuedBy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**administrative_area** | **str** | State or province where the identification was issued. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentinstrumentsBuyerInformationPersonalIdentification.md b/docs/PaymentinstrumentsBuyerInformationPersonalIdentification.md deleted file mode 100644 index e185935b..00000000 --- a/docs/PaymentinstrumentsBuyerInformationPersonalIdentification.md +++ /dev/null @@ -1,12 +0,0 @@ -# PaymentinstrumentsBuyerInformationPersonalIdentification - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | Identification Number. | [optional] -**type** | **str** | Type of personal identification. | [optional] -**issued_by** | [**PaymentinstrumentsBuyerInformationIssuedBy**](PaymentinstrumentsBuyerInformationIssuedBy.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentinstrumentsCard.md b/docs/PaymentinstrumentsCard.md deleted file mode 100644 index 3277f6b9..00000000 --- a/docs/PaymentinstrumentsCard.md +++ /dev/null @@ -1,16 +0,0 @@ -# PaymentinstrumentsCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expiration_month** | **str** | Credit card expiration month. | [optional] -**expiration_year** | **str** | Credit card expiration year. | [optional] -**type** | **str** | Credit card brand. | [optional] -**issue_number** | **str** | Credit card issue number. | [optional] -**start_month** | **str** | Credit card start month. | [optional] -**start_year** | **str** | Credit card start year. | [optional] -**use_as** | **str** | Card Use As Field. Supported value of \"pinless debit\" only. Only for use with Pinless Debit tokens. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentinstrumentsInstrumentIdentifier.md b/docs/PaymentinstrumentsInstrumentIdentifier.md deleted file mode 100644 index cdbfe926..00000000 --- a/docs/PaymentinstrumentsInstrumentIdentifier.md +++ /dev/null @@ -1,17 +0,0 @@ -# PaymentinstrumentsInstrumentIdentifier - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**links** | [**InstrumentidentifiersLinks**](InstrumentidentifiersLinks.md) | | [optional] -**object** | **str** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional] -**state** | **str** | Current state of the token. | [optional] -**id** | **str** | The id of the existing instrument identifier to be linked to the newly created payment instrument. | [optional] -**card** | [**InstrumentidentifiersCard**](InstrumentidentifiersCard.md) | | [optional] -**bank_account** | [**InstrumentidentifiersBankAccount**](InstrumentidentifiersBankAccount.md) | | [optional] -**processing_information** | [**InstrumentidentifiersProcessingInformation**](InstrumentidentifiersProcessingInformation.md) | | [optional] -**metadata** | [**InstrumentidentifiersMetadata**](InstrumentidentifiersMetadata.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentinstrumentsMerchantInformation.md b/docs/PaymentinstrumentsMerchantInformation.md deleted file mode 100644 index f161f3a0..00000000 --- a/docs/PaymentinstrumentsMerchantInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# PaymentinstrumentsMerchantInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merchant_descriptor** | [**PaymentinstrumentsMerchantInformationMerchantDescriptor**](PaymentinstrumentsMerchantInformationMerchantDescriptor.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentinstrumentsMerchantInformationMerchantDescriptor.md b/docs/PaymentinstrumentsMerchantInformationMerchantDescriptor.md deleted file mode 100644 index c80adc8b..00000000 --- a/docs/PaymentinstrumentsMerchantInformationMerchantDescriptor.md +++ /dev/null @@ -1,10 +0,0 @@ -# PaymentinstrumentsMerchantInformationMerchantDescriptor - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alternate_name** | **str** | Alternate information for your business. This API field overrides the company entry description value in your CyberSource account. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentinstrumentsProcessingInformation.md b/docs/PaymentinstrumentsProcessingInformation.md deleted file mode 100644 index 80a40638..00000000 --- a/docs/PaymentinstrumentsProcessingInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# PaymentinstrumentsProcessingInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bill_payment_program_enabled** | **bool** | Bill Payment Program Enabled. | [optional] -**bank_transfer_options** | [**PaymentinstrumentsProcessingInformationBankTransferOptions**](PaymentinstrumentsProcessingInformationBankTransferOptions.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentinstrumentsProcessingInformationBankTransferOptions.md b/docs/PaymentinstrumentsProcessingInformationBankTransferOptions.md deleted file mode 100644 index b2dd8a6c..00000000 --- a/docs/PaymentinstrumentsProcessingInformationBankTransferOptions.md +++ /dev/null @@ -1,10 +0,0 @@ -# PaymentinstrumentsProcessingInformationBankTransferOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sec_code** | **str** | Authorization method used for the transaction.(acceptable values are CCD, PPD, TEL, WEB). | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaymentsApi.md b/docs/PaymentsApi.md new file mode 100644 index 00000000..a1acf872 --- /dev/null +++ b/docs/PaymentsApi.md @@ -0,0 +1,57 @@ +# CyberSource.PaymentsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_payment**](PaymentsApi.md#create_payment) | **POST** /pts/v2/payments/ | Process a Payment + + +# **create_payment** +> PtsV2PaymentsPost201Response create_payment(create_payment_request) + +Process a Payment + +Authorize the payment for the transaction. + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.PaymentsApi() +create_payment_request = CyberSource.CreatePaymentRequest() # CreatePaymentRequest | + +try: + # Process a Payment + api_response = api_instance.create_payment(create_payment_request) + pprint(api_response) +except ApiException as e: + print("Exception when calling PaymentsApi->create_payment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_payment_request** | [**CreatePaymentRequest**](CreatePaymentRequest.md)| | + +### Return type + +[**PtsV2PaymentsPost201Response**](PtsV2PaymentsPost201Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Paymentsflexv1tokensCardInfo.md b/docs/Paymentsflexv1tokensCardInfo.md deleted file mode 100644 index b809fb43..00000000 --- a/docs/Paymentsflexv1tokensCardInfo.md +++ /dev/null @@ -1,13 +0,0 @@ -# Paymentsflexv1tokensCardInfo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**card_number** | **str** | Encrypted or plain text card number. If the encryption type of “None” was used in the Generate Key request, this value can be set to the plaintext card number/Personal Account Number (PAN). If the encryption type of RsaOaep256 was used in the Generate Key request, this value needs to be the RSA OAEP 256 encrypted card number. The card number should be encrypted on the cardholders’ device. The [WebCrypto API] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/resources/public/flex.js) can be used with the JWK obtained in the Generate Key request. | [optional] -**card_expiration_month** | **str** | Two digit expiration month | [optional] -**card_expiration_year** | **str** | Four digit expiration year | [optional] -**card_type** | **str** | Card Type. This field is required. Refer to the CyberSource Credit Card Services documentation for supported card types. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ProcessAPayoutApi.md b/docs/ProcessAPayoutApi.md new file mode 100644 index 00000000..b658a8d1 --- /dev/null +++ b/docs/ProcessAPayoutApi.md @@ -0,0 +1,56 @@ +# CyberSource.ProcessAPayoutApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**oct_create_payment**](ProcessAPayoutApi.md#oct_create_payment) | **POST** /pts/v2/payouts/ | Process a Payout + + +# **oct_create_payment** +> oct_create_payment(oct_create_payment_request) + +Process a Payout + +Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT). + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ProcessAPayoutApi() +oct_create_payment_request = CyberSource.PtsV2PayoutsPostResponse() # PtsV2PayoutsPostResponse | + +try: + # Process a Payout + api_instance.oct_create_payment(oct_create_payment_request) +except ApiException as e: + print("Exception when calling ProcessAPayoutApi->oct_create_payment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oct_create_payment_request** | [**PtsV2PayoutsPostResponse**](PtsV2PayoutsPostResponse.md)| | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PtsV1TransactionBatchesGet200Response.md b/docs/PtsV1TransactionBatchesGet200Response.md new file mode 100644 index 00000000..de750018 --- /dev/null +++ b/docs/PtsV1TransactionBatchesGet200Response.md @@ -0,0 +1,12 @@ +# PtsV1TransactionBatchesGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_batches** | [**list[PtsV1TransactionBatchesGet200ResponseTransactionBatches]**](PtsV1TransactionBatchesGet200ResponseTransactionBatches.md) | | [optional] +**links** | [**PtsV1TransactionBatchesGet200ResponseLinks**](PtsV1TransactionBatchesGet200ResponseLinks.md) | | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV1TransactionBatchesGet200ResponseLinks.md b/docs/PtsV1TransactionBatchesGet200ResponseLinks.md new file mode 100644 index 00000000..34b1d58f --- /dev/null +++ b/docs/PtsV1TransactionBatchesGet200ResponseLinks.md @@ -0,0 +1,10 @@ +# PtsV1TransactionBatchesGet200ResponseLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**PtsV1TransactionBatchesGet200ResponseLinksSelf**](PtsV1TransactionBatchesGet200ResponseLinksSelf.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV1TransactionBatchesGet200ResponseLinksSelf.md b/docs/PtsV1TransactionBatchesGet200ResponseLinksSelf.md new file mode 100644 index 00000000..772d9668 --- /dev/null +++ b/docs/PtsV1TransactionBatchesGet200ResponseLinksSelf.md @@ -0,0 +1,11 @@ +# PtsV1TransactionBatchesGet200ResponseLinksSelf + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | [optional] +**method** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV1TransactionBatchesGet200ResponseTransactionBatches.md b/docs/PtsV1TransactionBatchesGet200ResponseTransactionBatches.md new file mode 100644 index 00000000..18284af9 --- /dev/null +++ b/docs/PtsV1TransactionBatchesGet200ResponseTransactionBatches.md @@ -0,0 +1,16 @@ +# PtsV1TransactionBatchesGet200ResponseTransactionBatches + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique identifier assigned to the batch file. | [optional] +**upload_date** | **str** | Date when the batch template was update. | [optional] +**completion_date** | **str** | The date when the batch template processing completed. | [optional] +**transaction_count** | **int** | Number of transactions in the transaction. | [optional] +**accepted_transaction_count** | **int** | Number of transactions accepted. | [optional] +**rejected_transaction_count** | **str** | Number of transactions rejected. | [optional] +**status** | **str** | The status of you batch template processing. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV1TransactionBatchesGet400Response.md b/docs/PtsV1TransactionBatchesGet400Response.md new file mode 100644 index 00000000..7b9bb473 --- /dev/null +++ b/docs/PtsV1TransactionBatchesGet400Response.md @@ -0,0 +1,11 @@ +# PtsV1TransactionBatchesGet400Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_information** | [**PtsV1TransactionBatchesGet400ResponseErrorInformation**](PtsV1TransactionBatchesGet400ResponseErrorInformation.md) | | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV1TransactionBatchesGet400ResponseErrorInformation.md b/docs/PtsV1TransactionBatchesGet400ResponseErrorInformation.md new file mode 100644 index 00000000..13fe2c9c --- /dev/null +++ b/docs/PtsV1TransactionBatchesGet400ResponseErrorInformation.md @@ -0,0 +1,12 @@ +# PtsV1TransactionBatchesGet400ResponseErrorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | [optional] +**message** | **str** | | [optional] +**details** | [**list[PtsV1TransactionBatchesGet400ResponseErrorInformationDetails]**](PtsV1TransactionBatchesGet400ResponseErrorInformationDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV1TransactionBatchesGet400ResponseErrorInformationDetails.md b/docs/PtsV1TransactionBatchesGet400ResponseErrorInformationDetails.md new file mode 100644 index 00000000..fca49a1f --- /dev/null +++ b/docs/PtsV1TransactionBatchesGet400ResponseErrorInformationDetails.md @@ -0,0 +1,11 @@ +# PtsV1TransactionBatchesGet400ResponseErrorInformationDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field** | **str** | This is the flattened JSON object field name/path that is either missing or invalid. | [optional] +**message** | **str** | The detailed message related to the status and reason listed above. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV1TransactionBatchesGet500Response.md b/docs/PtsV1TransactionBatchesGet500Response.md new file mode 100644 index 00000000..55a8b887 --- /dev/null +++ b/docs/PtsV1TransactionBatchesGet500Response.md @@ -0,0 +1,11 @@ +# PtsV1TransactionBatchesGet500Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_information** | [**PtsV1TransactionBatchesGet500ResponseErrorInformation**](PtsV1TransactionBatchesGet500ResponseErrorInformation.md) | | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV1TransactionBatchesGet500ResponseErrorInformation.md b/docs/PtsV1TransactionBatchesGet500ResponseErrorInformation.md new file mode 100644 index 00000000..04231cdc --- /dev/null +++ b/docs/PtsV1TransactionBatchesGet500ResponseErrorInformation.md @@ -0,0 +1,11 @@ +# PtsV1TransactionBatchesGet500ResponseErrorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | The reason of status | [optional] +**message** | **str** | The detailed message related to the status and reason listed above. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2CreditsPost201Response.md b/docs/PtsV2CreditsPost201Response.md new file mode 100644 index 00000000..90d99200 --- /dev/null +++ b/docs/PtsV2CreditsPost201Response.md @@ -0,0 +1,18 @@ +# PtsV2CreditsPost201Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**PtsV2PaymentsRefundPost201ResponseLinks**](PtsV2PaymentsRefundPost201ResponseLinks.md) | | [optional] +**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] +**client_reference_information** | [**PtsV2PaymentsPost201ResponseClientReferenceInformation**](PtsV2PaymentsPost201ResponseClientReferenceInformation.md) | | [optional] +**credit_amount_details** | [**PtsV2CreditsPost201ResponseCreditAmountDetails**](PtsV2CreditsPost201ResponseCreditAmountDetails.md) | | [optional] +**processor_information** | [**PtsV2PaymentsRefundPost201ResponseProcessorInformation**](PtsV2PaymentsRefundPost201ResponseProcessorInformation.md) | | [optional] +**order_information** | [**PtsV2PaymentsRefundPost201ResponseOrderInformation**](PtsV2PaymentsRefundPost201ResponseOrderInformation.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2CreditsPost201ResponseCreditAmountDetails.md b/docs/PtsV2CreditsPost201ResponseCreditAmountDetails.md new file mode 100644 index 00000000..e8ccae2b --- /dev/null +++ b/docs/PtsV2CreditsPost201ResponseCreditAmountDetails.md @@ -0,0 +1,11 @@ +# PtsV2CreditsPost201ResponseCreditAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credit_amount** | **str** | Total amount of the credit. | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsCapturesPost201Response.md b/docs/PtsV2PaymentsCapturesPost201Response.md new file mode 100644 index 00000000..75da2f62 --- /dev/null +++ b/docs/PtsV2PaymentsCapturesPost201Response.md @@ -0,0 +1,17 @@ +# PtsV2PaymentsCapturesPost201Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**PtsV2PaymentsCapturesPost201ResponseLinks**](PtsV2PaymentsCapturesPost201ResponseLinks.md) | | [optional] +**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] +**client_reference_information** | [**PtsV2PaymentsPost201ResponseClientReferenceInformation**](PtsV2PaymentsPost201ResponseClientReferenceInformation.md) | | [optional] +**processor_information** | [**PtsV2PaymentsCapturesPost201ResponseProcessorInformation**](PtsV2PaymentsCapturesPost201ResponseProcessorInformation.md) | | [optional] +**order_information** | [**PtsV2PaymentsCapturesPost201ResponseOrderInformation**](PtsV2PaymentsCapturesPost201ResponseOrderInformation.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsCapturesPost201ResponseLinks.md b/docs/PtsV2PaymentsCapturesPost201ResponseLinks.md new file mode 100644 index 00000000..d8123a78 --- /dev/null +++ b/docs/PtsV2PaymentsCapturesPost201ResponseLinks.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsCapturesPost201ResponseLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**PtsV2PaymentsPost201ResponseLinksSelf**](PtsV2PaymentsPost201ResponseLinksSelf.md) | | [optional] +**void** | [**PtsV2PaymentsPost201ResponseLinksSelf**](PtsV2PaymentsPost201ResponseLinksSelf.md) | | [optional] +**refund** | [**PtsV2PaymentsPost201ResponseLinksSelf**](PtsV2PaymentsPost201ResponseLinksSelf.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsCapturesPost201ResponseOrderInformation.md b/docs/PtsV2PaymentsCapturesPost201ResponseOrderInformation.md new file mode 100644 index 00000000..79f4a508 --- /dev/null +++ b/docs/PtsV2PaymentsCapturesPost201ResponseOrderInformation.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsCapturesPost201ResponseOrderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount_details** | [**PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails**](PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.md) | | [optional] +**invoice_details** | [**PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails**](PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.md b/docs/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.md new file mode 100644 index 00000000..d38b7e6e --- /dev/null +++ b/docs/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_amount** | **str** | Amount you requested for the capture. | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.md b/docs/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.md new file mode 100644 index 00000000..4783905e --- /dev/null +++ b/docs/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.md @@ -0,0 +1,10 @@ +# PtsV2PaymentsCapturesPost201ResponseProcessorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_id** | **str** | Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsCapturesPost400Response.md b/docs/PtsV2PaymentsCapturesPost400Response.md new file mode 100644 index 00000000..cd9d6b13 --- /dev/null +++ b/docs/PtsV2PaymentsCapturesPost400Response.md @@ -0,0 +1,14 @@ +# PtsV2PaymentsCapturesPost400Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reason** | **str** | The reason of the status. | [optional] +**message** | **str** | The detail message related to the status and reason listed above. | [optional] +**details** | [**list[PtsV2PaymentsPost201ResponseErrorInformationDetails]**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201Response.md b/docs/PtsV2PaymentsPost201Response.md new file mode 100644 index 00000000..fa73256c --- /dev/null +++ b/docs/PtsV2PaymentsPost201Response.md @@ -0,0 +1,20 @@ +# PtsV2PaymentsPost201Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**PtsV2PaymentsPost201ResponseLinks**](PtsV2PaymentsPost201ResponseLinks.md) | | [optional] +**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] +**error_information** | [**PtsV2PaymentsPost201ResponseErrorInformation**](PtsV2PaymentsPost201ResponseErrorInformation.md) | | [optional] +**client_reference_information** | [**PtsV2PaymentsPost201ResponseClientReferenceInformation**](PtsV2PaymentsPost201ResponseClientReferenceInformation.md) | | [optional] +**processor_information** | [**PtsV2PaymentsPost201ResponseProcessorInformation**](PtsV2PaymentsPost201ResponseProcessorInformation.md) | | [optional] +**payment_information** | [**PtsV2PaymentsPost201ResponsePaymentInformation**](PtsV2PaymentsPost201ResponsePaymentInformation.md) | | [optional] +**order_information** | [**PtsV2PaymentsPost201ResponseOrderInformation**](PtsV2PaymentsPost201ResponseOrderInformation.md) | | [optional] +**point_of_sale_information** | [**PtsV2PaymentsPost201ResponsePointOfSaleInformation**](PtsV2PaymentsPost201ResponsePointOfSaleInformation.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseClientReferenceInformation.md b/docs/PtsV2PaymentsPost201ResponseClientReferenceInformation.md new file mode 100644 index 00000000..87e47bb4 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseClientReferenceInformation.md @@ -0,0 +1,10 @@ +# PtsV2PaymentsPost201ResponseClientReferenceInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseErrorInformation.md b/docs/PtsV2PaymentsPost201ResponseErrorInformation.md new file mode 100644 index 00000000..015e786d --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseErrorInformation.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsPost201ResponseErrorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | The reason of the status. | [optional] +**message** | **str** | The detail message related to the status and reason listed above. | [optional] +**details** | [**list[PtsV2PaymentsPost201ResponseErrorInformationDetails]**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseErrorInformationDetails.md b/docs/PtsV2PaymentsPost201ResponseErrorInformationDetails.md new file mode 100644 index 00000000..6696d480 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseErrorInformationDetails.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsPost201ResponseErrorInformationDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field** | **str** | This is the flattened JSON object field name/path that is either missing or invalid. | [optional] +**reason** | **str** | Possible reasons for the error. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseLinks.md b/docs/PtsV2PaymentsPost201ResponseLinks.md new file mode 100644 index 00000000..906f709c --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseLinks.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsPost201ResponseLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**PtsV2PaymentsPost201ResponseLinksSelf**](PtsV2PaymentsPost201ResponseLinksSelf.md) | | [optional] +**reversal** | [**PtsV2PaymentsPost201ResponseLinksSelf**](PtsV2PaymentsPost201ResponseLinksSelf.md) | | [optional] +**capture** | [**PtsV2PaymentsPost201ResponseLinksSelf**](PtsV2PaymentsPost201ResponseLinksSelf.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseLinksSelf.md b/docs/PtsV2PaymentsPost201ResponseLinksSelf.md new file mode 100644 index 00000000..0cef19eb --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseLinksSelf.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsPost201ResponseLinksSelf + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | URL | [optional] +**method** | **str** | HTTP method applied to above URL | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseOrderInformation.md b/docs/PtsV2PaymentsPost201ResponseOrderInformation.md new file mode 100644 index 00000000..7533c07c --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseOrderInformation.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsPost201ResponseOrderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount_details** | [**PtsV2PaymentsPost201ResponseOrderInformationAmountDetails**](PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.md) | | [optional] +**invoice_details** | [**PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails**](PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.md b/docs/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.md new file mode 100644 index 00000000..8eaaf2ce --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsPost201ResponseOrderInformationAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_amount** | **str** | Amount you requested for the payment or capture. This value is returned for partial authorizations. | [optional] +**authorized_amount** | **str** | Amount that was authorized. | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.md b/docs/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.md new file mode 100644 index 00000000..0786c411 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.md @@ -0,0 +1,10 @@ +# PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level3_transmission_status** | **bool** | Indicates whether CyberSource sent the Level III information to the processor. The possible values are: If your account is not enabled for Level III data or if you did not include the purchasing level field in your request, CyberSource does not include the Level III data in the request sent to the processor. For processor-specific information, see the bill_purchasing_level3_enabled field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponsePaymentInformation.md b/docs/PtsV2PaymentsPost201ResponsePaymentInformation.md new file mode 100644 index 00000000..9d10ee8b --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponsePaymentInformation.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsPost201ResponsePaymentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card** | [**PtsV2PaymentsPost201ResponsePaymentInformationCard**](PtsV2PaymentsPost201ResponsePaymentInformationCard.md) | | [optional] +**tokenized_card** | [**PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard**](PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.md) | | [optional] +**account_features** | [**PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures**](PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.md b/docs/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.md new file mode 100644 index 00000000..84280a9a --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.md @@ -0,0 +1,26 @@ +# PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_type** | **str** | Type of account. This value is returned only if you requested a balance inquiry. Possible values: - **00**: Not applicable or not specified - **10**: Savings account - **20**: Checking account - **30**: Credit card account - **40**: Universal account | [optional] +**account_status** | **str** | Possible values: - **N**: Nonregulated - **R**: Regulated `Note` This field is returned only for CyberSource through VisaNet. | [optional] +**balance_amount** | **str** | Remaining balance on the account. | [optional] +**balance_amount_type** | **str** | Type of amount. This value is returned only if you requested a balance inquiry. The issuer determines the value that is returned. Possible values for deposit accounts: - **01**: Current ledger (posted) balance. - **02**: Current available balance, which is typically the ledger balance less outstanding authorizations. Some depository institutions also include pending deposits and the credit or overdraft line associated with the account. Possible values for credit card accounts: - **01**: Credit amount remaining for customer (open to buy). - **02**: Credit limit. | [optional] +**currency** | **str** | Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. | [optional] +**balance_sign** | **str** | Sign for the remaining balance on the account. Returned only when the processor returns this value. Possible values: | [optional] +**affluence_indicator** | **str** | **Chase Paymentech Solutions** Indicates whether a customer has high credit limits. This information enables you to market high cost items to these customers and to understand the kinds of cards that high income customers are using. This field is supported for Visa, Mastercard, Discover, and Diners Club. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown **Litle** Flag that indicates that a Visa cardholder or Mastercard cardholder is in one of the affluent categories. Possible values: - **AFFLUENT**: High income customer with high spending pattern (>100k USD annual income and >40k USD annual card usage). - **MASS AFFLUENT**: High income customer (>100k USD annual income). **Processor specific maximum length**: - Chase Paymentech Solutions: 1 - Litle: 13 | [optional] +**category** | **str** | **CyberSource through VisaNet** Visa product ID. **GPN** Visa or Mastercard product ID. **Litle** Type of card used in the transaction. The only possible value is: - PREPAID: Prepaid Card **RBS WorldPay Atlanta** Type of card used in the transaction. Possible values: - **B**: Business Card - **O**: Noncommercial Card - **R**: Corporate Card - **S**: Purchase Card - **Blank**: Purchase card not supported **Maximum length for processors**: - CyberSource through VisaNet: 3 - GPN: 3 - Litle: 7 - RBS WorldPay Atlanta: 1 | [optional] +**commercial** | **str** | Indicates whether the card is a commercial card, which enables you to include Level II data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] +**group** | **str** | Type of commercial card. This field is supported only for CyberSource through VisaNet. Possible values: - **B**: Business card - **R**: Corporate card - **S**: Purchasing card - **0**: Noncommercial card | [optional] +**health_care** | **str** | Indicates whether the card is a healthcare card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] +**payroll** | **str** | Indicates whether the card is a payroll card. This field is supported for Visa, Discover, Diners Club, and JCB on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] +**level3_eligible** | **str** | Indicates whether the card is eligible for Level III interchange fees, which enables you to include Level III data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] +**pinless_debit** | **str** | Indicates whether the card is a PINless debit card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] +**signature_debit** | **str** | Indicates whether the card is a signature debit card. This information enables you to alter the way an order is processed. For example, you might not want to reauthorize a transaction for a signature debit card, or you might want to perform reversals promptly for a signature debit card. This field is supported for Visa, Mastercard, and Maestro (International) on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] +**prepaid** | **str** | Indicates whether the card is a prepaid card. This information enables you to determine when a gift card or prepaid card is presented for use when establishing a new recurring, installment, or deferred billing relationship. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown | [optional] +**regulated** | **str** | Indicates whether the card is regulated according to the Durbin Amendment. If the card is regulated, the card issuer is subject to price caps and interchange rules. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - **Y**: Yes (assets greater than 10B USD) - **N**: No (assets less than 10B USD) - **X**: Not applicable / Unknown | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponsePaymentInformationCard.md b/docs/PtsV2PaymentsPost201ResponsePaymentInformationCard.md new file mode 100644 index 00000000..f79b23a8 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponsePaymentInformationCard.md @@ -0,0 +1,10 @@ +# PtsV2PaymentsPost201ResponsePaymentInformationCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suffix** | **str** | Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.md b/docs/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.md new file mode 100644 index 00000000..96420707 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.md @@ -0,0 +1,16 @@ +# PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**prefix** | **str** | First six digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. | [optional] +**suffix** | **str** | Last four digits of token. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. | [optional] +**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] +**assurance_level** | **str** | Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. | [optional] +**expiration_month** | **str** | Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. | [optional] +**expiration_year** | **str** | Four-digit year in which the payment network token expires. `Format: YYYY`. | [optional] +**requestor_id** | **str** | Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponsePointOfSaleInformation.md b/docs/PtsV2PaymentsPost201ResponsePointOfSaleInformation.md new file mode 100644 index 00000000..596b6d9e --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponsePointOfSaleInformation.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsPost201ResponsePointOfSaleInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emv** | [**PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv**](PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.md) | | [optional] +**amex_capn_data** | **str** | Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.md b/docs/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.md new file mode 100644 index 00000000..622c8c0b --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.md @@ -0,0 +1,10 @@ +# PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | **str** | EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseProcessorInformation.md b/docs/PtsV2PaymentsPost201ResponseProcessorInformation.md new file mode 100644 index 00000000..a8ef7cc1 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseProcessorInformation.md @@ -0,0 +1,34 @@ +# PtsV2PaymentsPost201ResponseProcessorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**approval_code** | **str** | Authorization code. Returned only when the processor returns this value. | [optional] +**transaction_id** | **str** | Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. | [optional] +**network_transaction_id** | **str** | Description of this field is not available. | [optional] +**provider_transaction_id** | **str** | Description of this field is not available. | [optional] +**response_code** | **str** | For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. | [optional] +**response_code_source** | **str** | Used by Visa only and contains the response source/reason code that identifies the source of the response decision. | [optional] +**response_details** | **str** | This field might contain information about a decline. This field is supported only for **CyberSource through VisaNet**. | [optional] +**response_category_code** | **str** | Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 | [optional] +**forwarded_acquirer_code** | **str** | Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. | [optional] +**avs** | [**PtsV2PaymentsPost201ResponseProcessorInformationAvs**](PtsV2PaymentsPost201ResponseProcessorInformationAvs.md) | | [optional] +**card_verification** | [**PtsV2PaymentsPost201ResponseProcessorInformationCardVerification**](PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.md) | | [optional] +**merchant_advice** | [**PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice**](PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.md) | | [optional] +**electronic_verification_results** | [**PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults**](PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.md) | | [optional] +**customer** | [**PtsV2PaymentsPost201ResponseProcessorInformationCustomer**](PtsV2PaymentsPost201ResponseProcessorInformationCustomer.md) | | [optional] +**consumer_authentication_response** | [**PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse**](PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.md) | | [optional] +**issuer** | [**PtsV2PaymentsPost201ResponseProcessorInformationIssuer**](PtsV2PaymentsPost201ResponseProcessorInformationIssuer.md) | | [optional] +**system_trace_audit_number** | **str** | This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. **American Express Direct** System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. **CyberSource through VisaNet** System trace number that must be printed on the customer’s receipt. | [optional] +**payment_account_reference_number** | **str** | Visa-generated reference number that identifies a card-present transaction for which youprovided one of the following: - Visa primary account number (PAN) - Visa-generated token for a PAN This reference number serves as a link to the cardholder account and to all transactions for that account. | [optional] +**transaction_integrity_code** | **str** | Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - **A1**: EMV or token in a secure, trusted environment - **B1**: EMV or chip equivalent - **C1**: Magnetic stripe - **E1**: Key entered - **U0**: Unclassified For card-not-present transactions, possible values: - **A2**: Digital transactions - **B2**: Authenticated checkout - **C2**: Transaction validation - **D2**: Enhanced data - **E2**: Generic messaging - **U0**: Unclassified For information about these values, contact Mastercard or your acquirer. | [optional] +**amex_verbal_auth_reference_number** | **str** | Referral response number for a verbal authorization with FDMS Nashville when using an American Express card. Give this number to American Express when you call them for the verbal authorization. | [optional] +**sales_slip_number** | **float** | Transaction identifier that CyberSource generates. You have the option of printing the sales slip number on the receipt. This field is supported only for **JCN Gateway**. | [optional] +**master_card_service_code** | **str** | Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service | [optional] +**master_card_service_reply_code** | **str** | Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. | [optional] +**master_card_authentication_type** | **str** | Type of authentication for which the transaction qualifies as determined by the Mastercard authentication service, which confirms the identity of the cardholder. Mastercard provides this value to CyberSource. Possible values: - **1**: Transaction qualifies for Mastercard authentication type 1. - **2**: Transaction qualifies for Mastercard authentication type 2. | [optional] +**name** | **str** | Name of the Processor. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseProcessorInformationAvs.md b/docs/PtsV2PaymentsPost201ResponseProcessorInformationAvs.md new file mode 100644 index 00000000..10e5d5da --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseProcessorInformationAvs.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsPost201ResponseProcessorInformationAvs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | AVS result code. | [optional] +**code_raw** | **str** | AVS result code sent directly from the processor. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of AVS. Use for debugging purposes only. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.md b/docs/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.md new file mode 100644 index 00000000..47408f72 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsPost201ResponseProcessorInformationCardVerification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result_code** | **str** | CVN result code. | [optional] +**result_code_raw** | **str** | CVN result code sent directly from the processor. Returned only when the processor returns this value. `Important` Do not use this field to evaluate the result of card verification. Use for debugging purposes only. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.md b/docs/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.md new file mode 100644 index 00000000..feffcda8 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Mapped response code for Verified by Visa and American Express SafeKey: | [optional] +**code_raw** | **str** | Raw response code sent directly from the processor for Verified by Visa and American Express SafeKey: | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.md b/docs/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.md new file mode 100644 index 00000000..55d64b25 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.md @@ -0,0 +1,10 @@ +# PtsV2PaymentsPost201ResponseProcessorInformationCustomer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_id_result** | **str** | Personal identifier result. This field is supported only for Redecard in Brazil for CyberSource Latin American Processing. If you included _buyerInformation.personalIdentification[].ID_ in the request, this value indicates whether or not _buyerInformation.personalIdentification[].ID_ matched a value in a record on file. Returned only when the personal ID result is returned by the processor. Possible values: - **Y**: Match - **N**: No match - **K**: Not supported - **U**: Unknown - **Z**: No response returned | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.md b/docs/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.md new file mode 100644 index 00000000..d54304cb --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.md @@ -0,0 +1,21 @@ +# PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Mapped Electronic Verification response code for the customer’s name. | [optional] +**code_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s last name | [optional] +**email** | **str** | Mapped Electronic Verification response code for the customer’s email address. | [optional] +**email_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s email address. | [optional] +**phone_number** | **str** | Mapped Electronic Verification response code for the customer’s phone number. | [optional] +**phone_number_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s phone number. | [optional] +**postal_code** | **str** | Mapped Electronic Verification response code for the customer’s postal code. | [optional] +**postal_code_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s postal code. | [optional] +**street** | **str** | Mapped Electronic Verification response code for the customer’s street address. | [optional] +**street_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s street address. | [optional] +**name** | **str** | TODO | [optional] +**name_raw** | **str** | TODO | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseProcessorInformationIssuer.md b/docs/PtsV2PaymentsPost201ResponseProcessorInformationIssuer.md new file mode 100644 index 00000000..cb5afdd6 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseProcessorInformationIssuer.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsPost201ResponseProcessorInformationIssuer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**country** | **str** | Country in which the card was issued. This information enables you to determine whether the card was issued domestically or internationally. Use the two-character ISO Standard Country Codes. This field is supported for Visa, Mastercard, Discover, Diners Club, JCB, and Maestro (International) on Chase Paymentech Solutions. | [optional] +**discretionary_data** | **str** | Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.md b/docs/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.md new file mode 100644 index 00000000..cdc5d476 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Reason the recurring payment transaction was declined. For some processors, this field is used only for Mastercard. For other processors, this field is used for Visa and Mastercard. And for other processors, this field is not implemented. Possible values: - **00**: Response not provided. - **01**: New account information is available. Obtain the new information. - **02**: Try again later. - **03**: Do not try again. Obtain another type of payment from the customer. - **04**: Problem with a token or a partial shipment indicator. - **21**: Recurring payment cancellation service. - **99**: An unknown value was returned from the processor. | [optional] +**code_raw** | **str** | Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. For processor-specific information, see the auth_merchant_advice_code_raw field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost400Response.md b/docs/PtsV2PaymentsPost400Response.md new file mode 100644 index 00000000..d89ebfdb --- /dev/null +++ b/docs/PtsV2PaymentsPost400Response.md @@ -0,0 +1,14 @@ +# PtsV2PaymentsPost400Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reason** | **str** | The reason of the status. | [optional] +**message** | **str** | The detail message related to the status and reason listed above. | [optional] +**details** | [**list[PtsV2PaymentsPost201ResponseErrorInformationDetails]**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost502Response.md b/docs/PtsV2PaymentsPost502Response.md new file mode 100644 index 00000000..efd21660 --- /dev/null +++ b/docs/PtsV2PaymentsPost502Response.md @@ -0,0 +1,13 @@ +# PtsV2PaymentsPost502Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reason** | **str** | The reason of the status. | [optional] +**message** | **str** | The detail message related to the status and reason listed above. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsRefundPost201Response.md b/docs/PtsV2PaymentsRefundPost201Response.md new file mode 100644 index 00000000..a57e0da0 --- /dev/null +++ b/docs/PtsV2PaymentsRefundPost201Response.md @@ -0,0 +1,18 @@ +# PtsV2PaymentsRefundPost201Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**PtsV2PaymentsRefundPost201ResponseLinks**](PtsV2PaymentsRefundPost201ResponseLinks.md) | | [optional] +**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] +**client_reference_information** | [**PtsV2PaymentsPost201ResponseClientReferenceInformation**](PtsV2PaymentsPost201ResponseClientReferenceInformation.md) | | [optional] +**refund_amount_details** | [**PtsV2PaymentsRefundPost201ResponseRefundAmountDetails**](PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.md) | | [optional] +**processor_information** | [**PtsV2PaymentsRefundPost201ResponseProcessorInformation**](PtsV2PaymentsRefundPost201ResponseProcessorInformation.md) | | [optional] +**order_information** | [**PtsV2PaymentsRefundPost201ResponseOrderInformation**](PtsV2PaymentsRefundPost201ResponseOrderInformation.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsRefundPost201ResponseLinks.md b/docs/PtsV2PaymentsRefundPost201ResponseLinks.md new file mode 100644 index 00000000..e185f7fe --- /dev/null +++ b/docs/PtsV2PaymentsRefundPost201ResponseLinks.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsRefundPost201ResponseLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**PtsV2PaymentsPost201ResponseLinksSelf**](PtsV2PaymentsPost201ResponseLinksSelf.md) | | [optional] +**void** | [**PtsV2PaymentsPost201ResponseLinksSelf**](PtsV2PaymentsPost201ResponseLinksSelf.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsRefundPost201ResponseOrderInformation.md b/docs/PtsV2PaymentsRefundPost201ResponseOrderInformation.md new file mode 100644 index 00000000..da3e5a5b --- /dev/null +++ b/docs/PtsV2PaymentsRefundPost201ResponseOrderInformation.md @@ -0,0 +1,10 @@ +# PtsV2PaymentsRefundPost201ResponseOrderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invoice_details** | [**PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails**](PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsRefundPost201ResponseProcessorInformation.md b/docs/PtsV2PaymentsRefundPost201ResponseProcessorInformation.md new file mode 100644 index 00000000..61d7ebf1 --- /dev/null +++ b/docs/PtsV2PaymentsRefundPost201ResponseProcessorInformation.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsRefundPost201ResponseProcessorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_id** | **str** | Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 | [optional] +**forwarded_acquirer_code** | **str** | Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.md b/docs/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.md new file mode 100644 index 00000000..fba36798 --- /dev/null +++ b/docs/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsRefundPost201ResponseRefundAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**refund_amount** | **str** | Total amount of the refund. | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsRefundPost400Response.md b/docs/PtsV2PaymentsRefundPost400Response.md new file mode 100644 index 00000000..7c485699 --- /dev/null +++ b/docs/PtsV2PaymentsRefundPost400Response.md @@ -0,0 +1,14 @@ +# PtsV2PaymentsRefundPost400Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reason** | **str** | The reason of the status. | [optional] +**message** | **str** | The detail message related to the status and reason listed above. | [optional] +**details** | [**list[PtsV2PaymentsPost201ResponseErrorInformationDetails]**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsReversalsPost201Response.md b/docs/PtsV2PaymentsReversalsPost201Response.md new file mode 100644 index 00000000..93c252a7 --- /dev/null +++ b/docs/PtsV2PaymentsReversalsPost201Response.md @@ -0,0 +1,19 @@ +# PtsV2PaymentsReversalsPost201Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**PtsV2PaymentsReversalsPost201ResponseLinks**](PtsV2PaymentsReversalsPost201ResponseLinks.md) | | [optional] +**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] +**client_reference_information** | [**PtsV2PaymentsPost201ResponseClientReferenceInformation**](PtsV2PaymentsPost201ResponseClientReferenceInformation.md) | | [optional] +**reversal_amount_details** | [**PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails**](PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.md) | | [optional] +**processor_information** | [**PtsV2PaymentsReversalsPost201ResponseProcessorInformation**](PtsV2PaymentsReversalsPost201ResponseProcessorInformation.md) | | [optional] +**authorization_information** | [**PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation**](PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.md) | | [optional] +**point_of_sale_information** | [**Ptsv2paymentsidreversalsPointOfSaleInformation**](Ptsv2paymentsidreversalsPointOfSaleInformation.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.md b/docs/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.md new file mode 100644 index 00000000..e9b51afe --- /dev/null +++ b/docs/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.md @@ -0,0 +1,11 @@ +# PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**approval_code** | **str** | The authorization code returned by the processor. | [optional] +**reason_code** | **str** | Reply flag for the original transaction. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsReversalsPost201ResponseLinks.md b/docs/PtsV2PaymentsReversalsPost201ResponseLinks.md new file mode 100644 index 00000000..193ad73b --- /dev/null +++ b/docs/PtsV2PaymentsReversalsPost201ResponseLinks.md @@ -0,0 +1,10 @@ +# PtsV2PaymentsReversalsPost201ResponseLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**PtsV2PaymentsPost201ResponseLinksSelf**](PtsV2PaymentsPost201ResponseLinksSelf.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.md b/docs/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.md new file mode 100644 index 00000000..5fcab470 --- /dev/null +++ b/docs/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.md @@ -0,0 +1,15 @@ +# PtsV2PaymentsReversalsPost201ResponseProcessorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_id** | **str** | Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003 | [optional] +**response_code** | **str** | For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. | [optional] +**response_category_code** | **str** | Processor-defined response category code. The associated detail error code is in the auth_auth_response field or the auth_reversal_auth_ response field depending on which service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3 | [optional] +**forwarded_acquirer_code** | **str** | Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information. | [optional] +**master_card_service_code** | **str** | Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service | [optional] +**master_card_service_reply_code** | **str** | Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - **C**: Service completed successfully. - **F**: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - **I**: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - **T**: Invalid combination of token requestor ID and token. - **U**: Expired token. - **W**: Primary account number (PAN) listed in electronic warning bulletin. Note This field is returned only for **CyberSource through VisaNet**. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.md b/docs/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.md new file mode 100644 index 00000000..3ea7e0e8 --- /dev/null +++ b/docs/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reversed_amount** | **str** | Total reversed amount. | [optional] +**original_transaction_amount** | **str** | Amount of the original transaction. | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsReversalsPost400Response.md b/docs/PtsV2PaymentsReversalsPost400Response.md new file mode 100644 index 00000000..189adc55 --- /dev/null +++ b/docs/PtsV2PaymentsReversalsPost400Response.md @@ -0,0 +1,14 @@ +# PtsV2PaymentsReversalsPost400Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reason** | **str** | The reason of the status. | [optional] +**message** | **str** | The detail message related to the status and reason listed above. | [optional] +**details** | [**list[PtsV2PaymentsPost201ResponseErrorInformationDetails]**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsVoidsPost201Response.md b/docs/PtsV2PaymentsVoidsPost201Response.md new file mode 100644 index 00000000..9a29a64b --- /dev/null +++ b/docs/PtsV2PaymentsVoidsPost201Response.md @@ -0,0 +1,15 @@ +# PtsV2PaymentsVoidsPost201Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**PtsV2PaymentsReversalsPost201ResponseLinks**](PtsV2PaymentsReversalsPost201ResponseLinks.md) | | [optional] +**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**client_reference_information** | [**PtsV2PaymentsPost201ResponseClientReferenceInformation**](PtsV2PaymentsPost201ResponseClientReferenceInformation.md) | | [optional] +**void_amount_details** | [**PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails**](PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.md b/docs/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.md new file mode 100644 index 00000000..8c772d55 --- /dev/null +++ b/docs/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**void_amount** | **str** | Total amount of the void. | [optional] +**original_transaction_amount** | **str** | Amount of the original transaction. | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsVoidsPost400Response.md b/docs/PtsV2PaymentsVoidsPost400Response.md new file mode 100644 index 00000000..dea03458 --- /dev/null +++ b/docs/PtsV2PaymentsVoidsPost400Response.md @@ -0,0 +1,14 @@ +# PtsV2PaymentsVoidsPost400Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reason** | **str** | The reason of the status. | [optional] +**message** | **str** | The detail message related to the status and reason listed above. | [optional] +**details** | [**list[PtsV2PaymentsPost201ResponseErrorInformationDetails]**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PayoutsPost400Response.md b/docs/PtsV2PayoutsPost400Response.md new file mode 100644 index 00000000..a9183113 --- /dev/null +++ b/docs/PtsV2PayoutsPost400Response.md @@ -0,0 +1,14 @@ +# PtsV2PayoutsPost400Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**reason** | **str** | The reason of the status. | [optional] +**message** | **str** | The detail message related to the status and reason listed above. Possible value is: - Your aggregator or acquirer is not accepting transactions from you at this time. - Your aggregator or acquirer is not accepting this transaction. - CyberSource declined the request because the credit card has expired. You might also receive this value if the expiration date you provided does not match the date the issuing bank has on file. - The bank declined the transaction. - The merchant reference number for this authorization request matches the merchant reference number of another authorization request that you sent within the past 15 minutes. Resend the request with a unique merchant reference number. - The credit card number did not pass CyberSource basic checks. - Data provided is not consistent with the request. For example, you requested a product with negative cost. - The request is missing a required field. | [optional] +**details** | [**list[PtsV2PaymentsPost201ResponseErrorInformationDetails]**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PayoutsPostResponse.md b/docs/PtsV2PayoutsPostResponse.md new file mode 100644 index 00000000..6b0745c2 --- /dev/null +++ b/docs/PtsV2PayoutsPostResponse.md @@ -0,0 +1,16 @@ +# PtsV2PayoutsPostResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_reference_information** | [**PtsV2PaymentsPost201ResponseClientReferenceInformation**](PtsV2PaymentsPost201ResponseClientReferenceInformation.md) | | [optional] +**order_information** | [**Ptsv2payoutsOrderInformation**](Ptsv2payoutsOrderInformation.md) | | [optional] +**merchant_information** | [**Ptsv2payoutsMerchantInformation**](Ptsv2payoutsMerchantInformation.md) | | [optional] +**recipient_information** | [**Ptsv2payoutsRecipientInformation**](Ptsv2payoutsRecipientInformation.md) | | [optional] +**sender_information** | [**Ptsv2payoutsSenderInformation**](Ptsv2payoutsSenderInformation.md) | | [optional] +**processing_information** | [**Ptsv2payoutsProcessingInformation**](Ptsv2payoutsProcessingInformation.md) | | [optional] +**payment_information** | [**Ptsv2payoutsPaymentInformation**](Ptsv2payoutsPaymentInformation.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2creditsPointOfSaleInformation.md b/docs/Ptsv2creditsPointOfSaleInformation.md new file mode 100644 index 00000000..66e3b1e8 --- /dev/null +++ b/docs/Ptsv2creditsPointOfSaleInformation.md @@ -0,0 +1,10 @@ +# Ptsv2creditsPointOfSaleInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emv** | [**Ptsv2creditsPointOfSaleInformationEmv**](Ptsv2creditsPointOfSaleInformationEmv.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2creditsPointOfSaleInformationEmv.md b/docs/Ptsv2creditsPointOfSaleInformationEmv.md new file mode 100644 index 00000000..4785c96b --- /dev/null +++ b/docs/Ptsv2creditsPointOfSaleInformationEmv.md @@ -0,0 +1,12 @@ +# Ptsv2creditsPointOfSaleInformationEmv + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | **str** | EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram | [optional] +**fallback** | **bool** | Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. | [optional] [default to False] +**fallback_condition** | **float** | Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2creditsProcessingInformation.md b/docs/Ptsv2creditsProcessingInformation.md new file mode 100644 index 00000000..5ae25a62 --- /dev/null +++ b/docs/Ptsv2creditsProcessingInformation.md @@ -0,0 +1,18 @@ +# Ptsv2creditsProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commerce_indicator** | **str** | Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. | [optional] +**processor_id** | **str** | Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. | [optional] +**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] +**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] +**link_id** | **str** | Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. | [optional] +**report_group** | **str** | Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. | [optional] +**visa_checkout_id** | **str** | Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. | [optional] +**purchase_level** | **str** | Set this field to 3 to indicate that the request includes Level III data. | [optional] +**recurring_options** | [**Ptsv2paymentsidrefundsProcessingInformationRecurringOptions**](Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsAggregatorInformation.md b/docs/Ptsv2paymentsAggregatorInformation.md new file mode 100644 index 00000000..18e68010 --- /dev/null +++ b/docs/Ptsv2paymentsAggregatorInformation.md @@ -0,0 +1,12 @@ +# Ptsv2paymentsAggregatorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aggregator_id** | **str** | Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**name** | **str** | Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**sub_merchant** | [**Ptsv2paymentsAggregatorInformationSubMerchant**](Ptsv2paymentsAggregatorInformationSubMerchant.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsAggregatorInformationSubMerchant.md b/docs/Ptsv2paymentsAggregatorInformationSubMerchant.md new file mode 100644 index 00000000..859351f3 --- /dev/null +++ b/docs/Ptsv2paymentsAggregatorInformationSubMerchant.md @@ -0,0 +1,19 @@ +# Ptsv2paymentsAggregatorInformationSubMerchant + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card_acceptor_id** | **str** | Unique identifier assigned by the payment card company to the sub-merchant. | [optional] +**name** | **str** | Sub-merchant’s business name. | [optional] +**address1** | **str** | First line of the sub-merchant’s street address. | [optional] +**locality** | **str** | Sub-merchant’s city. | [optional] +**administrative_area** | **str** | Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] +**region** | **str** | Sub-merchant’s region. Example `NE` indicates that the sub-merchant is in the northeast region. | [optional] +**postal_code** | **str** | Partial postal code for the sub-merchant’s address. | [optional] +**country** | **str** | Sub-merchant’s country. Use the two-character ISO Standard Country Codes. | [optional] +**email** | **str** | Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 | [optional] +**phone_number** | **str** | Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsBuyerInformation.md b/docs/Ptsv2paymentsBuyerInformation.md new file mode 100644 index 00000000..624b61e0 --- /dev/null +++ b/docs/Ptsv2paymentsBuyerInformation.md @@ -0,0 +1,14 @@ +# Ptsv2paymentsBuyerInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_customer_id** | **str** | Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**date_of_birth** | **str** | Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] +**vat_registration_number** | **str** | Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**personal_identification** | [**list[Ptsv2paymentsBuyerInformationPersonalIdentification]**](Ptsv2paymentsBuyerInformationPersonalIdentification.md) | | [optional] +**hashed_password** | **str** | TODO | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsBuyerInformationPersonalIdentification.md b/docs/Ptsv2paymentsBuyerInformationPersonalIdentification.md new file mode 100644 index 00000000..5532ba09 --- /dev/null +++ b/docs/Ptsv2paymentsBuyerInformationPersonalIdentification.md @@ -0,0 +1,12 @@ +# Ptsv2paymentsBuyerInformationPersonalIdentification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**id** | **str** | Personal Identifier for the customer based on various type. This field is supported only on the processors listed in this description. For processor-specific information, see the personal_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**issued_by** | **str** | Description of this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsClientReferenceInformation.md b/docs/Ptsv2paymentsClientReferenceInformation.md new file mode 100644 index 00000000..a64e2f5d --- /dev/null +++ b/docs/Ptsv2paymentsClientReferenceInformation.md @@ -0,0 +1,12 @@ +# Ptsv2paymentsClientReferenceInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. | [optional] +**transaction_id** | **str** | Identifier that you assign to the transaction. See \"Merchant-Initiated Reversals and Voids,\" page 176 | [optional] +**comments** | **str** | Comments | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsConsumerAuthenticationInformation.md b/docs/Ptsv2paymentsConsumerAuthenticationInformation.md new file mode 100644 index 00000000..4732deb9 --- /dev/null +++ b/docs/Ptsv2paymentsConsumerAuthenticationInformation.md @@ -0,0 +1,17 @@ +# Ptsv2paymentsConsumerAuthenticationInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cavv** | **str** | Cardholder authentication verification value (CAVV). | [optional] +**cavv_algorithm** | **str** | Algorithm used to generate the CAVV for Verified by Visa or the UCAF authentication data for Mastercard SecureCode. | [optional] +**eci_raw** | **str** | Raw electronic commerce indicator (ECI). | [optional] +**pares_status** | **str** | Payer authentication response status. | [optional] +**veres_enrolled** | **str** | Verification response enrollment status. | [optional] +**xid** | **str** | Transaction identifier. | [optional] +**ucaf_authentication_data** | **str** | Universal cardholder authentication field (UCAF) data. | [optional] +**ucaf_collection_indicator** | **str** | Universal cardholder authentication field (UCAF) collection indicator. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsDeviceInformation.md b/docs/Ptsv2paymentsDeviceInformation.md new file mode 100644 index 00000000..8c091a7b --- /dev/null +++ b/docs/Ptsv2paymentsDeviceInformation.md @@ -0,0 +1,12 @@ +# Ptsv2paymentsDeviceInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**host_name** | **str** | DNS resolved hostname from above _ipAddress_. | [optional] +**ip_address** | **str** | IP address of the customer. | [optional] +**user_agent** | **str** | Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsMerchantDefinedInformation.md b/docs/Ptsv2paymentsMerchantDefinedInformation.md new file mode 100644 index 00000000..386b18dd --- /dev/null +++ b/docs/Ptsv2paymentsMerchantDefinedInformation.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsMerchantDefinedInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | Description of this field is not available. | [optional] +**value** | **str** | Description of this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsMerchantInformation.md b/docs/Ptsv2paymentsMerchantInformation.md new file mode 100644 index 00000000..f0f8dccd --- /dev/null +++ b/docs/Ptsv2paymentsMerchantInformation.md @@ -0,0 +1,15 @@ +# Ptsv2paymentsMerchantInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_descriptor** | [**Ptsv2paymentsMerchantInformationMerchantDescriptor**](Ptsv2paymentsMerchantInformationMerchantDescriptor.md) | | [optional] +**sales_organization_id** | **str** | Company ID assigned to an independent sales organization. Get this value from Mastercard. For processor-specific information, see the sales_organization_ID field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**category_code** | **int** | Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**vat_registration_number** | **str** | Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**card_acceptor_reference_number** | **str** | Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**transaction_local_date_time** | **str** | Local date and time at your physical location. Include both the date and time in this field or leave it blank. This field is supported only for **CyberSource through VisaNet**. For processor-specific information, see the transaction_local_date_time field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) `Format: YYYYMMDDhhmmss`, where: - YYYY = year - MM = month - DD = day - hh = hour - mm = minutes - ss = seconds | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsMerchantInformationMerchantDescriptor.md b/docs/Ptsv2paymentsMerchantInformationMerchantDescriptor.md new file mode 100644 index 00000000..53d381ac --- /dev/null +++ b/docs/Ptsv2paymentsMerchantInformationMerchantDescriptor.md @@ -0,0 +1,17 @@ +# Ptsv2paymentsMerchantInformationMerchantDescriptor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) | [optional] +**alternate_name** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**contact** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) | [optional] +**address1** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**locality** | **str** | Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**country** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**postal_code** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**administrative_area** | **str** | Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsMerchantInitiatedTransaction.md b/docs/Ptsv2paymentsMerchantInitiatedTransaction.md new file mode 100644 index 00000000..47215186 --- /dev/null +++ b/docs/Ptsv2paymentsMerchantInitiatedTransaction.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | Reason for the merchant-initiated transaction. Possible values: - **1**: Resubmission - **2**: Delayed charge - **3**: Reauthorization for split shipment - **4**: No show - **5**: Account top up This field is not required for installment payments or recurring payments or when _reAuth.first_ is true. It is required for all other merchant-initiated transactions. This field is supported only for Visa transactions on CyberSource through VisaNet. | [optional] +**previous_transaction_id** | **str** | Transaction identifier that was returned in the payment response field _processorInformation.transactionID_ in the reply message for either the original merchant initiated payment in the series or the previous merchant-initiated payment in the series. <p/> If the current payment request includes a token instead of an account number, the following time limits apply for the value of this field: For a **resubmission**, the transaction ID must be less than 14 days old. For a **delayed charge** or **reauthorization**, the transaction ID must be less than 30 days old. The value for this field does not correspond to any data in the TC 33 capture file. This field is supported only for Visa transactions on CyberSource through VisaNet. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformation.md b/docs/Ptsv2paymentsOrderInformation.md new file mode 100644 index 00000000..e6c6e97b --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformation.md @@ -0,0 +1,15 @@ +# Ptsv2paymentsOrderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount_details** | [**Ptsv2paymentsOrderInformationAmountDetails**](Ptsv2paymentsOrderInformationAmountDetails.md) | | [optional] +**bill_to** | [**Ptsv2paymentsOrderInformationBillTo**](Ptsv2paymentsOrderInformationBillTo.md) | | [optional] +**ship_to** | [**Ptsv2paymentsOrderInformationShipTo**](Ptsv2paymentsOrderInformationShipTo.md) | | [optional] +**line_items** | [**list[Ptsv2paymentsOrderInformationLineItems]**](Ptsv2paymentsOrderInformationLineItems.md) | | [optional] +**invoice_details** | [**Ptsv2paymentsOrderInformationInvoiceDetails**](Ptsv2paymentsOrderInformationInvoiceDetails.md) | | [optional] +**shipping_details** | [**Ptsv2paymentsOrderInformationShippingDetails**](Ptsv2paymentsOrderInformationShippingDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformationAmountDetails.md b/docs/Ptsv2paymentsOrderInformationAmountDetails.md new file mode 100644 index 00000000..745cdbb3 --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformationAmountDetails.md @@ -0,0 +1,28 @@ +# Ptsv2paymentsOrderInformationAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] +**discount_amount** | **str** | Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**duty_amount** | **str** | Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**tax_amount** | **str** | Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**national_tax_included** | **str** | Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**tax_applied_after_discount** | **str** | Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**tax_applied_level** | **str** | Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**tax_type_code** | **str** | For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**freight_amount** | **str** | Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**foreign_amount** | **str** | Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**foreign_currency** | **str** | Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**exchange_rate** | **str** | Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**exchange_rate_time_stamp** | **str** | Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**surcharge** | [**Ptsv2paymentsOrderInformationAmountDetailsSurcharge**](Ptsv2paymentsOrderInformationAmountDetailsSurcharge.md) | | [optional] +**settlement_amount** | **str** | This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. | [optional] +**settlement_currency** | **str** | This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. | [optional] +**amex_additional_amounts** | [**list[Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts]**](Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md) | | [optional] +**tax_details** | [**list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails]**](Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md b/docs/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md new file mode 100644 index 00000000..29b129af --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Additional amount type. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**amount** | **str** | Additional amount. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.md b/docs/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.md new file mode 100644 index 00000000..30291fbc --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsOrderInformationAmountDetailsSurcharge + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**description** | **str** | Description of this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.md b/docs/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.md new file mode 100644 index 00000000..d2f4bae0 --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.md @@ -0,0 +1,15 @@ +# Ptsv2paymentsOrderInformationAmountDetailsTaxDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | This is used to determine what type of tax related data should be inclued under _taxDetails_ object. | [optional] +**amount** | **str** | Please see below table for related decription based on above _type_ field. | type | amount description | |-----------|--------------------| | alternate | Total amount of alternate tax for the order. | | local | Sales tax for the order. | | national | National tax for the order. | | vat | Total amount of VAT or other tax included in the order. | | [optional] +**rate** | **str** | Rate of VAT or other tax for the order. Example 0.040 (=4%) Valid range: 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated) | [optional] +**code** | **str** | Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. | [optional] +**tax_id** | **str** | Your tax ID number to use for the alternate tax amount. Required if you set alternate tax amount to any value, including zero. You may send this field without sending alternate tax amount. | [optional] +**applied** | **bool** | The tax is applied. Valid value is `true` or `false`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformationBillTo.md b/docs/Ptsv2paymentsOrderInformationBillTo.md new file mode 100644 index 00000000..089d1103 --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformationBillTo.md @@ -0,0 +1,26 @@ +# Ptsv2paymentsOrderInformationBillTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**last_name** | **str** | Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**middle_name** | **str** | Customer’s middle name. | [optional] +**name_suffix** | **str** | Customer’s name suffix. | [optional] +**title** | **str** | Title. | [optional] +**company** | **str** | Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**address1** | **str** | First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**address2** | **str** | Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**locality** | **str** | City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**administrative_area** | **str** | State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**postal_code** | **str** | Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**country** | **str** | Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**district** | **str** | Customer’s neighborhood, community, or region (a barrio in Brazil) within the city or municipality. This field is available only on **Cielo**. | [optional] +**building_number** | **str** | Building number in the street address. This field is supported only for: - Cielo transactions. - Redecard customer validation with CyberSource Latin American Processing. | [optional] +**email** | **str** | Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**phone_number** | **str** | Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**phone_type** | **str** | Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformationInvoiceDetails.md b/docs/Ptsv2paymentsOrderInformationInvoiceDetails.md new file mode 100644 index 00000000..84d2f37b --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformationInvoiceDetails.md @@ -0,0 +1,20 @@ +# Ptsv2paymentsOrderInformationInvoiceDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invoice_number** | **str** | Invoice Number. | [optional] +**barcode_number** | **str** | Barcode Number. | [optional] +**expiration_date** | **str** | Expiration Date. | [optional] +**purchase_order_number** | **str** | Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**purchase_order_date** | **str** | Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**purchase_contact_name** | **str** | The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**taxable** | **bool** | Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**vat_invoice_reference_number** | **str** | VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**commodity_code** | **str** | International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**merchandise_code** | **float** | Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. | [optional] +**transaction_advice_addendum** | [**list[Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]**](Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md b/docs/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md new file mode 100644 index 00000000..af0328de --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md @@ -0,0 +1,10 @@ +# Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **str** | Four Transaction Advice Addendum (TAA) fields. These fields are used to display descriptive information about a transaction on the customer’s American Express card statement. When you send TAA fields, start with amexdata_taa1, then ...taa2, and so on. Skipping a TAA field causes subsequent TAA fields to be ignored. To use these fields, contact CyberSource Customer Support to have your account enabled for this feature. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformationLineItems.md b/docs/Ptsv2paymentsOrderInformationLineItems.md new file mode 100644 index 00000000..0966f68d --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformationLineItems.md @@ -0,0 +1,30 @@ +# Ptsv2paymentsOrderInformationLineItems + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**product_code** | **str** | Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. | [optional] +**product_name** | **str** | For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] +**product_sku** | **str** | Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. | [optional] +**quantity** | **float** | For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] +**unit_price** | **str** | Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**unit_of_measure** | **str** | Unit of measure, or unit of measure code, for the item. | [optional] +**total_amount** | **str** | Total amount for the item. Normally calculated as the unit price x quantity. | [optional] +**tax_amount** | **str** | Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. | [optional] +**tax_rate** | **str** | Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). | [optional] +**tax_applied_after_discount** | **str** | Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. | [optional] +**tax_status_indicator** | **str** | Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax | [optional] +**tax_type_code** | **str** | Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. | [optional] +**amount_includes_tax** | **bool** | Flag that indicates whether the tax amount is included in the Line Item Total. | [optional] +**type_of_supply** | **str** | Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services | [optional] +**commodity_code** | **str** | Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. | [optional] +**discount_amount** | **str** | Discount applied to the item. | [optional] +**discount_applied** | **bool** | Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. | [optional] +**discount_rate** | **str** | Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) | [optional] +**invoice_number** | **str** | Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. | [optional] +**tax_details** | [**list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails]**](Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] +**fulfillment_type** | **str** | TODO | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformationShipTo.md b/docs/Ptsv2paymentsOrderInformationShipTo.md new file mode 100644 index 00000000..4f160395 --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformationShipTo.md @@ -0,0 +1,21 @@ +# Ptsv2paymentsOrderInformationShipTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 | [optional] +**last_name** | **str** | Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 | [optional] +**address1** | **str** | First line of the shipping address. | [optional] +**address2** | **str** | Second line of the shipping address. | [optional] +**locality** | **str** | City of the shipping address. | [optional] +**administrative_area** | **str** | State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] +**postal_code** | **str** | Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 | [optional] +**country** | **str** | Country of the shipping address. Use the two character ISO Standard Country Codes. | [optional] +**district** | **str** | Neighborhood, community, or region within a city or municipality. | [optional] +**building_number** | **str** | Building number in the street address. For example, the building number is 187 in the following address: Rua da Quitanda 187 | [optional] +**phone_number** | **str** | Phone number for the shipping address. | [optional] +**company** | **str** | Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsOrderInformationShippingDetails.md b/docs/Ptsv2paymentsOrderInformationShippingDetails.md new file mode 100644 index 00000000..1044dcf9 --- /dev/null +++ b/docs/Ptsv2paymentsOrderInformationShippingDetails.md @@ -0,0 +1,12 @@ +# Ptsv2paymentsOrderInformationShippingDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gift_wrap** | **bool** | Description of this field is not available. | [optional] +**shipping_method** | **str** | Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription | [optional] +**ship_from_postal_code** | **str** | Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsPaymentInformation.md b/docs/Ptsv2paymentsPaymentInformation.md new file mode 100644 index 00000000..0c9bb2b6 --- /dev/null +++ b/docs/Ptsv2paymentsPaymentInformation.md @@ -0,0 +1,13 @@ +# Ptsv2paymentsPaymentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card** | [**Ptsv2paymentsPaymentInformationCard**](Ptsv2paymentsPaymentInformationCard.md) | | [optional] +**tokenized_card** | [**Ptsv2paymentsPaymentInformationTokenizedCard**](Ptsv2paymentsPaymentInformationTokenizedCard.md) | | [optional] +**fluid_data** | [**Ptsv2paymentsPaymentInformationFluidData**](Ptsv2paymentsPaymentInformationFluidData.md) | | [optional] +**customer** | [**Ptsv2paymentsPaymentInformationCustomer**](Ptsv2paymentsPaymentInformationCustomer.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsPaymentInformationCard.md b/docs/Ptsv2paymentsPaymentInformationCard.md new file mode 100644 index 00000000..84e104ae --- /dev/null +++ b/docs/Ptsv2paymentsPaymentInformationCard.md @@ -0,0 +1,21 @@ +# Ptsv2paymentsPaymentInformationCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number** | **str** | Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**expiration_month** | **str** | Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**expiration_year** | **str** | Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] +**use_as** | **str** | Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. | [optional] +**source_account_type** | **str** | Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account | [optional] +**security_code** | **str** | Card Verification Number. | [optional] +**security_code_indicator** | **str** | Flag that indicates whether a CVN code was sent. Possible values: - 0 (default): CVN service not requested. CyberSource uses this default value when you do not include _securityCode_ in the request. - 1 (default): CVN service requested and supported. CyberSource uses this default value when you include _securityCode_ in the request. - 2: CVN on credit card is illegible. - 9: CVN was not imprinted on credit card. | [optional] +**account_encoder_id** | **str** | Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. | [optional] +**issue_number** | **str** | Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. | [optional] +**start_month** | **str** | Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. | [optional] +**start_year** | **str** | Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsPaymentInformationCustomer.md b/docs/Ptsv2paymentsPaymentInformationCustomer.md new file mode 100644 index 00000000..da76c87e --- /dev/null +++ b/docs/Ptsv2paymentsPaymentInformationCustomer.md @@ -0,0 +1,10 @@ +# Ptsv2paymentsPaymentInformationCustomer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_id** | **str** | Unique identifier for the customer's card and billing information. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsPaymentInformationFluidData.md b/docs/Ptsv2paymentsPaymentInformationFluidData.md new file mode 100644 index 00000000..37626fb9 --- /dev/null +++ b/docs/Ptsv2paymentsPaymentInformationFluidData.md @@ -0,0 +1,13 @@ +# Ptsv2paymentsPaymentInformationFluidData + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | Description of this field is not available. | [optional] +**descriptor** | **str** | Format of the encrypted payment data. | [optional] +**value** | **str** | The encrypted payment data value. If using Apple Pay or Samsung Pay, the values are: - Apple Pay: RklEPUNPTU1PTi5BUFBMRS5JTkFQUC5QQVlNRU5U - Samsung Pay: RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ= | [optional] +**encoding** | **str** | Encoding method used to encrypt the payment data. Possible value: Base64 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsPaymentInformationTokenizedCard.md b/docs/Ptsv2paymentsPaymentInformationTokenizedCard.md new file mode 100644 index 00000000..e51b0c04 --- /dev/null +++ b/docs/Ptsv2paymentsPaymentInformationTokenizedCard.md @@ -0,0 +1,19 @@ +# Ptsv2paymentsPaymentInformationTokenizedCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number** | **str** | Customer’s payment network token value. | [optional] +**expiration_month** | **str** | Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. | [optional] +**expiration_year** | **str** | Four-digit year in which the payment network token expires. `Format: YYYY`. | [optional] +**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] +**cryptogram** | **str** | This field is used internally. | [optional] +**requestor_id** | **str** | Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. | [optional] +**transaction_type** | **str** | Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data. | [optional] +**assurance_level** | **str** | Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. | [optional] +**storage_method** | **str** | Type of technology used in the device to store token data. Possible values: - 001: Secure Element (SE) Smart card or memory with restricted access and encryption to prevent data tampering. For storing payment credentials, a SE is tested against a set of requirements defined by the payment networks. `Note` This field is supported only for **FDC Compass**. - 002: Host Card Emulation (HCE) Emulation of a smart card by using software to create a virtual and exact representation of the card. Sensitive data is stored in a database that is hosted in the cloud. For storing payment credentials, a database must meet very stringent security requirements that exceed PCI DSS. `Note` This field is supported only for **FDC Compass**. | [optional] +**security_code** | **str** | CVN. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsPointOfSaleInformation.md b/docs/Ptsv2paymentsPointOfSaleInformation.md new file mode 100644 index 00000000..f57a22ae --- /dev/null +++ b/docs/Ptsv2paymentsPointOfSaleInformation.md @@ -0,0 +1,21 @@ +# Ptsv2paymentsPointOfSaleInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal_id** | **str** | Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. | [optional] +**terminal_serial_number** | **str** | Description of this field is not available. | [optional] +**lane_number** | **str** | Identifier for an alternate terminal at your retail location. You define the value for this field. This field is supported only for MasterCard transactions on FDC Nashville Global. Use the _terminalID_ field to identify the main terminal at your retail location. If your retail location has multiple terminals, use this _alternateTerminalID_ field to identify the terminal used for the transaction. This field is a pass-through, which means that CyberSource does not check the value or modify the value in any way before sending it to the processor. | [optional] +**card_present** | **bool** | Indicates whether the card is present at the time of the transaction. Possible values: - **true**: Card is present. - **false**: Card is not present. | [optional] +**cat_level** | **int** | Type of cardholder-activated terminal. Possible values: - 1: Automated dispensing machine - 2: Self-service terminal - 3: Limited amount terminal - 4: In-flight commerce (IFC) terminal - 5: Radio frequency device - 6: Mobile acceptance terminal - 7: Electronic cash register - 8: E-commerce device at your location - 9: Terminal or cash register that uses a dialup connection to connect to the transaction processing network * Applicable only for CTV for Payouts. | [optional] +**entry_mode** | **str** | Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. | [optional] +**terminal_capability** | **int** | POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. | [optional] +**pin_entry_capability** | **int** | A one-digit code that identifies the capability of terminal to capture PINs. This code does not necessarily mean that a PIN was entered or is included in this message. For Payouts: This field is applicable for CtV. | [optional] +**operating_environment** | **str** | Operating environment. Possible values: - 0: No terminal used or unknown environment. - 1: On merchant premises, attended. - 2: On merchant premises, unattended, or cardholder terminal. Examples: oil, kiosks, self-checkout, home computer, mobile telephone, personal digital assistant (PDA). Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 3: Off merchant premises, attended. Examples: portable POS devices at trade shows, at service calls, or in taxis. - 4: Off merchant premises, unattended, or cardholder terminal. Examples: vending machines, home computer, mobile telephone, PDA. Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 5: On premises of cardholder, unattended. - 9: Unknown delivery mode. - S: Electronic delivery of product. Examples: music, software, or eTickets that are downloaded over the internet. - T: Physical delivery of product. Examples: music or software that is delivered by mail or by a courier. This field is supported only for **American Express Direct** and **CyberSource through VisaNet**. **CyberSource through VisaNet** For MasterCard transactions, the only valid values are 2 and 4. | [optional] +**emv** | [**Ptsv2paymentsPointOfSaleInformationEmv**](Ptsv2paymentsPointOfSaleInformationEmv.md) | | [optional] +**amex_capn_data** | **str** | Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. | [optional] +**track_data** | **str** | Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000? | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsPointOfSaleInformationEmv.md b/docs/Ptsv2paymentsPointOfSaleInformationEmv.md new file mode 100644 index 00000000..49a54ed2 --- /dev/null +++ b/docs/Ptsv2paymentsPointOfSaleInformationEmv.md @@ -0,0 +1,14 @@ +# Ptsv2paymentsPointOfSaleInformationEmv + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | **str** | EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram | [optional] +**cardholder_verification_method** | **float** | Method that was used to verify the cardholder's identity. Possible values: - **0**: No verification - **1**: Signature This field is supported only on **American Express Direct**. | [optional] +**card_sequence_number** | **str** | Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. | [optional] +**fallback** | **bool** | Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. | [optional] [default to False] +**fallback_condition** | **float** | Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsProcessingInformation.md b/docs/Ptsv2paymentsProcessingInformation.md new file mode 100644 index 00000000..5cdf73b9 --- /dev/null +++ b/docs/Ptsv2paymentsProcessingInformation.md @@ -0,0 +1,23 @@ +# Ptsv2paymentsProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capture** | **bool** | Flag that specifies whether to also include capture service in the submitted request or not. | [optional] [default to False] +**processor_id** | **str** | Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. | [optional] +**business_application_id** | **str** | Description of this field is not available. | [optional] +**commerce_indicator** | **str** | Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. | [optional] +**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] +**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] +**link_id** | **str** | Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. | [optional] +**purchase_level** | **str** | Set this field to 3 to indicate that the request includes Level III data. | [optional] +**report_group** | **str** | Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. | [optional] +**visa_checkout_id** | **str** | Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. | [optional] +**issuer** | [**Ptsv2paymentsProcessingInformationIssuer**](Ptsv2paymentsProcessingInformationIssuer.md) | | [optional] +**authorization_options** | [**Ptsv2paymentsProcessingInformationAuthorizationOptions**](Ptsv2paymentsProcessingInformationAuthorizationOptions.md) | | [optional] +**capture_options** | [**Ptsv2paymentsProcessingInformationCaptureOptions**](Ptsv2paymentsProcessingInformationCaptureOptions.md) | | [optional] +**recurring_options** | [**Ptsv2paymentsProcessingInformationRecurringOptions**](Ptsv2paymentsProcessingInformationRecurringOptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsProcessingInformationAuthorizationOptions.md b/docs/Ptsv2paymentsProcessingInformationAuthorizationOptions.md new file mode 100644 index 00000000..0f1cd30c --- /dev/null +++ b/docs/Ptsv2paymentsProcessingInformationAuthorizationOptions.md @@ -0,0 +1,19 @@ +# Ptsv2paymentsProcessingInformationAuthorizationOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_type** | **str** | Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**verbal_auth_code** | **str** | Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**verbal_auth_transaction_id** | **str** | Transaction ID (TID). | [optional] +**auth_indicator** | **str** | Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization For processor-specific information, see the auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**partial_auth_indicator** | **bool** | Flag that indicates whether the transaction is enabled for partial authorization or not. When your request includes this field, this value overrides the information in your CyberSource account. For processor-specific information, see the auth_partial_auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**balance_inquiry** | **bool** | Flag that indicates whether to return balance information. | [optional] +**ignore_avs_result** | **bool** | Flag that indicates whether to allow the capture service to run even when the payment receives an AVS decline. | [optional] [default to False] +**decline_avs_flags** | **list[str]** | An array of AVS flags that cause the reply flag to be returned. `Important` To receive declines for the AVS code N, include the value N in the array. | [optional] +**ignore_cv_result** | **bool** | Flag that indicates whether to allow the capture service to run even when the payment receives a CVN decline. | [optional] [default to False] +**initiator** | [**Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator**](Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.md b/docs/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.md new file mode 100644 index 00000000..5fffc603 --- /dev/null +++ b/docs/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.md @@ -0,0 +1,13 @@ +# Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction. | [optional] +**credential_stored_on_file** | **bool** | Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. | [optional] +**stored_credential_used** | **bool** | Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. | [optional] +**merchant_initiated_transaction** | [**Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction**](Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsProcessingInformationCaptureOptions.md b/docs/Ptsv2paymentsProcessingInformationCaptureOptions.md new file mode 100644 index 00000000..5d71c423 --- /dev/null +++ b/docs/Ptsv2paymentsProcessingInformationCaptureOptions.md @@ -0,0 +1,12 @@ +# Ptsv2paymentsProcessingInformationCaptureOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capture_sequence_number** | **float** | Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 | [optional] +**total_capture_count** | **float** | Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 | [optional] +**date_to_capture** | **str** | Date on which you want the capture to occur. This field is supported only for **CyberSource through VisaNet**. `Format: MMDD` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsProcessingInformationIssuer.md b/docs/Ptsv2paymentsProcessingInformationIssuer.md new file mode 100644 index 00000000..f78f8d3a --- /dev/null +++ b/docs/Ptsv2paymentsProcessingInformationIssuer.md @@ -0,0 +1,10 @@ +# Ptsv2paymentsProcessingInformationIssuer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**discretionary_data** | **str** | Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsProcessingInformationRecurringOptions.md b/docs/Ptsv2paymentsProcessingInformationRecurringOptions.md new file mode 100644 index 00000000..13566140 --- /dev/null +++ b/docs/Ptsv2paymentsProcessingInformationRecurringOptions.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsProcessingInformationRecurringOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**loan_payment** | **bool** | Flag that indicates whether this is a payment towards an existing contractual loan. | [optional] [default to False] +**first_recurring_payment** | **bool** | Flag that indicates whether this transaction is the first in a series of recurring payments. This field is supported only for **Atos**, **FDC Nashville Global**, and **OmniPay Direct**. | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsRecipientInformation.md b/docs/Ptsv2paymentsRecipientInformation.md new file mode 100644 index 00000000..054d5782 --- /dev/null +++ b/docs/Ptsv2paymentsRecipientInformation.md @@ -0,0 +1,12 @@ +# Ptsv2paymentsRecipientInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account number. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] +**last_name** | **str** | Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] +**postal_code** | **str** | Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesAggregatorInformation.md b/docs/Ptsv2paymentsidcapturesAggregatorInformation.md new file mode 100644 index 00000000..b0687e65 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesAggregatorInformation.md @@ -0,0 +1,12 @@ +# Ptsv2paymentsidcapturesAggregatorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aggregator_id** | **str** | Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**name** | **str** | Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**sub_merchant** | [**Ptsv2paymentsidcapturesAggregatorInformationSubMerchant**](Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.md b/docs/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.md new file mode 100644 index 00000000..d91430bd --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.md @@ -0,0 +1,17 @@ +# Ptsv2paymentsidcapturesAggregatorInformationSubMerchant + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Sub-merchant’s business name. | [optional] +**address1** | **str** | First line of the sub-merchant’s street address. | [optional] +**locality** | **str** | Sub-merchant’s city. | [optional] +**administrative_area** | **str** | Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] +**postal_code** | **str** | Partial postal code for the sub-merchant’s address. | [optional] +**country** | **str** | Sub-merchant’s country. Use the two-character ISO Standard Country Codes. | [optional] +**email** | **str** | Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 | [optional] +**phone_number** | **str** | Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesBuyerInformation.md b/docs/Ptsv2paymentsidcapturesBuyerInformation.md new file mode 100644 index 00000000..9aebb175 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesBuyerInformation.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsidcapturesBuyerInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_customer_id** | **str** | Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**vat_registration_number** | **str** | Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesMerchantInformation.md b/docs/Ptsv2paymentsidcapturesMerchantInformation.md new file mode 100644 index 00000000..a7a564b8 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesMerchantInformation.md @@ -0,0 +1,13 @@ +# Ptsv2paymentsidcapturesMerchantInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_descriptor** | [**Ptsv2paymentsMerchantInformationMerchantDescriptor**](Ptsv2paymentsMerchantInformationMerchantDescriptor.md) | | [optional] +**card_acceptor_reference_number** | **str** | Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**category_code** | **int** | Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**vat_registration_number** | **str** | Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesOrderInformation.md b/docs/Ptsv2paymentsidcapturesOrderInformation.md new file mode 100644 index 00000000..abd0c823 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesOrderInformation.md @@ -0,0 +1,15 @@ +# Ptsv2paymentsidcapturesOrderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount_details** | [**Ptsv2paymentsidcapturesOrderInformationAmountDetails**](Ptsv2paymentsidcapturesOrderInformationAmountDetails.md) | | [optional] +**bill_to** | [**Ptsv2paymentsidcapturesOrderInformationBillTo**](Ptsv2paymentsidcapturesOrderInformationBillTo.md) | | [optional] +**ship_to** | [**Ptsv2paymentsidcapturesOrderInformationShipTo**](Ptsv2paymentsidcapturesOrderInformationShipTo.md) | | [optional] +**line_items** | [**list[Ptsv2paymentsOrderInformationLineItems]**](Ptsv2paymentsOrderInformationLineItems.md) | | [optional] +**invoice_details** | [**Ptsv2paymentsidcapturesOrderInformationInvoiceDetails**](Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.md) | | [optional] +**shipping_details** | [**Ptsv2paymentsidcapturesOrderInformationShippingDetails**](Ptsv2paymentsidcapturesOrderInformationShippingDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesOrderInformationAmountDetails.md b/docs/Ptsv2paymentsidcapturesOrderInformationAmountDetails.md new file mode 100644 index 00000000..1b08b402 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesOrderInformationAmountDetails.md @@ -0,0 +1,25 @@ +# Ptsv2paymentsidcapturesOrderInformationAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] +**discount_amount** | **str** | Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**duty_amount** | **str** | Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**tax_amount** | **str** | Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**national_tax_included** | **str** | Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**tax_applied_after_discount** | **str** | Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**tax_applied_level** | **str** | Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**tax_type_code** | **str** | For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**freight_amount** | **str** | Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**foreign_amount** | **str** | Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**foreign_currency** | **str** | Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**exchange_rate** | **str** | Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**exchange_rate_time_stamp** | **str** | Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**amex_additional_amounts** | [**list[Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts]**](Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md) | | [optional] +**tax_details** | [**list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails]**](Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesOrderInformationBillTo.md b/docs/Ptsv2paymentsidcapturesOrderInformationBillTo.md new file mode 100644 index 00000000..fdbef314 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesOrderInformationBillTo.md @@ -0,0 +1,20 @@ +# Ptsv2paymentsidcapturesOrderInformationBillTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**last_name** | **str** | Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**company** | **str** | Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**address1** | **str** | First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**address2** | **str** | Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**locality** | **str** | City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**administrative_area** | **str** | State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**postal_code** | **str** | Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**country** | **str** | Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**email** | **str** | Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**phone_number** | **str** | Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.md b/docs/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.md new file mode 100644 index 00000000..aaab6066 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.md @@ -0,0 +1,16 @@ +# Ptsv2paymentsidcapturesOrderInformationInvoiceDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purchase_order_number** | **str** | Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**purchase_order_date** | **str** | Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**purchase_contact_name** | **str** | The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**taxable** | **bool** | Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**vat_invoice_reference_number** | **str** | VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**commodity_code** | **str** | International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**transaction_advice_addendum** | [**list[Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]**](Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesOrderInformationShipTo.md b/docs/Ptsv2paymentsidcapturesOrderInformationShipTo.md new file mode 100644 index 00000000..cda42cc7 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesOrderInformationShipTo.md @@ -0,0 +1,12 @@ +# Ptsv2paymentsidcapturesOrderInformationShipTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**administrative_area** | **str** | State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] +**country** | **str** | Country of the shipping address. Use the two character ISO Standard Country Codes. | [optional] +**postal_code** | **str** | Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesOrderInformationShippingDetails.md b/docs/Ptsv2paymentsidcapturesOrderInformationShippingDetails.md new file mode 100644 index 00000000..ce0c4b61 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesOrderInformationShippingDetails.md @@ -0,0 +1,10 @@ +# Ptsv2paymentsidcapturesOrderInformationShippingDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ship_from_postal_code** | **str** | Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesPaymentInformation.md b/docs/Ptsv2paymentsidcapturesPaymentInformation.md new file mode 100644 index 00000000..a77bf778 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesPaymentInformation.md @@ -0,0 +1,10 @@ +# Ptsv2paymentsidcapturesPaymentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer** | [**Ptsv2paymentsPaymentInformationCustomer**](Ptsv2paymentsPaymentInformationCustomer.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesPointOfSaleInformation.md b/docs/Ptsv2paymentsidcapturesPointOfSaleInformation.md new file mode 100644 index 00000000..0a8e0e5b --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesPointOfSaleInformation.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsidcapturesPointOfSaleInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emv** | [**Ptsv2paymentsidcapturesPointOfSaleInformationEmv**](Ptsv2paymentsidcapturesPointOfSaleInformationEmv.md) | | [optional] +**amex_capn_data** | **str** | Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.md b/docs/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.md new file mode 100644 index 00000000..b290575c --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsidcapturesPointOfSaleInformationEmv + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | **str** | EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram | [optional] +**fallback** | **bool** | Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesProcessingInformation.md b/docs/Ptsv2paymentsidcapturesProcessingInformation.md new file mode 100644 index 00000000..f6bcb9b9 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesProcessingInformation.md @@ -0,0 +1,18 @@ +# Ptsv2paymentsidcapturesProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] +**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] +**link_id** | **str** | Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. | [optional] +**report_group** | **str** | Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. | [optional] +**visa_checkout_id** | **str** | Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. | [optional] +**purchase_level** | **str** | Set this field to 3 to indicate that the request includes Level III data. | [optional] +**issuer** | [**Ptsv2paymentsProcessingInformationIssuer**](Ptsv2paymentsProcessingInformationIssuer.md) | | [optional] +**authorization_options** | [**Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions**](Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.md) | | [optional] +**capture_options** | [**Ptsv2paymentsidcapturesProcessingInformationCaptureOptions**](Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.md b/docs/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.md new file mode 100644 index 00000000..c375c868 --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.md @@ -0,0 +1,12 @@ +# Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_type** | **str** | Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**verbal_auth_code** | **str** | Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**verbal_auth_transaction_id** | **str** | Transaction ID (TID). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.md b/docs/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.md new file mode 100644 index 00000000..4703d0fd --- /dev/null +++ b/docs/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsidcapturesProcessingInformationCaptureOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capture_sequence_number** | **float** | Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 | [optional] +**total_capture_count** | **float** | Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidrefundsMerchantInformation.md b/docs/Ptsv2paymentsidrefundsMerchantInformation.md new file mode 100644 index 00000000..8eb18d10 --- /dev/null +++ b/docs/Ptsv2paymentsidrefundsMerchantInformation.md @@ -0,0 +1,13 @@ +# Ptsv2paymentsidrefundsMerchantInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_descriptor** | [**Ptsv2paymentsMerchantInformationMerchantDescriptor**](Ptsv2paymentsMerchantInformationMerchantDescriptor.md) | | [optional] +**category_code** | **int** | Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**vat_registration_number** | **str** | Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**card_acceptor_reference_number** | **str** | Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidrefundsOrderInformation.md b/docs/Ptsv2paymentsidrefundsOrderInformation.md new file mode 100644 index 00000000..5f011048 --- /dev/null +++ b/docs/Ptsv2paymentsidrefundsOrderInformation.md @@ -0,0 +1,15 @@ +# Ptsv2paymentsidrefundsOrderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount_details** | [**Ptsv2paymentsidcapturesOrderInformationAmountDetails**](Ptsv2paymentsidcapturesOrderInformationAmountDetails.md) | | [optional] +**bill_to** | [**Ptsv2paymentsidcapturesOrderInformationBillTo**](Ptsv2paymentsidcapturesOrderInformationBillTo.md) | | [optional] +**ship_to** | [**Ptsv2paymentsidcapturesOrderInformationShipTo**](Ptsv2paymentsidcapturesOrderInformationShipTo.md) | | [optional] +**line_items** | [**list[Ptsv2paymentsidrefundsOrderInformationLineItems]**](Ptsv2paymentsidrefundsOrderInformationLineItems.md) | | [optional] +**invoice_details** | [**Ptsv2paymentsidcapturesOrderInformationInvoiceDetails**](Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.md) | | [optional] +**shipping_details** | [**Ptsv2paymentsidcapturesOrderInformationShippingDetails**](Ptsv2paymentsidcapturesOrderInformationShippingDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidrefundsOrderInformationLineItems.md b/docs/Ptsv2paymentsidrefundsOrderInformationLineItems.md new file mode 100644 index 00000000..6a47bc02 --- /dev/null +++ b/docs/Ptsv2paymentsidrefundsOrderInformationLineItems.md @@ -0,0 +1,29 @@ +# Ptsv2paymentsidrefundsOrderInformationLineItems + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**product_code** | **str** | Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. | [optional] +**product_name** | **str** | For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] +**product_sku** | **str** | Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. | [optional] +**quantity** | **float** | For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] +**unit_price** | **str** | Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**unit_of_measure** | **str** | Unit of measure, or unit of measure code, for the item. | [optional] +**total_amount** | **str** | Total amount for the item. Normally calculated as the unit price x quantity. | [optional] +**tax_amount** | **str** | Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. | [optional] +**tax_rate** | **str** | Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). | [optional] +**tax_applied_after_discount** | **str** | Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. | [optional] +**tax_status_indicator** | **str** | Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax | [optional] +**tax_type_code** | **str** | Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. | [optional] +**amount_includes_tax** | **bool** | Flag that indicates whether the tax amount is included in the Line Item Total. | [optional] +**type_of_supply** | **str** | Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services | [optional] +**commodity_code** | **str** | Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. | [optional] +**discount_amount** | **str** | Discount applied to the item. | [optional] +**discount_applied** | **bool** | Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. | [optional] +**discount_rate** | **str** | Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) | [optional] +**invoice_number** | **str** | Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. | [optional] +**tax_details** | [**list[Ptsv2paymentsOrderInformationAmountDetailsTaxDetails]**](Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidrefundsPaymentInformation.md b/docs/Ptsv2paymentsidrefundsPaymentInformation.md new file mode 100644 index 00000000..ad6ebc06 --- /dev/null +++ b/docs/Ptsv2paymentsidrefundsPaymentInformation.md @@ -0,0 +1,10 @@ +# Ptsv2paymentsidrefundsPaymentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card** | [**Ptsv2paymentsidrefundsPaymentInformationCard**](Ptsv2paymentsidrefundsPaymentInformationCard.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidrefundsPaymentInformationCard.md b/docs/Ptsv2paymentsidrefundsPaymentInformationCard.md new file mode 100644 index 00000000..52caa817 --- /dev/null +++ b/docs/Ptsv2paymentsidrefundsPaymentInformationCard.md @@ -0,0 +1,17 @@ +# Ptsv2paymentsidrefundsPaymentInformationCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number** | **str** | Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**expiration_month** | **str** | Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**expiration_year** | **str** | Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] +**account_encoder_id** | **str** | Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. | [optional] +**issue_number** | **str** | Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. | [optional] +**start_month** | **str** | Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. | [optional] +**start_year** | **str** | Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidrefundsPointOfSaleInformation.md b/docs/Ptsv2paymentsidrefundsPointOfSaleInformation.md new file mode 100644 index 00000000..790c33f9 --- /dev/null +++ b/docs/Ptsv2paymentsidrefundsPointOfSaleInformation.md @@ -0,0 +1,10 @@ +# Ptsv2paymentsidrefundsPointOfSaleInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emv** | [**Ptsv2paymentsidcapturesPointOfSaleInformationEmv**](Ptsv2paymentsidcapturesPointOfSaleInformationEmv.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidrefundsProcessingInformation.md b/docs/Ptsv2paymentsidrefundsProcessingInformation.md new file mode 100644 index 00000000..a6f6cdb4 --- /dev/null +++ b/docs/Ptsv2paymentsidrefundsProcessingInformation.md @@ -0,0 +1,16 @@ +# Ptsv2paymentsidrefundsProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] +**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] +**link_id** | **str** | Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. | [optional] +**report_group** | **str** | Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. | [optional] +**visa_checkout_id** | **str** | Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. | [optional] +**purchase_level** | **str** | Set this field to 3 to indicate that the request includes Level III data. | [optional] +**recurring_options** | [**Ptsv2paymentsidrefundsProcessingInformationRecurringOptions**](Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.md b/docs/Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.md new file mode 100644 index 00000000..3bcd22c6 --- /dev/null +++ b/docs/Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.md @@ -0,0 +1,10 @@ +# Ptsv2paymentsidrefundsProcessingInformationRecurringOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**loan_payment** | **bool** | Flag that indicates whether this is a payment towards an existing contractual loan. | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidreversalsClientReferenceInformation.md b/docs/Ptsv2paymentsidreversalsClientReferenceInformation.md new file mode 100644 index 00000000..430abb2d --- /dev/null +++ b/docs/Ptsv2paymentsidreversalsClientReferenceInformation.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsidreversalsClientReferenceInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. | [optional] +**comments** | **str** | Comments | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidreversalsOrderInformation.md b/docs/Ptsv2paymentsidreversalsOrderInformation.md new file mode 100644 index 00000000..fa0760d4 --- /dev/null +++ b/docs/Ptsv2paymentsidreversalsOrderInformation.md @@ -0,0 +1,10 @@ +# Ptsv2paymentsidreversalsOrderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**line_items** | [**list[Ptsv2paymentsidreversalsOrderInformationLineItems]**](Ptsv2paymentsidreversalsOrderInformationLineItems.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidreversalsOrderInformationLineItems.md b/docs/Ptsv2paymentsidreversalsOrderInformationLineItems.md new file mode 100644 index 00000000..e77c23c4 --- /dev/null +++ b/docs/Ptsv2paymentsidreversalsOrderInformationLineItems.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsidreversalsOrderInformationLineItems + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**quantity** | **float** | For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] +**unit_price** | **str** | Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidreversalsPointOfSaleInformation.md b/docs/Ptsv2paymentsidreversalsPointOfSaleInformation.md new file mode 100644 index 00000000..c96a1e07 --- /dev/null +++ b/docs/Ptsv2paymentsidreversalsPointOfSaleInformation.md @@ -0,0 +1,10 @@ +# Ptsv2paymentsidreversalsPointOfSaleInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emv** | [**PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv**](PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidreversalsProcessingInformation.md b/docs/Ptsv2paymentsidreversalsProcessingInformation.md new file mode 100644 index 00000000..9f83022b --- /dev/null +++ b/docs/Ptsv2paymentsidreversalsProcessingInformation.md @@ -0,0 +1,15 @@ +# Ptsv2paymentsidreversalsProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] +**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] +**link_id** | **str** | Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. | [optional] +**report_group** | **str** | Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. | [optional] +**visa_checkout_id** | **str** | Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. | [optional] +**issuer** | [**Ptsv2paymentsProcessingInformationIssuer**](Ptsv2paymentsProcessingInformationIssuer.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidreversalsReversalInformation.md b/docs/Ptsv2paymentsidreversalsReversalInformation.md new file mode 100644 index 00000000..9550fee3 --- /dev/null +++ b/docs/Ptsv2paymentsidreversalsReversalInformation.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsidreversalsReversalInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount_details** | [**Ptsv2paymentsidreversalsReversalInformationAmountDetails**](Ptsv2paymentsidreversalsReversalInformationAmountDetails.md) | | [optional] +**reason** | **str** | Reason for the authorization reversal. Possible value: - 34: Suspected fraud CyberSource ignores this field for processors that do not support this value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsidreversalsReversalInformationAmountDetails.md b/docs/Ptsv2paymentsidreversalsReversalInformationAmountDetails.md new file mode 100644 index 00000000..4c8d53ec --- /dev/null +++ b/docs/Ptsv2paymentsidreversalsReversalInformationAmountDetails.md @@ -0,0 +1,11 @@ +# Ptsv2paymentsidreversalsReversalInformationAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsMerchantInformation.md b/docs/Ptsv2payoutsMerchantInformation.md new file mode 100644 index 00000000..06ea16ff --- /dev/null +++ b/docs/Ptsv2payoutsMerchantInformation.md @@ -0,0 +1,13 @@ +# Ptsv2payoutsMerchantInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category_code** | **int** | Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**submit_local_date_time** | **str** | Time that the transaction was submitted in local time. The time is in hhmmss format. | [optional] +**vat_registration_number** | **str** | Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**merchant_descriptor** | [**Ptsv2payoutsMerchantInformationMerchantDescriptor**](Ptsv2payoutsMerchantInformationMerchantDescriptor.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsMerchantInformationMerchantDescriptor.md b/docs/Ptsv2payoutsMerchantInformationMerchantDescriptor.md new file mode 100644 index 00000000..5af94d1e --- /dev/null +++ b/docs/Ptsv2payoutsMerchantInformationMerchantDescriptor.md @@ -0,0 +1,15 @@ +# Ptsv2payoutsMerchantInformationMerchantDescriptor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) | [optional] +**locality** | **str** | Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**country** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**administrative_area** | **str** | Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**postal_code** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**contact** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsOrderInformation.md b/docs/Ptsv2payoutsOrderInformation.md new file mode 100644 index 00000000..50b47fc9 --- /dev/null +++ b/docs/Ptsv2payoutsOrderInformation.md @@ -0,0 +1,11 @@ +# Ptsv2payoutsOrderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount_details** | [**Ptsv2payoutsOrderInformationAmountDetails**](Ptsv2payoutsOrderInformationAmountDetails.md) | | [optional] +**bill_to** | [**Ptsv2payoutsOrderInformationBillTo**](Ptsv2payoutsOrderInformationBillTo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsOrderInformationAmountDetails.md b/docs/Ptsv2payoutsOrderInformationAmountDetails.md new file mode 100644 index 00000000..09cb9899 --- /dev/null +++ b/docs/Ptsv2payoutsOrderInformationAmountDetails.md @@ -0,0 +1,12 @@ +# Ptsv2payoutsOrderInformationAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] +**surcharge** | [**Ptsv2payoutsOrderInformationAmountDetailsSurcharge**](Ptsv2payoutsOrderInformationAmountDetailsSurcharge.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.md b/docs/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.md new file mode 100644 index 00000000..195cdb0a --- /dev/null +++ b/docs/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.md @@ -0,0 +1,10 @@ +# Ptsv2payoutsOrderInformationAmountDetailsSurcharge + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsOrderInformationBillTo.md b/docs/Ptsv2payoutsOrderInformationBillTo.md new file mode 100644 index 00000000..53975e3b --- /dev/null +++ b/docs/Ptsv2payoutsOrderInformationBillTo.md @@ -0,0 +1,19 @@ +# Ptsv2payoutsOrderInformationBillTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**last_name** | **str** | Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**address1** | **str** | First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**address2** | **str** | Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**country** | **str** | Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**locality** | **str** | City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**administrative_area** | **str** | State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**postal_code** | **str** | Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**phone_number** | **str** | Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**phone_type** | **str** | Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsPaymentInformation.md b/docs/Ptsv2payoutsPaymentInformation.md new file mode 100644 index 00000000..c63535ba --- /dev/null +++ b/docs/Ptsv2payoutsPaymentInformation.md @@ -0,0 +1,10 @@ +# Ptsv2payoutsPaymentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**card** | [**Ptsv2payoutsPaymentInformationCard**](Ptsv2payoutsPaymentInformationCard.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsPaymentInformationCard.md b/docs/Ptsv2payoutsPaymentInformationCard.md new file mode 100644 index 00000000..ce64f39c --- /dev/null +++ b/docs/Ptsv2payoutsPaymentInformationCard.md @@ -0,0 +1,14 @@ +# Ptsv2payoutsPaymentInformationCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] +**number** | **str** | Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**expiration_month** | **str** | Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**expiration_year** | **str** | Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**source_account_type** | **str** | Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsProcessingInformation.md b/docs/Ptsv2payoutsProcessingInformation.md new file mode 100644 index 00000000..567060b8 --- /dev/null +++ b/docs/Ptsv2payoutsProcessingInformation.md @@ -0,0 +1,14 @@ +# Ptsv2payoutsProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**business_application_id** | **str** | Payouts transaction type. Applicable Processors: FDC Compass, Paymentech, CtV Possible values: **Credit Card Bill Payment** - **CP**: credit card bill payment **Funds Disbursement** - **FD**: funds disbursement - **GD**: government disbursement - **MD**: merchant disbursement **Money Transfer** - **AA**: account to account. Sender and receiver are same person. - **PP**: person to person. Sender and receiver are different. **Prepaid Load** - **TU**: top up | [optional] +**network_routing_order** | **str** | This field is optionally used by Push Payments Gateway participants (merchants and acquirers) to get the attributes for specified networks only. The networks specified in this field must be a subset of the information provided during program enrollment. Refer to Sharing Group Code/Network Routing Order. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the network routing order. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities. See https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code , under section 'Network ID and Sharing Group Code' on the left panel for available values | [optional] +**commerce_indicator** | **str** | Type of transaction. Possible value for Fast Payments transactions: - internet | [optional] +**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] +**payouts_options** | [**Ptsv2payoutsProcessingInformationPayoutsOptions**](Ptsv2payoutsProcessingInformationPayoutsOptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsProcessingInformationPayoutsOptions.md b/docs/Ptsv2payoutsProcessingInformationPayoutsOptions.md new file mode 100644 index 00000000..3d143457 --- /dev/null +++ b/docs/Ptsv2payoutsProcessingInformationPayoutsOptions.md @@ -0,0 +1,13 @@ +# Ptsv2payoutsProcessingInformationPayoutsOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**acquirer_merchant_id** | **str** | This field identifies the card acceptor for defining the point of service terminal in both local and interchange environments. An acquirer-assigned code identifying the card acceptor for the transaction. Depending on the acquirer and merchant billing and reporting requirements, the code can represent a merchant, a specific merchant location, or a specific merchant location terminal. Acquiring Institution Identification Code uniquely identifies the merchant. The value from the original is required in any subsequent messages, including reversals, chargebacks, and representments. * Applicable only for CTV for Payouts. | [optional] +**acquirer_bin** | **str** | This code identifies the financial institution acting as the acquirer of this customer transaction. The acquirer is the member or system user that signed the merchant or ADM or dispensed cash. This number is usually Visa-assigned. * Applicable only for CTV for Payouts. | [optional] +**retrieval_reference_number** | **str** | This field contains a number that is used with other data elements as a key to identify and track all messages related to a given cardholder transaction; that is, to a given transaction set. * Applicable only for CTV for Payouts. | [optional] +**account_funding_reference_id** | **str** | Visa-generated transaction identifier (TID) that is unique for each original authorization and financial request. * Applicable only for CTV for Payouts. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsRecipientInformation.md b/docs/Ptsv2payoutsRecipientInformation.md new file mode 100644 index 00000000..9dfebaf0 --- /dev/null +++ b/docs/Ptsv2payoutsRecipientInformation.md @@ -0,0 +1,19 @@ +# Ptsv2payoutsRecipientInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | First name of recipient. characters. * CTV (14) * Paymentech (30) | [optional] +**middle_initial** | **str** | Middle Initial of recipient. Required only for FDCCompass. | [optional] +**last_name** | **str** | Last name of recipient. characters. * CTV (14) * Paymentech (30) | [optional] +**address1** | **str** | Recipient address information. Required only for FDCCompass. | [optional] +**locality** | **str** | Recipient city. Required only for FDCCompass. | [optional] +**administrative_area** | **str** | Recipient State. Required only for FDCCompass. | [optional] +**country** | **str** | Recipient country code. Required only for FDCCompass. | [optional] +**postal_code** | **str** | Recipient postal code. Required only for FDCCompass. | [optional] +**phone_number** | **str** | Recipient phone number. Required only for FDCCompass. | [optional] +**date_of_birth** | **str** | Recipient date of birth in YYYYMMDD format. Required only for FDCCompass. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsSenderInformation.md b/docs/Ptsv2payoutsSenderInformation.md new file mode 100644 index 00000000..d5f78af8 --- /dev/null +++ b/docs/Ptsv2payoutsSenderInformation.md @@ -0,0 +1,23 @@ +# Ptsv2payoutsSenderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reference_number** | **str** | Reference number generated by you that uniquely identifies the sender. | [optional] +**account** | [**Ptsv2payoutsSenderInformationAccount**](Ptsv2payoutsSenderInformationAccount.md) | | [optional] +**first_name** | **str** | First name of sender (Optional). * CTV (14) * Paymentech (30) | [optional] +**middle_initial** | **str** | Recipient middle initial (Optional). | [optional] +**last_name** | **str** | Recipient last name (Optional). * CTV (14) * Paymentech (30) | [optional] +**name** | **str** | Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30) | [optional] +**address1** | **str** | Street address of sender. **Funds Disbursement** This value is the address of the originator sending the funds disbursement. | [optional] +**locality** | **str** | City of sender. **Funds Disbursement** This value is the city of the originator sending the funds disbursement. | [optional] +**administrative_area** | **str** | Sender’s state. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] +**country_code** | **str** | Country of sender. Use the ISO Standard Country Codes. * CTV (3) | [optional] +**postal_code** | **str** | Sender’s postal code. Required only for FDCCompass. | [optional] +**phone_number** | **str** | Sender’s phone number. Required only for FDCCompass. | [optional] +**date_of_birth** | **str** | Sender’s date of birth in YYYYMMDD format. Required only for FDCCompass. | [optional] +**vat_registration_number** | **str** | Customer's government-assigned tax identification number. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2payoutsSenderInformationAccount.md b/docs/Ptsv2payoutsSenderInformationAccount.md new file mode 100644 index 00000000..e7087b23 --- /dev/null +++ b/docs/Ptsv2payoutsSenderInformationAccount.md @@ -0,0 +1,11 @@ +# Ptsv2payoutsSenderInformationAccount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**funds_source** | **str** | Source of funds. Possible values: Paymentech, CTV, FDC Compass: - 01: Credit card - 02: Debit card - 03: Prepaid card Paymentech, CTV - - 04: Cash - 05: Debit or deposit account that is not linked to a Visa card. Includes checking accounts, savings accounts, and proprietary debit or ATM cards. - 06: Credit account that is not linked to a Visa card. Includes credit cards and proprietary lines of credit. FDCCompass - - 04: Deposit Account **Funds Disbursement** This value is most likely 05 to identify that the originator used a deposit account to fund the disbursement. **Credit Card Bill Payment** This value must be 02, 03, 04, or 05. | [optional] +**number** | **str** | The account number of the entity funding the transaction. It is the sender’s account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PurchaseAndRefundDetailsApi.md b/docs/PurchaseAndRefundDetailsApi.md new file mode 100644 index 00000000..e8c69331 --- /dev/null +++ b/docs/PurchaseAndRefundDetailsApi.md @@ -0,0 +1,70 @@ +# CyberSource.PurchaseAndRefundDetailsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_purchase_and_refund_details**](PurchaseAndRefundDetailsApi.md#get_purchase_and_refund_details) | **GET** /reporting/v3/purchase-refund-details | Get Purchase and Refund details + + +# **get_purchase_and_refund_details** +> get_purchase_and_refund_details(start_time, end_time, organization_id=organization_id, payment_subtype=payment_subtype, view_by=view_by, group_name=group_name, offset=offset, limit=limit) + +Get Purchase and Refund details + +Purchase And Refund Details Description + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.PurchaseAndRefundDetailsApi() +start_time = '2013-10-20T19:20:30+01:00' # datetime | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX +end_time = '2013-10-20T19:20:30+01:00' # datetime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX +organization_id = 'organization_id_example' # str | Valid Cybersource Organization Id (optional) +payment_subtype = 'ALL' # str | Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional) (default to ALL) +view_by = 'requestDate' # str | View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional) (default to requestDate) +group_name = 'group_name_example' # str | Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) +offset = 56 # int | Offset of the Purchase and Refund Results. (optional) +limit = 2000 # int | Results count per page. Range(1-2000) (optional) (default to 2000) + +try: + # Get Purchase and Refund details + api_instance.get_purchase_and_refund_details(start_time, end_time, organization_id=organization_id, payment_subtype=payment_subtype, view_by=view_by, group_name=group_name, offset=offset, limit=limit) +except ApiException as e: + print("Exception when calling PurchaseAndRefundDetailsApi->get_purchase_and_refund_details: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_time** | **datetime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX | + **end_time** | **datetime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX | + **organization_id** | **str**| Valid Cybersource Organization Id | [optional] + **payment_subtype** | **str**| Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit | [optional] [default to ALL] + **view_by** | **str**| View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date | [optional] [default to requestDate] + **group_name** | **str**| Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds | [optional] + **offset** | **int**| Offset of the Purchase and Refund Results. | [optional] + **limit** | **int**| Results count per page. Range(1-2000) | [optional] [default to 2000] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RefundApi.md b/docs/RefundApi.md index 2b768aa5..245af35a 100644 --- a/docs/RefundApi.md +++ b/docs/RefundApi.md @@ -1,64 +1,15 @@ # CyberSource.RefundApi -All URIs are relative to *https://api.cybersource.com* +All URIs are relative to *https://apitest.cybersource.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_refund**](RefundApi.md#get_refund) | **GET** /v2/refunds/{id} | Retrieve a Refund -[**refund_capture**](RefundApi.md#refund_capture) | **POST** /v2/captures/{id}/refunds | Refund a Capture -[**refund_payment**](RefundApi.md#refund_payment) | **POST** /v2/payments/{id}/refunds | Refund a Payment +[**refund_capture**](RefundApi.md#refund_capture) | **POST** /pts/v2/captures/{id}/refunds | Refund a Capture +[**refund_payment**](RefundApi.md#refund_payment) | **POST** /pts/v2/payments/{id}/refunds | Refund a Payment -# **get_refund** -> InlineResponse2005 get_refund(id) - -Retrieve a Refund - -Include the refund ID in the GET request to to retrieve the refund details. - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.RefundApi() -id = 'id_example' # str | The refund ID. This ID is returned from a previous refund request. - -try: - # Retrieve a Refund - api_response = api_instance.get_refund(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling RefundApi->get_refund: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| The refund ID. This ID is returned from a previous refund request. | - -### Return type - -[**InlineResponse2005**](InlineResponse2005.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **refund_capture** -> InlineResponse2013 refund_capture(refund_capture_request, id) +> PtsV2PaymentsRefundPost201Response refund_capture(refund_capture_request, id) Refund a Capture @@ -94,7 +45,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2013**](InlineResponse2013.md) +[**PtsV2PaymentsRefundPost201Response**](PtsV2PaymentsRefundPost201Response.md) ### Authorization @@ -102,13 +53,13 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **refund_payment** -> InlineResponse2013 refund_payment(refund_payment_request, id) +> PtsV2PaymentsRefundPost201Response refund_payment(refund_payment_request, id) Refund a Payment @@ -144,7 +95,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2013**](InlineResponse2013.md) +[**PtsV2PaymentsRefundPost201Response**](PtsV2PaymentsRefundPost201Response.md) ### Authorization @@ -152,8 +103,8 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/RefundCaptureRequest.md b/docs/RefundCaptureRequest.md index ca46f1ae..90092bbd 100644 --- a/docs/RefundCaptureRequest.md +++ b/docs/RefundCaptureRequest.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**V2paymentsClientReferenceInformation**](V2paymentsClientReferenceInformation.md) | | [optional] -**processing_information** | [**V2paymentsidrefundsProcessingInformation**](V2paymentsidrefundsProcessingInformation.md) | | [optional] -**payment_information** | [**V2paymentsidrefundsPaymentInformation**](V2paymentsidrefundsPaymentInformation.md) | | [optional] -**order_information** | [**V2paymentsidrefundsOrderInformation**](V2paymentsidrefundsOrderInformation.md) | | [optional] -**buyer_information** | [**V2paymentsidcapturesBuyerInformation**](V2paymentsidcapturesBuyerInformation.md) | | [optional] -**device_information** | [**V2paymentsDeviceInformation**](V2paymentsDeviceInformation.md) | | [optional] -**merchant_information** | [**V2paymentsidrefundsMerchantInformation**](V2paymentsidrefundsMerchantInformation.md) | | [optional] -**aggregator_information** | [**V2paymentsidcapturesAggregatorInformation**](V2paymentsidcapturesAggregatorInformation.md) | | [optional] -**point_of_sale_information** | [**V2paymentsidrefundsPointOfSaleInformation**](V2paymentsidrefundsPointOfSaleInformation.md) | | [optional] -**merchant_defined_information** | [**list[V2paymentsMerchantDefinedInformation]**](V2paymentsMerchantDefinedInformation.md) | TBD | [optional] +**client_reference_information** | [**Ptsv2paymentsClientReferenceInformation**](Ptsv2paymentsClientReferenceInformation.md) | | [optional] +**processing_information** | [**Ptsv2paymentsidrefundsProcessingInformation**](Ptsv2paymentsidrefundsProcessingInformation.md) | | [optional] +**payment_information** | [**Ptsv2paymentsidrefundsPaymentInformation**](Ptsv2paymentsidrefundsPaymentInformation.md) | | [optional] +**order_information** | [**Ptsv2paymentsidrefundsOrderInformation**](Ptsv2paymentsidrefundsOrderInformation.md) | | [optional] +**buyer_information** | [**Ptsv2paymentsidcapturesBuyerInformation**](Ptsv2paymentsidcapturesBuyerInformation.md) | | [optional] +**device_information** | [**Ptsv2paymentsDeviceInformation**](Ptsv2paymentsDeviceInformation.md) | | [optional] +**merchant_information** | [**Ptsv2paymentsidrefundsMerchantInformation**](Ptsv2paymentsidrefundsMerchantInformation.md) | | [optional] +**aggregator_information** | [**Ptsv2paymentsidcapturesAggregatorInformation**](Ptsv2paymentsidcapturesAggregatorInformation.md) | | [optional] +**point_of_sale_information** | [**Ptsv2paymentsidrefundsPointOfSaleInformation**](Ptsv2paymentsidrefundsPointOfSaleInformation.md) | | [optional] +**merchant_defined_information** | [**list[Ptsv2paymentsMerchantDefinedInformation]**](Ptsv2paymentsMerchantDefinedInformation.md) | Description of this field is not available. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RefundPaymentRequest.md b/docs/RefundPaymentRequest.md index 12d7030b..648ee73e 100644 --- a/docs/RefundPaymentRequest.md +++ b/docs/RefundPaymentRequest.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**V2paymentsClientReferenceInformation**](V2paymentsClientReferenceInformation.md) | | [optional] -**processing_information** | [**V2paymentsidrefundsProcessingInformation**](V2paymentsidrefundsProcessingInformation.md) | | [optional] -**payment_information** | [**V2paymentsidrefundsPaymentInformation**](V2paymentsidrefundsPaymentInformation.md) | | [optional] -**order_information** | [**V2paymentsidrefundsOrderInformation**](V2paymentsidrefundsOrderInformation.md) | | [optional] -**buyer_information** | [**V2paymentsidcapturesBuyerInformation**](V2paymentsidcapturesBuyerInformation.md) | | [optional] -**device_information** | [**V2paymentsDeviceInformation**](V2paymentsDeviceInformation.md) | | [optional] -**merchant_information** | [**V2paymentsidrefundsMerchantInformation**](V2paymentsidrefundsMerchantInformation.md) | | [optional] -**aggregator_information** | [**V2paymentsidcapturesAggregatorInformation**](V2paymentsidcapturesAggregatorInformation.md) | | [optional] -**point_of_sale_information** | [**V2paymentsidrefundsPointOfSaleInformation**](V2paymentsidrefundsPointOfSaleInformation.md) | | [optional] -**merchant_defined_information** | [**list[V2paymentsMerchantDefinedInformation]**](V2paymentsMerchantDefinedInformation.md) | TBD | [optional] +**client_reference_information** | [**Ptsv2paymentsClientReferenceInformation**](Ptsv2paymentsClientReferenceInformation.md) | | [optional] +**processing_information** | [**Ptsv2paymentsidrefundsProcessingInformation**](Ptsv2paymentsidrefundsProcessingInformation.md) | | [optional] +**payment_information** | [**Ptsv2paymentsidrefundsPaymentInformation**](Ptsv2paymentsidrefundsPaymentInformation.md) | | [optional] +**order_information** | [**Ptsv2paymentsidrefundsOrderInformation**](Ptsv2paymentsidrefundsOrderInformation.md) | | [optional] +**buyer_information** | [**Ptsv2paymentsidcapturesBuyerInformation**](Ptsv2paymentsidcapturesBuyerInformation.md) | | [optional] +**device_information** | [**Ptsv2paymentsDeviceInformation**](Ptsv2paymentsDeviceInformation.md) | | [optional] +**merchant_information** | [**Ptsv2paymentsidrefundsMerchantInformation**](Ptsv2paymentsidrefundsMerchantInformation.md) | | [optional] +**aggregator_information** | [**Ptsv2paymentsidcapturesAggregatorInformation**](Ptsv2paymentsidcapturesAggregatorInformation.md) | | [optional] +**point_of_sale_information** | [**Ptsv2paymentsidrefundsPointOfSaleInformation**](Ptsv2paymentsidrefundsPointOfSaleInformation.md) | | [optional] +**merchant_defined_information** | [**list[Ptsv2paymentsMerchantDefinedInformation]**](Ptsv2paymentsMerchantDefinedInformation.md) | Description of this field is not available. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ReportDefinitionsApi.md b/docs/ReportDefinitionsApi.md new file mode 100644 index 00000000..f863bc08 --- /dev/null +++ b/docs/ReportDefinitionsApi.md @@ -0,0 +1,108 @@ +# CyberSource.ReportDefinitionsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_resource_info_by_report_definition**](ReportDefinitionsApi.md#get_resource_info_by_report_definition) | **GET** /reporting/v3/report-definitions/{reportDefinitionName} | Get a single report definition information +[**get_resource_v2_info**](ReportDefinitionsApi.md#get_resource_v2_info) | **GET** /reporting/v3/report-definitions | Get reporting resource information + + +# **get_resource_info_by_report_definition** +> ReportingV3ReportDefinitionsNameGet200Response get_resource_info_by_report_definition(report_definition_name, organization_id=organization_id) + +Get a single report definition information + +The report definition name must be used as path parameter exclusive of each other + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ReportDefinitionsApi() +report_definition_name = 'report_definition_name_example' # str | Name of the Report definition to retrieve +organization_id = 'organization_id_example' # str | Valid Cybersource Organization Id (optional) + +try: + # Get a single report definition information + api_response = api_instance.get_resource_info_by_report_definition(report_definition_name, organization_id=organization_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReportDefinitionsApi->get_resource_info_by_report_definition: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_definition_name** | **str**| Name of the Report definition to retrieve | + **organization_id** | **str**| Valid Cybersource Organization Id | [optional] + +### Return type + +[**ReportingV3ReportDefinitionsNameGet200Response**](ReportingV3ReportDefinitionsNameGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_resource_v2_info** +> ReportingV3ReportDefinitionsGet200Response get_resource_v2_info(organization_id=organization_id) + +Get reporting resource information + + + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ReportDefinitionsApi() +organization_id = 'organization_id_example' # str | Valid Cybersource Organization Id (optional) + +try: + # Get reporting resource information + api_response = api_instance.get_resource_v2_info(organization_id=organization_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReportDefinitionsApi->get_resource_v2_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization_id** | **str**| Valid Cybersource Organization Id | [optional] + +### Return type + +[**ReportingV3ReportDefinitionsGet200Response**](ReportingV3ReportDefinitionsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ReportDownloadsApi.md b/docs/ReportDownloadsApi.md new file mode 100644 index 00000000..4e4c7241 --- /dev/null +++ b/docs/ReportDownloadsApi.md @@ -0,0 +1,60 @@ +# CyberSource.ReportDownloadsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**download_report**](ReportDownloadsApi.md#download_report) | **GET** /reporting/v3/report-downloads | Download a report + + +# **download_report** +> download_report(report_date, report_name, organization_id=organization_id) + +Download a report + +Download a report for the given report name on the specified date + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ReportDownloadsApi() +report_date = '2013-10-20' # date | Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd +report_name = 'report_name_example' # str | Name of the report to download +organization_id = 'organization_id_example' # str | Valid Cybersource Organization Id (optional) + +try: + # Download a report + api_instance.download_report(report_date, report_name, organization_id=organization_id) +except ApiException as e: + print("Exception when calling ReportDownloadsApi->download_report: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_date** | **date**| Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd | + **report_name** | **str**| Name of the report to download | + **organization_id** | **str**| Valid Cybersource Organization Id | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/xml, test/csv + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ReportSubscriptionsApi.md b/docs/ReportSubscriptionsApi.md new file mode 100644 index 00000000..7cac305e --- /dev/null +++ b/docs/ReportSubscriptionsApi.md @@ -0,0 +1,200 @@ +# CyberSource.ReportSubscriptionsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_subscription**](ReportSubscriptionsApi.md#create_subscription) | **PUT** /reporting/v3/report-subscriptions/{reportName} | Create Report Subscription for a report name by organization +[**delete_subscription**](ReportSubscriptionsApi.md#delete_subscription) | **DELETE** /reporting/v3/report-subscriptions/{reportName} | Delete subscription of a report name by organization +[**get_all_subscriptions**](ReportSubscriptionsApi.md#get_all_subscriptions) | **GET** /reporting/v3/report-subscriptions | Retrieve all subscriptions by organization +[**get_subscription**](ReportSubscriptionsApi.md#get_subscription) | **GET** /reporting/v3/report-subscriptions/{reportName} | Retrieve subscription for a report name by organization + + +# **create_subscription** +> create_subscription(report_name, request_body) + +Create Report Subscription for a report name by organization + + + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ReportSubscriptionsApi() +report_name = 'report_name_example' # str | Name of the Report to Create +request_body = CyberSource.RequestBody() # RequestBody | Report subscription request payload + +try: + # Create Report Subscription for a report name by organization + api_instance.create_subscription(report_name, request_body) +except ApiException as e: + print("Exception when calling ReportSubscriptionsApi->create_subscription: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_name** | **str**| Name of the Report to Create | + **request_body** | [**RequestBody**](RequestBody.md)| Report subscription request payload | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_subscription** +> delete_subscription(report_name) + +Delete subscription of a report name by organization + + + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ReportSubscriptionsApi() +report_name = 'report_name_example' # str | Name of the Report to Delete + +try: + # Delete subscription of a report name by organization + api_instance.delete_subscription(report_name) +except ApiException as e: + print("Exception when calling ReportSubscriptionsApi->delete_subscription: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_name** | **str**| Name of the Report to Delete | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_all_subscriptions** +> ReportingV3ReportSubscriptionsGet200Response get_all_subscriptions() + +Retrieve all subscriptions by organization + + + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ReportSubscriptionsApi() + +try: + # Retrieve all subscriptions by organization + api_response = api_instance.get_all_subscriptions() + pprint(api_response) +except ApiException as e: + print("Exception when calling ReportSubscriptionsApi->get_all_subscriptions: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ReportingV3ReportSubscriptionsGet200Response**](ReportingV3ReportSubscriptionsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_subscription** +> ReportingV3ReportSubscriptionsGet200ResponseSubscriptions get_subscription(report_name) + +Retrieve subscription for a report name by organization + + + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ReportSubscriptionsApi() +report_name = 'report_name_example' # str | Name of the Report to Retrieve + +try: + # Retrieve subscription for a report name by organization + api_response = api_instance.get_subscription(report_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReportSubscriptionsApi->get_subscription: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_name** | **str**| Name of the Report to Retrieve | + +### Return type + +[**ReportingV3ReportSubscriptionsGet200ResponseSubscriptions**](ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ReportingV3NotificationofChangesGet200Response.md b/docs/ReportingV3NotificationofChangesGet200Response.md new file mode 100644 index 00000000..6ef1e661 --- /dev/null +++ b/docs/ReportingV3NotificationofChangesGet200Response.md @@ -0,0 +1,10 @@ +# ReportingV3NotificationofChangesGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notification_of_changes** | [**list[ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges]**](ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges.md) | List of Notification Of Change Info values | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges.md b/docs/ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges.md new file mode 100644 index 00000000..e490b3c2 --- /dev/null +++ b/docs/ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges.md @@ -0,0 +1,17 @@ +# ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_reference_number** | **str** | Merchant Reference Number | [optional] +**transaction_reference_number** | **str** | Transaction Reference Number | [optional] +**time** | **datetime** | Notification Of Change Date(ISO 8601 Extended) | [optional] +**code** | **str** | Merchant Reference Number | [optional] +**account_type** | **str** | Account Type | [optional] +**routing_number** | **str** | Routing Number | [optional] +**account_number** | **str** | Account Number | [optional] +**consumer_name** | **str** | Consumer Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3NotificationofChangesGet400Response.md b/docs/ReportingV3NotificationofChangesGet400Response.md new file mode 100644 index 00000000..2310c883 --- /dev/null +++ b/docs/ReportingV3NotificationofChangesGet400Response.md @@ -0,0 +1,15 @@ +# ReportingV3NotificationofChangesGet400Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Error code | +**message** | **str** | Error message | +**localization_key** | **str** | Localization Key Name | [optional] +**correlation_id** | **str** | Correlation Id | [optional] +**detail** | **str** | Error Detail | [optional] +**fields** | [**list[ReportingV3NotificationofChangesGet400ResponseFields]**](ReportingV3NotificationofChangesGet400ResponseFields.md) | Error fields List | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3NotificationofChangesGet400ResponseFields.md b/docs/ReportingV3NotificationofChangesGet400ResponseFields.md new file mode 100644 index 00000000..0599d343 --- /dev/null +++ b/docs/ReportingV3NotificationofChangesGet400ResponseFields.md @@ -0,0 +1,12 @@ +# ReportingV3NotificationofChangesGet400ResponseFields + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | **str** | Path of the failed property | [optional] +**message** | **str** | Error description about validation failed field | [optional] +**localization_key** | **str** | Localized Key Name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3ReportDefinitionsGet200Response.md b/docs/ReportingV3ReportDefinitionsGet200Response.md new file mode 100644 index 00000000..40690f6c --- /dev/null +++ b/docs/ReportingV3ReportDefinitionsGet200Response.md @@ -0,0 +1,10 @@ +# ReportingV3ReportDefinitionsGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**report_definitions** | [**list[ReportingV3ReportDefinitionsGet200ResponseReportDefinitions]**](ReportingV3ReportDefinitionsGet200ResponseReportDefinitions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3ReportDefinitionsGet200ResponseReportDefinitions.md b/docs/ReportingV3ReportDefinitionsGet200ResponseReportDefinitions.md new file mode 100644 index 00000000..31df7ffb --- /dev/null +++ b/docs/ReportingV3ReportDefinitionsGet200ResponseReportDefinitions.md @@ -0,0 +1,14 @@ +# ReportingV3ReportDefinitionsGet200ResponseReportDefinitions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**report_definition_id** | **int** | | [optional] +**report_defintion_name** | **str** | | [optional] +**supported_formats** | **list[str]** | | [optional] +**description** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3ReportDefinitionsNameGet200Response.md b/docs/ReportingV3ReportDefinitionsNameGet200Response.md new file mode 100644 index 00000000..b50282ee --- /dev/null +++ b/docs/ReportingV3ReportDefinitionsNameGet200Response.md @@ -0,0 +1,15 @@ +# ReportingV3ReportDefinitionsNameGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**report_definition_id** | **int** | | [optional] +**report_defintion_name** | **str** | | [optional] +**attributes** | [**list[ReportingV3ReportDefinitionsNameGet200ResponseAttributes]**](ReportingV3ReportDefinitionsNameGet200ResponseAttributes.md) | | [optional] +**supported_formats** | **list[str]** | | [optional] +**description** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3ReportDefinitionsNameGet200ResponseAttributes.md b/docs/ReportingV3ReportDefinitionsNameGet200ResponseAttributes.md new file mode 100644 index 00000000..8b91db7e --- /dev/null +++ b/docs/ReportingV3ReportDefinitionsNameGet200ResponseAttributes.md @@ -0,0 +1,16 @@ +# ReportingV3ReportDefinitionsNameGet200ResponseAttributes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**description** | **str** | | [optional] +**filter_type** | **str** | | [optional] +**default** | **bool** | | [optional] +**required** | **bool** | | [optional] +**supported_type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3ReportSubscriptionsGet200Response.md b/docs/ReportingV3ReportSubscriptionsGet200Response.md new file mode 100644 index 00000000..11fefe22 --- /dev/null +++ b/docs/ReportingV3ReportSubscriptionsGet200Response.md @@ -0,0 +1,10 @@ +# ReportingV3ReportSubscriptionsGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscriptions** | [**list[ReportingV3ReportSubscriptionsGet200ResponseSubscriptions]**](ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.md b/docs/ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.md new file mode 100644 index 00000000..83340ab2 --- /dev/null +++ b/docs/ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.md @@ -0,0 +1,11 @@ +# ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**signed_amounts** | **bool** | Indicator to determine whether negative sign infron of amount for all refunded transaction | [optional] +**field_name_convention** | **str** | Specify the field naming convention to be followed in reports (applicable to only csv report formats | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.md b/docs/ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.md new file mode 100644 index 00000000..fae1426c --- /dev/null +++ b/docs/ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.md @@ -0,0 +1,22 @@ +# ReportingV3ReportSubscriptionsGet200ResponseSubscriptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organization_id** | **str** | Organization Id | [optional] +**report_definition_id** | **str** | Report Definition Id | [optional] +**report_definition_name** | **str** | Report Definition | [optional] +**report_mime_type** | **str** | Report Format | [optional] +**report_frequency** | **str** | Report Frequency | [optional] +**report_name** | **str** | Report Name | [optional] +**timezone** | **str** | Time Zone | [optional] +**start_time** | **datetime** | Start Time | [optional] +**start_day** | **int** | Start Day | [optional] +**report_fields** | **list[str]** | List of all fields String values | [optional] +**report_filters** | **list[str]** | List of filters to apply | [optional] +**report_preferences** | [**ReportingV3ReportSubscriptionsGet200ResponseReportPreferences**](ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.md) | | [optional] +**selected_merchant_group_name** | **str** | Selected name of the group. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3ReportsGet200Response.md b/docs/ReportingV3ReportsGet200Response.md new file mode 100644 index 00000000..374246f1 --- /dev/null +++ b/docs/ReportingV3ReportsGet200Response.md @@ -0,0 +1,10 @@ +# ReportingV3ReportsGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[ReportingV3ReportsGet200ResponseReports]**](ReportingV3ReportsGet200ResponseReports.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3ReportsGet200ResponseReports.md b/docs/ReportingV3ReportsGet200ResponseReports.md new file mode 100644 index 00000000..7e00836f --- /dev/null +++ b/docs/ReportingV3ReportsGet200ResponseReports.md @@ -0,0 +1,23 @@ +# ReportingV3ReportsGet200ResponseReports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**report_definition_id** | **str** | Unique Report Identifier of each report type | [optional] +**report_name** | **str** | Name of the report specified by merchant while creating the report | [optional] +**report_mime_type** | **str** | Format of the report to get generated | [optional] +**report_frequency** | **str** | Frequency of the report to get generated | [optional] +**status** | **str** | Status of the report | [optional] +**report_start_time** | **datetime** | Specifies the report start time in ISO 8601 format | [optional] +**report_end_time** | **datetime** | Specifies the report end time in ISO 8601 format | [optional] +**timezone** | **str** | Time Zone | [optional] +**report_id** | **str** | Unique identifier generated for every reports | [optional] +**organization_id** | **str** | CyberSource Merchant Id | [optional] +**queued_time** | **datetime** | Specifies the time of the report in queued in ISO 8601 format | [optional] +**report_generating_time** | **datetime** | Specifies the time of the report started to generate in ISO 8601 format | [optional] +**report_completed_time** | **datetime** | Specifies the time of the report completed the generation in ISO 8601 format | [optional] +**selected_merchant_group_name** | **str** | Selected name of the group | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportingV3ReportsIdGet200Response.md b/docs/ReportingV3ReportsIdGet200Response.md new file mode 100644 index 00000000..569a2fba --- /dev/null +++ b/docs/ReportingV3ReportsIdGet200Response.md @@ -0,0 +1,23 @@ +# ReportingV3ReportsIdGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organization_id** | **str** | CyberSource merchant id | [optional] +**report_id** | **str** | Report ID Value | [optional] +**report_definition_id** | **str** | Report definition Id | [optional] +**report_name** | **str** | Report Name | [optional] +**report_mime_type** | **str** | Report Format | [optional] +**report_frequency** | **str** | Report Frequency Value | [optional] +**report_fields** | **list[str]** | List of Integer Values | [optional] +**report_status** | **str** | Report Status Value | [optional] +**report_start_time** | **datetime** | Report Start Time Value | [optional] +**report_end_time** | **datetime** | Report End Time Value | [optional] +**timezone** | **str** | Time Zone Value | [optional] +**report_filters** | **dict(str, list[str])** | Report Filters | [optional] +**report_preferences** | [**ReportingV3ReportSubscriptionsGet200ResponseReportPreferences**](ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.md) | | [optional] +**selected_merchant_group_name** | **str** | Selected Merchant Group name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsApi.md b/docs/ReportsApi.md new file mode 100644 index 00000000..f014b46f --- /dev/null +++ b/docs/ReportsApi.md @@ -0,0 +1,172 @@ +# CyberSource.ReportsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_report**](ReportsApi.md#create_report) | **POST** /reporting/v3/reports | Create Adhoc Report +[**get_report_by_report_id**](ReportsApi.md#get_report_by_report_id) | **GET** /reporting/v3/reports/{reportId} | Get Report based on reportId +[**search_reports**](ReportsApi.md#search_reports) | **GET** /reporting/v3/reports | Retrieve available reports + + +# **create_report** +> create_report(request_body) + +Create Adhoc Report + +Create one time report + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ReportsApi() +request_body = CyberSource.RequestBody1() # RequestBody1 | Report subscription request payload + +try: + # Create Adhoc Report + api_instance.create_report(request_body) +except ApiException as e: + print("Exception when calling ReportsApi->create_report: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_body** | [**RequestBody1**](RequestBody1.md)| Report subscription request payload | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_report_by_report_id** +> ReportingV3ReportsIdGet200Response get_report_by_report_id(report_id, organization_id=organization_id) + +Get Report based on reportId + +ReportId is mandatory input + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ReportsApi() +report_id = 'report_id_example' # str | Valid Report Id +organization_id = 'organization_id_example' # str | Valid Cybersource Organization Id (optional) + +try: + # Get Report based on reportId + api_response = api_instance.get_report_by_report_id(report_id, organization_id=organization_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReportsApi->get_report_by_report_id: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_id** | **str**| Valid Report Id | + **organization_id** | **str**| Valid Cybersource Organization Id | [optional] + +### Return type + +[**ReportingV3ReportsIdGet200Response**](ReportingV3ReportsIdGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json, application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **search_reports** +> ReportingV3ReportsGet200Response search_reports(start_time, end_time, time_query_type, organization_id=organization_id, report_mime_type=report_mime_type, report_frequency=report_frequency, report_name=report_name, report_definition_id=report_definition_id, report_status=report_status) + +Retrieve available reports + +Retrieve list of available reports + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.ReportsApi() +start_time = '2013-10-20T19:20:30+01:00' # datetime | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX +end_time = '2013-10-20T19:20:30+01:00' # datetime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX +time_query_type = 'time_query_type_example' # str | Specify time you woud like to search +organization_id = 'organization_id_example' # str | Valid Cybersource Organization Id (optional) +report_mime_type = 'report_mime_type_example' # str | Valid Report Format (optional) +report_frequency = 'report_frequency_example' # str | Valid Report Frequency (optional) +report_name = 'report_name_example' # str | Valid Report Name (optional) +report_definition_id = 56 # int | Valid Report Definition Id (optional) +report_status = 'report_status_example' # str | Valid Report Status (optional) + +try: + # Retrieve available reports + api_response = api_instance.search_reports(start_time, end_time, time_query_type, organization_id=organization_id, report_mime_type=report_mime_type, report_frequency=report_frequency, report_name=report_name, report_definition_id=report_definition_id, report_status=report_status) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReportsApi->search_reports: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_time** | **datetime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX | + **end_time** | **datetime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX | + **time_query_type** | **str**| Specify time you woud like to search | + **organization_id** | **str**| Valid Cybersource Organization Id | [optional] + **report_mime_type** | **str**| Valid Report Format | [optional] + **report_frequency** | **str**| Valid Report Frequency | [optional] + **report_name** | **str**| Valid Report Name | [optional] + **report_definition_id** | **int**| Valid Report Definition Id | [optional] + **report_status** | **str**| Valid Report Status | [optional] + +### Return type + +[**ReportingV3ReportsGet200Response**](ReportingV3ReportsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RequestBody.md b/docs/RequestBody.md new file mode 100644 index 00000000..6ab048b4 --- /dev/null +++ b/docs/RequestBody.md @@ -0,0 +1,21 @@ +# RequestBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organization_id** | **str** | | [optional] +**report_definition_name** | **str** | | +**report_fields** | **list[str]** | | +**report_mime_type** | **str** | | [optional] +**report_frequency** | **str** | | [optional] +**report_name** | **str** | | +**timezone** | **str** | | [optional] +**start_time** | **datetime** | | [optional] +**start_day** | **int** | | [optional] +**report_filters** | **dict(str, list[str])** | | [optional] +**report_preferences** | [**ReportingV3ReportSubscriptionsGet200ResponseReportPreferences**](ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.md) | | [optional] +**selected_merchant_group_name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RequestBody1.md b/docs/RequestBody1.md new file mode 100644 index 00000000..2a9e03d4 --- /dev/null +++ b/docs/RequestBody1.md @@ -0,0 +1,20 @@ +# RequestBody1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organization_id** | **str** | Valid CyberSource Organization Id | [optional] +**report_definition_name** | **str** | | [optional] +**report_fields** | **list[str]** | List of fields which needs to get included in a report | [optional] +**report_mime_type** | **str** | Format of the report | [optional] +**report_name** | **str** | Name of the report | [optional] +**timezone** | **str** | Timezone of the report | [optional] +**report_start_time** | **datetime** | Start time of the report | [optional] +**report_end_time** | **datetime** | End time of the report | [optional] +**report_filters** | **dict(str, list[str])** | | [optional] +**report_preferences** | [**ReportingV3ReportSubscriptionsGet200ResponseReportPreferences**](ReportingV3ReportSubscriptionsGet200ResponseReportPreferences.md) | | [optional] +**selected_merchant_group_name** | **str** | Specifies the group name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReversalApi.md b/docs/ReversalApi.md index a019b3f2..ffe99de1 100644 --- a/docs/ReversalApi.md +++ b/docs/ReversalApi.md @@ -1,15 +1,14 @@ # CyberSource.ReversalApi -All URIs are relative to *https://api.cybersource.com* +All URIs are relative to *https://apitest.cybersource.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**auth_reversal**](ReversalApi.md#auth_reversal) | **POST** /v2/payments/{id}/reversals | Process an Authorization Reversal -[**get_auth_reversal**](ReversalApi.md#get_auth_reversal) | **GET** /v2/reversals/{id} | Retrieve an Authorization Reversal +[**auth_reversal**](ReversalApi.md#auth_reversal) | **POST** /pts/v2/payments/{id}/reversals | Process an Authorization Reversal # **auth_reversal** -> InlineResponse2011 auth_reversal(id, auth_reversal_request) +> PtsV2PaymentsReversalsPost201Response auth_reversal(id, auth_reversal_request) Process an Authorization Reversal @@ -45,7 +44,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2011**](InlineResponse2011.md) +[**PtsV2PaymentsReversalsPost201Response**](PtsV2PaymentsReversalsPost201Response.md) ### Authorization @@ -53,56 +52,8 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_auth_reversal** -> InlineResponse2003 get_auth_reversal(id) - -Retrieve an Authorization Reversal - -Include the authorization reversal ID in the GET request to retrieve the authorization reversal details. - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.ReversalApi() -id = 'id_example' # str | The authorization reversal ID returned from a previous authorization reversal request. - -try: - # Retrieve an Authorization Reversal - api_response = api_instance.get_auth_reversal(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling ReversalApi->get_auth_reversal: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| The authorization reversal ID returned from a previous authorization reversal request. | - -### Return type - -[**InlineResponse2003**](InlineResponse2003.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/SearchTransactionsApi.md b/docs/SearchTransactionsApi.md new file mode 100644 index 00000000..f224a7cd --- /dev/null +++ b/docs/SearchTransactionsApi.md @@ -0,0 +1,106 @@ +# CyberSource.SearchTransactionsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_search**](SearchTransactionsApi.md#create_search) | **POST** /tss/v2/searches | Create a search request +[**get_search**](SearchTransactionsApi.md#get_search) | **GET** /tss/v2/searches/{id} | Get Search results + + +# **create_search** +> TssV2TransactionsPost201Response create_search(create_search_request) + +Create a search request + +Create a search request. + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.SearchTransactionsApi() +create_search_request = CyberSource.TssV2TransactionsPostResponse() # TssV2TransactionsPostResponse | + +try: + # Create a search request + api_response = api_instance.create_search(create_search_request) + pprint(api_response) +except ApiException as e: + print("Exception when calling SearchTransactionsApi->create_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_search_request** | [**TssV2TransactionsPostResponse**](TssV2TransactionsPostResponse.md)| | + +### Return type + +[**TssV2TransactionsPost201Response**](TssV2TransactionsPost201Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_search** +> TssV2TransactionsPost201Response get_search(id) + +Get Search results + +Include the Search ID in the GET request to retrieve the search results. + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.SearchTransactionsApi() +id = 'id_example' # str | Search ID. + +try: + # Get Search results + api_response = api_instance.get_search(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling SearchTransactionsApi->get_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Search ID. | + +### Return type + +[**TssV2TransactionsPost201Response**](TssV2TransactionsPost201Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SecureFileShareApi.md b/docs/SecureFileShareApi.md new file mode 100644 index 00000000..54f985f8 --- /dev/null +++ b/docs/SecureFileShareApi.md @@ -0,0 +1,111 @@ +# CyberSource.SecureFileShareApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_file**](SecureFileShareApi.md#get_file) | **GET** /v1/files/{fileId} | Download a file with file identifier +[**get_file_details**](SecureFileShareApi.md#get_file_details) | **GET** /v1/file-details | Get list of files + + +# **get_file** +> get_file(file_id, organization_id=organization_id) + +Download a file with file identifier + +Download a file for the given file identifier + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.SecureFileShareApi() +file_id = 'file_id_example' # str | Unique identifier for each file +organization_id = 'organization_id_example' # str | Valid Cybersource Organization Id (optional) + +try: + # Download a file with file identifier + api_instance.get_file(file_id, organization_id=organization_id) +except ApiException as e: + print("Exception when calling SecureFileShareApi->get_file: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_id** | **str**| Unique identifier for each file | + **organization_id** | **str**| Valid Cybersource Organization Id | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/xml, text/csv, application/pdf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_file_details** +> V1FileDetailsGet200Response get_file_details(start_date, end_date, organization_id=organization_id) + +Get list of files + +Get list of files and it's information of them available inside the report directory + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.SecureFileShareApi() +start_date = '2013-10-20' # date | Valid start date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd +end_date = '2013-10-20' # date | Valid end date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd +organization_id = 'organization_id_example' # str | Valid Cybersource Organization Id (optional) + +try: + # Get list of files + api_response = api_instance.get_file_details(start_date, end_date, organization_id=organization_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling SecureFileShareApi->get_file_details: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_date** | **date**| Valid start date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd | + **end_date** | **date**| Valid end date in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd | + **organization_id** | **str**| Valid Cybersource Organization Id | [optional] + +### Return type + +[**V1FileDetailsGet200Response**](V1FileDetailsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TmsV1InstrumentidentifiersDelete409Response.md b/docs/TmsV1InstrumentidentifiersDelete409Response.md new file mode 100644 index 00000000..c7554c99 --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersDelete409Response.md @@ -0,0 +1,10 @@ +# TmsV1InstrumentidentifiersDelete409Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**TmsV1InstrumentidentifiersDelete409ResponseLinks**](TmsV1InstrumentidentifiersDelete409ResponseLinks.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1InstrumentidentifiersDelete409ResponseLinks.md b/docs/TmsV1InstrumentidentifiersDelete409ResponseLinks.md new file mode 100644 index 00000000..6836f08b --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersDelete409ResponseLinks.md @@ -0,0 +1,10 @@ +# TmsV1InstrumentidentifiersDelete409ResponseLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_instruments** | [**TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments**](TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments.md b/docs/TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments.md new file mode 100644 index 00000000..5b004142 --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments.md @@ -0,0 +1,10 @@ +# TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.md b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.md new file mode 100644 index 00000000..9b2efe2f --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response.md @@ -0,0 +1,16 @@ +# TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks**](TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.md) | | [optional] +**object** | **str** | Shows the response is a collection of objects. | [optional] +**offset** | **str** | The offset parameter supplied in the request. | [optional] +**limit** | **str** | The limit parameter supplied in the request. | [optional] +**count** | **str** | The number of Payment Instruments returned in the array. | [optional] +**total** | **str** | The total number of Payment Instruments associated with the Instrument Identifier in the zero-based dataset. | [optional] +**embedded** | **object** | Array of Payment Instruments returned for the supplied Instrument Identifier. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.md b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.md new file mode 100644 index 00000000..2256d3a2 --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks.md @@ -0,0 +1,14 @@ +# TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf**](TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf.md) | | [optional] +**first** | [**TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst**](TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst.md) | | [optional] +**prev** | [**TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev**](TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev.md) | | [optional] +**next** | [**TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext**](TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext.md) | | [optional] +**last** | [**TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast**](TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst.md b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst.md new file mode 100644 index 00000000..d2e158f8 --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst.md @@ -0,0 +1,10 @@ +# TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | A link to the collection starting at offset zero for the supplied limit. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast.md b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast.md new file mode 100644 index 00000000..2b826648 --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast.md @@ -0,0 +1,10 @@ +# TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | A link to the last collection containing the remaining objects. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext.md b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext.md new file mode 100644 index 00000000..c58dc1c0 --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext.md @@ -0,0 +1,10 @@ +# TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | A link to the next collection starting at the supplied offset plus the supplied limit. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev.md b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev.md new file mode 100644 index 00000000..4bd71512 --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev.md @@ -0,0 +1,10 @@ +# TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf.md b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf.md new file mode 100644 index 00000000..314416b7 --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf.md @@ -0,0 +1,10 @@ +# TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | A link to the current requested collection. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1InstrumentidentifiersPost200Response.md b/docs/TmsV1InstrumentidentifiersPost200Response.md new file mode 100644 index 00000000..15835a81 --- /dev/null +++ b/docs/TmsV1InstrumentidentifiersPost200Response.md @@ -0,0 +1,17 @@ +# TmsV1InstrumentidentifiersPost200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Tmsv1instrumentidentifiersLinks**](Tmsv1instrumentidentifiersLinks.md) | | [optional] +**id** | **str** | Unique identification number assigned by CyberSource to the submitted request. | [optional] +**object** | **str** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional] +**state** | **str** | Current state of the token. | [optional] +**card** | [**Tmsv1instrumentidentifiersCard**](Tmsv1instrumentidentifiersCard.md) | | [optional] +**bank_account** | [**Tmsv1instrumentidentifiersBankAccount**](Tmsv1instrumentidentifiersBankAccount.md) | | [optional] +**processing_information** | [**Tmsv1instrumentidentifiersProcessingInformation**](Tmsv1instrumentidentifiersProcessingInformation.md) | | [optional] +**metadata** | [**Tmsv1instrumentidentifiersMetadata**](Tmsv1instrumentidentifiersMetadata.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TmsV1PaymentinstrumentsPost201Response.md b/docs/TmsV1PaymentinstrumentsPost201Response.md new file mode 100644 index 00000000..0c590bfd --- /dev/null +++ b/docs/TmsV1PaymentinstrumentsPost201Response.md @@ -0,0 +1,21 @@ +# TmsV1PaymentinstrumentsPost201Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Tmsv1instrumentidentifiersLinks**](Tmsv1instrumentidentifiersLinks.md) | | [optional] +**id** | **str** | Unique identification number assigned by CyberSource to the submitted request. | [optional] +**object** | **str** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional] +**state** | **str** | Current state of the token. | [optional] +**bank_account** | [**Tmsv1paymentinstrumentsBankAccount**](Tmsv1paymentinstrumentsBankAccount.md) | | [optional] +**card** | [**Tmsv1paymentinstrumentsCard**](Tmsv1paymentinstrumentsCard.md) | | [optional] +**buyer_information** | [**Tmsv1paymentinstrumentsBuyerInformation**](Tmsv1paymentinstrumentsBuyerInformation.md) | | [optional] +**bill_to** | [**Tmsv1paymentinstrumentsBillTo**](Tmsv1paymentinstrumentsBillTo.md) | | [optional] +**processing_information** | [**Tmsv1paymentinstrumentsProcessingInformation**](Tmsv1paymentinstrumentsProcessingInformation.md) | | [optional] +**merchant_information** | [**Tmsv1paymentinstrumentsMerchantInformation**](Tmsv1paymentinstrumentsMerchantInformation.md) | | [optional] +**meta_data** | [**Tmsv1instrumentidentifiersMetadata**](Tmsv1instrumentidentifiersMetadata.md) | | [optional] +**instrument_identifier** | [**Tmsv1paymentinstrumentsInstrumentIdentifier**](Tmsv1paymentinstrumentsInstrumentIdentifier.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1instrumentidentifiersBankAccount.md b/docs/Tmsv1instrumentidentifiersBankAccount.md new file mode 100644 index 00000000..ae5a6669 --- /dev/null +++ b/docs/Tmsv1instrumentidentifiersBankAccount.md @@ -0,0 +1,11 @@ +# Tmsv1instrumentidentifiersBankAccount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number** | **str** | Bank account number. | [optional] +**routing_number** | **str** | Routing number. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1instrumentidentifiersCard.md b/docs/Tmsv1instrumentidentifiersCard.md new file mode 100644 index 00000000..107aad83 --- /dev/null +++ b/docs/Tmsv1instrumentidentifiersCard.md @@ -0,0 +1,10 @@ +# Tmsv1instrumentidentifiersCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number** | **str** | Credit card number (PAN). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1instrumentidentifiersDetails.md b/docs/Tmsv1instrumentidentifiersDetails.md new file mode 100644 index 00000000..0d62bae1 --- /dev/null +++ b/docs/Tmsv1instrumentidentifiersDetails.md @@ -0,0 +1,11 @@ +# Tmsv1instrumentidentifiersDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the field that threw the error. | [optional] +**location** | **str** | The location of the field that threw the error. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1instrumentidentifiersLinks.md b/docs/Tmsv1instrumentidentifiersLinks.md new file mode 100644 index 00000000..77a9b17f --- /dev/null +++ b/docs/Tmsv1instrumentidentifiersLinks.md @@ -0,0 +1,12 @@ +# Tmsv1instrumentidentifiersLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**Tmsv1instrumentidentifiersLinksSelf**](Tmsv1instrumentidentifiersLinksSelf.md) | | [optional] +**ancestor** | [**Tmsv1instrumentidentifiersLinksSelf**](Tmsv1instrumentidentifiersLinksSelf.md) | | [optional] +**successor** | [**Tmsv1instrumentidentifiersLinksSelf**](Tmsv1instrumentidentifiersLinksSelf.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1instrumentidentifiersLinksSelf.md b/docs/Tmsv1instrumentidentifiersLinksSelf.md new file mode 100644 index 00000000..b454db9b --- /dev/null +++ b/docs/Tmsv1instrumentidentifiersLinksSelf.md @@ -0,0 +1,10 @@ +# Tmsv1instrumentidentifiersLinksSelf + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1instrumentidentifiersMerchantInitiatedTransaction.md b/docs/Tmsv1instrumentidentifiersMerchantInitiatedTransaction.md new file mode 100644 index 00000000..62e345e6 --- /dev/null +++ b/docs/Tmsv1instrumentidentifiersMerchantInitiatedTransaction.md @@ -0,0 +1,10 @@ +# Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**previous_transaction_id** | **str** | Previous Consumer Initiated Transaction Id. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1instrumentidentifiersMetadata.md b/docs/Tmsv1instrumentidentifiersMetadata.md new file mode 100644 index 00000000..41c52871 --- /dev/null +++ b/docs/Tmsv1instrumentidentifiersMetadata.md @@ -0,0 +1,10 @@ +# Tmsv1instrumentidentifiersMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creator** | **str** | The creator of the token. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1instrumentidentifiersProcessingInformation.md b/docs/Tmsv1instrumentidentifiersProcessingInformation.md new file mode 100644 index 00000000..79ef3d7f --- /dev/null +++ b/docs/Tmsv1instrumentidentifiersProcessingInformation.md @@ -0,0 +1,10 @@ +# Tmsv1instrumentidentifiersProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authorization_options** | [**Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions**](Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions.md b/docs/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions.md new file mode 100644 index 00000000..391deea5 --- /dev/null +++ b/docs/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions.md @@ -0,0 +1,10 @@ +# Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**initiator** | [**Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator**](Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.md b/docs/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.md new file mode 100644 index 00000000..23d4c648 --- /dev/null +++ b/docs/Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator.md @@ -0,0 +1,10 @@ +# Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_initiated_transaction** | [**Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction**](Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsBankAccount.md b/docs/Tmsv1paymentinstrumentsBankAccount.md new file mode 100644 index 00000000..1abbcad2 --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsBankAccount.md @@ -0,0 +1,10 @@ +# Tmsv1paymentinstrumentsBankAccount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Type of Bank Account. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsBillTo.md b/docs/Tmsv1paymentinstrumentsBillTo.md new file mode 100644 index 00000000..ca8a8375 --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsBillTo.md @@ -0,0 +1,20 @@ +# Tmsv1paymentinstrumentsBillTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | Bill to First Name. | [optional] +**last_name** | **str** | Bill to Last Name. | [optional] +**company** | **str** | Bill to Company. | [optional] +**address1** | **str** | Bill to Address Line 1. | [optional] +**address2** | **str** | Bill to Address Line 2. | [optional] +**locality** | **str** | Bill to City. | [optional] +**administrative_area** | **str** | Bill to State. | [optional] +**postal_code** | **str** | Bill to Postal Code. | [optional] +**country** | **str** | Bill to Country. Accepts input in the ISO 3166-1 standard, stores as ISO 3166-1-Alpha-2 | [optional] +**email** | **str** | Valid Bill to Email. | [optional] +**phone_number** | **str** | Bill to Phone Number. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsBuyerInformation.md b/docs/Tmsv1paymentinstrumentsBuyerInformation.md new file mode 100644 index 00000000..fdec54c2 --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsBuyerInformation.md @@ -0,0 +1,13 @@ +# Tmsv1paymentinstrumentsBuyerInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**company_tax_id** | **str** | Company Tax ID. | [optional] +**currency** | **str** | Currency. Accepts input in the ISO 4217 standard, stores as ISO 4217 Alpha | [optional] +**date_o_birth** | **str** | Date of birth YYYY-MM-DD. | [optional] +**personal_identification** | [**list[Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification]**](Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsBuyerInformationIssuedBy.md b/docs/Tmsv1paymentinstrumentsBuyerInformationIssuedBy.md new file mode 100644 index 00000000..3ff7f9b6 --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsBuyerInformationIssuedBy.md @@ -0,0 +1,10 @@ +# Tmsv1paymentinstrumentsBuyerInformationIssuedBy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**administrative_area** | **str** | State or province where the identification was issued. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.md b/docs/Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.md new file mode 100644 index 00000000..7bdca420 --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification.md @@ -0,0 +1,12 @@ +# Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Identification Number. | [optional] +**type** | **str** | Type of personal identification. | [optional] +**issued_by** | [**Tmsv1paymentinstrumentsBuyerInformationIssuedBy**](Tmsv1paymentinstrumentsBuyerInformationIssuedBy.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsCard.md b/docs/Tmsv1paymentinstrumentsCard.md new file mode 100644 index 00000000..05c310c7 --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsCard.md @@ -0,0 +1,16 @@ +# Tmsv1paymentinstrumentsCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expiration_month** | **str** | Credit card expiration month. | [optional] +**expiration_year** | **str** | Credit card expiration year. | [optional] +**type** | **str** | Credit card brand. | [optional] +**issue_number** | **str** | Credit card issue number. | [optional] +**start_month** | **str** | Credit card start month. | [optional] +**start_year** | **str** | Credit card start year. | [optional] +**use_as** | **str** | Card Use As Field. Supported value of \"pinless debit\" only. Only for use with Pinless Debit tokens. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsInstrumentIdentifier.md b/docs/Tmsv1paymentinstrumentsInstrumentIdentifier.md new file mode 100644 index 00000000..59ded580 --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsInstrumentIdentifier.md @@ -0,0 +1,17 @@ +# Tmsv1paymentinstrumentsInstrumentIdentifier + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Tmsv1instrumentidentifiersLinks**](Tmsv1instrumentidentifiersLinks.md) | | [optional] +**object** | **str** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional] +**state** | **str** | Current state of the token. | [optional] +**id** | **str** | The id of the existing instrument identifier to be linked to the newly created payment instrument. | [optional] +**card** | [**Tmsv1instrumentidentifiersCard**](Tmsv1instrumentidentifiersCard.md) | | [optional] +**bank_account** | [**Tmsv1instrumentidentifiersBankAccount**](Tmsv1instrumentidentifiersBankAccount.md) | | [optional] +**processing_information** | [**Tmsv1instrumentidentifiersProcessingInformation**](Tmsv1instrumentidentifiersProcessingInformation.md) | | [optional] +**metadata** | [**Tmsv1instrumentidentifiersMetadata**](Tmsv1instrumentidentifiersMetadata.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsMerchantInformation.md b/docs/Tmsv1paymentinstrumentsMerchantInformation.md new file mode 100644 index 00000000..16f8346b --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsMerchantInformation.md @@ -0,0 +1,10 @@ +# Tmsv1paymentinstrumentsMerchantInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_descriptor** | [**Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor**](Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor.md b/docs/Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor.md new file mode 100644 index 00000000..0a044ad1 --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor.md @@ -0,0 +1,10 @@ +# Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alternate_name** | **str** | Alternate information for your business. This API field overrides the company entry description value in your CyberSource account. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsProcessingInformation.md b/docs/Tmsv1paymentinstrumentsProcessingInformation.md new file mode 100644 index 00000000..3b28f1ed --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsProcessingInformation.md @@ -0,0 +1,11 @@ +# Tmsv1paymentinstrumentsProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bill_payment_program_enabled** | **bool** | Bill Payment Program Enabled. | [optional] +**bank_transfer_options** | [**Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions**](Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions.md b/docs/Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions.md new file mode 100644 index 00000000..4e1da5ff --- /dev/null +++ b/docs/Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions.md @@ -0,0 +1,10 @@ +# Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sec_code** | **str** | Authorization method used for the transaction.(acceptable values are CCD, PPD, TEL, WEB). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TokenizationApi.md b/docs/TokenizationApi.md deleted file mode 100644 index 2f2edc9d..00000000 --- a/docs/TokenizationApi.md +++ /dev/null @@ -1,57 +0,0 @@ -# CyberSource.TokenizationApi - -All URIs are relative to *https://api.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**tokenize**](TokenizationApi.md#tokenize) | **POST** /payments/flex/v1/tokens/ | Tokenize card - - -# **tokenize** -> InlineResponse2001 tokenize(tokenize_request=tokenize_request) - -Tokenize card - -Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser. - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.TokenizationApi() -tokenize_request = CyberSource.TokenizeRequest() # TokenizeRequest | (optional) - -try: - # Tokenize card - api_response = api_instance.tokenize(tokenize_request=tokenize_request) - pprint(api_response) -except ApiException as e: - print("Exception when calling TokenizationApi->tokenize: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tokenize_request** | [**TokenizeRequest**](TokenizeRequest.md)| | [optional] - -### Return type - -[**InlineResponse2001**](InlineResponse2001.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/TokenizeParameters.md b/docs/TokenizeParameters.md index 07f0298b..df081386 100644 --- a/docs/TokenizeParameters.md +++ b/docs/TokenizeParameters.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key_id** | **str** | Unique identifier for the generated token. This is obtained from the Generate Key request. See the [Java Script and Java examples] (http://apps.cybersource.com/library/documentation/dev_guides/Secure_Acceptance_Flex/Key/html) on how to import the key and encrypt using the imported key. | [optional] -**card_info** | [**Paymentsflexv1tokensCardInfo**](Paymentsflexv1tokensCardInfo.md) | | [optional] +**card_info** | [**Flexv1tokensCardInfo**](Flexv1tokensCardInfo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TokenizeRequest.md b/docs/TokenizeRequest.md index 41336089..964fa759 100644 --- a/docs/TokenizeRequest.md +++ b/docs/TokenizeRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key_id** | **str** | Unique identifier for the generated token. This is obtained from the Generate Key request. See the [Java Script and Java examples] (http://apps.cybersource.com/library/documentation/dev_guides/Secure_Acceptance_Flex/Key/html) on how to import the key and encrypt using the imported key. | [optional] -**card_info** | [**Paymentsflexv1tokensCardInfo**](Paymentsflexv1tokensCardInfo.md) | | [optional] +**card_info** | [**Flexv1tokensCardInfo**](Flexv1tokensCardInfo.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TransactionBatchApi.md b/docs/TransactionBatchApi.md new file mode 100644 index 00000000..6828eaff --- /dev/null +++ b/docs/TransactionBatchApi.md @@ -0,0 +1,56 @@ +# CyberSource.TransactionBatchApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**pts_v1_transaction_batches_id_get**](TransactionBatchApi.md#pts_v1_transaction_batches_id_get) | **GET** /pts/v1/transaction-batches/{id} | Get an individual batch file Details processed through the Offline Transaction Submission Services + + +# **pts_v1_transaction_batches_id_get** +> pts_v1_transaction_batches_id_get(id) + +Get an individual batch file Details processed through the Offline Transaction Submission Services + +Provide the search range + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.TransactionBatchApi() +id = 'id_example' # str | The batch id assigned for the template. + +try: + # Get an individual batch file Details processed through the Offline Transaction Submission Services + api_instance.pts_v1_transaction_batches_id_get(id) +except ApiException as e: + print("Exception when calling TransactionBatchApi->pts_v1_transaction_batches_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The batch id assigned for the template. | + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TransactionBatchesApi.md b/docs/TransactionBatchesApi.md new file mode 100644 index 00000000..8746b29f --- /dev/null +++ b/docs/TransactionBatchesApi.md @@ -0,0 +1,59 @@ +# CyberSource.TransactionBatchesApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**pts_v1_transaction_batches_get**](TransactionBatchesApi.md#pts_v1_transaction_batches_get) | **GET** /pts/v1/transaction-batches | Get a list of batch files processed through the Offline Transaction Submission Services + + +# **pts_v1_transaction_batches_get** +> PtsV1TransactionBatchesGet200Response pts_v1_transaction_batches_get(start_time, end_time) + +Get a list of batch files processed through the Offline Transaction Submission Services + +Provide the search range + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.TransactionBatchesApi() +start_time = '2013-10-20T19:20:30+01:00' # datetime | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ +end_time = '2013-10-20T19:20:30+01:00' # datetime | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ + +try: + # Get a list of batch files processed through the Offline Transaction Submission Services + api_response = api_instance.pts_v1_transaction_batches_get(start_time, end_time) + pprint(api_response) +except ApiException as e: + print("Exception when calling TransactionBatchesApi->pts_v1_transaction_batches_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_time** | **datetime**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ | + **end_time** | **datetime**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ | + +### Return type + +[**PtsV1TransactionBatchesGet200Response**](PtsV1TransactionBatchesGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TransactionDetailsApi.md b/docs/TransactionDetailsApi.md new file mode 100644 index 00000000..fdbee1ee --- /dev/null +++ b/docs/TransactionDetailsApi.md @@ -0,0 +1,57 @@ +# CyberSource.TransactionDetailsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_transaction**](TransactionDetailsApi.md#get_transaction) | **GET** /tss/v2/transactions/{id} | Retrieve a Transaction + + +# **get_transaction** +> TssV2TransactionsGet200Response get_transaction(id) + +Retrieve a Transaction + +Include the Request ID in the GET request to retrieve the transaction details. + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.TransactionDetailsApi() +id = 'id_example' # str | Request ID. + +try: + # Retrieve a Transaction + api_response = api_instance.get_transaction(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling TransactionDetailsApi->get_transaction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Request ID. | + +### Return type + +[**TssV2TransactionsGet200Response**](TssV2TransactionsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TssV2TransactionsGet200Response.md b/docs/TssV2TransactionsGet200Response.md new file mode 100644 index 00000000..72e8e8c8 --- /dev/null +++ b/docs/TssV2TransactionsGet200Response.md @@ -0,0 +1,33 @@ +# TssV2TransactionsGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] +**root_id** | **str** | Payment Request Id | [optional] +**reconciliation_id** | **str** | The reconciliation id for the submitted transaction. This value is not returned for all processors. | [optional] +**merchant_id** | **str** | The description for this field is not available. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**application_information** | [**TssV2TransactionsGet200ResponseApplicationInformation**](TssV2TransactionsGet200ResponseApplicationInformation.md) | | [optional] +**buyer_information** | [**TssV2TransactionsGet200ResponseBuyerInformation**](TssV2TransactionsGet200ResponseBuyerInformation.md) | | [optional] +**client_reference_information** | [**TssV2TransactionsGet200ResponseClientReferenceInformation**](TssV2TransactionsGet200ResponseClientReferenceInformation.md) | | [optional] +**consumer_authentication_information** | [**TssV2TransactionsGet200ResponseConsumerAuthenticationInformation**](TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.md) | | [optional] +**device_information** | [**TssV2TransactionsGet200ResponseDeviceInformation**](TssV2TransactionsGet200ResponseDeviceInformation.md) | | [optional] +**error_information** | [**TssV2TransactionsGet200ResponseErrorInformation**](TssV2TransactionsGet200ResponseErrorInformation.md) | | [optional] +**installment_information** | [**TssV2TransactionsGet200ResponseInstallmentInformation**](TssV2TransactionsGet200ResponseInstallmentInformation.md) | | [optional] +**fraud_marking_information** | [**TssV2TransactionsGet200ResponseFraudMarkingInformation**](TssV2TransactionsGet200ResponseFraudMarkingInformation.md) | | [optional] +**merchant_defined_information** | [**list[TssV2TransactionsGet200ResponseMerchantDefinedInformation]**](TssV2TransactionsGet200ResponseMerchantDefinedInformation.md) | The description for this field is not available. | [optional] +**merchant_information** | [**TssV2TransactionsGet200ResponseMerchantInformation**](TssV2TransactionsGet200ResponseMerchantInformation.md) | | [optional] +**order_information** | [**TssV2TransactionsGet200ResponseOrderInformation**](TssV2TransactionsGet200ResponseOrderInformation.md) | | [optional] +**payment_information** | [**TssV2TransactionsGet200ResponsePaymentInformation**](TssV2TransactionsGet200ResponsePaymentInformation.md) | | [optional] +**processing_information** | [**TssV2TransactionsGet200ResponseProcessingInformation**](TssV2TransactionsGet200ResponseProcessingInformation.md) | | [optional] +**processor_information** | [**TssV2TransactionsGet200ResponseProcessorInformation**](TssV2TransactionsGet200ResponseProcessorInformation.md) | | [optional] +**point_of_sale_information** | [**TssV2TransactionsGet200ResponsePointOfSaleInformation**](TssV2TransactionsGet200ResponsePointOfSaleInformation.md) | | [optional] +**risk_information** | [**TssV2TransactionsGet200ResponseRiskInformation**](TssV2TransactionsGet200ResponseRiskInformation.md) | | [optional] +**sender_information** | [**TssV2TransactionsGet200ResponseSenderInformation**](TssV2TransactionsGet200ResponseSenderInformation.md) | | [optional] +**links** | [**PtsV2PaymentsReversalsPost201ResponseLinks**](PtsV2PaymentsReversalsPost201ResponseLinks.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseApplicationInformation.md b/docs/TssV2TransactionsGet200ResponseApplicationInformation.md new file mode 100644 index 00000000..f8bee2e2 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseApplicationInformation.md @@ -0,0 +1,14 @@ +# TssV2TransactionsGet200ResponseApplicationInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | The status of the submitted transaction. | [optional] +**reason_code** | **str** | The description for this field is not available. | [optional] +**r_code** | **str** | The description for this field is not available. | [optional] +**r_flag** | **str** | The description for this field is not available. | [optional] +**applications** | [**list[TssV2TransactionsGet200ResponseApplicationInformationApplications]**](TssV2TransactionsGet200ResponseApplicationInformationApplications.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseApplicationInformationApplications.md b/docs/TssV2TransactionsGet200ResponseApplicationInformationApplications.md new file mode 100644 index 00000000..288d5929 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseApplicationInformationApplications.md @@ -0,0 +1,17 @@ +# TssV2TransactionsGet200ResponseApplicationInformationApplications + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The description for this field is not available. | [optional] +**status** | **str** | The description for this field is not available. | [optional] +**reason_code** | **str** | The description for this field is not available. | [optional] +**r_code** | **str** | The description for this field is not available. | [optional] +**r_flag** | **str** | The description for this field is not available. | [optional] +**reconciliation_id** | **str** | The description for this field is not available. | [optional] +**r_message** | **str** | The description for this field is not available. | [optional] +**return_code** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseBuyerInformation.md b/docs/TssV2TransactionsGet200ResponseBuyerInformation.md new file mode 100644 index 00000000..b43a8099 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseBuyerInformation.md @@ -0,0 +1,11 @@ +# TssV2TransactionsGet200ResponseBuyerInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_customer_id** | **str** | Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**hashed_password** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseClientReferenceInformation.md b/docs/TssV2TransactionsGet200ResponseClientReferenceInformation.md new file mode 100644 index 00000000..9b869e87 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseClientReferenceInformation.md @@ -0,0 +1,14 @@ +# TssV2TransactionsGet200ResponseClientReferenceInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. | [optional] +**application_version** | **str** | The description for this field is not available. | [optional] +**application_name** | **str** | The application name of client which is used to submit the request. | [optional] +**application_user** | **str** | The description for this field is not available. | [optional] +**comments** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.md b/docs/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.md new file mode 100644 index 00000000..60e12efd --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.md @@ -0,0 +1,13 @@ +# TssV2TransactionsGet200ResponseConsumerAuthenticationInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eci_raw** | **str** | Raw electronic commerce indicator (ECI). | [optional] +**cavv** | **str** | Cardholder authentication verification value (CAVV). | [optional] +**xid** | **str** | Transaction identifier. | [optional] +**transaction_id** | **str** | Payer auth Transaction identifier. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseDeviceInformation.md b/docs/TssV2TransactionsGet200ResponseDeviceInformation.md new file mode 100644 index 00000000..22e6ca42 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseDeviceInformation.md @@ -0,0 +1,12 @@ +# TssV2TransactionsGet200ResponseDeviceInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip_address** | **str** | IP address of the customer. | [optional] +**host_name** | **str** | DNS resolved hostname from above _ipAddress_. | [optional] +**cookies_accepted** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseErrorInformation.md b/docs/TssV2TransactionsGet200ResponseErrorInformation.md new file mode 100644 index 00000000..990f203b --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseErrorInformation.md @@ -0,0 +1,12 @@ +# TssV2TransactionsGet200ResponseErrorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | The description for this field is not available. | [optional] +**message** | **str** | The description for this field is not available. | [optional] +**details** | [**list[PtsV2PaymentsPost201ResponseErrorInformationDetails]**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseFraudMarkingInformation.md b/docs/TssV2TransactionsGet200ResponseFraudMarkingInformation.md new file mode 100644 index 00000000..4d8e67ab --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseFraudMarkingInformation.md @@ -0,0 +1,10 @@ +# TssV2TransactionsGet200ResponseFraudMarkingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseInstallmentInformation.md b/docs/TssV2TransactionsGet200ResponseInstallmentInformation.md new file mode 100644 index 00000000..a3f4ddc8 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseInstallmentInformation.md @@ -0,0 +1,10 @@ +# TssV2TransactionsGet200ResponseInstallmentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number_of_installments** | **str** | Number of Installments. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseMerchantDefinedInformation.md b/docs/TssV2TransactionsGet200ResponseMerchantDefinedInformation.md new file mode 100644 index 00000000..a9f2f58d --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseMerchantDefinedInformation.md @@ -0,0 +1,11 @@ +# TssV2TransactionsGet200ResponseMerchantDefinedInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | The description for this field is not available. | [optional] +**value** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseMerchantInformation.md b/docs/TssV2TransactionsGet200ResponseMerchantInformation.md new file mode 100644 index 00000000..6dbe047b --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseMerchantInformation.md @@ -0,0 +1,10 @@ +# TssV2TransactionsGet200ResponseMerchantInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_descriptor** | [**TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor**](TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.md b/docs/TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.md new file mode 100644 index 00000000..4e914604 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.md @@ -0,0 +1,10 @@ +# TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseOrderInformation.md b/docs/TssV2TransactionsGet200ResponseOrderInformation.md new file mode 100644 index 00000000..754ad74b --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseOrderInformation.md @@ -0,0 +1,14 @@ +# TssV2TransactionsGet200ResponseOrderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bill_to** | [**TssV2TransactionsGet200ResponseOrderInformationBillTo**](TssV2TransactionsGet200ResponseOrderInformationBillTo.md) | | [optional] +**ship_to** | [**TssV2TransactionsGet200ResponseOrderInformationShipTo**](TssV2TransactionsGet200ResponseOrderInformationShipTo.md) | | [optional] +**line_items** | [**list[TssV2TransactionsGet200ResponseOrderInformationLineItems]**](TssV2TransactionsGet200ResponseOrderInformationLineItems.md) | Transaction Line Item data. | [optional] +**amount_details** | [**TssV2TransactionsGet200ResponseOrderInformationAmountDetails**](TssV2TransactionsGet200ResponseOrderInformationAmountDetails.md) | | [optional] +**shipping_details** | [**TssV2TransactionsGet200ResponseOrderInformationShippingDetails**](TssV2TransactionsGet200ResponseOrderInformationShippingDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.md b/docs/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.md new file mode 100644 index 00000000..34966bf5 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.md @@ -0,0 +1,13 @@ +# TssV2TransactionsGet200ResponseOrderInformationAmountDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] +**tax_amount** | **str** | Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] +**authorized_amount** | **str** | Amount that was authorized. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseOrderInformationBillTo.md b/docs/TssV2TransactionsGet200ResponseOrderInformationBillTo.md new file mode 100644 index 00000000..8781ded9 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseOrderInformationBillTo.md @@ -0,0 +1,23 @@ +# TssV2TransactionsGet200ResponseOrderInformationBillTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**last_name** | **str** | Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**middel_name** | **str** | Customer’s middle name. | [optional] +**name_suffix** | **str** | Customer’s name suffix. | [optional] +**address1** | **str** | First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**address2** | **str** | Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**locality** | **str** | City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**administrative_area** | **str** | State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**postal_code** | **str** | Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**company** | **str** | Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**email** | **str** | Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**country** | **str** | Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**title** | **str** | Title. | [optional] +**phone_number** | **str** | Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseOrderInformationLineItems.md b/docs/TssV2TransactionsGet200ResponseOrderInformationLineItems.md new file mode 100644 index 00000000..ae6b668b --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseOrderInformationLineItems.md @@ -0,0 +1,16 @@ +# TssV2TransactionsGet200ResponseOrderInformationLineItems + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**product_code** | **str** | Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. | [optional] +**product_name** | **str** | For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] +**product_sku** | **str** | Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. | [optional] +**tax_amount** | **str** | Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. | [optional] +**quantity** | **float** | For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] +**unit_price** | **str** | Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**fulfillment_type** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseOrderInformationShipTo.md b/docs/TssV2TransactionsGet200ResponseOrderInformationShipTo.md new file mode 100644 index 00000000..b69fda5b --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseOrderInformationShipTo.md @@ -0,0 +1,19 @@ +# TssV2TransactionsGet200ResponseOrderInformationShipTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 | [optional] +**last_name** | **str** | Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 | [optional] +**address1** | **str** | First line of the shipping address. | [optional] +**address2** | **str** | Second line of the shipping address. | [optional] +**locality** | **str** | City of the shipping address. | [optional] +**administrative_area** | **str** | State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] +**postal_code** | **str** | Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 | [optional] +**company** | **str** | Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**country** | **str** | Country of the shipping address. Use the two character ISO Standard Country Codes. | [optional] +**phone_number** | **str** | Phone number for the shipping address. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.md b/docs/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.md new file mode 100644 index 00000000..90a13d77 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.md @@ -0,0 +1,11 @@ +# TssV2TransactionsGet200ResponseOrderInformationShippingDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gift_wrap** | **bool** | The description for this field is not available. | [optional] +**shipping_method** | **str** | Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponsePaymentInformation.md b/docs/TssV2TransactionsGet200ResponsePaymentInformation.md new file mode 100644 index 00000000..3e714a0c --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponsePaymentInformation.md @@ -0,0 +1,15 @@ +# TssV2TransactionsGet200ResponsePaymentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_type** | [**TssV2TransactionsGet200ResponsePaymentInformationPaymentType**](TssV2TransactionsGet200ResponsePaymentInformationPaymentType.md) | | [optional] +**customer** | [**Ptsv2paymentsPaymentInformationCustomer**](Ptsv2paymentsPaymentInformationCustomer.md) | | [optional] +**card** | [**TssV2TransactionsGet200ResponsePaymentInformationCard**](TssV2TransactionsGet200ResponsePaymentInformationCard.md) | | [optional] +**invoice** | [**TssV2TransactionsGet200ResponsePaymentInformationInvoice**](TssV2TransactionsGet200ResponsePaymentInformationInvoice.md) | | [optional] +**bank** | [**TssV2TransactionsGet200ResponsePaymentInformationBank**](TssV2TransactionsGet200ResponsePaymentInformationBank.md) | | [optional] +**account_features** | [**TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures**](TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.md b/docs/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.md new file mode 100644 index 00000000..4c29f011 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.md @@ -0,0 +1,12 @@ +# TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**balance_amount** | **str** | Remaining balance on the account. | [optional] +**previous_balance_amount** | **str** | Remaining balance on the account. | [optional] +**currency** | **str** | Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponsePaymentInformationBank.md b/docs/TssV2TransactionsGet200ResponsePaymentInformationBank.md new file mode 100644 index 00000000..aa28efa1 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponsePaymentInformationBank.md @@ -0,0 +1,16 @@ +# TssV2TransactionsGet200ResponsePaymentInformationBank + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**routing_number** | **str** | The description for this field is not available. | [optional] +**branch_code** | **str** | The description for this field is not available. | [optional] +**swift_code** | **str** | The description for this field is not available. | [optional] +**bank_code** | **str** | The description for this field is not available. | [optional] +**iban** | **str** | The description for this field is not available. | [optional] +**account** | [**TssV2TransactionsGet200ResponsePaymentInformationBankAccount**](TssV2TransactionsGet200ResponsePaymentInformationBankAccount.md) | | [optional] +**mandate** | [**TssV2TransactionsGet200ResponsePaymentInformationBankMandate**](TssV2TransactionsGet200ResponsePaymentInformationBankMandate.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.md b/docs/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.md new file mode 100644 index 00000000..9a02070a --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.md @@ -0,0 +1,16 @@ +# TssV2TransactionsGet200ResponsePaymentInformationBankAccount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suffix** | **str** | The description for this field is not available. | [optional] +**prefix** | **str** | The description for this field is not available. | [optional] +**check_number** | **str** | The description for this field is not available. | [optional] +**type** | **str** | The description for this field is not available. | [optional] +**name** | **str** | The description for this field is not available. | [optional] +**check_digit** | **str** | The description for this field is not available. | [optional] +**encoder_id** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponsePaymentInformationBankMandate.md b/docs/TssV2TransactionsGet200ResponsePaymentInformationBankMandate.md new file mode 100644 index 00000000..526465f3 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponsePaymentInformationBankMandate.md @@ -0,0 +1,12 @@ +# TssV2TransactionsGet200ResponsePaymentInformationBankMandate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reference_number** | **str** | The description for this field is not available. | [optional] +**recurring_type** | **str** | The description for this field is not available. | [optional] +**id** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponsePaymentInformationCard.md b/docs/TssV2TransactionsGet200ResponsePaymentInformationCard.md new file mode 100644 index 00000000..181c720c --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponsePaymentInformationCard.md @@ -0,0 +1,19 @@ +# TssV2TransactionsGet200ResponsePaymentInformationCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suffix** | **str** | Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. | [optional] +**prefix** | **str** | The description for this field is not available. | [optional] +**expiration_month** | **str** | Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**expiration_year** | **str** | Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**start_month** | **str** | Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. | [optional] +**start_year** | **str** | Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. | [optional] +**issue_number** | **str** | Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. | [optional] +**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] +**account_encoder_id** | **str** | Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. | [optional] +**use_as** | **str** | Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponsePaymentInformationInvoice.md b/docs/TssV2TransactionsGet200ResponsePaymentInformationInvoice.md new file mode 100644 index 00000000..1584793b --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponsePaymentInformationInvoice.md @@ -0,0 +1,12 @@ +# TssV2TransactionsGet200ResponsePaymentInformationInvoice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number** | **str** | Invoice Number. | [optional] +**barcode_number** | **str** | Barcode Number. | [optional] +**expiration_date** | **str** | Expiration Date. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponsePaymentInformationPaymentType.md b/docs/TssV2TransactionsGet200ResponsePaymentInformationPaymentType.md new file mode 100644 index 00000000..43c3170d --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponsePaymentInformationPaymentType.md @@ -0,0 +1,16 @@ +# TssV2TransactionsGet200ResponsePaymentInformationPaymentType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The description for this field is not available. | [optional] +**type** | **str** | The description for this field is not available. | [optional] +**sub_type** | **str** | The description for this field is not available. | [optional] +**method** | **str** | The description for this field is not available. | [optional] +**funding_source** | **str** | The description for this field is not available. | [optional] +**funding_source_affiliation** | **str** | The description for this field is not available. | [optional] +**credential** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponsePointOfSaleInformation.md b/docs/TssV2TransactionsGet200ResponsePointOfSaleInformation.md new file mode 100644 index 00000000..7ee49c97 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponsePointOfSaleInformation.md @@ -0,0 +1,11 @@ +# TssV2TransactionsGet200ResponsePointOfSaleInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entry_mode** | **str** | Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. | [optional] +**terminal_capability** | **int** | POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseProcessingInformation.md b/docs/TssV2TransactionsGet200ResponseProcessingInformation.md new file mode 100644 index 00000000..f90b8b45 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseProcessingInformation.md @@ -0,0 +1,14 @@ +# TssV2TransactionsGet200ResponseProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] +**commerce_indicator** | **str** | Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. | [optional] +**business_application_id** | **str** | The description for this field is not available. | [optional] +**authorization_options** | [**TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions**](TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.md) | | [optional] +**bank_transfer_options** | [**TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions**](TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.md b/docs/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.md new file mode 100644 index 00000000..6ac198f8 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.md @@ -0,0 +1,10 @@ +# TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_type** | **str** | Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.md b/docs/TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.md new file mode 100644 index 00000000..49367c52 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.md @@ -0,0 +1,10 @@ +# TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sec_code** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseProcessorInformation.md b/docs/TssV2TransactionsGet200ResponseProcessorInformation.md new file mode 100644 index 00000000..7b94ce7c --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseProcessorInformation.md @@ -0,0 +1,20 @@ +# TssV2TransactionsGet200ResponseProcessorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**processor** | [**TssV2TransactionsGet200ResponseProcessorInformationProcessor**](TssV2TransactionsGet200ResponseProcessorInformationProcessor.md) | | [optional] +**transaction_id** | **str** | Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. | [optional] +**network_transaction_id** | **str** | The description for this field is not available. | [optional] +**response_id** | **str** | The description for this field is not available. | [optional] +**provider_transaction_id** | **str** | The description for this field is not available. | [optional] +**approval_code** | **str** | Authorization code. Returned only when the processor returns this value. | [optional] +**response_code** | **str** | For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization. | [optional] +**avs** | [**PtsV2PaymentsPost201ResponseProcessorInformationAvs**](PtsV2PaymentsPost201ResponseProcessorInformationAvs.md) | | [optional] +**card_verification** | [**TssV2TransactionsGet200ResponseProcessorInformationCardVerification**](TssV2TransactionsGet200ResponseProcessorInformationCardVerification.md) | | [optional] +**ach_verification** | [**TssV2TransactionsGet200ResponseProcessorInformationAchVerification**](TssV2TransactionsGet200ResponseProcessorInformationAchVerification.md) | | [optional] +**electronic_verification_results** | [**TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults**](TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseProcessorInformationAchVerification.md b/docs/TssV2TransactionsGet200ResponseProcessorInformationAchVerification.md new file mode 100644 index 00000000..a0a8840b --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseProcessorInformationAchVerification.md @@ -0,0 +1,11 @@ +# TssV2TransactionsGet200ResponseProcessorInformationAchVerification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result_code** | **str** | The description for this field is not available.. | [optional] +**result_code_raw** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseProcessorInformationCardVerification.md b/docs/TssV2TransactionsGet200ResponseProcessorInformationCardVerification.md new file mode 100644 index 00000000..fe20c759 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseProcessorInformationCardVerification.md @@ -0,0 +1,10 @@ +# TssV2TransactionsGet200ResponseProcessorInformationCardVerification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**result_code** | **str** | CVN result code. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.md b/docs/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.md new file mode 100644 index 00000000..4261f98c --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.md @@ -0,0 +1,19 @@ +# TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **str** | Mapped Electronic Verification response code for the customer’s email address. | [optional] +**email_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s email address. | [optional] +**name** | **str** | The description for this field is not available. | [optional] +**name_raw** | **str** | The description for this field is not available. | [optional] +**phone_number** | **str** | Mapped Electronic Verification response code for the customer’s phone number. | [optional] +**phone_number_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s phone number. | [optional] +**street** | **str** | Mapped Electronic Verification response code for the customer’s street address. | [optional] +**street_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s street address. | [optional] +**postal_code** | **str** | Mapped Electronic Verification response code for the customer’s postal code. | [optional] +**postal_code_raw** | **str** | Raw Electronic Verification response code from the processor for the customer’s postal code. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseProcessorInformationProcessor.md b/docs/TssV2TransactionsGet200ResponseProcessorInformationProcessor.md new file mode 100644 index 00000000..7092c2ec --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseProcessorInformationProcessor.md @@ -0,0 +1,10 @@ +# TssV2TransactionsGet200ResponseProcessorInformationProcessor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the Processor. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseRiskInformation.md b/docs/TssV2TransactionsGet200ResponseRiskInformation.md new file mode 100644 index 00000000..65b3f3f4 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseRiskInformation.md @@ -0,0 +1,15 @@ +# TssV2TransactionsGet200ResponseRiskInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | [**TssV2TransactionsGet200ResponseRiskInformationProfile**](TssV2TransactionsGet200ResponseRiskInformationProfile.md) | | [optional] +**rules** | [**list[TssV2TransactionsGet200ResponseRiskInformationProfile]**](TssV2TransactionsGet200ResponseRiskInformationProfile.md) | | [optional] +**passive_profile** | [**TssV2TransactionsGet200ResponseRiskInformationProfile**](TssV2TransactionsGet200ResponseRiskInformationProfile.md) | | [optional] +**passive_rules** | [**list[TssV2TransactionsGet200ResponseRiskInformationProfile]**](TssV2TransactionsGet200ResponseRiskInformationProfile.md) | | [optional] +**score** | [**TssV2TransactionsGet200ResponseRiskInformationScore**](TssV2TransactionsGet200ResponseRiskInformationScore.md) | | [optional] +**local_time** | **str** | Time that the transaction was submitted in local time.. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseRiskInformationProfile.md b/docs/TssV2TransactionsGet200ResponseRiskInformationProfile.md new file mode 100644 index 00000000..fcc11fc0 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseRiskInformationProfile.md @@ -0,0 +1,11 @@ +# TssV2TransactionsGet200ResponseRiskInformationProfile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The description for this field is not available. | [optional] +**decision** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseRiskInformationScore.md b/docs/TssV2TransactionsGet200ResponseRiskInformationScore.md new file mode 100644 index 00000000..a22ed99b --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseRiskInformationScore.md @@ -0,0 +1,11 @@ +# TssV2TransactionsGet200ResponseRiskInformationScore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**factor_codes** | **list[str]** | Array of factor codes. | [optional] +**result** | **int** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsGet200ResponseSenderInformation.md b/docs/TssV2TransactionsGet200ResponseSenderInformation.md new file mode 100644 index 00000000..23a18cf8 --- /dev/null +++ b/docs/TssV2TransactionsGet200ResponseSenderInformation.md @@ -0,0 +1,10 @@ +# TssV2TransactionsGet200ResponseSenderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reference_number** | **str** | Reference number generated by you that uniquely identifies the sender. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201Response.md b/docs/TssV2TransactionsPost201Response.md new file mode 100644 index 00000000..50151d51 --- /dev/null +++ b/docs/TssV2TransactionsPost201Response.md @@ -0,0 +1,22 @@ +# TssV2TransactionsPost201Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] +**save** | **bool** | save or not save. | [optional] +**name** | **str** | The description for this field is not available. | [optional] +**timezone** | **str** | Time Zone. | [optional] +**query** | **str** | transaction search query string. | [optional] +**offset** | **int** | offset. | [optional] +**limit** | **int** | limit on number of results. | [optional] +**sort** | **str** | A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc. | [optional] +**count** | **int** | Results for this page, this could be below the limit. | [optional] +**total_count** | **int** | total number of results. | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**embedded** | [**TssV2TransactionsPost201ResponseEmbedded**](TssV2TransactionsPost201ResponseEmbedded.md) | | [optional] +**links** | [**PtsV2PaymentsReversalsPost201ResponseLinks**](PtsV2PaymentsReversalsPost201ResponseLinks.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbedded.md b/docs/TssV2TransactionsPost201ResponseEmbedded.md new file mode 100644 index 00000000..4920dc0f --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbedded.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbedded + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_summaries** | [**list[TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries]**](TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md) | transaction search summary | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.md new file mode 100644 index 00000000..c1656914 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbeddedBuyerInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_customer_id** | **str** | Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.md new file mode 100644 index 00000000..89a614ba --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.md @@ -0,0 +1,12 @@ +# TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. | [optional] +**application_name** | **str** | The application name of client which is used to submit the request. | [optional] +**application_user** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.md new file mode 100644 index 00000000..64fd8a3f --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.md @@ -0,0 +1,11 @@ +# TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**xid** | **str** | Transaction identifier. | [optional] +**transaction_id** | **str** | Payer auth Transaction identifier. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.md new file mode 100644 index 00000000..0ef1ef63 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbeddedDeviceInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip_address** | **str** | IP address of the customer. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedLinks.md b/docs/TssV2TransactionsPost201ResponseEmbeddedLinks.md new file mode 100644 index 00000000..ff124501 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedLinks.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbeddedLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction_detail** | [**PtsV2PaymentsPost201ResponseLinksSelf**](PtsV2PaymentsPost201ResponseLinksSelf.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.md new file mode 100644 index 00000000..25ca076a --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbeddedMerchantInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reseller_id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformation.md new file mode 100644 index 00000000..48ec09dc --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformation.md @@ -0,0 +1,12 @@ +# TssV2TransactionsPost201ResponseEmbeddedOrderInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bill_to** | [**TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo**](TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.md) | | [optional] +**ship_to** | [**TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo**](TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.md) | | [optional] +**amount_details** | [**Ptsv2paymentsidreversalsReversalInformationAmountDetails**](Ptsv2paymentsidreversalsReversalInformationAmountDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.md b/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.md new file mode 100644 index 00000000..8a03f00c --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.md @@ -0,0 +1,14 @@ +# TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**last_name** | **str** | Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**email** | **str** | Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**country** | **str** | Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] +**phone_number** | **str** | Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.md b/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.md new file mode 100644 index 00000000..550caf4a --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.md @@ -0,0 +1,14 @@ +# TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_name** | **str** | First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 | [optional] +**last_name** | **str** | Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 | [optional] +**address1** | **str** | First line of the shipping address. | [optional] +**country** | **str** | Country of the shipping address. Use the two character ISO Standard Country Codes. | [optional] +**phone_number** | **str** | Phone number for the shipping address. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.md new file mode 100644 index 00000000..17891417 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.md @@ -0,0 +1,12 @@ +# TssV2TransactionsPost201ResponseEmbeddedPaymentInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_method** | [**TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod**](TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod.md) | | [optional] +**customer** | [**Ptsv2paymentsPaymentInformationCustomer**](Ptsv2paymentsPaymentInformationCustomer.md) | | [optional] +**card** | [**TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard**](TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.md b/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.md new file mode 100644 index 00000000..684ee7c4 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.md @@ -0,0 +1,12 @@ +# TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suffix** | **str** | Last four digits of the cardholder’s account number. This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. | [optional] +**prefix** | **str** | The description for this field is not available. | [optional] +**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod.md b/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod.md new file mode 100644 index 00000000..a217dcc2 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.md new file mode 100644 index 00000000..643fc47d --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.md @@ -0,0 +1,13 @@ +# TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal_id** | **str** | Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. | [optional] +**terminal_serial_number** | **str** | The description for this field is not available. | [optional] +**device_id** | **str** | The description for this field is not available. | [optional] +**partner** | [**TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner**](TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.md b/docs/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.md new file mode 100644 index 00000000..ad4e7ad8 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**original_transaction_id** | **str** | Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.md new file mode 100644 index 00000000..9adaa7fc --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.md @@ -0,0 +1,11 @@ +# TssV2TransactionsPost201ResponseEmbeddedProcessingInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] +**business_application_id** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.md new file mode 100644 index 00000000..da3a646f --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbeddedProcessorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**processor** | [**TssV2TransactionsGet200ResponseProcessorInformationProcessor**](TssV2TransactionsGet200ResponseProcessorInformationProcessor.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformation.md new file mode 100644 index 00000000..a74145be --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformation.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbeddedRiskInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**providers** | [**TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders**](TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.md b/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.md new file mode 100644 index 00000000..233b2cbe --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fingerprint** | [**TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint**](TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.md b/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.md new file mode 100644 index 00000000..ae07e1f8 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.md @@ -0,0 +1,12 @@ +# TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**true_ipaddress** | **str** | The description for this field is not available. | [optional] +**hash** | **str** | The description for this field is not available. | [optional] +**smart_id** | **str** | The description for this field is not available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md b/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md new file mode 100644 index 00000000..5277d1d2 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md @@ -0,0 +1,27 @@ +# TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | An unique identification number assigned by CyberSource to identify the submitted request. | [optional] +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**merchant_id** | **str** | The description for this field is not available. | [optional] +**application_information** | [**TssV2TransactionsGet200ResponseApplicationInformation**](TssV2TransactionsGet200ResponseApplicationInformation.md) | | [optional] +**buyer_information** | [**TssV2TransactionsPost201ResponseEmbeddedBuyerInformation**](TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.md) | | [optional] +**client_reference_information** | [**TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation**](TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.md) | | [optional] +**consumer_authentication_information** | [**TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation**](TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.md) | | [optional] +**device_information** | [**TssV2TransactionsPost201ResponseEmbeddedDeviceInformation**](TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.md) | | [optional] +**fraud_marking_information** | [**TssV2TransactionsGet200ResponseFraudMarkingInformation**](TssV2TransactionsGet200ResponseFraudMarkingInformation.md) | | [optional] +**merchant_defined_information** | [**list[TssV2TransactionsGet200ResponseMerchantDefinedInformation]**](TssV2TransactionsGet200ResponseMerchantDefinedInformation.md) | The description for this field is not available. | [optional] +**merchant_information** | [**TssV2TransactionsPost201ResponseEmbeddedMerchantInformation**](TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.md) | | [optional] +**order_information** | [**TssV2TransactionsPost201ResponseEmbeddedOrderInformation**](TssV2TransactionsPost201ResponseEmbeddedOrderInformation.md) | | [optional] +**payment_information** | [**TssV2TransactionsPost201ResponseEmbeddedPaymentInformation**](TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.md) | | [optional] +**processing_information** | [**TssV2TransactionsPost201ResponseEmbeddedProcessingInformation**](TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.md) | | [optional] +**processor_information** | [**TssV2TransactionsPost201ResponseEmbeddedProcessorInformation**](TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.md) | | [optional] +**point_of_sale_information** | [**TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation**](TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.md) | | [optional] +**risk_information** | [**TssV2TransactionsPost201ResponseEmbeddedRiskInformation**](TssV2TransactionsPost201ResponseEmbeddedRiskInformation.md) | | [optional] +**links** | [**TssV2TransactionsPost201ResponseEmbeddedLinks**](TssV2TransactionsPost201ResponseEmbeddedLinks.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost400Response.md b/docs/TssV2TransactionsPost400Response.md new file mode 100644 index 00000000..b1412bbb --- /dev/null +++ b/docs/TssV2TransactionsPost400Response.md @@ -0,0 +1,13 @@ +# TssV2TransactionsPost400Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submit_time_utc** | **str** | Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] +**message** | **str** | The detail message related to the status and reason listed above. | [optional] +**details** | [**list[PtsV2PaymentsPost201ResponseErrorInformationDetails]**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPostResponse.md b/docs/TssV2TransactionsPostResponse.md new file mode 100644 index 00000000..eb9ed770 --- /dev/null +++ b/docs/TssV2TransactionsPostResponse.md @@ -0,0 +1,16 @@ +# TssV2TransactionsPostResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**save** | **bool** | save or not save. | [optional] +**name** | **str** | The description for this field is not available. | [optional] +**timezone** | **str** | Time Zone. | [optional] +**query** | **str** | transaction search query string. | [optional] +**offset** | **int** | offset. | [optional] +**limit** | **int** | limit on number of results. | [optional] +**sort** | **str** | A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UmsV1UsersGet200Response.md b/docs/UmsV1UsersGet200Response.md new file mode 100644 index 00000000..4ea1caa9 --- /dev/null +++ b/docs/UmsV1UsersGet200Response.md @@ -0,0 +1,10 @@ +# UmsV1UsersGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**list[UmsV1UsersGet200ResponseUsers]**](UmsV1UsersGet200ResponseUsers.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UmsV1UsersGet200ResponseAccountInformation.md b/docs/UmsV1UsersGet200ResponseAccountInformation.md new file mode 100644 index 00000000..fc48da1f --- /dev/null +++ b/docs/UmsV1UsersGet200ResponseAccountInformation.md @@ -0,0 +1,17 @@ +# UmsV1UsersGet200ResponseAccountInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_name** | **str** | | [optional] +**role_id** | **str** | | [optional] +**permissions** | **list[str]** | | [optional] +**status** | **str** | | [optional] +**created_time** | **datetime** | | [optional] +**last_access_time** | **datetime** | | [optional] +**language_preference** | **str** | | [optional] +**timezone** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UmsV1UsersGet200ResponseContactInformation.md b/docs/UmsV1UsersGet200ResponseContactInformation.md new file mode 100644 index 00000000..f4c6af63 --- /dev/null +++ b/docs/UmsV1UsersGet200ResponseContactInformation.md @@ -0,0 +1,13 @@ +# UmsV1UsersGet200ResponseContactInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **str** | | [optional] +**phone_number** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UmsV1UsersGet200ResponseOrganizationInformation.md b/docs/UmsV1UsersGet200ResponseOrganizationInformation.md new file mode 100644 index 00000000..c0456de5 --- /dev/null +++ b/docs/UmsV1UsersGet200ResponseOrganizationInformation.md @@ -0,0 +1,10 @@ +# UmsV1UsersGet200ResponseOrganizationInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organization_id** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UmsV1UsersGet200ResponseUsers.md b/docs/UmsV1UsersGet200ResponseUsers.md new file mode 100644 index 00000000..cff31f22 --- /dev/null +++ b/docs/UmsV1UsersGet200ResponseUsers.md @@ -0,0 +1,12 @@ +# UmsV1UsersGet200ResponseUsers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_information** | [**UmsV1UsersGet200ResponseAccountInformation**](UmsV1UsersGet200ResponseAccountInformation.md) | | [optional] +**organization_information** | [**UmsV1UsersGet200ResponseOrganizationInformation**](UmsV1UsersGet200ResponseOrganizationInformation.md) | | [optional] +**contact_information** | [**UmsV1UsersGet200ResponseContactInformation**](UmsV1UsersGet200ResponseContactInformation.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserManagementApi.md b/docs/UserManagementApi.md new file mode 100644 index 00000000..1c640ffb --- /dev/null +++ b/docs/UserManagementApi.md @@ -0,0 +1,63 @@ +# CyberSource.UserManagementApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_users**](UserManagementApi.md#get_users) | **GET** /ums/v1/users | Get user based on organization Id, username, permission and role + + +# **get_users** +> UmsV1UsersGet200Response get_users(organization_id=organization_id, user_name=user_name, permission_id=permission_id, role_id=role_id) + +Get user based on organization Id, username, permission and role + +This endpoint is to get all the user information depending on the filter criteria passed in the query. + +### Example +```python +from __future__ import print_function +import time +import CyberSource +from CyberSource.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = CyberSource.UserManagementApi() +organization_id = 'organization_id_example' # str | This is the orgId of the organization which the user belongs to. (optional) +user_name = 'user_name_example' # str | User ID of the user you want to get details on. (optional) +permission_id = 'permission_id_example' # str | permission that you are trying to search user on. (optional) +role_id = 'role_id_example' # str | role of the user you are trying to search on. (optional) + +try: + # Get user based on organization Id, username, permission and role + api_response = api_instance.get_users(organization_id=organization_id, user_name=user_name, permission_id=permission_id, role_id=role_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserManagementApi->get_users: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization_id** | **str**| This is the orgId of the organization which the user belongs to. | [optional] + **user_name** | **str**| User ID of the user you want to get details on. | [optional] + **permission_id** | **str**| permission that you are trying to search user on. | [optional] + **role_id** | **str**| role of the user you are trying to search on. | [optional] + +### Return type + +[**UmsV1UsersGet200Response**](UmsV1UsersGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/V1FileDetailsGet200Response.md b/docs/V1FileDetailsGet200Response.md new file mode 100644 index 00000000..e5d12a11 --- /dev/null +++ b/docs/V1FileDetailsGet200Response.md @@ -0,0 +1,11 @@ +# V1FileDetailsGet200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_details** | [**list[V1FileDetailsGet200ResponseFileDetails]**](V1FileDetailsGet200ResponseFileDetails.md) | | [optional] +**links** | [**V1FileDetailsGet200ResponseLinks**](V1FileDetailsGet200ResponseLinks.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1FileDetailsGet200ResponseFileDetails.md b/docs/V1FileDetailsGet200ResponseFileDetails.md new file mode 100644 index 00000000..d2b3f4ed --- /dev/null +++ b/docs/V1FileDetailsGet200ResponseFileDetails.md @@ -0,0 +1,16 @@ +# V1FileDetailsGet200ResponseFileDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_id** | **str** | Unique identifier of a file | [optional] +**name** | **str** | Name of the file | [optional] +**created_time** | **datetime** | Date and time for the file in PST | [optional] +**last_modified_time** | **datetime** | Date and time for the file in PST | [optional] +**date** | **date** | Date and time for the file in PST | [optional] +**mime_type** | **str** | File extension | [optional] +**size** | **int** | Size of the file in bytes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1FileDetailsGet200ResponseLinks.md b/docs/V1FileDetailsGet200ResponseLinks.md new file mode 100644 index 00000000..7989a1d2 --- /dev/null +++ b/docs/V1FileDetailsGet200ResponseLinks.md @@ -0,0 +1,11 @@ +# V1FileDetailsGet200ResponseLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**V1FileDetailsGet200ResponseLinksSelf**](V1FileDetailsGet200ResponseLinksSelf.md) | | [optional] +**files** | [**list[V1FileDetailsGet200ResponseLinksFiles]**](V1FileDetailsGet200ResponseLinksFiles.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1FileDetailsGet200ResponseLinksFiles.md b/docs/V1FileDetailsGet200ResponseLinksFiles.md new file mode 100644 index 00000000..d76d0e50 --- /dev/null +++ b/docs/V1FileDetailsGet200ResponseLinksFiles.md @@ -0,0 +1,12 @@ +# V1FileDetailsGet200ResponseLinksFiles + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_id** | **str** | Unique identifier for each file | [optional] +**href** | **str** | | [optional] +**method** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1FileDetailsGet200ResponseLinksSelf.md b/docs/V1FileDetailsGet200ResponseLinksSelf.md new file mode 100644 index 00000000..71211e8d --- /dev/null +++ b/docs/V1FileDetailsGet200ResponseLinksSelf.md @@ -0,0 +1,11 @@ +# V1FileDetailsGet200ResponseLinksSelf + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**href** | **str** | | [optional] +**method** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V2creditsPointOfSaleInformation.md b/docs/V2creditsPointOfSaleInformation.md deleted file mode 100644 index 6b00ffa7..00000000 --- a/docs/V2creditsPointOfSaleInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2creditsPointOfSaleInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emv** | [**V2creditsPointOfSaleInformationEmv**](V2creditsPointOfSaleInformationEmv.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2creditsPointOfSaleInformationEmv.md b/docs/V2creditsPointOfSaleInformationEmv.md deleted file mode 100644 index cce4bbfa..00000000 --- a/docs/V2creditsPointOfSaleInformationEmv.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2creditsPointOfSaleInformationEmv - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | **str** | EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram | [optional] -**fallback** | **bool** | Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. | [optional] [default to False] -**fallback_condition** | **float** | Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2creditsProcessingInformation.md b/docs/V2creditsProcessingInformation.md deleted file mode 100644 index d94e749c..00000000 --- a/docs/V2creditsProcessingInformation.md +++ /dev/null @@ -1,18 +0,0 @@ -# V2creditsProcessingInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**commerce_indicator** | **str** | Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. | [optional] -**processor_id** | **str** | Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. | [optional] -**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] -**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] -**link_id** | **str** | Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. | [optional] -**report_group** | **str** | Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. | [optional] -**visa_checkout_id** | **str** | Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. | [optional] -**purchase_level** | **str** | Set this field to 3 to indicate that the request includes Level III data. | [optional] -**recurring_options** | [**V2paymentsidrefundsProcessingInformationRecurringOptions**](V2paymentsidrefundsProcessingInformationRecurringOptions.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsAggregatorInformation.md b/docs/V2paymentsAggregatorInformation.md deleted file mode 100644 index bc77e9f8..00000000 --- a/docs/V2paymentsAggregatorInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2paymentsAggregatorInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aggregator_id** | **str** | Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**name** | **str** | Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**sub_merchant** | [**V2paymentsAggregatorInformationSubMerchant**](V2paymentsAggregatorInformationSubMerchant.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsAggregatorInformationSubMerchant.md b/docs/V2paymentsAggregatorInformationSubMerchant.md deleted file mode 100644 index 80c6cbf9..00000000 --- a/docs/V2paymentsAggregatorInformationSubMerchant.md +++ /dev/null @@ -1,19 +0,0 @@ -# V2paymentsAggregatorInformationSubMerchant - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**card_acceptor_id** | **str** | Unique identifier assigned by the payment card company to the sub-merchant. | [optional] -**name** | **str** | Sub-merchant’s business name. | [optional] -**address1** | **str** | First line of the sub-merchant’s street address. | [optional] -**locality** | **str** | Sub-merchant’s city. | [optional] -**administrative_area** | **str** | Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] -**region** | **str** | Sub-merchant’s region. Example `NE` indicates that the sub-merchant is in the northeast region. | [optional] -**postal_code** | **str** | Partial postal code for the sub-merchant’s address. | [optional] -**country** | **str** | Sub-merchant’s country. Use the two-character ISO Standard Country Codes. | [optional] -**email** | **str** | Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 | [optional] -**phone_number** | **str** | Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsBuyerInformation.md b/docs/V2paymentsBuyerInformation.md deleted file mode 100644 index acf43f62..00000000 --- a/docs/V2paymentsBuyerInformation.md +++ /dev/null @@ -1,14 +0,0 @@ -# V2paymentsBuyerInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merchant_customer_id** | **str** | Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**date_of_birth** | **str** | Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a pass-through, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] -**vat_registration_number** | **str** | Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**personal_identification** | [**list[V2paymentsBuyerInformationPersonalIdentification]**](V2paymentsBuyerInformationPersonalIdentification.md) | | [optional] -**hashed_password** | **str** | TODO | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsBuyerInformationPersonalIdentification.md b/docs/V2paymentsBuyerInformationPersonalIdentification.md deleted file mode 100644 index 78f172f7..00000000 --- a/docs/V2paymentsBuyerInformationPersonalIdentification.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2paymentsBuyerInformationPersonalIdentification - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [optional] -**id** | **str** | Personal Identifier for the customer based on various type. This field is supported only on the processors listed in this description. For processor-specific information, see the personal_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**issued_by** | **str** | TBD | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsClientReferenceInformation.md b/docs/V2paymentsClientReferenceInformation.md deleted file mode 100644 index 579b3d9a..00000000 --- a/docs/V2paymentsClientReferenceInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2paymentsClientReferenceInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. | [optional] -**transaction_id** | **str** | Identifier that you assign to the transaction. See \"Merchant-Initiated Reversals and Voids,\" page 176 | [optional] -**comments** | **str** | Comments | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsConsumerAuthenticationInformation.md b/docs/V2paymentsConsumerAuthenticationInformation.md deleted file mode 100644 index fc9ab784..00000000 --- a/docs/V2paymentsConsumerAuthenticationInformation.md +++ /dev/null @@ -1,17 +0,0 @@ -# V2paymentsConsumerAuthenticationInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cavv** | **str** | Cardholder authentication verification value (CAVV). | [optional] -**cavv_algorithm** | **str** | Algorithm used to generate the CAVV for Verified by Visa or the UCAF authentication data for Mastercard SecureCode. | [optional] -**eci_raw** | **str** | Raw electronic commerce indicator (ECI). | [optional] -**pares_status** | **str** | Payer authentication response status. | [optional] -**veres_enrolled** | **str** | Verification response enrollment status. | [optional] -**xid** | **str** | Transaction identifier. | [optional] -**ucaf_authentication_data** | **str** | Universal cardholder authentication field (UCAF) data. | [optional] -**ucaf_collection_indicator** | **str** | Universal cardholder authentication field (UCAF) collection indicator. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsDeviceInformation.md b/docs/V2paymentsDeviceInformation.md deleted file mode 100644 index 9f853c21..00000000 --- a/docs/V2paymentsDeviceInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2paymentsDeviceInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**host_name** | **str** | DNS resolved hostname from above _ipAddress_. | [optional] -**ip_address** | **str** | IP address of the customer. | [optional] -**user_agent** | **str** | Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsMerchantDefinedInformation.md b/docs/V2paymentsMerchantDefinedInformation.md deleted file mode 100644 index fb324dc3..00000000 --- a/docs/V2paymentsMerchantDefinedInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsMerchantDefinedInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **str** | TBD | [optional] -**value** | **str** | TBD | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsMerchantInformation.md b/docs/V2paymentsMerchantInformation.md deleted file mode 100644 index 4dc63d6e..00000000 --- a/docs/V2paymentsMerchantInformation.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2paymentsMerchantInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merchant_descriptor** | [**V2paymentsMerchantInformationMerchantDescriptor**](V2paymentsMerchantInformationMerchantDescriptor.md) | | [optional] -**sales_organization_id** | **str** | Company ID assigned to an independent sales organization. Get this value from Mastercard. For processor-specific information, see the sales_organization_ID field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**category_code** | **int** | Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**vat_registration_number** | **str** | Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**card_acceptor_reference_number** | **str** | Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**transaction_local_date_time** | **str** | Local date and time at your physical location. Include both the date and time in this field or leave it blank. This field is supported only for **CyberSource through VisaNet**. For processor-specific information, see the transaction_local_date_time field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) `Format: YYYYMMDDhhmmss`, where: - YYYY = year - MM = month - DD = day - hh = hour - mm = minutes - ss = seconds | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsMerchantInformationMerchantDescriptor.md b/docs/V2paymentsMerchantInformationMerchantDescriptor.md deleted file mode 100644 index 68563228..00000000 --- a/docs/V2paymentsMerchantInformationMerchantDescriptor.md +++ /dev/null @@ -1,17 +0,0 @@ -# V2paymentsMerchantInformationMerchantDescriptor - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) | [optional] -**alternate_name** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**contact** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) | [optional] -**address1** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**locality** | **str** | Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**country** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**postal_code** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**administrative_area** | **str** | Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformation.md b/docs/V2paymentsOrderInformation.md deleted file mode 100644 index 96bc933a..00000000 --- a/docs/V2paymentsOrderInformation.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2paymentsOrderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount_details** | [**V2paymentsOrderInformationAmountDetails**](V2paymentsOrderInformationAmountDetails.md) | | [optional] -**bill_to** | [**V2paymentsOrderInformationBillTo**](V2paymentsOrderInformationBillTo.md) | | [optional] -**ship_to** | [**V2paymentsOrderInformationShipTo**](V2paymentsOrderInformationShipTo.md) | | [optional] -**line_items** | [**list[V2paymentsOrderInformationLineItems]**](V2paymentsOrderInformationLineItems.md) | | [optional] -**invoice_details** | [**V2paymentsOrderInformationInvoiceDetails**](V2paymentsOrderInformationInvoiceDetails.md) | | [optional] -**shipping_details** | [**V2paymentsOrderInformationShippingDetails**](V2paymentsOrderInformationShippingDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformationAmountDetails.md b/docs/V2paymentsOrderInformationAmountDetails.md deleted file mode 100644 index 79343498..00000000 --- a/docs/V2paymentsOrderInformationAmountDetails.md +++ /dev/null @@ -1,28 +0,0 @@ -# V2paymentsOrderInformationAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] -**discount_amount** | **str** | Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**duty_amount** | **str** | Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_amount** | **str** | Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**national_tax_included** | **str** | Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_applied_after_discount** | **str** | Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_applied_level** | **str** | Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_type_code** | **str** | For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**freight_amount** | **str** | Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**foreign_amount** | **str** | Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**foreign_currency** | **str** | Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**exchange_rate** | **str** | Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**exchange_rate_time_stamp** | **str** | Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**surcharge** | [**V2paymentsOrderInformationAmountDetailsSurcharge**](V2paymentsOrderInformationAmountDetailsSurcharge.md) | | [optional] -**settlement_amount** | **str** | This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder’s account. | [optional] -**settlement_currency** | **str** | This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. | [optional] -**amex_additional_amounts** | [**list[V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts]**](V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md) | | [optional] -**tax_details** | [**list[V2paymentsOrderInformationAmountDetailsTaxDetails]**](V2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md b/docs/V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md deleted file mode 100644 index 0e5cb9fe..00000000 --- a/docs/V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | Additional amount type. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**amount** | **str** | Additional amount. This field is supported only for **American Express Direct**. For processor-specific information, see the additional_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformationAmountDetailsSurcharge.md b/docs/V2paymentsOrderInformationAmountDetailsSurcharge.md deleted file mode 100644 index 587edba4..00000000 --- a/docs/V2paymentsOrderInformationAmountDetailsSurcharge.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsOrderInformationAmountDetailsSurcharge - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **str** | The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. - Applicable only for CTV for Payouts. - CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**description** | **str** | TBD | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformationAmountDetailsTaxDetails.md b/docs/V2paymentsOrderInformationAmountDetailsTaxDetails.md deleted file mode 100644 index 6c4e962b..00000000 --- a/docs/V2paymentsOrderInformationAmountDetailsTaxDetails.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2paymentsOrderInformationAmountDetailsTaxDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | This is used to determine what type of tax related data should be inclued under _taxDetails_ object. | [optional] -**amount** | **str** | Please see below table for related decription based on above _type_ field. | type | amount description | |-----------|--------------------| | alternate | Total amount of alternate tax for the order. | | local | Sales tax for the order. | | national | National tax for the order. | | vat | Total amount of VAT or other tax included in the order. | | [optional] -**rate** | **str** | Rate of VAT or other tax for the order. Example 0.040 (=4%) Valid range: 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated) | [optional] -**code** | **str** | Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. | [optional] -**tax_id** | **str** | Your tax ID number to use for the alternate tax amount. Required if you set alternate tax amount to any value, including zero. You may send this field without sending alternate tax amount. | [optional] -**applied** | **bool** | The tax is applied. Valid value is `true` or `false`. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformationBillTo.md b/docs/V2paymentsOrderInformationBillTo.md deleted file mode 100644 index d4a72fd2..00000000 --- a/docs/V2paymentsOrderInformationBillTo.md +++ /dev/null @@ -1,26 +0,0 @@ -# V2paymentsOrderInformationBillTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**first_name** | **str** | Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**last_name** | **str** | Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**middle_name** | **str** | Customer’s middle name. | [optional] -**name_suffix** | **str** | Customer’s name suffix. | [optional] -**title** | **str** | Title. | [optional] -**company** | **str** | Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**address1** | **str** | First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**address2** | **str** | Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**locality** | **str** | City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**administrative_area** | **str** | State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**postal_code** | **str** | Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**country** | **str** | Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**district** | **str** | Customer’s neighborhood, community, or region (a barrio in Brazil) within the city or municipality. This field is available only on **Cielo**. | [optional] -**building_number** | **str** | Building number in the street address. This field is supported only for: - Cielo transactions. - Redecard customer validation with CyberSource Latin American Processing. | [optional] -**email** | **str** | Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**phone_number** | **str** | Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**phone_type** | **str** | Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformationInvoiceDetails.md b/docs/V2paymentsOrderInformationInvoiceDetails.md deleted file mode 100644 index 7f1602c7..00000000 --- a/docs/V2paymentsOrderInformationInvoiceDetails.md +++ /dev/null @@ -1,17 +0,0 @@ -# V2paymentsOrderInformationInvoiceDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **str** | Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**purchase_order_date** | **str** | Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**purchase_contact_name** | **str** | The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**taxable** | **bool** | Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**vat_invoice_reference_number** | **str** | VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**commodity_code** | **str** | International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**merchandise_code** | **float** | Identifier for the merchandise. Possible value: - 1000: Gift card This field is supported only for **American Express Direct**. | [optional] -**transaction_advice_addendum** | [**list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]**](V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md b/docs/V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md deleted file mode 100644 index ef7df81f..00000000 --- a/docs/V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **str** | Four Transaction Advice Addendum (TAA) fields. These fields are used to display descriptive information about a transaction on the customer’s American Express card statement. When you send TAA fields, start with amexdata_taa1, then ...taa2, and so on. Skipping a TAA field causes subsequent TAA fields to be ignored. To use these fields, contact CyberSource Customer Support to have your account enabled for this feature. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformationLineItems.md b/docs/V2paymentsOrderInformationLineItems.md deleted file mode 100644 index 5191f709..00000000 --- a/docs/V2paymentsOrderInformationLineItems.md +++ /dev/null @@ -1,30 +0,0 @@ -# V2paymentsOrderInformationLineItems - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_code** | **str** | Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. | [optional] -**product_name** | **str** | For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] -**product_sku** | **str** | Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. | [optional] -**quantity** | **float** | For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] -**unit_price** | **str** | Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**unit_of_measure** | **str** | Unit of measure, or unit of measure code, for the item. | [optional] -**total_amount** | **str** | Total amount for the item. Normally calculated as the unit price x quantity. | [optional] -**tax_amount** | **str** | Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. | [optional] -**tax_rate** | **str** | Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). | [optional] -**tax_applied_after_discount** | **str** | Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. | [optional] -**tax_status_indicator** | **str** | Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax | [optional] -**tax_type_code** | **str** | Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. | [optional] -**amount_includes_tax** | **bool** | Flag that indicates whether the tax amount is included in the Line Item Total. | [optional] -**type_of_supply** | **str** | Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services | [optional] -**commodity_code** | **str** | Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. | [optional] -**discount_amount** | **str** | Discount applied to the item. | [optional] -**discount_applied** | **bool** | Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. | [optional] -**discount_rate** | **str** | Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) | [optional] -**invoice_number** | **str** | Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. | [optional] -**tax_details** | [**list[V2paymentsOrderInformationAmountDetailsTaxDetails]**](V2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] -**fulfillment_type** | **str** | TODO | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformationShipTo.md b/docs/V2paymentsOrderInformationShipTo.md deleted file mode 100644 index d6d29bc1..00000000 --- a/docs/V2paymentsOrderInformationShipTo.md +++ /dev/null @@ -1,21 +0,0 @@ -# V2paymentsOrderInformationShipTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**first_name** | **str** | First name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 | [optional] -**last_name** | **str** | Last name of the recipient. **Processor specific maximum length** - Litle: 25 - All other processors: 60 | [optional] -**address1** | **str** | First line of the shipping address. | [optional] -**address2** | **str** | Second line of the shipping address. | [optional] -**locality** | **str** | City of the shipping address. | [optional] -**administrative_area** | **str** | State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] -**postal_code** | **str** | Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 | [optional] -**country** | **str** | Country of the shipping address. Use the two character ISO Standard Country Codes. | [optional] -**district** | **str** | Neighborhood, community, or region within a city or municipality. | [optional] -**building_number** | **str** | Building number in the street address. For example, the building number is 187 in the following address: Rua da Quitanda 187 | [optional] -**phone_number** | **str** | Phone number for the shipping address. | [optional] -**company** | **str** | Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsOrderInformationShippingDetails.md b/docs/V2paymentsOrderInformationShippingDetails.md deleted file mode 100644 index 0465ab3c..00000000 --- a/docs/V2paymentsOrderInformationShippingDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2paymentsOrderInformationShippingDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gift_wrap** | **bool** | TBD | [optional] -**shipping_method** | **str** | Shipping method for the product. Possible values: - lowcost: Lowest-cost service - sameday: Courier or same-day service - oneday: Next-day or overnight service - twoday: Two-day service - threeday: Three-day service - pickup: Store pick-up - other: Other shipping method - none: No shipping method because product is a service or subscription | [optional] -**ship_from_postal_code** | **str** | Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsPaymentInformation.md b/docs/V2paymentsPaymentInformation.md deleted file mode 100644 index 7071fe22..00000000 --- a/docs/V2paymentsPaymentInformation.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2paymentsPaymentInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**card** | [**V2paymentsPaymentInformationCard**](V2paymentsPaymentInformationCard.md) | | [optional] -**tokenized_card** | [**V2paymentsPaymentInformationTokenizedCard**](V2paymentsPaymentInformationTokenizedCard.md) | | [optional] -**fluid_data** | [**V2paymentsPaymentInformationFluidData**](V2paymentsPaymentInformationFluidData.md) | | [optional] -**customer** | [**V2paymentsPaymentInformationCustomer**](V2paymentsPaymentInformationCustomer.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsPaymentInformationCard.md b/docs/V2paymentsPaymentInformationCard.md deleted file mode 100644 index 575c157f..00000000 --- a/docs/V2paymentsPaymentInformationCard.md +++ /dev/null @@ -1,21 +0,0 @@ -# V2paymentsPaymentInformationCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number** | **str** | Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**expiration_month** | **str** | Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**expiration_year** | **str** | Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] -**use_as** | **str** | Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. **Cielo** and **Comercio Latino** Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. | [optional] -**source_account_type** | **str** | Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. - Applicable only for CTV. **Note** Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. - CHECKING: Checking account - CREDIT: Credit card account - SAVING: Saving account - LINE_OF_CREDIT: Line of credit - PREPAID: Prepaid card account - UNIVERSAL: Universal account | [optional] -**security_code** | **str** | Card Verification Number. | [optional] -**security_code_indicator** | **str** | Flag that indicates whether a CVN code was sent. Possible values: - 0 (default): CVN service not requested. CyberSource uses this default value when you do not include _securityCode_ in the request. - 1 (default): CVN service requested and supported. CyberSource uses this default value when you include _securityCode_ in the request. - 2: CVN on credit card is illegible. - 9: CVN was not imprinted on credit card. | [optional] -**account_encoder_id** | **str** | Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. | [optional] -**issue_number** | **str** | Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. | [optional] -**start_month** | **str** | Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. | [optional] -**start_year** | **str** | Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsPaymentInformationCustomer.md b/docs/V2paymentsPaymentInformationCustomer.md deleted file mode 100644 index ca2f4711..00000000 --- a/docs/V2paymentsPaymentInformationCustomer.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2paymentsPaymentInformationCustomer - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customer_id** | **str** | Unique identifier for the customer's card and billing information. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsPaymentInformationFluidData.md b/docs/V2paymentsPaymentInformationFluidData.md deleted file mode 100644 index de803356..00000000 --- a/docs/V2paymentsPaymentInformationFluidData.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2paymentsPaymentInformationFluidData - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **str** | TBD | [optional] -**descriptor** | **str** | Format of the encrypted payment data. | [optional] -**value** | **str** | The encrypted payment data value. If using Apple Pay or Samsung Pay, the values are: - Apple Pay: RklEPUNPTU1PTi5BUFBMRS5JTkFQUC5QQVlNRU5U - Samsung Pay: RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ= | [optional] -**encoding** | **str** | Encoding method used to encrypt the payment data. Possible value: Base64 | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsPaymentInformationTokenizedCard.md b/docs/V2paymentsPaymentInformationTokenizedCard.md deleted file mode 100644 index 7db70f9b..00000000 --- a/docs/V2paymentsPaymentInformationTokenizedCard.md +++ /dev/null @@ -1,19 +0,0 @@ -# V2paymentsPaymentInformationTokenizedCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number** | **str** | Customer’s payment network token value. | [optional] -**expiration_month** | **str** | Two-digit month in which the payment network token expires. `Format: MM`. Possible values: 01 through 12. | [optional] -**expiration_year** | **str** | Four-digit year in which the payment network token expires. `Format: YYYY`. | [optional] -**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] -**cryptogram** | **str** | This field is used internally. | [optional] -**requestor_id** | **str** | Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. | [optional] -**transaction_type** | **str** | Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Set the value for this field to 1. An application on the customer’s mobile device provided the token data. | [optional] -**assurance_level** | **str** | Confidence level of the tokenization. This value is assigned by the token service provider. `Note` This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. | [optional] -**storage_method** | **str** | Type of technology used in the device to store token data. Possible values: - 001: Secure Element (SE) Smart card or memory with restricted access and encryption to prevent data tampering. For storing payment credentials, a SE is tested against a set of requirements defined by the payment networks. `Note` This field is supported only for **FDC Compass**. - 002: Host Card Emulation (HCE) Emulation of a smart card by using software to create a virtual and exact representation of the card. Sensitive data is stored in a database that is hosted in the cloud. For storing payment credentials, a database must meet very stringent security requirements that exceed PCI DSS. `Note` This field is supported only for **FDC Compass**. | [optional] -**security_code** | **str** | CVN. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsPointOfSaleInformation.md b/docs/V2paymentsPointOfSaleInformation.md deleted file mode 100644 index fc3252c6..00000000 --- a/docs/V2paymentsPointOfSaleInformation.md +++ /dev/null @@ -1,21 +0,0 @@ -# V2paymentsPointOfSaleInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**terminal_id** | **str** | Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. For Payouts: This field is applicable for CtV. | [optional] -**terminal_serial_number** | **str** | TBD | [optional] -**lane_number** | **str** | Identifier for an alternate terminal at your retail location. You define the value for this field. This field is supported only for MasterCard transactions on FDC Nashville Global. Use the _terminalID_ field to identify the main terminal at your retail location. If your retail location has multiple terminals, use this _alternateTerminalID_ field to identify the terminal used for the transaction. This field is a pass-through, which means that CyberSource does not check the value or modify the value in any way before sending it to the processor. | [optional] -**card_present** | **bool** | Indicates whether the card is present at the time of the transaction. Possible values: - **true**: Card is present. - **false**: Card is not present. | [optional] -**cat_level** | **int** | Type of cardholder-activated terminal. Possible values: - 1: Automated dispensing machine - 2: Self-service terminal - 3: Limited amount terminal - 4: In-flight commerce (IFC) terminal - 5: Radio frequency device - 6: Mobile acceptance terminal - 7: Electronic cash register - 8: E-commerce device at your location - 9: Terminal or cash register that uses a dialup connection to connect to the transaction processing network * Applicable only for CTV for Payouts. | [optional] -**entry_mode** | **str** | Method of entering credit card information into the POS terminal. Possible values: - contact: Read from direct contact with chip card. - contactless: Read from a contactless interface using chip data. - keyed: Manually keyed into POS terminal. - msd: Read from a contactless interface using magnetic stripe data (MSD). - swiped: Read from credit card magnetic stripe. The contact, contactless, and msd values are supported only for EMV transactions. * Applicable only for CTV for Payouts. | [optional] -**terminal_capability** | **int** | POS terminal’s capability. Possible values: - 1: Terminal has a magnetic stripe reader only. - 2: Terminal has a magnetic stripe reader and manual entry capability. - 3: Terminal has manual entry capability only. - 4: Terminal can read chip cards. - 5: Terminal can read contactless chip cards. The values of 4 and 5 are supported only for EMV transactions. * Applicable only for CTV for Payouts. | [optional] -**pin_entry_capability** | **int** | A one-digit code that identifies the capability of terminal to capture PINs. This code does not necessarily mean that a PIN was entered or is included in this message. For Payouts: This field is applicable for CtV. | [optional] -**operating_environment** | **str** | Operating environment. Possible values: - 0: No terminal used or unknown environment. - 1: On merchant premises, attended. - 2: On merchant premises, unattended, or cardholder terminal. Examples: oil, kiosks, self-checkout, home computer, mobile telephone, personal digital assistant (PDA). Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 3: Off merchant premises, attended. Examples: portable POS devices at trade shows, at service calls, or in taxis. - 4: Off merchant premises, unattended, or cardholder terminal. Examples: vending machines, home computer, mobile telephone, PDA. Cardholder terminal is supported only for MasterCard transactions on **CyberSource through VisaNet**. - 5: On premises of cardholder, unattended. - 9: Unknown delivery mode. - S: Electronic delivery of product. Examples: music, software, or eTickets that are downloaded over the internet. - T: Physical delivery of product. Examples: music or software that is delivered by mail or by a courier. This field is supported only for **American Express Direct** and **CyberSource through VisaNet**. **CyberSource through VisaNet** For MasterCard transactions, the only valid values are 2 and 4. | [optional] -**emv** | [**V2paymentsPointOfSaleInformationEmv**](V2paymentsPointOfSaleInformationEmv.md) | | [optional] -**amex_capn_data** | **str** | Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. | [optional] -**track_data** | **str** | Card’s track 1 and 2 data. For all processors except FDMS Nashville, this value consists of one of the following: - Track 1 data - Track 2 data - Data for both tracks 1 and 2 For FDMS Nashville, this value consists of one of the following: - Track 1 data - Data for both tracks 1 and 2 Example: %B4111111111111111^SMITH/JOHN ^1612101976110000868000000?;4111111111111111=16121019761186800000? | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsPointOfSaleInformationEmv.md b/docs/V2paymentsPointOfSaleInformationEmv.md deleted file mode 100644 index bad7ff8a..00000000 --- a/docs/V2paymentsPointOfSaleInformationEmv.md +++ /dev/null @@ -1,14 +0,0 @@ -# V2paymentsPointOfSaleInformationEmv - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | **str** | EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram | [optional] -**cardholder_verification_method** | **float** | Method that was used to verify the cardholder's identity. Possible values: - **0**: No verification - **1**: Signature This field is supported only on **American Express Direct**. | [optional] -**card_sequence_number** | **str** | Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. | [optional] -**fallback** | **bool** | Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. | [optional] [default to False] -**fallback_condition** | **float** | Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsProcessingInformation.md b/docs/V2paymentsProcessingInformation.md deleted file mode 100644 index 7a7a8867..00000000 --- a/docs/V2paymentsProcessingInformation.md +++ /dev/null @@ -1,23 +0,0 @@ -# V2paymentsProcessingInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capture** | **bool** | Flag that specifies whether to also include capture service in the submitted request or not. | [optional] [default to False] -**processor_id** | **str** | Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. | [optional] -**business_application_id** | **str** | TBD | [optional] -**commerce_indicator** | **str** | Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for **Ingenico ePayments**, the processor uses the default transaction type they have on file for you instead of the default value listed here. | [optional] -**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] -**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] -**link_id** | **str** | Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. | [optional] -**purchase_level** | **str** | Set this field to 3 to indicate that the request includes Level III data. | [optional] -**report_group** | **str** | Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. | [optional] -**visa_checkout_id** | **str** | Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. | [optional] -**issuer** | [**V2paymentsProcessingInformationIssuer**](V2paymentsProcessingInformationIssuer.md) | | [optional] -**authorization_options** | [**V2paymentsProcessingInformationAuthorizationOptions**](V2paymentsProcessingInformationAuthorizationOptions.md) | | [optional] -**capture_options** | [**V2paymentsProcessingInformationCaptureOptions**](V2paymentsProcessingInformationCaptureOptions.md) | | [optional] -**recurring_options** | [**V2paymentsProcessingInformationRecurringOptions**](V2paymentsProcessingInformationRecurringOptions.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsProcessingInformationAuthorizationOptions.md b/docs/V2paymentsProcessingInformationAuthorizationOptions.md deleted file mode 100644 index 7bb9ae15..00000000 --- a/docs/V2paymentsProcessingInformationAuthorizationOptions.md +++ /dev/null @@ -1,19 +0,0 @@ -# V2paymentsProcessingInformationAuthorizationOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth_type** | **str** | Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**verbal_auth_code** | **str** | Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**verbal_auth_transaction_id** | **str** | Transaction ID (TID). | [optional] -**auth_indicator** | **str** | Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization For processor-specific information, see the auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**partial_auth_indicator** | **bool** | Flag that indicates whether the transaction is enabled for partial authorization or not. When your request includes this field, this value overrides the information in your CyberSource account. For processor-specific information, see the auth_partial_auth_indicator field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**balance_inquiry** | **bool** | Flag that indicates whether to return balance information. | [optional] -**ignore_avs_result** | **bool** | Flag that indicates whether to allow the capture service to run even when the payment receives an AVS decline. | [optional] [default to False] -**decline_avs_flags** | **list[str]** | An array of AVS flags that cause the reply flag to be returned. `Important` To receive declines for the AVS code N, include the value N in the array. | [optional] -**ignore_cv_result** | **bool** | Flag that indicates whether to allow the capture service to run even when the payment receives a CVN decline. | [optional] [default to False] -**initiator** | [**V2paymentsProcessingInformationAuthorizationOptionsInitiator**](V2paymentsProcessingInformationAuthorizationOptionsInitiator.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsProcessingInformationAuthorizationOptionsInitiator.md b/docs/V2paymentsProcessingInformationAuthorizationOptionsInitiator.md deleted file mode 100644 index a945b361..00000000 --- a/docs/V2paymentsProcessingInformationAuthorizationOptionsInitiator.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2paymentsProcessingInformationAuthorizationOptionsInitiator - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction. | [optional] -**credential_stored_on_file** | **bool** | Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. | [optional] -**stored_credential_used** | **bool** | Flag that indicates whether merchant is intend to use this transaction to store payment credential for follow-up merchant-initiated transactions or not. | [optional] -**merchant_initiated_transaction** | [**V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction**](V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md b/docs/V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md deleted file mode 100644 index f574568b..00000000 --- a/docs/V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reason** | **str** | Reason for the merchant-initiated transaction. Possible values: - **1**: Resubmission - **2**: Delayed charge - **3**: Reauthorization for split shipment - **4**: No show - **5**: Account top up This field is not required for installment payments or recurring payments or when _reAuth.first_ is true. It is required for all other merchant-initiated transactions. This field is supported only for Visa transactions on CyberSource through VisaNet. | [optional] -**previous_transaction_id** | **str** | Transaction identifier that was returned in the payment response field _processorInformation.transactionID_ in the reply message for either the original merchant initiated payment in the series or the previous merchant-initiated payment in the series. <p/> If the current payment request includes a token instead of an account number, the following time limits apply for the value of this field: For a **resubmission**, the transaction ID must be less than 14 days old. For a **delayed charge** or **reauthorization**, the transaction ID must be less than 30 days old. The value for this field does not correspond to any data in the TC 33 capture file. This field is supported only for Visa transactions on CyberSource through VisaNet. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsProcessingInformationCaptureOptions.md b/docs/V2paymentsProcessingInformationCaptureOptions.md deleted file mode 100644 index 0e9431a7..00000000 --- a/docs/V2paymentsProcessingInformationCaptureOptions.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2paymentsProcessingInformationCaptureOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capture_sequence_number** | **float** | Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 | [optional] -**total_capture_count** | **float** | Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 | [optional] -**date_to_capture** | **str** | Date on which you want the capture to occur. This field is supported only for **CyberSource through VisaNet**. `Format: MMDD` | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsProcessingInformationIssuer.md b/docs/V2paymentsProcessingInformationIssuer.md deleted file mode 100644 index e7c68ac2..00000000 --- a/docs/V2paymentsProcessingInformationIssuer.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2paymentsProcessingInformationIssuer - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discretionary_data** | **str** | Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **CyberSource through VisaNet**. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsProcessingInformationRecurringOptions.md b/docs/V2paymentsProcessingInformationRecurringOptions.md deleted file mode 100644 index dcc99c57..00000000 --- a/docs/V2paymentsProcessingInformationRecurringOptions.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsProcessingInformationRecurringOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loan_payment** | **bool** | Flag that indicates whether this is a payment towards an existing contractual loan. | [optional] [default to False] -**first_recurring_payment** | **bool** | Flag that indicates whether this transaction is the first in a series of recurring payments. This field is supported only for **Atos**, **FDC Nashville Global**, and **OmniPay Direct**. | [optional] [default to False] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsRecipientInformation.md b/docs/V2paymentsRecipientInformation.md deleted file mode 100644 index ea27102e..00000000 --- a/docs/V2paymentsRecipientInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2paymentsRecipientInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_id** | **str** | Identifier for the recipient’s account. Use the first six digits and last four digits of the recipient’s account number. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] -**last_name** | **str** | Recipient’s last name. This field is a passthrough, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] -**postal_code** | **str** | Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesAggregatorInformation.md b/docs/V2paymentsidcapturesAggregatorInformation.md deleted file mode 100644 index d3c95c81..00000000 --- a/docs/V2paymentsidcapturesAggregatorInformation.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2paymentsidcapturesAggregatorInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aggregator_id** | **str** | Value that identifies you as a payment aggregator. Get this value from the processor. For processor-specific information, see the aggregator_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**name** | **str** | Your payment aggregator business name. For processor-specific information, see the aggregator_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**sub_merchant** | [**V2paymentsidcapturesAggregatorInformationSubMerchant**](V2paymentsidcapturesAggregatorInformationSubMerchant.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesAggregatorInformationSubMerchant.md b/docs/V2paymentsidcapturesAggregatorInformationSubMerchant.md deleted file mode 100644 index c7c1ad05..00000000 --- a/docs/V2paymentsidcapturesAggregatorInformationSubMerchant.md +++ /dev/null @@ -1,17 +0,0 @@ -# V2paymentsidcapturesAggregatorInformationSubMerchant - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Sub-merchant’s business name. | [optional] -**address1** | **str** | First line of the sub-merchant’s street address. | [optional] -**locality** | **str** | Sub-merchant’s city. | [optional] -**administrative_area** | **str** | Sub-merchant’s state or province. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] -**postal_code** | **str** | Partial postal code for the sub-merchant’s address. | [optional] -**country** | **str** | Sub-merchant’s country. Use the two-character ISO Standard Country Codes. | [optional] -**email** | **str** | Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 | [optional] -**phone_number** | **str** | Sub-merchant’s telephone number. **Maximum length for procesors** - American Express Direct: 20 - CyberSource through VisaNet: 20 - FDC Compass: 13 - FDC Nashville Global: 10 | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesBuyerInformation.md b/docs/V2paymentsidcapturesBuyerInformation.md deleted file mode 100644 index b88337e4..00000000 --- a/docs/V2paymentsidcapturesBuyerInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsidcapturesBuyerInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merchant_customer_id** | **str** | Your identifier for the customer. For processor-specific information, see the customer_account_id field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**vat_registration_number** | **str** | Customer’s government-assigned tax identification number. For processor-specific information, see the purchaser_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesMerchantInformation.md b/docs/V2paymentsidcapturesMerchantInformation.md deleted file mode 100644 index 2592f36f..00000000 --- a/docs/V2paymentsidcapturesMerchantInformation.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2paymentsidcapturesMerchantInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merchant_descriptor** | [**V2paymentsMerchantInformationMerchantDescriptor**](V2paymentsMerchantInformationMerchantDescriptor.md) | | [optional] -**card_acceptor_reference_number** | **str** | Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**category_code** | **int** | Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**vat_registration_number** | **str** | Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesOrderInformation.md b/docs/V2paymentsidcapturesOrderInformation.md deleted file mode 100644 index 51e06484..00000000 --- a/docs/V2paymentsidcapturesOrderInformation.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2paymentsidcapturesOrderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount_details** | [**V2paymentsidcapturesOrderInformationAmountDetails**](V2paymentsidcapturesOrderInformationAmountDetails.md) | | [optional] -**bill_to** | [**V2paymentsidcapturesOrderInformationBillTo**](V2paymentsidcapturesOrderInformationBillTo.md) | | [optional] -**ship_to** | [**V2paymentsidcapturesOrderInformationShipTo**](V2paymentsidcapturesOrderInformationShipTo.md) | | [optional] -**line_items** | [**list[V2paymentsOrderInformationLineItems]**](V2paymentsOrderInformationLineItems.md) | | [optional] -**invoice_details** | [**V2paymentsidcapturesOrderInformationInvoiceDetails**](V2paymentsidcapturesOrderInformationInvoiceDetails.md) | | [optional] -**shipping_details** | [**V2paymentsidcapturesOrderInformationShippingDetails**](V2paymentsidcapturesOrderInformationShippingDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesOrderInformationAmountDetails.md b/docs/V2paymentsidcapturesOrderInformationAmountDetails.md deleted file mode 100644 index 911ca8aa..00000000 --- a/docs/V2paymentsidcapturesOrderInformationAmountDetails.md +++ /dev/null @@ -1,25 +0,0 @@ -# V2paymentsidcapturesOrderInformationAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] -**discount_amount** | **str** | Total discount amount applied to the order. For processor-specific information, see the order_discount_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**duty_amount** | **str** | Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_amount** | **str** | Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**national_tax_included** | **str** | Flag that indicates whether a national tax is included in the order total. Possible values: - **0**: national tax not included - **1**: national tax included For processor-specific information, see the national_tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_applied_after_discount** | **str** | Flag that indicates how the merchant manages discounts. Possible values: - **0**: no invoice level discount included - **1**: tax calculated on the postdiscount invoice total - **2**: tax calculated on the prediscount invoice total For processor-specific information, see the order_discount_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_applied_level** | **str** | Flag that indicates how you calculate tax. Possible values: - **0**: net prices with tax calculated at line item level - **1**: net prices with tax calculated at invoice level - **2**: gross prices with tax provided at line item level - **3**: gross prices with tax provided at invoice level - **4**: no tax applies on the invoice for the transaction For processor-specific information, see the tax_management_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**tax_type_code** | **str** | For tax amounts that can be categorized as one tax type. This field contains the tax type code that corresponds to the entry in the _lineItems.taxAmount_ field. Possible values: - **056**: sales tax (U.S only) - **TX~**: all taxes (Canada only) Note ~ = space. For processor-specific information, see the total_tax_type_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**freight_amount** | **str** | Total freight or shipping and handling charges for the order. When you include this field in your request, you must also include the **totalAmount** field. For processor-specific information, see the freight_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**foreign_amount** | **str** | Converted amount returned by the DCC service. For processor-specific information, see the foreign_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**foreign_currency** | **str** | Billing currency returned by the DCC service. For processor-specific information, see the foreign_currency field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**exchange_rate** | **str** | Exchange rate returned by the DCC service. Includes a decimal point and a maximum of 4 decimal places. For processor-specific information, see the exchange_rate field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**exchange_rate_time_stamp** | **str** | Time stamp for the exchange rate. This value is returned by the DCC service. Format: `YYYYMMDD~HH:MM` where ~ denotes a space. For processor-specific information, see the exchange_rate_timestamp field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**amex_additional_amounts** | [**list[V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts]**](V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md) | | [optional] -**tax_details** | [**list[V2paymentsOrderInformationAmountDetailsTaxDetails]**](V2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesOrderInformationBillTo.md b/docs/V2paymentsidcapturesOrderInformationBillTo.md deleted file mode 100644 index a39ba4ea..00000000 --- a/docs/V2paymentsidcapturesOrderInformationBillTo.md +++ /dev/null @@ -1,20 +0,0 @@ -# V2paymentsidcapturesOrderInformationBillTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**first_name** | **str** | Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**last_name** | **str** | Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**company** | **str** | Name of the customer’s company. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**address1** | **str** | First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**address2** | **str** | Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**locality** | **str** | City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**administrative_area** | **str** | State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**postal_code** | **str** | Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**country** | **str** | Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**email** | **str** | Customer's email address, including the full domain name. For processor-specific information, see the customer_email field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**phone_number** | **str** | Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesOrderInformationInvoiceDetails.md b/docs/V2paymentsidcapturesOrderInformationInvoiceDetails.md deleted file mode 100644 index dbaf8bca..00000000 --- a/docs/V2paymentsidcapturesOrderInformationInvoiceDetails.md +++ /dev/null @@ -1,16 +0,0 @@ -# V2paymentsidcapturesOrderInformationInvoiceDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**purchase_order_number** | **str** | Value used by your customer to identify the order. This value is typically a purchase order number. CyberSource recommends that you do not populate the field with all zeros or nines. For processor-specific information, see the user_po field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**purchase_order_date** | **str** | Date the order was processed. `Format: YYYY-MM-DD`. For processor-specific information, see the purchaser_order_date field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**purchase_contact_name** | **str** | The name of the individual or the company contacted for company authorized purchases. For processor-specific information, see the authorized_contact_name field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**taxable** | **bool** | Flag that indicates whether an order is taxable. This value must be true if the sum of all _lineItems[].taxAmount_ values > 0. If you do not include any _lineItems[].taxAmount_ values in your request, CyberSource does not include _invoiceDetails.taxable_ in the data it sends to the processor. For processor-specific information, see the tax_indicator field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**vat_invoice_reference_number** | **str** | VAT invoice number associated with the transaction. For processor-specific information, see the vat_invoice_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**commodity_code** | **str** | International description code of the overall order’s goods or services or the Categorizes purchases for VAT reporting. Contact your acquirer for a list of codes. For processor-specific information, see the summary_commodity_code field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**transaction_advice_addendum** | [**list[V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum]**](V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesOrderInformationShipTo.md b/docs/V2paymentsidcapturesOrderInformationShipTo.md deleted file mode 100644 index 3b246289..00000000 --- a/docs/V2paymentsidcapturesOrderInformationShipTo.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2paymentsidcapturesOrderInformationShipTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**administrative_area** | **str** | State or province of the shipping address. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] -**country** | **str** | Country of the shipping address. Use the two character ISO Standard Country Codes. | [optional] -**postal_code** | **str** | Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesOrderInformationShippingDetails.md b/docs/V2paymentsidcapturesOrderInformationShippingDetails.md deleted file mode 100644 index f5b06a8c..00000000 --- a/docs/V2paymentsidcapturesOrderInformationShippingDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2paymentsidcapturesOrderInformationShippingDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ship_from_postal_code** | **str** | Postal code for the address from which the goods are shipped, which is used to establish nexus. The default is the postal code associated with your CyberSource account. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: `[5 digits][dash][4 digits]` Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: `[alpha][numeric][alpha][space] [numeric][alpha][numeric]` Example A1B 2C3 This field is frequently used for Level II and Level III transactions. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesPaymentInformation.md b/docs/V2paymentsidcapturesPaymentInformation.md deleted file mode 100644 index e0d4300c..00000000 --- a/docs/V2paymentsidcapturesPaymentInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2paymentsidcapturesPaymentInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customer** | [**V2paymentsPaymentInformationCustomer**](V2paymentsPaymentInformationCustomer.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesPointOfSaleInformation.md b/docs/V2paymentsidcapturesPointOfSaleInformation.md deleted file mode 100644 index 24e5d37a..00000000 --- a/docs/V2paymentsidcapturesPointOfSaleInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsidcapturesPointOfSaleInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emv** | [**V2paymentsidcapturesPointOfSaleInformationEmv**](V2paymentsidcapturesPointOfSaleInformationEmv.md) | | [optional] -**amex_capn_data** | **str** | Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesPointOfSaleInformationEmv.md b/docs/V2paymentsidcapturesPointOfSaleInformationEmv.md deleted file mode 100644 index 743c2515..00000000 --- a/docs/V2paymentsidcapturesPointOfSaleInformationEmv.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsidcapturesPointOfSaleInformationEmv - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | **str** | EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. `Important` The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. `Important` For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram | [optional] -**fallback** | **bool** | Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pos_entry_mode field to indicate whether the information was swiped or keyed. This field is supported only on **Chase Paymentech Solutions** and **GPN**. | [optional] [default to False] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesProcessingInformation.md b/docs/V2paymentsidcapturesProcessingInformation.md deleted file mode 100644 index b8ae6ea7..00000000 --- a/docs/V2paymentsidcapturesProcessingInformation.md +++ /dev/null @@ -1,18 +0,0 @@ -# V2paymentsidcapturesProcessingInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] -**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] -**link_id** | **str** | Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. | [optional] -**report_group** | **str** | Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. | [optional] -**visa_checkout_id** | **str** | Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. | [optional] -**purchase_level** | **str** | Set this field to 3 to indicate that the request includes Level III data. | [optional] -**issuer** | [**V2paymentsProcessingInformationIssuer**](V2paymentsProcessingInformationIssuer.md) | | [optional] -**authorization_options** | [**V2paymentsidcapturesProcessingInformationAuthorizationOptions**](V2paymentsidcapturesProcessingInformationAuthorizationOptions.md) | | [optional] -**capture_options** | [**V2paymentsidcapturesProcessingInformationCaptureOptions**](V2paymentsidcapturesProcessingInformationCaptureOptions.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesProcessingInformationAuthorizationOptions.md b/docs/V2paymentsidcapturesProcessingInformationAuthorizationOptions.md deleted file mode 100644 index ac87f282..00000000 --- a/docs/V2paymentsidcapturesProcessingInformationAuthorizationOptions.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2paymentsidcapturesProcessingInformationAuthorizationOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**auth_type** | **str** | Authorization type. Possible values: - **AUTOCAPTURE**: automatic capture. - **STANDARDCAPTURE**: standard capture. - **VERBAL**: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. For processor-specific information, see the auth_type field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**verbal_auth_code** | **str** | Authorization code. **Forced Capture** Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. **Verbal Authorization** Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the auth_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**verbal_auth_transaction_id** | **str** | Transaction ID (TID). | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidcapturesProcessingInformationCaptureOptions.md b/docs/V2paymentsidcapturesProcessingInformationCaptureOptions.md deleted file mode 100644 index e001103e..00000000 --- a/docs/V2paymentsidcapturesProcessingInformationCaptureOptions.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsidcapturesProcessingInformationCaptureOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capture_sequence_number** | **float** | Capture number when requesting multiple partial captures for one payment. Used along with _totalCaptureCount_ to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 | [optional] -**total_capture_count** | **float** | Total number of captures when requesting multiple partial captures for one payment. Used along with _captureSequenceNumber_ which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - _captureSequenceNumber_ = 2, and - _totalCaptureCount_ = 5 | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidrefundsMerchantInformation.md b/docs/V2paymentsidrefundsMerchantInformation.md deleted file mode 100644 index 771730e8..00000000 --- a/docs/V2paymentsidrefundsMerchantInformation.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2paymentsidrefundsMerchantInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merchant_descriptor** | [**V2paymentsMerchantInformationMerchantDescriptor**](V2paymentsMerchantInformationMerchantDescriptor.md) | | [optional] -**category_code** | **int** | Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**vat_registration_number** | **str** | Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**card_acceptor_reference_number** | **str** | Reference number that facilitates card acceptor/corporation communication and record keeping. For processor-specific information, see the card_acceptor_ref_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidrefundsOrderInformation.md b/docs/V2paymentsidrefundsOrderInformation.md deleted file mode 100644 index e74024ba..00000000 --- a/docs/V2paymentsidrefundsOrderInformation.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2paymentsidrefundsOrderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount_details** | [**V2paymentsidcapturesOrderInformationAmountDetails**](V2paymentsidcapturesOrderInformationAmountDetails.md) | | [optional] -**bill_to** | [**V2paymentsidcapturesOrderInformationBillTo**](V2paymentsidcapturesOrderInformationBillTo.md) | | [optional] -**ship_to** | [**V2paymentsidcapturesOrderInformationShipTo**](V2paymentsidcapturesOrderInformationShipTo.md) | | [optional] -**line_items** | [**list[V2paymentsidrefundsOrderInformationLineItems]**](V2paymentsidrefundsOrderInformationLineItems.md) | | [optional] -**invoice_details** | [**V2paymentsidcapturesOrderInformationInvoiceDetails**](V2paymentsidcapturesOrderInformationInvoiceDetails.md) | | [optional] -**shipping_details** | [**V2paymentsidcapturesOrderInformationShippingDetails**](V2paymentsidcapturesOrderInformationShippingDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidrefundsOrderInformationLineItems.md b/docs/V2paymentsidrefundsOrderInformationLineItems.md deleted file mode 100644 index 49e1e42f..00000000 --- a/docs/V2paymentsidrefundsOrderInformationLineItems.md +++ /dev/null @@ -1,29 +0,0 @@ -# V2paymentsidrefundsOrderInformationLineItems - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_code** | **str** | Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required. | [optional] -**product_name** | **str** | For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] -**product_sku** | **str** | Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling. | [optional] -**quantity** | **float** | For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] -**unit_price** | **str** | Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**unit_of_measure** | **str** | Unit of measure, or unit of measure code, for the item. | [optional] -**total_amount** | **str** | Total amount for the item. Normally calculated as the unit price x quantity. | [optional] -**tax_amount** | **str** | Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. | [optional] -**tax_rate** | **str** | Tax rate applied to the item. See \"Numbered Elements,\" page 14. Visa: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). Mastercard: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). | [optional] -**tax_applied_after_discount** | **str** | Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. | [optional] -**tax_status_indicator** | **str** | Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax | [optional] -**tax_type_code** | **str** | Type of tax being applied to the item. Possible values: Below values are used by **RBS WorldPay Atlanta**, **FDC Nashville Global**, **Litle** - 0000: unknown tax type - 0001: federal/national sales tax - 0002: state sales tax - 0003: city sales tax - 0004: local sales tax - 0005: municipal sales tax - 0006: other tax - 0010: value-added tax - 0011: goods and services tax - 0012: provincial sales tax - 0013: harmonized sales tax - 0014: Quebec sales tax (QST) - 0020: room tax - 0021: occupancy tax - 0022: energy tax - Blank: Tax not supported on line item. | [optional] -**amount_includes_tax** | **bool** | Flag that indicates whether the tax amount is included in the Line Item Total. | [optional] -**type_of_supply** | **str** | Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services | [optional] -**commodity_code** | **str** | Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. | [optional] -**discount_amount** | **str** | Discount applied to the item. | [optional] -**discount_applied** | **bool** | Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. | [optional] -**discount_rate** | **str** | Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) | [optional] -**invoice_number** | **str** | Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. | [optional] -**tax_details** | [**list[V2paymentsOrderInformationAmountDetailsTaxDetails]**](V2paymentsOrderInformationAmountDetailsTaxDetails.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidrefundsPaymentInformation.md b/docs/V2paymentsidrefundsPaymentInformation.md deleted file mode 100644 index a8a3e9c4..00000000 --- a/docs/V2paymentsidrefundsPaymentInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2paymentsidrefundsPaymentInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**card** | [**V2paymentsidrefundsPaymentInformationCard**](V2paymentsidrefundsPaymentInformationCard.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidrefundsPaymentInformationCard.md b/docs/V2paymentsidrefundsPaymentInformationCard.md deleted file mode 100644 index dbcc6921..00000000 --- a/docs/V2paymentsidrefundsPaymentInformationCard.md +++ /dev/null @@ -1,17 +0,0 @@ -# V2paymentsidrefundsPaymentInformationCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**number** | **str** | Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**expiration_month** | **str** | Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**expiration_year** | **str** | Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**type** | **str** | Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover | [optional] -**account_encoder_id** | **str** | Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID. | [optional] -**issue_number** | **str** | Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. The issue number is not required for Maestro (UK Domestic) transactions. | [optional] -**start_month** | **str** | Month of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: MM`. Possible values: 01 through 12. The start date is not required for Maestro (UK Domestic) transactions. | [optional] -**start_year** | **str** | Year of the start of the Maestro (UK Domestic) card validity period. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. `Format: YYYY`. The start date is not required for Maestro (UK Domestic) transactions. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidrefundsPointOfSaleInformation.md b/docs/V2paymentsidrefundsPointOfSaleInformation.md deleted file mode 100644 index 904c7fc0..00000000 --- a/docs/V2paymentsidrefundsPointOfSaleInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2paymentsidrefundsPointOfSaleInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emv** | [**V2paymentsidcapturesPointOfSaleInformationEmv**](V2paymentsidcapturesPointOfSaleInformationEmv.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidrefundsProcessingInformation.md b/docs/V2paymentsidrefundsProcessingInformation.md deleted file mode 100644 index 9cb304ae..00000000 --- a/docs/V2paymentsidrefundsProcessingInformation.md +++ /dev/null @@ -1,16 +0,0 @@ -# V2paymentsidrefundsProcessingInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] -**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] -**link_id** | **str** | Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. | [optional] -**report_group** | **str** | Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. | [optional] -**visa_checkout_id** | **str** | Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. | [optional] -**purchase_level** | **str** | Set this field to 3 to indicate that the request includes Level III data. | [optional] -**recurring_options** | [**V2paymentsidrefundsProcessingInformationRecurringOptions**](V2paymentsidrefundsProcessingInformationRecurringOptions.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidrefundsProcessingInformationRecurringOptions.md b/docs/V2paymentsidrefundsProcessingInformationRecurringOptions.md deleted file mode 100644 index 98078f1f..00000000 --- a/docs/V2paymentsidrefundsProcessingInformationRecurringOptions.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2paymentsidrefundsProcessingInformationRecurringOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loan_payment** | **bool** | Flag that indicates whether this is a payment towards an existing contractual loan. | [optional] [default to False] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidreversalsClientReferenceInformation.md b/docs/V2paymentsidreversalsClientReferenceInformation.md deleted file mode 100644 index 6283fc64..00000000 --- a/docs/V2paymentsidreversalsClientReferenceInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsidreversalsClientReferenceInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. | [optional] -**comments** | **str** | Comments | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidreversalsOrderInformation.md b/docs/V2paymentsidreversalsOrderInformation.md deleted file mode 100644 index 2a8f0f9f..00000000 --- a/docs/V2paymentsidreversalsOrderInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2paymentsidreversalsOrderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**line_items** | [**list[V2paymentsidreversalsOrderInformationLineItems]**](V2paymentsidreversalsOrderInformationLineItems.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidreversalsOrderInformationLineItems.md b/docs/V2paymentsidreversalsOrderInformationLineItems.md deleted file mode 100644 index 6ac820f0..00000000 --- a/docs/V2paymentsidreversalsOrderInformationLineItems.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsidreversalsOrderInformationLineItems - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**quantity** | **float** | For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling. | [optional] -**unit_price** | **str** | Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidreversalsPointOfSaleInformation.md b/docs/V2paymentsidreversalsPointOfSaleInformation.md deleted file mode 100644 index 4a5b68e5..00000000 --- a/docs/V2paymentsidreversalsPointOfSaleInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2paymentsidreversalsPointOfSaleInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emv** | [**InlineResponse201PointOfSaleInformationEmv**](InlineResponse201PointOfSaleInformationEmv.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidreversalsProcessingInformation.md b/docs/V2paymentsidreversalsProcessingInformation.md deleted file mode 100644 index 30fd5464..00000000 --- a/docs/V2paymentsidreversalsProcessingInformation.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2paymentsidreversalsProcessingInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payment_solution** | **str** | Type of digital payment solution that is being used for the transaction. Possible Values: - **visacheckout**: Visa Checkout. - **001**: Apple Pay. - **005**: Masterpass. Required for Masterpass transactions on OmniPay Direct. - **006**: Android Pay. - **008**: Samsung Pay. | [optional] -**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] -**link_id** | **str** | Value that links the current payment request to the original request. Set this value to the ID that was returned in the reply message from the original payment request. This value is used for: - Partial authorizations. - Split shipments. | [optional] -**report_group** | **str** | Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Litle**. | [optional] -**visa_checkout_id** | **str** | Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. | [optional] -**issuer** | [**V2paymentsProcessingInformationIssuer**](V2paymentsProcessingInformationIssuer.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidreversalsReversalInformation.md b/docs/V2paymentsidreversalsReversalInformation.md deleted file mode 100644 index 2bdd2c2f..00000000 --- a/docs/V2paymentsidreversalsReversalInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsidreversalsReversalInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount_details** | [**V2paymentsidreversalsReversalInformationAmountDetails**](V2paymentsidreversalsReversalInformationAmountDetails.md) | | [optional] -**reason** | **str** | Reason for the authorization reversal. Possible value: - 34: Suspected fraud CyberSource ignores this field for processors that do not support this value. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2paymentsidreversalsReversalInformationAmountDetails.md b/docs/V2paymentsidreversalsReversalInformationAmountDetails.md deleted file mode 100644 index bae2be06..00000000 --- a/docs/V2paymentsidreversalsReversalInformationAmountDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2paymentsidreversalsReversalInformationAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsMerchantInformation.md b/docs/V2payoutsMerchantInformation.md deleted file mode 100644 index 1b313eca..00000000 --- a/docs/V2payoutsMerchantInformation.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2payoutsMerchantInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**category_code** | **int** | Four-digit number that the payment card industry uses to classify merchants into market segments. Visa assigned one or more of these values to your business when you started accepting Visa cards. If you do not include this field in your request, CyberSource uses the value in your CyberSource account. For processor-specific information, see the merchant_category_code field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**submit_local_date_time** | **str** | Time that the transaction was submitted in local time. The time is in hhmmss format. | [optional] -**vat_registration_number** | **str** | Your government-assigned tax identification number. For CtV processors, the maximum length is 20. For other processor-specific information, see the merchant_vat_registration_number field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html) | [optional] -**merchant_descriptor** | [**V2payoutsMerchantInformationMerchantDescriptor**](V2payoutsMerchantInformationMerchantDescriptor.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsMerchantInformationMerchantDescriptor.md b/docs/V2payoutsMerchantInformationMerchantDescriptor.md deleted file mode 100644 index a4bc471a..00000000 --- a/docs/V2payoutsMerchantInformationMerchantDescriptor.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2payoutsMerchantInformationMerchantDescriptor - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) For Payouts: * Paymentech (22) | [optional] -**locality** | **str** | Merchant City. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**country** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**administrative_area** | **str** | Merchant State. For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**postal_code** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**contact** | **str** | For the descriptions, used-by information, data types, and lengths for these fields, see Merchant Descriptors in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) * FDCCompass (13) * Paymentech (13) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsOrderInformation.md b/docs/V2payoutsOrderInformation.md deleted file mode 100644 index 0f2823d9..00000000 --- a/docs/V2payoutsOrderInformation.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2payoutsOrderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount_details** | [**V2payoutsOrderInformationAmountDetails**](V2payoutsOrderInformationAmountDetails.md) | | [optional] -**bill_to** | [**V2payoutsOrderInformationBillTo**](V2payoutsOrderInformationBillTo.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsOrderInformationAmountDetails.md b/docs/V2payoutsOrderInformationAmountDetails.md deleted file mode 100644 index 3f4f727d..00000000 --- a/docs/V2payoutsOrderInformationAmountDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2payoutsOrderInformationAmountDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_amount** | **str** | Grand total for the order. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. * CTV, FDCCompass, Paymentech (<= 12) For processor-specific information, see the grand_total_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**currency** | **str** | Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API. | [optional] -**surcharge_amount** | **str** | The surcharge amount is included in the total transaction amount but is passed in a separate field to the issuer and acquirer for tracking. The issuer can provide information about the surcharge amount to the customer. * Applicable only for CTV for Payouts. * CTV (<= 08) For processor-specific information, see the surcharge_amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsOrderInformationBillTo.md b/docs/V2payoutsOrderInformationBillTo.md deleted file mode 100644 index 173e6fef..00000000 --- a/docs/V2payoutsOrderInformationBillTo.md +++ /dev/null @@ -1,19 +0,0 @@ -# V2payoutsOrderInformationBillTo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**first_name** | **str** | Customer’s first name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_firstname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**last_name** | **str** | Customer’s last name. This name must be the same as the name on the card. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the customer_lastname field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**address1** | **str** | First line of the billing street address as it appears on the credit card issuer’s records. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address1 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**address2** | **str** | Additional address information. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_address2 field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**country** | **str** | Country of the billing address. Use the two-character ISO Standard Country Codes. For processor-specific information, see the bill_country field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**locality** | **str** | City of the billing address. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_city field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**administrative_area** | **str** | State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_state field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**postal_code** | **str** | Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the bill_zip field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**phone_number** | **str** | Customer’s phone number. For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**phone_type** | **str** | Customer's phone number type. For Payouts: This field may be sent only for FDC Compass. Possible Values - * day * home * night * work | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsPaymentInformation.md b/docs/V2payoutsPaymentInformation.md deleted file mode 100644 index 6c33436c..00000000 --- a/docs/V2payoutsPaymentInformation.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2payoutsPaymentInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**card** | [**V2payoutsPaymentInformationCard**](V2payoutsPaymentInformationCard.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsPaymentInformationCard.md b/docs/V2payoutsPaymentInformationCard.md deleted file mode 100644 index e367456c..00000000 --- a/docs/V2payoutsPaymentInformationCard.md +++ /dev/null @@ -1,14 +0,0 @@ -# V2payoutsPaymentInformationCard - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | Type of card to authorize. * 001 Visa * 002 Mastercard * 003 Amex * 004 Discover | [optional] -**number** | **str** | Customer’s credit card number. Encoded Account Numbers when processing encoded account numbers, use this field for the encoded account number. For processor-specific information, see the customer_cc_number field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**expiration_month** | **str** | Two-digit month in which the credit card expires. `Format: MM`. Possible values: 01 through 12. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 12. For processor-specific information, see the customer_cc_expmo field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**expiration_year** | **str** | Four-digit year in which the credit card expires. `Format: YYYY`. **Encoded Account Numbers** For encoded account numbers (_type_=039), if there is no expiration date on the card, use 2021. For processor-specific information, see the customer_cc_expyr field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) | [optional] -**source_account_type** | **str** | Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. This field is required in the following cases. * Debit transactions on Cielo and Comercio Latino. * Transactions with Brazilian-issued cards on CyberSource through VisaNet. * Applicable only for CTV. Note Combo cards in Brazil contain credit and debit functionality in a single card. Visa systems use a credit bank identification number (BIN) for this type of card. Using the BIN to determine whether a card is debit or credit can cause transactions with these cards to be processed incorrectly. CyberSource strongly recommends that you include this field for combo card transactions. Possible values include the following. * CH: Checking account * CR: Credit card account * SA: Savings account * UA: Universal Account For combo card transactions with Mastercard in Brazil on CyberSource through VisaNet, the **cardUsage** field is also supported. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsProcessingInformation.md b/docs/V2payoutsProcessingInformation.md deleted file mode 100644 index 244a80e8..00000000 --- a/docs/V2payoutsProcessingInformation.md +++ /dev/null @@ -1,14 +0,0 @@ -# V2payoutsProcessingInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**business_application_id** | **str** | Payouts transaction type. Applicable Processors: FDC Compass, Paymentech, CtV Possible values: **Credit Card Bill Payment** - **CP**: credit card bill payment **Funds Disbursement** - **FD**: funds disbursement - **GD**: government disbursement - **MD**: merchant disbursement **Money Transfer** - **AA**: account to account. Sender and receiver are same person. - **PP**: person to person. Sender and receiver are different. **Prepaid Load** - **TU**: top up | [optional] -**network_routing_order** | **str** | This field is optionally used by Push Payments Gateway participants (merchants and acquirers) to get the attributes for specified networks only. The networks specified in this field must be a subset of the information provided during program enrollment. Refer to Sharing Group Code/Network Routing Order. Note: Supported only in US for domestic transactions involving Push Payments Gateway Service. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the network routing order. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities. See https://developer.visa.com/request_response_codes#network_id_and_sharing_group_code , under section 'Network ID and Sharing Group Code' on the left panel for available values | [optional] -**commerce_indicator** | **str** | Type of transaction. Possible value for Fast Payments transactions: - internet | [optional] -**reconciliation_id** | **str** | Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22). | [optional] -**payouts_options** | [**V2payoutsProcessingInformationPayoutsOptions**](V2payoutsProcessingInformationPayoutsOptions.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsProcessingInformationPayoutsOptions.md b/docs/V2payoutsProcessingInformationPayoutsOptions.md deleted file mode 100644 index 6a6f123c..00000000 --- a/docs/V2payoutsProcessingInformationPayoutsOptions.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2payoutsProcessingInformationPayoutsOptions - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acquirer_merchant_id** | **str** | This field identifies the card acceptor for defining the point of service terminal in both local and interchange environments. An acquirer-assigned code identifying the card acceptor for the transaction. Depending on the acquirer and merchant billing and reporting requirements, the code can represent a merchant, a specific merchant location, or a specific merchant location terminal. Acquiring Institution Identification Code uniquely identifies the merchant. The value from the original is required in any subsequent messages, including reversals, chargebacks, and representments. * Applicable only for CTV for Payouts. | [optional] -**acquirer_bin** | **str** | This code identifies the financial institution acting as the acquirer of this customer transaction. The acquirer is the member or system user that signed the merchant or ADM or dispensed cash. This number is usually Visa-assigned. * Applicable only for CTV for Payouts. | [optional] -**retrieval_reference_number** | **str** | This field contains a number that is used with other data elements as a key to identify and track all messages related to a given cardholder transaction; that is, to a given transaction set. * Applicable only for CTV for Payouts. | [optional] -**account_funding_reference_id** | **str** | Visa-generated transaction identifier (TID) that is unique for each original authorization and financial request. * Applicable only for CTV for Payouts. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsRecipientInformation.md b/docs/V2payoutsRecipientInformation.md deleted file mode 100644 index 1a5b0e00..00000000 --- a/docs/V2payoutsRecipientInformation.md +++ /dev/null @@ -1,19 +0,0 @@ -# V2payoutsRecipientInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**first_name** | **str** | First name of recipient. characters. * CTV (14) * Paymentech (30) | [optional] -**middle_initial** | **str** | Middle Initial of recipient. Required only for FDCCompass. | [optional] -**last_name** | **str** | Last name of recipient. characters. * CTV (14) * Paymentech (30) | [optional] -**address1** | **str** | Recipient address information. Required only for FDCCompass. | [optional] -**locality** | **str** | Recipient city. Required only for FDCCompass. | [optional] -**administrative_area** | **str** | Recipient State. Required only for FDCCompass. | [optional] -**country** | **str** | Recipient country code. Required only for FDCCompass. | [optional] -**postal_code** | **str** | Recipient postal code. Required only for FDCCompass. | [optional] -**phone_number** | **str** | Recipient phone number. Required only for FDCCompass. | [optional] -**date_of_birth** | **str** | Recipient date of birth in YYYYMMDD format. Required only for FDCCompass. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsSenderInformation.md b/docs/V2payoutsSenderInformation.md deleted file mode 100644 index 31275aec..00000000 --- a/docs/V2payoutsSenderInformation.md +++ /dev/null @@ -1,23 +0,0 @@ -# V2payoutsSenderInformation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reference_number** | **str** | Reference number generated by you that uniquely identifies the sender. | [optional] -**account** | [**V2payoutsSenderInformationAccount**](V2payoutsSenderInformationAccount.md) | | [optional] -**first_name** | **str** | First name of sender (Optional). * CTV (14) * Paymentech (30) | [optional] -**middle_initial** | **str** | Recipient middle initial (Optional). | [optional] -**last_name** | **str** | Recipient last name (Optional). * CTV (14) * Paymentech (30) | [optional] -**name** | **str** | Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30) | [optional] -**address1** | **str** | Street address of sender. **Funds Disbursement** This value is the address of the originator sending the funds disbursement. | [optional] -**locality** | **str** | City of sender. **Funds Disbursement** This value is the city of the originator sending the funds disbursement. | [optional] -**administrative_area** | **str** | Sender’s state. Use the State, Province, and Territory Codes for the United States and Canada. | [optional] -**country_code** | **str** | Country of sender. Use the ISO Standard Country Codes. * CTV (3) | [optional] -**postal_code** | **str** | Sender’s postal code. Required only for FDCCompass. | [optional] -**phone_number** | **str** | Sender’s phone number. Required only for FDCCompass. | [optional] -**date_of_birth** | **str** | Sender’s date of birth in YYYYMMDD format. Required only for FDCCompass. | [optional] -**vat_registration_number** | **str** | Customer's government-assigned tax identification number. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V2payoutsSenderInformationAccount.md b/docs/V2payoutsSenderInformationAccount.md deleted file mode 100644 index 4f03d59f..00000000 --- a/docs/V2payoutsSenderInformationAccount.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2payoutsSenderInformationAccount - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**funds_source** | **str** | Source of funds. Possible values: Paymentech, CTV, FDC Compass: - 01: Credit card - 02: Debit card - 03: Prepaid card Paymentech, CTV - - 04: Cash - 05: Debit or deposit account that is not linked to a Visa card. Includes checking accounts, savings accounts, and proprietary debit or ATM cards. - 06: Credit account that is not linked to a Visa card. Includes credit cards and proprietary lines of credit. FDCCompass - - 04: Deposit Account **Funds Disbursement** This value is most likely 05 to identify that the originator used a deposit account to fund the disbursement. **Credit Card Bill Payment** This value must be 02, 03, 04, or 05. | [optional] -**number** | **str** | The account number of the entity funding the transaction. It is the sender’s account number. It can be a debit/credit card account number or bank account number. **Funds disbursements** This field is optional. **All other transactions** This field is required when the sender funds the transaction with a financial instrument, for example debit card. Length: * FDCCompass (<= 19) * Paymentech (<= 16) | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/VoidApi.md b/docs/VoidApi.md index 9effa0d3..69ddc5f0 100644 --- a/docs/VoidApi.md +++ b/docs/VoidApi.md @@ -1,66 +1,17 @@ # CyberSource.VoidApi -All URIs are relative to *https://api.cybersource.com* +All URIs are relative to *https://apitest.cybersource.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_void**](VoidApi.md#get_void) | **GET** /v2/voids/{id} | Retrieve A Void -[**void_capture**](VoidApi.md#void_capture) | **POST** /v2/captures/{id}/voids | Void a Capture -[**void_credit**](VoidApi.md#void_credit) | **POST** /v2/credits/{id}/voids | Void a Credit -[**void_payment**](VoidApi.md#void_payment) | **POST** /v2/payments/{id}/voids | Void a Payment -[**void_refund**](VoidApi.md#void_refund) | **POST** /v2/refunds/{id}/voids | Void a Refund +[**void_capture**](VoidApi.md#void_capture) | **POST** /pts/v2/captures/{id}/voids | Void a Capture +[**void_credit**](VoidApi.md#void_credit) | **POST** /pts/v2/credits/{id}/voids | Void a Credit +[**void_payment**](VoidApi.md#void_payment) | **POST** /pts/v2/payments/{id}/voids | Void a Payment +[**void_refund**](VoidApi.md#void_refund) | **POST** /pts/v2/refunds/{id}/voids | Void a Refund -# **get_void** -> InlineResponse2015 get_void(id) - -Retrieve A Void - -Include the void ID in the GET request to retrieve the void details. - -### Example -```python -from __future__ import print_function -import time -import CyberSource -from CyberSource.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = CyberSource.VoidApi() -id = 'id_example' # str | The void ID returned from a previous void request. - -try: - # Retrieve A Void - api_response = api_instance.get_void(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling VoidApi->get_void: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **str**| The void ID returned from a previous void request. | - -### Return type - -[**InlineResponse2015**](InlineResponse2015.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **void_capture** -> InlineResponse2015 void_capture(void_capture_request, id) +> PtsV2PaymentsVoidsPost201Response void_capture(void_capture_request, id) Void a Capture @@ -96,7 +47,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2015**](InlineResponse2015.md) +[**PtsV2PaymentsVoidsPost201Response**](PtsV2PaymentsVoidsPost201Response.md) ### Authorization @@ -104,13 +55,13 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **void_credit** -> InlineResponse2015 void_credit(void_credit_request, id) +> PtsV2PaymentsVoidsPost201Response void_credit(void_credit_request, id) Void a Credit @@ -146,7 +97,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2015**](InlineResponse2015.md) +[**PtsV2PaymentsVoidsPost201Response**](PtsV2PaymentsVoidsPost201Response.md) ### Authorization @@ -154,13 +105,13 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **void_payment** -> InlineResponse2015 void_payment(void_payment_request, id) +> PtsV2PaymentsVoidsPost201Response void_payment(void_payment_request, id) Void a Payment @@ -196,7 +147,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2015**](InlineResponse2015.md) +[**PtsV2PaymentsVoidsPost201Response**](PtsV2PaymentsVoidsPost201Response.md) ### Authorization @@ -204,13 +155,13 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **void_refund** -> InlineResponse2015 void_refund(void_refund_request, id) +> PtsV2PaymentsVoidsPost201Response void_refund(void_refund_request, id) Void a Refund @@ -246,7 +197,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2015**](InlineResponse2015.md) +[**PtsV2PaymentsVoidsPost201Response**](PtsV2PaymentsVoidsPost201Response.md) ### Authorization @@ -254,8 +205,8 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/VoidCaptureRequest.md b/docs/VoidCaptureRequest.md index aff5861e..3a609da3 100644 --- a/docs/VoidCaptureRequest.md +++ b/docs/VoidCaptureRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**V2paymentsidreversalsClientReferenceInformation**](V2paymentsidreversalsClientReferenceInformation.md) | | [optional] +**client_reference_information** | [**Ptsv2paymentsidreversalsClientReferenceInformation**](Ptsv2paymentsidreversalsClientReferenceInformation.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VoidCreditRequest.md b/docs/VoidCreditRequest.md index 74c9cc80..51db8c53 100644 --- a/docs/VoidCreditRequest.md +++ b/docs/VoidCreditRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**V2paymentsidreversalsClientReferenceInformation**](V2paymentsidreversalsClientReferenceInformation.md) | | [optional] +**client_reference_information** | [**Ptsv2paymentsidreversalsClientReferenceInformation**](Ptsv2paymentsidreversalsClientReferenceInformation.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VoidPaymentRequest.md b/docs/VoidPaymentRequest.md index f698215f..62682403 100644 --- a/docs/VoidPaymentRequest.md +++ b/docs/VoidPaymentRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**V2paymentsidreversalsClientReferenceInformation**](V2paymentsidreversalsClientReferenceInformation.md) | | [optional] +**client_reference_information** | [**Ptsv2paymentsidreversalsClientReferenceInformation**](Ptsv2paymentsidreversalsClientReferenceInformation.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VoidRefundRequest.md b/docs/VoidRefundRequest.md index ed469a55..57c76341 100644 --- a/docs/VoidRefundRequest.md +++ b/docs/VoidRefundRequest.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client_reference_information** | [**V2paymentsidreversalsClientReferenceInformation**](V2paymentsidreversalsClientReferenceInformation.md) | | [optional] +**client_reference_information** | [**Ptsv2paymentsidreversalsClientReferenceInformation**](Ptsv2paymentsidreversalsClientReferenceInformation.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/setup.py b/setup.py index 63fa9076..1eba5d7b 100644 --- a/setup.py +++ b/setup.py @@ -15,14 +15,12 @@ REQUIRES = ["urllib3", "six", "certifi", "DateTime", "Naked", "PyJWT", "PyNaCl", "PyYAML", "asn1crypto", "bcrypt", - "certifi", "cffi", "chardet", "extras", "fixtures", "configparser", - "crypto", "cryptography", "enum34", @@ -35,7 +33,6 @@ "idna", "ipaddress", "logger", - "paramiko", "pip", "pyOpenSSL", diff --git a/test/test_capture_api.py b/test/test_capture_api.py index 85033729..7c163551 100644 --- a/test/test_capture_api.py +++ b/test/test_capture_api.py @@ -39,14 +39,6 @@ def test_capture_payment(self): """ pass - def test_get_capture(self): - """ - Test case for get_capture - - Retrieve a Capture - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_credit_api.py b/test/test_credit_api.py index 9c52abe4..ccd92740 100644 --- a/test/test_credit_api.py +++ b/test/test_credit_api.py @@ -39,14 +39,6 @@ def test_create_credit(self): """ pass - def test_get_credit(self): - """ - Test case for get_credit - - Retrieve a Credit - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_default_api.py b/test/test_default_api.py deleted file mode 100644 index 7cda3a99..00000000 --- a/test/test_default_api.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.apis.default_api import DefaultApi - - -class TestDefaultApi(unittest.TestCase): - """ DefaultApi unit test stubs """ - - def setUp(self): - self.api = CyberSource.apis.default_api.DefaultApi() - - def tearDown(self): - pass - - def test_oct_create_payment(self): - """ - Test case for oct_create_payment - - Process a Payout - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_flex_token_api.py b/test/test_flex_token_api.py new file mode 100644 index 00000000..e89ee735 --- /dev/null +++ b/test/test_flex_token_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.flex_token_api import FlexTokenApi + + +class TestFlexTokenApi(unittest.TestCase): + """ FlexTokenApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.flex_token_api.FlexTokenApi() + + def tearDown(self): + pass + + def test_tokenize(self): + """ + Test case for tokenize + + Flex Tokenize card + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_flex_v1_keys_post200_response.py b/test/test_flex_v1_keys_post200_response.py new file mode 100644 index 00000000..29f7c9e2 --- /dev/null +++ b/test/test_flex_v1_keys_post200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.flex_v1_keys_post200_response import FlexV1KeysPost200Response + + +class TestFlexV1KeysPost200Response(unittest.TestCase): + """ FlexV1KeysPost200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlexV1KeysPost200Response(self): + """ + Test FlexV1KeysPost200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.flex_v1_keys_post200_response.FlexV1KeysPost200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_flex_v1_keys_post200_response_der.py b/test/test_flex_v1_keys_post200_response_der.py new file mode 100644 index 00000000..09ecd0cc --- /dev/null +++ b/test/test_flex_v1_keys_post200_response_der.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.flex_v1_keys_post200_response_der import FlexV1KeysPost200ResponseDer + + +class TestFlexV1KeysPost200ResponseDer(unittest.TestCase): + """ FlexV1KeysPost200ResponseDer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlexV1KeysPost200ResponseDer(self): + """ + Test FlexV1KeysPost200ResponseDer + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.flex_v1_keys_post200_response_der.FlexV1KeysPost200ResponseDer() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_flex_v1_keys_post200_response_jwk.py b/test/test_flex_v1_keys_post200_response_jwk.py new file mode 100644 index 00000000..328f8c6f --- /dev/null +++ b/test/test_flex_v1_keys_post200_response_jwk.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.flex_v1_keys_post200_response_jwk import FlexV1KeysPost200ResponseJwk + + +class TestFlexV1KeysPost200ResponseJwk(unittest.TestCase): + """ FlexV1KeysPost200ResponseJwk unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlexV1KeysPost200ResponseJwk(self): + """ + Test FlexV1KeysPost200ResponseJwk + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.flex_v1_keys_post200_response_jwk.FlexV1KeysPost200ResponseJwk() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_flex_v1_tokens_post200_response.py b/test/test_flex_v1_tokens_post200_response.py new file mode 100644 index 00000000..92db7e2b --- /dev/null +++ b/test/test_flex_v1_tokens_post200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.flex_v1_tokens_post200_response import FlexV1TokensPost200Response + + +class TestFlexV1TokensPost200Response(unittest.TestCase): + """ FlexV1TokensPost200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlexV1TokensPost200Response(self): + """ + Test FlexV1TokensPost200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.flex_v1_tokens_post200_response.FlexV1TokensPost200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_flexv1tokens_card_info.py b/test/test_flexv1tokens_card_info.py new file mode 100644 index 00000000..b6a023e5 --- /dev/null +++ b/test/test_flexv1tokens_card_info.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.flexv1tokens_card_info import Flexv1tokensCardInfo + + +class TestFlexv1tokensCardInfo(unittest.TestCase): + """ Flexv1tokensCardInfo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlexv1tokensCardInfo(self): + """ + Test Flexv1tokensCardInfo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.flexv1tokens_card_info.Flexv1tokensCardInfo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response_200.py b/test/test_inline_response_200.py deleted file mode 100644 index 42ac55a0..00000000 --- a/test/test_inline_response_200.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200 import InlineResponse200 - - -class TestInlineResponse200(unittest.TestCase): - """ InlineResponse200 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse200(self): - """ - Test InlineResponse200 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200.InlineResponse200() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_1.py b/test/test_inline_response_200_1.py deleted file mode 100644 index 6e3432c1..00000000 --- a/test/test_inline_response_200_1.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_1 import InlineResponse2001 - - -class TestInlineResponse2001(unittest.TestCase): - """ InlineResponse2001 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2001(self): - """ - Test InlineResponse2001 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_1.InlineResponse2001() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2.py b/test/test_inline_response_200_2.py deleted file mode 100644 index c5757d40..00000000 --- a/test/test_inline_response_200_2.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2 import InlineResponse2002 - - -class TestInlineResponse2002(unittest.TestCase): - """ InlineResponse2002 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002(self): - """ - Test InlineResponse2002 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2.InlineResponse2002() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_buyer_information.py b/test/test_inline_response_200_2_buyer_information.py deleted file mode 100644 index ac4f9e43..00000000 --- a/test/test_inline_response_200_2_buyer_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_buyer_information import InlineResponse2002BuyerInformation - - -class TestInlineResponse2002BuyerInformation(unittest.TestCase): - """ InlineResponse2002BuyerInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002BuyerInformation(self): - """ - Test InlineResponse2002BuyerInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_buyer_information.InlineResponse2002BuyerInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_device_information.py b/test/test_inline_response_200_2_device_information.py deleted file mode 100644 index 1d630bd3..00000000 --- a/test/test_inline_response_200_2_device_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_device_information import InlineResponse2002DeviceInformation - - -class TestInlineResponse2002DeviceInformation(unittest.TestCase): - """ InlineResponse2002DeviceInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002DeviceInformation(self): - """ - Test InlineResponse2002DeviceInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_device_information.InlineResponse2002DeviceInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_merchant_information.py b/test/test_inline_response_200_2_merchant_information.py deleted file mode 100644 index 814dc2d8..00000000 --- a/test/test_inline_response_200_2_merchant_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_merchant_information import InlineResponse2002MerchantInformation - - -class TestInlineResponse2002MerchantInformation(unittest.TestCase): - """ InlineResponse2002MerchantInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002MerchantInformation(self): - """ - Test InlineResponse2002MerchantInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_merchant_information.InlineResponse2002MerchantInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_order_information.py b/test/test_inline_response_200_2_order_information.py deleted file mode 100644 index 3a823415..00000000 --- a/test/test_inline_response_200_2_order_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_order_information import InlineResponse2002OrderInformation - - -class TestInlineResponse2002OrderInformation(unittest.TestCase): - """ InlineResponse2002OrderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002OrderInformation(self): - """ - Test InlineResponse2002OrderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_order_information.InlineResponse2002OrderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_order_information_amount_details.py b/test/test_inline_response_200_2_order_information_amount_details.py deleted file mode 100644 index aab96aab..00000000 --- a/test/test_inline_response_200_2_order_information_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_order_information_amount_details import InlineResponse2002OrderInformationAmountDetails - - -class TestInlineResponse2002OrderInformationAmountDetails(unittest.TestCase): - """ InlineResponse2002OrderInformationAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002OrderInformationAmountDetails(self): - """ - Test InlineResponse2002OrderInformationAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_order_information_amount_details.InlineResponse2002OrderInformationAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_order_information_bill_to.py b/test/test_inline_response_200_2_order_information_bill_to.py deleted file mode 100644 index 9b504ad8..00000000 --- a/test/test_inline_response_200_2_order_information_bill_to.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_order_information_bill_to import InlineResponse2002OrderInformationBillTo - - -class TestInlineResponse2002OrderInformationBillTo(unittest.TestCase): - """ InlineResponse2002OrderInformationBillTo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002OrderInformationBillTo(self): - """ - Test InlineResponse2002OrderInformationBillTo - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_order_information_bill_to.InlineResponse2002OrderInformationBillTo() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_order_information_invoice_details.py b/test/test_inline_response_200_2_order_information_invoice_details.py deleted file mode 100644 index 4524aea7..00000000 --- a/test/test_inline_response_200_2_order_information_invoice_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_order_information_invoice_details import InlineResponse2002OrderInformationInvoiceDetails - - -class TestInlineResponse2002OrderInformationInvoiceDetails(unittest.TestCase): - """ InlineResponse2002OrderInformationInvoiceDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002OrderInformationInvoiceDetails(self): - """ - Test InlineResponse2002OrderInformationInvoiceDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_order_information_invoice_details.InlineResponse2002OrderInformationInvoiceDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_order_information_line_items.py b/test/test_inline_response_200_2_order_information_line_items.py deleted file mode 100644 index 5cdaa20f..00000000 --- a/test/test_inline_response_200_2_order_information_line_items.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_order_information_line_items import InlineResponse2002OrderInformationLineItems - - -class TestInlineResponse2002OrderInformationLineItems(unittest.TestCase): - """ InlineResponse2002OrderInformationLineItems unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002OrderInformationLineItems(self): - """ - Test InlineResponse2002OrderInformationLineItems - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_order_information_line_items.InlineResponse2002OrderInformationLineItems() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_order_information_ship_to.py b/test/test_inline_response_200_2_order_information_ship_to.py deleted file mode 100644 index f90a6b36..00000000 --- a/test/test_inline_response_200_2_order_information_ship_to.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_order_information_ship_to import InlineResponse2002OrderInformationShipTo - - -class TestInlineResponse2002OrderInformationShipTo(unittest.TestCase): - """ InlineResponse2002OrderInformationShipTo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002OrderInformationShipTo(self): - """ - Test InlineResponse2002OrderInformationShipTo - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_order_information_ship_to.InlineResponse2002OrderInformationShipTo() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_payment_information.py b/test/test_inline_response_200_2_payment_information.py deleted file mode 100644 index 603e66f8..00000000 --- a/test/test_inline_response_200_2_payment_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_payment_information import InlineResponse2002PaymentInformation - - -class TestInlineResponse2002PaymentInformation(unittest.TestCase): - """ InlineResponse2002PaymentInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002PaymentInformation(self): - """ - Test InlineResponse2002PaymentInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_payment_information.InlineResponse2002PaymentInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_payment_information_card.py b/test/test_inline_response_200_2_payment_information_card.py deleted file mode 100644 index 97ab424a..00000000 --- a/test/test_inline_response_200_2_payment_information_card.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_payment_information_card import InlineResponse2002PaymentInformationCard - - -class TestInlineResponse2002PaymentInformationCard(unittest.TestCase): - """ InlineResponse2002PaymentInformationCard unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002PaymentInformationCard(self): - """ - Test InlineResponse2002PaymentInformationCard - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_payment_information_card.InlineResponse2002PaymentInformationCard() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_payment_information_tokenized_card.py b/test/test_inline_response_200_2_payment_information_tokenized_card.py deleted file mode 100644 index 0cf1bdae..00000000 --- a/test/test_inline_response_200_2_payment_information_tokenized_card.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_payment_information_tokenized_card import InlineResponse2002PaymentInformationTokenizedCard - - -class TestInlineResponse2002PaymentInformationTokenizedCard(unittest.TestCase): - """ InlineResponse2002PaymentInformationTokenizedCard unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002PaymentInformationTokenizedCard(self): - """ - Test InlineResponse2002PaymentInformationTokenizedCard - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_payment_information_tokenized_card.InlineResponse2002PaymentInformationTokenizedCard() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_processing_information.py b/test/test_inline_response_200_2_processing_information.py deleted file mode 100644 index 2186eb6f..00000000 --- a/test/test_inline_response_200_2_processing_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_processing_information import InlineResponse2002ProcessingInformation - - -class TestInlineResponse2002ProcessingInformation(unittest.TestCase): - """ InlineResponse2002ProcessingInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002ProcessingInformation(self): - """ - Test InlineResponse2002ProcessingInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_processing_information.InlineResponse2002ProcessingInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_processor_information.py b/test/test_inline_response_200_2_processor_information.py deleted file mode 100644 index 432aa3e0..00000000 --- a/test/test_inline_response_200_2_processor_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_processor_information import InlineResponse2002ProcessorInformation - - -class TestInlineResponse2002ProcessorInformation(unittest.TestCase): - """ InlineResponse2002ProcessorInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002ProcessorInformation(self): - """ - Test InlineResponse2002ProcessorInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_processor_information.InlineResponse2002ProcessorInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_processor_information_avs.py b/test/test_inline_response_200_2_processor_information_avs.py deleted file mode 100644 index 8a67be7e..00000000 --- a/test/test_inline_response_200_2_processor_information_avs.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_processor_information_avs import InlineResponse2002ProcessorInformationAvs - - -class TestInlineResponse2002ProcessorInformationAvs(unittest.TestCase): - """ InlineResponse2002ProcessorInformationAvs unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002ProcessorInformationAvs(self): - """ - Test InlineResponse2002ProcessorInformationAvs - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_processor_information_avs.InlineResponse2002ProcessorInformationAvs() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_2_processor_information_card_verification.py b/test/test_inline_response_200_2_processor_information_card_verification.py deleted file mode 100644 index 0c5acc31..00000000 --- a/test/test_inline_response_200_2_processor_information_card_verification.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_2_processor_information_card_verification import InlineResponse2002ProcessorInformationCardVerification - - -class TestInlineResponse2002ProcessorInformationCardVerification(unittest.TestCase): - """ InlineResponse2002ProcessorInformationCardVerification unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002ProcessorInformationCardVerification(self): - """ - Test InlineResponse2002ProcessorInformationCardVerification - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_2_processor_information_card_verification.InlineResponse2002ProcessorInformationCardVerification() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_3.py b/test/test_inline_response_200_3.py deleted file mode 100644 index 0bb3a820..00000000 --- a/test/test_inline_response_200_3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_3 import InlineResponse2003 - - -class TestInlineResponse2003(unittest.TestCase): - """ InlineResponse2003 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2003(self): - """ - Test InlineResponse2003 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_3.InlineResponse2003() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_4.py b/test/test_inline_response_200_4.py deleted file mode 100644 index 8e85fbd1..00000000 --- a/test/test_inline_response_200_4.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_4 import InlineResponse2004 - - -class TestInlineResponse2004(unittest.TestCase): - """ InlineResponse2004 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004(self): - """ - Test InlineResponse2004 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_4.InlineResponse2004() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_4_device_information.py b/test/test_inline_response_200_4_device_information.py deleted file mode 100644 index 09c5bb05..00000000 --- a/test/test_inline_response_200_4_device_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_4_device_information import InlineResponse2004DeviceInformation - - -class TestInlineResponse2004DeviceInformation(unittest.TestCase): - """ InlineResponse2004DeviceInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004DeviceInformation(self): - """ - Test InlineResponse2004DeviceInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_4_device_information.InlineResponse2004DeviceInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_4_order_information.py b/test/test_inline_response_200_4_order_information.py deleted file mode 100644 index 3ece017f..00000000 --- a/test/test_inline_response_200_4_order_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_4_order_information import InlineResponse2004OrderInformation - - -class TestInlineResponse2004OrderInformation(unittest.TestCase): - """ InlineResponse2004OrderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004OrderInformation(self): - """ - Test InlineResponse2004OrderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_4_order_information.InlineResponse2004OrderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_4_order_information_amount_details.py b/test/test_inline_response_200_4_order_information_amount_details.py deleted file mode 100644 index aa302a8b..00000000 --- a/test/test_inline_response_200_4_order_information_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_4_order_information_amount_details import InlineResponse2004OrderInformationAmountDetails - - -class TestInlineResponse2004OrderInformationAmountDetails(unittest.TestCase): - """ InlineResponse2004OrderInformationAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004OrderInformationAmountDetails(self): - """ - Test InlineResponse2004OrderInformationAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_4_order_information_amount_details.InlineResponse2004OrderInformationAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_4_order_information_invoice_details.py b/test/test_inline_response_200_4_order_information_invoice_details.py deleted file mode 100644 index d23a0040..00000000 --- a/test/test_inline_response_200_4_order_information_invoice_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_4_order_information_invoice_details import InlineResponse2004OrderInformationInvoiceDetails - - -class TestInlineResponse2004OrderInformationInvoiceDetails(unittest.TestCase): - """ InlineResponse2004OrderInformationInvoiceDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004OrderInformationInvoiceDetails(self): - """ - Test InlineResponse2004OrderInformationInvoiceDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_4_order_information_invoice_details.InlineResponse2004OrderInformationInvoiceDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_4_order_information_ship_to.py b/test/test_inline_response_200_4_order_information_ship_to.py deleted file mode 100644 index fc476150..00000000 --- a/test/test_inline_response_200_4_order_information_ship_to.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_4_order_information_ship_to import InlineResponse2004OrderInformationShipTo - - -class TestInlineResponse2004OrderInformationShipTo(unittest.TestCase): - """ InlineResponse2004OrderInformationShipTo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004OrderInformationShipTo(self): - """ - Test InlineResponse2004OrderInformationShipTo - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_4_order_information_ship_to.InlineResponse2004OrderInformationShipTo() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_4_processing_information.py b/test/test_inline_response_200_4_processing_information.py deleted file mode 100644 index aa9f857a..00000000 --- a/test/test_inline_response_200_4_processing_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_4_processing_information import InlineResponse2004ProcessingInformation - - -class TestInlineResponse2004ProcessingInformation(unittest.TestCase): - """ InlineResponse2004ProcessingInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004ProcessingInformation(self): - """ - Test InlineResponse2004ProcessingInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_4_processing_information.InlineResponse2004ProcessingInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_4_processing_information_authorization_options.py b/test/test_inline_response_200_4_processing_information_authorization_options.py deleted file mode 100644 index 16970fa0..00000000 --- a/test/test_inline_response_200_4_processing_information_authorization_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_4_processing_information_authorization_options import InlineResponse2004ProcessingInformationAuthorizationOptions - - -class TestInlineResponse2004ProcessingInformationAuthorizationOptions(unittest.TestCase): - """ InlineResponse2004ProcessingInformationAuthorizationOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004ProcessingInformationAuthorizationOptions(self): - """ - Test InlineResponse2004ProcessingInformationAuthorizationOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_4_processing_information_authorization_options.InlineResponse2004ProcessingInformationAuthorizationOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_5.py b/test/test_inline_response_200_5.py deleted file mode 100644 index 9d6f3552..00000000 --- a/test/test_inline_response_200_5.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_5 import InlineResponse2005 - - -class TestInlineResponse2005(unittest.TestCase): - """ InlineResponse2005 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2005(self): - """ - Test InlineResponse2005 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_5.InlineResponse2005() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_6.py b/test/test_inline_response_200_6.py deleted file mode 100644 index 347e2944..00000000 --- a/test/test_inline_response_200_6.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_6 import InlineResponse2006 - - -class TestInlineResponse2006(unittest.TestCase): - """ InlineResponse2006 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2006(self): - """ - Test InlineResponse2006 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_6.InlineResponse2006() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_7.py b/test/test_inline_response_200_7.py deleted file mode 100644 index 2ebc58bb..00000000 --- a/test/test_inline_response_200_7.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_7 import InlineResponse2007 - - -class TestInlineResponse2007(unittest.TestCase): - """ InlineResponse2007 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2007(self): - """ - Test InlineResponse2007 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_7.InlineResponse2007() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_8.py b/test/test_inline_response_200_8.py deleted file mode 100644 index c61e0e66..00000000 --- a/test/test_inline_response_200_8.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_8 import InlineResponse2008 - - -class TestInlineResponse2008(unittest.TestCase): - """ InlineResponse2008 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2008(self): - """ - Test InlineResponse2008 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_8.InlineResponse2008() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_8__links.py b/test/test_inline_response_200_8__links.py deleted file mode 100644 index 6be18fe1..00000000 --- a/test/test_inline_response_200_8__links.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_8__links import InlineResponse2008Links - - -class TestInlineResponse2008Links(unittest.TestCase): - """ InlineResponse2008Links unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2008Links(self): - """ - Test InlineResponse2008Links - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_8__links.InlineResponse2008Links() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_8__links_first.py b/test/test_inline_response_200_8__links_first.py deleted file mode 100644 index 262e32ac..00000000 --- a/test/test_inline_response_200_8__links_first.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_8__links_first import InlineResponse2008LinksFirst - - -class TestInlineResponse2008LinksFirst(unittest.TestCase): - """ InlineResponse2008LinksFirst unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2008LinksFirst(self): - """ - Test InlineResponse2008LinksFirst - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_8__links_first.InlineResponse2008LinksFirst() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_8__links_last.py b/test/test_inline_response_200_8__links_last.py deleted file mode 100644 index 23f1c5f9..00000000 --- a/test/test_inline_response_200_8__links_last.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_8__links_last import InlineResponse2008LinksLast - - -class TestInlineResponse2008LinksLast(unittest.TestCase): - """ InlineResponse2008LinksLast unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2008LinksLast(self): - """ - Test InlineResponse2008LinksLast - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_8__links_last.InlineResponse2008LinksLast() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_8__links_next.py b/test/test_inline_response_200_8__links_next.py deleted file mode 100644 index 0aa88c0c..00000000 --- a/test/test_inline_response_200_8__links_next.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_8__links_next import InlineResponse2008LinksNext - - -class TestInlineResponse2008LinksNext(unittest.TestCase): - """ InlineResponse2008LinksNext unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2008LinksNext(self): - """ - Test InlineResponse2008LinksNext - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_8__links_next.InlineResponse2008LinksNext() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_8__links_prev.py b/test/test_inline_response_200_8__links_prev.py deleted file mode 100644 index e60bdd61..00000000 --- a/test/test_inline_response_200_8__links_prev.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_8__links_prev import InlineResponse2008LinksPrev - - -class TestInlineResponse2008LinksPrev(unittest.TestCase): - """ InlineResponse2008LinksPrev unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2008LinksPrev(self): - """ - Test InlineResponse2008LinksPrev - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_8__links_prev.InlineResponse2008LinksPrev() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_8__links_self.py b/test/test_inline_response_200_8__links_self.py deleted file mode 100644 index 2dc7edaf..00000000 --- a/test/test_inline_response_200_8__links_self.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_8__links_self import InlineResponse2008LinksSelf - - -class TestInlineResponse2008LinksSelf(unittest.TestCase): - """ InlineResponse2008LinksSelf unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2008LinksSelf(self): - """ - Test InlineResponse2008LinksSelf - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_8__links_self.InlineResponse2008LinksSelf() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_der.py b/test/test_inline_response_200_der.py deleted file mode 100644 index c8e18760..00000000 --- a/test/test_inline_response_200_der.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_der import InlineResponse200Der - - -class TestInlineResponse200Der(unittest.TestCase): - """ InlineResponse200Der unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse200Der(self): - """ - Test InlineResponse200Der - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_der.InlineResponse200Der() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_200_jwk.py b/test/test_inline_response_200_jwk.py deleted file mode 100644 index c51332ba..00000000 --- a/test/test_inline_response_200_jwk.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_200_jwk import InlineResponse200Jwk - - -class TestInlineResponse200Jwk(unittest.TestCase): - """ InlineResponse200Jwk unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse200Jwk(self): - """ - Test InlineResponse200Jwk - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_200_jwk.InlineResponse200Jwk() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201.py b/test/test_inline_response_201.py deleted file mode 100644 index fc04d089..00000000 --- a/test/test_inline_response_201.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201 import InlineResponse201 - - -class TestInlineResponse201(unittest.TestCase): - """ InlineResponse201 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201(self): - """ - Test InlineResponse201 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201.InlineResponse201() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_1.py b/test/test_inline_response_201_1.py deleted file mode 100644 index 6484b736..00000000 --- a/test/test_inline_response_201_1.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_1 import InlineResponse2011 - - -class TestInlineResponse2011(unittest.TestCase): - """ InlineResponse2011 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2011(self): - """ - Test InlineResponse2011 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_1.InlineResponse2011() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_1_authorization_information.py b/test/test_inline_response_201_1_authorization_information.py deleted file mode 100644 index b02aa964..00000000 --- a/test/test_inline_response_201_1_authorization_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_1_authorization_information import InlineResponse2011AuthorizationInformation - - -class TestInlineResponse2011AuthorizationInformation(unittest.TestCase): - """ InlineResponse2011AuthorizationInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2011AuthorizationInformation(self): - """ - Test InlineResponse2011AuthorizationInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_1_authorization_information.InlineResponse2011AuthorizationInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_1_processor_information.py b/test/test_inline_response_201_1_processor_information.py deleted file mode 100644 index 02ca5163..00000000 --- a/test/test_inline_response_201_1_processor_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_1_processor_information import InlineResponse2011ProcessorInformation - - -class TestInlineResponse2011ProcessorInformation(unittest.TestCase): - """ InlineResponse2011ProcessorInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2011ProcessorInformation(self): - """ - Test InlineResponse2011ProcessorInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_1_processor_information.InlineResponse2011ProcessorInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_1_reversal_amount_details.py b/test/test_inline_response_201_1_reversal_amount_details.py deleted file mode 100644 index 5d29f8f2..00000000 --- a/test/test_inline_response_201_1_reversal_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_1_reversal_amount_details import InlineResponse2011ReversalAmountDetails - - -class TestInlineResponse2011ReversalAmountDetails(unittest.TestCase): - """ InlineResponse2011ReversalAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2011ReversalAmountDetails(self): - """ - Test InlineResponse2011ReversalAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_1_reversal_amount_details.InlineResponse2011ReversalAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_2.py b/test/test_inline_response_201_2.py deleted file mode 100644 index eec7e5e6..00000000 --- a/test/test_inline_response_201_2.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_2 import InlineResponse2012 - - -class TestInlineResponse2012(unittest.TestCase): - """ InlineResponse2012 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2012(self): - """ - Test InlineResponse2012 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_2.InlineResponse2012() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_2__links.py b/test/test_inline_response_201_2__links.py deleted file mode 100644 index 3ddf30ae..00000000 --- a/test/test_inline_response_201_2__links.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_2__links import InlineResponse2012Links - - -class TestInlineResponse2012Links(unittest.TestCase): - """ InlineResponse2012Links unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2012Links(self): - """ - Test InlineResponse2012Links - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_2__links.InlineResponse2012Links() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_2_order_information.py b/test/test_inline_response_201_2_order_information.py deleted file mode 100644 index 153613b7..00000000 --- a/test/test_inline_response_201_2_order_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_2_order_information import InlineResponse2012OrderInformation - - -class TestInlineResponse2012OrderInformation(unittest.TestCase): - """ InlineResponse2012OrderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2012OrderInformation(self): - """ - Test InlineResponse2012OrderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_2_order_information.InlineResponse2012OrderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_2_order_information_amount_details.py b/test/test_inline_response_201_2_order_information_amount_details.py deleted file mode 100644 index 7dbd56f8..00000000 --- a/test/test_inline_response_201_2_order_information_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_2_order_information_amount_details import InlineResponse2012OrderInformationAmountDetails - - -class TestInlineResponse2012OrderInformationAmountDetails(unittest.TestCase): - """ InlineResponse2012OrderInformationAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2012OrderInformationAmountDetails(self): - """ - Test InlineResponse2012OrderInformationAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_2_order_information_amount_details.InlineResponse2012OrderInformationAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_2_processor_information.py b/test/test_inline_response_201_2_processor_information.py deleted file mode 100644 index e086fd5c..00000000 --- a/test/test_inline_response_201_2_processor_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_2_processor_information import InlineResponse2012ProcessorInformation - - -class TestInlineResponse2012ProcessorInformation(unittest.TestCase): - """ InlineResponse2012ProcessorInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2012ProcessorInformation(self): - """ - Test InlineResponse2012ProcessorInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_2_processor_information.InlineResponse2012ProcessorInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_3.py b/test/test_inline_response_201_3.py deleted file mode 100644 index a7ef9299..00000000 --- a/test/test_inline_response_201_3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_3 import InlineResponse2013 - - -class TestInlineResponse2013(unittest.TestCase): - """ InlineResponse2013 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2013(self): - """ - Test InlineResponse2013 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_3.InlineResponse2013() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_3__links.py b/test/test_inline_response_201_3__links.py deleted file mode 100644 index 744fe748..00000000 --- a/test/test_inline_response_201_3__links.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_3__links import InlineResponse2013Links - - -class TestInlineResponse2013Links(unittest.TestCase): - """ InlineResponse2013Links unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2013Links(self): - """ - Test InlineResponse2013Links - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_3__links.InlineResponse2013Links() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_3_order_information.py b/test/test_inline_response_201_3_order_information.py deleted file mode 100644 index adbeeced..00000000 --- a/test/test_inline_response_201_3_order_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_3_order_information import InlineResponse2013OrderInformation - - -class TestInlineResponse2013OrderInformation(unittest.TestCase): - """ InlineResponse2013OrderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2013OrderInformation(self): - """ - Test InlineResponse2013OrderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_3_order_information.InlineResponse2013OrderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_3_processor_information.py b/test/test_inline_response_201_3_processor_information.py deleted file mode 100644 index a5a64a2f..00000000 --- a/test/test_inline_response_201_3_processor_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_3_processor_information import InlineResponse2013ProcessorInformation - - -class TestInlineResponse2013ProcessorInformation(unittest.TestCase): - """ InlineResponse2013ProcessorInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2013ProcessorInformation(self): - """ - Test InlineResponse2013ProcessorInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_3_processor_information.InlineResponse2013ProcessorInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_3_refund_amount_details.py b/test/test_inline_response_201_3_refund_amount_details.py deleted file mode 100644 index 30ae32cb..00000000 --- a/test/test_inline_response_201_3_refund_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_3_refund_amount_details import InlineResponse2013RefundAmountDetails - - -class TestInlineResponse2013RefundAmountDetails(unittest.TestCase): - """ InlineResponse2013RefundAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2013RefundAmountDetails(self): - """ - Test InlineResponse2013RefundAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_3_refund_amount_details.InlineResponse2013RefundAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_4.py b/test/test_inline_response_201_4.py deleted file mode 100644 index a4e41695..00000000 --- a/test/test_inline_response_201_4.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_4 import InlineResponse2014 - - -class TestInlineResponse2014(unittest.TestCase): - """ InlineResponse2014 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2014(self): - """ - Test InlineResponse2014 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_4.InlineResponse2014() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_4_credit_amount_details.py b/test/test_inline_response_201_4_credit_amount_details.py deleted file mode 100644 index 8ec02f2a..00000000 --- a/test/test_inline_response_201_4_credit_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_4_credit_amount_details import InlineResponse2014CreditAmountDetails - - -class TestInlineResponse2014CreditAmountDetails(unittest.TestCase): - """ InlineResponse2014CreditAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2014CreditAmountDetails(self): - """ - Test InlineResponse2014CreditAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_4_credit_amount_details.InlineResponse2014CreditAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_5.py b/test/test_inline_response_201_5.py deleted file mode 100644 index b3850924..00000000 --- a/test/test_inline_response_201_5.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_5 import InlineResponse2015 - - -class TestInlineResponse2015(unittest.TestCase): - """ InlineResponse2015 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2015(self): - """ - Test InlineResponse2015 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_5.InlineResponse2015() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_5_void_amount_details.py b/test/test_inline_response_201_5_void_amount_details.py deleted file mode 100644 index bfecec74..00000000 --- a/test/test_inline_response_201_5_void_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_5_void_amount_details import InlineResponse2015VoidAmountDetails - - -class TestInlineResponse2015VoidAmountDetails(unittest.TestCase): - """ InlineResponse2015VoidAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2015VoidAmountDetails(self): - """ - Test InlineResponse2015VoidAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_5_void_amount_details.InlineResponse2015VoidAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_6.py b/test/test_inline_response_201_6.py deleted file mode 100644 index da2da2b6..00000000 --- a/test/test_inline_response_201_6.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_6 import InlineResponse2016 - - -class TestInlineResponse2016(unittest.TestCase): - """ InlineResponse2016 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2016(self): - """ - Test InlineResponse2016 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_6.InlineResponse2016() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201__embedded.py b/test/test_inline_response_201__embedded.py deleted file mode 100644 index 69d2e9a8..00000000 --- a/test/test_inline_response_201__embedded.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201__embedded import InlineResponse201Embedded - - -class TestInlineResponse201Embedded(unittest.TestCase): - """ InlineResponse201Embedded unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201Embedded(self): - """ - Test InlineResponse201Embedded - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201__embedded.InlineResponse201Embedded() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201__embedded_capture.py b/test/test_inline_response_201__embedded_capture.py deleted file mode 100644 index 03f1b1bb..00000000 --- a/test/test_inline_response_201__embedded_capture.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201__embedded_capture import InlineResponse201EmbeddedCapture - - -class TestInlineResponse201EmbeddedCapture(unittest.TestCase): - """ InlineResponse201EmbeddedCapture unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201EmbeddedCapture(self): - """ - Test InlineResponse201EmbeddedCapture - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201__embedded_capture.InlineResponse201EmbeddedCapture() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201__embedded_capture__links.py b/test/test_inline_response_201__embedded_capture__links.py deleted file mode 100644 index 2ecea2ae..00000000 --- a/test/test_inline_response_201__embedded_capture__links.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201__embedded_capture__links import InlineResponse201EmbeddedCaptureLinks - - -class TestInlineResponse201EmbeddedCaptureLinks(unittest.TestCase): - """ InlineResponse201EmbeddedCaptureLinks unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201EmbeddedCaptureLinks(self): - """ - Test InlineResponse201EmbeddedCaptureLinks - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201__embedded_capture__links.InlineResponse201EmbeddedCaptureLinks() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201__links.py b/test/test_inline_response_201__links.py deleted file mode 100644 index 0dcd5214..00000000 --- a/test/test_inline_response_201__links.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201__links import InlineResponse201Links - - -class TestInlineResponse201Links(unittest.TestCase): - """ InlineResponse201Links unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201Links(self): - """ - Test InlineResponse201Links - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201__links.InlineResponse201Links() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201__links_self.py b/test/test_inline_response_201__links_self.py deleted file mode 100644 index 56e7e371..00000000 --- a/test/test_inline_response_201__links_self.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201__links_self import InlineResponse201LinksSelf - - -class TestInlineResponse201LinksSelf(unittest.TestCase): - """ InlineResponse201LinksSelf unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201LinksSelf(self): - """ - Test InlineResponse201LinksSelf - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201__links_self.InlineResponse201LinksSelf() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_client_reference_information.py b/test/test_inline_response_201_client_reference_information.py deleted file mode 100644 index 1a3e97fd..00000000 --- a/test/test_inline_response_201_client_reference_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_client_reference_information import InlineResponse201ClientReferenceInformation - - -class TestInlineResponse201ClientReferenceInformation(unittest.TestCase): - """ InlineResponse201ClientReferenceInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ClientReferenceInformation(self): - """ - Test InlineResponse201ClientReferenceInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_client_reference_information.InlineResponse201ClientReferenceInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_error_information.py b/test/test_inline_response_201_error_information.py deleted file mode 100644 index a85090c2..00000000 --- a/test/test_inline_response_201_error_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_error_information import InlineResponse201ErrorInformation - - -class TestInlineResponse201ErrorInformation(unittest.TestCase): - """ InlineResponse201ErrorInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ErrorInformation(self): - """ - Test InlineResponse201ErrorInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_error_information.InlineResponse201ErrorInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_error_information_details.py b/test/test_inline_response_201_error_information_details.py deleted file mode 100644 index 50a13858..00000000 --- a/test/test_inline_response_201_error_information_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_error_information_details import InlineResponse201ErrorInformationDetails - - -class TestInlineResponse201ErrorInformationDetails(unittest.TestCase): - """ InlineResponse201ErrorInformationDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ErrorInformationDetails(self): - """ - Test InlineResponse201ErrorInformationDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_error_information_details.InlineResponse201ErrorInformationDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_order_information.py b/test/test_inline_response_201_order_information.py deleted file mode 100644 index 0a057a70..00000000 --- a/test/test_inline_response_201_order_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_order_information import InlineResponse201OrderInformation - - -class TestInlineResponse201OrderInformation(unittest.TestCase): - """ InlineResponse201OrderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201OrderInformation(self): - """ - Test InlineResponse201OrderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_order_information.InlineResponse201OrderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_order_information_amount_details.py b/test/test_inline_response_201_order_information_amount_details.py deleted file mode 100644 index 493c4b88..00000000 --- a/test/test_inline_response_201_order_information_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_order_information_amount_details import InlineResponse201OrderInformationAmountDetails - - -class TestInlineResponse201OrderInformationAmountDetails(unittest.TestCase): - """ InlineResponse201OrderInformationAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201OrderInformationAmountDetails(self): - """ - Test InlineResponse201OrderInformationAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_order_information_amount_details.InlineResponse201OrderInformationAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_order_information_invoice_details.py b/test/test_inline_response_201_order_information_invoice_details.py deleted file mode 100644 index 3b491b55..00000000 --- a/test/test_inline_response_201_order_information_invoice_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_order_information_invoice_details import InlineResponse201OrderInformationInvoiceDetails - - -class TestInlineResponse201OrderInformationInvoiceDetails(unittest.TestCase): - """ InlineResponse201OrderInformationInvoiceDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201OrderInformationInvoiceDetails(self): - """ - Test InlineResponse201OrderInformationInvoiceDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_order_information_invoice_details.InlineResponse201OrderInformationInvoiceDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_payment_information.py b/test/test_inline_response_201_payment_information.py deleted file mode 100644 index 972c783a..00000000 --- a/test/test_inline_response_201_payment_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_payment_information import InlineResponse201PaymentInformation - - -class TestInlineResponse201PaymentInformation(unittest.TestCase): - """ InlineResponse201PaymentInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201PaymentInformation(self): - """ - Test InlineResponse201PaymentInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_payment_information.InlineResponse201PaymentInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_payment_information_account_features.py b/test/test_inline_response_201_payment_information_account_features.py deleted file mode 100644 index 85213a2e..00000000 --- a/test/test_inline_response_201_payment_information_account_features.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_payment_information_account_features import InlineResponse201PaymentInformationAccountFeatures - - -class TestInlineResponse201PaymentInformationAccountFeatures(unittest.TestCase): - """ InlineResponse201PaymentInformationAccountFeatures unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201PaymentInformationAccountFeatures(self): - """ - Test InlineResponse201PaymentInformationAccountFeatures - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_payment_information_account_features.InlineResponse201PaymentInformationAccountFeatures() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_payment_information_card.py b/test/test_inline_response_201_payment_information_card.py deleted file mode 100644 index ab14ee0a..00000000 --- a/test/test_inline_response_201_payment_information_card.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_payment_information_card import InlineResponse201PaymentInformationCard - - -class TestInlineResponse201PaymentInformationCard(unittest.TestCase): - """ InlineResponse201PaymentInformationCard unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201PaymentInformationCard(self): - """ - Test InlineResponse201PaymentInformationCard - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_payment_information_card.InlineResponse201PaymentInformationCard() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_payment_information_tokenized_card.py b/test/test_inline_response_201_payment_information_tokenized_card.py deleted file mode 100644 index 9bd828ef..00000000 --- a/test/test_inline_response_201_payment_information_tokenized_card.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_payment_information_tokenized_card import InlineResponse201PaymentInformationTokenizedCard - - -class TestInlineResponse201PaymentInformationTokenizedCard(unittest.TestCase): - """ InlineResponse201PaymentInformationTokenizedCard unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201PaymentInformationTokenizedCard(self): - """ - Test InlineResponse201PaymentInformationTokenizedCard - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_payment_information_tokenized_card.InlineResponse201PaymentInformationTokenizedCard() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_point_of_sale_information.py b/test/test_inline_response_201_point_of_sale_information.py deleted file mode 100644 index 3e936fa4..00000000 --- a/test/test_inline_response_201_point_of_sale_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_point_of_sale_information import InlineResponse201PointOfSaleInformation - - -class TestInlineResponse201PointOfSaleInformation(unittest.TestCase): - """ InlineResponse201PointOfSaleInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201PointOfSaleInformation(self): - """ - Test InlineResponse201PointOfSaleInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_point_of_sale_information.InlineResponse201PointOfSaleInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_point_of_sale_information_emv.py b/test/test_inline_response_201_point_of_sale_information_emv.py deleted file mode 100644 index 929dba60..00000000 --- a/test/test_inline_response_201_point_of_sale_information_emv.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_point_of_sale_information_emv import InlineResponse201PointOfSaleInformationEmv - - -class TestInlineResponse201PointOfSaleInformationEmv(unittest.TestCase): - """ InlineResponse201PointOfSaleInformationEmv unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201PointOfSaleInformationEmv(self): - """ - Test InlineResponse201PointOfSaleInformationEmv - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_point_of_sale_information_emv.InlineResponse201PointOfSaleInformationEmv() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_processor_information.py b/test/test_inline_response_201_processor_information.py deleted file mode 100644 index 20249221..00000000 --- a/test/test_inline_response_201_processor_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_processor_information import InlineResponse201ProcessorInformation - - -class TestInlineResponse201ProcessorInformation(unittest.TestCase): - """ InlineResponse201ProcessorInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ProcessorInformation(self): - """ - Test InlineResponse201ProcessorInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_processor_information.InlineResponse201ProcessorInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_processor_information_avs.py b/test/test_inline_response_201_processor_information_avs.py deleted file mode 100644 index c2ef7e70..00000000 --- a/test/test_inline_response_201_processor_information_avs.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_processor_information_avs import InlineResponse201ProcessorInformationAvs - - -class TestInlineResponse201ProcessorInformationAvs(unittest.TestCase): - """ InlineResponse201ProcessorInformationAvs unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ProcessorInformationAvs(self): - """ - Test InlineResponse201ProcessorInformationAvs - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_processor_information_avs.InlineResponse201ProcessorInformationAvs() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_processor_information_card_verification.py b/test/test_inline_response_201_processor_information_card_verification.py deleted file mode 100644 index 887334c5..00000000 --- a/test/test_inline_response_201_processor_information_card_verification.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_processor_information_card_verification import InlineResponse201ProcessorInformationCardVerification - - -class TestInlineResponse201ProcessorInformationCardVerification(unittest.TestCase): - """ InlineResponse201ProcessorInformationCardVerification unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ProcessorInformationCardVerification(self): - """ - Test InlineResponse201ProcessorInformationCardVerification - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_processor_information_card_verification.InlineResponse201ProcessorInformationCardVerification() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_processor_information_consumer_authentication_response.py b/test/test_inline_response_201_processor_information_consumer_authentication_response.py deleted file mode 100644 index 58e28396..00000000 --- a/test/test_inline_response_201_processor_information_consumer_authentication_response.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_processor_information_consumer_authentication_response import InlineResponse201ProcessorInformationConsumerAuthenticationResponse - - -class TestInlineResponse201ProcessorInformationConsumerAuthenticationResponse(unittest.TestCase): - """ InlineResponse201ProcessorInformationConsumerAuthenticationResponse unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ProcessorInformationConsumerAuthenticationResponse(self): - """ - Test InlineResponse201ProcessorInformationConsumerAuthenticationResponse - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_processor_information_consumer_authentication_response.InlineResponse201ProcessorInformationConsumerAuthenticationResponse() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_processor_information_customer.py b/test/test_inline_response_201_processor_information_customer.py deleted file mode 100644 index f8d2b130..00000000 --- a/test/test_inline_response_201_processor_information_customer.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_processor_information_customer import InlineResponse201ProcessorInformationCustomer - - -class TestInlineResponse201ProcessorInformationCustomer(unittest.TestCase): - """ InlineResponse201ProcessorInformationCustomer unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ProcessorInformationCustomer(self): - """ - Test InlineResponse201ProcessorInformationCustomer - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_processor_information_customer.InlineResponse201ProcessorInformationCustomer() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_processor_information_electronic_verification_results.py b/test/test_inline_response_201_processor_information_electronic_verification_results.py deleted file mode 100644 index b82e23c9..00000000 --- a/test/test_inline_response_201_processor_information_electronic_verification_results.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_processor_information_electronic_verification_results import InlineResponse201ProcessorInformationElectronicVerificationResults - - -class TestInlineResponse201ProcessorInformationElectronicVerificationResults(unittest.TestCase): - """ InlineResponse201ProcessorInformationElectronicVerificationResults unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ProcessorInformationElectronicVerificationResults(self): - """ - Test InlineResponse201ProcessorInformationElectronicVerificationResults - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_processor_information_electronic_verification_results.InlineResponse201ProcessorInformationElectronicVerificationResults() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_processor_information_issuer.py b/test/test_inline_response_201_processor_information_issuer.py deleted file mode 100644 index 964846d0..00000000 --- a/test/test_inline_response_201_processor_information_issuer.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_processor_information_issuer import InlineResponse201ProcessorInformationIssuer - - -class TestInlineResponse201ProcessorInformationIssuer(unittest.TestCase): - """ InlineResponse201ProcessorInformationIssuer unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ProcessorInformationIssuer(self): - """ - Test InlineResponse201ProcessorInformationIssuer - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_processor_information_issuer.InlineResponse201ProcessorInformationIssuer() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_201_processor_information_merchant_advice.py b/test/test_inline_response_201_processor_information_merchant_advice.py deleted file mode 100644 index 879298b7..00000000 --- a/test/test_inline_response_201_processor_information_merchant_advice.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_201_processor_information_merchant_advice import InlineResponse201ProcessorInformationMerchantAdvice - - -class TestInlineResponse201ProcessorInformationMerchantAdvice(unittest.TestCase): - """ InlineResponse201ProcessorInformationMerchantAdvice unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201ProcessorInformationMerchantAdvice(self): - """ - Test InlineResponse201ProcessorInformationMerchantAdvice - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_201_processor_information_merchant_advice.InlineResponse201ProcessorInformationMerchantAdvice() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_400_1.py b/test/test_inline_response_400_1.py deleted file mode 100644 index aa1ff973..00000000 --- a/test/test_inline_response_400_1.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_400_1 import InlineResponse4001 - - -class TestInlineResponse4001(unittest.TestCase): - """ InlineResponse4001 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse4001(self): - """ - Test InlineResponse4001 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_400_1.InlineResponse4001() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_400_2.py b/test/test_inline_response_400_2.py deleted file mode 100644 index 91c68e41..00000000 --- a/test/test_inline_response_400_2.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_400_2 import InlineResponse4002 - - -class TestInlineResponse4002(unittest.TestCase): - """ InlineResponse4002 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse4002(self): - """ - Test InlineResponse4002 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_400_2.InlineResponse4002() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_400_3.py b/test/test_inline_response_400_3.py deleted file mode 100644 index 90f267fd..00000000 --- a/test/test_inline_response_400_3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_400_3 import InlineResponse4003 - - -class TestInlineResponse4003(unittest.TestCase): - """ InlineResponse4003 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse4003(self): - """ - Test InlineResponse4003 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_400_3.InlineResponse4003() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_400_4.py b/test/test_inline_response_400_4.py deleted file mode 100644 index 43d5a99c..00000000 --- a/test/test_inline_response_400_4.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_400_4 import InlineResponse4004 - - -class TestInlineResponse4004(unittest.TestCase): - """ InlineResponse4004 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse4004(self): - """ - Test InlineResponse4004 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_400_4.InlineResponse4004() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_400_5.py b/test/test_inline_response_400_5.py deleted file mode 100644 index c95970f3..00000000 --- a/test/test_inline_response_400_5.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_400_5 import InlineResponse4005 - - -class TestInlineResponse4005(unittest.TestCase): - """ InlineResponse4005 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse4005(self): - """ - Test InlineResponse4005 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_400_5.InlineResponse4005() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_400_6.py b/test/test_inline_response_400_6.py deleted file mode 100644 index d987ea84..00000000 --- a/test/test_inline_response_400_6.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_400_6 import InlineResponse4006 - - -class TestInlineResponse4006(unittest.TestCase): - """ InlineResponse4006 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse4006(self): - """ - Test InlineResponse4006 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_400_6.InlineResponse4006() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_409.py b/test/test_inline_response_409.py deleted file mode 100644 index fae924e8..00000000 --- a/test/test_inline_response_409.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_409 import InlineResponse409 - - -class TestInlineResponse409(unittest.TestCase): - """ InlineResponse409 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse409(self): - """ - Test InlineResponse409 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_409.InlineResponse409() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_409__links.py b/test/test_inline_response_409__links.py deleted file mode 100644 index 36f3e1b4..00000000 --- a/test/test_inline_response_409__links.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_409__links import InlineResponse409Links - - -class TestInlineResponse409Links(unittest.TestCase): - """ InlineResponse409Links unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse409Links(self): - """ - Test InlineResponse409Links - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_409__links.InlineResponse409Links() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_409__links_payment_instruments.py b/test/test_inline_response_409__links_payment_instruments.py deleted file mode 100644 index e5016d63..00000000 --- a/test/test_inline_response_409__links_payment_instruments.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_409__links_payment_instruments import InlineResponse409LinksPaymentInstruments - - -class TestInlineResponse409LinksPaymentInstruments(unittest.TestCase): - """ InlineResponse409LinksPaymentInstruments unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse409LinksPaymentInstruments(self): - """ - Test InlineResponse409LinksPaymentInstruments - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_409__links_payment_instruments.InlineResponse409LinksPaymentInstruments() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inline_response_502.py b/test/test_inline_response_502.py deleted file mode 100644 index 843de0a7..00000000 --- a/test/test_inline_response_502.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.inline_response_502 import InlineResponse502 - - -class TestInlineResponse502(unittest.TestCase): - """ InlineResponse502 unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse502(self): - """ - Test InlineResponse502 - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.inline_response_502.InlineResponse502() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_instrument_identifier_api.py b/test/test_instrument_identifier_api.py index b18e702d..dae5952c 100644 --- a/test/test_instrument_identifier_api.py +++ b/test/test_instrument_identifier_api.py @@ -31,46 +31,30 @@ def setUp(self): def tearDown(self): pass - def test_instrumentidentifiers_post(self): + def test_tms_v1_instrumentidentifiers_token_id_delete(self): """ - Test case for instrumentidentifiers_post - - Create an Instrument Identifier - """ - pass - - def test_instrumentidentifiers_token_id_delete(self): - """ - Test case for instrumentidentifiers_token_id_delete + Test case for tms_v1_instrumentidentifiers_token_id_delete Delete an Instrument Identifier """ pass - def test_instrumentidentifiers_token_id_get(self): + def test_tms_v1_instrumentidentifiers_token_id_get(self): """ - Test case for instrumentidentifiers_token_id_get + Test case for tms_v1_instrumentidentifiers_token_id_get Retrieve an Instrument Identifier """ pass - def test_instrumentidentifiers_token_id_patch(self): + def test_tms_v1_instrumentidentifiers_token_id_patch(self): """ - Test case for instrumentidentifiers_token_id_patch + Test case for tms_v1_instrumentidentifiers_token_id_patch Update a Instrument Identifier """ pass - def test_instrumentidentifiers_token_id_paymentinstruments_get(self): - """ - Test case for instrumentidentifiers_token_id_paymentinstruments_get - - Retrieve all Payment Instruments associated with an Instrument Identifier - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_instrument_identifiers_api.py b/test/test_instrument_identifiers_api.py new file mode 100644 index 00000000..b8960f92 --- /dev/null +++ b/test/test_instrument_identifiers_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.instrument_identifiers_api import InstrumentIdentifiersApi + + +class TestInstrumentIdentifiersApi(unittest.TestCase): + """ InstrumentIdentifiersApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.instrument_identifiers_api.InstrumentIdentifiersApi() + + def tearDown(self): + pass + + def test_tms_v1_instrumentidentifiers_post(self): + """ + Test case for tms_v1_instrumentidentifiers_post + + Create an Instrument Identifier + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_instrumentidentifiers__links.py b/test/test_instrumentidentifiers__links.py deleted file mode 100644 index ba2a2635..00000000 --- a/test/test_instrumentidentifiers__links.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.instrumentidentifiers__links import InstrumentidentifiersLinks - - -class TestInstrumentidentifiersLinks(unittest.TestCase): - """ InstrumentidentifiersLinks unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstrumentidentifiersLinks(self): - """ - Test InstrumentidentifiersLinks - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.instrumentidentifiers__links.InstrumentidentifiersLinks() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_instrumentidentifiers__links_self.py b/test/test_instrumentidentifiers__links_self.py deleted file mode 100644 index caeece4d..00000000 --- a/test/test_instrumentidentifiers__links_self.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.instrumentidentifiers__links_self import InstrumentidentifiersLinksSelf - - -class TestInstrumentidentifiersLinksSelf(unittest.TestCase): - """ InstrumentidentifiersLinksSelf unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstrumentidentifiersLinksSelf(self): - """ - Test InstrumentidentifiersLinksSelf - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.instrumentidentifiers__links_self.InstrumentidentifiersLinksSelf() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_instrumentidentifiers_bank_account.py b/test/test_instrumentidentifiers_bank_account.py deleted file mode 100644 index 4a1964f3..00000000 --- a/test/test_instrumentidentifiers_bank_account.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.instrumentidentifiers_bank_account import InstrumentidentifiersBankAccount - - -class TestInstrumentidentifiersBankAccount(unittest.TestCase): - """ InstrumentidentifiersBankAccount unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstrumentidentifiersBankAccount(self): - """ - Test InstrumentidentifiersBankAccount - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.instrumentidentifiers_bank_account.InstrumentidentifiersBankAccount() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_instrumentidentifiers_card.py b/test/test_instrumentidentifiers_card.py deleted file mode 100644 index e5b99d68..00000000 --- a/test/test_instrumentidentifiers_card.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.instrumentidentifiers_card import InstrumentidentifiersCard - - -class TestInstrumentidentifiersCard(unittest.TestCase): - """ InstrumentidentifiersCard unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstrumentidentifiersCard(self): - """ - Test InstrumentidentifiersCard - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.instrumentidentifiers_card.InstrumentidentifiersCard() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_instrumentidentifiers_details.py b/test/test_instrumentidentifiers_details.py deleted file mode 100644 index 52e27cc8..00000000 --- a/test/test_instrumentidentifiers_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.instrumentidentifiers_details import InstrumentidentifiersDetails - - -class TestInstrumentidentifiersDetails(unittest.TestCase): - """ InstrumentidentifiersDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstrumentidentifiersDetails(self): - """ - Test InstrumentidentifiersDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.instrumentidentifiers_details.InstrumentidentifiersDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_instrumentidentifiers_metadata.py b/test/test_instrumentidentifiers_metadata.py deleted file mode 100644 index 8c561f72..00000000 --- a/test/test_instrumentidentifiers_metadata.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.instrumentidentifiers_metadata import InstrumentidentifiersMetadata - - -class TestInstrumentidentifiersMetadata(unittest.TestCase): - """ InstrumentidentifiersMetadata unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstrumentidentifiersMetadata(self): - """ - Test InstrumentidentifiersMetadata - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.instrumentidentifiers_metadata.InstrumentidentifiersMetadata() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_instrumentidentifiers_processing_information.py b/test/test_instrumentidentifiers_processing_information.py deleted file mode 100644 index 75720643..00000000 --- a/test/test_instrumentidentifiers_processing_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.instrumentidentifiers_processing_information import InstrumentidentifiersProcessingInformation - - -class TestInstrumentidentifiersProcessingInformation(unittest.TestCase): - """ InstrumentidentifiersProcessingInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstrumentidentifiersProcessingInformation(self): - """ - Test InstrumentidentifiersProcessingInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.instrumentidentifiers_processing_information.InstrumentidentifiersProcessingInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_instrumentidentifiers_processing_information_authorization_options.py b/test/test_instrumentidentifiers_processing_information_authorization_options.py deleted file mode 100644 index 02c13fd6..00000000 --- a/test/test_instrumentidentifiers_processing_information_authorization_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.instrumentidentifiers_processing_information_authorization_options import InstrumentidentifiersProcessingInformationAuthorizationOptions - - -class TestInstrumentidentifiersProcessingInformationAuthorizationOptions(unittest.TestCase): - """ InstrumentidentifiersProcessingInformationAuthorizationOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstrumentidentifiersProcessingInformationAuthorizationOptions(self): - """ - Test InstrumentidentifiersProcessingInformationAuthorizationOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.instrumentidentifiers_processing_information_authorization_options.InstrumentidentifiersProcessingInformationAuthorizationOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_instrumentidentifiers_processing_information_authorization_options_initiator.py b/test/test_instrumentidentifiers_processing_information_authorization_options_initiator.py deleted file mode 100644 index df92867a..00000000 --- a/test/test_instrumentidentifiers_processing_information_authorization_options_initiator.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.instrumentidentifiers_processing_information_authorization_options_initiator import InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator - - -class TestInstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator(unittest.TestCase): - """ InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator(self): - """ - Test InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.instrumentidentifiers_processing_information_authorization_options_initiator.InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiator() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_instrumentidentifiers_processing_information_authorization_options_initiator_merchant_initiated_transaction.py b/test/test_instrumentidentifiers_processing_information_authorization_options_initiator_merchant_initiated_transaction.py deleted file mode 100644 index 76d53ea4..00000000 --- a/test/test_instrumentidentifiers_processing_information_authorization_options_initiator_merchant_initiated_transaction.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.instrumentidentifiers_processing_information_authorization_options_initiator_merchant_initiated_transaction import InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - - -class TestInstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(unittest.TestCase): - """ InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(self): - """ - Test InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.instrumentidentifiers_processing_information_authorization_options_initiator_merchant_initiated_transaction.InstrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notification_of_changes_api.py b/test/test_notification_of_changes_api.py new file mode 100644 index 00000000..d7ace972 --- /dev/null +++ b/test/test_notification_of_changes_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.notification_of_changes_api import NotificationOfChangesApi + + +class TestNotificationOfChangesApi(unittest.TestCase): + """ NotificationOfChangesApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.notification_of_changes_api.NotificationOfChangesApi() + + def tearDown(self): + pass + + def test_get_notification_of_change_report(self): + """ + Test case for get_notification_of_change_report + + Get Notification Of Changes + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_oct_create_payment_request.py b/test/test_oct_create_payment_request.py deleted file mode 100644 index 6fbb9bf1..00000000 --- a/test/test_oct_create_payment_request.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.oct_create_payment_request import OctCreatePaymentRequest - - -class TestOctCreatePaymentRequest(unittest.TestCase): - """ OctCreatePaymentRequest unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOctCreatePaymentRequest(self): - """ - Test OctCreatePaymentRequest - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.oct_create_payment_request.OctCreatePaymentRequest() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payment_api.py b/test/test_payment_api.py deleted file mode 100644 index bc11ef4f..00000000 --- a/test/test_payment_api.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.apis.payment_api import PaymentApi - - -class TestPaymentApi(unittest.TestCase): - """ PaymentApi unit test stubs """ - - def setUp(self): - self.api = CyberSource.apis.payment_api.PaymentApi() - - def tearDown(self): - pass - - def test_create_payment(self): - """ - Test case for create_payment - - Process a Payment - """ - pass - - def test_get_payment(self): - """ - Test case for get_payment - - Retrieve a Payment - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payment_instrument_api.py b/test/test_payment_instrument_api.py deleted file mode 100644 index 47c1c866..00000000 --- a/test/test_payment_instrument_api.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.apis.payment_instrument_api import PaymentInstrumentApi - - -class TestPaymentInstrumentApi(unittest.TestCase): - """ PaymentInstrumentApi unit test stubs """ - - def setUp(self): - self.api = CyberSource.apis.payment_instrument_api.PaymentInstrumentApi() - - def tearDown(self): - pass - - def test_paymentinstruments_post(self): - """ - Test case for paymentinstruments_post - - Create a Payment Instrument - """ - pass - - def test_paymentinstruments_token_id_delete(self): - """ - Test case for paymentinstruments_token_id_delete - - Delete a Payment Instrument - """ - pass - - def test_paymentinstruments_token_id_get(self): - """ - Test case for paymentinstruments_token_id_get - - Retrieve a Payment Instrument - """ - pass - - def test_paymentinstruments_token_id_patch(self): - """ - Test case for paymentinstruments_token_id_patch - - Update a Payment Instrument - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payment_instruments_api.py b/test/test_payment_instruments_api.py new file mode 100644 index 00000000..6b54ebba --- /dev/null +++ b/test/test_payment_instruments_api.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.payment_instruments_api import PaymentInstrumentsApi + + +class TestPaymentInstrumentsApi(unittest.TestCase): + """ PaymentInstrumentsApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.payment_instruments_api.PaymentInstrumentsApi() + + def tearDown(self): + pass + + def test_tms_v1_instrumentidentifiers_token_id_paymentinstruments_get(self): + """ + Test case for tms_v1_instrumentidentifiers_token_id_paymentinstruments_get + + Retrieve all Payment Instruments associated with an Instrument Identifier + """ + pass + + def test_tms_v1_paymentinstruments_post(self): + """ + Test case for tms_v1_paymentinstruments_post + + Create a Payment Instrument + """ + pass + + def test_tms_v1_paymentinstruments_token_id_delete(self): + """ + Test case for tms_v1_paymentinstruments_token_id_delete + + Delete a Payment Instrument + """ + pass + + def test_tms_v1_paymentinstruments_token_id_get(self): + """ + Test case for tms_v1_paymentinstruments_token_id_get + + Retrieve a Payment Instrument + """ + pass + + def test_tms_v1_paymentinstruments_token_id_patch(self): + """ + Test case for tms_v1_paymentinstruments_token_id_patch + + Update a Payment Instrument + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paymentinstruments_bank_account.py b/test/test_paymentinstruments_bank_account.py deleted file mode 100644 index 91197a12..00000000 --- a/test/test_paymentinstruments_bank_account.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_bank_account import PaymentinstrumentsBankAccount - - -class TestPaymentinstrumentsBankAccount(unittest.TestCase): - """ PaymentinstrumentsBankAccount unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsBankAccount(self): - """ - Test PaymentinstrumentsBankAccount - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_bank_account.PaymentinstrumentsBankAccount() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paymentinstruments_bill_to.py b/test/test_paymentinstruments_bill_to.py deleted file mode 100644 index a5880e51..00000000 --- a/test/test_paymentinstruments_bill_to.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_bill_to import PaymentinstrumentsBillTo - - -class TestPaymentinstrumentsBillTo(unittest.TestCase): - """ PaymentinstrumentsBillTo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsBillTo(self): - """ - Test PaymentinstrumentsBillTo - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_bill_to.PaymentinstrumentsBillTo() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paymentinstruments_buyer_information.py b/test/test_paymentinstruments_buyer_information.py deleted file mode 100644 index 917695fc..00000000 --- a/test/test_paymentinstruments_buyer_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_buyer_information import PaymentinstrumentsBuyerInformation - - -class TestPaymentinstrumentsBuyerInformation(unittest.TestCase): - """ PaymentinstrumentsBuyerInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsBuyerInformation(self): - """ - Test PaymentinstrumentsBuyerInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_buyer_information.PaymentinstrumentsBuyerInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paymentinstruments_buyer_information_issued_by.py b/test/test_paymentinstruments_buyer_information_issued_by.py deleted file mode 100644 index 47233719..00000000 --- a/test/test_paymentinstruments_buyer_information_issued_by.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_buyer_information_issued_by import PaymentinstrumentsBuyerInformationIssuedBy - - -class TestPaymentinstrumentsBuyerInformationIssuedBy(unittest.TestCase): - """ PaymentinstrumentsBuyerInformationIssuedBy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsBuyerInformationIssuedBy(self): - """ - Test PaymentinstrumentsBuyerInformationIssuedBy - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_buyer_information_issued_by.PaymentinstrumentsBuyerInformationIssuedBy() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paymentinstruments_buyer_information_personal_identification.py b/test/test_paymentinstruments_buyer_information_personal_identification.py deleted file mode 100644 index ba9e490d..00000000 --- a/test/test_paymentinstruments_buyer_information_personal_identification.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_buyer_information_personal_identification import PaymentinstrumentsBuyerInformationPersonalIdentification - - -class TestPaymentinstrumentsBuyerInformationPersonalIdentification(unittest.TestCase): - """ PaymentinstrumentsBuyerInformationPersonalIdentification unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsBuyerInformationPersonalIdentification(self): - """ - Test PaymentinstrumentsBuyerInformationPersonalIdentification - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_buyer_information_personal_identification.PaymentinstrumentsBuyerInformationPersonalIdentification() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paymentinstruments_card.py b/test/test_paymentinstruments_card.py deleted file mode 100644 index 9795f744..00000000 --- a/test/test_paymentinstruments_card.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_card import PaymentinstrumentsCard - - -class TestPaymentinstrumentsCard(unittest.TestCase): - """ PaymentinstrumentsCard unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsCard(self): - """ - Test PaymentinstrumentsCard - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_card.PaymentinstrumentsCard() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paymentinstruments_instrument_identifier.py b/test/test_paymentinstruments_instrument_identifier.py deleted file mode 100644 index 5e8532d3..00000000 --- a/test/test_paymentinstruments_instrument_identifier.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_instrument_identifier import PaymentinstrumentsInstrumentIdentifier - - -class TestPaymentinstrumentsInstrumentIdentifier(unittest.TestCase): - """ PaymentinstrumentsInstrumentIdentifier unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsInstrumentIdentifier(self): - """ - Test PaymentinstrumentsInstrumentIdentifier - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_instrument_identifier.PaymentinstrumentsInstrumentIdentifier() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paymentinstruments_merchant_information.py b/test/test_paymentinstruments_merchant_information.py deleted file mode 100644 index b120968b..00000000 --- a/test/test_paymentinstruments_merchant_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_merchant_information import PaymentinstrumentsMerchantInformation - - -class TestPaymentinstrumentsMerchantInformation(unittest.TestCase): - """ PaymentinstrumentsMerchantInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsMerchantInformation(self): - """ - Test PaymentinstrumentsMerchantInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_merchant_information.PaymentinstrumentsMerchantInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paymentinstruments_merchant_information_merchant_descriptor.py b/test/test_paymentinstruments_merchant_information_merchant_descriptor.py deleted file mode 100644 index 316ac7d5..00000000 --- a/test/test_paymentinstruments_merchant_information_merchant_descriptor.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_merchant_information_merchant_descriptor import PaymentinstrumentsMerchantInformationMerchantDescriptor - - -class TestPaymentinstrumentsMerchantInformationMerchantDescriptor(unittest.TestCase): - """ PaymentinstrumentsMerchantInformationMerchantDescriptor unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsMerchantInformationMerchantDescriptor(self): - """ - Test PaymentinstrumentsMerchantInformationMerchantDescriptor - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_merchant_information_merchant_descriptor.PaymentinstrumentsMerchantInformationMerchantDescriptor() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paymentinstruments_processing_information.py b/test/test_paymentinstruments_processing_information.py deleted file mode 100644 index 7c92e193..00000000 --- a/test/test_paymentinstruments_processing_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_processing_information import PaymentinstrumentsProcessingInformation - - -class TestPaymentinstrumentsProcessingInformation(unittest.TestCase): - """ PaymentinstrumentsProcessingInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsProcessingInformation(self): - """ - Test PaymentinstrumentsProcessingInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_processing_information.PaymentinstrumentsProcessingInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paymentinstruments_processing_information_bank_transfer_options.py b/test/test_paymentinstruments_processing_information_bank_transfer_options.py deleted file mode 100644 index d429e17f..00000000 --- a/test/test_paymentinstruments_processing_information_bank_transfer_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentinstruments_processing_information_bank_transfer_options import PaymentinstrumentsProcessingInformationBankTransferOptions - - -class TestPaymentinstrumentsProcessingInformationBankTransferOptions(unittest.TestCase): - """ PaymentinstrumentsProcessingInformationBankTransferOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentinstrumentsProcessingInformationBankTransferOptions(self): - """ - Test PaymentinstrumentsProcessingInformationBankTransferOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentinstruments_processing_information_bank_transfer_options.PaymentinstrumentsProcessingInformationBankTransferOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payments_api.py b/test/test_payments_api.py new file mode 100644 index 00000000..72c6cb6e --- /dev/null +++ b/test/test_payments_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.payments_api import PaymentsApi + + +class TestPaymentsApi(unittest.TestCase): + """ PaymentsApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.payments_api.PaymentsApi() + + def tearDown(self): + pass + + def test_create_payment(self): + """ + Test case for create_payment + + Process a Payment + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paymentsflexv1tokens_card_info.py b/test/test_paymentsflexv1tokens_card_info.py deleted file mode 100644 index 0d48063e..00000000 --- a/test/test_paymentsflexv1tokens_card_info.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.paymentsflexv1tokens_card_info import Paymentsflexv1tokensCardInfo - - -class TestPaymentsflexv1tokensCardInfo(unittest.TestCase): - """ Paymentsflexv1tokensCardInfo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPaymentsflexv1tokensCardInfo(self): - """ - Test Paymentsflexv1tokensCardInfo - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.paymentsflexv1tokens_card_info.Paymentsflexv1tokensCardInfo() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_process_a_payout_api.py b/test/test_process_a_payout_api.py new file mode 100644 index 00000000..458f62e2 --- /dev/null +++ b/test/test_process_a_payout_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.process_a_payout_api import ProcessAPayoutApi + + +class TestProcessAPayoutApi(unittest.TestCase): + """ ProcessAPayoutApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.process_a_payout_api.ProcessAPayoutApi() + + def tearDown(self): + pass + + def test_oct_create_payment(self): + """ + Test case for oct_create_payment + + Process a Payout + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v1_transaction_batches_get200_response.py b/test/test_pts_v1_transaction_batches_get200_response.py new file mode 100644 index 00000000..37668d3b --- /dev/null +++ b/test/test_pts_v1_transaction_batches_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v1_transaction_batches_get200_response import PtsV1TransactionBatchesGet200Response + + +class TestPtsV1TransactionBatchesGet200Response(unittest.TestCase): + """ PtsV1TransactionBatchesGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV1TransactionBatchesGet200Response(self): + """ + Test PtsV1TransactionBatchesGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v1_transaction_batches_get200_response.PtsV1TransactionBatchesGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v1_transaction_batches_get200_response__links.py b/test/test_pts_v1_transaction_batches_get200_response__links.py new file mode 100644 index 00000000..8c6f1605 --- /dev/null +++ b/test/test_pts_v1_transaction_batches_get200_response__links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v1_transaction_batches_get200_response__links import PtsV1TransactionBatchesGet200ResponseLinks + + +class TestPtsV1TransactionBatchesGet200ResponseLinks(unittest.TestCase): + """ PtsV1TransactionBatchesGet200ResponseLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV1TransactionBatchesGet200ResponseLinks(self): + """ + Test PtsV1TransactionBatchesGet200ResponseLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v1_transaction_batches_get200_response__links.PtsV1TransactionBatchesGet200ResponseLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v1_transaction_batches_get200_response__links_self.py b/test/test_pts_v1_transaction_batches_get200_response__links_self.py new file mode 100644 index 00000000..f59572a1 --- /dev/null +++ b/test/test_pts_v1_transaction_batches_get200_response__links_self.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v1_transaction_batches_get200_response__links_self import PtsV1TransactionBatchesGet200ResponseLinksSelf + + +class TestPtsV1TransactionBatchesGet200ResponseLinksSelf(unittest.TestCase): + """ PtsV1TransactionBatchesGet200ResponseLinksSelf unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV1TransactionBatchesGet200ResponseLinksSelf(self): + """ + Test PtsV1TransactionBatchesGet200ResponseLinksSelf + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v1_transaction_batches_get200_response__links_self.PtsV1TransactionBatchesGet200ResponseLinksSelf() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v1_transaction_batches_get200_response_transaction_batches.py b/test/test_pts_v1_transaction_batches_get200_response_transaction_batches.py new file mode 100644 index 00000000..ce88353e --- /dev/null +++ b/test/test_pts_v1_transaction_batches_get200_response_transaction_batches.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v1_transaction_batches_get200_response_transaction_batches import PtsV1TransactionBatchesGet200ResponseTransactionBatches + + +class TestPtsV1TransactionBatchesGet200ResponseTransactionBatches(unittest.TestCase): + """ PtsV1TransactionBatchesGet200ResponseTransactionBatches unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV1TransactionBatchesGet200ResponseTransactionBatches(self): + """ + Test PtsV1TransactionBatchesGet200ResponseTransactionBatches + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v1_transaction_batches_get200_response_transaction_batches.PtsV1TransactionBatchesGet200ResponseTransactionBatches() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v1_transaction_batches_get400_response.py b/test/test_pts_v1_transaction_batches_get400_response.py new file mode 100644 index 00000000..66cbf5f6 --- /dev/null +++ b/test/test_pts_v1_transaction_batches_get400_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v1_transaction_batches_get400_response import PtsV1TransactionBatchesGet400Response + + +class TestPtsV1TransactionBatchesGet400Response(unittest.TestCase): + """ PtsV1TransactionBatchesGet400Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV1TransactionBatchesGet400Response(self): + """ + Test PtsV1TransactionBatchesGet400Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v1_transaction_batches_get400_response.PtsV1TransactionBatchesGet400Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v1_transaction_batches_get400_response_error_information.py b/test/test_pts_v1_transaction_batches_get400_response_error_information.py new file mode 100644 index 00000000..84eac3c4 --- /dev/null +++ b/test/test_pts_v1_transaction_batches_get400_response_error_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v1_transaction_batches_get400_response_error_information import PtsV1TransactionBatchesGet400ResponseErrorInformation + + +class TestPtsV1TransactionBatchesGet400ResponseErrorInformation(unittest.TestCase): + """ PtsV1TransactionBatchesGet400ResponseErrorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV1TransactionBatchesGet400ResponseErrorInformation(self): + """ + Test PtsV1TransactionBatchesGet400ResponseErrorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v1_transaction_batches_get400_response_error_information.PtsV1TransactionBatchesGet400ResponseErrorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v1_transaction_batches_get400_response_error_information_details.py b/test/test_pts_v1_transaction_batches_get400_response_error_information_details.py new file mode 100644 index 00000000..a9d65406 --- /dev/null +++ b/test/test_pts_v1_transaction_batches_get400_response_error_information_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v1_transaction_batches_get400_response_error_information_details import PtsV1TransactionBatchesGet400ResponseErrorInformationDetails + + +class TestPtsV1TransactionBatchesGet400ResponseErrorInformationDetails(unittest.TestCase): + """ PtsV1TransactionBatchesGet400ResponseErrorInformationDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV1TransactionBatchesGet400ResponseErrorInformationDetails(self): + """ + Test PtsV1TransactionBatchesGet400ResponseErrorInformationDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v1_transaction_batches_get400_response_error_information_details.PtsV1TransactionBatchesGet400ResponseErrorInformationDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v1_transaction_batches_get500_response.py b/test/test_pts_v1_transaction_batches_get500_response.py new file mode 100644 index 00000000..61bfe415 --- /dev/null +++ b/test/test_pts_v1_transaction_batches_get500_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v1_transaction_batches_get500_response import PtsV1TransactionBatchesGet500Response + + +class TestPtsV1TransactionBatchesGet500Response(unittest.TestCase): + """ PtsV1TransactionBatchesGet500Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV1TransactionBatchesGet500Response(self): + """ + Test PtsV1TransactionBatchesGet500Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v1_transaction_batches_get500_response.PtsV1TransactionBatchesGet500Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v1_transaction_batches_get500_response_error_information.py b/test/test_pts_v1_transaction_batches_get500_response_error_information.py new file mode 100644 index 00000000..55392fe1 --- /dev/null +++ b/test/test_pts_v1_transaction_batches_get500_response_error_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v1_transaction_batches_get500_response_error_information import PtsV1TransactionBatchesGet500ResponseErrorInformation + + +class TestPtsV1TransactionBatchesGet500ResponseErrorInformation(unittest.TestCase): + """ PtsV1TransactionBatchesGet500ResponseErrorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV1TransactionBatchesGet500ResponseErrorInformation(self): + """ + Test PtsV1TransactionBatchesGet500ResponseErrorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v1_transaction_batches_get500_response_error_information.PtsV1TransactionBatchesGet500ResponseErrorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_credits_post201_response.py b/test/test_pts_v2_credits_post201_response.py new file mode 100644 index 00000000..bc628b50 --- /dev/null +++ b/test/test_pts_v2_credits_post201_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_credits_post201_response import PtsV2CreditsPost201Response + + +class TestPtsV2CreditsPost201Response(unittest.TestCase): + """ PtsV2CreditsPost201Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2CreditsPost201Response(self): + """ + Test PtsV2CreditsPost201Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_credits_post201_response.PtsV2CreditsPost201Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_credits_post201_response_credit_amount_details.py b/test/test_pts_v2_credits_post201_response_credit_amount_details.py new file mode 100644 index 00000000..c10d5163 --- /dev/null +++ b/test/test_pts_v2_credits_post201_response_credit_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_credits_post201_response_credit_amount_details import PtsV2CreditsPost201ResponseCreditAmountDetails + + +class TestPtsV2CreditsPost201ResponseCreditAmountDetails(unittest.TestCase): + """ PtsV2CreditsPost201ResponseCreditAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2CreditsPost201ResponseCreditAmountDetails(self): + """ + Test PtsV2CreditsPost201ResponseCreditAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_credits_post201_response_credit_amount_details.PtsV2CreditsPost201ResponseCreditAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_captures_post201_response.py b/test/test_pts_v2_payments_captures_post201_response.py new file mode 100644 index 00000000..e214e1ac --- /dev/null +++ b/test/test_pts_v2_payments_captures_post201_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_captures_post201_response import PtsV2PaymentsCapturesPost201Response + + +class TestPtsV2PaymentsCapturesPost201Response(unittest.TestCase): + """ PtsV2PaymentsCapturesPost201Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsCapturesPost201Response(self): + """ + Test PtsV2PaymentsCapturesPost201Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_captures_post201_response.PtsV2PaymentsCapturesPost201Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_captures_post201_response__links.py b/test/test_pts_v2_payments_captures_post201_response__links.py new file mode 100644 index 00000000..bfccbe41 --- /dev/null +++ b/test/test_pts_v2_payments_captures_post201_response__links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_captures_post201_response__links import PtsV2PaymentsCapturesPost201ResponseLinks + + +class TestPtsV2PaymentsCapturesPost201ResponseLinks(unittest.TestCase): + """ PtsV2PaymentsCapturesPost201ResponseLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsCapturesPost201ResponseLinks(self): + """ + Test PtsV2PaymentsCapturesPost201ResponseLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_captures_post201_response__links.PtsV2PaymentsCapturesPost201ResponseLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_captures_post201_response_order_information.py b/test/test_pts_v2_payments_captures_post201_response_order_information.py new file mode 100644 index 00000000..97a6bf82 --- /dev/null +++ b/test/test_pts_v2_payments_captures_post201_response_order_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_captures_post201_response_order_information import PtsV2PaymentsCapturesPost201ResponseOrderInformation + + +class TestPtsV2PaymentsCapturesPost201ResponseOrderInformation(unittest.TestCase): + """ PtsV2PaymentsCapturesPost201ResponseOrderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsCapturesPost201ResponseOrderInformation(self): + """ + Test PtsV2PaymentsCapturesPost201ResponseOrderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_captures_post201_response_order_information.PtsV2PaymentsCapturesPost201ResponseOrderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_captures_post201_response_order_information_amount_details.py b/test/test_pts_v2_payments_captures_post201_response_order_information_amount_details.py new file mode 100644 index 00000000..8325aa0a --- /dev/null +++ b/test/test_pts_v2_payments_captures_post201_response_order_information_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_captures_post201_response_order_information_amount_details import PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails + + +class TestPtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails(unittest.TestCase): + """ PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails(self): + """ + Test PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_captures_post201_response_order_information_amount_details.PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_captures_post201_response_processor_information.py b/test/test_pts_v2_payments_captures_post201_response_processor_information.py new file mode 100644 index 00000000..333386e2 --- /dev/null +++ b/test/test_pts_v2_payments_captures_post201_response_processor_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_captures_post201_response_processor_information import PtsV2PaymentsCapturesPost201ResponseProcessorInformation + + +class TestPtsV2PaymentsCapturesPost201ResponseProcessorInformation(unittest.TestCase): + """ PtsV2PaymentsCapturesPost201ResponseProcessorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsCapturesPost201ResponseProcessorInformation(self): + """ + Test PtsV2PaymentsCapturesPost201ResponseProcessorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_captures_post201_response_processor_information.PtsV2PaymentsCapturesPost201ResponseProcessorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_captures_post400_response.py b/test/test_pts_v2_payments_captures_post400_response.py new file mode 100644 index 00000000..61ea0f31 --- /dev/null +++ b/test/test_pts_v2_payments_captures_post400_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_captures_post400_response import PtsV2PaymentsCapturesPost400Response + + +class TestPtsV2PaymentsCapturesPost400Response(unittest.TestCase): + """ PtsV2PaymentsCapturesPost400Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsCapturesPost400Response(self): + """ + Test PtsV2PaymentsCapturesPost400Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_captures_post400_response.PtsV2PaymentsCapturesPost400Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response.py b/test/test_pts_v2_payments_post201_response.py new file mode 100644 index 00000000..5fdeeb90 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response import PtsV2PaymentsPost201Response + + +class TestPtsV2PaymentsPost201Response(unittest.TestCase): + """ PtsV2PaymentsPost201Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201Response(self): + """ + Test PtsV2PaymentsPost201Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response.PtsV2PaymentsPost201Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response__links.py b/test/test_pts_v2_payments_post201_response__links.py new file mode 100644 index 00000000..f1f3bd26 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response__links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response__links import PtsV2PaymentsPost201ResponseLinks + + +class TestPtsV2PaymentsPost201ResponseLinks(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseLinks(self): + """ + Test PtsV2PaymentsPost201ResponseLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response__links.PtsV2PaymentsPost201ResponseLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response__links_self.py b/test/test_pts_v2_payments_post201_response__links_self.py new file mode 100644 index 00000000..e1e36333 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response__links_self.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response__links_self import PtsV2PaymentsPost201ResponseLinksSelf + + +class TestPtsV2PaymentsPost201ResponseLinksSelf(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseLinksSelf unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseLinksSelf(self): + """ + Test PtsV2PaymentsPost201ResponseLinksSelf + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response__links_self.PtsV2PaymentsPost201ResponseLinksSelf() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_client_reference_information.py b/test/test_pts_v2_payments_post201_response_client_reference_information.py new file mode 100644 index 00000000..b113ccb4 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_client_reference_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_client_reference_information import PtsV2PaymentsPost201ResponseClientReferenceInformation + + +class TestPtsV2PaymentsPost201ResponseClientReferenceInformation(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseClientReferenceInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseClientReferenceInformation(self): + """ + Test PtsV2PaymentsPost201ResponseClientReferenceInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_client_reference_information.PtsV2PaymentsPost201ResponseClientReferenceInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_error_information.py b/test/test_pts_v2_payments_post201_response_error_information.py new file mode 100644 index 00000000..d45f981a --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_error_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_error_information import PtsV2PaymentsPost201ResponseErrorInformation + + +class TestPtsV2PaymentsPost201ResponseErrorInformation(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseErrorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseErrorInformation(self): + """ + Test PtsV2PaymentsPost201ResponseErrorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_error_information.PtsV2PaymentsPost201ResponseErrorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_error_information_details.py b/test/test_pts_v2_payments_post201_response_error_information_details.py new file mode 100644 index 00000000..04b1b6aa --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_error_information_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_error_information_details import PtsV2PaymentsPost201ResponseErrorInformationDetails + + +class TestPtsV2PaymentsPost201ResponseErrorInformationDetails(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseErrorInformationDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseErrorInformationDetails(self): + """ + Test PtsV2PaymentsPost201ResponseErrorInformationDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_error_information_details.PtsV2PaymentsPost201ResponseErrorInformationDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_order_information.py b/test/test_pts_v2_payments_post201_response_order_information.py new file mode 100644 index 00000000..690da563 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_order_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_order_information import PtsV2PaymentsPost201ResponseOrderInformation + + +class TestPtsV2PaymentsPost201ResponseOrderInformation(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseOrderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseOrderInformation(self): + """ + Test PtsV2PaymentsPost201ResponseOrderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_order_information.PtsV2PaymentsPost201ResponseOrderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_order_information_amount_details.py b/test/test_pts_v2_payments_post201_response_order_information_amount_details.py new file mode 100644 index 00000000..4d3be0d9 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_order_information_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_order_information_amount_details import PtsV2PaymentsPost201ResponseOrderInformationAmountDetails + + +class TestPtsV2PaymentsPost201ResponseOrderInformationAmountDetails(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseOrderInformationAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseOrderInformationAmountDetails(self): + """ + Test PtsV2PaymentsPost201ResponseOrderInformationAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_order_information_amount_details.PtsV2PaymentsPost201ResponseOrderInformationAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_order_information_invoice_details.py b/test/test_pts_v2_payments_post201_response_order_information_invoice_details.py new file mode 100644 index 00000000..bd4dcab3 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_order_information_invoice_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_order_information_invoice_details import PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails + + +class TestPtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails(self): + """ + Test PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_order_information_invoice_details.PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_payment_information.py b/test/test_pts_v2_payments_post201_response_payment_information.py new file mode 100644 index 00000000..29c37330 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_payment_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_payment_information import PtsV2PaymentsPost201ResponsePaymentInformation + + +class TestPtsV2PaymentsPost201ResponsePaymentInformation(unittest.TestCase): + """ PtsV2PaymentsPost201ResponsePaymentInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponsePaymentInformation(self): + """ + Test PtsV2PaymentsPost201ResponsePaymentInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_payment_information.PtsV2PaymentsPost201ResponsePaymentInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_payment_information_account_features.py b/test/test_pts_v2_payments_post201_response_payment_information_account_features.py new file mode 100644 index 00000000..26ea03b6 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_payment_information_account_features.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_payment_information_account_features import PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures + + +class TestPtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures(unittest.TestCase): + """ PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures(self): + """ + Test PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_payment_information_account_features.PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_payment_information_card.py b/test/test_pts_v2_payments_post201_response_payment_information_card.py new file mode 100644 index 00000000..44180507 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_payment_information_card.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_payment_information_card import PtsV2PaymentsPost201ResponsePaymentInformationCard + + +class TestPtsV2PaymentsPost201ResponsePaymentInformationCard(unittest.TestCase): + """ PtsV2PaymentsPost201ResponsePaymentInformationCard unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponsePaymentInformationCard(self): + """ + Test PtsV2PaymentsPost201ResponsePaymentInformationCard + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_payment_information_card.PtsV2PaymentsPost201ResponsePaymentInformationCard() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_payment_information_tokenized_card.py b/test/test_pts_v2_payments_post201_response_payment_information_tokenized_card.py new file mode 100644 index 00000000..16804719 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_payment_information_tokenized_card.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_payment_information_tokenized_card import PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard + + +class TestPtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard(unittest.TestCase): + """ PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard(self): + """ + Test PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_payment_information_tokenized_card.PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_point_of_sale_information.py b/test/test_pts_v2_payments_post201_response_point_of_sale_information.py new file mode 100644 index 00000000..9b7153b3 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_point_of_sale_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_point_of_sale_information import PtsV2PaymentsPost201ResponsePointOfSaleInformation + + +class TestPtsV2PaymentsPost201ResponsePointOfSaleInformation(unittest.TestCase): + """ PtsV2PaymentsPost201ResponsePointOfSaleInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponsePointOfSaleInformation(self): + """ + Test PtsV2PaymentsPost201ResponsePointOfSaleInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_point_of_sale_information.PtsV2PaymentsPost201ResponsePointOfSaleInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_point_of_sale_information_emv.py b/test/test_pts_v2_payments_post201_response_point_of_sale_information_emv.py new file mode 100644 index 00000000..e03fc8ec --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_point_of_sale_information_emv.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_point_of_sale_information_emv import PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv + + +class TestPtsV2PaymentsPost201ResponsePointOfSaleInformationEmv(unittest.TestCase): + """ PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponsePointOfSaleInformationEmv(self): + """ + Test PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_point_of_sale_information_emv.PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_processor_information.py b/test/test_pts_v2_payments_post201_response_processor_information.py new file mode 100644 index 00000000..9d77799c --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_processor_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_processor_information import PtsV2PaymentsPost201ResponseProcessorInformation + + +class TestPtsV2PaymentsPost201ResponseProcessorInformation(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseProcessorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseProcessorInformation(self): + """ + Test PtsV2PaymentsPost201ResponseProcessorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_processor_information.PtsV2PaymentsPost201ResponseProcessorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_processor_information_avs.py b/test/test_pts_v2_payments_post201_response_processor_information_avs.py new file mode 100644 index 00000000..ea422ce9 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_processor_information_avs.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_processor_information_avs import PtsV2PaymentsPost201ResponseProcessorInformationAvs + + +class TestPtsV2PaymentsPost201ResponseProcessorInformationAvs(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseProcessorInformationAvs unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseProcessorInformationAvs(self): + """ + Test PtsV2PaymentsPost201ResponseProcessorInformationAvs + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_processor_information_avs.PtsV2PaymentsPost201ResponseProcessorInformationAvs() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_processor_information_card_verification.py b/test/test_pts_v2_payments_post201_response_processor_information_card_verification.py new file mode 100644 index 00000000..5b7aef6f --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_processor_information_card_verification.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_processor_information_card_verification import PtsV2PaymentsPost201ResponseProcessorInformationCardVerification + + +class TestPtsV2PaymentsPost201ResponseProcessorInformationCardVerification(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseProcessorInformationCardVerification unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseProcessorInformationCardVerification(self): + """ + Test PtsV2PaymentsPost201ResponseProcessorInformationCardVerification + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_processor_information_card_verification.PtsV2PaymentsPost201ResponseProcessorInformationCardVerification() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_processor_information_consumer_authentication_response.py b/test/test_pts_v2_payments_post201_response_processor_information_consumer_authentication_response.py new file mode 100644 index 00000000..671f2879 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_processor_information_consumer_authentication_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_processor_information_consumer_authentication_response import PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse + + +class TestPtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse(self): + """ + Test PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_processor_information_consumer_authentication_response.PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_processor_information_customer.py b/test/test_pts_v2_payments_post201_response_processor_information_customer.py new file mode 100644 index 00000000..83c10d39 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_processor_information_customer.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_processor_information_customer import PtsV2PaymentsPost201ResponseProcessorInformationCustomer + + +class TestPtsV2PaymentsPost201ResponseProcessorInformationCustomer(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseProcessorInformationCustomer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseProcessorInformationCustomer(self): + """ + Test PtsV2PaymentsPost201ResponseProcessorInformationCustomer + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_processor_information_customer.PtsV2PaymentsPost201ResponseProcessorInformationCustomer() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_processor_information_electronic_verification_results.py b/test/test_pts_v2_payments_post201_response_processor_information_electronic_verification_results.py new file mode 100644 index 00000000..b92eb81b --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_processor_information_electronic_verification_results.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_processor_information_electronic_verification_results import PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults + + +class TestPtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults(self): + """ + Test PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_processor_information_electronic_verification_results.PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_processor_information_issuer.py b/test/test_pts_v2_payments_post201_response_processor_information_issuer.py new file mode 100644 index 00000000..a627d802 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_processor_information_issuer.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_processor_information_issuer import PtsV2PaymentsPost201ResponseProcessorInformationIssuer + + +class TestPtsV2PaymentsPost201ResponseProcessorInformationIssuer(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseProcessorInformationIssuer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseProcessorInformationIssuer(self): + """ + Test PtsV2PaymentsPost201ResponseProcessorInformationIssuer + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_processor_information_issuer.PtsV2PaymentsPost201ResponseProcessorInformationIssuer() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_processor_information_merchant_advice.py b/test/test_pts_v2_payments_post201_response_processor_information_merchant_advice.py new file mode 100644 index 00000000..ba143cf1 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_processor_information_merchant_advice.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_processor_information_merchant_advice import PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice + + +class TestPtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice(self): + """ + Test PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_processor_information_merchant_advice.PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post400_response.py b/test/test_pts_v2_payments_post400_response.py new file mode 100644 index 00000000..9e68b2f0 --- /dev/null +++ b/test/test_pts_v2_payments_post400_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post400_response import PtsV2PaymentsPost400Response + + +class TestPtsV2PaymentsPost400Response(unittest.TestCase): + """ PtsV2PaymentsPost400Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost400Response(self): + """ + Test PtsV2PaymentsPost400Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post400_response.PtsV2PaymentsPost400Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post502_response.py b/test/test_pts_v2_payments_post502_response.py new file mode 100644 index 00000000..98bd2d59 --- /dev/null +++ b/test/test_pts_v2_payments_post502_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post502_response import PtsV2PaymentsPost502Response + + +class TestPtsV2PaymentsPost502Response(unittest.TestCase): + """ PtsV2PaymentsPost502Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost502Response(self): + """ + Test PtsV2PaymentsPost502Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post502_response.PtsV2PaymentsPost502Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_refund_post201_response.py b/test/test_pts_v2_payments_refund_post201_response.py new file mode 100644 index 00000000..b5f33a8d --- /dev/null +++ b/test/test_pts_v2_payments_refund_post201_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_refund_post201_response import PtsV2PaymentsRefundPost201Response + + +class TestPtsV2PaymentsRefundPost201Response(unittest.TestCase): + """ PtsV2PaymentsRefundPost201Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsRefundPost201Response(self): + """ + Test PtsV2PaymentsRefundPost201Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_refund_post201_response.PtsV2PaymentsRefundPost201Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_refund_post201_response__links.py b/test/test_pts_v2_payments_refund_post201_response__links.py new file mode 100644 index 00000000..9b8540c2 --- /dev/null +++ b/test/test_pts_v2_payments_refund_post201_response__links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_refund_post201_response__links import PtsV2PaymentsRefundPost201ResponseLinks + + +class TestPtsV2PaymentsRefundPost201ResponseLinks(unittest.TestCase): + """ PtsV2PaymentsRefundPost201ResponseLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsRefundPost201ResponseLinks(self): + """ + Test PtsV2PaymentsRefundPost201ResponseLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_refund_post201_response__links.PtsV2PaymentsRefundPost201ResponseLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_refund_post201_response_order_information.py b/test/test_pts_v2_payments_refund_post201_response_order_information.py new file mode 100644 index 00000000..6e2fd100 --- /dev/null +++ b/test/test_pts_v2_payments_refund_post201_response_order_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_refund_post201_response_order_information import PtsV2PaymentsRefundPost201ResponseOrderInformation + + +class TestPtsV2PaymentsRefundPost201ResponseOrderInformation(unittest.TestCase): + """ PtsV2PaymentsRefundPost201ResponseOrderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsRefundPost201ResponseOrderInformation(self): + """ + Test PtsV2PaymentsRefundPost201ResponseOrderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_refund_post201_response_order_information.PtsV2PaymentsRefundPost201ResponseOrderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_refund_post201_response_processor_information.py b/test/test_pts_v2_payments_refund_post201_response_processor_information.py new file mode 100644 index 00000000..373e57df --- /dev/null +++ b/test/test_pts_v2_payments_refund_post201_response_processor_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_refund_post201_response_processor_information import PtsV2PaymentsRefundPost201ResponseProcessorInformation + + +class TestPtsV2PaymentsRefundPost201ResponseProcessorInformation(unittest.TestCase): + """ PtsV2PaymentsRefundPost201ResponseProcessorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsRefundPost201ResponseProcessorInformation(self): + """ + Test PtsV2PaymentsRefundPost201ResponseProcessorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_refund_post201_response_processor_information.PtsV2PaymentsRefundPost201ResponseProcessorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_refund_post201_response_refund_amount_details.py b/test/test_pts_v2_payments_refund_post201_response_refund_amount_details.py new file mode 100644 index 00000000..9934417a --- /dev/null +++ b/test/test_pts_v2_payments_refund_post201_response_refund_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_refund_post201_response_refund_amount_details import PtsV2PaymentsRefundPost201ResponseRefundAmountDetails + + +class TestPtsV2PaymentsRefundPost201ResponseRefundAmountDetails(unittest.TestCase): + """ PtsV2PaymentsRefundPost201ResponseRefundAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsRefundPost201ResponseRefundAmountDetails(self): + """ + Test PtsV2PaymentsRefundPost201ResponseRefundAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_refund_post201_response_refund_amount_details.PtsV2PaymentsRefundPost201ResponseRefundAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_refund_post400_response.py b/test/test_pts_v2_payments_refund_post400_response.py new file mode 100644 index 00000000..f7debc0f --- /dev/null +++ b/test/test_pts_v2_payments_refund_post400_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_refund_post400_response import PtsV2PaymentsRefundPost400Response + + +class TestPtsV2PaymentsRefundPost400Response(unittest.TestCase): + """ PtsV2PaymentsRefundPost400Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsRefundPost400Response(self): + """ + Test PtsV2PaymentsRefundPost400Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_refund_post400_response.PtsV2PaymentsRefundPost400Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_reversals_post201_response.py b/test/test_pts_v2_payments_reversals_post201_response.py new file mode 100644 index 00000000..7dd5c80d --- /dev/null +++ b/test/test_pts_v2_payments_reversals_post201_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_reversals_post201_response import PtsV2PaymentsReversalsPost201Response + + +class TestPtsV2PaymentsReversalsPost201Response(unittest.TestCase): + """ PtsV2PaymentsReversalsPost201Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsReversalsPost201Response(self): + """ + Test PtsV2PaymentsReversalsPost201Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_reversals_post201_response.PtsV2PaymentsReversalsPost201Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_reversals_post201_response__links.py b/test/test_pts_v2_payments_reversals_post201_response__links.py new file mode 100644 index 00000000..adc67064 --- /dev/null +++ b/test/test_pts_v2_payments_reversals_post201_response__links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_reversals_post201_response__links import PtsV2PaymentsReversalsPost201ResponseLinks + + +class TestPtsV2PaymentsReversalsPost201ResponseLinks(unittest.TestCase): + """ PtsV2PaymentsReversalsPost201ResponseLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsReversalsPost201ResponseLinks(self): + """ + Test PtsV2PaymentsReversalsPost201ResponseLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_reversals_post201_response__links.PtsV2PaymentsReversalsPost201ResponseLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_reversals_post201_response_authorization_information.py b/test/test_pts_v2_payments_reversals_post201_response_authorization_information.py new file mode 100644 index 00000000..23ece724 --- /dev/null +++ b/test/test_pts_v2_payments_reversals_post201_response_authorization_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_reversals_post201_response_authorization_information import PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation + + +class TestPtsV2PaymentsReversalsPost201ResponseAuthorizationInformation(unittest.TestCase): + """ PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsReversalsPost201ResponseAuthorizationInformation(self): + """ + Test PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_reversals_post201_response_authorization_information.PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_reversals_post201_response_processor_information.py b/test/test_pts_v2_payments_reversals_post201_response_processor_information.py new file mode 100644 index 00000000..ad8fa3f8 --- /dev/null +++ b/test/test_pts_v2_payments_reversals_post201_response_processor_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_reversals_post201_response_processor_information import PtsV2PaymentsReversalsPost201ResponseProcessorInformation + + +class TestPtsV2PaymentsReversalsPost201ResponseProcessorInformation(unittest.TestCase): + """ PtsV2PaymentsReversalsPost201ResponseProcessorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsReversalsPost201ResponseProcessorInformation(self): + """ + Test PtsV2PaymentsReversalsPost201ResponseProcessorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_reversals_post201_response_processor_information.PtsV2PaymentsReversalsPost201ResponseProcessorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_reversals_post201_response_reversal_amount_details.py b/test/test_pts_v2_payments_reversals_post201_response_reversal_amount_details.py new file mode 100644 index 00000000..2e4730c2 --- /dev/null +++ b/test/test_pts_v2_payments_reversals_post201_response_reversal_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_reversals_post201_response_reversal_amount_details import PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails + + +class TestPtsV2PaymentsReversalsPost201ResponseReversalAmountDetails(unittest.TestCase): + """ PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsReversalsPost201ResponseReversalAmountDetails(self): + """ + Test PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_reversals_post201_response_reversal_amount_details.PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_reversals_post400_response.py b/test/test_pts_v2_payments_reversals_post400_response.py new file mode 100644 index 00000000..e8ccd8bd --- /dev/null +++ b/test/test_pts_v2_payments_reversals_post400_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_reversals_post400_response import PtsV2PaymentsReversalsPost400Response + + +class TestPtsV2PaymentsReversalsPost400Response(unittest.TestCase): + """ PtsV2PaymentsReversalsPost400Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsReversalsPost400Response(self): + """ + Test PtsV2PaymentsReversalsPost400Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_reversals_post400_response.PtsV2PaymentsReversalsPost400Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_voids_post201_response.py b/test/test_pts_v2_payments_voids_post201_response.py new file mode 100644 index 00000000..601de93b --- /dev/null +++ b/test/test_pts_v2_payments_voids_post201_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_voids_post201_response import PtsV2PaymentsVoidsPost201Response + + +class TestPtsV2PaymentsVoidsPost201Response(unittest.TestCase): + """ PtsV2PaymentsVoidsPost201Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsVoidsPost201Response(self): + """ + Test PtsV2PaymentsVoidsPost201Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_voids_post201_response.PtsV2PaymentsVoidsPost201Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_voids_post201_response_void_amount_details.py b/test/test_pts_v2_payments_voids_post201_response_void_amount_details.py new file mode 100644 index 00000000..0c1eaaf3 --- /dev/null +++ b/test/test_pts_v2_payments_voids_post201_response_void_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_voids_post201_response_void_amount_details import PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails + + +class TestPtsV2PaymentsVoidsPost201ResponseVoidAmountDetails(unittest.TestCase): + """ PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsVoidsPost201ResponseVoidAmountDetails(self): + """ + Test PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_voids_post201_response_void_amount_details.PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_voids_post400_response.py b/test/test_pts_v2_payments_voids_post400_response.py new file mode 100644 index 00000000..0b60270c --- /dev/null +++ b/test/test_pts_v2_payments_voids_post400_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_voids_post400_response import PtsV2PaymentsVoidsPost400Response + + +class TestPtsV2PaymentsVoidsPost400Response(unittest.TestCase): + """ PtsV2PaymentsVoidsPost400Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsVoidsPost400Response(self): + """ + Test PtsV2PaymentsVoidsPost400Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_voids_post400_response.PtsV2PaymentsVoidsPost400Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payouts_post400_response.py b/test/test_pts_v2_payouts_post400_response.py new file mode 100644 index 00000000..a46d96a0 --- /dev/null +++ b/test/test_pts_v2_payouts_post400_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payouts_post400_response import PtsV2PayoutsPost400Response + + +class TestPtsV2PayoutsPost400Response(unittest.TestCase): + """ PtsV2PayoutsPost400Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PayoutsPost400Response(self): + """ + Test PtsV2PayoutsPost400Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payouts_post400_response.PtsV2PayoutsPost400Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payouts_post_response.py b/test/test_pts_v2_payouts_post_response.py new file mode 100644 index 00000000..e6194f99 --- /dev/null +++ b/test/test_pts_v2_payouts_post_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payouts_post_response import PtsV2PayoutsPostResponse + + +class TestPtsV2PayoutsPostResponse(unittest.TestCase): + """ PtsV2PayoutsPostResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PayoutsPostResponse(self): + """ + Test PtsV2PayoutsPostResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payouts_post_response.PtsV2PayoutsPostResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2credits_point_of_sale_information.py b/test/test_ptsv2credits_point_of_sale_information.py new file mode 100644 index 00000000..c71c052b --- /dev/null +++ b/test/test_ptsv2credits_point_of_sale_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2credits_point_of_sale_information import Ptsv2creditsPointOfSaleInformation + + +class TestPtsv2creditsPointOfSaleInformation(unittest.TestCase): + """ Ptsv2creditsPointOfSaleInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2creditsPointOfSaleInformation(self): + """ + Test Ptsv2creditsPointOfSaleInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2credits_point_of_sale_information.Ptsv2creditsPointOfSaleInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2credits_point_of_sale_information_emv.py b/test/test_ptsv2credits_point_of_sale_information_emv.py new file mode 100644 index 00000000..b1e14d22 --- /dev/null +++ b/test/test_ptsv2credits_point_of_sale_information_emv.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2credits_point_of_sale_information_emv import Ptsv2creditsPointOfSaleInformationEmv + + +class TestPtsv2creditsPointOfSaleInformationEmv(unittest.TestCase): + """ Ptsv2creditsPointOfSaleInformationEmv unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2creditsPointOfSaleInformationEmv(self): + """ + Test Ptsv2creditsPointOfSaleInformationEmv + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2credits_point_of_sale_information_emv.Ptsv2creditsPointOfSaleInformationEmv() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2credits_processing_information.py b/test/test_ptsv2credits_processing_information.py new file mode 100644 index 00000000..7fdc9a1a --- /dev/null +++ b/test/test_ptsv2credits_processing_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2credits_processing_information import Ptsv2creditsProcessingInformation + + +class TestPtsv2creditsProcessingInformation(unittest.TestCase): + """ Ptsv2creditsProcessingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2creditsProcessingInformation(self): + """ + Test Ptsv2creditsProcessingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2credits_processing_information.Ptsv2creditsProcessingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_aggregator_information.py b/test/test_ptsv2payments_aggregator_information.py new file mode 100644 index 00000000..8f226a8f --- /dev/null +++ b/test/test_ptsv2payments_aggregator_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_aggregator_information import Ptsv2paymentsAggregatorInformation + + +class TestPtsv2paymentsAggregatorInformation(unittest.TestCase): + """ Ptsv2paymentsAggregatorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsAggregatorInformation(self): + """ + Test Ptsv2paymentsAggregatorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_aggregator_information.Ptsv2paymentsAggregatorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_aggregator_information_sub_merchant.py b/test/test_ptsv2payments_aggregator_information_sub_merchant.py new file mode 100644 index 00000000..915bd206 --- /dev/null +++ b/test/test_ptsv2payments_aggregator_information_sub_merchant.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_aggregator_information_sub_merchant import Ptsv2paymentsAggregatorInformationSubMerchant + + +class TestPtsv2paymentsAggregatorInformationSubMerchant(unittest.TestCase): + """ Ptsv2paymentsAggregatorInformationSubMerchant unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsAggregatorInformationSubMerchant(self): + """ + Test Ptsv2paymentsAggregatorInformationSubMerchant + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_aggregator_information_sub_merchant.Ptsv2paymentsAggregatorInformationSubMerchant() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_buyer_information.py b/test/test_ptsv2payments_buyer_information.py new file mode 100644 index 00000000..55cc3a3a --- /dev/null +++ b/test/test_ptsv2payments_buyer_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_buyer_information import Ptsv2paymentsBuyerInformation + + +class TestPtsv2paymentsBuyerInformation(unittest.TestCase): + """ Ptsv2paymentsBuyerInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsBuyerInformation(self): + """ + Test Ptsv2paymentsBuyerInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_buyer_information.Ptsv2paymentsBuyerInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_buyer_information_personal_identification.py b/test/test_ptsv2payments_buyer_information_personal_identification.py new file mode 100644 index 00000000..cc8fc15f --- /dev/null +++ b/test/test_ptsv2payments_buyer_information_personal_identification.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_buyer_information_personal_identification import Ptsv2paymentsBuyerInformationPersonalIdentification + + +class TestPtsv2paymentsBuyerInformationPersonalIdentification(unittest.TestCase): + """ Ptsv2paymentsBuyerInformationPersonalIdentification unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsBuyerInformationPersonalIdentification(self): + """ + Test Ptsv2paymentsBuyerInformationPersonalIdentification + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_buyer_information_personal_identification.Ptsv2paymentsBuyerInformationPersonalIdentification() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_client_reference_information.py b/test/test_ptsv2payments_client_reference_information.py new file mode 100644 index 00000000..a0bc7b89 --- /dev/null +++ b/test/test_ptsv2payments_client_reference_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_client_reference_information import Ptsv2paymentsClientReferenceInformation + + +class TestPtsv2paymentsClientReferenceInformation(unittest.TestCase): + """ Ptsv2paymentsClientReferenceInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsClientReferenceInformation(self): + """ + Test Ptsv2paymentsClientReferenceInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_client_reference_information.Ptsv2paymentsClientReferenceInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_consumer_authentication_information.py b/test/test_ptsv2payments_consumer_authentication_information.py new file mode 100644 index 00000000..e3bce826 --- /dev/null +++ b/test/test_ptsv2payments_consumer_authentication_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_consumer_authentication_information import Ptsv2paymentsConsumerAuthenticationInformation + + +class TestPtsv2paymentsConsumerAuthenticationInformation(unittest.TestCase): + """ Ptsv2paymentsConsumerAuthenticationInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsConsumerAuthenticationInformation(self): + """ + Test Ptsv2paymentsConsumerAuthenticationInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_consumer_authentication_information.Ptsv2paymentsConsumerAuthenticationInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_device_information.py b/test/test_ptsv2payments_device_information.py new file mode 100644 index 00000000..862d61a8 --- /dev/null +++ b/test/test_ptsv2payments_device_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_device_information import Ptsv2paymentsDeviceInformation + + +class TestPtsv2paymentsDeviceInformation(unittest.TestCase): + """ Ptsv2paymentsDeviceInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsDeviceInformation(self): + """ + Test Ptsv2paymentsDeviceInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_device_information.Ptsv2paymentsDeviceInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_merchant_defined_information.py b/test/test_ptsv2payments_merchant_defined_information.py new file mode 100644 index 00000000..982e2780 --- /dev/null +++ b/test/test_ptsv2payments_merchant_defined_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_merchant_defined_information import Ptsv2paymentsMerchantDefinedInformation + + +class TestPtsv2paymentsMerchantDefinedInformation(unittest.TestCase): + """ Ptsv2paymentsMerchantDefinedInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsMerchantDefinedInformation(self): + """ + Test Ptsv2paymentsMerchantDefinedInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_merchant_defined_information.Ptsv2paymentsMerchantDefinedInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_merchant_information.py b/test/test_ptsv2payments_merchant_information.py new file mode 100644 index 00000000..af9dcdab --- /dev/null +++ b/test/test_ptsv2payments_merchant_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_merchant_information import Ptsv2paymentsMerchantInformation + + +class TestPtsv2paymentsMerchantInformation(unittest.TestCase): + """ Ptsv2paymentsMerchantInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsMerchantInformation(self): + """ + Test Ptsv2paymentsMerchantInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_merchant_information.Ptsv2paymentsMerchantInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_merchant_information_merchant_descriptor.py b/test/test_ptsv2payments_merchant_information_merchant_descriptor.py new file mode 100644 index 00000000..88161b13 --- /dev/null +++ b/test/test_ptsv2payments_merchant_information_merchant_descriptor.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_merchant_information_merchant_descriptor import Ptsv2paymentsMerchantInformationMerchantDescriptor + + +class TestPtsv2paymentsMerchantInformationMerchantDescriptor(unittest.TestCase): + """ Ptsv2paymentsMerchantInformationMerchantDescriptor unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsMerchantInformationMerchantDescriptor(self): + """ + Test Ptsv2paymentsMerchantInformationMerchantDescriptor + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_merchant_information_merchant_descriptor.Ptsv2paymentsMerchantInformationMerchantDescriptor() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_options_initiator_merchant_initiated_transaction.py b/test/test_ptsv2payments_options_initiator_merchant_initiated_transaction.py new file mode 100644 index 00000000..5fd9db3f --- /dev/null +++ b/test/test_ptsv2payments_options_initiator_merchant_initiated_transaction.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction import Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + + +class TestPtsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(unittest.TestCase): + """ Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(self): + """ + Test Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction.Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information.py b/test/test_ptsv2payments_order_information.py new file mode 100644 index 00000000..d8323370 --- /dev/null +++ b/test/test_ptsv2payments_order_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information import Ptsv2paymentsOrderInformation + + +class TestPtsv2paymentsOrderInformation(unittest.TestCase): + """ Ptsv2paymentsOrderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformation(self): + """ + Test Ptsv2paymentsOrderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information.Ptsv2paymentsOrderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information_amount_details.py b/test/test_ptsv2payments_order_information_amount_details.py new file mode 100644 index 00000000..e2fc1800 --- /dev/null +++ b/test/test_ptsv2payments_order_information_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information_amount_details import Ptsv2paymentsOrderInformationAmountDetails + + +class TestPtsv2paymentsOrderInformationAmountDetails(unittest.TestCase): + """ Ptsv2paymentsOrderInformationAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformationAmountDetails(self): + """ + Test Ptsv2paymentsOrderInformationAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information_amount_details.Ptsv2paymentsOrderInformationAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information_amount_details_amex_additional_amounts.py b/test/test_ptsv2payments_order_information_amount_details_amex_additional_amounts.py new file mode 100644 index 00000000..e8290c88 --- /dev/null +++ b/test/test_ptsv2payments_order_information_amount_details_amex_additional_amounts.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information_amount_details_amex_additional_amounts import Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts + + +class TestPtsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts(unittest.TestCase): + """ Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts(self): + """ + Test Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information_amount_details_amex_additional_amounts.Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information_amount_details_surcharge.py b/test/test_ptsv2payments_order_information_amount_details_surcharge.py new file mode 100644 index 00000000..b1b0abd1 --- /dev/null +++ b/test/test_ptsv2payments_order_information_amount_details_surcharge.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information_amount_details_surcharge import Ptsv2paymentsOrderInformationAmountDetailsSurcharge + + +class TestPtsv2paymentsOrderInformationAmountDetailsSurcharge(unittest.TestCase): + """ Ptsv2paymentsOrderInformationAmountDetailsSurcharge unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformationAmountDetailsSurcharge(self): + """ + Test Ptsv2paymentsOrderInformationAmountDetailsSurcharge + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information_amount_details_surcharge.Ptsv2paymentsOrderInformationAmountDetailsSurcharge() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information_amount_details_tax_details.py b/test/test_ptsv2payments_order_information_amount_details_tax_details.py new file mode 100644 index 00000000..47e11691 --- /dev/null +++ b/test/test_ptsv2payments_order_information_amount_details_tax_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information_amount_details_tax_details import Ptsv2paymentsOrderInformationAmountDetailsTaxDetails + + +class TestPtsv2paymentsOrderInformationAmountDetailsTaxDetails(unittest.TestCase): + """ Ptsv2paymentsOrderInformationAmountDetailsTaxDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformationAmountDetailsTaxDetails(self): + """ + Test Ptsv2paymentsOrderInformationAmountDetailsTaxDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information_amount_details_tax_details.Ptsv2paymentsOrderInformationAmountDetailsTaxDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information_bill_to.py b/test/test_ptsv2payments_order_information_bill_to.py new file mode 100644 index 00000000..45eb10bf --- /dev/null +++ b/test/test_ptsv2payments_order_information_bill_to.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information_bill_to import Ptsv2paymentsOrderInformationBillTo + + +class TestPtsv2paymentsOrderInformationBillTo(unittest.TestCase): + """ Ptsv2paymentsOrderInformationBillTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformationBillTo(self): + """ + Test Ptsv2paymentsOrderInformationBillTo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information_bill_to.Ptsv2paymentsOrderInformationBillTo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information_invoice_details.py b/test/test_ptsv2payments_order_information_invoice_details.py new file mode 100644 index 00000000..6d1cbb7a --- /dev/null +++ b/test/test_ptsv2payments_order_information_invoice_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information_invoice_details import Ptsv2paymentsOrderInformationInvoiceDetails + + +class TestPtsv2paymentsOrderInformationInvoiceDetails(unittest.TestCase): + """ Ptsv2paymentsOrderInformationInvoiceDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformationInvoiceDetails(self): + """ + Test Ptsv2paymentsOrderInformationInvoiceDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information_invoice_details.Ptsv2paymentsOrderInformationInvoiceDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information_invoice_details_transaction_advice_addendum.py b/test/test_ptsv2payments_order_information_invoice_details_transaction_advice_addendum.py new file mode 100644 index 00000000..87db9525 --- /dev/null +++ b/test/test_ptsv2payments_order_information_invoice_details_transaction_advice_addendum.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information_invoice_details_transaction_advice_addendum import Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum + + +class TestPtsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum(unittest.TestCase): + """ Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum(self): + """ + Test Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information_invoice_details_transaction_advice_addendum.Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information_line_items.py b/test/test_ptsv2payments_order_information_line_items.py new file mode 100644 index 00000000..e3c28aba --- /dev/null +++ b/test/test_ptsv2payments_order_information_line_items.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information_line_items import Ptsv2paymentsOrderInformationLineItems + + +class TestPtsv2paymentsOrderInformationLineItems(unittest.TestCase): + """ Ptsv2paymentsOrderInformationLineItems unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformationLineItems(self): + """ + Test Ptsv2paymentsOrderInformationLineItems + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information_line_items.Ptsv2paymentsOrderInformationLineItems() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information_ship_to.py b/test/test_ptsv2payments_order_information_ship_to.py new file mode 100644 index 00000000..1391d891 --- /dev/null +++ b/test/test_ptsv2payments_order_information_ship_to.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information_ship_to import Ptsv2paymentsOrderInformationShipTo + + +class TestPtsv2paymentsOrderInformationShipTo(unittest.TestCase): + """ Ptsv2paymentsOrderInformationShipTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformationShipTo(self): + """ + Test Ptsv2paymentsOrderInformationShipTo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information_ship_to.Ptsv2paymentsOrderInformationShipTo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_order_information_shipping_details.py b/test/test_ptsv2payments_order_information_shipping_details.py new file mode 100644 index 00000000..4f002fd1 --- /dev/null +++ b/test/test_ptsv2payments_order_information_shipping_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_order_information_shipping_details import Ptsv2paymentsOrderInformationShippingDetails + + +class TestPtsv2paymentsOrderInformationShippingDetails(unittest.TestCase): + """ Ptsv2paymentsOrderInformationShippingDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsOrderInformationShippingDetails(self): + """ + Test Ptsv2paymentsOrderInformationShippingDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_order_information_shipping_details.Ptsv2paymentsOrderInformationShippingDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_payment_information.py b/test/test_ptsv2payments_payment_information.py new file mode 100644 index 00000000..f6588806 --- /dev/null +++ b/test/test_ptsv2payments_payment_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_payment_information import Ptsv2paymentsPaymentInformation + + +class TestPtsv2paymentsPaymentInformation(unittest.TestCase): + """ Ptsv2paymentsPaymentInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsPaymentInformation(self): + """ + Test Ptsv2paymentsPaymentInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_payment_information.Ptsv2paymentsPaymentInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_payment_information_card.py b/test/test_ptsv2payments_payment_information_card.py new file mode 100644 index 00000000..44442c8c --- /dev/null +++ b/test/test_ptsv2payments_payment_information_card.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_payment_information_card import Ptsv2paymentsPaymentInformationCard + + +class TestPtsv2paymentsPaymentInformationCard(unittest.TestCase): + """ Ptsv2paymentsPaymentInformationCard unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsPaymentInformationCard(self): + """ + Test Ptsv2paymentsPaymentInformationCard + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_payment_information_card.Ptsv2paymentsPaymentInformationCard() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_payment_information_customer.py b/test/test_ptsv2payments_payment_information_customer.py new file mode 100644 index 00000000..3d54b18f --- /dev/null +++ b/test/test_ptsv2payments_payment_information_customer.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_payment_information_customer import Ptsv2paymentsPaymentInformationCustomer + + +class TestPtsv2paymentsPaymentInformationCustomer(unittest.TestCase): + """ Ptsv2paymentsPaymentInformationCustomer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsPaymentInformationCustomer(self): + """ + Test Ptsv2paymentsPaymentInformationCustomer + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_payment_information_customer.Ptsv2paymentsPaymentInformationCustomer() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_payment_information_fluid_data.py b/test/test_ptsv2payments_payment_information_fluid_data.py new file mode 100644 index 00000000..143854c0 --- /dev/null +++ b/test/test_ptsv2payments_payment_information_fluid_data.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_payment_information_fluid_data import Ptsv2paymentsPaymentInformationFluidData + + +class TestPtsv2paymentsPaymentInformationFluidData(unittest.TestCase): + """ Ptsv2paymentsPaymentInformationFluidData unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsPaymentInformationFluidData(self): + """ + Test Ptsv2paymentsPaymentInformationFluidData + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_payment_information_fluid_data.Ptsv2paymentsPaymentInformationFluidData() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_payment_information_tokenized_card.py b/test/test_ptsv2payments_payment_information_tokenized_card.py new file mode 100644 index 00000000..73892836 --- /dev/null +++ b/test/test_ptsv2payments_payment_information_tokenized_card.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_payment_information_tokenized_card import Ptsv2paymentsPaymentInformationTokenizedCard + + +class TestPtsv2paymentsPaymentInformationTokenizedCard(unittest.TestCase): + """ Ptsv2paymentsPaymentInformationTokenizedCard unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsPaymentInformationTokenizedCard(self): + """ + Test Ptsv2paymentsPaymentInformationTokenizedCard + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_payment_information_tokenized_card.Ptsv2paymentsPaymentInformationTokenizedCard() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_point_of_sale_information.py b/test/test_ptsv2payments_point_of_sale_information.py new file mode 100644 index 00000000..c3a58517 --- /dev/null +++ b/test/test_ptsv2payments_point_of_sale_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_point_of_sale_information import Ptsv2paymentsPointOfSaleInformation + + +class TestPtsv2paymentsPointOfSaleInformation(unittest.TestCase): + """ Ptsv2paymentsPointOfSaleInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsPointOfSaleInformation(self): + """ + Test Ptsv2paymentsPointOfSaleInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_point_of_sale_information.Ptsv2paymentsPointOfSaleInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_point_of_sale_information_emv.py b/test/test_ptsv2payments_point_of_sale_information_emv.py new file mode 100644 index 00000000..b90e6c2f --- /dev/null +++ b/test/test_ptsv2payments_point_of_sale_information_emv.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_point_of_sale_information_emv import Ptsv2paymentsPointOfSaleInformationEmv + + +class TestPtsv2paymentsPointOfSaleInformationEmv(unittest.TestCase): + """ Ptsv2paymentsPointOfSaleInformationEmv unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsPointOfSaleInformationEmv(self): + """ + Test Ptsv2paymentsPointOfSaleInformationEmv + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_point_of_sale_information_emv.Ptsv2paymentsPointOfSaleInformationEmv() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_processing_information.py b/test/test_ptsv2payments_processing_information.py new file mode 100644 index 00000000..36a3e617 --- /dev/null +++ b/test/test_ptsv2payments_processing_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_processing_information import Ptsv2paymentsProcessingInformation + + +class TestPtsv2paymentsProcessingInformation(unittest.TestCase): + """ Ptsv2paymentsProcessingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsProcessingInformation(self): + """ + Test Ptsv2paymentsProcessingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_processing_information.Ptsv2paymentsProcessingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_processing_information_authorization_options.py b/test/test_ptsv2payments_processing_information_authorization_options.py new file mode 100644 index 00000000..773132d2 --- /dev/null +++ b/test/test_ptsv2payments_processing_information_authorization_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_processing_information_authorization_options import Ptsv2paymentsProcessingInformationAuthorizationOptions + + +class TestPtsv2paymentsProcessingInformationAuthorizationOptions(unittest.TestCase): + """ Ptsv2paymentsProcessingInformationAuthorizationOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsProcessingInformationAuthorizationOptions(self): + """ + Test Ptsv2paymentsProcessingInformationAuthorizationOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_processing_information_authorization_options.Ptsv2paymentsProcessingInformationAuthorizationOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_processing_information_authorization_options_initiator.py b/test/test_ptsv2payments_processing_information_authorization_options_initiator.py new file mode 100644 index 00000000..23403965 --- /dev/null +++ b/test/test_ptsv2payments_processing_information_authorization_options_initiator.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_processing_information_authorization_options_initiator import Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator + + +class TestPtsv2paymentsProcessingInformationAuthorizationOptionsInitiator(unittest.TestCase): + """ Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsProcessingInformationAuthorizationOptionsInitiator(self): + """ + Test Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_processing_information_authorization_options_initiator.Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_processing_information_capture_options.py b/test/test_ptsv2payments_processing_information_capture_options.py new file mode 100644 index 00000000..109a42d2 --- /dev/null +++ b/test/test_ptsv2payments_processing_information_capture_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_processing_information_capture_options import Ptsv2paymentsProcessingInformationCaptureOptions + + +class TestPtsv2paymentsProcessingInformationCaptureOptions(unittest.TestCase): + """ Ptsv2paymentsProcessingInformationCaptureOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsProcessingInformationCaptureOptions(self): + """ + Test Ptsv2paymentsProcessingInformationCaptureOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_processing_information_capture_options.Ptsv2paymentsProcessingInformationCaptureOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_processing_information_issuer.py b/test/test_ptsv2payments_processing_information_issuer.py new file mode 100644 index 00000000..cc23f18c --- /dev/null +++ b/test/test_ptsv2payments_processing_information_issuer.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_processing_information_issuer import Ptsv2paymentsProcessingInformationIssuer + + +class TestPtsv2paymentsProcessingInformationIssuer(unittest.TestCase): + """ Ptsv2paymentsProcessingInformationIssuer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsProcessingInformationIssuer(self): + """ + Test Ptsv2paymentsProcessingInformationIssuer + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_processing_information_issuer.Ptsv2paymentsProcessingInformationIssuer() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_processing_information_recurring_options.py b/test/test_ptsv2payments_processing_information_recurring_options.py new file mode 100644 index 00000000..a489ff83 --- /dev/null +++ b/test/test_ptsv2payments_processing_information_recurring_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_processing_information_recurring_options import Ptsv2paymentsProcessingInformationRecurringOptions + + +class TestPtsv2paymentsProcessingInformationRecurringOptions(unittest.TestCase): + """ Ptsv2paymentsProcessingInformationRecurringOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsProcessingInformationRecurringOptions(self): + """ + Test Ptsv2paymentsProcessingInformationRecurringOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_processing_information_recurring_options.Ptsv2paymentsProcessingInformationRecurringOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payments_recipient_information.py b/test/test_ptsv2payments_recipient_information.py new file mode 100644 index 00000000..c2e93243 --- /dev/null +++ b/test/test_ptsv2payments_recipient_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payments_recipient_information import Ptsv2paymentsRecipientInformation + + +class TestPtsv2paymentsRecipientInformation(unittest.TestCase): + """ Ptsv2paymentsRecipientInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsRecipientInformation(self): + """ + Test Ptsv2paymentsRecipientInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payments_recipient_information.Ptsv2paymentsRecipientInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_aggregator_information.py b/test/test_ptsv2paymentsidcaptures_aggregator_information.py new file mode 100644 index 00000000..0b6b775c --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_aggregator_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_aggregator_information import Ptsv2paymentsidcapturesAggregatorInformation + + +class TestPtsv2paymentsidcapturesAggregatorInformation(unittest.TestCase): + """ Ptsv2paymentsidcapturesAggregatorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesAggregatorInformation(self): + """ + Test Ptsv2paymentsidcapturesAggregatorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_aggregator_information.Ptsv2paymentsidcapturesAggregatorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_aggregator_information_sub_merchant.py b/test/test_ptsv2paymentsidcaptures_aggregator_information_sub_merchant.py new file mode 100644 index 00000000..a84699ca --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_aggregator_information_sub_merchant.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_aggregator_information_sub_merchant import Ptsv2paymentsidcapturesAggregatorInformationSubMerchant + + +class TestPtsv2paymentsidcapturesAggregatorInformationSubMerchant(unittest.TestCase): + """ Ptsv2paymentsidcapturesAggregatorInformationSubMerchant unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesAggregatorInformationSubMerchant(self): + """ + Test Ptsv2paymentsidcapturesAggregatorInformationSubMerchant + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_aggregator_information_sub_merchant.Ptsv2paymentsidcapturesAggregatorInformationSubMerchant() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_buyer_information.py b/test/test_ptsv2paymentsidcaptures_buyer_information.py new file mode 100644 index 00000000..7aea12ea --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_buyer_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_buyer_information import Ptsv2paymentsidcapturesBuyerInformation + + +class TestPtsv2paymentsidcapturesBuyerInformation(unittest.TestCase): + """ Ptsv2paymentsidcapturesBuyerInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesBuyerInformation(self): + """ + Test Ptsv2paymentsidcapturesBuyerInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_buyer_information.Ptsv2paymentsidcapturesBuyerInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_merchant_information.py b/test/test_ptsv2paymentsidcaptures_merchant_information.py new file mode 100644 index 00000000..15b58674 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_merchant_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_merchant_information import Ptsv2paymentsidcapturesMerchantInformation + + +class TestPtsv2paymentsidcapturesMerchantInformation(unittest.TestCase): + """ Ptsv2paymentsidcapturesMerchantInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesMerchantInformation(self): + """ + Test Ptsv2paymentsidcapturesMerchantInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_merchant_information.Ptsv2paymentsidcapturesMerchantInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_order_information.py b/test/test_ptsv2paymentsidcaptures_order_information.py new file mode 100644 index 00000000..9b4bd9d4 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_order_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_order_information import Ptsv2paymentsidcapturesOrderInformation + + +class TestPtsv2paymentsidcapturesOrderInformation(unittest.TestCase): + """ Ptsv2paymentsidcapturesOrderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesOrderInformation(self): + """ + Test Ptsv2paymentsidcapturesOrderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_order_information.Ptsv2paymentsidcapturesOrderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_order_information_amount_details.py b/test/test_ptsv2paymentsidcaptures_order_information_amount_details.py new file mode 100644 index 00000000..f6283e55 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_order_information_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_order_information_amount_details import Ptsv2paymentsidcapturesOrderInformationAmountDetails + + +class TestPtsv2paymentsidcapturesOrderInformationAmountDetails(unittest.TestCase): + """ Ptsv2paymentsidcapturesOrderInformationAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesOrderInformationAmountDetails(self): + """ + Test Ptsv2paymentsidcapturesOrderInformationAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_order_information_amount_details.Ptsv2paymentsidcapturesOrderInformationAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_order_information_bill_to.py b/test/test_ptsv2paymentsidcaptures_order_information_bill_to.py new file mode 100644 index 00000000..e4216211 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_order_information_bill_to.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_order_information_bill_to import Ptsv2paymentsidcapturesOrderInformationBillTo + + +class TestPtsv2paymentsidcapturesOrderInformationBillTo(unittest.TestCase): + """ Ptsv2paymentsidcapturesOrderInformationBillTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesOrderInformationBillTo(self): + """ + Test Ptsv2paymentsidcapturesOrderInformationBillTo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_order_information_bill_to.Ptsv2paymentsidcapturesOrderInformationBillTo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_order_information_invoice_details.py b/test/test_ptsv2paymentsidcaptures_order_information_invoice_details.py new file mode 100644 index 00000000..eff16905 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_order_information_invoice_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_order_information_invoice_details import Ptsv2paymentsidcapturesOrderInformationInvoiceDetails + + +class TestPtsv2paymentsidcapturesOrderInformationInvoiceDetails(unittest.TestCase): + """ Ptsv2paymentsidcapturesOrderInformationInvoiceDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesOrderInformationInvoiceDetails(self): + """ + Test Ptsv2paymentsidcapturesOrderInformationInvoiceDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_order_information_invoice_details.Ptsv2paymentsidcapturesOrderInformationInvoiceDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_order_information_ship_to.py b/test/test_ptsv2paymentsidcaptures_order_information_ship_to.py new file mode 100644 index 00000000..467ad304 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_order_information_ship_to.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_order_information_ship_to import Ptsv2paymentsidcapturesOrderInformationShipTo + + +class TestPtsv2paymentsidcapturesOrderInformationShipTo(unittest.TestCase): + """ Ptsv2paymentsidcapturesOrderInformationShipTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesOrderInformationShipTo(self): + """ + Test Ptsv2paymentsidcapturesOrderInformationShipTo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_order_information_ship_to.Ptsv2paymentsidcapturesOrderInformationShipTo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_order_information_shipping_details.py b/test/test_ptsv2paymentsidcaptures_order_information_shipping_details.py new file mode 100644 index 00000000..a6197011 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_order_information_shipping_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_order_information_shipping_details import Ptsv2paymentsidcapturesOrderInformationShippingDetails + + +class TestPtsv2paymentsidcapturesOrderInformationShippingDetails(unittest.TestCase): + """ Ptsv2paymentsidcapturesOrderInformationShippingDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesOrderInformationShippingDetails(self): + """ + Test Ptsv2paymentsidcapturesOrderInformationShippingDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_order_information_shipping_details.Ptsv2paymentsidcapturesOrderInformationShippingDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_payment_information.py b/test/test_ptsv2paymentsidcaptures_payment_information.py new file mode 100644 index 00000000..85ec6740 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_payment_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_payment_information import Ptsv2paymentsidcapturesPaymentInformation + + +class TestPtsv2paymentsidcapturesPaymentInformation(unittest.TestCase): + """ Ptsv2paymentsidcapturesPaymentInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesPaymentInformation(self): + """ + Test Ptsv2paymentsidcapturesPaymentInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_payment_information.Ptsv2paymentsidcapturesPaymentInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_point_of_sale_information.py b/test/test_ptsv2paymentsidcaptures_point_of_sale_information.py new file mode 100644 index 00000000..2584e409 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_point_of_sale_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_point_of_sale_information import Ptsv2paymentsidcapturesPointOfSaleInformation + + +class TestPtsv2paymentsidcapturesPointOfSaleInformation(unittest.TestCase): + """ Ptsv2paymentsidcapturesPointOfSaleInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesPointOfSaleInformation(self): + """ + Test Ptsv2paymentsidcapturesPointOfSaleInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_point_of_sale_information.Ptsv2paymentsidcapturesPointOfSaleInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_point_of_sale_information_emv.py b/test/test_ptsv2paymentsidcaptures_point_of_sale_information_emv.py new file mode 100644 index 00000000..abd30ddb --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_point_of_sale_information_emv.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_point_of_sale_information_emv import Ptsv2paymentsidcapturesPointOfSaleInformationEmv + + +class TestPtsv2paymentsidcapturesPointOfSaleInformationEmv(unittest.TestCase): + """ Ptsv2paymentsidcapturesPointOfSaleInformationEmv unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesPointOfSaleInformationEmv(self): + """ + Test Ptsv2paymentsidcapturesPointOfSaleInformationEmv + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_point_of_sale_information_emv.Ptsv2paymentsidcapturesPointOfSaleInformationEmv() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_processing_information.py b/test/test_ptsv2paymentsidcaptures_processing_information.py new file mode 100644 index 00000000..e9a285f1 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_processing_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_processing_information import Ptsv2paymentsidcapturesProcessingInformation + + +class TestPtsv2paymentsidcapturesProcessingInformation(unittest.TestCase): + """ Ptsv2paymentsidcapturesProcessingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesProcessingInformation(self): + """ + Test Ptsv2paymentsidcapturesProcessingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_processing_information.Ptsv2paymentsidcapturesProcessingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_processing_information_authorization_options.py b/test/test_ptsv2paymentsidcaptures_processing_information_authorization_options.py new file mode 100644 index 00000000..59674227 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_processing_information_authorization_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_processing_information_authorization_options import Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions + + +class TestPtsv2paymentsidcapturesProcessingInformationAuthorizationOptions(unittest.TestCase): + """ Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesProcessingInformationAuthorizationOptions(self): + """ + Test Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_processing_information_authorization_options.Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidcaptures_processing_information_capture_options.py b/test/test_ptsv2paymentsidcaptures_processing_information_capture_options.py new file mode 100644 index 00000000..f9c96127 --- /dev/null +++ b/test/test_ptsv2paymentsidcaptures_processing_information_capture_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidcaptures_processing_information_capture_options import Ptsv2paymentsidcapturesProcessingInformationCaptureOptions + + +class TestPtsv2paymentsidcapturesProcessingInformationCaptureOptions(unittest.TestCase): + """ Ptsv2paymentsidcapturesProcessingInformationCaptureOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidcapturesProcessingInformationCaptureOptions(self): + """ + Test Ptsv2paymentsidcapturesProcessingInformationCaptureOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidcaptures_processing_information_capture_options.Ptsv2paymentsidcapturesProcessingInformationCaptureOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidrefunds_merchant_information.py b/test/test_ptsv2paymentsidrefunds_merchant_information.py new file mode 100644 index 00000000..eca88fd3 --- /dev/null +++ b/test/test_ptsv2paymentsidrefunds_merchant_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidrefunds_merchant_information import Ptsv2paymentsidrefundsMerchantInformation + + +class TestPtsv2paymentsidrefundsMerchantInformation(unittest.TestCase): + """ Ptsv2paymentsidrefundsMerchantInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidrefundsMerchantInformation(self): + """ + Test Ptsv2paymentsidrefundsMerchantInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidrefunds_merchant_information.Ptsv2paymentsidrefundsMerchantInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidrefunds_order_information.py b/test/test_ptsv2paymentsidrefunds_order_information.py new file mode 100644 index 00000000..a2bd2709 --- /dev/null +++ b/test/test_ptsv2paymentsidrefunds_order_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidrefunds_order_information import Ptsv2paymentsidrefundsOrderInformation + + +class TestPtsv2paymentsidrefundsOrderInformation(unittest.TestCase): + """ Ptsv2paymentsidrefundsOrderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidrefundsOrderInformation(self): + """ + Test Ptsv2paymentsidrefundsOrderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidrefunds_order_information.Ptsv2paymentsidrefundsOrderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidrefunds_order_information_line_items.py b/test/test_ptsv2paymentsidrefunds_order_information_line_items.py new file mode 100644 index 00000000..20e2487e --- /dev/null +++ b/test/test_ptsv2paymentsidrefunds_order_information_line_items.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidrefunds_order_information_line_items import Ptsv2paymentsidrefundsOrderInformationLineItems + + +class TestPtsv2paymentsidrefundsOrderInformationLineItems(unittest.TestCase): + """ Ptsv2paymentsidrefundsOrderInformationLineItems unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidrefundsOrderInformationLineItems(self): + """ + Test Ptsv2paymentsidrefundsOrderInformationLineItems + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidrefunds_order_information_line_items.Ptsv2paymentsidrefundsOrderInformationLineItems() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidrefunds_payment_information.py b/test/test_ptsv2paymentsidrefunds_payment_information.py new file mode 100644 index 00000000..c2c12fcc --- /dev/null +++ b/test/test_ptsv2paymentsidrefunds_payment_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidrefunds_payment_information import Ptsv2paymentsidrefundsPaymentInformation + + +class TestPtsv2paymentsidrefundsPaymentInformation(unittest.TestCase): + """ Ptsv2paymentsidrefundsPaymentInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidrefundsPaymentInformation(self): + """ + Test Ptsv2paymentsidrefundsPaymentInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidrefunds_payment_information.Ptsv2paymentsidrefundsPaymentInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidrefunds_payment_information_card.py b/test/test_ptsv2paymentsidrefunds_payment_information_card.py new file mode 100644 index 00000000..2ec78a7a --- /dev/null +++ b/test/test_ptsv2paymentsidrefunds_payment_information_card.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidrefunds_payment_information_card import Ptsv2paymentsidrefundsPaymentInformationCard + + +class TestPtsv2paymentsidrefundsPaymentInformationCard(unittest.TestCase): + """ Ptsv2paymentsidrefundsPaymentInformationCard unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidrefundsPaymentInformationCard(self): + """ + Test Ptsv2paymentsidrefundsPaymentInformationCard + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidrefunds_payment_information_card.Ptsv2paymentsidrefundsPaymentInformationCard() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidrefunds_point_of_sale_information.py b/test/test_ptsv2paymentsidrefunds_point_of_sale_information.py new file mode 100644 index 00000000..2211298d --- /dev/null +++ b/test/test_ptsv2paymentsidrefunds_point_of_sale_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidrefunds_point_of_sale_information import Ptsv2paymentsidrefundsPointOfSaleInformation + + +class TestPtsv2paymentsidrefundsPointOfSaleInformation(unittest.TestCase): + """ Ptsv2paymentsidrefundsPointOfSaleInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidrefundsPointOfSaleInformation(self): + """ + Test Ptsv2paymentsidrefundsPointOfSaleInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidrefunds_point_of_sale_information.Ptsv2paymentsidrefundsPointOfSaleInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidrefunds_processing_information.py b/test/test_ptsv2paymentsidrefunds_processing_information.py new file mode 100644 index 00000000..4670a373 --- /dev/null +++ b/test/test_ptsv2paymentsidrefunds_processing_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidrefunds_processing_information import Ptsv2paymentsidrefundsProcessingInformation + + +class TestPtsv2paymentsidrefundsProcessingInformation(unittest.TestCase): + """ Ptsv2paymentsidrefundsProcessingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidrefundsProcessingInformation(self): + """ + Test Ptsv2paymentsidrefundsProcessingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidrefunds_processing_information.Ptsv2paymentsidrefundsProcessingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidrefunds_processing_information_recurring_options.py b/test/test_ptsv2paymentsidrefunds_processing_information_recurring_options.py new file mode 100644 index 00000000..ac8d68fd --- /dev/null +++ b/test/test_ptsv2paymentsidrefunds_processing_information_recurring_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidrefunds_processing_information_recurring_options import Ptsv2paymentsidrefundsProcessingInformationRecurringOptions + + +class TestPtsv2paymentsidrefundsProcessingInformationRecurringOptions(unittest.TestCase): + """ Ptsv2paymentsidrefundsProcessingInformationRecurringOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidrefundsProcessingInformationRecurringOptions(self): + """ + Test Ptsv2paymentsidrefundsProcessingInformationRecurringOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidrefunds_processing_information_recurring_options.Ptsv2paymentsidrefundsProcessingInformationRecurringOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidreversals_client_reference_information.py b/test/test_ptsv2paymentsidreversals_client_reference_information.py new file mode 100644 index 00000000..172e453e --- /dev/null +++ b/test/test_ptsv2paymentsidreversals_client_reference_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidreversals_client_reference_information import Ptsv2paymentsidreversalsClientReferenceInformation + + +class TestPtsv2paymentsidreversalsClientReferenceInformation(unittest.TestCase): + """ Ptsv2paymentsidreversalsClientReferenceInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidreversalsClientReferenceInformation(self): + """ + Test Ptsv2paymentsidreversalsClientReferenceInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidreversals_client_reference_information.Ptsv2paymentsidreversalsClientReferenceInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidreversals_order_information.py b/test/test_ptsv2paymentsidreversals_order_information.py new file mode 100644 index 00000000..4392d51a --- /dev/null +++ b/test/test_ptsv2paymentsidreversals_order_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidreversals_order_information import Ptsv2paymentsidreversalsOrderInformation + + +class TestPtsv2paymentsidreversalsOrderInformation(unittest.TestCase): + """ Ptsv2paymentsidreversalsOrderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidreversalsOrderInformation(self): + """ + Test Ptsv2paymentsidreversalsOrderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidreversals_order_information.Ptsv2paymentsidreversalsOrderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidreversals_order_information_line_items.py b/test/test_ptsv2paymentsidreversals_order_information_line_items.py new file mode 100644 index 00000000..94c0cc6e --- /dev/null +++ b/test/test_ptsv2paymentsidreversals_order_information_line_items.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidreversals_order_information_line_items import Ptsv2paymentsidreversalsOrderInformationLineItems + + +class TestPtsv2paymentsidreversalsOrderInformationLineItems(unittest.TestCase): + """ Ptsv2paymentsidreversalsOrderInformationLineItems unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidreversalsOrderInformationLineItems(self): + """ + Test Ptsv2paymentsidreversalsOrderInformationLineItems + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidreversals_order_information_line_items.Ptsv2paymentsidreversalsOrderInformationLineItems() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidreversals_point_of_sale_information.py b/test/test_ptsv2paymentsidreversals_point_of_sale_information.py new file mode 100644 index 00000000..acf878bc --- /dev/null +++ b/test/test_ptsv2paymentsidreversals_point_of_sale_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidreversals_point_of_sale_information import Ptsv2paymentsidreversalsPointOfSaleInformation + + +class TestPtsv2paymentsidreversalsPointOfSaleInformation(unittest.TestCase): + """ Ptsv2paymentsidreversalsPointOfSaleInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidreversalsPointOfSaleInformation(self): + """ + Test Ptsv2paymentsidreversalsPointOfSaleInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidreversals_point_of_sale_information.Ptsv2paymentsidreversalsPointOfSaleInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidreversals_processing_information.py b/test/test_ptsv2paymentsidreversals_processing_information.py new file mode 100644 index 00000000..1b6006a9 --- /dev/null +++ b/test/test_ptsv2paymentsidreversals_processing_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidreversals_processing_information import Ptsv2paymentsidreversalsProcessingInformation + + +class TestPtsv2paymentsidreversalsProcessingInformation(unittest.TestCase): + """ Ptsv2paymentsidreversalsProcessingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidreversalsProcessingInformation(self): + """ + Test Ptsv2paymentsidreversalsProcessingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidreversals_processing_information.Ptsv2paymentsidreversalsProcessingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidreversals_reversal_information.py b/test/test_ptsv2paymentsidreversals_reversal_information.py new file mode 100644 index 00000000..7d70ebe3 --- /dev/null +++ b/test/test_ptsv2paymentsidreversals_reversal_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidreversals_reversal_information import Ptsv2paymentsidreversalsReversalInformation + + +class TestPtsv2paymentsidreversalsReversalInformation(unittest.TestCase): + """ Ptsv2paymentsidreversalsReversalInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidreversalsReversalInformation(self): + """ + Test Ptsv2paymentsidreversalsReversalInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidreversals_reversal_information.Ptsv2paymentsidreversalsReversalInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2paymentsidreversals_reversal_information_amount_details.py b/test/test_ptsv2paymentsidreversals_reversal_information_amount_details.py new file mode 100644 index 00000000..a8a98eee --- /dev/null +++ b/test/test_ptsv2paymentsidreversals_reversal_information_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2paymentsidreversals_reversal_information_amount_details import Ptsv2paymentsidreversalsReversalInformationAmountDetails + + +class TestPtsv2paymentsidreversalsReversalInformationAmountDetails(unittest.TestCase): + """ Ptsv2paymentsidreversalsReversalInformationAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2paymentsidreversalsReversalInformationAmountDetails(self): + """ + Test Ptsv2paymentsidreversalsReversalInformationAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2paymentsidreversals_reversal_information_amount_details.Ptsv2paymentsidreversalsReversalInformationAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_merchant_information.py b/test/test_ptsv2payouts_merchant_information.py new file mode 100644 index 00000000..24fc46ca --- /dev/null +++ b/test/test_ptsv2payouts_merchant_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_merchant_information import Ptsv2payoutsMerchantInformation + + +class TestPtsv2payoutsMerchantInformation(unittest.TestCase): + """ Ptsv2payoutsMerchantInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsMerchantInformation(self): + """ + Test Ptsv2payoutsMerchantInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_merchant_information.Ptsv2payoutsMerchantInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_merchant_information_merchant_descriptor.py b/test/test_ptsv2payouts_merchant_information_merchant_descriptor.py new file mode 100644 index 00000000..eb471461 --- /dev/null +++ b/test/test_ptsv2payouts_merchant_information_merchant_descriptor.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_merchant_information_merchant_descriptor import Ptsv2payoutsMerchantInformationMerchantDescriptor + + +class TestPtsv2payoutsMerchantInformationMerchantDescriptor(unittest.TestCase): + """ Ptsv2payoutsMerchantInformationMerchantDescriptor unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsMerchantInformationMerchantDescriptor(self): + """ + Test Ptsv2payoutsMerchantInformationMerchantDescriptor + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_merchant_information_merchant_descriptor.Ptsv2payoutsMerchantInformationMerchantDescriptor() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_order_information.py b/test/test_ptsv2payouts_order_information.py new file mode 100644 index 00000000..64667821 --- /dev/null +++ b/test/test_ptsv2payouts_order_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_order_information import Ptsv2payoutsOrderInformation + + +class TestPtsv2payoutsOrderInformation(unittest.TestCase): + """ Ptsv2payoutsOrderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsOrderInformation(self): + """ + Test Ptsv2payoutsOrderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_order_information.Ptsv2payoutsOrderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_order_information_amount_details.py b/test/test_ptsv2payouts_order_information_amount_details.py new file mode 100644 index 00000000..f26914f2 --- /dev/null +++ b/test/test_ptsv2payouts_order_information_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_order_information_amount_details import Ptsv2payoutsOrderInformationAmountDetails + + +class TestPtsv2payoutsOrderInformationAmountDetails(unittest.TestCase): + """ Ptsv2payoutsOrderInformationAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsOrderInformationAmountDetails(self): + """ + Test Ptsv2payoutsOrderInformationAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_order_information_amount_details.Ptsv2payoutsOrderInformationAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_order_information_amount_details_surcharge.py b/test/test_ptsv2payouts_order_information_amount_details_surcharge.py new file mode 100644 index 00000000..b2701d77 --- /dev/null +++ b/test/test_ptsv2payouts_order_information_amount_details_surcharge.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_order_information_amount_details_surcharge import Ptsv2payoutsOrderInformationAmountDetailsSurcharge + + +class TestPtsv2payoutsOrderInformationAmountDetailsSurcharge(unittest.TestCase): + """ Ptsv2payoutsOrderInformationAmountDetailsSurcharge unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsOrderInformationAmountDetailsSurcharge(self): + """ + Test Ptsv2payoutsOrderInformationAmountDetailsSurcharge + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_order_information_amount_details_surcharge.Ptsv2payoutsOrderInformationAmountDetailsSurcharge() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_order_information_bill_to.py b/test/test_ptsv2payouts_order_information_bill_to.py new file mode 100644 index 00000000..3c09982b --- /dev/null +++ b/test/test_ptsv2payouts_order_information_bill_to.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_order_information_bill_to import Ptsv2payoutsOrderInformationBillTo + + +class TestPtsv2payoutsOrderInformationBillTo(unittest.TestCase): + """ Ptsv2payoutsOrderInformationBillTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsOrderInformationBillTo(self): + """ + Test Ptsv2payoutsOrderInformationBillTo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_order_information_bill_to.Ptsv2payoutsOrderInformationBillTo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_payment_information.py b/test/test_ptsv2payouts_payment_information.py new file mode 100644 index 00000000..7b96d19d --- /dev/null +++ b/test/test_ptsv2payouts_payment_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_payment_information import Ptsv2payoutsPaymentInformation + + +class TestPtsv2payoutsPaymentInformation(unittest.TestCase): + """ Ptsv2payoutsPaymentInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsPaymentInformation(self): + """ + Test Ptsv2payoutsPaymentInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_payment_information.Ptsv2payoutsPaymentInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_payment_information_card.py b/test/test_ptsv2payouts_payment_information_card.py new file mode 100644 index 00000000..7d1a84c6 --- /dev/null +++ b/test/test_ptsv2payouts_payment_information_card.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_payment_information_card import Ptsv2payoutsPaymentInformationCard + + +class TestPtsv2payoutsPaymentInformationCard(unittest.TestCase): + """ Ptsv2payoutsPaymentInformationCard unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsPaymentInformationCard(self): + """ + Test Ptsv2payoutsPaymentInformationCard + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_payment_information_card.Ptsv2payoutsPaymentInformationCard() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_processing_information.py b/test/test_ptsv2payouts_processing_information.py new file mode 100644 index 00000000..59fb0e0a --- /dev/null +++ b/test/test_ptsv2payouts_processing_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_processing_information import Ptsv2payoutsProcessingInformation + + +class TestPtsv2payoutsProcessingInformation(unittest.TestCase): + """ Ptsv2payoutsProcessingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsProcessingInformation(self): + """ + Test Ptsv2payoutsProcessingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_processing_information.Ptsv2payoutsProcessingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_processing_information_payouts_options.py b/test/test_ptsv2payouts_processing_information_payouts_options.py new file mode 100644 index 00000000..b5edadb1 --- /dev/null +++ b/test/test_ptsv2payouts_processing_information_payouts_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_processing_information_payouts_options import Ptsv2payoutsProcessingInformationPayoutsOptions + + +class TestPtsv2payoutsProcessingInformationPayoutsOptions(unittest.TestCase): + """ Ptsv2payoutsProcessingInformationPayoutsOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsProcessingInformationPayoutsOptions(self): + """ + Test Ptsv2payoutsProcessingInformationPayoutsOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_processing_information_payouts_options.Ptsv2payoutsProcessingInformationPayoutsOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_recipient_information.py b/test/test_ptsv2payouts_recipient_information.py new file mode 100644 index 00000000..e1353bba --- /dev/null +++ b/test/test_ptsv2payouts_recipient_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_recipient_information import Ptsv2payoutsRecipientInformation + + +class TestPtsv2payoutsRecipientInformation(unittest.TestCase): + """ Ptsv2payoutsRecipientInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsRecipientInformation(self): + """ + Test Ptsv2payoutsRecipientInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_recipient_information.Ptsv2payoutsRecipientInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_sender_information.py b/test/test_ptsv2payouts_sender_information.py new file mode 100644 index 00000000..3db8c1e5 --- /dev/null +++ b/test/test_ptsv2payouts_sender_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_sender_information import Ptsv2payoutsSenderInformation + + +class TestPtsv2payoutsSenderInformation(unittest.TestCase): + """ Ptsv2payoutsSenderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsSenderInformation(self): + """ + Test Ptsv2payoutsSenderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_sender_information.Ptsv2payoutsSenderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ptsv2payouts_sender_information_account.py b/test/test_ptsv2payouts_sender_information_account.py new file mode 100644 index 00000000..f9f1b46e --- /dev/null +++ b/test/test_ptsv2payouts_sender_information_account.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ptsv2payouts_sender_information_account import Ptsv2payoutsSenderInformationAccount + + +class TestPtsv2payoutsSenderInformationAccount(unittest.TestCase): + """ Ptsv2payoutsSenderInformationAccount unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsv2payoutsSenderInformationAccount(self): + """ + Test Ptsv2payoutsSenderInformationAccount + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ptsv2payouts_sender_information_account.Ptsv2payoutsSenderInformationAccount() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_purchase_and_refund_details_api.py b/test/test_purchase_and_refund_details_api.py new file mode 100644 index 00000000..c5b19303 --- /dev/null +++ b/test/test_purchase_and_refund_details_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.purchase_and_refund_details_api import PurchaseAndRefundDetailsApi + + +class TestPurchaseAndRefundDetailsApi(unittest.TestCase): + """ PurchaseAndRefundDetailsApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.purchase_and_refund_details_api.PurchaseAndRefundDetailsApi() + + def tearDown(self): + pass + + def test_get_purchase_and_refund_details(self): + """ + Test case for get_purchase_and_refund_details + + Get Purchase and Refund details + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_refund_api.py b/test/test_refund_api.py index b66a3fff..c8b60651 100644 --- a/test/test_refund_api.py +++ b/test/test_refund_api.py @@ -31,14 +31,6 @@ def setUp(self): def tearDown(self): pass - def test_get_refund(self): - """ - Test case for get_refund - - Retrieve a Refund - """ - pass - def test_refund_capture(self): """ Test case for refund_capture diff --git a/test/test_report_definitions_api.py b/test/test_report_definitions_api.py new file mode 100644 index 00000000..76d561de --- /dev/null +++ b/test/test_report_definitions_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.report_definitions_api import ReportDefinitionsApi + + +class TestReportDefinitionsApi(unittest.TestCase): + """ ReportDefinitionsApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.report_definitions_api.ReportDefinitionsApi() + + def tearDown(self): + pass + + def test_get_resource_info_by_report_definition(self): + """ + Test case for get_resource_info_by_report_definition + + Get a single report definition information + """ + pass + + def test_get_resource_v2_info(self): + """ + Test case for get_resource_v2_info + + Get reporting resource information + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_report_downloads_api.py b/test/test_report_downloads_api.py new file mode 100644 index 00000000..7be05650 --- /dev/null +++ b/test/test_report_downloads_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.report_downloads_api import ReportDownloadsApi + + +class TestReportDownloadsApi(unittest.TestCase): + """ ReportDownloadsApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.report_downloads_api.ReportDownloadsApi() + + def tearDown(self): + pass + + def test_download_report(self): + """ + Test case for download_report + + Download a report + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_report_subscriptions_api.py b/test/test_report_subscriptions_api.py new file mode 100644 index 00000000..ce3ef45d --- /dev/null +++ b/test/test_report_subscriptions_api.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.report_subscriptions_api import ReportSubscriptionsApi + + +class TestReportSubscriptionsApi(unittest.TestCase): + """ ReportSubscriptionsApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.report_subscriptions_api.ReportSubscriptionsApi() + + def tearDown(self): + pass + + def test_create_subscription(self): + """ + Test case for create_subscription + + Create Report Subscription for a report name by organization + """ + pass + + def test_delete_subscription(self): + """ + Test case for delete_subscription + + Delete subscription of a report name by organization + """ + pass + + def test_get_all_subscriptions(self): + """ + Test case for get_all_subscriptions + + Retrieve all subscriptions by organization + """ + pass + + def test_get_subscription(self): + """ + Test case for get_subscription + + Retrieve subscription for a report name by organization + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_notificationof_changes_get200_response.py b/test/test_reporting_v3_notificationof_changes_get200_response.py new file mode 100644 index 00000000..5f95ed33 --- /dev/null +++ b/test/test_reporting_v3_notificationof_changes_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_notificationof_changes_get200_response import ReportingV3NotificationofChangesGet200Response + + +class TestReportingV3NotificationofChangesGet200Response(unittest.TestCase): + """ ReportingV3NotificationofChangesGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3NotificationofChangesGet200Response(self): + """ + Test ReportingV3NotificationofChangesGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_notificationof_changes_get200_response.ReportingV3NotificationofChangesGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_notificationof_changes_get200_response_notification_of_changes.py b/test/test_reporting_v3_notificationof_changes_get200_response_notification_of_changes.py new file mode 100644 index 00000000..7ab8db76 --- /dev/null +++ b/test/test_reporting_v3_notificationof_changes_get200_response_notification_of_changes.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_notificationof_changes_get200_response_notification_of_changes import ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges + + +class TestReportingV3NotificationofChangesGet200ResponseNotificationOfChanges(unittest.TestCase): + """ ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3NotificationofChangesGet200ResponseNotificationOfChanges(self): + """ + Test ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_notificationof_changes_get200_response_notification_of_changes.ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_notificationof_changes_get400_response.py b/test/test_reporting_v3_notificationof_changes_get400_response.py new file mode 100644 index 00000000..0e56ffa4 --- /dev/null +++ b/test/test_reporting_v3_notificationof_changes_get400_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_notificationof_changes_get400_response import ReportingV3NotificationofChangesGet400Response + + +class TestReportingV3NotificationofChangesGet400Response(unittest.TestCase): + """ ReportingV3NotificationofChangesGet400Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3NotificationofChangesGet400Response(self): + """ + Test ReportingV3NotificationofChangesGet400Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_notificationof_changes_get400_response.ReportingV3NotificationofChangesGet400Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_notificationof_changes_get400_response_fields.py b/test/test_reporting_v3_notificationof_changes_get400_response_fields.py new file mode 100644 index 00000000..60949f15 --- /dev/null +++ b/test/test_reporting_v3_notificationof_changes_get400_response_fields.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_notificationof_changes_get400_response_fields import ReportingV3NotificationofChangesGet400ResponseFields + + +class TestReportingV3NotificationofChangesGet400ResponseFields(unittest.TestCase): + """ ReportingV3NotificationofChangesGet400ResponseFields unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3NotificationofChangesGet400ResponseFields(self): + """ + Test ReportingV3NotificationofChangesGet400ResponseFields + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_notificationof_changes_get400_response_fields.ReportingV3NotificationofChangesGet400ResponseFields() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_report_definitions_get200_response.py b/test/test_reporting_v3_report_definitions_get200_response.py new file mode 100644 index 00000000..4a7764cf --- /dev/null +++ b/test/test_reporting_v3_report_definitions_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_report_definitions_get200_response import ReportingV3ReportDefinitionsGet200Response + + +class TestReportingV3ReportDefinitionsGet200Response(unittest.TestCase): + """ ReportingV3ReportDefinitionsGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3ReportDefinitionsGet200Response(self): + """ + Test ReportingV3ReportDefinitionsGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_report_definitions_get200_response.ReportingV3ReportDefinitionsGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_report_definitions_get200_response_report_definitions.py b/test/test_reporting_v3_report_definitions_get200_response_report_definitions.py new file mode 100644 index 00000000..628ea7ae --- /dev/null +++ b/test/test_reporting_v3_report_definitions_get200_response_report_definitions.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_report_definitions_get200_response_report_definitions import ReportingV3ReportDefinitionsGet200ResponseReportDefinitions + + +class TestReportingV3ReportDefinitionsGet200ResponseReportDefinitions(unittest.TestCase): + """ ReportingV3ReportDefinitionsGet200ResponseReportDefinitions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3ReportDefinitionsGet200ResponseReportDefinitions(self): + """ + Test ReportingV3ReportDefinitionsGet200ResponseReportDefinitions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_report_definitions_get200_response_report_definitions.ReportingV3ReportDefinitionsGet200ResponseReportDefinitions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_report_definitions_name_get200_response.py b/test/test_reporting_v3_report_definitions_name_get200_response.py new file mode 100644 index 00000000..6175c35a --- /dev/null +++ b/test/test_reporting_v3_report_definitions_name_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_report_definitions_name_get200_response import ReportingV3ReportDefinitionsNameGet200Response + + +class TestReportingV3ReportDefinitionsNameGet200Response(unittest.TestCase): + """ ReportingV3ReportDefinitionsNameGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3ReportDefinitionsNameGet200Response(self): + """ + Test ReportingV3ReportDefinitionsNameGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_report_definitions_name_get200_response.ReportingV3ReportDefinitionsNameGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_report_definitions_name_get200_response_attributes.py b/test/test_reporting_v3_report_definitions_name_get200_response_attributes.py new file mode 100644 index 00000000..60dda9a5 --- /dev/null +++ b/test/test_reporting_v3_report_definitions_name_get200_response_attributes.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_report_definitions_name_get200_response_attributes import ReportingV3ReportDefinitionsNameGet200ResponseAttributes + + +class TestReportingV3ReportDefinitionsNameGet200ResponseAttributes(unittest.TestCase): + """ ReportingV3ReportDefinitionsNameGet200ResponseAttributes unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3ReportDefinitionsNameGet200ResponseAttributes(self): + """ + Test ReportingV3ReportDefinitionsNameGet200ResponseAttributes + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_report_definitions_name_get200_response_attributes.ReportingV3ReportDefinitionsNameGet200ResponseAttributes() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_report_subscriptions_get200_response.py b/test/test_reporting_v3_report_subscriptions_get200_response.py new file mode 100644 index 00000000..192a6b74 --- /dev/null +++ b/test/test_reporting_v3_report_subscriptions_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_report_subscriptions_get200_response import ReportingV3ReportSubscriptionsGet200Response + + +class TestReportingV3ReportSubscriptionsGet200Response(unittest.TestCase): + """ ReportingV3ReportSubscriptionsGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3ReportSubscriptionsGet200Response(self): + """ + Test ReportingV3ReportSubscriptionsGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_report_subscriptions_get200_response.ReportingV3ReportSubscriptionsGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_report_subscriptions_get200_response_report_preferences.py b/test/test_reporting_v3_report_subscriptions_get200_response_report_preferences.py new file mode 100644 index 00000000..15d250ab --- /dev/null +++ b/test/test_reporting_v3_report_subscriptions_get200_response_report_preferences.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_report_subscriptions_get200_response_report_preferences import ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + + +class TestReportingV3ReportSubscriptionsGet200ResponseReportPreferences(unittest.TestCase): + """ ReportingV3ReportSubscriptionsGet200ResponseReportPreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3ReportSubscriptionsGet200ResponseReportPreferences(self): + """ + Test ReportingV3ReportSubscriptionsGet200ResponseReportPreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_report_subscriptions_get200_response_report_preferences.ReportingV3ReportSubscriptionsGet200ResponseReportPreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_report_subscriptions_get200_response_subscriptions.py b/test/test_reporting_v3_report_subscriptions_get200_response_subscriptions.py new file mode 100644 index 00000000..84e78878 --- /dev/null +++ b/test/test_reporting_v3_report_subscriptions_get200_response_subscriptions.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_report_subscriptions_get200_response_subscriptions import ReportingV3ReportSubscriptionsGet200ResponseSubscriptions + + +class TestReportingV3ReportSubscriptionsGet200ResponseSubscriptions(unittest.TestCase): + """ ReportingV3ReportSubscriptionsGet200ResponseSubscriptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3ReportSubscriptionsGet200ResponseSubscriptions(self): + """ + Test ReportingV3ReportSubscriptionsGet200ResponseSubscriptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_report_subscriptions_get200_response_subscriptions.ReportingV3ReportSubscriptionsGet200ResponseSubscriptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_reports_get200_response.py b/test/test_reporting_v3_reports_get200_response.py new file mode 100644 index 00000000..72ddb3c4 --- /dev/null +++ b/test/test_reporting_v3_reports_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_reports_get200_response import ReportingV3ReportsGet200Response + + +class TestReportingV3ReportsGet200Response(unittest.TestCase): + """ ReportingV3ReportsGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3ReportsGet200Response(self): + """ + Test ReportingV3ReportsGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_reports_get200_response.ReportingV3ReportsGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_reports_get200_response_reports.py b/test/test_reporting_v3_reports_get200_response_reports.py new file mode 100644 index 00000000..cd96a224 --- /dev/null +++ b/test/test_reporting_v3_reports_get200_response_reports.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_reports_get200_response_reports import ReportingV3ReportsGet200ResponseReports + + +class TestReportingV3ReportsGet200ResponseReports(unittest.TestCase): + """ ReportingV3ReportsGet200ResponseReports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3ReportsGet200ResponseReports(self): + """ + Test ReportingV3ReportsGet200ResponseReports + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_reports_get200_response_reports.ReportingV3ReportsGet200ResponseReports() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reporting_v3_reports_id_get200_response.py b/test/test_reporting_v3_reports_id_get200_response.py new file mode 100644 index 00000000..b4ee4ebc --- /dev/null +++ b/test/test_reporting_v3_reports_id_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.reporting_v3_reports_id_get200_response import ReportingV3ReportsIdGet200Response + + +class TestReportingV3ReportsIdGet200Response(unittest.TestCase): + """ ReportingV3ReportsIdGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportingV3ReportsIdGet200Response(self): + """ + Test ReportingV3ReportsIdGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.reporting_v3_reports_id_get200_response.ReportingV3ReportsIdGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reports_api.py b/test/test_reports_api.py new file mode 100644 index 00000000..c88ea149 --- /dev/null +++ b/test/test_reports_api.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.reports_api import ReportsApi + + +class TestReportsApi(unittest.TestCase): + """ ReportsApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.reports_api.ReportsApi() + + def tearDown(self): + pass + + def test_create_report(self): + """ + Test case for create_report + + Create Adhoc Report + """ + pass + + def test_get_report_by_report_id(self): + """ + Test case for get_report_by_report_id + + Get Report based on reportId + """ + pass + + def test_search_reports(self): + """ + Test case for search_reports + + Retrieve available reports + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_request_body.py b/test/test_request_body.py new file mode 100644 index 00000000..6d7d7503 --- /dev/null +++ b/test/test_request_body.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.request_body import RequestBody + + +class TestRequestBody(unittest.TestCase): + """ RequestBody unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRequestBody(self): + """ + Test RequestBody + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.request_body.RequestBody() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_request_body_1.py b/test/test_request_body_1.py new file mode 100644 index 00000000..c78111fa --- /dev/null +++ b/test/test_request_body_1.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.request_body_1 import RequestBody1 + + +class TestRequestBody1(unittest.TestCase): + """ RequestBody1 unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRequestBody1(self): + """ + Test RequestBody1 + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.request_body_1.RequestBody1() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reversal_api.py b/test/test_reversal_api.py index 77707275..5de2c4b8 100644 --- a/test/test_reversal_api.py +++ b/test/test_reversal_api.py @@ -39,14 +39,6 @@ def test_auth_reversal(self): """ pass - def test_get_auth_reversal(self): - """ - Test case for get_auth_reversal - - Retrieve an Authorization Reversal - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_search_transactions_api.py b/test/test_search_transactions_api.py new file mode 100644 index 00000000..373dd6ec --- /dev/null +++ b/test/test_search_transactions_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.search_transactions_api import SearchTransactionsApi + + +class TestSearchTransactionsApi(unittest.TestCase): + """ SearchTransactionsApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.search_transactions_api.SearchTransactionsApi() + + def tearDown(self): + pass + + def test_create_search(self): + """ + Test case for create_search + + Create a search request + """ + pass + + def test_get_search(self): + """ + Test case for get_search + + Get Search results + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_secure_file_share_api.py b/test/test_secure_file_share_api.py new file mode 100644 index 00000000..68f74b7a --- /dev/null +++ b/test/test_secure_file_share_api.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.secure_file_share_api import SecureFileShareApi + + +class TestSecureFileShareApi(unittest.TestCase): + """ SecureFileShareApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.secure_file_share_api.SecureFileShareApi() + + def tearDown(self): + pass + + def test_get_file(self): + """ + Test case for get_file + + Download a file with file identifier + """ + pass + + def test_get_file_details(self): + """ + Test case for get_file_details + + Get list of files + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_delete409_response.py b/test/test_tms_v1_instrumentidentifiers_delete409_response.py new file mode 100644 index 00000000..117df6ae --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_delete409_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_delete409_response import TmsV1InstrumentidentifiersDelete409Response + + +class TestTmsV1InstrumentidentifiersDelete409Response(unittest.TestCase): + """ TmsV1InstrumentidentifiersDelete409Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersDelete409Response(self): + """ + Test TmsV1InstrumentidentifiersDelete409Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_delete409_response.TmsV1InstrumentidentifiersDelete409Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_delete409_response__links.py b/test/test_tms_v1_instrumentidentifiers_delete409_response__links.py new file mode 100644 index 00000000..0b1c9bb8 --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_delete409_response__links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_delete409_response__links import TmsV1InstrumentidentifiersDelete409ResponseLinks + + +class TestTmsV1InstrumentidentifiersDelete409ResponseLinks(unittest.TestCase): + """ TmsV1InstrumentidentifiersDelete409ResponseLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersDelete409ResponseLinks(self): + """ + Test TmsV1InstrumentidentifiersDelete409ResponseLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_delete409_response__links.TmsV1InstrumentidentifiersDelete409ResponseLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments.py b/test/test_tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments.py new file mode 100644 index 00000000..9ff17941 --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments import TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments + + +class TestTmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments(unittest.TestCase): + """ TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments(self): + """ + Test TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments.TmsV1InstrumentidentifiersDelete409ResponseLinksPaymentInstruments() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response.py b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response.py new file mode 100644 index 00000000..1eee1750 --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response import TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response + + +class TestTmsV1InstrumentidentifiersPaymentinstrumentsGet200Response(unittest.TestCase): + """ TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersPaymentinstrumentsGet200Response(self): + """ + Test TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response.TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links.py b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links.py new file mode 100644 index 00000000..a1586283 --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks + + +class TestTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks(unittest.TestCase): + """ TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks(self): + """ + Test TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first.py b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first.py new file mode 100644 index 00000000..2d75c894 --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst + + +class TestTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst(unittest.TestCase): + """ TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst(self): + """ + Test TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksFirst() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last.py b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last.py new file mode 100644 index 00000000..51cfb159 --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast + + +class TestTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast(unittest.TestCase): + """ TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast(self): + """ + Test TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksLast() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next.py b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next.py new file mode 100644 index 00000000..ed375927 --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext + + +class TestTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext(unittest.TestCase): + """ TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext(self): + """ + Test TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksNext() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev.py b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev.py new file mode 100644 index 00000000..d4a12530 --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev + + +class TestTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev(unittest.TestCase): + """ TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev(self): + """ + Test TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksPrev() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self.py b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self.py new file mode 100644 index 00000000..85719d84 --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self import TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf + + +class TestTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf(unittest.TestCase): + """ TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf(self): + """ + Test TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self.TmsV1InstrumentidentifiersPaymentinstrumentsGet200ResponseLinksSelf() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_instrumentidentifiers_post200_response.py b/test/test_tms_v1_instrumentidentifiers_post200_response.py new file mode 100644 index 00000000..de442254 --- /dev/null +++ b/test/test_tms_v1_instrumentidentifiers_post200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_instrumentidentifiers_post200_response import TmsV1InstrumentidentifiersPost200Response + + +class TestTmsV1InstrumentidentifiersPost200Response(unittest.TestCase): + """ TmsV1InstrumentidentifiersPost200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1InstrumentidentifiersPost200Response(self): + """ + Test TmsV1InstrumentidentifiersPost200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_instrumentidentifiers_post200_response.TmsV1InstrumentidentifiersPost200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tms_v1_paymentinstruments_post201_response.py b/test/test_tms_v1_paymentinstruments_post201_response.py new file mode 100644 index 00000000..dc7d990a --- /dev/null +++ b/test/test_tms_v1_paymentinstruments_post201_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tms_v1_paymentinstruments_post201_response import TmsV1PaymentinstrumentsPost201Response + + +class TestTmsV1PaymentinstrumentsPost201Response(unittest.TestCase): + """ TmsV1PaymentinstrumentsPost201Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsV1PaymentinstrumentsPost201Response(self): + """ + Test TmsV1PaymentinstrumentsPost201Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tms_v1_paymentinstruments_post201_response.TmsV1PaymentinstrumentsPost201Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1instrumentidentifiers__links.py b/test/test_tmsv1instrumentidentifiers__links.py new file mode 100644 index 00000000..427441a6 --- /dev/null +++ b/test/test_tmsv1instrumentidentifiers__links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1instrumentidentifiers__links import Tmsv1instrumentidentifiersLinks + + +class TestTmsv1instrumentidentifiersLinks(unittest.TestCase): + """ Tmsv1instrumentidentifiersLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1instrumentidentifiersLinks(self): + """ + Test Tmsv1instrumentidentifiersLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1instrumentidentifiers__links.Tmsv1instrumentidentifiersLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1instrumentidentifiers__links_self.py b/test/test_tmsv1instrumentidentifiers__links_self.py new file mode 100644 index 00000000..e9e28233 --- /dev/null +++ b/test/test_tmsv1instrumentidentifiers__links_self.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1instrumentidentifiers__links_self import Tmsv1instrumentidentifiersLinksSelf + + +class TestTmsv1instrumentidentifiersLinksSelf(unittest.TestCase): + """ Tmsv1instrumentidentifiersLinksSelf unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1instrumentidentifiersLinksSelf(self): + """ + Test Tmsv1instrumentidentifiersLinksSelf + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1instrumentidentifiers__links_self.Tmsv1instrumentidentifiersLinksSelf() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1instrumentidentifiers_bank_account.py b/test/test_tmsv1instrumentidentifiers_bank_account.py new file mode 100644 index 00000000..75efba82 --- /dev/null +++ b/test/test_tmsv1instrumentidentifiers_bank_account.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1instrumentidentifiers_bank_account import Tmsv1instrumentidentifiersBankAccount + + +class TestTmsv1instrumentidentifiersBankAccount(unittest.TestCase): + """ Tmsv1instrumentidentifiersBankAccount unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1instrumentidentifiersBankAccount(self): + """ + Test Tmsv1instrumentidentifiersBankAccount + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1instrumentidentifiers_bank_account.Tmsv1instrumentidentifiersBankAccount() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1instrumentidentifiers_card.py b/test/test_tmsv1instrumentidentifiers_card.py new file mode 100644 index 00000000..27a67d4e --- /dev/null +++ b/test/test_tmsv1instrumentidentifiers_card.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1instrumentidentifiers_card import Tmsv1instrumentidentifiersCard + + +class TestTmsv1instrumentidentifiersCard(unittest.TestCase): + """ Tmsv1instrumentidentifiersCard unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1instrumentidentifiersCard(self): + """ + Test Tmsv1instrumentidentifiersCard + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1instrumentidentifiers_card.Tmsv1instrumentidentifiersCard() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1instrumentidentifiers_details.py b/test/test_tmsv1instrumentidentifiers_details.py new file mode 100644 index 00000000..69051cea --- /dev/null +++ b/test/test_tmsv1instrumentidentifiers_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1instrumentidentifiers_details import Tmsv1instrumentidentifiersDetails + + +class TestTmsv1instrumentidentifiersDetails(unittest.TestCase): + """ Tmsv1instrumentidentifiersDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1instrumentidentifiersDetails(self): + """ + Test Tmsv1instrumentidentifiersDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1instrumentidentifiers_details.Tmsv1instrumentidentifiersDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1instrumentidentifiers_merchant_initiated_transaction.py b/test/test_tmsv1instrumentidentifiers_merchant_initiated_transaction.py new file mode 100644 index 00000000..646a92d6 --- /dev/null +++ b/test/test_tmsv1instrumentidentifiers_merchant_initiated_transaction.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1instrumentidentifiers_processing_information_authorization_options_initiator_merchant_initiated_transaction import Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + + +class TestTmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(unittest.TestCase): + """ Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(self): + """ + Test Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1instrumentidentifiers_processing_information_authorization_options_initiator_merchant_initiated_transaction.Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1instrumentidentifiers_metadata.py b/test/test_tmsv1instrumentidentifiers_metadata.py new file mode 100644 index 00000000..ff860090 --- /dev/null +++ b/test/test_tmsv1instrumentidentifiers_metadata.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1instrumentidentifiers_metadata import Tmsv1instrumentidentifiersMetadata + + +class TestTmsv1instrumentidentifiersMetadata(unittest.TestCase): + """ Tmsv1instrumentidentifiersMetadata unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1instrumentidentifiersMetadata(self): + """ + Test Tmsv1instrumentidentifiersMetadata + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1instrumentidentifiers_metadata.Tmsv1instrumentidentifiersMetadata() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1instrumentidentifiers_processing_information.py b/test/test_tmsv1instrumentidentifiers_processing_information.py new file mode 100644 index 00000000..28d7b776 --- /dev/null +++ b/test/test_tmsv1instrumentidentifiers_processing_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1instrumentidentifiers_processing_information import Tmsv1instrumentidentifiersProcessingInformation + + +class TestTmsv1instrumentidentifiersProcessingInformation(unittest.TestCase): + """ Tmsv1instrumentidentifiersProcessingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1instrumentidentifiersProcessingInformation(self): + """ + Test Tmsv1instrumentidentifiersProcessingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1instrumentidentifiers_processing_information.Tmsv1instrumentidentifiersProcessingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1instrumentidentifiers_processing_information_authorization_options.py b/test/test_tmsv1instrumentidentifiers_processing_information_authorization_options.py new file mode 100644 index 00000000..eba7c51a --- /dev/null +++ b/test/test_tmsv1instrumentidentifiers_processing_information_authorization_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1instrumentidentifiers_processing_information_authorization_options import Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions + + +class TestTmsv1instrumentidentifiersProcessingInformationAuthorizationOptions(unittest.TestCase): + """ Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1instrumentidentifiersProcessingInformationAuthorizationOptions(self): + """ + Test Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1instrumentidentifiers_processing_information_authorization_options.Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.py b/test/test_tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.py new file mode 100644 index 00000000..986a2414 --- /dev/null +++ b/test/test_tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1instrumentidentifiers_processing_information_authorization_options_initiator import Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator + + +class TestTmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator(unittest.TestCase): + """ Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator(self): + """ + Test Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.Tmsv1instrumentidentifiersProcessingInformationAuthorizationOptionsInitiator() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_bank_account.py b/test/test_tmsv1paymentinstruments_bank_account.py new file mode 100644 index 00000000..89a2da89 --- /dev/null +++ b/test/test_tmsv1paymentinstruments_bank_account.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_bank_account import Tmsv1paymentinstrumentsBankAccount + + +class TestTmsv1paymentinstrumentsBankAccount(unittest.TestCase): + """ Tmsv1paymentinstrumentsBankAccount unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsBankAccount(self): + """ + Test Tmsv1paymentinstrumentsBankAccount + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_bank_account.Tmsv1paymentinstrumentsBankAccount() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_bill_to.py b/test/test_tmsv1paymentinstruments_bill_to.py new file mode 100644 index 00000000..b324757a --- /dev/null +++ b/test/test_tmsv1paymentinstruments_bill_to.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_bill_to import Tmsv1paymentinstrumentsBillTo + + +class TestTmsv1paymentinstrumentsBillTo(unittest.TestCase): + """ Tmsv1paymentinstrumentsBillTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsBillTo(self): + """ + Test Tmsv1paymentinstrumentsBillTo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_bill_to.Tmsv1paymentinstrumentsBillTo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_buyer_information.py b/test/test_tmsv1paymentinstruments_buyer_information.py new file mode 100644 index 00000000..3b9692fd --- /dev/null +++ b/test/test_tmsv1paymentinstruments_buyer_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_buyer_information import Tmsv1paymentinstrumentsBuyerInformation + + +class TestTmsv1paymentinstrumentsBuyerInformation(unittest.TestCase): + """ Tmsv1paymentinstrumentsBuyerInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsBuyerInformation(self): + """ + Test Tmsv1paymentinstrumentsBuyerInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_buyer_information.Tmsv1paymentinstrumentsBuyerInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_buyer_information_issued_by.py b/test/test_tmsv1paymentinstruments_buyer_information_issued_by.py new file mode 100644 index 00000000..9e4ce460 --- /dev/null +++ b/test/test_tmsv1paymentinstruments_buyer_information_issued_by.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_buyer_information_issued_by import Tmsv1paymentinstrumentsBuyerInformationIssuedBy + + +class TestTmsv1paymentinstrumentsBuyerInformationIssuedBy(unittest.TestCase): + """ Tmsv1paymentinstrumentsBuyerInformationIssuedBy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsBuyerInformationIssuedBy(self): + """ + Test Tmsv1paymentinstrumentsBuyerInformationIssuedBy + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_buyer_information_issued_by.Tmsv1paymentinstrumentsBuyerInformationIssuedBy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_buyer_information_personal_identification.py b/test/test_tmsv1paymentinstruments_buyer_information_personal_identification.py new file mode 100644 index 00000000..e73af6db --- /dev/null +++ b/test/test_tmsv1paymentinstruments_buyer_information_personal_identification.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_buyer_information_personal_identification import Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification + + +class TestTmsv1paymentinstrumentsBuyerInformationPersonalIdentification(unittest.TestCase): + """ Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsBuyerInformationPersonalIdentification(self): + """ + Test Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_buyer_information_personal_identification.Tmsv1paymentinstrumentsBuyerInformationPersonalIdentification() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_card.py b/test/test_tmsv1paymentinstruments_card.py new file mode 100644 index 00000000..7643a2fb --- /dev/null +++ b/test/test_tmsv1paymentinstruments_card.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_card import Tmsv1paymentinstrumentsCard + + +class TestTmsv1paymentinstrumentsCard(unittest.TestCase): + """ Tmsv1paymentinstrumentsCard unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsCard(self): + """ + Test Tmsv1paymentinstrumentsCard + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_card.Tmsv1paymentinstrumentsCard() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_instrument_identifier.py b/test/test_tmsv1paymentinstruments_instrument_identifier.py new file mode 100644 index 00000000..429ae44e --- /dev/null +++ b/test/test_tmsv1paymentinstruments_instrument_identifier.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_instrument_identifier import Tmsv1paymentinstrumentsInstrumentIdentifier + + +class TestTmsv1paymentinstrumentsInstrumentIdentifier(unittest.TestCase): + """ Tmsv1paymentinstrumentsInstrumentIdentifier unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsInstrumentIdentifier(self): + """ + Test Tmsv1paymentinstrumentsInstrumentIdentifier + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_instrument_identifier.Tmsv1paymentinstrumentsInstrumentIdentifier() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_merchant_information.py b/test/test_tmsv1paymentinstruments_merchant_information.py new file mode 100644 index 00000000..7c6f3a0f --- /dev/null +++ b/test/test_tmsv1paymentinstruments_merchant_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_merchant_information import Tmsv1paymentinstrumentsMerchantInformation + + +class TestTmsv1paymentinstrumentsMerchantInformation(unittest.TestCase): + """ Tmsv1paymentinstrumentsMerchantInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsMerchantInformation(self): + """ + Test Tmsv1paymentinstrumentsMerchantInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_merchant_information.Tmsv1paymentinstrumentsMerchantInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_merchant_information_merchant_descriptor.py b/test/test_tmsv1paymentinstruments_merchant_information_merchant_descriptor.py new file mode 100644 index 00000000..1fc076bf --- /dev/null +++ b/test/test_tmsv1paymentinstruments_merchant_information_merchant_descriptor.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_merchant_information_merchant_descriptor import Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor + + +class TestTmsv1paymentinstrumentsMerchantInformationMerchantDescriptor(unittest.TestCase): + """ Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsMerchantInformationMerchantDescriptor(self): + """ + Test Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_merchant_information_merchant_descriptor.Tmsv1paymentinstrumentsMerchantInformationMerchantDescriptor() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_processing_information.py b/test/test_tmsv1paymentinstruments_processing_information.py new file mode 100644 index 00000000..5c33b506 --- /dev/null +++ b/test/test_tmsv1paymentinstruments_processing_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_processing_information import Tmsv1paymentinstrumentsProcessingInformation + + +class TestTmsv1paymentinstrumentsProcessingInformation(unittest.TestCase): + """ Tmsv1paymentinstrumentsProcessingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsProcessingInformation(self): + """ + Test Tmsv1paymentinstrumentsProcessingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_processing_information.Tmsv1paymentinstrumentsProcessingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tmsv1paymentinstruments_processing_information_bank_transfer_options.py b/test/test_tmsv1paymentinstruments_processing_information_bank_transfer_options.py new file mode 100644 index 00000000..5f768a47 --- /dev/null +++ b/test/test_tmsv1paymentinstruments_processing_information_bank_transfer_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tmsv1paymentinstruments_processing_information_bank_transfer_options import Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions + + +class TestTmsv1paymentinstrumentsProcessingInformationBankTransferOptions(unittest.TestCase): + """ Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTmsv1paymentinstrumentsProcessingInformationBankTransferOptions(self): + """ + Test Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tmsv1paymentinstruments_processing_information_bank_transfer_options.Tmsv1paymentinstrumentsProcessingInformationBankTransferOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tokenization_api.py b/test/test_tokenization_api.py deleted file mode 100644 index 9183c007..00000000 --- a/test/test_tokenization_api.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.apis.tokenization_api import TokenizationApi - - -class TestTokenizationApi(unittest.TestCase): - """ TokenizationApi unit test stubs """ - - def setUp(self): - self.api = CyberSource.apis.tokenization_api.TokenizationApi() - - def tearDown(self): - pass - - def test_tokenize(self): - """ - Test case for tokenize - - Tokenize card - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_transaction_batch_api.py b/test/test_transaction_batch_api.py new file mode 100644 index 00000000..10f9e1fc --- /dev/null +++ b/test/test_transaction_batch_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.transaction_batch_api import TransactionBatchApi + + +class TestTransactionBatchApi(unittest.TestCase): + """ TransactionBatchApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.transaction_batch_api.TransactionBatchApi() + + def tearDown(self): + pass + + def test_pts_v1_transaction_batches_id_get(self): + """ + Test case for pts_v1_transaction_batches_id_get + + Get an individual batch file Details processed through the Offline Transaction Submission Services + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_transaction_batches_api.py b/test/test_transaction_batches_api.py new file mode 100644 index 00000000..38459d04 --- /dev/null +++ b/test/test_transaction_batches_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.transaction_batches_api import TransactionBatchesApi + + +class TestTransactionBatchesApi(unittest.TestCase): + """ TransactionBatchesApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.transaction_batches_api.TransactionBatchesApi() + + def tearDown(self): + pass + + def test_pts_v1_transaction_batches_get(self): + """ + Test case for pts_v1_transaction_batches_get + + Get a list of batch files processed through the Offline Transaction Submission Services + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_transaction_details_api.py b/test/test_transaction_details_api.py new file mode 100644 index 00000000..2a11de9b --- /dev/null +++ b/test/test_transaction_details_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.transaction_details_api import TransactionDetailsApi + + +class TestTransactionDetailsApi(unittest.TestCase): + """ TransactionDetailsApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.transaction_details_api.TransactionDetailsApi() + + def tearDown(self): + pass + + def test_get_transaction(self): + """ + Test case for get_transaction + + Retrieve a Transaction + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response.py b/test/test_tss_v2_transactions_get200_response.py new file mode 100644 index 00000000..77f0f494 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response import TssV2TransactionsGet200Response + + +class TestTssV2TransactionsGet200Response(unittest.TestCase): + """ TssV2TransactionsGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200Response(self): + """ + Test TssV2TransactionsGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response.TssV2TransactionsGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_application_information.py b/test/test_tss_v2_transactions_get200_response_application_information.py new file mode 100644 index 00000000..4f3aa50a --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_application_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_application_information import TssV2TransactionsGet200ResponseApplicationInformation + + +class TestTssV2TransactionsGet200ResponseApplicationInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseApplicationInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseApplicationInformation(self): + """ + Test TssV2TransactionsGet200ResponseApplicationInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_application_information.TssV2TransactionsGet200ResponseApplicationInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_application_information_applications.py b/test/test_tss_v2_transactions_get200_response_application_information_applications.py new file mode 100644 index 00000000..9c274bbd --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_application_information_applications.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_application_information_applications import TssV2TransactionsGet200ResponseApplicationInformationApplications + + +class TestTssV2TransactionsGet200ResponseApplicationInformationApplications(unittest.TestCase): + """ TssV2TransactionsGet200ResponseApplicationInformationApplications unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseApplicationInformationApplications(self): + """ + Test TssV2TransactionsGet200ResponseApplicationInformationApplications + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_application_information_applications.TssV2TransactionsGet200ResponseApplicationInformationApplications() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_buyer_information.py b/test/test_tss_v2_transactions_get200_response_buyer_information.py new file mode 100644 index 00000000..f3b760ff --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_buyer_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_buyer_information import TssV2TransactionsGet200ResponseBuyerInformation + + +class TestTssV2TransactionsGet200ResponseBuyerInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseBuyerInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseBuyerInformation(self): + """ + Test TssV2TransactionsGet200ResponseBuyerInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_buyer_information.TssV2TransactionsGet200ResponseBuyerInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_client_reference_information.py b/test/test_tss_v2_transactions_get200_response_client_reference_information.py new file mode 100644 index 00000000..a8de27b8 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_client_reference_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_client_reference_information import TssV2TransactionsGet200ResponseClientReferenceInformation + + +class TestTssV2TransactionsGet200ResponseClientReferenceInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseClientReferenceInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseClientReferenceInformation(self): + """ + Test TssV2TransactionsGet200ResponseClientReferenceInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_client_reference_information.TssV2TransactionsGet200ResponseClientReferenceInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_consumer_authentication_information.py b/test/test_tss_v2_transactions_get200_response_consumer_authentication_information.py new file mode 100644 index 00000000..1e1c2907 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_consumer_authentication_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_consumer_authentication_information import TssV2TransactionsGet200ResponseConsumerAuthenticationInformation + + +class TestTssV2TransactionsGet200ResponseConsumerAuthenticationInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseConsumerAuthenticationInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseConsumerAuthenticationInformation(self): + """ + Test TssV2TransactionsGet200ResponseConsumerAuthenticationInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_consumer_authentication_information.TssV2TransactionsGet200ResponseConsumerAuthenticationInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_device_information.py b/test/test_tss_v2_transactions_get200_response_device_information.py new file mode 100644 index 00000000..8e8d95bf --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_device_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_device_information import TssV2TransactionsGet200ResponseDeviceInformation + + +class TestTssV2TransactionsGet200ResponseDeviceInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseDeviceInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseDeviceInformation(self): + """ + Test TssV2TransactionsGet200ResponseDeviceInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_device_information.TssV2TransactionsGet200ResponseDeviceInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_error_information.py b/test/test_tss_v2_transactions_get200_response_error_information.py new file mode 100644 index 00000000..8555a86a --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_error_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_error_information import TssV2TransactionsGet200ResponseErrorInformation + + +class TestTssV2TransactionsGet200ResponseErrorInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseErrorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseErrorInformation(self): + """ + Test TssV2TransactionsGet200ResponseErrorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_error_information.TssV2TransactionsGet200ResponseErrorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_fraud_marking_information.py b/test/test_tss_v2_transactions_get200_response_fraud_marking_information.py new file mode 100644 index 00000000..2d5d2046 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_fraud_marking_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_fraud_marking_information import TssV2TransactionsGet200ResponseFraudMarkingInformation + + +class TestTssV2TransactionsGet200ResponseFraudMarkingInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseFraudMarkingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseFraudMarkingInformation(self): + """ + Test TssV2TransactionsGet200ResponseFraudMarkingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_fraud_marking_information.TssV2TransactionsGet200ResponseFraudMarkingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_installment_information.py b/test/test_tss_v2_transactions_get200_response_installment_information.py new file mode 100644 index 00000000..3bcc1570 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_installment_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_installment_information import TssV2TransactionsGet200ResponseInstallmentInformation + + +class TestTssV2TransactionsGet200ResponseInstallmentInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseInstallmentInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseInstallmentInformation(self): + """ + Test TssV2TransactionsGet200ResponseInstallmentInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_installment_information.TssV2TransactionsGet200ResponseInstallmentInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_merchant_defined_information.py b/test/test_tss_v2_transactions_get200_response_merchant_defined_information.py new file mode 100644 index 00000000..5b04f296 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_merchant_defined_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_merchant_defined_information import TssV2TransactionsGet200ResponseMerchantDefinedInformation + + +class TestTssV2TransactionsGet200ResponseMerchantDefinedInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseMerchantDefinedInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseMerchantDefinedInformation(self): + """ + Test TssV2TransactionsGet200ResponseMerchantDefinedInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_merchant_defined_information.TssV2TransactionsGet200ResponseMerchantDefinedInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_merchant_information.py b/test/test_tss_v2_transactions_get200_response_merchant_information.py new file mode 100644 index 00000000..a1573d30 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_merchant_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_merchant_information import TssV2TransactionsGet200ResponseMerchantInformation + + +class TestTssV2TransactionsGet200ResponseMerchantInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseMerchantInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseMerchantInformation(self): + """ + Test TssV2TransactionsGet200ResponseMerchantInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_merchant_information.TssV2TransactionsGet200ResponseMerchantInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.py b/test/test_tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.py new file mode 100644 index 00000000..0e508f94 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_merchant_information_merchant_descriptor import TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor + + +class TestTssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor(unittest.TestCase): + """ TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor(self): + """ + Test TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_order_information.py b/test/test_tss_v2_transactions_get200_response_order_information.py new file mode 100644 index 00000000..20821164 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_order_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_order_information import TssV2TransactionsGet200ResponseOrderInformation + + +class TestTssV2TransactionsGet200ResponseOrderInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseOrderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseOrderInformation(self): + """ + Test TssV2TransactionsGet200ResponseOrderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_order_information.TssV2TransactionsGet200ResponseOrderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_order_information_amount_details.py b/test/test_tss_v2_transactions_get200_response_order_information_amount_details.py new file mode 100644 index 00000000..c2c14d39 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_order_information_amount_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_order_information_amount_details import TssV2TransactionsGet200ResponseOrderInformationAmountDetails + + +class TestTssV2TransactionsGet200ResponseOrderInformationAmountDetails(unittest.TestCase): + """ TssV2TransactionsGet200ResponseOrderInformationAmountDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseOrderInformationAmountDetails(self): + """ + Test TssV2TransactionsGet200ResponseOrderInformationAmountDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_order_information_amount_details.TssV2TransactionsGet200ResponseOrderInformationAmountDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_order_information_bill_to.py b/test/test_tss_v2_transactions_get200_response_order_information_bill_to.py new file mode 100644 index 00000000..c8153bc0 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_order_information_bill_to.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_order_information_bill_to import TssV2TransactionsGet200ResponseOrderInformationBillTo + + +class TestTssV2TransactionsGet200ResponseOrderInformationBillTo(unittest.TestCase): + """ TssV2TransactionsGet200ResponseOrderInformationBillTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseOrderInformationBillTo(self): + """ + Test TssV2TransactionsGet200ResponseOrderInformationBillTo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_order_information_bill_to.TssV2TransactionsGet200ResponseOrderInformationBillTo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_order_information_line_items.py b/test/test_tss_v2_transactions_get200_response_order_information_line_items.py new file mode 100644 index 00000000..25a3af4d --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_order_information_line_items.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_order_information_line_items import TssV2TransactionsGet200ResponseOrderInformationLineItems + + +class TestTssV2TransactionsGet200ResponseOrderInformationLineItems(unittest.TestCase): + """ TssV2TransactionsGet200ResponseOrderInformationLineItems unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseOrderInformationLineItems(self): + """ + Test TssV2TransactionsGet200ResponseOrderInformationLineItems + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_order_information_line_items.TssV2TransactionsGet200ResponseOrderInformationLineItems() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_order_information_ship_to.py b/test/test_tss_v2_transactions_get200_response_order_information_ship_to.py new file mode 100644 index 00000000..c0fe51b9 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_order_information_ship_to.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_order_information_ship_to import TssV2TransactionsGet200ResponseOrderInformationShipTo + + +class TestTssV2TransactionsGet200ResponseOrderInformationShipTo(unittest.TestCase): + """ TssV2TransactionsGet200ResponseOrderInformationShipTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseOrderInformationShipTo(self): + """ + Test TssV2TransactionsGet200ResponseOrderInformationShipTo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_order_information_ship_to.TssV2TransactionsGet200ResponseOrderInformationShipTo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_order_information_shipping_details.py b/test/test_tss_v2_transactions_get200_response_order_information_shipping_details.py new file mode 100644 index 00000000..33d38a52 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_order_information_shipping_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_order_information_shipping_details import TssV2TransactionsGet200ResponseOrderInformationShippingDetails + + +class TestTssV2TransactionsGet200ResponseOrderInformationShippingDetails(unittest.TestCase): + """ TssV2TransactionsGet200ResponseOrderInformationShippingDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseOrderInformationShippingDetails(self): + """ + Test TssV2TransactionsGet200ResponseOrderInformationShippingDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_order_information_shipping_details.TssV2TransactionsGet200ResponseOrderInformationShippingDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_payment_information.py b/test/test_tss_v2_transactions_get200_response_payment_information.py new file mode 100644 index 00000000..d374b974 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_payment_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_payment_information import TssV2TransactionsGet200ResponsePaymentInformation + + +class TestTssV2TransactionsGet200ResponsePaymentInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponsePaymentInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponsePaymentInformation(self): + """ + Test TssV2TransactionsGet200ResponsePaymentInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_payment_information.TssV2TransactionsGet200ResponsePaymentInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_payment_information_account_features.py b/test/test_tss_v2_transactions_get200_response_payment_information_account_features.py new file mode 100644 index 00000000..a2b913a3 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_payment_information_account_features.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_payment_information_account_features import TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures + + +class TestTssV2TransactionsGet200ResponsePaymentInformationAccountFeatures(unittest.TestCase): + """ TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponsePaymentInformationAccountFeatures(self): + """ + Test TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_payment_information_account_features.TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_payment_information_bank.py b/test/test_tss_v2_transactions_get200_response_payment_information_bank.py new file mode 100644 index 00000000..14346a85 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_payment_information_bank.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_payment_information_bank import TssV2TransactionsGet200ResponsePaymentInformationBank + + +class TestTssV2TransactionsGet200ResponsePaymentInformationBank(unittest.TestCase): + """ TssV2TransactionsGet200ResponsePaymentInformationBank unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponsePaymentInformationBank(self): + """ + Test TssV2TransactionsGet200ResponsePaymentInformationBank + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_payment_information_bank.TssV2TransactionsGet200ResponsePaymentInformationBank() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_payment_information_bank_account.py b/test/test_tss_v2_transactions_get200_response_payment_information_bank_account.py new file mode 100644 index 00000000..0b27e5a4 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_payment_information_bank_account.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_payment_information_bank_account import TssV2TransactionsGet200ResponsePaymentInformationBankAccount + + +class TestTssV2TransactionsGet200ResponsePaymentInformationBankAccount(unittest.TestCase): + """ TssV2TransactionsGet200ResponsePaymentInformationBankAccount unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponsePaymentInformationBankAccount(self): + """ + Test TssV2TransactionsGet200ResponsePaymentInformationBankAccount + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_payment_information_bank_account.TssV2TransactionsGet200ResponsePaymentInformationBankAccount() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_payment_information_bank_mandate.py b/test/test_tss_v2_transactions_get200_response_payment_information_bank_mandate.py new file mode 100644 index 00000000..b363ee28 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_payment_information_bank_mandate.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_payment_information_bank_mandate import TssV2TransactionsGet200ResponsePaymentInformationBankMandate + + +class TestTssV2TransactionsGet200ResponsePaymentInformationBankMandate(unittest.TestCase): + """ TssV2TransactionsGet200ResponsePaymentInformationBankMandate unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponsePaymentInformationBankMandate(self): + """ + Test TssV2TransactionsGet200ResponsePaymentInformationBankMandate + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_payment_information_bank_mandate.TssV2TransactionsGet200ResponsePaymentInformationBankMandate() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_payment_information_card.py b/test/test_tss_v2_transactions_get200_response_payment_information_card.py new file mode 100644 index 00000000..81844a08 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_payment_information_card.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_payment_information_card import TssV2TransactionsGet200ResponsePaymentInformationCard + + +class TestTssV2TransactionsGet200ResponsePaymentInformationCard(unittest.TestCase): + """ TssV2TransactionsGet200ResponsePaymentInformationCard unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponsePaymentInformationCard(self): + """ + Test TssV2TransactionsGet200ResponsePaymentInformationCard + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_payment_information_card.TssV2TransactionsGet200ResponsePaymentInformationCard() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_payment_information_invoice.py b/test/test_tss_v2_transactions_get200_response_payment_information_invoice.py new file mode 100644 index 00000000..0f1b3e81 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_payment_information_invoice.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_payment_information_invoice import TssV2TransactionsGet200ResponsePaymentInformationInvoice + + +class TestTssV2TransactionsGet200ResponsePaymentInformationInvoice(unittest.TestCase): + """ TssV2TransactionsGet200ResponsePaymentInformationInvoice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponsePaymentInformationInvoice(self): + """ + Test TssV2TransactionsGet200ResponsePaymentInformationInvoice + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_payment_information_invoice.TssV2TransactionsGet200ResponsePaymentInformationInvoice() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_payment_information_payment_type.py b/test/test_tss_v2_transactions_get200_response_payment_information_payment_type.py new file mode 100644 index 00000000..7de3b96d --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_payment_information_payment_type.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_payment_information_payment_type import TssV2TransactionsGet200ResponsePaymentInformationPaymentType + + +class TestTssV2TransactionsGet200ResponsePaymentInformationPaymentType(unittest.TestCase): + """ TssV2TransactionsGet200ResponsePaymentInformationPaymentType unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponsePaymentInformationPaymentType(self): + """ + Test TssV2TransactionsGet200ResponsePaymentInformationPaymentType + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_payment_information_payment_type.TssV2TransactionsGet200ResponsePaymentInformationPaymentType() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_point_of_sale_information.py b/test/test_tss_v2_transactions_get200_response_point_of_sale_information.py new file mode 100644 index 00000000..2065f864 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_point_of_sale_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_point_of_sale_information import TssV2TransactionsGet200ResponsePointOfSaleInformation + + +class TestTssV2TransactionsGet200ResponsePointOfSaleInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponsePointOfSaleInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponsePointOfSaleInformation(self): + """ + Test TssV2TransactionsGet200ResponsePointOfSaleInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_point_of_sale_information.TssV2TransactionsGet200ResponsePointOfSaleInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_processing_information.py b/test/test_tss_v2_transactions_get200_response_processing_information.py new file mode 100644 index 00000000..f83ffb06 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_processing_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_processing_information import TssV2TransactionsGet200ResponseProcessingInformation + + +class TestTssV2TransactionsGet200ResponseProcessingInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseProcessingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseProcessingInformation(self): + """ + Test TssV2TransactionsGet200ResponseProcessingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_processing_information.TssV2TransactionsGet200ResponseProcessingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_processing_information_authorization_options.py b/test/test_tss_v2_transactions_get200_response_processing_information_authorization_options.py new file mode 100644 index 00000000..c4419fc1 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_processing_information_authorization_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_processing_information_authorization_options import TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions + + +class TestTssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions(unittest.TestCase): + """ TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions(self): + """ + Test TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_processing_information_authorization_options.TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_processing_information_bank_transfer_options.py b/test/test_tss_v2_transactions_get200_response_processing_information_bank_transfer_options.py new file mode 100644 index 00000000..a2d44a39 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_processing_information_bank_transfer_options.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_processing_information_bank_transfer_options import TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions + + +class TestTssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions(unittest.TestCase): + """ TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions(self): + """ + Test TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_processing_information_bank_transfer_options.TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_processor_information.py b/test/test_tss_v2_transactions_get200_response_processor_information.py new file mode 100644 index 00000000..9ddaf211 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_processor_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_processor_information import TssV2TransactionsGet200ResponseProcessorInformation + + +class TestTssV2TransactionsGet200ResponseProcessorInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseProcessorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseProcessorInformation(self): + """ + Test TssV2TransactionsGet200ResponseProcessorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_processor_information.TssV2TransactionsGet200ResponseProcessorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_processor_information_ach_verification.py b/test/test_tss_v2_transactions_get200_response_processor_information_ach_verification.py new file mode 100644 index 00000000..9452ec0f --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_processor_information_ach_verification.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_processor_information_ach_verification import TssV2TransactionsGet200ResponseProcessorInformationAchVerification + + +class TestTssV2TransactionsGet200ResponseProcessorInformationAchVerification(unittest.TestCase): + """ TssV2TransactionsGet200ResponseProcessorInformationAchVerification unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseProcessorInformationAchVerification(self): + """ + Test TssV2TransactionsGet200ResponseProcessorInformationAchVerification + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_processor_information_ach_verification.TssV2TransactionsGet200ResponseProcessorInformationAchVerification() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_processor_information_card_verification.py b/test/test_tss_v2_transactions_get200_response_processor_information_card_verification.py new file mode 100644 index 00000000..84dc4a3f --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_processor_information_card_verification.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_processor_information_card_verification import TssV2TransactionsGet200ResponseProcessorInformationCardVerification + + +class TestTssV2TransactionsGet200ResponseProcessorInformationCardVerification(unittest.TestCase): + """ TssV2TransactionsGet200ResponseProcessorInformationCardVerification unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseProcessorInformationCardVerification(self): + """ + Test TssV2TransactionsGet200ResponseProcessorInformationCardVerification + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_processor_information_card_verification.TssV2TransactionsGet200ResponseProcessorInformationCardVerification() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_processor_information_electronic_verification_results.py b/test/test_tss_v2_transactions_get200_response_processor_information_electronic_verification_results.py new file mode 100644 index 00000000..1f7cd957 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_processor_information_electronic_verification_results.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_processor_information_electronic_verification_results import TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults + + +class TestTssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults(unittest.TestCase): + """ TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults(self): + """ + Test TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_processor_information_electronic_verification_results.TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_processor_information_processor.py b/test/test_tss_v2_transactions_get200_response_processor_information_processor.py new file mode 100644 index 00000000..25927627 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_processor_information_processor.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_processor_information_processor import TssV2TransactionsGet200ResponseProcessorInformationProcessor + + +class TestTssV2TransactionsGet200ResponseProcessorInformationProcessor(unittest.TestCase): + """ TssV2TransactionsGet200ResponseProcessorInformationProcessor unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseProcessorInformationProcessor(self): + """ + Test TssV2TransactionsGet200ResponseProcessorInformationProcessor + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_processor_information_processor.TssV2TransactionsGet200ResponseProcessorInformationProcessor() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_risk_information.py b/test/test_tss_v2_transactions_get200_response_risk_information.py new file mode 100644 index 00000000..cacc4988 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_risk_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_risk_information import TssV2TransactionsGet200ResponseRiskInformation + + +class TestTssV2TransactionsGet200ResponseRiskInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseRiskInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseRiskInformation(self): + """ + Test TssV2TransactionsGet200ResponseRiskInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_risk_information.TssV2TransactionsGet200ResponseRiskInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_risk_information_profile.py b/test/test_tss_v2_transactions_get200_response_risk_information_profile.py new file mode 100644 index 00000000..1e979525 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_risk_information_profile.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_risk_information_profile import TssV2TransactionsGet200ResponseRiskInformationProfile + + +class TestTssV2TransactionsGet200ResponseRiskInformationProfile(unittest.TestCase): + """ TssV2TransactionsGet200ResponseRiskInformationProfile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseRiskInformationProfile(self): + """ + Test TssV2TransactionsGet200ResponseRiskInformationProfile + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_risk_information_profile.TssV2TransactionsGet200ResponseRiskInformationProfile() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_risk_information_score.py b/test/test_tss_v2_transactions_get200_response_risk_information_score.py new file mode 100644 index 00000000..2d69f672 --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_risk_information_score.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_risk_information_score import TssV2TransactionsGet200ResponseRiskInformationScore + + +class TestTssV2TransactionsGet200ResponseRiskInformationScore(unittest.TestCase): + """ TssV2TransactionsGet200ResponseRiskInformationScore unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseRiskInformationScore(self): + """ + Test TssV2TransactionsGet200ResponseRiskInformationScore + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_risk_information_score.TssV2TransactionsGet200ResponseRiskInformationScore() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_get200_response_sender_information.py b/test/test_tss_v2_transactions_get200_response_sender_information.py new file mode 100644 index 00000000..8d8a2eec --- /dev/null +++ b/test/test_tss_v2_transactions_get200_response_sender_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_get200_response_sender_information import TssV2TransactionsGet200ResponseSenderInformation + + +class TestTssV2TransactionsGet200ResponseSenderInformation(unittest.TestCase): + """ TssV2TransactionsGet200ResponseSenderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsGet200ResponseSenderInformation(self): + """ + Test TssV2TransactionsGet200ResponseSenderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_get200_response_sender_information.TssV2TransactionsGet200ResponseSenderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response.py b/test/test_tss_v2_transactions_post201_response.py new file mode 100644 index 00000000..28cdc701 --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response import TssV2TransactionsPost201Response + + +class TestTssV2TransactionsPost201Response(unittest.TestCase): + """ TssV2TransactionsPost201Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201Response(self): + """ + Test TssV2TransactionsPost201Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response.TssV2TransactionsPost201Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded.py b/test/test_tss_v2_transactions_post201_response__embedded.py new file mode 100644 index 00000000..4de1c7be --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded import TssV2TransactionsPost201ResponseEmbedded + + +class TestTssV2TransactionsPost201ResponseEmbedded(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbedded unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbedded(self): + """ + Test TssV2TransactionsPost201ResponseEmbedded + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded.TssV2TransactionsPost201ResponseEmbedded() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded__links.py b/test/test_tss_v2_transactions_post201_response__embedded__links.py new file mode 100644 index 00000000..067eaa9e --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded__links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks + + +class TestTssV2TransactionsPost201ResponseEmbeddedLinks(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedLinks(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded__links.TssV2TransactionsPost201ResponseEmbeddedLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_buyer_information.py b/test/test_tss_v2_transactions_post201_response__embedded_buyer_information.py new file mode 100644 index 00000000..75ebdb16 --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_buyer_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_buyer_information import TssV2TransactionsPost201ResponseEmbeddedBuyerInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedBuyerInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedBuyerInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedBuyerInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedBuyerInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_buyer_information.TssV2TransactionsPost201ResponseEmbeddedBuyerInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_client_reference_information.py b/test/test_tss_v2_transactions_post201_response__embedded_client_reference_information.py new file mode 100644 index 00000000..9ec12801 --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_client_reference_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_client_reference_information.TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_consumer_authentication_information.py b/test/test_tss_v2_transactions_post201_response__embedded_consumer_authentication_information.py new file mode 100644 index 00000000..e18f098b --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_consumer_authentication_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_consumer_authentication_information.TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_device_information.py b/test/test_tss_v2_transactions_post201_response__embedded_device_information.py new file mode 100644 index 00000000..c19319ce --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_device_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_device_information import TssV2TransactionsPost201ResponseEmbeddedDeviceInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedDeviceInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedDeviceInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedDeviceInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedDeviceInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_device_information.TssV2TransactionsPost201ResponseEmbeddedDeviceInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_merchant_information.py b/test/test_tss_v2_transactions_post201_response__embedded_merchant_information.py new file mode 100644 index 00000000..2b31101c --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_merchant_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_merchant_information import TssV2TransactionsPost201ResponseEmbeddedMerchantInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedMerchantInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedMerchantInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedMerchantInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedMerchantInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_merchant_information.TssV2TransactionsPost201ResponseEmbeddedMerchantInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_order_information.py b/test/test_tss_v2_transactions_post201_response__embedded_order_information.py new file mode 100644 index 00000000..740a17a6 --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_order_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_order_information import TssV2TransactionsPost201ResponseEmbeddedOrderInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedOrderInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedOrderInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedOrderInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedOrderInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_order_information.TssV2TransactionsPost201ResponseEmbeddedOrderInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_order_information_bill_to.py b/test/test_tss_v2_transactions_post201_response__embedded_order_information_bill_to.py new file mode 100644 index 00000000..2f710ada --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_order_information_bill_to.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_order_information_bill_to import TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo + + +class TestTssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_order_information_bill_to.TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_order_information_ship_to.py b/test/test_tss_v2_transactions_post201_response__embedded_order_information_ship_to.py new file mode 100644 index 00000000..10bfd78a --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_order_information_ship_to.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_order_information_ship_to import TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo + + +class TestTssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_order_information_ship_to.TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_payment_information.py b/test/test_tss_v2_transactions_post201_response__embedded_payment_information.py new file mode 100644 index 00000000..450a4f3b --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_payment_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_payment_information import TssV2TransactionsPost201ResponseEmbeddedPaymentInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedPaymentInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedPaymentInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedPaymentInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedPaymentInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_payment_information.TssV2TransactionsPost201ResponseEmbeddedPaymentInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_payment_information_card.py b/test/test_tss_v2_transactions_post201_response__embedded_payment_information_card.py new file mode 100644 index 00000000..df665dd0 --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_payment_information_card.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_payment_information_card import TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard + + +class TestTssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_payment_information_card.TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_payment_information_payment_method.py b/test/test_tss_v2_transactions_post201_response__embedded_payment_information_payment_method.py new file mode 100644 index 00000000..b73bbe0f --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_payment_information_payment_method.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_payment_information_payment_method import TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod + + +class TestTssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_payment_information_payment_method.TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentMethod() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_point_of_sale_information.py b/test/test_tss_v2_transactions_post201_response__embedded_point_of_sale_information.py new file mode 100644 index 00000000..8ede931e --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_point_of_sale_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_point_of_sale_information import TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_point_of_sale_information.TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.py b/test/test_tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.py new file mode 100644 index 00000000..02dd4c57 --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner import TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner + + +class TestTssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_processing_information.py b/test/test_tss_v2_transactions_post201_response__embedded_processing_information.py new file mode 100644 index 00000000..230de63b --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_processing_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_processing_information import TssV2TransactionsPost201ResponseEmbeddedProcessingInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedProcessingInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedProcessingInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedProcessingInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedProcessingInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_processing_information.TssV2TransactionsPost201ResponseEmbeddedProcessingInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_processor_information.py b/test/test_tss_v2_transactions_post201_response__embedded_processor_information.py new file mode 100644 index 00000000..2900c9c0 --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_processor_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_processor_information import TssV2TransactionsPost201ResponseEmbeddedProcessorInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedProcessorInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedProcessorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedProcessorInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedProcessorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_processor_information.TssV2TransactionsPost201ResponseEmbeddedProcessorInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_risk_information.py b/test/test_tss_v2_transactions_post201_response__embedded_risk_information.py new file mode 100644 index 00000000..f42305a1 --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_risk_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_risk_information import TssV2TransactionsPost201ResponseEmbeddedRiskInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedRiskInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedRiskInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedRiskInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedRiskInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_risk_information.TssV2TransactionsPost201ResponseEmbeddedRiskInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_risk_information_providers.py b/test/test_tss_v2_transactions_post201_response__embedded_risk_information_providers.py new file mode 100644 index 00000000..984b493c --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_risk_information_providers.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_risk_information_providers import TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders + + +class TestTssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_risk_information_providers.TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.py b/test/test_tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.py new file mode 100644 index 00000000..438fbcce --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint import TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint + + +class TestTssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_transaction_summaries.py b/test/test_tss_v2_transactions_post201_response__embedded_transaction_summaries.py new file mode 100644 index 00000000..13090050 --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_transaction_summaries.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_transaction_summaries import TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries + + +class TestTssV2TransactionsPost201ResponseEmbeddedTransactionSummaries(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedTransactionSummaries(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_transaction_summaries.TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post400_response.py b/test/test_tss_v2_transactions_post400_response.py new file mode 100644 index 00000000..1a089469 --- /dev/null +++ b/test/test_tss_v2_transactions_post400_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post400_response import TssV2TransactionsPost400Response + + +class TestTssV2TransactionsPost400Response(unittest.TestCase): + """ TssV2TransactionsPost400Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost400Response(self): + """ + Test TssV2TransactionsPost400Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post400_response.TssV2TransactionsPost400Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post_response.py b/test/test_tss_v2_transactions_post_response.py new file mode 100644 index 00000000..77662292 --- /dev/null +++ b/test/test_tss_v2_transactions_post_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post_response import TssV2TransactionsPostResponse + + +class TestTssV2TransactionsPostResponse(unittest.TestCase): + """ TssV2TransactionsPostResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPostResponse(self): + """ + Test TssV2TransactionsPostResponse + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post_response.TssV2TransactionsPostResponse() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ums_v1_users_get200_response.py b/test/test_ums_v1_users_get200_response.py new file mode 100644 index 00000000..0e6e4d8f --- /dev/null +++ b/test/test_ums_v1_users_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ums_v1_users_get200_response import UmsV1UsersGet200Response + + +class TestUmsV1UsersGet200Response(unittest.TestCase): + """ UmsV1UsersGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUmsV1UsersGet200Response(self): + """ + Test UmsV1UsersGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ums_v1_users_get200_response.UmsV1UsersGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ums_v1_users_get200_response_account_information.py b/test/test_ums_v1_users_get200_response_account_information.py new file mode 100644 index 00000000..66db8ef5 --- /dev/null +++ b/test/test_ums_v1_users_get200_response_account_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ums_v1_users_get200_response_account_information import UmsV1UsersGet200ResponseAccountInformation + + +class TestUmsV1UsersGet200ResponseAccountInformation(unittest.TestCase): + """ UmsV1UsersGet200ResponseAccountInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUmsV1UsersGet200ResponseAccountInformation(self): + """ + Test UmsV1UsersGet200ResponseAccountInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ums_v1_users_get200_response_account_information.UmsV1UsersGet200ResponseAccountInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ums_v1_users_get200_response_contact_information.py b/test/test_ums_v1_users_get200_response_contact_information.py new file mode 100644 index 00000000..fa46c74c --- /dev/null +++ b/test/test_ums_v1_users_get200_response_contact_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ums_v1_users_get200_response_contact_information import UmsV1UsersGet200ResponseContactInformation + + +class TestUmsV1UsersGet200ResponseContactInformation(unittest.TestCase): + """ UmsV1UsersGet200ResponseContactInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUmsV1UsersGet200ResponseContactInformation(self): + """ + Test UmsV1UsersGet200ResponseContactInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ums_v1_users_get200_response_contact_information.UmsV1UsersGet200ResponseContactInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ums_v1_users_get200_response_organization_information.py b/test/test_ums_v1_users_get200_response_organization_information.py new file mode 100644 index 00000000..c15a3d77 --- /dev/null +++ b/test/test_ums_v1_users_get200_response_organization_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ums_v1_users_get200_response_organization_information import UmsV1UsersGet200ResponseOrganizationInformation + + +class TestUmsV1UsersGet200ResponseOrganizationInformation(unittest.TestCase): + """ UmsV1UsersGet200ResponseOrganizationInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUmsV1UsersGet200ResponseOrganizationInformation(self): + """ + Test UmsV1UsersGet200ResponseOrganizationInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ums_v1_users_get200_response_organization_information.UmsV1UsersGet200ResponseOrganizationInformation() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ums_v1_users_get200_response_users.py b/test/test_ums_v1_users_get200_response_users.py new file mode 100644 index 00000000..fe15d65c --- /dev/null +++ b/test/test_ums_v1_users_get200_response_users.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.ums_v1_users_get200_response_users import UmsV1UsersGet200ResponseUsers + + +class TestUmsV1UsersGet200ResponseUsers(unittest.TestCase): + """ UmsV1UsersGet200ResponseUsers unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUmsV1UsersGet200ResponseUsers(self): + """ + Test UmsV1UsersGet200ResponseUsers + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.ums_v1_users_get200_response_users.UmsV1UsersGet200ResponseUsers() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_management_api.py b/test/test_user_management_api.py new file mode 100644 index 00000000..e7b6609e --- /dev/null +++ b/test/test_user_management_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.apis.user_management_api import UserManagementApi + + +class TestUserManagementApi(unittest.TestCase): + """ UserManagementApi unit test stubs """ + + def setUp(self): + self.api = CyberSource.apis.user_management_api.UserManagementApi() + + def tearDown(self): + pass + + def test_get_users(self): + """ + Test case for get_users + + Get user based on organization Id, username, permission and role + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_file_details_get200_response.py b/test/test_v1_file_details_get200_response.py new file mode 100644 index 00000000..73d3ce48 --- /dev/null +++ b/test/test_v1_file_details_get200_response.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.v1_file_details_get200_response import V1FileDetailsGet200Response + + +class TestV1FileDetailsGet200Response(unittest.TestCase): + """ V1FileDetailsGet200Response unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FileDetailsGet200Response(self): + """ + Test V1FileDetailsGet200Response + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.v1_file_details_get200_response.V1FileDetailsGet200Response() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_file_details_get200_response__links.py b/test/test_v1_file_details_get200_response__links.py new file mode 100644 index 00000000..f55afad7 --- /dev/null +++ b/test/test_v1_file_details_get200_response__links.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.v1_file_details_get200_response__links import V1FileDetailsGet200ResponseLinks + + +class TestV1FileDetailsGet200ResponseLinks(unittest.TestCase): + """ V1FileDetailsGet200ResponseLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FileDetailsGet200ResponseLinks(self): + """ + Test V1FileDetailsGet200ResponseLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.v1_file_details_get200_response__links.V1FileDetailsGet200ResponseLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_file_details_get200_response__links_files.py b/test/test_v1_file_details_get200_response__links_files.py new file mode 100644 index 00000000..50499198 --- /dev/null +++ b/test/test_v1_file_details_get200_response__links_files.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.v1_file_details_get200_response__links_files import V1FileDetailsGet200ResponseLinksFiles + + +class TestV1FileDetailsGet200ResponseLinksFiles(unittest.TestCase): + """ V1FileDetailsGet200ResponseLinksFiles unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FileDetailsGet200ResponseLinksFiles(self): + """ + Test V1FileDetailsGet200ResponseLinksFiles + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.v1_file_details_get200_response__links_files.V1FileDetailsGet200ResponseLinksFiles() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_file_details_get200_response__links_self.py b/test/test_v1_file_details_get200_response__links_self.py new file mode 100644 index 00000000..4ebf34fb --- /dev/null +++ b/test/test_v1_file_details_get200_response__links_self.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.v1_file_details_get200_response__links_self import V1FileDetailsGet200ResponseLinksSelf + + +class TestV1FileDetailsGet200ResponseLinksSelf(unittest.TestCase): + """ V1FileDetailsGet200ResponseLinksSelf unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FileDetailsGet200ResponseLinksSelf(self): + """ + Test V1FileDetailsGet200ResponseLinksSelf + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.v1_file_details_get200_response__links_self.V1FileDetailsGet200ResponseLinksSelf() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_file_details_get200_response_file_details.py b/test/test_v1_file_details_get200_response_file_details.py new file mode 100644 index 00000000..795545bc --- /dev/null +++ b/test/test_v1_file_details_get200_response_file_details.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Flex API + + Simple PAN tokenization service + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.v1_file_details_get200_response_file_details import V1FileDetailsGet200ResponseFileDetails + + +class TestV1FileDetailsGet200ResponseFileDetails(unittest.TestCase): + """ V1FileDetailsGet200ResponseFileDetails unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1FileDetailsGet200ResponseFileDetails(self): + """ + Test V1FileDetailsGet200ResponseFileDetails + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.v1_file_details_get200_response_file_details.V1FileDetailsGet200ResponseFileDetails() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v2credits_point_of_sale_information.py b/test/test_v2credits_point_of_sale_information.py deleted file mode 100644 index 38938e03..00000000 --- a/test/test_v2credits_point_of_sale_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2credits_point_of_sale_information import V2creditsPointOfSaleInformation - - -class TestV2creditsPointOfSaleInformation(unittest.TestCase): - """ V2creditsPointOfSaleInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2creditsPointOfSaleInformation(self): - """ - Test V2creditsPointOfSaleInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2credits_point_of_sale_information.V2creditsPointOfSaleInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2credits_point_of_sale_information_emv.py b/test/test_v2credits_point_of_sale_information_emv.py deleted file mode 100644 index 4c0027a8..00000000 --- a/test/test_v2credits_point_of_sale_information_emv.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2credits_point_of_sale_information_emv import V2creditsPointOfSaleInformationEmv - - -class TestV2creditsPointOfSaleInformationEmv(unittest.TestCase): - """ V2creditsPointOfSaleInformationEmv unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2creditsPointOfSaleInformationEmv(self): - """ - Test V2creditsPointOfSaleInformationEmv - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2credits_point_of_sale_information_emv.V2creditsPointOfSaleInformationEmv() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2credits_processing_information.py b/test/test_v2credits_processing_information.py deleted file mode 100644 index a57f9692..00000000 --- a/test/test_v2credits_processing_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2credits_processing_information import V2creditsProcessingInformation - - -class TestV2creditsProcessingInformation(unittest.TestCase): - """ V2creditsProcessingInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2creditsProcessingInformation(self): - """ - Test V2creditsProcessingInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2credits_processing_information.V2creditsProcessingInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_aggregator_information.py b/test/test_v2payments_aggregator_information.py deleted file mode 100644 index 74f40b2a..00000000 --- a/test/test_v2payments_aggregator_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_aggregator_information import V2paymentsAggregatorInformation - - -class TestV2paymentsAggregatorInformation(unittest.TestCase): - """ V2paymentsAggregatorInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsAggregatorInformation(self): - """ - Test V2paymentsAggregatorInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_aggregator_information.V2paymentsAggregatorInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_aggregator_information_sub_merchant.py b/test/test_v2payments_aggregator_information_sub_merchant.py deleted file mode 100644 index 6c383a74..00000000 --- a/test/test_v2payments_aggregator_information_sub_merchant.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_aggregator_information_sub_merchant import V2paymentsAggregatorInformationSubMerchant - - -class TestV2paymentsAggregatorInformationSubMerchant(unittest.TestCase): - """ V2paymentsAggregatorInformationSubMerchant unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsAggregatorInformationSubMerchant(self): - """ - Test V2paymentsAggregatorInformationSubMerchant - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_aggregator_information_sub_merchant.V2paymentsAggregatorInformationSubMerchant() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_buyer_information.py b/test/test_v2payments_buyer_information.py deleted file mode 100644 index fea2b822..00000000 --- a/test/test_v2payments_buyer_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_buyer_information import V2paymentsBuyerInformation - - -class TestV2paymentsBuyerInformation(unittest.TestCase): - """ V2paymentsBuyerInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsBuyerInformation(self): - """ - Test V2paymentsBuyerInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_buyer_information.V2paymentsBuyerInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_buyer_information_personal_identification.py b/test/test_v2payments_buyer_information_personal_identification.py deleted file mode 100644 index 180e7e00..00000000 --- a/test/test_v2payments_buyer_information_personal_identification.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_buyer_information_personal_identification import V2paymentsBuyerInformationPersonalIdentification - - -class TestV2paymentsBuyerInformationPersonalIdentification(unittest.TestCase): - """ V2paymentsBuyerInformationPersonalIdentification unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsBuyerInformationPersonalIdentification(self): - """ - Test V2paymentsBuyerInformationPersonalIdentification - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_buyer_information_personal_identification.V2paymentsBuyerInformationPersonalIdentification() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_client_reference_information.py b/test/test_v2payments_client_reference_information.py deleted file mode 100644 index f77033d4..00000000 --- a/test/test_v2payments_client_reference_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_client_reference_information import V2paymentsClientReferenceInformation - - -class TestV2paymentsClientReferenceInformation(unittest.TestCase): - """ V2paymentsClientReferenceInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsClientReferenceInformation(self): - """ - Test V2paymentsClientReferenceInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_client_reference_information.V2paymentsClientReferenceInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_consumer_authentication_information.py b/test/test_v2payments_consumer_authentication_information.py deleted file mode 100644 index 50ab3781..00000000 --- a/test/test_v2payments_consumer_authentication_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_consumer_authentication_information import V2paymentsConsumerAuthenticationInformation - - -class TestV2paymentsConsumerAuthenticationInformation(unittest.TestCase): - """ V2paymentsConsumerAuthenticationInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsConsumerAuthenticationInformation(self): - """ - Test V2paymentsConsumerAuthenticationInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_consumer_authentication_information.V2paymentsConsumerAuthenticationInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_device_information.py b/test/test_v2payments_device_information.py deleted file mode 100644 index a38379f0..00000000 --- a/test/test_v2payments_device_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_device_information import V2paymentsDeviceInformation - - -class TestV2paymentsDeviceInformation(unittest.TestCase): - """ V2paymentsDeviceInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsDeviceInformation(self): - """ - Test V2paymentsDeviceInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_device_information.V2paymentsDeviceInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_merchant_defined_information.py b/test/test_v2payments_merchant_defined_information.py deleted file mode 100644 index fbc74179..00000000 --- a/test/test_v2payments_merchant_defined_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_merchant_defined_information import V2paymentsMerchantDefinedInformation - - -class TestV2paymentsMerchantDefinedInformation(unittest.TestCase): - """ V2paymentsMerchantDefinedInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsMerchantDefinedInformation(self): - """ - Test V2paymentsMerchantDefinedInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_merchant_defined_information.V2paymentsMerchantDefinedInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_merchant_information.py b/test/test_v2payments_merchant_information.py deleted file mode 100644 index 02100ebb..00000000 --- a/test/test_v2payments_merchant_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_merchant_information import V2paymentsMerchantInformation - - -class TestV2paymentsMerchantInformation(unittest.TestCase): - """ V2paymentsMerchantInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsMerchantInformation(self): - """ - Test V2paymentsMerchantInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_merchant_information.V2paymentsMerchantInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_merchant_information_merchant_descriptor.py b/test/test_v2payments_merchant_information_merchant_descriptor.py deleted file mode 100644 index 5a764345..00000000 --- a/test/test_v2payments_merchant_information_merchant_descriptor.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_merchant_information_merchant_descriptor import V2paymentsMerchantInformationMerchantDescriptor - - -class TestV2paymentsMerchantInformationMerchantDescriptor(unittest.TestCase): - """ V2paymentsMerchantInformationMerchantDescriptor unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsMerchantInformationMerchantDescriptor(self): - """ - Test V2paymentsMerchantInformationMerchantDescriptor - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_merchant_information_merchant_descriptor.V2paymentsMerchantInformationMerchantDescriptor() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information.py b/test/test_v2payments_order_information.py deleted file mode 100644 index ab834228..00000000 --- a/test/test_v2payments_order_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information import V2paymentsOrderInformation - - -class TestV2paymentsOrderInformation(unittest.TestCase): - """ V2paymentsOrderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformation(self): - """ - Test V2paymentsOrderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information.V2paymentsOrderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information_amount_details.py b/test/test_v2payments_order_information_amount_details.py deleted file mode 100644 index 2111f671..00000000 --- a/test/test_v2payments_order_information_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information_amount_details import V2paymentsOrderInformationAmountDetails - - -class TestV2paymentsOrderInformationAmountDetails(unittest.TestCase): - """ V2paymentsOrderInformationAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformationAmountDetails(self): - """ - Test V2paymentsOrderInformationAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information_amount_details.V2paymentsOrderInformationAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information_amount_details_amex_additional_amounts.py b/test/test_v2payments_order_information_amount_details_amex_additional_amounts.py deleted file mode 100644 index 4746ad75..00000000 --- a/test/test_v2payments_order_information_amount_details_amex_additional_amounts.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information_amount_details_amex_additional_amounts import V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts - - -class TestV2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts(unittest.TestCase): - """ V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts(self): - """ - Test V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information_amount_details_amex_additional_amounts.V2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information_amount_details_surcharge.py b/test/test_v2payments_order_information_amount_details_surcharge.py deleted file mode 100644 index 0a67956d..00000000 --- a/test/test_v2payments_order_information_amount_details_surcharge.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information_amount_details_surcharge import V2paymentsOrderInformationAmountDetailsSurcharge - - -class TestV2paymentsOrderInformationAmountDetailsSurcharge(unittest.TestCase): - """ V2paymentsOrderInformationAmountDetailsSurcharge unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformationAmountDetailsSurcharge(self): - """ - Test V2paymentsOrderInformationAmountDetailsSurcharge - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information_amount_details_surcharge.V2paymentsOrderInformationAmountDetailsSurcharge() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information_amount_details_tax_details.py b/test/test_v2payments_order_information_amount_details_tax_details.py deleted file mode 100644 index 19cbd0cf..00000000 --- a/test/test_v2payments_order_information_amount_details_tax_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information_amount_details_tax_details import V2paymentsOrderInformationAmountDetailsTaxDetails - - -class TestV2paymentsOrderInformationAmountDetailsTaxDetails(unittest.TestCase): - """ V2paymentsOrderInformationAmountDetailsTaxDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformationAmountDetailsTaxDetails(self): - """ - Test V2paymentsOrderInformationAmountDetailsTaxDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information_amount_details_tax_details.V2paymentsOrderInformationAmountDetailsTaxDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information_bill_to.py b/test/test_v2payments_order_information_bill_to.py deleted file mode 100644 index d74b8d98..00000000 --- a/test/test_v2payments_order_information_bill_to.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information_bill_to import V2paymentsOrderInformationBillTo - - -class TestV2paymentsOrderInformationBillTo(unittest.TestCase): - """ V2paymentsOrderInformationBillTo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformationBillTo(self): - """ - Test V2paymentsOrderInformationBillTo - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information_bill_to.V2paymentsOrderInformationBillTo() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information_invoice_details.py b/test/test_v2payments_order_information_invoice_details.py deleted file mode 100644 index ed3b86e3..00000000 --- a/test/test_v2payments_order_information_invoice_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information_invoice_details import V2paymentsOrderInformationInvoiceDetails - - -class TestV2paymentsOrderInformationInvoiceDetails(unittest.TestCase): - """ V2paymentsOrderInformationInvoiceDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformationInvoiceDetails(self): - """ - Test V2paymentsOrderInformationInvoiceDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information_invoice_details.V2paymentsOrderInformationInvoiceDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information_invoice_details_transaction_advice_addendum.py b/test/test_v2payments_order_information_invoice_details_transaction_advice_addendum.py deleted file mode 100644 index 5bb96bfd..00000000 --- a/test/test_v2payments_order_information_invoice_details_transaction_advice_addendum.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information_invoice_details_transaction_advice_addendum import V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum - - -class TestV2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum(unittest.TestCase): - """ V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum(self): - """ - Test V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information_invoice_details_transaction_advice_addendum.V2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information_line_items.py b/test/test_v2payments_order_information_line_items.py deleted file mode 100644 index 434585cb..00000000 --- a/test/test_v2payments_order_information_line_items.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information_line_items import V2paymentsOrderInformationLineItems - - -class TestV2paymentsOrderInformationLineItems(unittest.TestCase): - """ V2paymentsOrderInformationLineItems unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformationLineItems(self): - """ - Test V2paymentsOrderInformationLineItems - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information_line_items.V2paymentsOrderInformationLineItems() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information_ship_to.py b/test/test_v2payments_order_information_ship_to.py deleted file mode 100644 index ca4ac96e..00000000 --- a/test/test_v2payments_order_information_ship_to.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information_ship_to import V2paymentsOrderInformationShipTo - - -class TestV2paymentsOrderInformationShipTo(unittest.TestCase): - """ V2paymentsOrderInformationShipTo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformationShipTo(self): - """ - Test V2paymentsOrderInformationShipTo - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information_ship_to.V2paymentsOrderInformationShipTo() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_order_information_shipping_details.py b/test/test_v2payments_order_information_shipping_details.py deleted file mode 100644 index 9e475b71..00000000 --- a/test/test_v2payments_order_information_shipping_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_order_information_shipping_details import V2paymentsOrderInformationShippingDetails - - -class TestV2paymentsOrderInformationShippingDetails(unittest.TestCase): - """ V2paymentsOrderInformationShippingDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsOrderInformationShippingDetails(self): - """ - Test V2paymentsOrderInformationShippingDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_order_information_shipping_details.V2paymentsOrderInformationShippingDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_payment_information.py b/test/test_v2payments_payment_information.py deleted file mode 100644 index 63554525..00000000 --- a/test/test_v2payments_payment_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_payment_information import V2paymentsPaymentInformation - - -class TestV2paymentsPaymentInformation(unittest.TestCase): - """ V2paymentsPaymentInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsPaymentInformation(self): - """ - Test V2paymentsPaymentInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_payment_information.V2paymentsPaymentInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_payment_information_card.py b/test/test_v2payments_payment_information_card.py deleted file mode 100644 index 27f37764..00000000 --- a/test/test_v2payments_payment_information_card.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_payment_information_card import V2paymentsPaymentInformationCard - - -class TestV2paymentsPaymentInformationCard(unittest.TestCase): - """ V2paymentsPaymentInformationCard unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsPaymentInformationCard(self): - """ - Test V2paymentsPaymentInformationCard - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_payment_information_card.V2paymentsPaymentInformationCard() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_payment_information_customer.py b/test/test_v2payments_payment_information_customer.py deleted file mode 100644 index ec470878..00000000 --- a/test/test_v2payments_payment_information_customer.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_payment_information_customer import V2paymentsPaymentInformationCustomer - - -class TestV2paymentsPaymentInformationCustomer(unittest.TestCase): - """ V2paymentsPaymentInformationCustomer unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsPaymentInformationCustomer(self): - """ - Test V2paymentsPaymentInformationCustomer - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_payment_information_customer.V2paymentsPaymentInformationCustomer() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_payment_information_fluid_data.py b/test/test_v2payments_payment_information_fluid_data.py deleted file mode 100644 index 83de2f74..00000000 --- a/test/test_v2payments_payment_information_fluid_data.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_payment_information_fluid_data import V2paymentsPaymentInformationFluidData - - -class TestV2paymentsPaymentInformationFluidData(unittest.TestCase): - """ V2paymentsPaymentInformationFluidData unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsPaymentInformationFluidData(self): - """ - Test V2paymentsPaymentInformationFluidData - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_payment_information_fluid_data.V2paymentsPaymentInformationFluidData() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_payment_information_tokenized_card.py b/test/test_v2payments_payment_information_tokenized_card.py deleted file mode 100644 index fdb7be96..00000000 --- a/test/test_v2payments_payment_information_tokenized_card.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_payment_information_tokenized_card import V2paymentsPaymentInformationTokenizedCard - - -class TestV2paymentsPaymentInformationTokenizedCard(unittest.TestCase): - """ V2paymentsPaymentInformationTokenizedCard unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsPaymentInformationTokenizedCard(self): - """ - Test V2paymentsPaymentInformationTokenizedCard - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_payment_information_tokenized_card.V2paymentsPaymentInformationTokenizedCard() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_point_of_sale_information.py b/test/test_v2payments_point_of_sale_information.py deleted file mode 100644 index 70bb61b9..00000000 --- a/test/test_v2payments_point_of_sale_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_point_of_sale_information import V2paymentsPointOfSaleInformation - - -class TestV2paymentsPointOfSaleInformation(unittest.TestCase): - """ V2paymentsPointOfSaleInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsPointOfSaleInformation(self): - """ - Test V2paymentsPointOfSaleInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_point_of_sale_information.V2paymentsPointOfSaleInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_point_of_sale_information_emv.py b/test/test_v2payments_point_of_sale_information_emv.py deleted file mode 100644 index 8d6d73bb..00000000 --- a/test/test_v2payments_point_of_sale_information_emv.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_point_of_sale_information_emv import V2paymentsPointOfSaleInformationEmv - - -class TestV2paymentsPointOfSaleInformationEmv(unittest.TestCase): - """ V2paymentsPointOfSaleInformationEmv unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsPointOfSaleInformationEmv(self): - """ - Test V2paymentsPointOfSaleInformationEmv - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_point_of_sale_information_emv.V2paymentsPointOfSaleInformationEmv() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_processing_information.py b/test/test_v2payments_processing_information.py deleted file mode 100644 index 31e9f77a..00000000 --- a/test/test_v2payments_processing_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_processing_information import V2paymentsProcessingInformation - - -class TestV2paymentsProcessingInformation(unittest.TestCase): - """ V2paymentsProcessingInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsProcessingInformation(self): - """ - Test V2paymentsProcessingInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_processing_information.V2paymentsProcessingInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_processing_information_authorization_options.py b/test/test_v2payments_processing_information_authorization_options.py deleted file mode 100644 index 48da1f17..00000000 --- a/test/test_v2payments_processing_information_authorization_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_processing_information_authorization_options import V2paymentsProcessingInformationAuthorizationOptions - - -class TestV2paymentsProcessingInformationAuthorizationOptions(unittest.TestCase): - """ V2paymentsProcessingInformationAuthorizationOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsProcessingInformationAuthorizationOptions(self): - """ - Test V2paymentsProcessingInformationAuthorizationOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_processing_information_authorization_options.V2paymentsProcessingInformationAuthorizationOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_processing_information_authorization_options_initiator.py b/test/test_v2payments_processing_information_authorization_options_initiator.py deleted file mode 100644 index fab4ca03..00000000 --- a/test/test_v2payments_processing_information_authorization_options_initiator.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_processing_information_authorization_options_initiator import V2paymentsProcessingInformationAuthorizationOptionsInitiator - - -class TestV2paymentsProcessingInformationAuthorizationOptionsInitiator(unittest.TestCase): - """ V2paymentsProcessingInformationAuthorizationOptionsInitiator unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsProcessingInformationAuthorizationOptionsInitiator(self): - """ - Test V2paymentsProcessingInformationAuthorizationOptionsInitiator - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_processing_information_authorization_options_initiator.V2paymentsProcessingInformationAuthorizationOptionsInitiator() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction.py b/test/test_v2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction.py deleted file mode 100644 index f5150b24..00000000 --- a/test/test_v2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction import V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - - -class TestV2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(unittest.TestCase): - """ V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction(self): - """ - Test V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction.V2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_processing_information_capture_options.py b/test/test_v2payments_processing_information_capture_options.py deleted file mode 100644 index fbe38b30..00000000 --- a/test/test_v2payments_processing_information_capture_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_processing_information_capture_options import V2paymentsProcessingInformationCaptureOptions - - -class TestV2paymentsProcessingInformationCaptureOptions(unittest.TestCase): - """ V2paymentsProcessingInformationCaptureOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsProcessingInformationCaptureOptions(self): - """ - Test V2paymentsProcessingInformationCaptureOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_processing_information_capture_options.V2paymentsProcessingInformationCaptureOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_processing_information_issuer.py b/test/test_v2payments_processing_information_issuer.py deleted file mode 100644 index ae0a1391..00000000 --- a/test/test_v2payments_processing_information_issuer.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_processing_information_issuer import V2paymentsProcessingInformationIssuer - - -class TestV2paymentsProcessingInformationIssuer(unittest.TestCase): - """ V2paymentsProcessingInformationIssuer unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsProcessingInformationIssuer(self): - """ - Test V2paymentsProcessingInformationIssuer - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_processing_information_issuer.V2paymentsProcessingInformationIssuer() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_processing_information_recurring_options.py b/test/test_v2payments_processing_information_recurring_options.py deleted file mode 100644 index 5904ab93..00000000 --- a/test/test_v2payments_processing_information_recurring_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_processing_information_recurring_options import V2paymentsProcessingInformationRecurringOptions - - -class TestV2paymentsProcessingInformationRecurringOptions(unittest.TestCase): - """ V2paymentsProcessingInformationRecurringOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsProcessingInformationRecurringOptions(self): - """ - Test V2paymentsProcessingInformationRecurringOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_processing_information_recurring_options.V2paymentsProcessingInformationRecurringOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payments_recipient_information.py b/test/test_v2payments_recipient_information.py deleted file mode 100644 index 4ce28c15..00000000 --- a/test/test_v2payments_recipient_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payments_recipient_information import V2paymentsRecipientInformation - - -class TestV2paymentsRecipientInformation(unittest.TestCase): - """ V2paymentsRecipientInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsRecipientInformation(self): - """ - Test V2paymentsRecipientInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payments_recipient_information.V2paymentsRecipientInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_aggregator_information.py b/test/test_v2paymentsidcaptures_aggregator_information.py deleted file mode 100644 index 6ac120c3..00000000 --- a/test/test_v2paymentsidcaptures_aggregator_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_aggregator_information import V2paymentsidcapturesAggregatorInformation - - -class TestV2paymentsidcapturesAggregatorInformation(unittest.TestCase): - """ V2paymentsidcapturesAggregatorInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesAggregatorInformation(self): - """ - Test V2paymentsidcapturesAggregatorInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_aggregator_information.V2paymentsidcapturesAggregatorInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_aggregator_information_sub_merchant.py b/test/test_v2paymentsidcaptures_aggregator_information_sub_merchant.py deleted file mode 100644 index e1555610..00000000 --- a/test/test_v2paymentsidcaptures_aggregator_information_sub_merchant.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_aggregator_information_sub_merchant import V2paymentsidcapturesAggregatorInformationSubMerchant - - -class TestV2paymentsidcapturesAggregatorInformationSubMerchant(unittest.TestCase): - """ V2paymentsidcapturesAggregatorInformationSubMerchant unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesAggregatorInformationSubMerchant(self): - """ - Test V2paymentsidcapturesAggregatorInformationSubMerchant - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_aggregator_information_sub_merchant.V2paymentsidcapturesAggregatorInformationSubMerchant() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_buyer_information.py b/test/test_v2paymentsidcaptures_buyer_information.py deleted file mode 100644 index ec2805d7..00000000 --- a/test/test_v2paymentsidcaptures_buyer_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_buyer_information import V2paymentsidcapturesBuyerInformation - - -class TestV2paymentsidcapturesBuyerInformation(unittest.TestCase): - """ V2paymentsidcapturesBuyerInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesBuyerInformation(self): - """ - Test V2paymentsidcapturesBuyerInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_buyer_information.V2paymentsidcapturesBuyerInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_merchant_information.py b/test/test_v2paymentsidcaptures_merchant_information.py deleted file mode 100644 index 6f45760f..00000000 --- a/test/test_v2paymentsidcaptures_merchant_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_merchant_information import V2paymentsidcapturesMerchantInformation - - -class TestV2paymentsidcapturesMerchantInformation(unittest.TestCase): - """ V2paymentsidcapturesMerchantInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesMerchantInformation(self): - """ - Test V2paymentsidcapturesMerchantInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_merchant_information.V2paymentsidcapturesMerchantInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_order_information.py b/test/test_v2paymentsidcaptures_order_information.py deleted file mode 100644 index c7c2f15e..00000000 --- a/test/test_v2paymentsidcaptures_order_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_order_information import V2paymentsidcapturesOrderInformation - - -class TestV2paymentsidcapturesOrderInformation(unittest.TestCase): - """ V2paymentsidcapturesOrderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesOrderInformation(self): - """ - Test V2paymentsidcapturesOrderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_order_information.V2paymentsidcapturesOrderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_order_information_amount_details.py b/test/test_v2paymentsidcaptures_order_information_amount_details.py deleted file mode 100644 index 613db17b..00000000 --- a/test/test_v2paymentsidcaptures_order_information_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_order_information_amount_details import V2paymentsidcapturesOrderInformationAmountDetails - - -class TestV2paymentsidcapturesOrderInformationAmountDetails(unittest.TestCase): - """ V2paymentsidcapturesOrderInformationAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesOrderInformationAmountDetails(self): - """ - Test V2paymentsidcapturesOrderInformationAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_order_information_amount_details.V2paymentsidcapturesOrderInformationAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_order_information_bill_to.py b/test/test_v2paymentsidcaptures_order_information_bill_to.py deleted file mode 100644 index 7e66d146..00000000 --- a/test/test_v2paymentsidcaptures_order_information_bill_to.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_order_information_bill_to import V2paymentsidcapturesOrderInformationBillTo - - -class TestV2paymentsidcapturesOrderInformationBillTo(unittest.TestCase): - """ V2paymentsidcapturesOrderInformationBillTo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesOrderInformationBillTo(self): - """ - Test V2paymentsidcapturesOrderInformationBillTo - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_order_information_bill_to.V2paymentsidcapturesOrderInformationBillTo() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_order_information_invoice_details.py b/test/test_v2paymentsidcaptures_order_information_invoice_details.py deleted file mode 100644 index a85ea58c..00000000 --- a/test/test_v2paymentsidcaptures_order_information_invoice_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_order_information_invoice_details import V2paymentsidcapturesOrderInformationInvoiceDetails - - -class TestV2paymentsidcapturesOrderInformationInvoiceDetails(unittest.TestCase): - """ V2paymentsidcapturesOrderInformationInvoiceDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesOrderInformationInvoiceDetails(self): - """ - Test V2paymentsidcapturesOrderInformationInvoiceDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_order_information_invoice_details.V2paymentsidcapturesOrderInformationInvoiceDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_order_information_ship_to.py b/test/test_v2paymentsidcaptures_order_information_ship_to.py deleted file mode 100644 index 59b0f0a8..00000000 --- a/test/test_v2paymentsidcaptures_order_information_ship_to.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_order_information_ship_to import V2paymentsidcapturesOrderInformationShipTo - - -class TestV2paymentsidcapturesOrderInformationShipTo(unittest.TestCase): - """ V2paymentsidcapturesOrderInformationShipTo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesOrderInformationShipTo(self): - """ - Test V2paymentsidcapturesOrderInformationShipTo - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_order_information_ship_to.V2paymentsidcapturesOrderInformationShipTo() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_order_information_shipping_details.py b/test/test_v2paymentsidcaptures_order_information_shipping_details.py deleted file mode 100644 index 4198efca..00000000 --- a/test/test_v2paymentsidcaptures_order_information_shipping_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_order_information_shipping_details import V2paymentsidcapturesOrderInformationShippingDetails - - -class TestV2paymentsidcapturesOrderInformationShippingDetails(unittest.TestCase): - """ V2paymentsidcapturesOrderInformationShippingDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesOrderInformationShippingDetails(self): - """ - Test V2paymentsidcapturesOrderInformationShippingDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_order_information_shipping_details.V2paymentsidcapturesOrderInformationShippingDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_payment_information.py b/test/test_v2paymentsidcaptures_payment_information.py deleted file mode 100644 index 3ab534dc..00000000 --- a/test/test_v2paymentsidcaptures_payment_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_payment_information import V2paymentsidcapturesPaymentInformation - - -class TestV2paymentsidcapturesPaymentInformation(unittest.TestCase): - """ V2paymentsidcapturesPaymentInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesPaymentInformation(self): - """ - Test V2paymentsidcapturesPaymentInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_payment_information.V2paymentsidcapturesPaymentInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_point_of_sale_information.py b/test/test_v2paymentsidcaptures_point_of_sale_information.py deleted file mode 100644 index b42db10e..00000000 --- a/test/test_v2paymentsidcaptures_point_of_sale_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_point_of_sale_information import V2paymentsidcapturesPointOfSaleInformation - - -class TestV2paymentsidcapturesPointOfSaleInformation(unittest.TestCase): - """ V2paymentsidcapturesPointOfSaleInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesPointOfSaleInformation(self): - """ - Test V2paymentsidcapturesPointOfSaleInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_point_of_sale_information.V2paymentsidcapturesPointOfSaleInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_point_of_sale_information_emv.py b/test/test_v2paymentsidcaptures_point_of_sale_information_emv.py deleted file mode 100644 index b3a92429..00000000 --- a/test/test_v2paymentsidcaptures_point_of_sale_information_emv.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_point_of_sale_information_emv import V2paymentsidcapturesPointOfSaleInformationEmv - - -class TestV2paymentsidcapturesPointOfSaleInformationEmv(unittest.TestCase): - """ V2paymentsidcapturesPointOfSaleInformationEmv unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesPointOfSaleInformationEmv(self): - """ - Test V2paymentsidcapturesPointOfSaleInformationEmv - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_point_of_sale_information_emv.V2paymentsidcapturesPointOfSaleInformationEmv() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_processing_information.py b/test/test_v2paymentsidcaptures_processing_information.py deleted file mode 100644 index 0a6c35f0..00000000 --- a/test/test_v2paymentsidcaptures_processing_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_processing_information import V2paymentsidcapturesProcessingInformation - - -class TestV2paymentsidcapturesProcessingInformation(unittest.TestCase): - """ V2paymentsidcapturesProcessingInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesProcessingInformation(self): - """ - Test V2paymentsidcapturesProcessingInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_processing_information.V2paymentsidcapturesProcessingInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_processing_information_authorization_options.py b/test/test_v2paymentsidcaptures_processing_information_authorization_options.py deleted file mode 100644 index 9e37b4a4..00000000 --- a/test/test_v2paymentsidcaptures_processing_information_authorization_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_processing_information_authorization_options import V2paymentsidcapturesProcessingInformationAuthorizationOptions - - -class TestV2paymentsidcapturesProcessingInformationAuthorizationOptions(unittest.TestCase): - """ V2paymentsidcapturesProcessingInformationAuthorizationOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesProcessingInformationAuthorizationOptions(self): - """ - Test V2paymentsidcapturesProcessingInformationAuthorizationOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_processing_information_authorization_options.V2paymentsidcapturesProcessingInformationAuthorizationOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidcaptures_processing_information_capture_options.py b/test/test_v2paymentsidcaptures_processing_information_capture_options.py deleted file mode 100644 index ae79456f..00000000 --- a/test/test_v2paymentsidcaptures_processing_information_capture_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidcaptures_processing_information_capture_options import V2paymentsidcapturesProcessingInformationCaptureOptions - - -class TestV2paymentsidcapturesProcessingInformationCaptureOptions(unittest.TestCase): - """ V2paymentsidcapturesProcessingInformationCaptureOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidcapturesProcessingInformationCaptureOptions(self): - """ - Test V2paymentsidcapturesProcessingInformationCaptureOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidcaptures_processing_information_capture_options.V2paymentsidcapturesProcessingInformationCaptureOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidrefunds_merchant_information.py b/test/test_v2paymentsidrefunds_merchant_information.py deleted file mode 100644 index 82d676a1..00000000 --- a/test/test_v2paymentsidrefunds_merchant_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidrefunds_merchant_information import V2paymentsidrefundsMerchantInformation - - -class TestV2paymentsidrefundsMerchantInformation(unittest.TestCase): - """ V2paymentsidrefundsMerchantInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidrefundsMerchantInformation(self): - """ - Test V2paymentsidrefundsMerchantInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidrefunds_merchant_information.V2paymentsidrefundsMerchantInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidrefunds_order_information.py b/test/test_v2paymentsidrefunds_order_information.py deleted file mode 100644 index f89436fa..00000000 --- a/test/test_v2paymentsidrefunds_order_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidrefunds_order_information import V2paymentsidrefundsOrderInformation - - -class TestV2paymentsidrefundsOrderInformation(unittest.TestCase): - """ V2paymentsidrefundsOrderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidrefundsOrderInformation(self): - """ - Test V2paymentsidrefundsOrderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidrefunds_order_information.V2paymentsidrefundsOrderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidrefunds_order_information_line_items.py b/test/test_v2paymentsidrefunds_order_information_line_items.py deleted file mode 100644 index d6c98e3b..00000000 --- a/test/test_v2paymentsidrefunds_order_information_line_items.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidrefunds_order_information_line_items import V2paymentsidrefundsOrderInformationLineItems - - -class TestV2paymentsidrefundsOrderInformationLineItems(unittest.TestCase): - """ V2paymentsidrefundsOrderInformationLineItems unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidrefundsOrderInformationLineItems(self): - """ - Test V2paymentsidrefundsOrderInformationLineItems - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidrefunds_order_information_line_items.V2paymentsidrefundsOrderInformationLineItems() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidrefunds_payment_information.py b/test/test_v2paymentsidrefunds_payment_information.py deleted file mode 100644 index 48a57ebc..00000000 --- a/test/test_v2paymentsidrefunds_payment_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidrefunds_payment_information import V2paymentsidrefundsPaymentInformation - - -class TestV2paymentsidrefundsPaymentInformation(unittest.TestCase): - """ V2paymentsidrefundsPaymentInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidrefundsPaymentInformation(self): - """ - Test V2paymentsidrefundsPaymentInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidrefunds_payment_information.V2paymentsidrefundsPaymentInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidrefunds_payment_information_card.py b/test/test_v2paymentsidrefunds_payment_information_card.py deleted file mode 100644 index f2ff7318..00000000 --- a/test/test_v2paymentsidrefunds_payment_information_card.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidrefunds_payment_information_card import V2paymentsidrefundsPaymentInformationCard - - -class TestV2paymentsidrefundsPaymentInformationCard(unittest.TestCase): - """ V2paymentsidrefundsPaymentInformationCard unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidrefundsPaymentInformationCard(self): - """ - Test V2paymentsidrefundsPaymentInformationCard - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidrefunds_payment_information_card.V2paymentsidrefundsPaymentInformationCard() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidrefunds_point_of_sale_information.py b/test/test_v2paymentsidrefunds_point_of_sale_information.py deleted file mode 100644 index ccac984b..00000000 --- a/test/test_v2paymentsidrefunds_point_of_sale_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidrefunds_point_of_sale_information import V2paymentsidrefundsPointOfSaleInformation - - -class TestV2paymentsidrefundsPointOfSaleInformation(unittest.TestCase): - """ V2paymentsidrefundsPointOfSaleInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidrefundsPointOfSaleInformation(self): - """ - Test V2paymentsidrefundsPointOfSaleInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidrefunds_point_of_sale_information.V2paymentsidrefundsPointOfSaleInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidrefunds_processing_information.py b/test/test_v2paymentsidrefunds_processing_information.py deleted file mode 100644 index 69fac702..00000000 --- a/test/test_v2paymentsidrefunds_processing_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidrefunds_processing_information import V2paymentsidrefundsProcessingInformation - - -class TestV2paymentsidrefundsProcessingInformation(unittest.TestCase): - """ V2paymentsidrefundsProcessingInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidrefundsProcessingInformation(self): - """ - Test V2paymentsidrefundsProcessingInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidrefunds_processing_information.V2paymentsidrefundsProcessingInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidrefunds_processing_information_recurring_options.py b/test/test_v2paymentsidrefunds_processing_information_recurring_options.py deleted file mode 100644 index ccbca8c3..00000000 --- a/test/test_v2paymentsidrefunds_processing_information_recurring_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidrefunds_processing_information_recurring_options import V2paymentsidrefundsProcessingInformationRecurringOptions - - -class TestV2paymentsidrefundsProcessingInformationRecurringOptions(unittest.TestCase): - """ V2paymentsidrefundsProcessingInformationRecurringOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidrefundsProcessingInformationRecurringOptions(self): - """ - Test V2paymentsidrefundsProcessingInformationRecurringOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidrefunds_processing_information_recurring_options.V2paymentsidrefundsProcessingInformationRecurringOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidreversals_client_reference_information.py b/test/test_v2paymentsidreversals_client_reference_information.py deleted file mode 100644 index 70ae8648..00000000 --- a/test/test_v2paymentsidreversals_client_reference_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidreversals_client_reference_information import V2paymentsidreversalsClientReferenceInformation - - -class TestV2paymentsidreversalsClientReferenceInformation(unittest.TestCase): - """ V2paymentsidreversalsClientReferenceInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidreversalsClientReferenceInformation(self): - """ - Test V2paymentsidreversalsClientReferenceInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidreversals_client_reference_information.V2paymentsidreversalsClientReferenceInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidreversals_order_information.py b/test/test_v2paymentsidreversals_order_information.py deleted file mode 100644 index 712e9870..00000000 --- a/test/test_v2paymentsidreversals_order_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidreversals_order_information import V2paymentsidreversalsOrderInformation - - -class TestV2paymentsidreversalsOrderInformation(unittest.TestCase): - """ V2paymentsidreversalsOrderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidreversalsOrderInformation(self): - """ - Test V2paymentsidreversalsOrderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidreversals_order_information.V2paymentsidreversalsOrderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidreversals_order_information_line_items.py b/test/test_v2paymentsidreversals_order_information_line_items.py deleted file mode 100644 index 973c0d45..00000000 --- a/test/test_v2paymentsidreversals_order_information_line_items.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidreversals_order_information_line_items import V2paymentsidreversalsOrderInformationLineItems - - -class TestV2paymentsidreversalsOrderInformationLineItems(unittest.TestCase): - """ V2paymentsidreversalsOrderInformationLineItems unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidreversalsOrderInformationLineItems(self): - """ - Test V2paymentsidreversalsOrderInformationLineItems - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidreversals_order_information_line_items.V2paymentsidreversalsOrderInformationLineItems() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidreversals_point_of_sale_information.py b/test/test_v2paymentsidreversals_point_of_sale_information.py deleted file mode 100644 index 7c632159..00000000 --- a/test/test_v2paymentsidreversals_point_of_sale_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidreversals_point_of_sale_information import V2paymentsidreversalsPointOfSaleInformation - - -class TestV2paymentsidreversalsPointOfSaleInformation(unittest.TestCase): - """ V2paymentsidreversalsPointOfSaleInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidreversalsPointOfSaleInformation(self): - """ - Test V2paymentsidreversalsPointOfSaleInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidreversals_point_of_sale_information.V2paymentsidreversalsPointOfSaleInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidreversals_processing_information.py b/test/test_v2paymentsidreversals_processing_information.py deleted file mode 100644 index 8d5815da..00000000 --- a/test/test_v2paymentsidreversals_processing_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidreversals_processing_information import V2paymentsidreversalsProcessingInformation - - -class TestV2paymentsidreversalsProcessingInformation(unittest.TestCase): - """ V2paymentsidreversalsProcessingInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidreversalsProcessingInformation(self): - """ - Test V2paymentsidreversalsProcessingInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidreversals_processing_information.V2paymentsidreversalsProcessingInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidreversals_reversal_information.py b/test/test_v2paymentsidreversals_reversal_information.py deleted file mode 100644 index 77cb1a2e..00000000 --- a/test/test_v2paymentsidreversals_reversal_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidreversals_reversal_information import V2paymentsidreversalsReversalInformation - - -class TestV2paymentsidreversalsReversalInformation(unittest.TestCase): - """ V2paymentsidreversalsReversalInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidreversalsReversalInformation(self): - """ - Test V2paymentsidreversalsReversalInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidreversals_reversal_information.V2paymentsidreversalsReversalInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2paymentsidreversals_reversal_information_amount_details.py b/test/test_v2paymentsidreversals_reversal_information_amount_details.py deleted file mode 100644 index daa86276..00000000 --- a/test/test_v2paymentsidreversals_reversal_information_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2paymentsidreversals_reversal_information_amount_details import V2paymentsidreversalsReversalInformationAmountDetails - - -class TestV2paymentsidreversalsReversalInformationAmountDetails(unittest.TestCase): - """ V2paymentsidreversalsReversalInformationAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2paymentsidreversalsReversalInformationAmountDetails(self): - """ - Test V2paymentsidreversalsReversalInformationAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2paymentsidreversals_reversal_information_amount_details.V2paymentsidreversalsReversalInformationAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_merchant_information.py b/test/test_v2payouts_merchant_information.py deleted file mode 100644 index 7fd66e18..00000000 --- a/test/test_v2payouts_merchant_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_merchant_information import V2payoutsMerchantInformation - - -class TestV2payoutsMerchantInformation(unittest.TestCase): - """ V2payoutsMerchantInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsMerchantInformation(self): - """ - Test V2payoutsMerchantInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_merchant_information.V2payoutsMerchantInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_merchant_information_merchant_descriptor.py b/test/test_v2payouts_merchant_information_merchant_descriptor.py deleted file mode 100644 index 323116e5..00000000 --- a/test/test_v2payouts_merchant_information_merchant_descriptor.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_merchant_information_merchant_descriptor import V2payoutsMerchantInformationMerchantDescriptor - - -class TestV2payoutsMerchantInformationMerchantDescriptor(unittest.TestCase): - """ V2payoutsMerchantInformationMerchantDescriptor unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsMerchantInformationMerchantDescriptor(self): - """ - Test V2payoutsMerchantInformationMerchantDescriptor - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_merchant_information_merchant_descriptor.V2payoutsMerchantInformationMerchantDescriptor() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_order_information.py b/test/test_v2payouts_order_information.py deleted file mode 100644 index 70861e0d..00000000 --- a/test/test_v2payouts_order_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_order_information import V2payoutsOrderInformation - - -class TestV2payoutsOrderInformation(unittest.TestCase): - """ V2payoutsOrderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsOrderInformation(self): - """ - Test V2payoutsOrderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_order_information.V2payoutsOrderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_order_information_amount_details.py b/test/test_v2payouts_order_information_amount_details.py deleted file mode 100644 index a3a8ba39..00000000 --- a/test/test_v2payouts_order_information_amount_details.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_order_information_amount_details import V2payoutsOrderInformationAmountDetails - - -class TestV2payoutsOrderInformationAmountDetails(unittest.TestCase): - """ V2payoutsOrderInformationAmountDetails unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsOrderInformationAmountDetails(self): - """ - Test V2payoutsOrderInformationAmountDetails - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_order_information_amount_details.V2payoutsOrderInformationAmountDetails() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_order_information_bill_to.py b/test/test_v2payouts_order_information_bill_to.py deleted file mode 100644 index c55b2121..00000000 --- a/test/test_v2payouts_order_information_bill_to.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_order_information_bill_to import V2payoutsOrderInformationBillTo - - -class TestV2payoutsOrderInformationBillTo(unittest.TestCase): - """ V2payoutsOrderInformationBillTo unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsOrderInformationBillTo(self): - """ - Test V2payoutsOrderInformationBillTo - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_order_information_bill_to.V2payoutsOrderInformationBillTo() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_payment_information.py b/test/test_v2payouts_payment_information.py deleted file mode 100644 index 95d9739d..00000000 --- a/test/test_v2payouts_payment_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_payment_information import V2payoutsPaymentInformation - - -class TestV2payoutsPaymentInformation(unittest.TestCase): - """ V2payoutsPaymentInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsPaymentInformation(self): - """ - Test V2payoutsPaymentInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_payment_information.V2payoutsPaymentInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_payment_information_card.py b/test/test_v2payouts_payment_information_card.py deleted file mode 100644 index d791c717..00000000 --- a/test/test_v2payouts_payment_information_card.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_payment_information_card import V2payoutsPaymentInformationCard - - -class TestV2payoutsPaymentInformationCard(unittest.TestCase): - """ V2payoutsPaymentInformationCard unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsPaymentInformationCard(self): - """ - Test V2payoutsPaymentInformationCard - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_payment_information_card.V2payoutsPaymentInformationCard() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_processing_information.py b/test/test_v2payouts_processing_information.py deleted file mode 100644 index 94e43b86..00000000 --- a/test/test_v2payouts_processing_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_processing_information import V2payoutsProcessingInformation - - -class TestV2payoutsProcessingInformation(unittest.TestCase): - """ V2payoutsProcessingInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsProcessingInformation(self): - """ - Test V2payoutsProcessingInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_processing_information.V2payoutsProcessingInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_processing_information_payouts_options.py b/test/test_v2payouts_processing_information_payouts_options.py deleted file mode 100644 index 7e9c1120..00000000 --- a/test/test_v2payouts_processing_information_payouts_options.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_processing_information_payouts_options import V2payoutsProcessingInformationPayoutsOptions - - -class TestV2payoutsProcessingInformationPayoutsOptions(unittest.TestCase): - """ V2payoutsProcessingInformationPayoutsOptions unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsProcessingInformationPayoutsOptions(self): - """ - Test V2payoutsProcessingInformationPayoutsOptions - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_processing_information_payouts_options.V2payoutsProcessingInformationPayoutsOptions() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_recipient_information.py b/test/test_v2payouts_recipient_information.py deleted file mode 100644 index 3d65b87c..00000000 --- a/test/test_v2payouts_recipient_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_recipient_information import V2payoutsRecipientInformation - - -class TestV2payoutsRecipientInformation(unittest.TestCase): - """ V2payoutsRecipientInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsRecipientInformation(self): - """ - Test V2payoutsRecipientInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_recipient_information.V2payoutsRecipientInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_sender_information.py b/test/test_v2payouts_sender_information.py deleted file mode 100644 index c568e073..00000000 --- a/test/test_v2payouts_sender_information.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_sender_information import V2payoutsSenderInformation - - -class TestV2payoutsSenderInformation(unittest.TestCase): - """ V2payoutsSenderInformation unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsSenderInformation(self): - """ - Test V2payoutsSenderInformation - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_sender_information.V2payoutsSenderInformation() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v2payouts_sender_information_account.py b/test/test_v2payouts_sender_information_account.py deleted file mode 100644 index 5ddfeaf9..00000000 --- a/test/test_v2payouts_sender_information_account.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - CyberSource Flex API - - Simple PAN tokenization service - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import CyberSource -from CyberSource.rest import ApiException -from CyberSource.models.v2payouts_sender_information_account import V2payoutsSenderInformationAccount - - -class TestV2payoutsSenderInformationAccount(unittest.TestCase): - """ V2payoutsSenderInformationAccount unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2payoutsSenderInformationAccount(self): - """ - Test V2payoutsSenderInformationAccount - """ - # FIXME: construct object with mandatory attributes with example values - #model = CyberSource.models.v2payouts_sender_information_account.V2payoutsSenderInformationAccount() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_void_api.py b/test/test_void_api.py index 6e5b85ce..9ce12fe1 100644 --- a/test/test_void_api.py +++ b/test/test_void_api.py @@ -31,14 +31,6 @@ def setUp(self): def tearDown(self): pass - def test_get_void(self): - """ - Test case for get_void - - Retrieve A Void - """ - pass - def test_void_capture(self): """ Test case for void_capture