Ejegg has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/338145 )

Change subject: Normalized subscr_ messages for tests
......................................................................

Normalized subscr_ messages for tests

This is what the messages coming out of the listener should look like
after we move the normalization from RecurringQueueConsumer. It should
be able to handle these without double-normalizing.

Bug: T107372
Change-Id: I1ecf5cbf41bdcb02b2c22fae89ed230c8694c093
---
A sites/all/modules/queue2civicrm/tests/data/subscr_payment_normalized.json
A sites/all/modules/queue2civicrm/tests/data/subscr_signup_normalized.json
2 files changed, 46 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/45/338145/1

diff --git 
a/sites/all/modules/queue2civicrm/tests/data/subscr_payment_normalized.json 
b/sites/all/modules/queue2civicrm/tests/data/subscr_payment_normalized.json
new file mode 100644
index 0000000..e513314
--- /dev/null
+++ b/sites/all/modules/queue2civicrm/tests/data/subscr_payment_normalized.json
@@ -0,0 +1,22 @@
+{
+    "date": 1383346353,
+    "subscr_id": null,
+    "txn_type": "subscr_payment",
+    "contribution_tracking_id": "15017277",
+    "email": "test...@wikimedia.org",
+    "first_name": "Gen",
+    "middle_name": "",
+    "last_name": "Russ",
+    "street_address": "1211122 132 st",
+    "city": "Edmonton",
+    "state_province": "Alberta",
+    "country": "CA",
+    "postal_code": "T4V 2L2",
+    "gateway_txn_id": 1765009520,
+    "currency": "CAD",
+    "gross": "3.00",
+    "fee": "0.33",
+    "net": 2.67,
+    "gateway": "paypal",
+    "recurring": true
+}
diff --git 
a/sites/all/modules/queue2civicrm/tests/data/subscr_signup_normalized.json 
b/sites/all/modules/queue2civicrm/tests/data/subscr_signup_normalized.json
new file mode 100644
index 0000000..cc512f6
--- /dev/null
+++ b/sites/all/modules/queue2civicrm/tests/data/subscr_signup_normalized.json
@@ -0,0 +1,24 @@
+{
+    "subscr_id": 2048343366,
+    "txn_type": "subscr_signup",
+    "contribution_tracking_id": "15028173",
+    "email": "test+recur...@wikimedia.org",
+    "first_name": "Gen D",
+    "middle_name": "",
+    "last_name": "Russ",
+    "street_address": "5109 Lockwood Rd",
+    "city": "Bethel Park",
+    "state_province": "PA",
+    "country": "US",
+    "postal_code": "15110-1232",
+    "frequency_interval": "1",
+    "frequency_unit": "month",
+    "installments": 0,
+    "gross": "3.00",
+    "currency": "CAD",
+    "create_date": 1383347225,
+    "start_date": 1383347225,
+    "date": 1383347225,
+    "gateway": "paypal",
+    "recurring": true
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/338145
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1ecf5cbf41bdcb02b2c22fae89ed230c8694c093
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Ejegg <eeggles...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to