|
1 |
| -namespace FikaAmazonAPI.ConstructFeed.Messages |
| 1 | +using System.Collections.Generic; |
| 2 | +using System.Xml.Serialization; |
| 3 | +using FikaAmazonAPI.ConstructFeed.Messages; |
| 4 | +using static FikaAmazonAPI.ConstructFeed.BaseXML; |
| 5 | + |
| 6 | +namespace FikaAmazonAPI.ConstructFeed.Messages |
2 | 7 | {
|
3 | 8 | public partial class OrderAdjustmentMessage
|
4 |
| - { |
| 9 | + { |
| 10 | + [XmlElement(ElementName = "AmazonOrderID")] |
| 11 | + public string AmazonOrderID { get; set; } |
| 12 | + [XmlElement(ElementName = "MerchantFulfillmentID")] |
| 13 | + public string MerchantFulfillmentID { get; set; } |
| 14 | + |
| 15 | + [XmlElement(ElementName = "ActionType")] |
| 16 | + public AdjustmentActionType ActionType { get; set; } |
| 17 | + |
| 18 | + [XmlElement(ElementName = "CODCollectionMethod")] |
| 19 | + public CODCollectionMethod CODCollectionMethod { get; set; } |
| 20 | + |
| 21 | + [XmlElement(ElementName = "AdjustedItem")] |
| 22 | + public List<AdjustedItem> AdjustedItem { get; set; } |
| 23 | + } |
| 24 | + |
| 25 | + public class AdjustedItem |
| 26 | + { |
| 27 | + [XmlElement(ElementName = "AmazonOrderItemCode")] |
| 28 | + public string AmazonOrderItemCode { get; set; } |
| 29 | + [XmlElement(ElementName = "MerchantOrderItemID")] |
| 30 | + public string MerchantOrderItemID { get; set; } |
| 31 | + |
| 32 | + [XmlElement(ElementName = "MerchantAdjustmentItemID")] |
| 33 | + public string MerchantAdjustmentItemID { get; set; } |
| 34 | + |
| 35 | + [XmlElement(ElementName = "AdjustmentReason")] |
| 36 | + public AdjustmentReason AdjustmentReason { get; set; } |
| 37 | + |
| 38 | + [XmlElement(ElementName = "ItemPriceAdjustments")] |
| 39 | + public List<AdjustmentBuyerPrice> ItemPriceAdjustments { get; set; } |
| 40 | + |
| 41 | + [XmlElement(ElementName = "PromotionAdjustments")] |
| 42 | + public List<PromotionAdjustments> PromotionAdjustments { get; set; } |
| 43 | + |
| 44 | + [XmlElement(ElementName = "DirectPaymentAdjustments")] |
| 45 | + public List<DirectPaymentAdjustments> DirectPaymentAdjustments { get; set; } |
| 46 | + } |
| 47 | + |
| 48 | + public class AdjustmentBuyerPrice |
| 49 | + { |
| 50 | + [XmlElement(ElementName = "Type")] |
| 51 | + AdjustmentBuyerTypePrice BuyerPriceType { get; set; } |
| 52 | + |
| 53 | + [XmlElement(ElementName = "Amount")] |
| 54 | + CurrencyAmount Amount { get; set; } |
| 55 | + } |
| 56 | + |
| 57 | + public class PromotionAdjustments |
| 58 | + { |
| 59 | + [XmlElement(ElementName = "PromotionClaimCode")] |
| 60 | + public string PromotionClaimCode { get; set; } |
| 61 | + |
| 62 | + [XmlElement(ElementName = "MerchantPromotionID")] |
| 63 | + public string MerchantPromotionID { get; set; } |
| 64 | + |
| 65 | + [XmlElement(ElementName = "Component")] |
| 66 | + public List<PromotionAdjustmentComponent> Component { get; set; } |
| 67 | + } |
| 68 | + |
| 69 | + public class PromotionAdjustmentComponent |
| 70 | + { |
| 71 | + [XmlElement(ElementName = "Type")] |
| 72 | + public PromotionApplicationType PromotionType { get; set; } |
| 73 | + |
| 74 | + [XmlElement(ElementName = "AdjustmentCurrencyAmount")] |
| 75 | + public CurrencyAmount Amount { get; set; } |
| 76 | + } |
| 77 | + |
| 78 | + public class DirectPaymentAdjustmentsComponent |
| 79 | + { |
| 80 | + [XmlElement(ElementName = "Type")] |
| 81 | + public string DirectPaymentType { get; set; } |
| 82 | + |
| 83 | + [XmlElement(ElementName = "AdjustmentCurrencyAmount")] |
| 84 | + public CurrencyAmount Amount { get; set; } |
| 85 | + } |
| 86 | + |
| 87 | + public class DirectPaymentAdjustments |
| 88 | + { |
| 89 | + [XmlElement(ElementName = "Component")] |
| 90 | + public List<DirectPaymentAdjustmentsComponent> Component { get; set; } |
| 91 | + } |
| 92 | + |
| 93 | + public enum AdjustmentActionType |
| 94 | + { |
| 95 | + Refund, |
| 96 | + Cancel |
| 97 | + } |
| 98 | + |
| 99 | + public enum CODCollectionMethod |
| 100 | + { |
| 101 | + DirectPayment |
| 102 | + } |
| 103 | + |
| 104 | + public enum AdjustmentReason |
| 105 | + { |
| 106 | + NoInventory, |
| 107 | + CustomerReturn, |
| 108 | + GeneralAdjustment, |
| 109 | + CouldNotShip, |
| 110 | + DifferentItem, |
| 111 | + Abandoned, |
| 112 | + CustomerCancel, |
| 113 | + PriceError, |
| 114 | + ProductOutofStock, |
| 115 | + CustomerAddressIncorrect, |
| 116 | + Exchange, |
| 117 | + Other, |
| 118 | + CarrierCreditDecision, |
| 119 | + RiskAssessmentInformationNotValid, |
| 120 | + CarrierCoverageFailure, |
| 121 | + TransactionRecord, |
| 122 | + Undeliverable, |
| 123 | + RefusedDelivery |
| 124 | + } |
| 125 | + |
| 126 | + public enum AdjustmentBuyerTypePrice |
| 127 | + { |
| 128 | + Principal, |
| 129 | + Shipping, |
| 130 | + Tax, |
| 131 | + ShippingTax, |
| 132 | + RestockingFee, |
| 133 | + RestockingFeeTax, |
| 134 | + GiftWrap, |
| 135 | + GiftWrapTax, |
| 136 | + Surcharge, |
| 137 | + ReturnShipping, |
| 138 | + Goodwill, |
| 139 | + ExportCharge, |
| 140 | + COD, |
| 141 | + CODTax, |
| 142 | + Other, |
| 143 | + FreeReplacementReturnShipping |
| 144 | + } |
| 145 | + |
| 146 | + public enum PromotionApplicationType |
| 147 | + { |
| 148 | + Principal, |
| 149 | + Shipping |
5 | 150 | }
|
6 | 151 | }
|
0 commit comments