1
0
mirror of synced 2026-10-17 21:06:13 +08:00

🎨 #4087 【微信支付】兼容收付通旧版下单模型

This commit is contained in:
Binary Wang
2026-08-11 13:40:21 +08:00
committed by GitHub
parent c315d083aa
commit eb42a331b3
16 changed files with 2677 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
package com.github.binarywang.wxpay.service;
import com.github.binarywang.wxpay.bean.ecommerce.TransactionsResult;
import com.github.binarywang.wxpay.bean.ecommerce.enums.TradeTypeEnum;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* Compile-time compatibility checks for the pre-#4014 e-commerce API.
*/
public class LegacyEcommerceApiCompatibilityTest {
@Test
public void shouldKeepLegacyTransactionResultAndTradeTypeAvailable() {
TransactionsResult result = new TransactionsResult();
Assert.assertNotNull(result);
Assert.assertEquals(TradeTypeEnum.JSAPI.name(), "JSAPI");
}
}