fat_zebra 3.0.9 → 3.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fat_zebra/api_operation/save.rb +6 -1
- data/lib/fat_zebra/version.rb +1 -1
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +14 -16
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +11 -13
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +50 -52
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +47 -49
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +50 -52
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +25 -18
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +25 -18
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +25 -18
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +25 -18
- data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +41 -32
- data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +41 -32
- data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +56 -45
- data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +15 -13
- data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +15 -13
- data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +15 -13
- data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +8 -7
- data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +11 -10
- data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +8 -7
- data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +11 -10
- data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +11 -10
- data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +11 -10
- data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +23 -19
- data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +23 -19
- data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +23 -19
- data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +8 -7
- data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +15 -17
- data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +15 -17
- data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +15 -17
- data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +15 -17
- data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +15 -17
- data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +15 -17
- data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +29 -35
- data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +32 -32
- data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +32 -32
- data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +26 -16
- data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +26 -16
- data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +26 -16
- data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +31 -35
- data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +31 -35
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +13 -15
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +10 -12
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +13 -15
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +10 -12
- data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +9 -9
- data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +23 -29
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +29 -29
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +23 -23
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +38 -40
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +35 -37
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +10 -12
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +13 -15
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +13 -15
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +10 -12
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +9 -9
- data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +23 -29
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +26 -26
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +26 -26
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +38 -40
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +35 -37
- data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +15 -13
- data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +12 -10
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +70 -78
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +70 -78
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +31 -35
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +31 -35
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +31 -35
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +42 -50
- data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +48 -56
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +49 -51
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +52 -54
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +52 -54
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +49 -55
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +52 -58
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +43 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +46 -52
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +46 -52
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +52 -58
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +49 -55
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml +24 -28
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml +24 -28
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_3.yml +19 -19
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +12 -14
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +12 -14
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +15 -17
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +12 -14
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +11 -11
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +15 -17
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +12 -14
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +15 -17
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +12 -14
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +15 -17
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +12 -14
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +15 -17
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +12 -14
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +11 -11
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +8 -8
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_1.yml +29 -29
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_2.yml +32 -32
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_3.yml +29 -29
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_4.yml +19 -19
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_1.yml +24 -28
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_2.yml +24 -28
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_3.yml +19 -19
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +38 -38
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +35 -35
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +38 -38
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_1.yml +246 -219
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_2.yml +246 -221
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_3.yml +246 -223
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +24 -28
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +27 -31
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +27 -31
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +19 -19
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +30 -34
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +30 -34
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +30 -34
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +19 -19
- data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +30 -34
- data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +19 -19
- data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +30 -34
- data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +30 -34
- data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +30 -34
- data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +30 -34
- data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +30 -34
- data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +30 -34
- data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +30 -34
- data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +30 -34
- data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +47 -49
- data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +47 -49
- data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +30 -30
- data/spec/cassettes/FatZebra_Refund/_search/1_3_1.yml +83 -89
- data/spec/cassettes/FatZebra_Refund/_search/1_3_2.yml +83 -89
- data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +45 -51
- data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +42 -48
- data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +39 -45
- data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +30 -30
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +13 -15
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +10 -12
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +13 -15
- data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +23 -29
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +59 -103
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +55 -99
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +25 -29
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +25 -29
- metadata +2 -78
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_3.yml +0 -55
- data/spec/cassettes/FatZebra_BankAccount/_create/validations/1_1_3_1.yml +0 -57
- data/spec/cassettes/FatZebra_Batch/_create/1_1_1.yml +0 -58
- data/spec/cassettes/FatZebra_Batch/_create/1_1_2.yml +0 -58
- data/spec/cassettes/FatZebra_Batch/_create/validations/1_1_3_1.yml +0 -57
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_3.yml +0 -65
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_3.yml +0 -65
- data/spec/cassettes/FatZebra_Batch/_find/1_2_3.yml +0 -118
- data/spec/cassettes/FatZebra_Card/_create/1_1_7.yml +0 -55
- data/spec/cassettes/FatZebra_Card/_create/validations/1_1_7_1.yml +0 -56
- data/spec/cassettes/FatZebra_Card/_update/1_2_4.yml +0 -105
- data/spec/cassettes/FatZebra_Card/_update/validations/1_2_5_1.yml +0 -55
- data/spec/cassettes/FatZebra_Customer/_create/1_1_7.yml +0 -57
- data/spec/cassettes/FatZebra_Customer/_create/validations/1_1_7_1.yml +0 -56
- data/spec/cassettes/FatZebra_Customer/_delete/1_4_1.yml +0 -113
- data/spec/cassettes/FatZebra_Customer/_delete/1_5_2.yml +0 -107
- data/spec/cassettes/FatZebra_Customer/_find/1_2_1.yml +0 -111
- data/spec/cassettes/FatZebra_Customer/_find/1_2_2.yml +0 -111
- data/spec/cassettes/FatZebra_Customer/_find/1_3_3.yml +0 -111
- data/spec/cassettes/FatZebra_Customer/_update/1_3_1.yml +0 -114
- data/spec/cassettes/FatZebra_Customer/_update/1_3_2.yml +0 -114
- data/spec/cassettes/FatZebra_Customer/_update/1_4_3.yml +0 -108
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_5.yml +0 -54
- data/spec/cassettes/FatZebra_DirectCredit/_create/validations/1_1_5_1.yml +0 -59
- data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_2.yml +0 -103
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +0 -107
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_5.yml +0 -54
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/1_1_5_1.yml +0 -59
- data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_2.yml +0 -103
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +0 -107
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_7_1.yml +0 -238
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_7_2.yml +0 -238
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_4.yml +0 -114
- data/spec/cassettes/FatZebra_PaymentPlan/_create/validations/1_1_4_1.yml +0 -55
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_2.yml +0 -164
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_4.yml +0 -173
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_6_1.yml +0 -178
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_6_2.yml +0 -178
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_4.yml +0 -164
- data/spec/cassettes/FatZebra_Purchase/_capture/1_6_1.yml +0 -111
- data/spec/cassettes/FatZebra_Purchase/_capture/1_6_2.yml +0 -111
- data/spec/cassettes/FatZebra_Purchase/_capture/1_6_3.yml +0 -107
- data/spec/cassettes/FatZebra_Purchase/_find/1_3_1.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_find/1_3_2.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_find/1_3_3.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_find/1_3_4.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_find/1_4_1.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_find/1_4_2.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_find/1_4_3.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_refund/1_5_1.yml +0 -111
- data/spec/cassettes/FatZebra_Purchase/_refund/1_5_2.yml +0 -111
- data/spec/cassettes/FatZebra_Purchase/_refund/1_5_3.yml +0 -107
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_4.yml +0 -170
- data/spec/cassettes/FatZebra_Purchase/_search/1_4_1.yml +0 -170
- data/spec/cassettes/FatZebra_Purchase/_search/1_4_2.yml +0 -170
- data/spec/cassettes/FatZebra_Purchase/_search/1_4_3.yml +0 -170
- data/spec/cassettes/FatZebra_Purchase/_search/1_4_4.yml +0 -170
- data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_1.yml +0 -164
- data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_2.yml +0 -165
- data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_3.yml +0 -164
- data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_1.yml +0 -54
- data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_2.yml +0 -54
- data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_3.yml +0 -54
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_4.yml +0 -842
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_9_1.yml +0 -828
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_9_2.yml +0 -830
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_9_3.yml +0 -832
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_9_4.yml +0 -834
- data/spec/cassettes/FatZebra_Purchase/_void/1_8_1.yml +0 -107
- data/spec/cassettes/FatZebra_Purchase/_void/1_8_2.yml +0 -107
- data/spec/cassettes/FatZebra_Purchase/_void/1_8_3.yml +0 -107
- data/spec/cassettes/FatZebra_Purchase/_void/1_8_4.yml +0 -107
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_4.yml +0 -55
- data/spec/cassettes/FatZebra_WebHook/_create/validations/1_1_4_1.yml +0 -56
- data/spec/cassettes/FatZebra_WebHook/_delete/1_4_2.yml +0 -105
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_3.yml +0 -106
@@ -5,27 +5,34 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20180503-834cd1e8bf3ed01251c0e67e2bf278c9.csv\";
|
9
|
+
filename=\"BATCH-v1-PURCHASE-TEST-20180503-834cd1e8bf3ed01251c0e67e2bf278c9.csv\"\r\nContent-Length:
|
10
|
+
\r\nContent-Type: text/csv\r\nContent-Transfer-Encoding: binary\r\n\r\n1000,AUD,Order12345,John
|
11
|
+
Doe 1,4444333322221111,12/2020,,Gizmo ABC 1\n2051,AUD,Order22345,John Doe
|
12
|
+
2,4444333322221111,12/2020,,Gizmo ABC 2\n3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo
|
13
|
+
ABC 3\n4000,AUD,Order42345,John Doe 4,4444333322221111,12/2020,,Gizmo ABC
|
14
|
+
4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20180503-834cd1e8bf3ed01251c0e67e2bf278c9.csv------FatZebraMultipartPost\r\nContent-Disposition:
|
15
|
+
form-data; name=\"test\"\r\n\r\ntrue------FatZebraMultipartPost--\r\n"
|
9
16
|
headers:
|
10
|
-
Accept:
|
11
|
-
- application/json
|
12
17
|
Accept-Encoding:
|
13
|
-
- gzip,
|
14
|
-
|
15
|
-
-
|
16
|
-
Content-Length:
|
17
|
-
- '146'
|
18
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
+
Accept:
|
20
|
+
- "*/*"
|
18
21
|
User-Agent:
|
19
22
|
- Ruby
|
20
23
|
Authorization:
|
21
24
|
- Basic VEVTVDpURVNU
|
25
|
+
Content-Length:
|
26
|
+
- '835'
|
27
|
+
Content-Type:
|
28
|
+
- multipart/form-data; boundary=----FatZebraMultipartPost
|
22
29
|
response:
|
23
30
|
status:
|
24
31
|
code: 201
|
25
32
|
message: Created
|
26
33
|
headers:
|
27
34
|
Date:
|
28
|
-
- Wed,
|
35
|
+
- Wed, 02 May 2018 23:11:54 GMT
|
29
36
|
Content-Type:
|
30
37
|
- application/json; charset=utf-8
|
31
38
|
Transfer-Encoding:
|
@@ -34,51 +41,53 @@ http_interactions:
|
|
34
41
|
- keep-alive
|
35
42
|
Status:
|
36
43
|
- 201 Created
|
44
|
+
X-Rack-Cache:
|
45
|
+
- invalidate, pass
|
37
46
|
Cache-Control:
|
38
47
|
- no-store
|
39
48
|
X-Request-Version:
|
40
|
-
- 1.
|
49
|
+
- 1.16.9-3156@6c1a40b
|
50
|
+
X-Runtime:
|
51
|
+
- '0.026688'
|
41
52
|
Pragma:
|
42
53
|
- no-cache
|
43
|
-
X-Request-Id:
|
44
|
-
- fa5578a9d3e9f335f23290653d6aade2
|
45
|
-
X-Runtime:
|
46
|
-
- '0.035365'
|
47
54
|
X-Purge-File:
|
48
55
|
- 'false'
|
49
|
-
X-
|
50
|
-
-
|
56
|
+
X-Request-Id:
|
57
|
+
- d006a660f02eff40ebb0b840
|
51
58
|
X-Backend:
|
52
59
|
- sbox-priv-gateway-a
|
53
60
|
body:
|
54
61
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"id":"071-BF-
|
62
|
+
string: '{"successful":true,"response":{"id":"071-BF-F0OJ7V7H","filename":"BATCH-v1-PURCHASE-TEST-20180503-834cd1e8bf3ed01251c0e67e2bf278c9.csv","created_at":"2018-05-03T09:11:54+10:00","process_date":"2018-05-03","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"834cd1e8bf3ed01251c0e67e2bf278c9"},"errors":[],"test":false}'
|
56
63
|
http_version:
|
57
|
-
recorded_at: Wed,
|
64
|
+
recorded_at: Wed, 02 May 2018 23:11:53 GMT
|
58
65
|
- request:
|
59
66
|
method: get
|
60
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/
|
67
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/834cd1e8bf3ed01251c0e67e2bf278c9?test=true
|
61
68
|
body:
|
62
69
|
encoding: US-ASCII
|
63
70
|
string: ''
|
64
71
|
headers:
|
65
|
-
Accept:
|
66
|
-
- application/json
|
67
72
|
Accept-Encoding:
|
68
|
-
- gzip,
|
69
|
-
|
73
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
74
|
+
Accept:
|
70
75
|
- application/json
|
71
76
|
User-Agent:
|
72
77
|
- Ruby
|
78
|
+
Host:
|
79
|
+
- gateway.sandbox.fatzebra.com.au
|
73
80
|
Authorization:
|
74
81
|
- Basic VEVTVDpURVNU
|
82
|
+
Content-Type:
|
83
|
+
- application/json
|
75
84
|
response:
|
76
85
|
status:
|
77
86
|
code: 200
|
78
87
|
message: OK
|
79
88
|
headers:
|
80
89
|
Date:
|
81
|
-
- Wed,
|
90
|
+
- Wed, 02 May 2018 23:11:54 GMT
|
82
91
|
Content-Type:
|
83
92
|
- application/json; charset=utf-8
|
84
93
|
Transfer-Encoding:
|
@@ -87,23 +96,23 @@ http_interactions:
|
|
87
96
|
- keep-alive
|
88
97
|
Status:
|
89
98
|
- 200 OK
|
99
|
+
X-Rack-Cache:
|
100
|
+
- miss
|
90
101
|
Cache-Control:
|
91
102
|
- no-store, private
|
92
103
|
X-Request-Version:
|
93
|
-
- 1.
|
104
|
+
- 1.16.9-3156@6c1a40b
|
105
|
+
X-Runtime:
|
106
|
+
- '0.016200'
|
94
107
|
Pragma:
|
95
108
|
- no-cache
|
96
109
|
X-Request-Id:
|
97
|
-
-
|
98
|
-
X-Runtime:
|
99
|
-
- '0.018446'
|
100
|
-
X-Rack-Cache:
|
101
|
-
- miss
|
110
|
+
- 2ef6eca0a32c6a60b0333dc0
|
102
111
|
X-Backend:
|
103
112
|
- sbox-priv-gateway-a
|
104
113
|
body:
|
105
114
|
encoding: UTF-8
|
106
|
-
string: '{"successful":true,"response":{"id":"071-BF-
|
115
|
+
string: '{"successful":true,"response":{"id":"071-BF-F0OJ7V7H","filename":"BATCH-v1-PURCHASE-TEST-20180503-834cd1e8bf3ed01251c0e67e2bf278c9.csv","created_at":"2018-05-03T09:11:54+10:00","process_date":"2018-05-03","start_date":null,"completed_date":null,"status":"IngestError","type":"PURCHASE","reference":"834cd1e8bf3ed01251c0e67e2bf278c9"},"errors":[],"test":true}'
|
107
116
|
http_version:
|
108
|
-
recorded_at: Wed,
|
117
|
+
recorded_at: Wed, 02 May 2018 23:11:53 GMT
|
109
118
|
recorded_with: VCR 3.0.3
|
@@ -5,27 +5,34 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20180503-ffc1543ea77f5c0d444a1e03667eeab1.csv\";
|
9
|
+
filename=\"BATCH-v1-PURCHASE-TEST-20180503-ffc1543ea77f5c0d444a1e03667eeab1.csv\"\r\nContent-Length:
|
10
|
+
\r\nContent-Type: text/csv\r\nContent-Transfer-Encoding: binary\r\n\r\n1000,AUD,Order12345,John
|
11
|
+
Doe 1,4444333322221111,12/2020,,Gizmo ABC 1\n2051,AUD,Order22345,John Doe
|
12
|
+
2,4444333322221111,12/2020,,Gizmo ABC 2\n3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo
|
13
|
+
ABC 3\n4000,AUD,Order42345,John Doe 4,4444333322221111,12/2020,,Gizmo ABC
|
14
|
+
4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20180503-ffc1543ea77f5c0d444a1e03667eeab1.csv------FatZebraMultipartPost\r\nContent-Disposition:
|
15
|
+
form-data; name=\"test\"\r\n\r\ntrue------FatZebraMultipartPost--\r\n"
|
9
16
|
headers:
|
10
|
-
Accept:
|
11
|
-
- application/json
|
12
17
|
Accept-Encoding:
|
13
|
-
- gzip,
|
14
|
-
|
15
|
-
-
|
16
|
-
Content-Length:
|
17
|
-
- '146'
|
18
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
+
Accept:
|
20
|
+
- "*/*"
|
18
21
|
User-Agent:
|
19
22
|
- Ruby
|
20
23
|
Authorization:
|
21
24
|
- Basic VEVTVDpURVNU
|
25
|
+
Content-Length:
|
26
|
+
- '835'
|
27
|
+
Content-Type:
|
28
|
+
- multipart/form-data; boundary=----FatZebraMultipartPost
|
22
29
|
response:
|
23
30
|
status:
|
24
31
|
code: 201
|
25
32
|
message: Created
|
26
33
|
headers:
|
27
34
|
Date:
|
28
|
-
- Wed,
|
35
|
+
- Wed, 02 May 2018 23:11:54 GMT
|
29
36
|
Content-Type:
|
30
37
|
- application/json; charset=utf-8
|
31
38
|
Transfer-Encoding:
|
@@ -34,51 +41,53 @@ http_interactions:
|
|
34
41
|
- keep-alive
|
35
42
|
Status:
|
36
43
|
- 201 Created
|
44
|
+
X-Rack-Cache:
|
45
|
+
- invalidate, pass
|
37
46
|
Cache-Control:
|
38
47
|
- no-store
|
39
48
|
X-Request-Version:
|
40
|
-
- 1.
|
49
|
+
- 1.16.9-3156@6c1a40b
|
50
|
+
X-Runtime:
|
51
|
+
- '0.051074'
|
41
52
|
Pragma:
|
42
53
|
- no-cache
|
43
|
-
X-Request-Id:
|
44
|
-
- ced31de316c06b0342b20402bd0f0dec
|
45
|
-
X-Runtime:
|
46
|
-
- '0.036321'
|
47
54
|
X-Purge-File:
|
48
55
|
- 'false'
|
49
|
-
X-
|
50
|
-
-
|
56
|
+
X-Request-Id:
|
57
|
+
- 2283b680505c1640fd3a2ee0
|
51
58
|
X-Backend:
|
52
59
|
- sbox-priv-gateway-a
|
53
60
|
body:
|
54
61
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"id":"071-BF-
|
62
|
+
string: '{"successful":true,"response":{"id":"071-BF-IZHWXF0C","filename":"BATCH-v1-PURCHASE-TEST-20180503-ffc1543ea77f5c0d444a1e03667eeab1.csv","created_at":"2018-05-03T09:11:54+10:00","process_date":"2018-05-03","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"ffc1543ea77f5c0d444a1e03667eeab1"},"errors":[],"test":false}'
|
56
63
|
http_version:
|
57
|
-
recorded_at: Wed,
|
64
|
+
recorded_at: Wed, 02 May 2018 23:11:53 GMT
|
58
65
|
- request:
|
59
66
|
method: get
|
60
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/
|
67
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/ffc1543ea77f5c0d444a1e03667eeab1?test=true
|
61
68
|
body:
|
62
69
|
encoding: US-ASCII
|
63
70
|
string: ''
|
64
71
|
headers:
|
65
|
-
Accept:
|
66
|
-
- application/json
|
67
72
|
Accept-Encoding:
|
68
|
-
- gzip,
|
69
|
-
|
73
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
74
|
+
Accept:
|
70
75
|
- application/json
|
71
76
|
User-Agent:
|
72
77
|
- Ruby
|
78
|
+
Host:
|
79
|
+
- gateway.sandbox.fatzebra.com.au
|
73
80
|
Authorization:
|
74
81
|
- Basic VEVTVDpURVNU
|
82
|
+
Content-Type:
|
83
|
+
- application/json
|
75
84
|
response:
|
76
85
|
status:
|
77
86
|
code: 200
|
78
87
|
message: OK
|
79
88
|
headers:
|
80
89
|
Date:
|
81
|
-
- Wed,
|
90
|
+
- Wed, 02 May 2018 23:11:54 GMT
|
82
91
|
Content-Type:
|
83
92
|
- application/json; charset=utf-8
|
84
93
|
Transfer-Encoding:
|
@@ -87,23 +96,23 @@ http_interactions:
|
|
87
96
|
- keep-alive
|
88
97
|
Status:
|
89
98
|
- 200 OK
|
99
|
+
X-Rack-Cache:
|
100
|
+
- miss
|
90
101
|
Cache-Control:
|
91
102
|
- no-store, private
|
92
103
|
X-Request-Version:
|
93
|
-
- 1.
|
104
|
+
- 1.16.9-3156@6c1a40b
|
105
|
+
X-Runtime:
|
106
|
+
- '0.047934'
|
94
107
|
Pragma:
|
95
108
|
- no-cache
|
96
109
|
X-Request-Id:
|
97
|
-
-
|
98
|
-
X-Runtime:
|
99
|
-
- '0.018703'
|
100
|
-
X-Rack-Cache:
|
101
|
-
- miss
|
110
|
+
- 4112780039d716e0036bb860
|
102
111
|
X-Backend:
|
103
112
|
- sbox-priv-gateway-a
|
104
113
|
body:
|
105
114
|
encoding: UTF-8
|
106
|
-
string: '{"successful":true,"response":{"id":"071-BF-
|
115
|
+
string: '{"successful":true,"response":{"id":"071-BF-IZHWXF0C","filename":"BATCH-v1-PURCHASE-TEST-20180503-ffc1543ea77f5c0d444a1e03667eeab1.csv","created_at":"2018-05-03T09:11:54+10:00","process_date":"2018-05-03","start_date":null,"completed_date":null,"status":"IngestError","type":"PURCHASE","reference":"ffc1543ea77f5c0d444a1e03667eeab1"},"errors":[],"test":true}'
|
107
116
|
http_version:
|
108
|
-
recorded_at: Wed,
|
117
|
+
recorded_at: Wed, 02 May 2018 23:11:53 GMT
|
109
118
|
recorded_with: VCR 3.0.3
|
@@ -5,27 +5,34 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20180503-89159736702f22ffb436bb97ca98b20d.csv\";
|
9
|
+
filename=\"BATCH-v1-PURCHASE-TEST-20180503-89159736702f22ffb436bb97ca98b20d.csv\"\r\nContent-Length:
|
10
|
+
\r\nContent-Type: text/csv\r\nContent-Transfer-Encoding: binary\r\n\r\n1000,AUD,Order12345,John
|
11
|
+
Doe 1,4444333322221111,12/2020,,Gizmo ABC 1\n2051,AUD,Order22345,John Doe
|
12
|
+
2,4444333322221111,12/2020,,Gizmo ABC 2\n3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo
|
13
|
+
ABC 3\n4000,AUD,Order42345,John Doe 4,4444333322221111,12/2020,,Gizmo ABC
|
14
|
+
4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20180503-89159736702f22ffb436bb97ca98b20d.csv------FatZebraMultipartPost\r\nContent-Disposition:
|
15
|
+
form-data; name=\"test\"\r\n\r\ntrue------FatZebraMultipartPost--\r\n"
|
9
16
|
headers:
|
10
|
-
Accept:
|
11
|
-
- application/json
|
12
17
|
Accept-Encoding:
|
13
|
-
- gzip,
|
14
|
-
|
15
|
-
-
|
16
|
-
Content-Length:
|
17
|
-
- '146'
|
18
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
+
Accept:
|
20
|
+
- "*/*"
|
18
21
|
User-Agent:
|
19
22
|
- Ruby
|
20
23
|
Authorization:
|
21
24
|
- Basic VEVTVDpURVNU
|
25
|
+
Content-Length:
|
26
|
+
- '835'
|
27
|
+
Content-Type:
|
28
|
+
- multipart/form-data; boundary=----FatZebraMultipartPost
|
22
29
|
response:
|
23
30
|
status:
|
24
31
|
code: 201
|
25
32
|
message: Created
|
26
33
|
headers:
|
27
34
|
Date:
|
28
|
-
- Wed,
|
35
|
+
- Wed, 02 May 2018 23:11:54 GMT
|
29
36
|
Content-Type:
|
30
37
|
- application/json; charset=utf-8
|
31
38
|
Transfer-Encoding:
|
@@ -34,51 +41,53 @@ http_interactions:
|
|
34
41
|
- keep-alive
|
35
42
|
Status:
|
36
43
|
- 201 Created
|
44
|
+
X-Rack-Cache:
|
45
|
+
- invalidate, pass
|
37
46
|
Cache-Control:
|
38
47
|
- no-store
|
39
48
|
X-Request-Version:
|
40
|
-
- 1.
|
49
|
+
- 1.16.9-3156@6c1a40b
|
50
|
+
X-Runtime:
|
51
|
+
- '0.027064'
|
41
52
|
Pragma:
|
42
53
|
- no-cache
|
43
|
-
X-Request-Id:
|
44
|
-
- 0425cb78e037288b7874e5a9ee468345
|
45
|
-
X-Runtime:
|
46
|
-
- '0.035336'
|
47
54
|
X-Purge-File:
|
48
55
|
- 'false'
|
49
|
-
X-
|
50
|
-
-
|
56
|
+
X-Request-Id:
|
57
|
+
- 566978a042f858e0ff9112a0
|
51
58
|
X-Backend:
|
52
59
|
- sbox-priv-gateway-a
|
53
60
|
body:
|
54
61
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"id":"071-BF-
|
62
|
+
string: '{"successful":true,"response":{"id":"071-BF-TYVZ986W","filename":"BATCH-v1-PURCHASE-TEST-20180503-89159736702f22ffb436bb97ca98b20d.csv","created_at":"2018-05-03T09:11:54+10:00","process_date":"2018-05-03","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"89159736702f22ffb436bb97ca98b20d"},"errors":[],"test":false}'
|
56
63
|
http_version:
|
57
|
-
recorded_at: Wed,
|
64
|
+
recorded_at: Wed, 02 May 2018 23:11:53 GMT
|
58
65
|
- request:
|
59
66
|
method: get
|
60
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/
|
67
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/89159736702f22ffb436bb97ca98b20d?test=true
|
61
68
|
body:
|
62
69
|
encoding: US-ASCII
|
63
70
|
string: ''
|
64
71
|
headers:
|
65
|
-
Accept:
|
66
|
-
- application/json
|
67
72
|
Accept-Encoding:
|
68
|
-
- gzip,
|
69
|
-
|
73
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
74
|
+
Accept:
|
70
75
|
- application/json
|
71
76
|
User-Agent:
|
72
77
|
- Ruby
|
78
|
+
Host:
|
79
|
+
- gateway.sandbox.fatzebra.com.au
|
73
80
|
Authorization:
|
74
81
|
- Basic VEVTVDpURVNU
|
82
|
+
Content-Type:
|
83
|
+
- application/json
|
75
84
|
response:
|
76
85
|
status:
|
77
86
|
code: 200
|
78
87
|
message: OK
|
79
88
|
headers:
|
80
89
|
Date:
|
81
|
-
- Wed,
|
90
|
+
- Wed, 02 May 2018 23:11:54 GMT
|
82
91
|
Content-Type:
|
83
92
|
- application/json; charset=utf-8
|
84
93
|
Transfer-Encoding:
|
@@ -87,49 +96,51 @@ http_interactions:
|
|
87
96
|
- keep-alive
|
88
97
|
Status:
|
89
98
|
- 200 OK
|
99
|
+
X-Rack-Cache:
|
100
|
+
- miss
|
90
101
|
Cache-Control:
|
91
102
|
- no-store, private
|
92
103
|
X-Request-Version:
|
93
|
-
- 1.
|
104
|
+
- 1.16.9-3156@6c1a40b
|
105
|
+
X-Runtime:
|
106
|
+
- '0.026937'
|
94
107
|
Pragma:
|
95
108
|
- no-cache
|
96
109
|
X-Request-Id:
|
97
|
-
-
|
98
|
-
X-Runtime:
|
99
|
-
- '0.019113'
|
100
|
-
X-Rack-Cache:
|
101
|
-
- miss
|
110
|
+
- 6a5c6e2d74adfaa07b0bfa16
|
102
111
|
X-Backend:
|
103
112
|
- sbox-priv-gateway-a
|
104
113
|
body:
|
105
114
|
encoding: UTF-8
|
106
|
-
string: '{"successful":true,"response":{"id":"071-BF-
|
115
|
+
string: '{"successful":true,"response":{"id":"071-BF-TYVZ986W","filename":"BATCH-v1-PURCHASE-TEST-20180503-89159736702f22ffb436bb97ca98b20d.csv","created_at":"2018-05-03T09:11:54+10:00","process_date":"2018-05-03","start_date":null,"completed_date":null,"status":"IngestError","type":"PURCHASE","reference":"89159736702f22ffb436bb97ca98b20d"},"errors":[],"test":true}'
|
107
116
|
http_version:
|
108
|
-
recorded_at: Wed,
|
117
|
+
recorded_at: Wed, 02 May 2018 23:11:53 GMT
|
109
118
|
- request:
|
110
119
|
method: get
|
111
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/071-BF-
|
120
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/071-BF-TYVZ986W/result.csv?test=true
|
112
121
|
body:
|
113
122
|
encoding: US-ASCII
|
114
123
|
string: ''
|
115
124
|
headers:
|
116
|
-
Accept:
|
117
|
-
- application/json
|
118
125
|
Accept-Encoding:
|
119
|
-
- gzip,
|
120
|
-
|
126
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
127
|
+
Accept:
|
121
128
|
- application/json
|
122
129
|
User-Agent:
|
123
130
|
- Ruby
|
131
|
+
Host:
|
132
|
+
- gateway.sandbox.fatzebra.com.au
|
124
133
|
Authorization:
|
125
134
|
- Basic VEVTVDpURVNU
|
135
|
+
Content-Type:
|
136
|
+
- application/json
|
126
137
|
response:
|
127
138
|
status:
|
128
139
|
code: 422
|
129
140
|
message: Unprocessable Entity
|
130
141
|
headers:
|
131
142
|
Date:
|
132
|
-
- Wed,
|
143
|
+
- Wed, 02 May 2018 23:11:55 GMT
|
133
144
|
Content-Type:
|
134
145
|
- text/csv; charset=utf-8
|
135
146
|
Transfer-Encoding:
|
@@ -138,23 +149,23 @@ http_interactions:
|
|
138
149
|
- keep-alive
|
139
150
|
Status:
|
140
151
|
- 422 Unprocessable Entity
|
152
|
+
X-Rack-Cache:
|
153
|
+
- miss
|
141
154
|
Cache-Control:
|
142
155
|
- no-store, private
|
143
156
|
X-Request-Version:
|
144
|
-
- 1.
|
157
|
+
- 1.16.9-3156@6c1a40b
|
158
|
+
X-Runtime:
|
159
|
+
- '0.017241'
|
145
160
|
Pragma:
|
146
161
|
- no-cache
|
147
162
|
X-Request-Id:
|
148
|
-
-
|
149
|
-
X-Runtime:
|
150
|
-
- '0.019433'
|
151
|
-
X-Rack-Cache:
|
152
|
-
- miss
|
163
|
+
- 5a939500b31e02c0311954e0
|
153
164
|
X-Backend:
|
154
165
|
- sbox-priv-gateway-a
|
155
166
|
body:
|
156
167
|
encoding: UTF-8
|
157
168
|
string: Batch is not yet completed
|
158
169
|
http_version:
|
159
|
-
recorded_at: Wed,
|
170
|
+
recorded_at: Wed, 02 May 2018 23:11:53 GMT
|
160
171
|
recorded_with: VCR 3.0.3
|