如果买家购买了某个商品并在完成支付前向卖家请求交易总额,TransactionArray.Transaction.Status.CheckoutStatus转为BuyerRequestsTotal。当卖家回应买家的请求后,TransactionArray.Transaction.Status.CheckoutStatus 转为SellerResponded。
调用GetSellerTransactions转换CheckoutStatus字段的代码片段如下:
After buyer purchased the item
<CreatedDate>2011-02-04T19:38:38.000Z</CreatedDate>
<Status>
<eBayPaymentStatus>NoPaymentFailure</eBayPaymentStatus>
<CheckoutStatus>CheckoutIncomplete</CheckoutStatus>
<LastTimeModified>2011-02-04T19:38:39.000Z</LastTimeModified>
<PaymentMethodUsed>None</PaymentMethodUsed>
<CompleteStatus>Incomplete</CompleteStatus>
<BuyerSelectedShipping>false</BuyerSelectedShipping>
<PaymentHoldStatus>None</PaymentHoldStatus>
<IntegratedMerchantCreditCardEnabled>false</IntegratedMerchantCreditCardEnabled>
</Status>
<TransactionID>611212955008</TransactionID>
</Transaction>
After buyer requested total -
<CreatedDate>2011-02-04T19:38:38.000Z</CreatedDate>
<DepositType>None</DepositType>
<QuantityPurchased>1</QuantityPurchased>
<Status>
<eBayPaymentStatus>NoPaymentFailure</eBayPaymentStatus>
<CheckoutStatus>BuyerRequestsTotal</CheckoutStatus>
<LastTimeModified>2011-02-04T19:47:15.000Z</LastTimeModified>
<PaymentMethodUsed>None</PaymentMethodUsed>
<CompleteStatus>Incomplete</CompleteStatus>
<BuyerSelectedShipping>false</BuyerSelectedShipping>
<PaymentHoldStatus>None</PaymentHoldStatus>
<IntegratedMerchantCreditCardEnabled>false</IntegratedMerchantCreditCardEnabled>
</Status>
<TransactionID>611212955008</TransactionID>
</Transaction>
After Seller responded to buyer request -
<CreatedDate>2011-02-04T19:38:38.000Z</CreatedDate>
<Status>
<eBayPaymentStatus>NoPaymentFailure</eBayPaymentStatus>
<CheckoutStatus>SellerResponded</CheckoutStatus>
<LastTimeModified>2011-02-04T20:01:28.000Z</LastTimeModified>
<PaymentMethodUsed>None</PaymentMethodUsed>
<CompleteStatus>Incomplete</CompleteStatus>
<BuyerSelectedShipping>false</BuyerSelectedShipping>
<PaymentHoldStatus>None</PaymentHoldStatus>
<IntegratedMerchantCreditCardEnabled>false</IntegratedMerchantCreditCardEnabled>
</Status>
<TransactionID>611212955008</TransactionID>
</Transaction>
After buyer completes checkout -
<CreatedDate>2011-02-04T19:38:38.000Z</CreatedDate>
<Status>
<eBayPaymentStatus>NoPaymentFailure</eBayPaymentStatus>
<CheckoutStatus>CheckoutComplete</CheckoutStatus>
<LastTimeModified>2011-02-04T21:47:02.000Z</LastTimeModified>
<PaymentMethodUsed>PayPal</PaymentMethodUsed>
<CompleteStatus>Complete</CompleteStatus>
<BuyerSelectedShipping>true</BuyerSelectedShipping>
<PaymentHoldStatus>None</PaymentHoldStatus>
<IntegratedMerchantCreditCardEnabled>false</IntegratedMerchantCreditCardEnabled>
</Status>
<TransactionID>611212955008</TransactionID>
<ExternalTransaction>
<ExternalTransactionID>7LY20014TT511654B</ExternalTransactionID>
<ExternalTransactionTime>2011-02-04T20:47:01.000Z</ExternalTransactionTime>
<FeeOrCreditAmount currencyID="USD">0.0</FeeOrCreditAmount>
<PaymentOrRefundAmount currencyID="USD">1.0</PaymentOrRefundAmount>
</ExternalTransaction>
<ShippingServiceSelected>
<ShippingService>ShippingMethodStandard</ShippingService>
<ShippingServiceCost currencyID="USD">0.0</ShippingServiceCost>
</ShippingServiceSelected>
</Transaction>
|