ClearSale_Total - Version 1.0.2

Version Notes

Fix Country Code Error.

Download this release

Release Info

Developer ClearSale Dev Team
Extension ClearSale_Total
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Clearsale/Total/Model/Observer.php CHANGED
@@ -52,243 +52,7 @@ class Clearsale_Total_Model_Observer
52
 
53
 
54
  }
55
-
56
- public function sendHistoricalOrders()
57
- {
58
- try {
59
-
60
- $orders = Mage::getModel('sales/order')->getCollection();
61
-
62
- foreach($orders as $order)
63
- {
64
- $isReanalysis = false;
65
- $payment = $order->getPayment();
66
- $environment = Mage::getStoreConfig("clearsale_total/general/environment");
67
- $CreditcardMethods = explode(",", Mage::getStoreConfig("clearsale_total/general/credicardmethod"));
68
-
69
- if (in_array($payment->getMethodInstance()->getCode(), $CreditcardMethods))
70
- {
71
- $authBO = Mage::getModel('total/auth_business_object');
72
- $authResponse = $authBO->login($environment);
73
- $clearSaleOrder = $this->toClearsaleOrderObject2($order,$isReanalysis,$environment,"History");
74
- $requestOrder = new Clearsale_Total_Model_Order_Entity_RequestOrder();
75
- $requestOrder->ApiKey = Mage::getStoreConfig("clearsale_total/general/key");
76
- $requestOrder->LoginToken = $authResponse->Token->Value;
77
- $requestOrder->AnalysisLocation = "USA";
78
- $requestOrder->Orders[0] = $clearSaleOrder;
79
-
80
- $orderBO = Mage::getModel('total/order_business_object');
81
- $orderResponse = $orderBO->send($requestOrder,$environment);
82
- echo "Order n:".$order->getRealOrderId()." sent <br />";
83
- }
84
- }
85
- }
86
- catch (Exception $e) {
87
-
88
- $csLog = Mage::getSingleton('total/log');
89
- $csLog->log($e->getMessage());
90
-
91
- }
92
-
93
-
94
- }
95
-
96
-
97
- public function toClearsaleOrderObject2(Mage_Sales_Model_Order $order,$isReanalysis,$location,$obs){
98
-
99
- try {
100
-
101
- $customerModel = Mage::getModel('customer/customer');
102
- $customer = $customerModel->load($order->getCustomerId());
103
- $email =$customer->getEmail();
104
-
105
- if (!$email)
106
- {
107
- $email = $order->getBillingAddress()->getEmail();
108
- }
109
-
110
- if($location == "BRA")
111
- {
112
- $legalDocument = preg_replace('/[^0-9]/', '', $customer->getTaxvat());
113
- $currency = "BRL";
114
- }else
115
- {
116
- $currency = "USD";
117
- $legalDocument = "";
118
- }
119
-
120
- $date = new DateTime($order->getCreatedAt());
121
- $date = date('c', strtotime($order->getCreatedAt()));
122
-
123
- $clearsaleOrder = new Clearsale_Total_Model_Order_Entity_Order();
124
- $clearsaleOrder->ID = $order->getRealOrderId();
125
- $clearsaleOrder->IP = Mage::helper('core/http')->getRemoteAddr();
126
- $clearsaleOrder->Currency = $currency;
127
- $clearsaleOrder->Date = $date;
128
- $clearsaleOrder->Reanalysis = $isReanalysis;
129
- $clearsaleOrder->Email = $email;
130
- $clearsaleOrder->TotalOrder = number_format(floatval($order->getGrandTotal()), 2, ".", "");
131
-
132
- $StatusHandle = new Clearsale_Total_Model_Utils_Status();
133
- $statusCS = $StatusHandle->toClearSaleStatus($order->getStatus());
134
- $clearsaleOrder->Status = $statusCS;
135
- echo "Status :".$statusCS."<br />";
136
-
137
- if($obs != "")
138
- {
139
- $clearsaleOrder->Obs = $obs;
140
- }
141
-
142
- $items = $order->getAllItems();
143
- $payment = $order->getPayment();
144
-
145
- $billingAddress = $order->getBillingAddress();
146
- $shippingAddress = $order->getShippingAddress();
147
- $dob = $customer->getDob();
148
- $dob = $date;
149
-
150
- if(!$billingAddress)
151
- {
152
- $billingAddress = $shippingAddress;
153
- }
154
-
155
- if(!$shippingAddress)
156
- {
157
- $shippingAddress = $billingAddress;
158
- }
159
-
160
- $billingName = $billingAddress->getFirstname() . " " . $billingAddress->getMiddlename() . " " . $billingAddress->getLastname();
161
- $billingName = trim(str_replace(" ", " ", $billingName));
162
- $billingCountry = Mage::getModel('directory/country')->loadByCode($billingAddress->getCountry());
163
- $billingPhone = preg_replace('/[^0-9]/', '', $billingAddress->getTelephone());
164
-
165
- $shippingName = $shippingAddress->getFirstname() . " " . $shippingAddress->getMiddlename() . " " . $shippingAddress->getLastname();
166
- $shippingName = trim(str_replace(" ", " ", $shippingName));
167
- $shippingCountry = Mage::getModel('directory/country')->loadByCode($shippingAddress->getCountry());
168
- $shippingPhone = preg_replace('/[^0-9]/', '', $shippingAddress->getTelephone());
169
-
170
- $paymentType = 1;
171
- $creditcardBrand = 0;
172
- $paymentIndex = 0;
173
-
174
- $creditcardMethods = explode(",", Mage::getStoreConfig("clearsale_total/general/credicardmethod"));
175
-
176
- $clearsaleOrder->Payments[$paymentIndex] = new Clearsale_Total_Model_Order_Entity_Payment();
177
- $clearsaleOrder->Payments[$paymentIndex]->Amount = number_format(floatval($order->getGrandTotal()), 2, ".", "");
178
- $clearsaleOrder->Payments[$paymentIndex]->Type = 14;
179
- $clearsaleOrder->Payments[$paymentIndex]->CardType = 4;
180
- $clearsaleOrder->Payments[$paymentIndex]->Date = $date;
181
 
182
- if ($payment->getMethodInstance()->getCode() == "authorizenet")
183
- {
184
-
185
- if (in_array($payment->getMethodInstance()->getCode(), $creditcardMethods)) {
186
-
187
- $clearsaleOrder->Payments[$paymentIndex]->Type = 1;
188
-
189
- $creditcardBrand = 4;
190
- $paymentData = $payment->getData("additional_data");
191
-
192
- if (strripos($paymentData, "diners") !== false)
193
- $creditcardBrand = 1;
194
-
195
- if (strripos($paymentData, "mastercard") !== false)
196
- $creditcardBrand = 2;
197
-
198
- if (strripos($paymentData, "visa") !== false)
199
- $creditcardBrand = 3;
200
-
201
- if ((strripos($paymentData, "amex") !== false) || (strripos($paymentData, "american express") !== false))
202
- $creditcardBrand = 5;
203
-
204
- if (strripos($paymentData, "hipercard") !== false)
205
- $creditcardBrand = 6;
206
-
207
- if (strripos($paymentData, "aura") !== false)
208
- $creditcardBrand = 7;
209
-
210
- if (strripos($paymentData, "carrefour") !== false)
211
- $creditcardBrand = 8;
212
-
213
- $clearsaleOrder->Payments[$paymentIndex]->CardBin = $payment->getAdditionalInformation('clearsaleCCBin');
214
- $clearsaleOrder->Payments[$paymentIndex]->CardHolderName = $payment->getCcOwner();
215
- $clearsaleOrder->Payments[$paymentIndex]->CardType = $creditcardBrand;
216
- $clearsaleOrder->Payments[$paymentIndex]->CardEndNumber = $payment->getCcLast4();
217
- $clearsaleOrder->Payments[$paymentIndex]->PaymentTypeID = 1;
218
-
219
- }
220
- }
221
-
222
-
223
- $clearsaleOrder->BillingData = new Clearsale_Total_Model_Order_Entity_Person();
224
- $clearsaleOrder->BillingData->ID = "1";
225
- $clearsaleOrder->BillingData->Email = $email;
226
- $clearsaleOrder->BillingData->BirthDate = $dob;
227
- $clearsaleOrder->BillingData->Name = $billingName;
228
- $clearsaleOrder->BillingData->Type = 1;
229
- $clearsaleOrder->BillingData->Gender = 'M';
230
- $clearsaleOrder->BillingData->Address->City = $billingAddress->getCity();
231
- $clearsaleOrder->BillingData->Address->County = $billingAddress->getStreetFull();
232
- $clearsaleOrder->BillingData->Address->Street = $billingAddress->getStreet(1);
233
- $clearsaleOrder->BillingData->Address->Number = $billingAddress->getStreet(2);
234
- $clearsaleOrder->BillingData->Address->State = $shippingAddress->getRegion();
235
- $clearsaleOrder->BillingData->Address->ZipCode = preg_replace('/[^0-9]/', '', $billingAddress->getPostcode());
236
- $clearsaleOrder->BillingData->Phones[0] = new Clearsale_Total_Model_Order_Entity_Phone();
237
- $clearsaleOrder->BillingData->Phones[0]->AreaCode = substr($billingPhone, 0, 3);
238
- $clearsaleOrder->BillingData->Phones[0]->Number = $billingPhone;
239
- $clearsaleOrder->BillingData->Phones[0]->CountryCode = "1";
240
- $clearsaleOrder->BillingData->Phones[0]->Type = 1;
241
-
242
- $clearsaleOrder->ShippingData = new Clearsale_Total_Model_Order_Entity_Person();
243
- $clearsaleOrder->ShippingData->ID = "1";
244
- $clearsaleOrder->ShippingData->Email = $email;
245
- $clearsaleOrder->ShippingData->LegalDocument = $legalDocument;
246
- $clearsaleOrder->ShippingData->BirthDate = $dob;
247
- $clearsaleOrder->ShippingData->Name = 'teste';
248
- $clearsaleOrder->ShippingData->Gender = 'M';
249
- $clearsaleOrder->ShippingData->Type = 1;
250
-
251
- $clearsaleOrder->ShippingData->Address->City = $shippingAddress->getCity();
252
- $clearsaleOrder->ShippingData->Address->County = $shippingAddress->getStreetFull();
253
- $clearsaleOrder->ShippingData->Address->Street = $shippingAddress->getStreet(1);
254
- $clearsaleOrder->ShippingData->Address->Number = $shippingAddress->getStreet(2);
255
- $clearsaleOrder->ShippingData->Address->State = $shippingAddress->getRegion();
256
- $clearsaleOrder->ShippingData->Address->ZipCode = preg_replace('/[^0-9]/', '', $shippingAddress->getPostcode());
257
- $clearsaleOrder->ShippingData->Phones[0] = new Clearsale_Total_Model_Order_Entity_Phone();
258
- $clearsaleOrder->ShippingData->Phones[0]->AreaCode = substr($shippingPhone, 0, 2);
259
- $clearsaleOrder->ShippingData->Phones[0]->CountryCode = "1";
260
- $clearsaleOrder->ShippingData->Phones[0]->Number = substr($shippingPhone, 2, 9);
261
- $clearsaleOrder->ShippingData->Phones[0]->Type = 1;
262
-
263
- $itemIndex = 0;
264
- $TotalItems = 0;
265
-
266
- foreach ($items as $item) {
267
- $clearsaleOrder->Items[$itemIndex] = new Clearsale_Total_Model_Order_Entity_Item();
268
- $clearsaleOrder->Items[$itemIndex]->Price = number_format(floatval($item->getPrice()), 2, ".", "");
269
- $clearsaleOrder->Items[$itemIndex]->ProductId = $item->getSku();
270
- $clearsaleOrder->Items[$itemIndex]->ProductTitle = $item->getName();
271
- $clearsaleOrder->Items[$itemIndex]->Quantity = intval($item->getQtyOrdered());
272
- //$clearsaleOrder->Items[0]->Category = getCategoryName($item);
273
- $TotalItems += $clearsaleOrder->Items[$itemIndex]->Price;
274
- $itemIndex++;
275
- }
276
-
277
- $clearsaleOrder->TotalOrder = $order->getGrandTotal();
278
- $clearsaleOrder->TotalItems = $TotalItems;
279
- $clearsaleOrder->TotalShipping = $order->getShippingInclTax();
280
- $clearsaleOrder->SessionID = Mage::getSingleton("core/session")->getEncryptedSessionId();
281
-
282
-
283
- return $clearsaleOrder;
284
-
285
- } catch (Exception $e) {
286
- $csLog = Mage::getSingleton('total/log');
287
- $csLog->log($e->getMessage());
288
- }
289
- }
290
-
291
-
292
  public function getClearsaleOrderStatus()
293
  {
294
  require_once('app/Mage.php');
@@ -339,7 +103,7 @@ class Clearsale_Total_Model_Observer
339
  }
340
  }
341
  }
342
-
343
  public function toClearsaleOrderObject(Mage_Sales_Model_Order $order,$isReanalysis,$location){
344
 
345
  try {
@@ -415,7 +179,6 @@ class Clearsale_Total_Model_Observer
415
  $clearsaleOrder->Payments[$paymentIndex]->CardType = 4;
416
  $clearsaleOrder->Payments[$paymentIndex]->Date = $date;
417
 
418
- //if (in_array($payment->getMethodInstance()->getCode(), $creditcardMethods))
419
  if($payment->getAdditionalInformation('clearsaleCCNumber'))
420
  {
421
 
@@ -424,7 +187,14 @@ class Clearsale_Total_Model_Observer
424
  $clearsaleOrder->Payments[$paymentIndex]->Type = 1;
425
 
426
  $creditcardBrand = 4;
427
- $paymentData = $payment->getData("additional_data");
 
 
 
 
 
 
 
428
 
429
  if (strripos($paymentData, "diners") !== false)
430
  $creditcardBrand = 1;
@@ -445,29 +215,33 @@ class Clearsale_Total_Model_Observer
445
  $creditcardBrand = 7;
446
 
447
  if (strripos($paymentData, "carrefour") !== false)
448
- $creditcardBrand = 8;
449
-
450
-
451
  $clearsaleOrder->Payments[$paymentIndex]->CardBin = $payment->getAdditionalInformation('clearsaleCCBin');
452
- $clearsaleOrder->Payments[$paymentIndex]->CardHolderName = $payment->getCcOwner();
453
  $clearsaleOrder->Payments[$paymentIndex]->CardType = $creditcardBrand;
454
  $clearsaleOrder->Payments[$paymentIndex]->PaymentTypeID = 1;
 
455
  }
456
  }
457
 
458
-
 
 
 
459
  $clearsaleOrder->BillingData = new Clearsale_Total_Model_Order_Entity_Person();
460
  $clearsaleOrder->BillingData->ID = "1";
461
  $clearsaleOrder->BillingData->Email = $email;
462
  $clearsaleOrder->BillingData->BirthDate = $dob;
463
- //$clearsaleOrder->BillingData->LegalDocument = '11111111111';
464
  $clearsaleOrder->BillingData->Name = $billingName;
465
  $clearsaleOrder->BillingData->Type = 1;
466
  $clearsaleOrder->BillingData->Gender = 'M';
467
  $clearsaleOrder->BillingData->Address->City = $billingAddress->getCity();
468
- $clearsaleOrder->BillingData->Address->County = $billingAddress->getStreetFull();
469
  $clearsaleOrder->BillingData->Address->Street = $billingAddress->getStreet(1);
470
- $clearsaleOrder->BillingData->Address->Number = $billingAddress->getStreet(2);
 
471
  $clearsaleOrder->BillingData->Address->State = $shippingAddress->getRegion();
472
  $clearsaleOrder->BillingData->Address->ZipCode = preg_replace('/[^0-9]/', '', $billingAddress->getPostcode());
473
  $clearsaleOrder->BillingData->Phones[0] = new Clearsale_Total_Model_Order_Entity_Phone();
@@ -475,26 +249,31 @@ class Clearsale_Total_Model_Observer
475
  $clearsaleOrder->BillingData->Phones[0]->Number = $billingPhone;
476
  $clearsaleOrder->BillingData->Phones[0]->CountryCode = "1";
477
  $clearsaleOrder->BillingData->Phones[0]->Type = 1;
 
 
 
 
478
 
479
  $clearsaleOrder->ShippingData = new Clearsale_Total_Model_Order_Entity_Person();
480
  $clearsaleOrder->ShippingData->ID = "1";
481
  $clearsaleOrder->ShippingData->Email = $email;
482
  $clearsaleOrder->ShippingData->LegalDocument = $legalDocument;
483
  $clearsaleOrder->ShippingData->BirthDate = $dob;
484
- $clearsaleOrder->ShippingData->Name = 'teste';
485
  $clearsaleOrder->ShippingData->Gender = 'M';
486
  $clearsaleOrder->ShippingData->Type = 1;
487
 
488
  $clearsaleOrder->ShippingData->Address->City = $shippingAddress->getCity();
489
- $clearsaleOrder->ShippingData->Address->County = $shippingAddress->getStreetFull();
490
  $clearsaleOrder->ShippingData->Address->Street = $shippingAddress->getStreet(1);
491
- $clearsaleOrder->ShippingData->Address->Number = $shippingAddress->getStreet(2);
 
492
  $clearsaleOrder->ShippingData->Address->State = $shippingAddress->getRegion();
493
  $clearsaleOrder->ShippingData->Address->ZipCode = preg_replace('/[^0-9]/', '', $shippingAddress->getPostcode());
494
  $clearsaleOrder->ShippingData->Phones[0] = new Clearsale_Total_Model_Order_Entity_Phone();
495
- $clearsaleOrder->ShippingData->Phones[0]->AreaCode = substr($shippingPhone, 0, 2);
496
  $clearsaleOrder->ShippingData->Phones[0]->CountryCode = "1";
497
- $clearsaleOrder->ShippingData->Phones[0]->Number = substr($shippingPhone, 2, 9);
498
  $clearsaleOrder->ShippingData->Phones[0]->Type = 1;
499
 
500
  $itemIndex = 0;
@@ -525,6 +304,7 @@ class Clearsale_Total_Model_Observer
525
  }
526
  }
527
 
 
528
 
529
  public function getCategoryName($product)
530
  {
52
 
53
 
54
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  public function getClearsaleOrderStatus()
57
  {
58
  require_once('app/Mage.php');
103
  }
104
  }
105
  }
106
+
107
  public function toClearsaleOrderObject(Mage_Sales_Model_Order $order,$isReanalysis,$location){
108
 
109
  try {
179
  $clearsaleOrder->Payments[$paymentIndex]->CardType = 4;
180
  $clearsaleOrder->Payments[$paymentIndex]->Date = $date;
181
 
 
182
  if($payment->getAdditionalInformation('clearsaleCCNumber'))
183
  {
184
 
187
  $clearsaleOrder->Payments[$paymentIndex]->Type = 1;
188
 
189
  $creditcardBrand = 4;
190
+ //$paymentData = $payment->getData("additional_data");
191
+
192
+ $paymentData = $payment->getData('cc_type');
193
+
194
+ if($paymentData)
195
+ {
196
+ $paymentData = strtolower($paymentData);
197
+ }
198
 
199
  if (strripos($paymentData, "diners") !== false)
200
  $creditcardBrand = 1;
215
  $creditcardBrand = 7;
216
 
217
  if (strripos($paymentData, "carrefour") !== false)
218
+ $creditcardBrand = 8;
219
+
220
+ $clearsaleOrder->Payments[$paymentIndex]->CardEndNumber = $payment->getAdditionalInformation('clearsaleCCLast4');
221
  $clearsaleOrder->Payments[$paymentIndex]->CardBin = $payment->getAdditionalInformation('clearsaleCCBin');
222
+ $clearsaleOrder->Payments[$paymentIndex]->CardHolderName = $payment->getAdditionalInformation('clearsaleCCHolderName');
223
  $clearsaleOrder->Payments[$paymentIndex]->CardType = $creditcardBrand;
224
  $clearsaleOrder->Payments[$paymentIndex]->PaymentTypeID = 1;
225
+
226
  }
227
  }
228
 
229
+ $countryCode = $billingAddress->getCountry();
230
+ $country = Mage::getModel('directory/country')->loadByCode($countryCode);
231
+ $countryname = $country->getName();
232
+
233
  $clearsaleOrder->BillingData = new Clearsale_Total_Model_Order_Entity_Person();
234
  $clearsaleOrder->BillingData->ID = "1";
235
  $clearsaleOrder->BillingData->Email = $email;
236
  $clearsaleOrder->BillingData->BirthDate = $dob;
 
237
  $clearsaleOrder->BillingData->Name = $billingName;
238
  $clearsaleOrder->BillingData->Type = 1;
239
  $clearsaleOrder->BillingData->Gender = 'M';
240
  $clearsaleOrder->BillingData->Address->City = $billingAddress->getCity();
241
+ $clearsaleOrder->BillingData->Address->Country = $countryname;
242
  $clearsaleOrder->BillingData->Address->Street = $billingAddress->getStreet(1);
243
+ $arr = explode(' ',trim($billingAddress->getStreetFull()));
244
+ $clearsaleOrder->BillingData->Address->Number = $arr[0];
245
  $clearsaleOrder->BillingData->Address->State = $shippingAddress->getRegion();
246
  $clearsaleOrder->BillingData->Address->ZipCode = preg_replace('/[^0-9]/', '', $billingAddress->getPostcode());
247
  $clearsaleOrder->BillingData->Phones[0] = new Clearsale_Total_Model_Order_Entity_Phone();
249
  $clearsaleOrder->BillingData->Phones[0]->Number = $billingPhone;
250
  $clearsaleOrder->BillingData->Phones[0]->CountryCode = "1";
251
  $clearsaleOrder->BillingData->Phones[0]->Type = 1;
252
+
253
+ $countryCode = $shippingAddress->getCountry();
254
+ $country = Mage::getModel('directory/country')->loadByCode($countryCode);
255
+ $countryname = $country->getName();
256
 
257
  $clearsaleOrder->ShippingData = new Clearsale_Total_Model_Order_Entity_Person();
258
  $clearsaleOrder->ShippingData->ID = "1";
259
  $clearsaleOrder->ShippingData->Email = $email;
260
  $clearsaleOrder->ShippingData->LegalDocument = $legalDocument;
261
  $clearsaleOrder->ShippingData->BirthDate = $dob;
262
+ $clearsaleOrder->ShippingData->Name = $shippingName;
263
  $clearsaleOrder->ShippingData->Gender = 'M';
264
  $clearsaleOrder->ShippingData->Type = 1;
265
 
266
  $clearsaleOrder->ShippingData->Address->City = $shippingAddress->getCity();
267
+ $clearsaleOrder->ShippingData->Address->Country = $countryname;
268
  $clearsaleOrder->ShippingData->Address->Street = $shippingAddress->getStreet(1);
269
+ $arr = explode(' ',trim($shippingAddress->getStreetFull()));
270
+ $clearsaleOrder->ShippingData->Address->Number = $arr[0];
271
  $clearsaleOrder->ShippingData->Address->State = $shippingAddress->getRegion();
272
  $clearsaleOrder->ShippingData->Address->ZipCode = preg_replace('/[^0-9]/', '', $shippingAddress->getPostcode());
273
  $clearsaleOrder->ShippingData->Phones[0] = new Clearsale_Total_Model_Order_Entity_Phone();
274
+ $clearsaleOrder->ShippingData->Phones[0]->AreaCode = substr($shippingPhone, 0, 3);
275
  $clearsaleOrder->ShippingData->Phones[0]->CountryCode = "1";
276
+ $clearsaleOrder->ShippingData->Phones[0]->Number = $shippingPhone;
277
  $clearsaleOrder->ShippingData->Phones[0]->Type = 1;
278
 
279
  $itemIndex = 0;
304
  }
305
  }
306
 
307
+
308
 
309
  public function getCategoryName($product)
310
  {
app/code/community/Clearsale/Total/Model/Order/Entity/Address.php CHANGED
@@ -8,4 +8,5 @@ class Clearsale_Total_Model_Order_Entity_Address
8
  public $ZipCode;
9
  public $County;
10
  public $Number;
 
11
  }
8
  public $ZipCode;
9
  public $County;
10
  public $Number;
11
+ public $Country;
12
  }
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ClearSale_Total</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
@@ -13,12 +13,12 @@ Because of the nature of the market the country was born in, considered one of t
13
  We offer a 100% chargeback guarantee and a fully outsourced fraud management solution. We give you the final decision: (a) to sell - the order has a minimum risk of becoming a chargeback or (b) do not sell - we already checked the order and know that that order is a fraudulent one. As no order is automatically turned down, these orders have to be analyzed by people with special skills and training to detect subtle details to avoid turning down good customers.&#xD;
14
  We charge a fixed % only for approved transactions, regardless of whether the decision was automatic or not. The more orders we approve and the lower our client&#x2019;s chargebacks, the more Clearsale benefits. We also have an incentive to increase our instant decisions, since this improves our cost structure and the buying experience of our clients. &#xD;
15
  More than offering tools, Clearsale is always looking for the optimum balance between chargeback losses, orders rejected and response time.</description>
16
- <notes>Fix Sensitive Case bug&#xD;
17
  </notes>
18
  <authors><author><name>Filippe Farias</name><user>clearsale_dev</user><email>filippe.farias@clearsale.com.br</email></author></authors>
19
- <date>2015-11-17</date>
20
- <time>18:09:52</time>
21
- <contents><target name="magecommunity"><dir name="Clearsale"><dir name="Integration"><dir name="Block"><dir name="Adminhtml"><file name="Totalbackend.php" hash="9c218cb0199bdf5ec891bedb9072d43d"/></dir></dir><dir name="Helper"><file name="Data.php" hash="f2a142d88f110d7d200b87ab810605c0"/></dir><dir name="Model"><dir name="Auth"><dir name="Business"><file name="Object.php" hash="894450976750ba0902643ecf0528178e"/></dir><dir name="Entity"><file name="Credentials.php" hash="a0c74f0eb00025a4fa0ea1a5632cff25"/><file name="RequestAuth.php" hash="3b07965ef09be73b7ad672b97efb2a82"/><file name="ResponseAuth.php" hash="d4236e408c52abc32b19b90c2ae9ed67"/><file name="Token.php" hash="ab6b05a2b1bafe66bf42ef1c68a74008"/></dir></dir><dir name="Gateway"><file name="Authorizenet.php" hash="96f4eb08996b0e98f6d6cceddab97927"/></dir><file name="Log.php" hash="4ef1d30b39450a84919284b093b3f9b8"/><dir name="Mysql4"><dir name="Clearsaleorderdiagnostic"><file name="Collection.php" hash="65f6cd54dabc45d595de8b3c08918ee1"/></dir><file name="Clearsaleorderdiagnostic.php" hash="2063f0474c2f5ca8a83c436dbfdb9669"/></dir><file name="Observer.php" hash="7d32c019e467b20ef5dfe9d3c88fb4c4"/><dir name="Order"><dir name="Business"><file name="Object.php" hash="fb64b166ce833b355654a0509d5f2850"/></dir><dir name="Entity"><file name="Address.php" hash="ce9b49b7e914fd8578689c7a4f307771"/><file name="CustomField.php" hash="bfbe2c97fa78575a887d470d864dd723"/><file name="Diagnostic.php" hash="d96e05ff7fad3f619418b30729bec133"/><file name="Item.php" hash="9fe1b333deb3c7651c33e8ea0a769352"/><file name="Order.php" hash="74d8d917208014ad32c0ec22c8bd5874"/><file name="Payment.php" hash="f76c5abf01a17350fb10d06ac5b8e451"/><file name="Person.php" hash="19492db5e1a66cdff3a3725712dd55ff"/><file name="Phone.php" hash="9a47b48b2915685ea978e0d44c732dfc"/><file name="RequestOrder.php" hash="70d661afbb78db499b1ef665056567c9"/><file name="ResponseOrder.php" hash="21968f83636cadf91b6e5d7cb7db21a8"/><file name="Status.php" hash="de2201c06c9109ba28ae37eea9cc5a98"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Analysislocation"><file name="Values.php" hash="12cae58f6a03ca7c5f4fdef2562d27a9"/></dir><dir name="Cron"><file name="Values.php" hash="33d5913a2f4dd9ba0df91a10c729ee3f"/></dir><dir name="Environment"><file name="Values.php" hash="6a16de834d4510794a1814ae79699d0f"/></dir><dir name="OrderStatus"><file name="Values.php" hash="4a1eaedb47e5607001cbcd5c56878154"/></dir><dir name="Paymentmethod"><file name="Values.php" hash="00023fd6ebb78fc692cfe5f4d8757257"/></dir></dir></dir></dir><dir name="Utils"><file name="HttpHelper.php" hash="7c6d95a582702abf2257856ff88ab8fa"/><file name="HttpMessage.php" hash="81a7aab4bf241d7e9838a8edacf772e9"/><file name="Status.php" hash="249258c22c2ca482331679fb5c0f4d7d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="TotalbackendController.php" hash="b478a5e1cd956c2754766954ae632fa1"/></dir><file name="IndexController.php" hash="133738b83677f2bbf82163b4e11c4d84"/></dir><dir name="etc"><file name="config.xml" hash="f19514d4d6cc11a06b22bae2518d812c"/><file name="system.xml" hash="90ea1ff6f6eeb5453dd8282836476b53"/></dir><dir name="sql"><dir name="total_setup"><file name="mysql4-install-1.0.1.php" hash="b0af1f97fb704abfa3b9000dd37e3d2a"/></dir></dir></dir><dir name="Total"><dir name="Block"><dir name="Adminhtml"><file name="Totalbackend.php" hash="9c218cb0199bdf5ec891bedb9072d43d"/></dir></dir><dir name="Helper"><file name="Data.php" hash="f2a142d88f110d7d200b87ab810605c0"/></dir><dir name="Model"><dir name="Auth"><dir name="Business"><file name="Object.php" hash="894450976750ba0902643ecf0528178e"/></dir><dir name="Entity"><file name="Credentials.php" hash="a0c74f0eb00025a4fa0ea1a5632cff25"/><file name="RequestAuth.php" hash="3b07965ef09be73b7ad672b97efb2a82"/><file name="ResponseAuth.php" hash="d4236e408c52abc32b19b90c2ae9ed67"/><file name="Token.php" hash="ab6b05a2b1bafe66bf42ef1c68a74008"/></dir></dir><dir name="Gateway"><file name="Authorizenet.php" hash="96f4eb08996b0e98f6d6cceddab97927"/></dir><file name="Log.php" hash="4ef1d30b39450a84919284b093b3f9b8"/><dir name="Mysql4"><dir name="Clearsaleorderdiagnostic"><file name="Collection.php" hash="65f6cd54dabc45d595de8b3c08918ee1"/></dir><file name="Clearsaleorderdiagnostic.php" hash="2063f0474c2f5ca8a83c436dbfdb9669"/></dir><file name="Observer.php" hash="7d32c019e467b20ef5dfe9d3c88fb4c4"/><dir name="Order"><dir name="Business"><file name="Object.php" hash="fb64b166ce833b355654a0509d5f2850"/></dir><dir name="Entity"><file name="Address.php" hash="ce9b49b7e914fd8578689c7a4f307771"/><file name="CustomField.php" hash="bfbe2c97fa78575a887d470d864dd723"/><file name="Diagnostic.php" hash="d96e05ff7fad3f619418b30729bec133"/><file name="Item.php" hash="9fe1b333deb3c7651c33e8ea0a769352"/><file name="Order.php" hash="74d8d917208014ad32c0ec22c8bd5874"/><file name="Payment.php" hash="f76c5abf01a17350fb10d06ac5b8e451"/><file name="Person.php" hash="19492db5e1a66cdff3a3725712dd55ff"/><file name="Phone.php" hash="9a47b48b2915685ea978e0d44c732dfc"/><file name="RequestOrder.php" hash="70d661afbb78db499b1ef665056567c9"/><file name="ResponseOrder.php" hash="21968f83636cadf91b6e5d7cb7db21a8"/><file name="Status.php" hash="de2201c06c9109ba28ae37eea9cc5a98"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Analysislocation"><file name="Values.php" hash="12cae58f6a03ca7c5f4fdef2562d27a9"/></dir><dir name="Cron"><file name="Values.php" hash="33d5913a2f4dd9ba0df91a10c729ee3f"/></dir><dir name="Environment"><file name="Values.php" hash="6a16de834d4510794a1814ae79699d0f"/></dir><dir name="OrderStatus"><file name="Values.php" hash="4a1eaedb47e5607001cbcd5c56878154"/></dir><dir name="Paymentmethod"><file name="Values.php" hash="00023fd6ebb78fc692cfe5f4d8757257"/></dir></dir></dir></dir><dir name="Utils"><file name="HttpHelper.php" hash="7c6d95a582702abf2257856ff88ab8fa"/><file name="HttpMessage.php" hash="81a7aab4bf241d7e9838a8edacf772e9"/><file name="Status.php" hash="249258c22c2ca482331679fb5c0f4d7d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="TotalbackendController.php" hash="b478a5e1cd956c2754766954ae632fa1"/></dir><file name="IndexController.php" hash="133738b83677f2bbf82163b4e11c4d84"/></dir><dir name="etc"><file name="config.xml" hash="f19514d4d6cc11a06b22bae2518d812c"/><file name="system.xml" hash="90ea1ff6f6eeb5453dd8282836476b53"/></dir><dir name="sql"><dir name="total_setup"><file name="mysql4-install-1.0.1.php" hash="b0af1f97fb704abfa3b9000dd37e3d2a"/></dir></dir></dir><file name="community - Atalho.lnk" hash="4b4457bb2e78c84dc97106da8cc0c598"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="total.xml" hash="b20fb23ff3df99b69874c8b6513b148f"/></dir><dir name="template"><dir name="total"><file name="totalbackend.phtml" hash="57444b324c4cb61339e38410a43a752f"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="total.xml" hash="f168b9cc007978873d595847cb457ec0"/></dir><dir name="template"><dir name="total"><file name="fingerprint.phtml" hash="e8904b02661505ebdc06f002930d4520"/><file name="mapper.phtml" hash="6b3b2c690d4c0509d497fc94433aaab9"/><file name="meta_account_create.phtml" hash="9942098ce07732b0011e513da0fea91b"/><file name="meta_account_edit.phtml" hash="9f992ff686789d059a9a5ff4801e3884"/><file name="meta_cart.phtml" hash="013250fb64b4dc6cf50082898c345657"/><file name="meta_checkout.phtml" hash="10e00a4bc18f4e07050fd440d3c3f290"/><file name="meta_contact.phtml" hash="7eef5f6c488368ca91dc43827f6d4fdc"/><file name="meta_home.phtml" hash="e53aeefb23c4e4b3a1380c659d49494e"/><file name="meta_pass_fail.phtml" hash="1404a1f3c07d0574fce666b72f770e32"/><file name="meta_password_reset.phtml" hash="a6ecdc56b080695e03499cad8f93dea5"/><file name="meta_product.html" hash="21e064ad8b3b6c8587b4e48a229a97b0"/><file name="meta_purchase_confirmation.phtml" hash="2ee03b7ee3f60bd1489c103020b215ab"/><file name="meta_search.phtml" hash="bb769f2a8d27d26b9b109dc8ad6ef064"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clearsale_Total.xml" hash="c96beaaa6a467e1f5707a25f2a5ffec5"/></dir></target><target name="mage"><dir name="js"><dir name="clearsale"><dir name="total"><dir name="Graphs"><file name="graph-data.js" hash="cdff5f378f713d2863910bbad10f00c9"/><file name="graph-data.old.js" hash="a0544164a24cb574d3060518fbd4983c"/></dir><dir name="Plugin"><file name="morris.min.js" hash="fadac462637afd6cdc0cb0a0137629af"/><file name="raphael.min.js" hash="df3aee40d12beaa16159fa297d28c132"/></dir><file name="bootstrap.min.js" hash="046ba2b5f4cff7d2eaaa1af55caa9fd8"/><file name="formats.js" hash="6084ce895fb54436ecc842d78751b53d"/><file name="jquery-1.11.1.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-2.1.1.min.js" hash="e40ec2161fe7993196f23c8a07346306"/><file name="jquery.clearsale.js" hash="94e83745ccf9ab784331e181c029bd9b"/><file name="jquery.js" hash="3c9137d88a00b1ae0b41ff6a70571615"/><file name="noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="timeago.js" hash="b1e1d1a0576a9a952d2fdac4c3dd321f"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="clearsale"><dir name="font"><file name="klavikalight-osf-webfont.eot" hash="70c694623ae6e600d65b17cb767ec64a"/><file name="klavikalight-osf-webfont.svg" hash="318c533f3c8563ca910f9b74bb0acf41"/><file name="klavikalight-osf-webfont.ttf" hash="53adda2104cc31f2e2d332e372bd020e"/><file name="klavikalight-osf-webfont.woff" hash="2a0466f4aa6715c05dff3a62c37bec3d"/><file name="klavikalight-osf-webfont.woff2" hash="85bbd3b7ba594c02340da194b5b2d1b3"/><file name="klavikalight-plain-webfont.eot" hash="b83fe7b442d00705780147aa583d34f9"/><file name="klavikalight-plain-webfont.svg" hash="a0f73c6fc6dffbf3d18c63ec6c3b5191"/><file name="klavikalight-plain-webfont.ttf" hash="94609b6db82cfc5adb6a4b29603f551d"/><file name="klavikalight-plain-webfont.woff" hash="f704cce62e9b346845cc1111cc0f604b"/><file name="klavikalight-plain-webfont.woff2" hash="bcf62c18730f756a848bc1cb5b631bd3"/><file name="klavikamedium-osf-webfont.eot" hash="a6435da6686dfe15caf1b7b916a71d96"/><file name="klavikamedium-osf-webfont.svg" hash="c4ebeb1cb0df09e2717345b233555855"/><file name="klavikamedium-osf-webfont.ttf" hash="290323eee0539406adde3637294bae2b"/><file name="klavikamedium-osf-webfont.woff" hash="f35c8871e39ae9bad7b173bf02c2c111"/><file name="klavikamedium-osf-webfont.woff2" hash="d43a2625c3252dcf5405617c058be2b6"/><file name="klavikaregular-osf-webfont.eot" hash="8146f953bb696559fd3c277dad2e3075"/><file name="klavikaregular-osf-webfont.svg" hash="fa60750a7d4c93ed7a621e67321140cd"/><file name="klavikaregular-osf-webfont.ttf" hash="de531bd4e7e99df5d672bc253b886969"/><file name="klavikaregular-osf-webfont.woff" hash="f168b99aad67559207101a9a792f6a24"/><file name="klavikaregular-osf-webfont.woff2" hash="4d45eb7fd558c191c91bc0da5190784e"/></dir><dir name="total"><file name="app.css" hash="437bd0c5441986efc8ce0a53eeb4654f"/><file name="bootstrap.css" hash="d2ab08de4855f3f73d2ecec6da794293"/><file name="bootstrap.min.css" hash="3ab3438f85ad9f9e27e1af1facf0a9c4"/><file name="dashboard.css" hash="547897957c8a66d307a36ea9ae3c2fe0"/><dir name="fonts"><file name="Material-Design-Iconic-Font.eot" hash="83d896ed524d89eb7cb1273e26be3ea6"/><file name="Material-Design-Iconic-Font.svg" hash="6383f1e33e4159197aa854dfac4676e1"/><file name="Material-Design-Iconic-Font.ttf" hash="aa1af632841550199ebdf0c3cc1e47a6"/><file name="Material-Design-Iconic-Font.woff" hash="a2a1ba89e7f9d29f7d5aee76e8b9f7ab"/></dir><file name="material-design-iconic-font.min.css" hash="ed31cc228d731ae1f667d440cc00fceb"/><file name="morris.css" hash="36e70bf949fcdb7d0fe55fc16ce86445"/></dir></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>4.4.1</min><max>5.6.13</max></php></required></dependencies>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ClearSale_Total</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
13
  We offer a 100% chargeback guarantee and a fully outsourced fraud management solution. We give you the final decision: (a) to sell - the order has a minimum risk of becoming a chargeback or (b) do not sell - we already checked the order and know that that order is a fraudulent one. As no order is automatically turned down, these orders have to be analyzed by people with special skills and training to detect subtle details to avoid turning down good customers.&#xD;
14
  We charge a fixed % only for approved transactions, regardless of whether the decision was automatic or not. The more orders we approve and the lower our client&#x2019;s chargebacks, the more Clearsale benefits. We also have an incentive to increase our instant decisions, since this improves our cost structure and the buying experience of our clients. &#xD;
15
  More than offering tools, Clearsale is always looking for the optimum balance between chargeback losses, orders rejected and response time.</description>
16
+ <notes>Fix Country Code Error.&#xD;
17
  </notes>
18
  <authors><author><name>Filippe Farias</name><user>clearsale_dev</user><email>filippe.farias@clearsale.com.br</email></author></authors>
19
+ <date>2016-01-14</date>
20
+ <time>23:40:19</time>
21
+ <contents><target name="magecommunity"><dir name="Clearsale"><dir name="Integration"><dir name="Block"><dir name="Adminhtml"><file name="Totalbackend.php" hash="9c218cb0199bdf5ec891bedb9072d43d"/></dir></dir><dir name="Helper"><file name="Data.php" hash="f2a142d88f110d7d200b87ab810605c0"/></dir><dir name="Model"><dir name="Auth"><dir name="Business"><file name="Object.php" hash="894450976750ba0902643ecf0528178e"/></dir><dir name="Entity"><file name="Credentials.php" hash="a0c74f0eb00025a4fa0ea1a5632cff25"/><file name="RequestAuth.php" hash="3b07965ef09be73b7ad672b97efb2a82"/><file name="ResponseAuth.php" hash="d4236e408c52abc32b19b90c2ae9ed67"/><file name="Token.php" hash="ab6b05a2b1bafe66bf42ef1c68a74008"/></dir></dir><dir name="Gateway"><file name="Authorizenet.php" hash="96f4eb08996b0e98f6d6cceddab97927"/></dir><file name="Log.php" hash="4ef1d30b39450a84919284b093b3f9b8"/><dir name="Mysql4"><dir name="Clearsaleorderdiagnostic"><file name="Collection.php" hash="65f6cd54dabc45d595de8b3c08918ee1"/></dir><file name="Clearsaleorderdiagnostic.php" hash="2063f0474c2f5ca8a83c436dbfdb9669"/></dir><file name="Observer.php" hash="7d32c019e467b20ef5dfe9d3c88fb4c4"/><dir name="Order"><dir name="Business"><file name="Object.php" hash="fb64b166ce833b355654a0509d5f2850"/></dir><dir name="Entity"><file name="Address.php" hash="ce9b49b7e914fd8578689c7a4f307771"/><file name="CustomField.php" hash="bfbe2c97fa78575a887d470d864dd723"/><file name="Diagnostic.php" hash="d96e05ff7fad3f619418b30729bec133"/><file name="Item.php" hash="9fe1b333deb3c7651c33e8ea0a769352"/><file name="Order.php" hash="74d8d917208014ad32c0ec22c8bd5874"/><file name="Payment.php" hash="f76c5abf01a17350fb10d06ac5b8e451"/><file name="Person.php" hash="19492db5e1a66cdff3a3725712dd55ff"/><file name="Phone.php" hash="9a47b48b2915685ea978e0d44c732dfc"/><file name="RequestOrder.php" hash="70d661afbb78db499b1ef665056567c9"/><file name="ResponseOrder.php" hash="21968f83636cadf91b6e5d7cb7db21a8"/><file name="Status.php" hash="de2201c06c9109ba28ae37eea9cc5a98"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Analysislocation"><file name="Values.php" hash="12cae58f6a03ca7c5f4fdef2562d27a9"/></dir><dir name="Cron"><file name="Values.php" hash="33d5913a2f4dd9ba0df91a10c729ee3f"/></dir><dir name="Environment"><file name="Values.php" hash="6a16de834d4510794a1814ae79699d0f"/></dir><dir name="OrderStatus"><file name="Values.php" hash="4a1eaedb47e5607001cbcd5c56878154"/></dir><dir name="Paymentmethod"><file name="Values.php" hash="00023fd6ebb78fc692cfe5f4d8757257"/></dir></dir></dir></dir><dir name="Utils"><file name="HttpHelper.php" hash="7c6d95a582702abf2257856ff88ab8fa"/><file name="HttpMessage.php" hash="81a7aab4bf241d7e9838a8edacf772e9"/><file name="Status.php" hash="249258c22c2ca482331679fb5c0f4d7d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="TotalbackendController.php" hash="b478a5e1cd956c2754766954ae632fa1"/></dir><file name="IndexController.php" hash="133738b83677f2bbf82163b4e11c4d84"/></dir><dir name="etc"><file name="config.xml" hash="f19514d4d6cc11a06b22bae2518d812c"/><file name="system.xml" hash="90ea1ff6f6eeb5453dd8282836476b53"/></dir><dir name="sql"><dir name="total_setup"><file name="mysql4-install-1.0.1.php" hash="b0af1f97fb704abfa3b9000dd37e3d2a"/></dir></dir></dir><dir name="Total"><dir name="Block"><dir name="Adminhtml"><file name="Totalbackend.php" hash="9c218cb0199bdf5ec891bedb9072d43d"/></dir></dir><dir name="Helper"><file name="Data.php" hash="f2a142d88f110d7d200b87ab810605c0"/></dir><dir name="Model"><dir name="Auth"><dir name="Business"><file name="Object.php" hash="894450976750ba0902643ecf0528178e"/></dir><dir name="Entity"><file name="Credentials.php" hash="a0c74f0eb00025a4fa0ea1a5632cff25"/><file name="RequestAuth.php" hash="3b07965ef09be73b7ad672b97efb2a82"/><file name="ResponseAuth.php" hash="d4236e408c52abc32b19b90c2ae9ed67"/><file name="Token.php" hash="ab6b05a2b1bafe66bf42ef1c68a74008"/></dir></dir><dir name="Gateway"><file name="Authorizenet.php" hash="96f4eb08996b0e98f6d6cceddab97927"/></dir><file name="Log.php" hash="4ef1d30b39450a84919284b093b3f9b8"/><dir name="Mysql4"><dir name="Clearsaleorderdiagnostic"><file name="Collection.php" hash="65f6cd54dabc45d595de8b3c08918ee1"/></dir><file name="Clearsaleorderdiagnostic.php" hash="2063f0474c2f5ca8a83c436dbfdb9669"/></dir><file name="Observer.php" hash="950dc6d7a3817583fe8a16b978903640"/><dir name="Order"><dir name="Business"><file name="Object.php" hash="fb64b166ce833b355654a0509d5f2850"/></dir><dir name="Entity"><file name="Address.php" hash="5e48742951fba4fb53a4c690a7cb7bea"/><file name="CustomField.php" hash="bfbe2c97fa78575a887d470d864dd723"/><file name="Diagnostic.php" hash="d96e05ff7fad3f619418b30729bec133"/><file name="Item.php" hash="9fe1b333deb3c7651c33e8ea0a769352"/><file name="Order.php" hash="74d8d917208014ad32c0ec22c8bd5874"/><file name="Payment.php" hash="f76c5abf01a17350fb10d06ac5b8e451"/><file name="Person.php" hash="19492db5e1a66cdff3a3725712dd55ff"/><file name="Phone.php" hash="9a47b48b2915685ea978e0d44c732dfc"/><file name="RequestOrder.php" hash="70d661afbb78db499b1ef665056567c9"/><file name="ResponseOrder.php" hash="21968f83636cadf91b6e5d7cb7db21a8"/><file name="Status.php" hash="de2201c06c9109ba28ae37eea9cc5a98"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Analysislocation"><file name="Values.php" hash="12cae58f6a03ca7c5f4fdef2562d27a9"/></dir><dir name="Cron"><file name="Values.php" hash="33d5913a2f4dd9ba0df91a10c729ee3f"/></dir><dir name="Environment"><file name="Values.php" hash="6a16de834d4510794a1814ae79699d0f"/></dir><dir name="OrderStatus"><file name="Values.php" hash="4a1eaedb47e5607001cbcd5c56878154"/></dir><dir name="Paymentmethod"><file name="Values.php" hash="00023fd6ebb78fc692cfe5f4d8757257"/></dir></dir></dir></dir><dir name="Utils"><file name="HttpHelper.php" hash="7c6d95a582702abf2257856ff88ab8fa"/><file name="HttpMessage.php" hash="81a7aab4bf241d7e9838a8edacf772e9"/><file name="Status.php" hash="249258c22c2ca482331679fb5c0f4d7d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="TotalbackendController.php" hash="b478a5e1cd956c2754766954ae632fa1"/></dir><file name="IndexController.php" hash="133738b83677f2bbf82163b4e11c4d84"/></dir><dir name="etc"><file name="config.xml" hash="f19514d4d6cc11a06b22bae2518d812c"/><file name="system.xml" hash="90ea1ff6f6eeb5453dd8282836476b53"/></dir><dir name="sql"><dir name="total_setup"><file name="mysql4-install-1.0.1.php" hash="b0af1f97fb704abfa3b9000dd37e3d2a"/></dir></dir></dir><file name="community - Atalho.lnk" hash="4b4457bb2e78c84dc97106da8cc0c598"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="total.xml" hash="b20fb23ff3df99b69874c8b6513b148f"/></dir><dir name="template"><dir name="total"><file name="totalbackend.phtml" hash="57444b324c4cb61339e38410a43a752f"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="total.xml" hash="f168b9cc007978873d595847cb457ec0"/></dir><dir name="template"><dir name="total"><file name="fingerprint.phtml" hash="e8904b02661505ebdc06f002930d4520"/><file name="mapper.phtml" hash="6b3b2c690d4c0509d497fc94433aaab9"/><file name="meta_account_create.phtml" hash="9942098ce07732b0011e513da0fea91b"/><file name="meta_account_edit.phtml" hash="9f992ff686789d059a9a5ff4801e3884"/><file name="meta_cart.phtml" hash="013250fb64b4dc6cf50082898c345657"/><file name="meta_checkout.phtml" hash="10e00a4bc18f4e07050fd440d3c3f290"/><file name="meta_contact.phtml" hash="7eef5f6c488368ca91dc43827f6d4fdc"/><file name="meta_home.phtml" hash="e53aeefb23c4e4b3a1380c659d49494e"/><file name="meta_pass_fail.phtml" hash="1404a1f3c07d0574fce666b72f770e32"/><file name="meta_password_reset.phtml" hash="a6ecdc56b080695e03499cad8f93dea5"/><file name="meta_product.html" hash="21e064ad8b3b6c8587b4e48a229a97b0"/><file name="meta_purchase_confirmation.phtml" hash="2ee03b7ee3f60bd1489c103020b215ab"/><file name="meta_search.phtml" hash="bb769f2a8d27d26b9b109dc8ad6ef064"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clearsale_Total.xml" hash="c96beaaa6a467e1f5707a25f2a5ffec5"/></dir></target><target name="mage"><dir name="js"><dir name="clearsale"><dir name="total"><dir name="Graphs"><file name="graph-data.js" hash="cdff5f378f713d2863910bbad10f00c9"/><file name="graph-data.old.js" hash="a0544164a24cb574d3060518fbd4983c"/></dir><dir name="Plugin"><file name="morris.min.js" hash="fadac462637afd6cdc0cb0a0137629af"/><file name="raphael.min.js" hash="df3aee40d12beaa16159fa297d28c132"/></dir><file name="bootstrap.min.js" hash="046ba2b5f4cff7d2eaaa1af55caa9fd8"/><file name="formats.js" hash="6084ce895fb54436ecc842d78751b53d"/><file name="jquery-1.11.1.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-2.1.1.min.js" hash="e40ec2161fe7993196f23c8a07346306"/><file name="jquery.clearsale.js" hash="94e83745ccf9ab784331e181c029bd9b"/><file name="jquery.js" hash="3c9137d88a00b1ae0b41ff6a70571615"/><file name="noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="timeago.js" hash="b1e1d1a0576a9a952d2fdac4c3dd321f"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="clearsale"><dir name="font"><file name="klavikalight-osf-webfont.eot" hash="70c694623ae6e600d65b17cb767ec64a"/><file name="klavikalight-osf-webfont.svg" hash="318c533f3c8563ca910f9b74bb0acf41"/><file name="klavikalight-osf-webfont.ttf" hash="53adda2104cc31f2e2d332e372bd020e"/><file name="klavikalight-osf-webfont.woff" hash="2a0466f4aa6715c05dff3a62c37bec3d"/><file name="klavikalight-osf-webfont.woff2" hash="85bbd3b7ba594c02340da194b5b2d1b3"/><file name="klavikalight-plain-webfont.eot" hash="b83fe7b442d00705780147aa583d34f9"/><file name="klavikalight-plain-webfont.svg" hash="a0f73c6fc6dffbf3d18c63ec6c3b5191"/><file name="klavikalight-plain-webfont.ttf" hash="94609b6db82cfc5adb6a4b29603f551d"/><file name="klavikalight-plain-webfont.woff" hash="f704cce62e9b346845cc1111cc0f604b"/><file name="klavikalight-plain-webfont.woff2" hash="bcf62c18730f756a848bc1cb5b631bd3"/><file name="klavikamedium-osf-webfont.eot" hash="a6435da6686dfe15caf1b7b916a71d96"/><file name="klavikamedium-osf-webfont.svg" hash="c4ebeb1cb0df09e2717345b233555855"/><file name="klavikamedium-osf-webfont.ttf" hash="290323eee0539406adde3637294bae2b"/><file name="klavikamedium-osf-webfont.woff" hash="f35c8871e39ae9bad7b173bf02c2c111"/><file name="klavikamedium-osf-webfont.woff2" hash="d43a2625c3252dcf5405617c058be2b6"/><file name="klavikaregular-osf-webfont.eot" hash="8146f953bb696559fd3c277dad2e3075"/><file name="klavikaregular-osf-webfont.svg" hash="fa60750a7d4c93ed7a621e67321140cd"/><file name="klavikaregular-osf-webfont.ttf" hash="de531bd4e7e99df5d672bc253b886969"/><file name="klavikaregular-osf-webfont.woff" hash="f168b99aad67559207101a9a792f6a24"/><file name="klavikaregular-osf-webfont.woff2" hash="4d45eb7fd558c191c91bc0da5190784e"/></dir><dir name="total"><file name="app.css" hash="437bd0c5441986efc8ce0a53eeb4654f"/><file name="bootstrap.css" hash="d2ab08de4855f3f73d2ecec6da794293"/><file name="bootstrap.min.css" hash="3ab3438f85ad9f9e27e1af1facf0a9c4"/><file name="dashboard.css" hash="547897957c8a66d307a36ea9ae3c2fe0"/><dir name="fonts"><file name="Material-Design-Iconic-Font.eot" hash="83d896ed524d89eb7cb1273e26be3ea6"/><file name="Material-Design-Iconic-Font.svg" hash="6383f1e33e4159197aa854dfac4676e1"/><file name="Material-Design-Iconic-Font.ttf" hash="aa1af632841550199ebdf0c3cc1e47a6"/><file name="Material-Design-Iconic-Font.woff" hash="a2a1ba89e7f9d29f7d5aee76e8b9f7ab"/></dir><file name="material-design-iconic-font.min.css" hash="ed31cc228d731ae1f667d440cc00fceb"/><file name="morris.css" hash="36e70bf949fcdb7d0fe55fc16ce86445"/></dir></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>4.4.1</min><max>5.6.13</max></php></required></dependencies>
24
  </package>