Skip to content

Commit 2d35ea4

Browse files
committed
Added scannedCode to CartItem
1 parent 9e99d99 commit 2d35ea4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.1.1'
12+
classpath 'com.android.tools.build:gradle:3.1.2'
1313
classpath 'de.undercouch:gradle-download-task:3.4.2'
1414
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
1515
classpath "gradle.plugin.gmazzo:sqlite-plugin:0.2"
@@ -23,7 +23,7 @@ allprojects {
2323
}
2424

2525
project.ext {
26-
sdkVersion='0.5.2'
26+
sdkVersion='0.5.3'
2727
versionCode=1
2828

2929
compileSdkVersion=27

core/src/main/java/io/snabble/sdk/Checkout.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ private static class CartCustomer {
5252

5353
private static class CartItem {
5454
private String sku;
55+
private String scannedCode;
5556
private int amount;
5657
}
5758

@@ -681,6 +682,7 @@ private String shoppingCartToCheckoutCart() {
681682

682683
cart.items[i] = new CartItem();
683684
cart.items[i].sku = String.valueOf(product.getSku());
685+
cart.items[i].scannedCode = shoppingCart.getScannedCode(i);
684686
cart.items[i].amount = quantity;
685687
}
686688

0 commit comments

Comments
 (0)