Required role: | REGISUserRole |
POST | /DynamicsCRM/Payments |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports regis.DynamicsCRM.Requests
Imports regis.DynamicsCRM.Responses
Namespace Global
Namespace regis.DynamicsCRM.Requests
Public Partial Class CRMPaymentsRequest
Public Overridable Property from_date As Nullable(Of Date)
Public Overridable Property to_date As Nullable(Of Date)
Public Overridable Property regent_id As Nullable(Of Integer)
Public Overridable Property start_version_number As Nullable(Of Integer)
Public Overridable Property end_version_number As Nullable(Of Integer)
Public Overridable Property recurring_only As Boolean
Public Overridable Property completed_only As Boolean
End Class
End Namespace
Namespace regis.DynamicsCRM.Responses
Public Partial Class CRMPaymentResponse
Public Overridable Property regent_id As Integer
Public Overridable Property contact_addressee As String
Public Overridable Property donor_first_name As String
Public Overridable Property donor_last_name As String
Public Overridable Property donor_addressee As String
Public Overridable Property donor_city As String
Public Overridable Property donor_country As String
Public Overridable Property donor_owner_full_name As String
Public Overridable Property is_contact As Boolean
Public Overridable Property is_account As Boolean
Public Overridable Property soft_credit_regent_id As Nullable(Of Integer)
Public Overridable Property soft_credit_contact_addressee As String
Public Overridable Property soft_credit_contact_first_name As String
Public Overridable Property soft_credit_contact_last_name As String
Public Overridable Property soft_credit_contact_spouse_is_main_contact As Boolean
Public Overridable Property soft_credit_contact_city As String
Public Overridable Property soft_credit_contact_country As String
Public Overridable Property soft_credit_contact_owner_full_name As String
Public Overridable Property soft_credit_second_regent_id As Nullable(Of Integer)
Public Overridable Property soft_credit_second_contact_addressee As String
Public Overridable Property soft_credit_second_contact_first_name As String
Public Overridable Property soft_credit_second_contact_last_name As String
Public Overridable Property soft_credit_second_contact_spouse_is_main_contact As Boolean
Public Overridable Property soft_credit_second_contact_city As String
Public Overridable Property soft_credit_second_contact_country As String
Public Overridable Property soft_credit_second_contact_owner_full_name As String
Public Overridable Property spouse_is_main_contact As Boolean
Public Overridable Property import_id As Nullable(Of Integer)
Public Overridable Property donation_id As String
Public Overridable Property payment_id As String
Public Overridable Property guid As String
Public Overridable Property name As String
Public Overridable Property description As String
Public Overridable Property appeal_code As String
Public Overridable Property designation As String
Public Overridable Property designation_description As String
Public Overridable Property general_ledger_account_number As String
Public Overridable Property campaign As String
Public Overridable Property total_pledge_amount As Decimal
Public Overridable Property total_paid_amount As Decimal
Public Overridable Property amount As Decimal
Public Overridable Property canadian_amount As Decimal
Public Overridable Property payment_exchange_rate As Decimal
Public Overridable Property receipt_amount As Decimal
Public Overridable Property gift_exchange_rate As Nullable(Of Decimal)
Public Overridable Property total_paid_canadian_amount As Nullable(Of Decimal)
Public Overridable Property is_recurring As Boolean
Public Overridable Property is_complete As Boolean
Public Overridable Property is_parent_donation As Boolean
Public Overridable Property currency As String
Public Overridable Property source As String
Public Overridable Property channel As String
Public Overridable Property receipting_organization As String
Public Overridable Property type As String
Public Overridable Property push_to_gp As Boolean
Public Overridable Property finance_entry_date As Nullable(Of Date)
Public Overridable Property finance_id As String
Public Overridable Property acknowledgment_sent As Boolean
Public Overridable Property send_acknowledgment As Boolean
Public Overridable Property acknowledgment_template_guid As String
Public Overridable Property parent_guid As String
Public Overridable Property anonymous As Boolean
Public Overridable Property gift_date As Nullable(Of Date)
Public Overridable Property recurring_gift_start_date As Nullable(Of Date)
Public Overridable Property recurring_gift_end_date As Nullable(Of Date)
Public Overridable Property payment_date As Nullable(Of Date)
Public Overridable Property tax_receipt As String
Public Overridable Property tax_receipt_date_sent As Nullable(Of Date)
Public Overridable Property cheque_number As String
Public Overridable Property version_number As Integer
Public Overridable Property added_date As Nullable(Of Date)
End Class
Public Partial Class CRMPaymentsResponse
Public Sub New()
payments = New List(Of CRMPaymentResponse)
End Sub
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property payments As List(Of CRMPaymentResponse)
Public Overridable Property from_date As Nullable(Of Date)
Public Overridable Property to_date As Nullable(Of Date)
Public Overridable Property start_version_number As Nullable(Of Integer)
Public Overridable Property end_version_number As Nullable(Of Integer)
End Class
End Namespace
End Namespace
VB.NET CRMPaymentsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DynamicsCRM/Payments HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CRMPaymentsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Requests">
<completed_only>false</completed_only>
<end_version_number>0</end_version_number>
<from_date>0001-01-01T00:00:00</from_date>
<recurring_only>false</recurring_only>
<regent_id>0</regent_id>
<start_version_number>0</start_version_number>
<to_date>0001-01-01T00:00:00</to_date>
</CRMPaymentsRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CRMPaymentsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Responses"> <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types"> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:Message>String</d2p1:Message> <d2p1:StackTrace>String</d2p1:StackTrace> <d2p1:Errors> <d2p1:ResponseError> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:FieldName>String</d2p1:FieldName> <d2p1:Message>String</d2p1:Message> <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d2p1:Meta> </d2p1:ResponseError> </d2p1:Errors> <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </d2p1:Meta> </ResponseStatus> <end_version_number>0</end_version_number> <from_date>0001-01-01T00:00:00</from_date> <payments> <CRMPaymentResponse> <acknowledgment_sent>false</acknowledgment_sent> <acknowledgment_template_guid>String</acknowledgment_template_guid> <added_date>0001-01-01T00:00:00</added_date> <amount>0</amount> <anonymous>false</anonymous> <appeal_code>String</appeal_code> <campaign>String</campaign> <canadian_amount>0</canadian_amount> <channel>String</channel> <cheque_number>String</cheque_number> <contact_addressee>String</contact_addressee> <currency>String</currency> <description>String</description> <designation>String</designation> <designation_description>String</designation_description> <donation_id>String</donation_id> <donor_addressee>String</donor_addressee> <donor_city>String</donor_city> <donor_country>String</donor_country> <donor_first_name>String</donor_first_name> <donor_last_name>String</donor_last_name> <donor_owner_full_name>String</donor_owner_full_name> <finance_entry_date>0001-01-01T00:00:00</finance_entry_date> <finance_id>String</finance_id> <general_ledger_account_number>String</general_ledger_account_number> <gift_date>0001-01-01T00:00:00</gift_date> <gift_exchange_rate>0</gift_exchange_rate> <guid>String</guid> <import_id>0</import_id> <is_account>false</is_account> <is_complete>false</is_complete> <is_contact>false</is_contact> <is_parent_donation>false</is_parent_donation> <is_recurring>false</is_recurring> <name>String</name> <parent_guid>String</parent_guid> <payment_date>0001-01-01T00:00:00</payment_date> <payment_exchange_rate>0</payment_exchange_rate> <payment_id>String</payment_id> <push_to_gp>false</push_to_gp> <receipt_amount>0</receipt_amount> <receipting_organization>String</receipting_organization> <recurring_gift_end_date>0001-01-01T00:00:00</recurring_gift_end_date> <recurring_gift_start_date>0001-01-01T00:00:00</recurring_gift_start_date> <regent_id>0</regent_id> <send_acknowledgment>false</send_acknowledgment> <soft_credit_contact_addressee>String</soft_credit_contact_addressee> <soft_credit_contact_city>String</soft_credit_contact_city> <soft_credit_contact_country>String</soft_credit_contact_country> <soft_credit_contact_first_name>String</soft_credit_contact_first_name> <soft_credit_contact_last_name>String</soft_credit_contact_last_name> <soft_credit_contact_owner_full_name>String</soft_credit_contact_owner_full_name> <soft_credit_contact_spouse_is_main_contact>false</soft_credit_contact_spouse_is_main_contact> <soft_credit_regent_id>0</soft_credit_regent_id> <soft_credit_second_contact_addressee>String</soft_credit_second_contact_addressee> <soft_credit_second_contact_city>String</soft_credit_second_contact_city> <soft_credit_second_contact_country>String</soft_credit_second_contact_country> <soft_credit_second_contact_first_name>String</soft_credit_second_contact_first_name> <soft_credit_second_contact_last_name>String</soft_credit_second_contact_last_name> <soft_credit_second_contact_owner_full_name>String</soft_credit_second_contact_owner_full_name> <soft_credit_second_contact_spouse_is_main_contact>false</soft_credit_second_contact_spouse_is_main_contact> <soft_credit_second_regent_id>0</soft_credit_second_regent_id> <source>String</source> <spouse_is_main_contact>false</spouse_is_main_contact> <tax_receipt>String</tax_receipt> <tax_receipt_date_sent>0001-01-01T00:00:00</tax_receipt_date_sent> <total_paid_amount>0</total_paid_amount> <total_paid_canadian_amount>0</total_paid_canadian_amount> <total_pledge_amount>0</total_pledge_amount> <type>String</type> <version_number>0</version_number> </CRMPaymentResponse> </payments> <start_version_number>0</start_version_number> <to_date>0001-01-01T00:00:00</to_date> </CRMPaymentsResponse>