POST | /rebatecodes/fromarticle | Create RebateCode. | Create RebateCode. |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
@ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
public static class CreateArticleRebateCode implements ICompany
{
/**
*
*/
@ApiMember(Description="")
public UUID CompanyId = null;
/**
* Article ID for the rebate code
*/
@ApiMember(Description="Article ID for the rebate code", IsRequired=true)
public Integer ArticleId = null;
/**
* Customer information
*/
@ApiMember(Description="Customer information")
public CustomerToHandle Customer = null;
/**
* If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinairy profile.
*/
@ApiMember(Description="If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinairy profile. ")
public InvoiceAddressToHandle InvoiceAddress = null;
/**
* Promo code Receiver information
*/
@ApiMember(Description="Promo code Receiver information")
public PromoCodeReceiver Receiver = null;
public UUID getCompanyId() { return CompanyId; }
public CreateArticleRebateCode setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getArticleId() { return ArticleId; }
public CreateArticleRebateCode setArticleId(Integer value) { this.ArticleId = value; return this; }
public CustomerToHandle getCustomer() { return Customer; }
public CreateArticleRebateCode setCustomer(CustomerToHandle value) { this.Customer = value; return this; }
public InvoiceAddressToHandle getInvoiceAddress() { return InvoiceAddress; }
public CreateArticleRebateCode setInvoiceAddress(InvoiceAddressToHandle value) { this.InvoiceAddress = value; return this; }
public PromoCodeReceiver getReceiver() { return Receiver; }
public CreateArticleRebateCode setReceiver(PromoCodeReceiver value) { this.Receiver = value; return this; }
}
public static class CustomerToHandle
{
public UUID CustomerId = null;
public String Firstname = null;
public String Lastname = null;
public String Email = null;
public String Phone = null;
public Boolean SubscribedToNewsletter = null;
public UUID getCustomerId() { return CustomerId; }
public CustomerToHandle setCustomerId(UUID value) { this.CustomerId = value; return this; }
public String getFirstname() { return Firstname; }
public CustomerToHandle setFirstname(String value) { this.Firstname = value; return this; }
public String getLastname() { return Lastname; }
public CustomerToHandle setLastname(String value) { this.Lastname = value; return this; }
public String getEmail() { return Email; }
public CustomerToHandle setEmail(String value) { this.Email = value; return this; }
public String getPhone() { return Phone; }
public CustomerToHandle setPhone(String value) { this.Phone = value; return this; }
public Boolean isSubscribedToNewsletter() { return SubscribedToNewsletter; }
public CustomerToHandle setSubscribedToNewsletter(Boolean value) { this.SubscribedToNewsletter = value; return this; }
}
public static class InvoiceAddressToHandle
{
public String CorporateIdentityNumber = null;
public String InvoiceAddress1 = null;
public String InvoiceAddress2 = null;
public String InvoiceCity = null;
public String InvoicePostalCode = null;
public String InvoiceCountryCode = null;
public String getCorporateIdentityNumber() { return CorporateIdentityNumber; }
public InvoiceAddressToHandle setCorporateIdentityNumber(String value) { this.CorporateIdentityNumber = value; return this; }
public String getInvoiceAddress1() { return InvoiceAddress1; }
public InvoiceAddressToHandle setInvoiceAddress1(String value) { this.InvoiceAddress1 = value; return this; }
public String getInvoiceAddress2() { return InvoiceAddress2; }
public InvoiceAddressToHandle setInvoiceAddress2(String value) { this.InvoiceAddress2 = value; return this; }
public String getInvoiceCity() { return InvoiceCity; }
public InvoiceAddressToHandle setInvoiceCity(String value) { this.InvoiceCity = value; return this; }
public String getInvoicePostalCode() { return InvoicePostalCode; }
public InvoiceAddressToHandle setInvoicePostalCode(String value) { this.InvoicePostalCode = value; return this; }
public String getInvoiceCountryCode() { return InvoiceCountryCode; }
public InvoiceAddressToHandle setInvoiceCountryCode(String value) { this.InvoiceCountryCode = value; return this; }
}
public static class PromoCodeReceiver
{
public UUID CustomerId = null;
public String Firstname = null;
public String Lastname = null;
public String Email = null;
public String ReceiverMessage = null;
public UUID getCustomerId() { return CustomerId; }
public PromoCodeReceiver setCustomerId(UUID value) { this.CustomerId = value; return this; }
public String getFirstname() { return Firstname; }
public PromoCodeReceiver setFirstname(String value) { this.Firstname = value; return this; }
public String getLastname() { return Lastname; }
public PromoCodeReceiver setLastname(String value) { this.Lastname = value; return this; }
public String getEmail() { return Email; }
public PromoCodeReceiver setEmail(String value) { this.Email = value; return this; }
public String getReceiverMessage() { return ReceiverMessage; }
public PromoCodeReceiver setReceiverMessage(String value) { this.ReceiverMessage = value; return this; }
}
public static class RebateCodeResponse
{
public Integer Id = null;
public UUID CompanyId = null;
public Date ValidFrom = null;
public Date ValidTo = null;
/**
* If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.
*/
@ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.")
public TimeSpan FromTime = null;
/**
* If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.
*/
@ApiMember(Description="If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.")
public TimeSpan ToTime = null;
public String CreatedBy = null;
public Date Created = null;
public String UpdatedBy = null;
public Date Updated = null;
public String PersonalNote = null;
public String RebateCodeSign = null;
public Integer RebateCodeValue = null;
public Integer RebateCodeTypeId = null;
public String Name = null;
public Integer RebateCodeStatusId = null;
public String StatusName = null;
public Integer MaxNumberOfUses = null;
public Integer MaxNumberOfUsesPerCustomer = null;
public Integer NumberOfUsesUsed = null;
public ArrayList<DaysOfWeekResponse> DaysOfWeek = null;
public ArrayList<RebateCodeServiceResponse> Services = null;
public ArticleResponse Article = null;
public ArrayList<RebateCodeTransactionQueryResponse> Transactions = null;
public Double RemainingAmount = null;
public Integer RemainingUsage = null;
public ArrayList<RebateCodeCustomerResponse> Customers = null;
public ResponseStatus ResponseStatus = null;
public Boolean PaymentReceived = null;
public String RebateCodeCurrencySign = null;
public Boolean ActiveByStatus = null;
public String PriceSign = null;
public String RebateCodeTypeName = null;
public RebateCodeCompanyResponse Company = null;
public Integer getId() { return Id; }
public RebateCodeResponse setId(Integer value) { this.Id = value; return this; }
public UUID getCompanyId() { return CompanyId; }
public RebateCodeResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Date getValidFrom() { return ValidFrom; }
public RebateCodeResponse setValidFrom(Date value) { this.ValidFrom = value; return this; }
public Date getValidTo() { return ValidTo; }
public RebateCodeResponse setValidTo(Date value) { this.ValidTo = value; return this; }
public TimeSpan getFromTime() { return FromTime; }
public RebateCodeResponse setFromTime(TimeSpan value) { this.FromTime = value; return this; }
public TimeSpan getToTime() { return ToTime; }
public RebateCodeResponse setToTime(TimeSpan value) { this.ToTime = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public RebateCodeResponse setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreated() { return Created; }
public RebateCodeResponse setCreated(Date value) { this.Created = value; return this; }
public String getUpdatedBy() { return UpdatedBy; }
public RebateCodeResponse setUpdatedBy(String value) { this.UpdatedBy = value; return this; }
public Date getUpdated() { return Updated; }
public RebateCodeResponse setUpdated(Date value) { this.Updated = value; return this; }
public String getPersonalNote() { return PersonalNote; }
public RebateCodeResponse setPersonalNote(String value) { this.PersonalNote = value; return this; }
public String getRebateCodeSign() { return RebateCodeSign; }
public RebateCodeResponse setRebateCodeSign(String value) { this.RebateCodeSign = value; return this; }
public Integer getRebateCodeValue() { return RebateCodeValue; }
public RebateCodeResponse setRebateCodeValue(Integer value) { this.RebateCodeValue = value; return this; }
public Integer getRebateCodeTypeId() { return RebateCodeTypeId; }
public RebateCodeResponse setRebateCodeTypeId(Integer value) { this.RebateCodeTypeId = value; return this; }
public String getName() { return Name; }
public RebateCodeResponse setName(String value) { this.Name = value; return this; }
public Integer getRebateCodeStatusId() { return RebateCodeStatusId; }
public RebateCodeResponse setRebateCodeStatusId(Integer value) { this.RebateCodeStatusId = value; return this; }
public String getStatusName() { return StatusName; }
public RebateCodeResponse setStatusName(String value) { this.StatusName = value; return this; }
public Integer getMaxNumberOfUses() { return MaxNumberOfUses; }
public RebateCodeResponse setMaxNumberOfUses(Integer value) { this.MaxNumberOfUses = value; return this; }
public Integer getMaxNumberOfUsesPerCustomer() { return MaxNumberOfUsesPerCustomer; }
public RebateCodeResponse setMaxNumberOfUsesPerCustomer(Integer value) { this.MaxNumberOfUsesPerCustomer = value; return this; }
public Integer getNumberOfUsesUsed() { return NumberOfUsesUsed; }
public RebateCodeResponse setNumberOfUsesUsed(Integer value) { this.NumberOfUsesUsed = value; return this; }
public ArrayList<DaysOfWeekResponse> getDaysOfWeek() { return DaysOfWeek; }
public RebateCodeResponse setDaysOfWeek(ArrayList<DaysOfWeekResponse> value) { this.DaysOfWeek = value; return this; }
public ArrayList<RebateCodeServiceResponse> getServices() { return Services; }
public RebateCodeResponse setServices(ArrayList<RebateCodeServiceResponse> value) { this.Services = value; return this; }
public ArticleResponse getArticle() { return Article; }
public RebateCodeResponse setArticle(ArticleResponse value) { this.Article = value; return this; }
public ArrayList<RebateCodeTransactionQueryResponse> getTransactions() { return Transactions; }
public RebateCodeResponse setTransactions(ArrayList<RebateCodeTransactionQueryResponse> value) { this.Transactions = value; return this; }
public Double getRemainingAmount() { return RemainingAmount; }
public RebateCodeResponse setRemainingAmount(Double value) { this.RemainingAmount = value; return this; }
public Integer getRemainingUsage() { return RemainingUsage; }
public RebateCodeResponse setRemainingUsage(Integer value) { this.RemainingUsage = value; return this; }
public ArrayList<RebateCodeCustomerResponse> getCustomers() { return Customers; }
public RebateCodeResponse setCustomers(ArrayList<RebateCodeCustomerResponse> value) { this.Customers = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public RebateCodeResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Boolean isPaymentReceived() { return PaymentReceived; }
public RebateCodeResponse setPaymentReceived(Boolean value) { this.PaymentReceived = value; return this; }
public String getRebateCodeCurrencySign() { return RebateCodeCurrencySign; }
public RebateCodeResponse setRebateCodeCurrencySign(String value) { this.RebateCodeCurrencySign = value; return this; }
public Boolean isActiveByStatus() { return ActiveByStatus; }
public RebateCodeResponse setActiveByStatus(Boolean value) { this.ActiveByStatus = value; return this; }
public String getPriceSign() { return PriceSign; }
public RebateCodeResponse setPriceSign(String value) { this.PriceSign = value; return this; }
public String getRebateCodeTypeName() { return RebateCodeTypeName; }
public RebateCodeResponse setRebateCodeTypeName(String value) { this.RebateCodeTypeName = value; return this; }
public RebateCodeCompanyResponse getCompany() { return Company; }
public RebateCodeResponse setCompany(RebateCodeCompanyResponse value) { this.Company = value; return this; }
}
public static class DaysOfWeekResponse
{
public Integer Id = null;
public String DayOfWeek = null;
public String DayOfWeekTranslation = null;
public Boolean DayOfWeekActive = null;
public Short DayOfWeekSortOrder = null;
public Integer getId() { return Id; }
public DaysOfWeekResponse setId(Integer value) { this.Id = value; return this; }
public String getDayOfWeek() { return DayOfWeek; }
public DaysOfWeekResponse setDayOfWeek(String value) { this.DayOfWeek = value; return this; }
public String getDayOfWeekTranslation() { return DayOfWeekTranslation; }
public DaysOfWeekResponse setDayOfWeekTranslation(String value) { this.DayOfWeekTranslation = value; return this; }
public Boolean isDayOfWeekActive() { return DayOfWeekActive; }
public DaysOfWeekResponse setDayOfWeekActive(Boolean value) { this.DayOfWeekActive = value; return this; }
public Short getDayOfWeekSortOrder() { return DayOfWeekSortOrder; }
public DaysOfWeekResponse setDayOfWeekSortOrder(Short value) { this.DayOfWeekSortOrder = value; return this; }
}
public static class RebateCodeServiceResponse
{
public Integer Id = null;
public String Name = null;
public String Description = null;
public Boolean Active = null;
public Integer getId() { return Id; }
public RebateCodeServiceResponse setId(Integer value) { this.Id = value; return this; }
public String getName() { return Name; }
public RebateCodeServiceResponse setName(String value) { this.Name = value; return this; }
public String getDescription() { return Description; }
public RebateCodeServiceResponse setDescription(String value) { this.Description = value; return this; }
public Boolean isActive() { return Active; }
public RebateCodeServiceResponse setActive(Boolean value) { this.Active = value; return this; }
}
public static class ArticleResponse
{
public UUID CompanyId = null;
public Integer Id = null;
public String Name = null;
public Integer ArticleTypeId = null;
public String Description = null;
public String ImageUrl = null;
public Boolean Active = null;
public Integer Amount = null;
public Double Price = null;
public String CurrencyId = null;
public Date UpdatedDate = null;
public Date CreatedDate = null;
public ArrayList<ArticleServiceRelation> Services = null;
public ArrayList<Integer> ServiceIds = null;
public String PriceSign = null;
public BigDecimal VAT = null;
public UUID getCompanyId() { return CompanyId; }
public ArticleResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getId() { return Id; }
public ArticleResponse setId(Integer value) { this.Id = value; return this; }
public String getName() { return Name; }
public ArticleResponse setName(String value) { this.Name = value; return this; }
public Integer getArticleTypeId() { return ArticleTypeId; }
public ArticleResponse setArticleTypeId(Integer value) { this.ArticleTypeId = value; return this; }
public String getDescription() { return Description; }
public ArticleResponse setDescription(String value) { this.Description = value; return this; }
public String getImageUrl() { return ImageUrl; }
public ArticleResponse setImageUrl(String value) { this.ImageUrl = value; return this; }
public Boolean isActive() { return Active; }
public ArticleResponse setActive(Boolean value) { this.Active = value; return this; }
public Integer getAmount() { return Amount; }
public ArticleResponse setAmount(Integer value) { this.Amount = value; return this; }
public Double getPrice() { return Price; }
public ArticleResponse setPrice(Double value) { this.Price = value; return this; }
public String getCurrencyId() { return CurrencyId; }
public ArticleResponse setCurrencyId(String value) { this.CurrencyId = value; return this; }
public Date getUpdatedDate() { return UpdatedDate; }
public ArticleResponse setUpdatedDate(Date value) { this.UpdatedDate = value; return this; }
public Date getCreatedDate() { return CreatedDate; }
public ArticleResponse setCreatedDate(Date value) { this.CreatedDate = value; return this; }
public ArrayList<ArticleServiceRelation> getServices() { return Services; }
public ArticleResponse setServices(ArrayList<ArticleServiceRelation> value) { this.Services = value; return this; }
public ArrayList<Integer> getServiceIds() { return ServiceIds; }
public ArticleResponse setServiceIds(ArrayList<Integer> value) { this.ServiceIds = value; return this; }
public String getPriceSign() { return PriceSign; }
public ArticleResponse setPriceSign(String value) { this.PriceSign = value; return this; }
public BigDecimal getVat() { return VAT; }
public ArticleResponse setVat(BigDecimal value) { this.VAT = value; return this; }
}
public static class ArticleServiceRelation extends BaseModel
{
@Required()
public UUID CompanyId = null;
public Integer Id = null;
@Required()
public Integer ServiceId = null;
@Required()
public Integer ArticleId = null;
public UUID getCompanyId() { return CompanyId; }
public ArticleServiceRelation setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getId() { return Id; }
public ArticleServiceRelation setId(Integer value) { this.Id = value; return this; }
public Integer getServiceId() { return ServiceId; }
public ArticleServiceRelation setServiceId(Integer value) { this.ServiceId = value; return this; }
public Integer getArticleId() { return ArticleId; }
public ArticleServiceRelation setArticleId(Integer value) { this.ArticleId = value; return this; }
}
public static class BaseModel
{
}
public static class RebateCodeTransactionQueryResponse
{
public Integer Id = null;
public UUID CompanyId = null;
public String Note = null;
public Integer RebateCodeId = null;
public String RebateCodeSign = null;
public Integer RebateCodeTypeId = null;
public String RebateCodeTypeName = null;
public Double Amount = null;
public String Usage = null;
public Integer BookingId = null;
public Date UpdatedDate = null;
public Date CreatedDate = null;
public RebateCodeServiceResponse Service = null;
public RebateCodeCustomerResponse Customer = null;
public String PriceSign = null;
public Integer getId() { return Id; }
public RebateCodeTransactionQueryResponse setId(Integer value) { this.Id = value; return this; }
public UUID getCompanyId() { return CompanyId; }
public RebateCodeTransactionQueryResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public String getNote() { return Note; }
public RebateCodeTransactionQueryResponse setNote(String value) { this.Note = value; return this; }
public Integer getRebateCodeId() { return RebateCodeId; }
public RebateCodeTransactionQueryResponse setRebateCodeId(Integer value) { this.RebateCodeId = value; return this; }
public String getRebateCodeSign() { return RebateCodeSign; }
public RebateCodeTransactionQueryResponse setRebateCodeSign(String value) { this.RebateCodeSign = value; return this; }
public Integer getRebateCodeTypeId() { return RebateCodeTypeId; }
public RebateCodeTransactionQueryResponse setRebateCodeTypeId(Integer value) { this.RebateCodeTypeId = value; return this; }
public String getRebateCodeTypeName() { return RebateCodeTypeName; }
public RebateCodeTransactionQueryResponse setRebateCodeTypeName(String value) { this.RebateCodeTypeName = value; return this; }
public Double getAmount() { return Amount; }
public RebateCodeTransactionQueryResponse setAmount(Double value) { this.Amount = value; return this; }
public String getUsage() { return Usage; }
public RebateCodeTransactionQueryResponse setUsage(String value) { this.Usage = value; return this; }
public Integer getBookingId() { return BookingId; }
public RebateCodeTransactionQueryResponse setBookingId(Integer value) { this.BookingId = value; return this; }
public Date getUpdatedDate() { return UpdatedDate; }
public RebateCodeTransactionQueryResponse setUpdatedDate(Date value) { this.UpdatedDate = value; return this; }
public Date getCreatedDate() { return CreatedDate; }
public RebateCodeTransactionQueryResponse setCreatedDate(Date value) { this.CreatedDate = value; return this; }
public RebateCodeServiceResponse getService() { return Service; }
public RebateCodeTransactionQueryResponse setService(RebateCodeServiceResponse value) { this.Service = value; return this; }
public RebateCodeCustomerResponse getCustomer() { return Customer; }
public RebateCodeTransactionQueryResponse setCustomer(RebateCodeCustomerResponse value) { this.Customer = value; return this; }
public String getPriceSign() { return PriceSign; }
public RebateCodeTransactionQueryResponse setPriceSign(String value) { this.PriceSign = value; return this; }
}
public static class RebateCodeCustomerResponse
{
public UUID Id = null;
public String Firstname = null;
public String Lastname = null;
public String Email = null;
public String Phone = null;
public String ImageUrl = null;
public UUID getId() { return Id; }
public RebateCodeCustomerResponse setId(UUID value) { this.Id = value; return this; }
public String getFirstname() { return Firstname; }
public RebateCodeCustomerResponse setFirstname(String value) { this.Firstname = value; return this; }
public String getLastname() { return Lastname; }
public RebateCodeCustomerResponse setLastname(String value) { this.Lastname = value; return this; }
public String getEmail() { return Email; }
public RebateCodeCustomerResponse setEmail(String value) { this.Email = value; return this; }
public String getPhone() { return Phone; }
public RebateCodeCustomerResponse setPhone(String value) { this.Phone = value; return this; }
public String getImageUrl() { return ImageUrl; }
public RebateCodeCustomerResponse setImageUrl(String value) { this.ImageUrl = value; return this; }
}
public static class RebateCodeCompanyResponse
{
public String SitePath = null;
public Integer PaymentProviderId = null;
public String getSitePath() { return SitePath; }
public RebateCodeCompanyResponse setSitePath(String value) { this.SitePath = value; return this; }
public Integer getPaymentProviderId() { return PaymentProviderId; }
public RebateCodeCompanyResponse setPaymentProviderId(Integer value) { this.PaymentProviderId = value; return this; }
}
}
Java CreateArticleRebateCode DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /rebatecodes/fromarticle HTTP/1.1
Host: api.bokamera.se
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CompanyId: 00000000-0000-0000-0000-000000000000,
ArticleId: 0,
Customer:
{
CustomerId: 00000000-0000-0000-0000-000000000000,
Firstname: String,
Lastname: String,
Email: String,
Phone: String,
SubscribedToNewsletter: False
},
InvoiceAddress:
{
CorporateIdentityNumber: String,
InvoiceAddress1: String,
InvoiceAddress2: String,
InvoiceCity: String,
InvoicePostalCode: String,
InvoiceCountryCode: String
},
Receiver:
{
CustomerId: 00000000-0000-0000-0000-000000000000,
Firstname: String,
Lastname: String,
Email: String,
ReceiverMessage: String
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Id: 0, CompanyId: 00000000-0000-0000-0000-000000000000, FromTime: PT0S, ToTime: PT0S, CreatedBy: String, UpdatedBy: String, PersonalNote: String, RebateCodeSign: String, RebateCodeValue: 0, RebateCodeTypeId: 0, Name: String, RebateCodeStatusId: 0, StatusName: String, MaxNumberOfUses: 0, MaxNumberOfUsesPerCustomer: 0, NumberOfUsesUsed: 0, DaysOfWeek: [ { Id: 0, DayOfWeek: String, DayOfWeekTranslation: String, DayOfWeekActive: False, DayOfWeekSortOrder: 0 } ], Services: [ { Id: 0, Name: String, Description: String, Active: False } ], Article: { Id: 0, Name: String, ArticleTypeId: 0, Description: String, ImageUrl: String, Active: False, Amount: 0, Price: 0, CurrencyId: String, Services: [ { Id: 0, ServiceId: 0, ArticleId: 0 } ], ServiceIds: [ 0 ], PriceSign: String, VAT: 0 }, Transactions: [ { Id: 0, Note: String, RebateCodeId: 0, RebateCodeSign: String, RebateCodeTypeId: 0, RebateCodeTypeName: String, Amount: 0, Usage: String, BookingId: 0, Service: { Id: 0, Name: String, Description: String, Active: False }, Customer: { Firstname: String, Lastname: String, Email: String, Phone: String, ImageUrl: String }, PriceSign: String } ], RemainingAmount: 0, RemainingUsage: 0, Customers: [ { Firstname: String, Lastname: String, Email: String, Phone: String, ImageUrl: String } ], ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } }, PaymentReceived: False, RebateCodeCurrencySign: String, ActiveByStatus: False, PriceSign: String, RebateCodeTypeName: String, Company: { SitePath: String, PaymentProviderId: 0 } }