Skip to content

Commit cb79763

Browse files
committed
update: change SHIPPING_EMAIL to SHIP_TO_EMAIL
1 parent 4443acf commit cb79763

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/com/alipay/global/api/example/RiskDecideTeeDemoCode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public static void encryptRequest(RiskDecideRequest request) throws CryptoExcept
119119
EncryptKeyEnum.SHIPPING_ADDRESS1,
120120
EncryptKeyEnum.SHIPPING_ADDRESS2,
121121
EncryptKeyEnum.SHIPPING_NAME,
122-
EncryptKeyEnum.SHIPPING_EMAIL,
122+
EncryptKeyEnum.SHIP_TO_EMAIL,
123123
EncryptKeyEnum.SHIPPING_PHONE_NO
124124
);
125125
// 2.2. encrypt request by using RiskDecideEncryptStrategy

src/main/java/com/alipay/global/api/request/ams/risk/tee/encryptstrategy/RiskDecideEncryptStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private void doEncrypt(byte[] data_key, RiskDecideRequest request, List<EncryptK
115115
encryptName(data_key, order.getShipping().getShippingName(), crypto);
116116
}
117117
break;
118-
case SHIPPING_EMAIL:
118+
case SHIP_TO_EMAIL:
119119
for (Order order : orders) {
120120
String email = order.getShipping().getShipToEmail();
121121
if (email == null || email.isEmpty()) {

src/main/java/com/alipay/global/api/request/ams/risk/tee/enums/EncryptKeyEnum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public enum EncryptKeyEnum {
1616
SHIPPING_ADDRESS1("address1", "orders.shipping.shippingAddress.address1"),
1717
SHIPPING_ADDRESS2("address2", "orders.shipping.shippingAddress.address2"),
1818
SHIPPING_NAME("shippingName", "orders.shipping.shippingName"),
19-
SHIPPING_EMAIL("shipToEmail", "orders.shipping.shipToEmail"),
19+
SHIP_TO_EMAIL("shipToEmail", "orders.shipping.shipToEmail"),
2020
SHIPPING_PHONE_NO("shippingPhoneNo", "orders.shipping.shippingPhoneNo")
2121

2222
;

0 commit comments

Comments
 (0)