Commit 6f80d446 by liyanlin

fix

parent e723fa90
package com.bailuntec.api.ebay.seller;
import com.bailuntec.api.ebay.seller.response.EbayTransactionRes;
import com.bailuntec.api.ebay.seller.response.transaction.EbayTransactionRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
......
package com.bailuntec.api.ebay.seller.response.transaction;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @Author: li.yanlin
* @Description:
* @Date: Created in
* @Modified by:
*/
@Data
public class Amount {
private String currency;
@ApiModelProperty("转换前币种")
private String convertedFromCurrency;
private String convertedFromValue;
private String exchangeRate;
private String value;
}
package com.bailuntec.api.ebay.seller.response.transaction;
import lombok.Data;
/**
* @Author: li.yanlin
* @Description:
* @Date: Created in
* @Modified by:
*/
@Data
public class Buyer {
private String username;
}
package com.bailuntec.api.ebay.seller.response.transaction;
import lombok.Data;
import java.util.List;
/**
* @Author: li.yanlin
* @Description:
* @Date: Created in 2021-05-19
* @Modified by:
*/
@Data
public class EbayTransactionRes {
/*api响应字段*/
private String href;
private Integer limit;
private String next;
private Integer offset;
private String prev;
private Integer total;
private List<Transaction> transactions;
}
package com.bailuntec.api.ebay.seller.response.transaction;
import lombok.Data;
/**
* @Author: li.yanlin
* @Description:
* @Date: Created in
* @Modified by:
*/
@Data
public class Fee {
private Amount amount;
private String feeMemo;
private String feeType;
}
package com.bailuntec.api.ebay.seller.response.transaction;
import java.util.List;
/**
* @Author: li.yanlin
* @Description:
* @Date: Created in
* @Modified by:
*/
public class OrderLineItem {
private Amount amount;
private String lineItemId;
private List<Fee> marketplaceFees;
}
package com.bailuntec.api.ebay.seller.response.transaction;
import lombok.Data;
/**
* @Author: li.yanlin
* @Description:
* @Date: Created in
* @Modified by:
*/
@Data
public class Reference {
private String referenceId;
private String referenceType;
}
package com.bailuntec.api.ebay.seller.response;
package com.bailuntec.api.ebay.seller.response.transaction;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -8,35 +8,11 @@ import java.util.List;
/**
* @Author: li.yanlin
* @Description:
* @Date: Created in 2021-05-19
* @Date: Created in
* @Modified by:
*/
@Data
public class EbayTransactionRes {
/*api响应字段*/
private String href;
private Integer limit;
private String next;
private Integer offset;
private String prev;
private Integer total;
private List<Transaction> transactions;
}
/**
* 交易
*/
@Data
class Transaction{
public class Transaction {
private Amount amount;
@ApiModelProperty("在此字段中返回的枚举值指示货币交易金额是卖方帐户的(CREDIT)还是(DEBIT)。 通常,SALE和CREDIT交易类型记入卖方帐户,而REFUND,DISPUTE,SHIPPING_LABEL和TRANSFER交易类型记入卖方帐户的借方。")
......@@ -62,7 +38,7 @@ class Transaction{
@ApiModelProperty("该金额是在从与订单相关的卖方付款中扣除销售费用之前的订单总金额。要确定将通过卖方付款支付的订单的实际金额,请从basePayoutAmount中减去totalFeeAmount。")
private Amount totalFeeBasisAmount;
private Amount totalFeeAmount;
private String transactionDate;
......@@ -75,62 +51,3 @@ class Transaction{
private String transactionType;
}
/**
* 货币
*/
@Data
class Amount{
private String currency;
@ApiModelProperty("转换前币种")
private String convertedFromCurrency;
private String convertedFromValue;
private String exchangeRate;
private String value;
}
/**
* 买家
*/
@Data
class Buyer{
private String username;
}
/**
* sku行
*/
@Data
class OrderLineItem{
private Amount amount;
private String lineItemId;
private List<Fee> marketplaceFees;
}
/**
* 费用项
*/
@Data
class Fee{
private Amount amount;
private String feeMemo;
private String feeType;
}
/**
*
*/
@Data
class Reference{
private String referenceId;
private String referenceType;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment