public IResponse Visit(UpdateRemoteCheckDataRequest request) { return(_restWrapper.Put <RemoteCheckDataRequestBody, UpdateRemoteCheckDataResponse>(request.Body, uri: GetEndpoint(request), accessTokenHeader: GetHeaderToken(request), actions: GetCustomResponseHandlers(request))); }
public UpdateRemoteCheckDataResponse UpdateRemoteCheckData(string accessToken, string checkUuid, RemoteCheckDataRequestBody checkDataRequest) { UpdateRemoteCheckDataRequest request = new UpdateRemoteCheckDataRequest(accessToken, checkUuid, checkDataRequest.LocationId, checkDataRequest.SpendAmountCents, checkDataRequest.TaxAmountCents, checkDataRequest.ExemptionAmountCents, checkDataRequest.IdentifierFromMerchant, checkDataRequest.Register, checkDataRequest.Cashier, checkDataRequest.PartialAuthorizationAllowed, checkDataRequest.Items); return(request.Accept(_engine) as UpdateRemoteCheckDataResponse); }
public UpdateRemoteCheckDataResponse UpdateRemoteCheckData(string accessToken, string checkUuid, RemoteCheckDataRequestBody checkDataRequest) { UpdateRemoteCheckDataRequest request = new UpdateRemoteCheckDataRequest(accessToken, checkUuid, checkDataRequest.LocationId, checkDataRequest.SpendAmountCents, checkDataRequest.TaxAmountCents, checkDataRequest.ExemptionAmountCents, checkDataRequest.IdentifierFromMerchant, checkDataRequest.Register, checkDataRequest.Cashier, checkDataRequest.PartialAuthorizationAllowed, checkDataRequest.Items); var uri = BuildUri(request.ApiVersion, $"checks{(!string.IsNullOrEmpty(request.CheckUuid) ? "/" + request.CheckUuid : string.Empty)}"); return(_restWrapper.Put <RemoteCheckDataRequestBody, UpdateRemoteCheckDataResponse>( request.Body, uri: uri, accessTokenHeader: FormatAccessTokenString(unspecifiedUserAccessToken: request.AccessToken), actions: null)); }
public virtual T Visit(UpdateRemoteCheckDataRequest request) { return(DEFAULT_FUNC(request)); }
public string Visit(UpdateRemoteCheckDataRequest request) { return(BuildUri(request.ApiVersion, string.Format("checks{0}", !string.IsNullOrEmpty(request.CheckUuid) ? "/" + request.CheckUuid : string.Empty))); }