Requires any of the roles: | bookingsupplier-administrator-write, superadmin, bookingsupplier-administrator-read |
GET | /gdpr/customers/{CustomerId} | Get all customer information stored on the customer | Get all information stored on the customer |
---|
namespace BokaMera.API.ServiceModel.Dtos
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type GDPRCustomerBookingsResponse() =
member val CompanyId:Guid = new Guid() with get,set
member val Id:Int32 = new Int32() with get,set
member val CustomerId:Guid = new Guid() with get,set
member val ServiceId:Int32 = new Int32() with get,set
member val StatusId:Int32 = new Int32() with get,set
member val From:DateTime = new DateTime() with get,set
member val To:DateTime = new DateTime() with get,set
member val UnbookedOn:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val UnbookedComments:String = null with get,set
member val BookedComments:String = null with get,set
member val BookedBy:String = null with get,set
member val Comments:String = null with get,set
member val TextField1:String = null with get,set
member val TextField2:String = null with get,set
member val TextField3:String = null with get,set
member val TextField4:String = null with get,set
member val TextField5:String = null with get,set
member val TextField6:String = null with get,set
member val TextField7:String = null with get,set
member val TextField8:String = null with get,set
member val TextField9:String = null with get,set
member val TextField10:String = null with get,set
member val TextField11:String = null with get,set
member val TextField12:String = null with get,set
member val TextField13:String = null with get,set
member val TextField14:String = null with get,set
member val TextField15:String = null with get,set
member val TextField16:String = null with get,set
member val TextField17:String = null with get,set
member val TextField18:String = null with get,set
member val TextField19:String = null with get,set
member val TextField20:String = null with get,set
member val UpdatedDate:DateTime = new DateTime() with get,set
member val CreatedDate:DateTime = new DateTime() with get,set
member val CommentsToCustomer:String = null with get,set
[<AllowNullLiteral>]
type GDPRCustomerMessageLogResponse() =
member val CompanyId:Guid = new Guid() with get,set
member val Id:Int32 = new Int32() with get,set
member val BookingId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Receiver:String = null with get,set
member val Sender:String = null with get,set
member val MessageTitle:String = null with get,set
member val MessageBody:String = null with get,set
member val CreatedBy:String = null with get,set
member val Created:DateTime = new DateTime() with get,set
member val Sent:Boolean = new Boolean() with get,set
member val SentDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val SendMethodId:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type UserProfileResponse() =
member val Id:Guid = new Guid() with get,set
member val Firstname:String = null with get,set
member val Lastname:String = null with get,set
member val Phone:String = null with get,set
member val Email:String = null with get,set
[<AllowNullLiteral>]
type GDPRCustomerInfoResponse() =
member val UserId:Guid = new Guid() with get,set
member val Firstname:String = null with get,set
member val Lastname:String = null with get,set
member val Phone:String = null with get,set
member val Email:String = null with get,set
member val Active:Boolean = new Boolean() with get,set
member val FacebookUsername:String = null with get,set
member val TextField1:String = null with get,set
member val TextField2:String = null with get,set
member val TextField3:String = null with get,set
member val TextField4:String = null with get,set
member val TextField5:String = null with get,set
member val TextField6:String = null with get,set
member val TextField7:String = null with get,set
member val TextField8:String = null with get,set
member val TextField9:String = null with get,set
member val TextField10:String = null with get,set
member val TextField11:String = null with get,set
member val TextField12:String = null with get,set
member val TextField13:String = null with get,set
member val TextField14:String = null with get,set
member val TextField15:String = null with get,set
member val TextField16:String = null with get,set
member val TextField17:String = null with get,set
member val TextField18:String = null with get,set
member val TextField19:String = null with get,set
member val TextField20:String = null with get,set
member val Updated:DateTime = new DateTime() with get,set
member val Created:DateTime = new DateTime() with get,set
[<AllowNullLiteral>]
type GDPRCustomerCommentsResponse() =
member val CompanyId:Guid = new Guid() with get,set
member val Id:Int32 = new Int32() with get,set
member val CustomerId:Guid = new Guid() with get,set
member val Comments:String = null with get,set
member val Updated:DateTime = new DateTime() with get,set
member val Created:DateTime = new DateTime() with get,set
member val ImageUrl:Uri = null with get,set
[<AllowNullLiteral>]
type GDPRCustomerNewsletterLogResponse() =
member val CompanyId:Guid = new Guid() with get,set
member val Id:Int32 = new Int32() with get,set
member val NewslettersId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Receiver:String = null with get,set
member val Sender:String = null with get,set
member val MessageTitle:String = null with get,set
member val MessageBody:String = null with get,set
member val Sent:Boolean = new Boolean() with get,set
member val Created:DateTime = new DateTime() with get,set
[<AllowNullLiteral>]
type GDPRCustomerQueryResponse() =
member val Bookings:ResizeArray<GDPRCustomerBookingsResponse> = new ResizeArray<GDPRCustomerBookingsResponse>() with get,set
member val MessageLog:ResizeArray<GDPRCustomerMessageLogResponse> = new ResizeArray<GDPRCustomerMessageLogResponse>() with get,set
member val UserProfile:UserProfileResponse = null with get,set
member val Customer:GDPRCustomerInfoResponse = null with get,set
member val CustomerComment:ResizeArray<GDPRCustomerCommentsResponse> = new ResizeArray<GDPRCustomerCommentsResponse>() with get,set
member val NewsletterLog:ResizeArray<GDPRCustomerNewsletterLogResponse> = new ResizeArray<GDPRCustomerNewsletterLogResponse>() with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<ValidateRequest(Validator="IsAuthenticated")>]
[<AllowNullLiteral>]
type GDPRCustomerQuery() =
///<summary>
///Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown
///</summary>
[<ApiMember(Description="Enter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown ", IsRequired=true, ParameterType="query")>]
member val CompanyId:Nullable<Guid> = new Nullable<Guid>() with get,set
///<summary>
///Id of the customer
///</summary>
[<ApiMember(Description="Id of the customer", IsRequired=true, ParameterType="path")>]
member val CustomerId:Guid = new Guid() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /gdpr/customers/{CustomerId} HTTP/1.1 Host: testapi.bokamera.se Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Bookings":[{"Id":0,"ServiceId":0,"StatusId":0,"UnbookedOn":"0001-01-01T00:00:00","UnbookedComments":"String","BookedComments":"String","BookedBy":"String","Comments":"String","TextField1":"String","TextField2":"String","TextField3":"String","TextField4":"String","TextField5":"String","TextField6":"String","TextField7":"String","TextField8":"String","TextField9":"String","TextField10":"String","TextField11":"String","TextField12":"String","TextField13":"String","TextField14":"String","TextField15":"String","TextField16":"String","TextField17":"String","TextField18":"String","TextField19":"String","TextField20":"String","CommentsToCustomer":"String"}],"MessageLog":[{"Id":0,"BookingId":0,"Receiver":"String","Sender":"String","MessageTitle":"String","MessageBody":"String","CreatedBy":"String","Sent":false,"SentDate":"0001-01-01T00:00:00","SendMethodId":0}],"UserProfile":{"Firstname":"String","Lastname":"String","Phone":"String","Email":"String"},"Customer":{"Firstname":"String","Lastname":"String","Phone":"String","Email":"String","Active":false,"FacebookUsername":"String","TextField1":"String","TextField2":"String","TextField3":"String","TextField4":"String","TextField5":"String","TextField6":"String","TextField7":"String","TextField8":"String","TextField9":"String","TextField10":"String","TextField11":"String","TextField12":"String","TextField13":"String","TextField14":"String","TextField15":"String","TextField16":"String","TextField17":"String","TextField18":"String","TextField19":"String","TextField20":"String"},"CustomerComment":[{"Id":0,"Comments":"String"}],"NewsletterLog":[{"Id":0,"NewslettersId":0,"Receiver":"String","Sender":"String","MessageTitle":"String","MessageBody":"String","Sent":false}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}