All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.rwocj.wx.pay.common.OkHttpWxHeaders Maven / Gradle / Ivy

There is a newer version: 0.13-javax
Show newest version
package top.rwocj.wx.pay.common;

import okhttp3.Response;

public class OkHttpWxHeaders implements WxHeaders {

    private final Response response;

    public OkHttpWxHeaders(Response response) {
        this.response = response;
    }

    @Override
    public String getWechatpaySerial() {
        return response.header(WECHATPAY_SERIAL);
    }

    @Override
    public String getWechatpaySignature() {
        return response.header(WECHATPAY_SIGNATURE);
    }

    @Override
    public String getRequestID() {
        return response.header(REQUEST_ID);
    }

    @Override
    public String getWechatpayTimestamp() {
        return response.header(WECHATPAY_TIMESTAMP);
    }

    @Override
    public String getWechatpayNonce() {
        return response.header(WECHATPAY_NONCE);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy