Commit 6f80d446 by liyanlin

fix

parent e723fa90
package com.bailuntec.api.ebay.seller; 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.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader; 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 io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -8,35 +8,11 @@ import java.util.List; ...@@ -8,35 +8,11 @@ import java.util.List;
/** /**
* @Author: li.yanlin * @Author: li.yanlin
* @Description: * @Description:
* @Date: Created in 2021-05-19 * @Date: Created in
* @Modified by: * @Modified by:
*/ */
@Data @Data
public class EbayTransactionRes { public class Transaction {
/*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{
private Amount amount; private Amount amount;
@ApiModelProperty("在此字段中返回的枚举值指示货币交易金额是卖方帐户的(CREDIT)还是(DEBIT)。 通常,SALE和CREDIT交易类型记入卖方帐户,而REFUND,DISPUTE,SHIPPING_LABEL和TRANSFER交易类型记入卖方帐户的借方。") @ApiModelProperty("在此字段中返回的枚举值指示货币交易金额是卖方帐户的(CREDIT)还是(DEBIT)。 通常,SALE和CREDIT交易类型记入卖方帐户,而REFUND,DISPUTE,SHIPPING_LABEL和TRANSFER交易类型记入卖方帐户的借方。")
...@@ -75,62 +51,3 @@ class Transaction{ ...@@ -75,62 +51,3 @@ class Transaction{
private String transactionType; 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