Skip to content

Commit abbd4bf

Browse files
committed
2 parents 74ca13d + e25ab8f commit abbd4bf

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentOutbound/Currency.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,16 @@ public Currency() { }
6060
/// Three-digit currency code in ISO 4217 format.
6161
/// </summary>
6262
/// <value>Three-digit currency code in ISO 4217 format.</value>
63-
[DataMember(Name = "CurrencyCode", EmitDefaultValue = false)]
63+
[DataMember(Name = "currencyCode", EmitDefaultValue = false)]
64+
[JsonProperty(PropertyName = "currencyCode")]
6465
public string CurrencyCode { get; set; }
6566

6667
/// <summary>
6768
/// The currency amount.
6869
/// </summary>
6970
/// <value>The currency amount.</value>
70-
[DataMember(Name = "Value", EmitDefaultValue = false)]
71+
[DataMember(Name = "value", EmitDefaultValue = false)]
72+
[JsonProperty(PropertyName = "value")]
7173
public string Value { get; set; }
7274

7375
/// <summary>

Source/FikaAmazonAPI/Services/NotificationService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,18 @@ public async Task StartReceivingNotificationMessagesAsync(ParameterMessageReceiv
136136
try
137137
{
138138
var result = await amazonSQSClient.ReceiveMessageAsync(receiveMessageRequest, cancellationToken);
139-
var Messages = result.Messages;
139+
var Messages = result.Messages ?? new List<Message>();
140140
if (Messages.Count > 0)
141141
{
142142
foreach (var msg in Messages)
143143
{
144144
ProcessAnyOfferChangedMessage(msg, messageReceiver, amazonSQSClient, SQS_URL, isDeleteNotificationAfterRead, cancellationToken).ConfigureAwait(false);
145145

146146
}
147-
148-
if (Messages.Count < 10)
149-
Thread.Sleep(1000 * 5);
150147
}
148+
149+
if (Messages.Count < 10)
150+
Thread.Sleep(1000 * 5);
151151
}
152152
catch (Exception ex)
153153
{

0 commit comments

Comments
 (0)