cordova-plugin-netcontroll-integration 1.0.149 → 1.0.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- Versao 1.0.149
1
+ Versao 1.0.151
2
2
 
3
3
  Funções internas de integração XMenu / NetControll
4
4
 
5
- - Finalização atualização sdk cielo v2.0.1
5
+ - Ajuste cancelamento de transação Cielo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-netcontroll-integration",
3
- "version": "1.0.149",
3
+ "version": "1.0.151",
4
4
  "description": "Plugin cordova de integracao para uso interno (NetControll/ XMenu)",
5
5
  "cordova": {
6
6
  "id": "cordova-plugin-netcontroll-integration",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="cordova-plugin-netcontroll-integration" version="1.0.149"
2
+ <plugin id="cordova-plugin-netcontroll-integration" version="1.0.151"
3
3
  xmlns="http://apache.org/cordova/ns/plugins/1.0"
4
4
  xmlns:android="http://schemas.android.com/apk/res/android">
5
5
 
@@ -89,9 +89,13 @@
89
89
  <resource-file src="src/libs/cielo/repository/cielo/printer/client/printer-manager/2.4.2/printer-manager-2.4.2.aar" target="libs/cielo/repository/cielo/printer/client/printer-manager/2.4.2/printer-manager-2.4.2.aar" />
90
90
  <resource-file src="src/libs/cielo/repository/cielo/printer/client/printer-manager/2.4.2/printer-manager-2.4.2.pom" target="libs/cielo/repository/cielo/printer/client/printer-manager/2.4.2/printer-manager-2.4.2.pom" />
91
91
 
92
- <!-- <resource-file src="src/libs/cielo/repository/com/cielo/lio/order-manager/1.5.13/order-manager-1.5.13.aar" target="libs/cielo/repository/com/cielo/lio/order-manager/1.5.13/order-manager-1.5.13.aar" />
92
+ <resource-file src="src/libs/cielo/repository/com/cielo/lio/order-manager/1.5.13/order-manager-1.5.13.aar" target="libs/cielo/repository/com/cielo/lio/order-manager/1.5.13/order-manager-1.5.13.aar" />
93
93
  <resource-file src="src/libs/cielo/repository/com/cielo/lio/order-manager/1.5.13/order-manager-1.5.13.module" target="libs/cielo/repository/com/cielo/lio/order-manager/1.5.13/order-manager-1.5.13.module" />
94
- <resource-file src="src/libs/cielo/repository/com/cielo/lio/order-manager/1.5.13/order-manager-1.5.13.pom" target="libs/cielo/repository/com/cielo/lio/order-manager/1.5.13/order-manager-1.5.13.pom" /> -->
94
+ <resource-file src="src/libs/cielo/repository/com/cielo/lio/order-manager/1.5.13/order-manager-1.5.13.pom" target="libs/cielo/repository/com/cielo/lio/order-manager/1.5.13/order-manager-1.5.13.pom" />
95
+
96
+ <resource-file src="src/libs/cielo/repository/com/cielo/lio/order-manager/1.8.7/order-manager-1.8.7.aar" target="libs/cielo/repository/com/cielo/lio/order-manager/1.8.7/order-manager-1.8.7.aar" />
97
+ <resource-file src="src/libs/cielo/repository/com/cielo/lio/order-manager/1.8.7/order-manager-1.8.7.module" target="libs/cielo/repository/com/cielo/lio/order-manager/1.8.7/order-manager-1.8.7.module" />
98
+ <resource-file src="src/libs/cielo/repository/com/cielo/lio/order-manager/1.8.7/order-manager-1.8.7.pom" target="libs/cielo/repository/com/cielo/lio/order-manager/1.8.7/order-manager-1.8.7.pom" />
95
99
 
96
100
  <resource-file src="src/libs/cielo/repository/com/cielo/lio/order-manager/2.0.1/order-manager-2.0.1.aar" target="libs/cielo/repository/com/cielo/lio/order-manager/2.0.1/order-manager-2.0.1.aar" />
97
101
  <resource-file src="src/libs/cielo/repository/com/cielo/lio/order-manager/2.0.1/order-manager-2.0.1.module" target="libs/cielo/repository/com/cielo/lio/order-manager/2.0.1/order-manager-2.0.1.module" />
@@ -508,10 +508,13 @@ public class CieloLioLocal {
508
508
  try {
509
509
  CheckoutRequest.Builder requestBuilder = new CheckoutRequest.Builder()
510
510
  .orderId(orderId)
511
- // .orderId(order.getId())
511
+ //.orderId(order.getId())
512
512
  .amount(amount)
513
513
  .paymentCode(paymentCode)
514
- .installments(installments);
514
+ //.paymentCode(PaymentCode.CREDITO_PARCELADO_LOJA)
515
+ //.installments(1)
516
+ .installments(installments)
517
+ ;
515
518
 
516
519
  if (!ec.equals(""))
517
520
  requestBuilder.ec(ec);
@@ -522,6 +525,7 @@ public class CieloLioLocal {
522
525
  orderManager.checkoutOrder(request, new PaymentListener() {
523
526
  @Override
524
527
  public void onStart() {
528
+ String teste = "asdasd";
525
529
  }
526
530
 
527
531
  @Override
@@ -529,6 +533,13 @@ public class CieloLioLocal {
529
533
  order = paidOrder;
530
534
  order.markAsPaid();
531
535
  orderManager.updateOrder(order);
536
+
537
+ //Payment pgTO = order.getPayments().get(0);
538
+ //bandeira = getBandeira(pgTO.getPaymentFields().get("brand"));
539
+ //transacao = pgTO.getPaymentFields().get("authCode");
540
+ //pagamento.setBandeira(bandeira);
541
+ //pagamento.setAutorizacao(transacao);
542
+
532
543
  callbackContext.success(cordova.plugin.netcontroll.integration.util.NetControllHelpers.parseObjToJsonSrtring(order));
533
544
  resetState();
534
545
  }
@@ -609,12 +620,12 @@ public class CieloLioLocal {
609
620
 
610
621
  @Override
611
622
  public void onCancel() {
612
- callbackContext.success("cancelPayment - onCancel");
623
+ callbackContext.error("cancelPayment - onCancel");
613
624
  }
614
625
 
615
626
  @Override
616
627
  public void onError(PaymentError paymentError) {
617
- callbackContext.success("cancelPayment - onError");
628
+ callbackContext.error("cancelPayment - onError");
618
629
  }
619
630
  });
620
631
  }
package/src/build.gradle CHANGED
@@ -26,7 +26,8 @@ dependencies {
26
26
  //SMART POS
27
27
  //______________________________ Cielo ______________________________
28
28
  // implementation 'com.cielo.lio:order-manager:1.5.13'
29
- implementation 'com.cielo.lio:order-manager:2.0.1'
29
+ implementation 'com.cielo.lio:order-manager:1.8.7'
30
+ // implementation 'com.cielo.lio:order-manager:2.0.1'
30
31
  // implementation 'order-manager-1.5.13.aar:1.5.13
31
32
 
32
33
  // implementation(name: 'cielo/order-manager-1.5.13', ext: 'aar')
@@ -0,0 +1,160 @@
1
+ {
2
+ "formatVersion": "1.1",
3
+ "component": {
4
+ "group": "com.cielo.lio",
5
+ "module": "order-manager",
6
+ "version": "1.8.7",
7
+ "attributes": {
8
+ "org.gradle.status": "release"
9
+ }
10
+ },
11
+ "createdBy": {
12
+ "gradle": {
13
+ "version": "6.5",
14
+ "buildId": "mug6kz5vxvetnmbsw4pjwwkp4q"
15
+ }
16
+ },
17
+ "variants": [
18
+ {
19
+ "name": "releaseApiPublication",
20
+ "attributes": {
21
+ "org.gradle.category": "library",
22
+ "org.gradle.dependency.bundling": "external",
23
+ "org.gradle.libraryelements": "aar",
24
+ "org.gradle.usage": "java-api"
25
+ },
26
+ "dependencies": [
27
+ {
28
+ "group": "org.jetbrains.kotlin",
29
+ "module": "kotlin-stdlib",
30
+ "version": {
31
+ "requires": "1.4.30"
32
+ }
33
+ }
34
+ ],
35
+ "files": [
36
+ {
37
+ "name": "order-manager-1.8.7.aar",
38
+ "url": "order-manager-1.8.7.aar",
39
+ "size": 189499,
40
+ "sha512": "50c22598e86f231d517ead37bc500acdf0ccf06d65291a80f415e2508e9fa1c7ec4cead59bbdda535f3dcacea778acd6294d1d3e2039065ecd6accc2048c7912",
41
+ "sha256": "b7b82949ad81868c375b1f4b4e723c4007bb7995bd2d43dd3486c7ec9efc4848",
42
+ "sha1": "b389fc73b89fa541436ff2df429b6b0ec65efed6",
43
+ "md5": "fcea715a405c9c05878858e704db6c4c"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "name": "releaseRuntimePublication",
49
+ "attributes": {
50
+ "org.gradle.category": "library",
51
+ "org.gradle.dependency.bundling": "external",
52
+ "org.gradle.libraryelements": "aar",
53
+ "org.gradle.usage": "java-runtime"
54
+ },
55
+ "dependencies": [
56
+ {
57
+ "group": "org.jetbrains.kotlin",
58
+ "module": "kotlin-stdlib",
59
+ "version": {
60
+ "requires": "1.4.30"
61
+ }
62
+ },
63
+ {
64
+ "group": "org.jetbrains.kotlin",
65
+ "module": "kotlin-android-extensions-runtime",
66
+ "version": {
67
+ "requires": "1.4.30"
68
+ }
69
+ },
70
+ {
71
+ "group": "cielo.printer.client",
72
+ "module": "printer-manager",
73
+ "version": {
74
+ "requires": "2.4.2"
75
+ }
76
+ },
77
+ {
78
+ "group": "com.squareup.retrofit2",
79
+ "module": "retrofit",
80
+ "version": {
81
+ "requires": "2.3.0"
82
+ }
83
+ },
84
+ {
85
+ "group": "com.squareup.retrofit2",
86
+ "module": "adapter-rxjava2",
87
+ "version": {
88
+ "requires": "2.3.0"
89
+ }
90
+ },
91
+ {
92
+ "group": "com.squareup.retrofit2",
93
+ "module": "converter-gson",
94
+ "version": {
95
+ "requires": "2.3.0"
96
+ }
97
+ },
98
+ {
99
+ "group": "com.google.code.gson",
100
+ "module": "gson",
101
+ "version": {
102
+ "requires": "2.8.0"
103
+ }
104
+ },
105
+ {
106
+ "group": "io.reactivex.rxjava2",
107
+ "module": "rxandroid",
108
+ "version": {
109
+ "requires": "2.0.1"
110
+ }
111
+ },
112
+ {
113
+ "group": "com.squareup.okhttp3",
114
+ "module": "logging-interceptor",
115
+ "version": {
116
+ "requires": "3.12.1"
117
+ }
118
+ },
119
+ {
120
+ "group": "com.squareup.okhttp3",
121
+ "module": "okhttp",
122
+ "version": {
123
+ "requires": "3.12.1"
124
+ },
125
+ "excludes": [
126
+ {
127
+ "group": "com.squareup.okio",
128
+ "module": "okio"
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "group": "com.google.android.gms",
134
+ "module": "play-services-analytics",
135
+ "version": {
136
+ "requires": "18.0.3"
137
+ }
138
+ },
139
+ {
140
+ "group": "com.datadoghq",
141
+ "module": "dd-sdk-android",
142
+ "version": {
143
+ "requires": "1.11.0"
144
+ }
145
+ }
146
+ ],
147
+ "files": [
148
+ {
149
+ "name": "order-manager-1.8.7.aar",
150
+ "url": "order-manager-1.8.7.aar",
151
+ "size": 189499,
152
+ "sha512": "50c22598e86f231d517ead37bc500acdf0ccf06d65291a80f415e2508e9fa1c7ec4cead59bbdda535f3dcacea778acd6294d1d3e2039065ecd6accc2048c7912",
153
+ "sha256": "b7b82949ad81868c375b1f4b4e723c4007bb7995bd2d43dd3486c7ec9efc4848",
154
+ "sha1": "b389fc73b89fa541436ff2df429b6b0ec65efed6",
155
+ "md5": "fcea715a405c9c05878858e704db6c4c"
156
+ }
157
+ ]
158
+ }
159
+ ]
160
+ }
@@ -0,0 +1,94 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <!-- This module was also published with a richer model, Gradle metadata, -->
5
+ <!-- which should be used instead. Do not delete the following line which -->
6
+ <!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7
+ <!-- that they should prefer consuming it instead. -->
8
+ <!-- do_not_remove: published-with-gradle-metadata -->
9
+ <modelVersion>4.0.0</modelVersion>
10
+ <groupId>com.cielo.lio</groupId>
11
+ <artifactId>order-manager</artifactId>
12
+ <version>1.8.7</version>
13
+ <packaging>aar</packaging>
14
+ <dependencies>
15
+ <dependency>
16
+ <groupId>org.jetbrains.kotlin</groupId>
17
+ <artifactId>kotlin-stdlib</artifactId>
18
+ <version>1.4.30</version>
19
+ <scope>compile</scope>
20
+ </dependency>
21
+ <dependency>
22
+ <groupId>org.jetbrains.kotlin</groupId>
23
+ <artifactId>kotlin-android-extensions-runtime</artifactId>
24
+ <version>1.4.30</version>
25
+ <scope>runtime</scope>
26
+ </dependency>
27
+ <dependency>
28
+ <groupId>cielo.printer.client</groupId>
29
+ <artifactId>printer-manager</artifactId>
30
+ <version>2.4.2</version>
31
+ <scope>runtime</scope>
32
+ </dependency>
33
+ <dependency>
34
+ <groupId>com.squareup.retrofit2</groupId>
35
+ <artifactId>retrofit</artifactId>
36
+ <version>2.3.0</version>
37
+ <scope>runtime</scope>
38
+ </dependency>
39
+ <dependency>
40
+ <groupId>com.squareup.retrofit2</groupId>
41
+ <artifactId>adapter-rxjava2</artifactId>
42
+ <version>2.3.0</version>
43
+ <scope>runtime</scope>
44
+ </dependency>
45
+ <dependency>
46
+ <groupId>com.squareup.retrofit2</groupId>
47
+ <artifactId>converter-gson</artifactId>
48
+ <version>2.3.0</version>
49
+ <scope>runtime</scope>
50
+ </dependency>
51
+ <dependency>
52
+ <groupId>com.google.code.gson</groupId>
53
+ <artifactId>gson</artifactId>
54
+ <version>2.8.0</version>
55
+ <scope>runtime</scope>
56
+ </dependency>
57
+ <dependency>
58
+ <groupId>io.reactivex.rxjava2</groupId>
59
+ <artifactId>rxandroid</artifactId>
60
+ <version>2.0.1</version>
61
+ <scope>runtime</scope>
62
+ </dependency>
63
+ <dependency>
64
+ <groupId>com.squareup.okhttp3</groupId>
65
+ <artifactId>logging-interceptor</artifactId>
66
+ <version>3.12.1</version>
67
+ <scope>runtime</scope>
68
+ </dependency>
69
+ <dependency>
70
+ <groupId>com.squareup.okhttp3</groupId>
71
+ <artifactId>okhttp</artifactId>
72
+ <version>3.12.1</version>
73
+ <scope>runtime</scope>
74
+ <exclusions>
75
+ <exclusion>
76
+ <artifactId>okio</artifactId>
77
+ <groupId>com.squareup.okio</groupId>
78
+ </exclusion>
79
+ </exclusions>
80
+ </dependency>
81
+ <dependency>
82
+ <groupId>com.google.android.gms</groupId>
83
+ <artifactId>play-services-analytics</artifactId>
84
+ <version>18.0.3</version>
85
+ <scope>runtime</scope>
86
+ </dependency>
87
+ <dependency>
88
+ <groupId>com.datadoghq</groupId>
89
+ <artifactId>dd-sdk-android</artifactId>
90
+ <version>1.11.0</version>
91
+ <scope>runtime</scope>
92
+ </dependency>
93
+ </dependencies>
94
+ </project>