コード例 #1
0
 public IResponse Visit(UpdateRemoteCheckDataRequest request)
 {
     return(_restWrapper.Put <RemoteCheckDataRequestBody, UpdateRemoteCheckDataResponse>(request.Body,
                                                                                         uri: GetEndpoint(request),
                                                                                         accessTokenHeader: GetHeaderToken(request),
                                                                                         actions: GetCustomResponseHandlers(request)));
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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));
        }
コード例 #4
0
 public virtual T Visit(UpdateRemoteCheckDataRequest request)
 {
     return(DEFAULT_FUNC(request));
 }
コード例 #5
0
 public string Visit(UpdateRemoteCheckDataRequest request)
 {
     return(BuildUri(request.ApiVersion, string.Format("checks{0}", !string.IsNullOrEmpty(request.CheckUuid)
                                                       ? "/" + request.CheckUuid
                                                       : string.Empty)));
 }