/* Options: Date: 2024-12-29 04:08:31 SwiftVersion: 5.0 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: CRMDonationsLegacyRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/DynamicsCRM/DonationsLegacy", "POST") public class CRMDonationsLegacyRequest : IReturn, Codable { public typealias Return = CRMDonationsResponse required public init(){} } public class CRMDonationsResponse : Codable { public var responseStatus:ResponseStatus public var donations:[CRMDonationResponse] = [] public var from_date:Date? public var to_date:Date? public var start_version_number:Int? public var end_version_number:Int? required public init(){} } public class CRMDonationResponse : Codable { public var regent_id:Int public var contact_addressee:String public var donor_first_name:String public var donor_last_name:String public var donor_addressee:String public var donor_city:String public var donor_country:String public var donor_owner_full_name:String public var is_contact:Bool public var is_account:Bool public var soft_credit_regent_id:Int? public var soft_credit_contact_addressee:String public var soft_credit_contact_first_name:String public var soft_credit_contact_last_name:String public var soft_credit_contact_spouse_is_main_contact:Bool public var soft_credit_contact_city:String public var soft_credit_contact_country:String public var soft_credit_contact_owner_full_name:String public var soft_credit_second_regent_id:String public var soft_credit_second_contact_addressee:String public var soft_credit_second_contact_first_name:String public var soft_credit_second_contact_last_name:String public var soft_credit_second_contact_spouse_is_main_contact:Bool public var soft_credit_second_contact_city:String public var soft_credit_second_contact_country:String public var soft_credit_second_contact_owner_full_name:String public var spouse_is_main_contact:Bool public var import_id:Int? public var donation_id:String public var guid:String public var name:String public var Description:String public var appeal_code:String public var designation:String public var designation_description:String public var general_ledger_account_number:String public var campaign:String public var total_pledge_amount:Double public var total_paid_amount:Double public var receipt_amount:Double public var exchange_rate:Double? public var total_paid_canadian_amount:Double? public var is_recurring:Bool public var is_parent_donation:Bool public var currency:String public var source:String public var channel:String public var receipting_organization:String public var type:String public var acknowledgment_sent:Bool public var send_acknowledgment:Bool public var acknowledgment_template_guid:String public var parent_guid:String public var anonymous:Bool public var gift_date:Date? public var recurring_gift_start_date:Date? public var recurring_gift_end_date:Date? public var cheque_number:String public var version_number:Int public var added_date:Date? required public init(){} }