public IResponse Visit(DetachedRefundRequest request)
 {
     return(_restWrapper.Post <DetachedRefundRequestBody, DetachedRefundResponse>(request.Body,
                                                                                  uri: GetEndpoint(request),
                                                                                  accessTokenHeader: GetHeaderToken(request),
                                                                                  actions: GetCustomResponseHandlers(request)));
 }
        public DetachedRefundResponse CreateDetachedRefund(string accessToken,
                                                           int locationId,
                                                           string qrPaymentData,
                                                           int creditAmountCents,
                                                           string register = null,
                                                           string cashier  = null,
                                                           string identifierFromMerchant = null,
                                                           string managerConfirmation    = null,
                                                           string customerFacingReason   = null,
                                                           string internalReason         = null)
        {
            DetachedRefundRequest request = new DetachedRefundRequest(accessToken, locationId, qrPaymentData, creditAmountCents,
                                                                      register, cashier, identifierFromMerchant, managerConfirmation, customerFacingReason, internalReason);

            return(request.Accept(_engine) as DetachedRefundResponse);
        }
Beispiel #3
0
        public DetachedRefundResponse CreateDetachedRefund(string accessToken,
                                                           int locationId,
                                                           string qrPaymentData,
                                                           int creditAmountCents,
                                                           string register = null,
                                                           string cashier  = null,
                                                           string identifierFromMerchant = null,
                                                           string managerConfirmation    = null,
                                                           string customerFacingReason   = null,
                                                           string internalReason         = null)
        {
            DetachedRefundRequest request = new DetachedRefundRequest(accessToken, locationId, qrPaymentData, creditAmountCents,
                                                                      register, cashier, identifierFromMerchant, managerConfirmation, customerFacingReason, internalReason);

            return(_restWrapper.Post <DetachedRefundRequestBody, DetachedRefundResponse>(
                       request.Body,
                       uri: BuildUri(request.ApiVersion, "detached_refunds"),
                       accessTokenHeader: FormatAccessTokenString(unspecifiedUserAccessToken: request.AccessToken),
                       actions: null));
        }
Beispiel #4
0
 public virtual T Visit(DetachedRefundRequest request)
 {
     return(DEFAULT_FUNC(request));
 }
 public string Visit(DetachedRefundRequest request)
 {
     return(BuildUri(request.ApiVersion, "detached_refunds"));
 }