From 6086dd5101fef4505d9507c83aa83638173374f3 Mon Sep 17 00:00:00 2001 From: felord Date: Wed, 31 Mar 2021 13:36:49 +0800 Subject: [PATCH] style: copy right --- .../wechat/v2/WechatAllocationApi.java | 19 ++++--- .../payment/wechat/v2/model/BaseModel.java | 3 +- .../allocation/BaseProfitSharingModel.java | 20 +++++++ .../BaseProfitSharingReceiverModel.java | 20 +++++++ .../allocation/MultiProfitSharingModel.java | 20 +++++++ .../allocation/MultiProfitSharingSModel.java | 20 +++++++ .../ProfitSharingAddReceiverModel.java | 23 ++++++++ .../ProfitSharingAddReceiverSModel.java | 20 +++++++ .../allocation/ProfitSharingFinishModel.java | 20 +++++++ .../model/allocation/ProfitSharingModel.java | 18 ++++++ .../ProfitSharingOrderAmountQueryModel.java | 20 +++++++ .../allocation/ProfitSharingQueryModel.java | 20 +++++++ .../ProfitSharingRemoveReceiverModel.java | 23 ++++++++ .../ProfitSharingRemoveReceiverSModel.java | 20 +++++++ .../allocation/ProfitSharingReturnModel.java | 20 +++++++ .../ProfitSharingReturnQueryModel.java | 20 +++++++ .../model/allocation/ProfitSharingSModel.java | 19 +++++++ .../wechat/v2/model/allocation/Receiver.java | 23 ++++++++ .../v2/model/allocation/RelationType.java | 55 +++++++++++++++++++ .../wechat/v2/model/allocation/Type.java | 8 ++- 20 files changed, 400 insertions(+), 11 deletions(-) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/WechatAllocationApi.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/WechatAllocationApi.java index 48b7814..6c815ca 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/WechatAllocationApi.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/WechatAllocationApi.java @@ -18,6 +18,7 @@ package cn.felord.payment.wechat.v2; import cn.felord.payment.wechat.WechatPayProperties; +import cn.felord.payment.wechat.v2.model.BaseModel; import cn.felord.payment.wechat.v2.model.allocation.*; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.DeserializationFeature; @@ -83,7 +84,7 @@ public class WechatAllocationApi { profitSharingSModel.setOutOrderNo(profitSharingModel.getOutOrderNo()); profitSharingSModel.certPath(v3.getCertPath()); - profitSharingSModel.signType("HMAC-SHA256"); + profitSharingSModel.signType(BaseModel.HMAC_SHA256); return wechatV2Client.wechatPayRequest(profitSharingSModel, HttpMethod.POST, "https://api.mch.weixin.qq.com/secapi/pay/profitsharing"); @@ -109,7 +110,7 @@ public class WechatAllocationApi { multiProfitSharingSModel.setOutOrderNo(multiProfitSharingModel.getOutOrderNo()); multiProfitSharingSModel.certPath(v3.getCertPath()); - multiProfitSharingSModel.signType("HMAC-SHA256"); + multiProfitSharingSModel.signType(BaseModel.HMAC_SHA256); return wechatV2Client.wechatPayRequest(multiProfitSharingSModel, HttpMethod.POST, "https://api.mch.weixin.qq.com/secapi/pay/multiprofitsharing"); @@ -125,7 +126,7 @@ public class WechatAllocationApi { WechatPayProperties.V3 v3 = wechatV2Client.getWechatMetaBean().getV3(); profitSharingQueryModel.setMchId(v3.getMchId()); profitSharingQueryModel.certPath(v3.getCertPath()); - profitSharingQueryModel.signType("HMAC-SHA256"); + profitSharingQueryModel.signType(BaseModel.HMAC_SHA256); return wechatV2Client.wechatPayRequest(profitSharingQueryModel, HttpMethod.POST, "https://api.mch.weixin.qq.com/pay/profitsharingquery"); @@ -148,7 +149,7 @@ public class WechatAllocationApi { profitSharingAddReceiverSModel.setMchId(v3.getMchId()); profitSharingAddReceiverSModel.certPath(v3.getCertPath()); - profitSharingAddReceiverSModel.signType("HMAC-SHA256"); + profitSharingAddReceiverSModel.signType(BaseModel.HMAC_SHA256); return wechatV2Client.wechatPayRequest(profitSharingAddReceiverSModel, HttpMethod.POST, "https://api.mch.weixin.qq.com/pay/profitsharingaddreceiver"); @@ -171,7 +172,7 @@ public class WechatAllocationApi { profitSharingRemoveReceiverSModel.setMchId(v3.getMchId()); profitSharingRemoveReceiverSModel.certPath(v3.getCertPath()); - profitSharingRemoveReceiverSModel.signType("HMAC-SHA256"); + profitSharingRemoveReceiverSModel.signType(BaseModel.HMAC_SHA256); return wechatV2Client.wechatPayRequest(profitSharingRemoveReceiverSModel, HttpMethod.POST, "https://api.mch.weixin.qq.com/pay/profitsharingremovereceiver"); @@ -188,7 +189,7 @@ public class WechatAllocationApi { profitSharingFinishModel.setAppid(v3.getAppId()); profitSharingFinishModel.setMchId(v3.getMchId()); profitSharingFinishModel.certPath(v3.getCertPath()); - profitSharingFinishModel.signType("HMAC-SHA256"); + profitSharingFinishModel.signType(BaseModel.HMAC_SHA256); return wechatV2Client.wechatPayRequest(profitSharingFinishModel, HttpMethod.POST, "https://api.mch.weixin.qq.com/secapi/pay/profitsharingfinish"); @@ -204,7 +205,7 @@ public class WechatAllocationApi { WechatPayProperties.V3 v3 = wechatV2Client.getWechatMetaBean().getV3(); profitSharingOrderAmountQueryModel.setMchId(v3.getMchId()); profitSharingOrderAmountQueryModel.certPath(v3.getCertPath()); - profitSharingOrderAmountQueryModel.signType("HMAC-SHA256"); + profitSharingOrderAmountQueryModel.signType(BaseModel.HMAC_SHA256); return wechatV2Client.wechatPayRequest(profitSharingOrderAmountQueryModel, HttpMethod.POST, "https://api.mch.weixin.qq.com/pay/profitsharingorderamountquery"); @@ -221,7 +222,7 @@ public class WechatAllocationApi { profitSharingReturnModel.setAppid(v3.getAppId()); profitSharingReturnModel.setMchId(v3.getMchId()); profitSharingReturnModel.certPath(v3.getCertPath()); - profitSharingReturnModel.signType("HMAC-SHA256"); + profitSharingReturnModel.signType(BaseModel.HMAC_SHA256); return wechatV2Client.wechatPayRequest(profitSharingReturnModel, HttpMethod.POST, "https://api.mch.weixin.qq.com/secapi/pay/profitsharingreturn"); @@ -238,7 +239,7 @@ public class WechatAllocationApi { profitSharingReturnQueryModel.setAppid(v3.getAppId()); profitSharingReturnQueryModel.setMchId(v3.getMchId()); profitSharingReturnQueryModel.certPath(v3.getCertPath()); - profitSharingReturnQueryModel.signType("HMAC-SHA256"); + profitSharingReturnQueryModel.signType(BaseModel.HMAC_SHA256); return wechatV2Client.wechatPayRequest(profitSharingReturnQueryModel, HttpMethod.POST, "https://api.mch.weixin.qq.com/pay/profitsharingreturnquery"); diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/BaseModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/BaseModel.java index 7203ecc..1f6380f 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/BaseModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/BaseModel.java @@ -65,6 +65,7 @@ import java.security.cert.CertificateException; */ @Getter public abstract class BaseModel { + public static final String HMAC_SHA256="HMAC-SHA256"; private static final XmlMapper XML_MAPPER = new XmlMapper(); private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); @@ -115,7 +116,7 @@ public abstract class BaseModel { @SneakyThrows private String xml() { String link = link(this); - if ("HMAC-SHA256".equals(signType)) { + if (HMAC_SHA256.equals(signType)) { this.sign = this.hmacSha256(link); } else { this.sign = this.md5(link); diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/BaseProfitSharingModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/BaseProfitSharingModel.java index 7b6deb5..b526ad2 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/BaseProfitSharingModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/BaseProfitSharingModel.java @@ -1,3 +1,20 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import cn.felord.payment.wechat.v2.model.BaseModel; @@ -5,6 +22,9 @@ import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Base profit sharing model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/BaseProfitSharingReceiverModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/BaseProfitSharingReceiverModel.java index cad5cb3..7a235f3 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/BaseProfitSharingReceiverModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/BaseProfitSharingReceiverModel.java @@ -1,3 +1,20 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import cn.felord.payment.wechat.v2.model.BaseModel; @@ -5,6 +22,9 @@ import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Base profit sharing receiver model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/MultiProfitSharingModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/MultiProfitSharingModel.java index 9bf11c9..8718017 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/MultiProfitSharingModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/MultiProfitSharingModel.java @@ -1,6 +1,26 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; /** + * The type Multi profit sharing model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ public class MultiProfitSharingModel extends ProfitSharingModel { diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/MultiProfitSharingSModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/MultiProfitSharingSModel.java index 50adf70..af5f404 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/MultiProfitSharingSModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/MultiProfitSharingSModel.java @@ -1,6 +1,26 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; /** + * The type Multi profit sharing s model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ public class MultiProfitSharingSModel extends ProfitSharingSModel { diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingAddReceiverModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingAddReceiverModel.java index 3c7c5e5..34d31d4 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingAddReceiverModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingAddReceiverModel.java @@ -1,9 +1,29 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Profit sharing add receiver model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) @@ -12,6 +32,9 @@ public class ProfitSharingAddReceiverModel extends BaseProfitSharingReceiverMode private Receiver receiver; + /** + * The type Receiver. + */ @Data public static class Receiver { diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingAddReceiverSModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingAddReceiverSModel.java index 66ac762..ba8ef1b 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingAddReceiverSModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingAddReceiverSModel.java @@ -1,9 +1,29 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Profit sharing add receiver s model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingFinishModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingFinishModel.java index c5014fd..4d046f3 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingFinishModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingFinishModel.java @@ -1,3 +1,20 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import cn.felord.payment.wechat.v2.model.BaseModel; @@ -5,6 +22,9 @@ import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Profit sharing finish model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingModel.java index 08269e8..638ff68 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingModel.java @@ -1,3 +1,20 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import lombok.Data; @@ -9,6 +26,7 @@ import java.util.List; * 单次分账请求按照传入的分账接收方账号和资金进行分账,同时会将订单剩余的待分账金额解冻给本商户。 * 故操作成功后,订单不能再进行分账,也不能进行分账完结。 * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingOrderAmountQueryModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingOrderAmountQueryModel.java index 310b9f5..02b9ab2 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingOrderAmountQueryModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingOrderAmountQueryModel.java @@ -1,3 +1,20 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import cn.felord.payment.wechat.v2.model.BaseModel; @@ -5,6 +22,9 @@ import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Profit sharing order amount query model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingQueryModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingQueryModel.java index 7777b6a..1f7584d 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingQueryModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingQueryModel.java @@ -1,3 +1,20 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import cn.felord.payment.wechat.v2.model.BaseModel; @@ -5,6 +22,9 @@ import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Profit sharing query model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingRemoveReceiverModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingRemoveReceiverModel.java index b1dc962..b97c49e 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingRemoveReceiverModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingRemoveReceiverModel.java @@ -1,9 +1,29 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Profit sharing remove receiver model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) @@ -12,6 +32,9 @@ public class ProfitSharingRemoveReceiverModel extends BaseProfitSharingReceiverM private Receiver receiver; + /** + * The type Receiver. + */ @Data public static class Receiver { diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingRemoveReceiverSModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingRemoveReceiverSModel.java index 8327eeb..39ef4d3 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingRemoveReceiverSModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingRemoveReceiverSModel.java @@ -1,9 +1,29 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Profit sharing remove receiver s model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingReturnModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingReturnModel.java index 7b0381e..6a7f021 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingReturnModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingReturnModel.java @@ -1,3 +1,20 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import cn.felord.payment.wechat.v2.model.BaseModel; @@ -5,6 +22,9 @@ import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Profit sharing return model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingReturnQueryModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingReturnQueryModel.java index 3ce2299..40669db 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingReturnQueryModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingReturnQueryModel.java @@ -1,3 +1,20 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import cn.felord.payment.wechat.v2.model.BaseModel; @@ -5,6 +22,9 @@ import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Profit sharing return query model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingSModel.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingSModel.java index 8ec518d..99df912 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingSModel.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/ProfitSharingSModel.java @@ -1,9 +1,28 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package cn.felord.payment.wechat.v2.model.allocation; import lombok.Data; import lombok.EqualsAndHashCode; /** + * The type Profit sharing s model. + * + * @author wangzecheng * @since 1.0.10.RELEASE */ @EqualsAndHashCode(callSuper = true) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/Receiver.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/Receiver.java index 322c4cc..352b822 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/Receiver.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/Receiver.java @@ -1,7 +1,30 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; import lombok.Data; +/** + * The type Receiver. + * + * @author wangzecheng + * @since 1.0.10.RELEASE + */ @Data public class Receiver { diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/RelationType.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/RelationType.java index 0c0cbcc..319abc1 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/RelationType.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/RelationType.java @@ -1,17 +1,72 @@ +/* + * Copyright 2019-2021 felord.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * Website: + * https://felord.cn + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.felord.payment.wechat.v2.model.allocation; +/** + * The enum Relation type. + * @author wangzecheng + * @since 1.0.10.RELEASE + */ public enum RelationType { + /** + * Service provider relation type. + */ SERVICE_PROVIDER, + /** + * Store relation type. + */ STORE, + /** + * Staff relation type. + */ STAFF, + /** + * Store owner relation type. + */ STORE_OWNER, + /** + * Partner relation type. + */ PARTNER, + /** + * Headquarter relation type. + */ HEADQUARTER, + /** + * Brand relation type. + */ BRAND, + /** + * Distributor relation type. + */ DISTRIBUTOR, + /** + * User relation type. + */ USER, + /** + * Supplier relation type. + */ SUPPLIER, + /** + * Custom relation type. + */ CUSTOM } diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/Type.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/Type.java index 9fc1be9..1a0b7be 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/Type.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v2/model/allocation/Type.java @@ -1,5 +1,11 @@ package cn.felord.payment.wechat.v2.model.allocation; +/** + * The enum Type. + * + * @author wangzecheng + * @since 1.0.10.RELEASE + */ public enum Type { /** @@ -10,5 +16,5 @@ public enum Type { /** * 个人openid */ - PERSONAL_OPENID; + PERSONAL_OPENID }