trolley 1.0.2 → 1.1.0

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.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/lib/trolley/Client.rb +6 -1
  3. data/lib/trolley/Gateway.rb +7 -1
  4. data/lib/trolley/InvoicePayment.rb +6 -1
  5. data/lib/trolley/OfflinePayment.rb +2 -1
  6. data/lib/trolley/Payment.rb +4 -1
  7. data/lib/trolley/Recipient.rb +0 -2
  8. data/lib/trolley/RecipientAccount.rb +4 -1
  9. data/lib/trolley/RecipientLog.rb +12 -0
  10. data/lib/trolley/gateways/BalanceGateway.rb +18 -1
  11. data/lib/trolley/gateways/PaymentGateway.rb +5 -0
  12. data/lib/trolley/gateways/RecipientGateway.rb +5 -1
  13. data/lib/trolley/gateways/VerificationGateway.rb +40 -0
  14. data/lib/trolley/utils/PaginatedArray.rb +8 -3
  15. data/lib/trolley/utils/ResponseMapper.rb +2 -1
  16. data/lib/trolley.rb +3 -1
  17. data/test/fixtures/BalanceTest/test_find.yml +71 -0
  18. data/test/fixtures/BalanceTest/test_find_with_term.yml +71 -0
  19. data/test/fixtures/BatchTest/test_create.yml +150 -0
  20. data/test/fixtures/BatchTest/test_create_with_payments.yml +541 -0
  21. data/test/fixtures/BatchTest/test_delete_multiple.yml +209 -0
  22. data/test/fixtures/BatchTest/test_payments.yml +434 -0
  23. data/test/fixtures/BatchTest/test_processing.yml +578 -0
  24. data/test/fixtures/BatchTest/test_summary.yml +440 -0
  25. data/test/fixtures/BatchTest/test_update.yml +356 -0
  26. data/test/fixtures/InvoicePaymentTest/test_create.yml +489 -0
  27. data/test/fixtures/InvoicePaymentTest/test_delete.yml +634 -0
  28. data/test/fixtures/InvoicePaymentTest/test_find.yml +420 -0
  29. data/test/fixtures/InvoicePaymentTest/test_update.yml +634 -0
  30. data/test/fixtures/InvoiceTest/test_create.yml +293 -0
  31. data/test/fixtures/InvoiceTest/test_create_line.yml +353 -0
  32. data/test/fixtures/InvoiceTest/test_delete.yml +433 -0
  33. data/test/fixtures/InvoiceTest/test_delete_line.yml +353 -0
  34. data/test/fixtures/InvoiceTest/test_find.yml +284 -0
  35. data/test/fixtures/InvoiceTest/test_search.yml +293 -0
  36. data/test/fixtures/InvoiceTest/test_support_error_arrays.yml +71 -0
  37. data/test/fixtures/InvoiceTest/test_update.yml +428 -0
  38. data/test/fixtures/InvoiceTest/test_update_line.yml +422 -0
  39. data/test/fixtures/OfflinePaymentTest/test_create.yml +213 -0
  40. data/test/fixtures/OfflinePaymentTest/test_delete.yml +281 -0
  41. data/test/fixtures/OfflinePaymentTest/test_search.yml +281 -0
  42. data/test/fixtures/OfflinePaymentTest/test_update.yml +281 -0
  43. data/test/fixtures/PaymentTest/test_crud.yml +510 -0
  44. data/test/fixtures/PaymentTest/test_search.yml +366 -0
  45. data/test/fixtures/RecipientAccountTest/test_basic_crud.yml +351 -0
  46. data/test/fixtures/RecipientTest/test_account.yml +499 -0
  47. data/test/fixtures/RecipientTest/test_create.yml +72 -0
  48. data/test/fixtures/RecipientTest/test_delete_multiple.yml +347 -0
  49. data/test/fixtures/RecipientTest/test_find_logs.yml +278 -0
  50. data/test/fixtures/RecipientTest/test_find_payments.yml +512 -0
  51. data/test/fixtures/RecipientTest/test_lifecycle.yml +347 -0
  52. data/test/integration/BalanceTest.rb +22 -0
  53. data/test/integration/BatchTest.rb +157 -0
  54. data/test/integration/InvoicePaymentTest.rb +109 -0
  55. data/test/integration/InvoiceTest.rb +156 -0
  56. data/test/integration/OfflinePaymentTest.rb +109 -0
  57. data/test/integration/PaymentTest.rb +73 -0
  58. data/test/integration/RecipientAccountTest.rb +52 -0
  59. data/test/integration/RecipientTest.rb +176 -0
  60. data/test/test_helper.rb +45 -0
  61. data/test/unit/ClientRequestTest.rb +54 -0
  62. data/{spec → test}/unit/ConfigurationTest.rb +1 -1
  63. data/test/unit/GatewayParityTest.rb +184 -0
  64. data/{spec → test}/unit/PaginatedArrayTest.rb +3 -1
  65. data/{spec → test}/unit/TrolleyTest.rb +2 -2
  66. data/trolley.gemspec +11 -8
  67. metadata +101 -18
  68. data/spec/integration/BatchTest.rb +0 -126
  69. data/spec/integration/InvoicePaymentTest.rb +0 -92
  70. data/spec/integration/InvoiceTest.rb +0 -128
  71. data/spec/integration/RecipientAccountTest.rb +0 -48
  72. data/spec/integration/RecipientTest.rb +0 -159
  73. data/spec/integration/helper.rb +0 -19
  74. /data/{spec → test}/unit/ResponseMapperTest.rb +0 -0
@@ -0,0 +1,512 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.trolley.com/v1/recipients/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"type":"individual","firstName":"Tom","lastName":"Jones","email":"test.created266fa63-752b-4a26-8679-2faf52b51801@example.com"}'
9
+ headers:
10
+ X-Pr-Timestamp:
11
+ - '1688741566'
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Fri, 07 Jul 2023 14:52:47 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '1263'
31
+ Connection:
32
+ - keep-alive
33
+ Cache-Control:
34
+ - no-store, no-cache
35
+ Content-Security-Policy:
36
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
37
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
38
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
39
+ X-Dns-Prefetch-Control:
40
+ - 'off'
41
+ Expect-Ct:
42
+ - max-age=0
43
+ Strict-Transport-Security:
44
+ - max-age=15552000; includeSubDomains
45
+ X-Download-Options:
46
+ - noopen
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Permitted-Cross-Domain-Policies:
50
+ - none
51
+ Referrer-Policy:
52
+ - no-referrer
53
+ X-Xss-Protection:
54
+ - '0'
55
+ Access-Control-Allow-Origin:
56
+ - "*"
57
+ X-Rate-Limit-Limit:
58
+ - '600'
59
+ X-Rate-Limit-Remaining:
60
+ - '582'
61
+ X-Rate-Limit-Reset:
62
+ - '1688741619'
63
+ Vary:
64
+ - Origin
65
+ Etag:
66
+ - W/"4ef-YEtCSc3uEfCHQA/II+/UFbFoV/g"
67
+ body:
68
+ encoding: UTF-8
69
+ string: '{"ok":true,"recipient":{"id":"R-4WeMhvokhsgTmtPd7kZWtt","referenceId":"R-4WeMhvokhsgTmtPd7kZWtt","parentRecipientId":null,"email":"test.created266fa63-752b-4a26-8679-2faf52b51801@example.com","name":"Tom
70
+ Jones","lastName":"Jones","firstName":"Tom","legalName":"","type":"individual","status":"incomplete","language":"en","complianceStatus":"pending","dob":null,"passport":"","placeOfBirth":null,"updatedAt":"2023-07-07T14:52:47.205Z","createdAt":"2023-07-07T14:52:47.205Z","tags":[],"isPortalUser":false,"taxDeliveryType":"mail","contactEmails":[],"occupation":"","address":{"street1":"","street2":"","city":"","postalCode":"","country":null,"region":null,"phone":"","phoneValidated":false},"compliance":{"status":"pending","checkedAt":null},"gravatarUrl":"https://www.gravatar.com/avatar/e4afbf51fd658ec0c4beb69c834cfd08?d=404","governmentId":null,"ssn":null,"governmentIds":[],"birthplace":{"country":null,"region":null,"city":null},"citizenships":[],"routeType":null,"routeMinimum":null,"estimatedFees":null,"accounts":[],"payoutMethod":null,"primaryCurrency":null,"riskScore":null,"riskScoreLabel":null,"merchantId":"M-C7AsydAeAqW3husDNHSAND","inactiveReasons":{"primaryAccount":"missing"},"taxWithholdingPercentage":null,"taxForm":null,"taxFormStatus":null}}'
71
+ recorded_at: Fri, 07 Jul 2023 14:52:47 GMT
72
+ - request:
73
+ method: post
74
+ uri: https://api.trolley.com/v1/recipients/R-4WeMhvokhsgTmtPd7kZWtt/accounts
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"type":"bank-transfer","currency":"EUR","country":"DE","iban":"DE89
78
+ 3704 0044 0532 0130 00"}'
79
+ headers:
80
+ X-Pr-Timestamp:
81
+ - '1688741567'
82
+ Content-Type:
83
+ - application/json
84
+ Accept-Encoding:
85
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
86
+ Accept:
87
+ - "*/*"
88
+ User-Agent:
89
+ - Ruby
90
+ response:
91
+ status:
92
+ code: 200
93
+ message: OK
94
+ headers:
95
+ Date:
96
+ - Fri, 07 Jul 2023 14:52:47 GMT
97
+ Content-Type:
98
+ - application/json; charset=utf-8
99
+ Content-Length:
100
+ - '657'
101
+ Connection:
102
+ - keep-alive
103
+ Cache-Control:
104
+ - no-store, no-cache
105
+ Content-Security-Policy:
106
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
107
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
108
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
109
+ X-Dns-Prefetch-Control:
110
+ - 'off'
111
+ Expect-Ct:
112
+ - max-age=0
113
+ Strict-Transport-Security:
114
+ - max-age=15552000; includeSubDomains
115
+ X-Download-Options:
116
+ - noopen
117
+ X-Content-Type-Options:
118
+ - nosniff
119
+ X-Permitted-Cross-Domain-Policies:
120
+ - none
121
+ Referrer-Policy:
122
+ - no-referrer
123
+ X-Xss-Protection:
124
+ - '0'
125
+ Access-Control-Allow-Origin:
126
+ - "*"
127
+ X-Rate-Limit-Limit:
128
+ - '600'
129
+ X-Rate-Limit-Remaining:
130
+ - '581'
131
+ X-Rate-Limit-Reset:
132
+ - '1688741619'
133
+ Vary:
134
+ - Origin
135
+ Etag:
136
+ - W/"291-T/3xIS3uCsmaSdJtkugC+0iMYEE"
137
+ body:
138
+ encoding: UTF-8
139
+ string: '{"ok":true,"account":{"status":"primary","type":"bank-transfer","primary":true,"currency":"EUR","id":"A-6QHpGfMBduzArWnRPaGbph","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","recipientAccountId":"A-6QHpGfMBduzArWnRPaGbph","disabledAt":null,"deliveryBusinessDaysEstimate":5,"country":"DE","iban":"********************00","accountNum":"","bankAccountType":null,"bankCodeMappingId":null,"accountHolderName":"Tom
140
+ Jones","swiftBic":"COBADEFFXXX","branchId":"","bankId":"","bankName":"Commerzbank
141
+ AG","bankAddress":"Unter Sachsenhausen 21-27","bankCity":"Cologne","bankRegionCode":"Nordrhein-Westfalen","bankPostalCode":"50667","routeType":"sepa","recipientFees":"2"}}'
142
+ recorded_at: Fri, 07 Jul 2023 14:52:47 GMT
143
+ - request:
144
+ method: post
145
+ uri: https://api.trolley.com/v1/batches/
146
+ body:
147
+ encoding: UTF-8
148
+ string: '{"sourceCurrency":"USD","description":"Integration Test Payments","payments":[{"targetAmount":"10.00","targetCurrency":"EUR","recipient":{"id":"R-4WeMhvokhsgTmtPd7kZWtt"}},{"sourceAmount":"10.00","recipient":{"id":"R-4WeMhvokhsgTmtPd7kZWtt"}}]}'
149
+ headers:
150
+ X-Pr-Timestamp:
151
+ - '1688741567'
152
+ Content-Type:
153
+ - application/json
154
+ Accept-Encoding:
155
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
156
+ Accept:
157
+ - "*/*"
158
+ User-Agent:
159
+ - Ruby
160
+ response:
161
+ status:
162
+ code: 200
163
+ message: OK
164
+ headers:
165
+ Date:
166
+ - Fri, 07 Jul 2023 14:52:48 GMT
167
+ Content-Type:
168
+ - application/json; charset=utf-8
169
+ Content-Length:
170
+ - '10384'
171
+ Connection:
172
+ - keep-alive
173
+ Cache-Control:
174
+ - no-store, no-cache
175
+ Content-Security-Policy:
176
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
177
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
178
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
179
+ X-Dns-Prefetch-Control:
180
+ - 'off'
181
+ Expect-Ct:
182
+ - max-age=0
183
+ Strict-Transport-Security:
184
+ - max-age=15552000; includeSubDomains
185
+ X-Download-Options:
186
+ - noopen
187
+ X-Content-Type-Options:
188
+ - nosniff
189
+ X-Permitted-Cross-Domain-Policies:
190
+ - none
191
+ Referrer-Policy:
192
+ - no-referrer
193
+ X-Xss-Protection:
194
+ - '0'
195
+ Access-Control-Allow-Origin:
196
+ - "*"
197
+ X-Rate-Limit-Limit:
198
+ - '600'
199
+ X-Rate-Limit-Remaining:
200
+ - '580'
201
+ X-Rate-Limit-Reset:
202
+ - '1688741619'
203
+ Vary:
204
+ - Origin
205
+ Etag:
206
+ - W/"2890-ymg/9q6DRe4vP9+O6DBVpVEQIR8"
207
+ body:
208
+ encoding: UTF-8
209
+ string: '{"ok":true,"batch":{"id":"B-81AuTAM8LVjrA8cavGrVhM","status":"open","tags":[],"amount":"26.88","currency":"USD","totalPayments":2,"description":"Integration
210
+ Test Payments","sentAt":null,"completedAt":null,"createdAt":"2023-07-07T14:52:48.171Z","updatedAt":"2023-07-07T14:52:48.423Z","quoteExpiredAt":null,"payments":{"payments":[{"id":"P-FBshMK9eXPCPPZufTpTeUY","recipient":{"id":"R-4WeMhvokhsgTmtPd7kZWtt","referenceId":"R-4WeMhvokhsgTmtPd7kZWtt","parentRecipientId":null,"email":"test.created266fa63-752b-4a26-8679-2faf52b51801@example.com","name":"Tom
211
+ Jones","lastName":"Jones","firstName":"Tom","legalName":"","type":"individual","status":"incomplete","language":"en","complianceStatus":"pending","dob":null,"passport":"","placeOfBirth":null,"updatedAt":"2023-07-07T14:52:47.695Z","createdAt":"2023-07-07T14:52:47.205Z","tags":[],"isPortalUser":false,"taxDeliveryType":"mail","contactEmails":[],"occupation":"","address":{"street1":"","street2":"","city":"","postalCode":"","country":null,"region":null,"phone":"","phoneValidated":false},"compliance":{"status":"pending","checkedAt":null},"gravatarUrl":"https://www.gravatar.com/avatar/e4afbf51fd658ec0c4beb69c834cfd08?d=404","governmentId":null,"ssn":null,"governmentIds":[],"birthplace":{"country":null,"region":null,"city":null},"citizenships":[],"routeType":null,"routeMinimum":null,"estimatedFees":null,"accounts":[{"status":"primary","type":"bank-transfer","primary":true,"currency":"EUR","id":"A-6QHpGfMBduzArWnRPaGbph","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","recipientAccountId":"A-6QHpGfMBduzArWnRPaGbph","disabledAt":null,"recipientReferenceId":"R-4WeMhvokhsgTmtPd7kZWtt","deliveryBusinessDaysEstimate":5,"country":"DE","iban":"********************00","accountNum":"","bankAccountType":null,"bankCodeMappingId":null,"accountHolderName":"Tom
212
+ Jones","swiftBic":"COBADEFFXXX","branchId":"","bankId":"","bankName":"Commerzbank
213
+ AG","bankAddress":"Unter Sachsenhausen 21-27","bankCity":"Cologne","bankRegionCode":"Nordrhein-Westfalen","bankPostalCode":"50667","routeType":"sepa","recipientFees":"2"}],"payoutMethod":"bank-transfer","primaryCurrency":"EUR","riskScore":null,"riskScoreLabel":null,"merchantId":"M-C7AsydAeAqW3husDNHSAND","inactiveReasons":{"countryCode":"missing"},"taxWithholdingPercentage":null,"taxForm":null,"taxFormStatus":null},"status":"pending","isSupplyPayment":true,"coverFees":true,"returnedAmount":"0.00","category":"services","amount":"10.00","currency":"EUR","sourceAmount":"10.88","sourceCurrency":"USD","targetAmount":"0.00","targetCurrency":"EUR","taxReportable":true,"taxBasisAmount":"10.00","taxBasisCurrency":"EUR","withholdingAmount":"0.00","withholdingCurrency":"EUR","equivalentWithholdingAmount":"0.00","equivalentWithholdingCurrency":"USD","exchangeRate":"0","fees":"4.00","recipientFees":"0.00","fxRate":"2.5","memo":"","externalId":"","processedAt":null,"createdAt":"2023-07-07T14:52:48.217Z","updatedAt":"2023-07-07T14:52:48.217Z","forceUsTaxActivity":false,"batch":{"id":"B-81AuTAM8LVjrA8cavGrVhM","status":"open","tags":[],"amount":"26.88","currency":"USD","totalPayments":2,"description":"Integration
214
+ Test Payments","sentAt":null,"completedAt":null,"createdAt":"2023-07-07T14:52:48.171Z","updatedAt":"2023-07-07T14:52:48.423Z","quoteExpiredAt":null},"checkNumber":null,"tags":[],"merchantFees":"4.00","compliance":{"status":"pending","checkedAt":null},"account":{"status":"primary","type":"bank-transfer","primary":true,"currency":"EUR","id":"A-6QHpGfMBduzArWnRPaGbph","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","recipientAccountId":"A-6QHpGfMBduzArWnRPaGbph","disabledAt":null,"recipientReferenceId":"R-4WeMhvokhsgTmtPd7kZWtt","deliveryBusinessDaysEstimate":5,"country":"DE","iban":"********************00","accountNum":"","bankAccountType":null,"bankCodeMappingId":null,"accountHolderName":"Tom
215
+ Jones","swiftBic":"COBADEFFXXX","branchId":"","bankId":"","bankName":"Commerzbank
216
+ AG","bankAddress":"Unter Sachsenhausen 21-27","bankCity":"Cologne","bankRegionCode":"Nordrhein-Westfalen","bankPostalCode":"50667","routeType":"sepa","recipientFees":"2"},"payoutMethod":"bank-transfer","methodDisplay":"Bank
217
+ Transfer","initiatedAt":null,"settledAt":null,"returnedAt":null,"returnedReason":[],"returnedNote":null,"estimatedDeliveryAt":null,"merchantId":"M-C7AsydAeAqW3husDNHSAND","taxes":[{"id":"OP-WuQQg98fA2oLyVPr3a8pjU","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","taxFormId":null,"entered":{"value":"10.00","currency":"EUR"},"withholding":{"value":"0.00","currency":"EUR"},"equivalentWithholding":{"value":"0.00","currency":"USD"},"amount":"10.00","currency":"EUR","withholdingAmount":"0.00","withholdingCurrency":"EUR","equivalentWithholdingAmount":"0.00","equivalentWithholdingCurrency":"USD","paymentId":"P-FBshMK9eXPCPPZufTpTeUY","externalId":null,"memo":"","payoutMethod":"bank-transfer","tags":[],"taxReportable":true,"category":"services","processedAt":"2023-07-07T14:52:48.194Z","forceUsTaxActivity":false,"taxWithholdingReason":null,"equivalentUntaxedAmount":{"value":"10.89","currency":"USD"},"modifiedSinceCreation":false,"taxPaidByWithholdingAgents":"0","status":"internal","enteredAmount":{"value":"10.00","currency":"EUR"},"updatedAt":"2023-07-07T14:52:48.210Z","createdAt":"2023-07-07T14:52:48.194Z","deletedAt":null,"dac7Meta":null}],"errors":["recipient-not-active","incomplete"],"routeMinimum":"0","routeType":"sepa"},{"id":"P-Hxrp5FJL6o9hZHPSTXH6cF","recipient":{"id":"R-4WeMhvokhsgTmtPd7kZWtt","referenceId":"R-4WeMhvokhsgTmtPd7kZWtt","parentRecipientId":null,"email":"test.created266fa63-752b-4a26-8679-2faf52b51801@example.com","name":"Tom
218
+ Jones","lastName":"Jones","firstName":"Tom","legalName":"","type":"individual","status":"incomplete","language":"en","complianceStatus":"pending","dob":null,"passport":"","placeOfBirth":null,"updatedAt":"2023-07-07T14:52:47.695Z","createdAt":"2023-07-07T14:52:47.205Z","tags":[],"isPortalUser":false,"taxDeliveryType":"mail","contactEmails":[],"occupation":"","address":{"street1":"","street2":"","city":"","postalCode":"","country":null,"region":null,"phone":"","phoneValidated":false},"compliance":{"status":"pending","checkedAt":null},"gravatarUrl":"https://www.gravatar.com/avatar/e4afbf51fd658ec0c4beb69c834cfd08?d=404","governmentId":null,"ssn":null,"governmentIds":[],"birthplace":{"country":null,"region":null,"city":null},"citizenships":[],"routeType":null,"routeMinimum":null,"estimatedFees":null,"accounts":[{"status":"primary","type":"bank-transfer","primary":true,"currency":"EUR","id":"A-6QHpGfMBduzArWnRPaGbph","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","recipientAccountId":"A-6QHpGfMBduzArWnRPaGbph","disabledAt":null,"recipientReferenceId":"R-4WeMhvokhsgTmtPd7kZWtt","deliveryBusinessDaysEstimate":5,"country":"DE","iban":"********************00","accountNum":"","bankAccountType":null,"bankCodeMappingId":null,"accountHolderName":"Tom
219
+ Jones","swiftBic":"COBADEFFXXX","branchId":"","bankId":"","bankName":"Commerzbank
220
+ AG","bankAddress":"Unter Sachsenhausen 21-27","bankCity":"Cologne","bankRegionCode":"Nordrhein-Westfalen","bankPostalCode":"50667","routeType":"sepa","recipientFees":"2"}],"payoutMethod":"bank-transfer","primaryCurrency":"EUR","riskScore":null,"riskScoreLabel":null,"merchantId":"M-C7AsydAeAqW3husDNHSAND","inactiveReasons":{"countryCode":"missing"},"taxWithholdingPercentage":null,"taxForm":null,"taxFormStatus":null},"status":"pending","isSupplyPayment":false,"coverFees":false,"returnedAmount":"0.00","category":"services","amount":"10.00","currency":"USD","sourceAmount":"10.00","sourceCurrency":"USD","targetAmount":"0.00","targetCurrency":"EUR","taxReportable":true,"taxBasisAmount":"10.00","taxBasisCurrency":"USD","withholdingAmount":"0.00","withholdingCurrency":"USD","equivalentWithholdingAmount":"0.00","equivalentWithholdingCurrency":"USD","exchangeRate":"0","fees":"4.00","recipientFees":"2.00","fxRate":"2.5","memo":"","externalId":"","processedAt":null,"createdAt":"2023-07-07T14:52:48.213Z","updatedAt":"2023-07-07T14:52:48.213Z","forceUsTaxActivity":false,"batch":{"id":"B-81AuTAM8LVjrA8cavGrVhM","status":"open","tags":[],"amount":"26.88","currency":"USD","totalPayments":2,"description":"Integration
221
+ Test Payments","sentAt":null,"completedAt":null,"createdAt":"2023-07-07T14:52:48.171Z","updatedAt":"2023-07-07T14:52:48.423Z","quoteExpiredAt":null},"checkNumber":null,"tags":[],"merchantFees":"2.00","compliance":{"status":"pending","checkedAt":null},"account":{"status":"primary","type":"bank-transfer","primary":true,"currency":"EUR","id":"A-6QHpGfMBduzArWnRPaGbph","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","recipientAccountId":"A-6QHpGfMBduzArWnRPaGbph","disabledAt":null,"recipientReferenceId":"R-4WeMhvokhsgTmtPd7kZWtt","deliveryBusinessDaysEstimate":5,"country":"DE","iban":"********************00","accountNum":"","bankAccountType":null,"bankCodeMappingId":null,"accountHolderName":"Tom
222
+ Jones","swiftBic":"COBADEFFXXX","branchId":"","bankId":"","bankName":"Commerzbank
223
+ AG","bankAddress":"Unter Sachsenhausen 21-27","bankCity":"Cologne","bankRegionCode":"Nordrhein-Westfalen","bankPostalCode":"50667","routeType":"sepa","recipientFees":"2"},"payoutMethod":"bank-transfer","methodDisplay":"Bank
224
+ Transfer","initiatedAt":null,"settledAt":null,"returnedAt":null,"returnedReason":[],"returnedNote":null,"estimatedDeliveryAt":null,"merchantId":"M-C7AsydAeAqW3husDNHSAND","taxes":[{"id":"OP-WBqLGmCtnoQLJ8Cp2U1skB","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","taxFormId":null,"entered":{"value":"10.00","currency":"USD"},"withholding":{"value":"0.00","currency":"USD"},"equivalentWithholding":{"value":"0.00","currency":"USD"},"amount":"10.00","currency":"USD","withholdingAmount":"0.00","withholdingCurrency":"USD","equivalentWithholdingAmount":"0.00","equivalentWithholdingCurrency":"USD","paymentId":"P-Hxrp5FJL6o9hZHPSTXH6cF","externalId":null,"memo":"","payoutMethod":"bank-transfer","tags":[],"taxReportable":true,"category":"services","processedAt":"2023-07-07T14:52:48.191Z","forceUsTaxActivity":false,"taxWithholdingReason":null,"equivalentUntaxedAmount":{"value":"10.00","currency":"USD"},"modifiedSinceCreation":false,"taxPaidByWithholdingAgents":"0","status":"internal","enteredAmount":{"value":"10.00","currency":"USD"},"updatedAt":"2023-07-07T14:52:48.206Z","createdAt":"2023-07-07T14:52:48.191Z","deletedAt":null,"dac7Meta":null}],"errors":["recipient-not-active","incomplete"],"routeMinimum":"0","routeType":"sepa"}],"meta":{"page":1,"pages":1,"records":2}}}}'
225
+ recorded_at: Fri, 07 Jul 2023 14:52:48 GMT
226
+ - request:
227
+ method: get
228
+ uri: https://api.trolley.com/v1/recipients/R-4WeMhvokhsgTmtPd7kZWtt/payments?page=1&pageSize=10
229
+ body:
230
+ encoding: US-ASCII
231
+ string: ''
232
+ headers:
233
+ X-Pr-Timestamp:
234
+ - '1688741568'
235
+ Content-Type:
236
+ - application/json
237
+ Accept-Encoding:
238
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
239
+ Accept:
240
+ - "*/*"
241
+ User-Agent:
242
+ - Ruby
243
+ response:
244
+ status:
245
+ code: 200
246
+ message: OK
247
+ headers:
248
+ Date:
249
+ - Fri, 07 Jul 2023 14:52:49 GMT
250
+ Content-Type:
251
+ - application/json; charset=utf-8
252
+ Content-Length:
253
+ - '10076'
254
+ Connection:
255
+ - keep-alive
256
+ Cache-Control:
257
+ - no-store, no-cache
258
+ Content-Security-Policy:
259
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
260
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
261
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
262
+ X-Dns-Prefetch-Control:
263
+ - 'off'
264
+ Expect-Ct:
265
+ - max-age=0
266
+ Strict-Transport-Security:
267
+ - max-age=15552000; includeSubDomains
268
+ X-Download-Options:
269
+ - noopen
270
+ X-Content-Type-Options:
271
+ - nosniff
272
+ X-Permitted-Cross-Domain-Policies:
273
+ - none
274
+ Referrer-Policy:
275
+ - no-referrer
276
+ X-Xss-Protection:
277
+ - '0'
278
+ Access-Control-Allow-Origin:
279
+ - "*"
280
+ X-Rate-Limit-Limit:
281
+ - '600'
282
+ X-Rate-Limit-Remaining:
283
+ - '579'
284
+ X-Rate-Limit-Reset:
285
+ - '1688741619'
286
+ Vary:
287
+ - Origin
288
+ Etag:
289
+ - W/"275c-hI/tKcwxIJUBfreMPksVwydtXr4"
290
+ body:
291
+ encoding: UTF-8
292
+ string: '{"ok":true,"payments":[{"id":"P-FBshMK9eXPCPPZufTpTeUY","recipient":{"id":"R-4WeMhvokhsgTmtPd7kZWtt","referenceId":"R-4WeMhvokhsgTmtPd7kZWtt","parentRecipientId":null,"email":"test.created266fa63-752b-4a26-8679-2faf52b51801@example.com","name":"Tom
293
+ Jones","lastName":"Jones","firstName":"Tom","legalName":"","type":"individual","status":"incomplete","language":"en","complianceStatus":"pending","dob":null,"passport":"","placeOfBirth":null,"updatedAt":"2023-07-07T14:52:47.695Z","createdAt":"2023-07-07T14:52:47.205Z","tags":[],"isPortalUser":false,"taxDeliveryType":"mail","contactEmails":[],"occupation":"","address":{"street1":"","street2":"","city":"","postalCode":"","country":null,"region":null,"phone":"","phoneValidated":false},"compliance":{"status":"pending","checkedAt":null},"gravatarUrl":"https://www.gravatar.com/avatar/e4afbf51fd658ec0c4beb69c834cfd08?d=404","governmentId":null,"ssn":null,"governmentIds":[],"birthplace":{"country":null,"region":null,"city":null},"citizenships":[],"routeType":null,"routeMinimum":null,"estimatedFees":null,"accounts":[{"status":"primary","type":"bank-transfer","primary":true,"currency":"EUR","id":"A-6QHpGfMBduzArWnRPaGbph","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","recipientAccountId":"A-6QHpGfMBduzArWnRPaGbph","disabledAt":null,"recipientReferenceId":"R-4WeMhvokhsgTmtPd7kZWtt","deliveryBusinessDaysEstimate":5,"country":"DE","iban":"********************00","accountNum":"","bankAccountType":null,"bankCodeMappingId":null,"accountHolderName":"Tom
294
+ Jones","swiftBic":"COBADEFFXXX","branchId":"","bankId":"","bankName":"Commerzbank
295
+ AG","bankAddress":"Unter Sachsenhausen 21-27","bankCity":"Cologne","bankRegionCode":"Nordrhein-Westfalen","bankPostalCode":"50667","routeType":"sepa","recipientFees":"2"}],"payoutMethod":"bank-transfer","primaryCurrency":"EUR","riskScore":null,"riskScoreLabel":null,"merchantId":"M-C7AsydAeAqW3husDNHSAND","inactiveReasons":{"countryCode":"missing"},"taxWithholdingPercentage":null,"taxForm":null,"taxFormStatus":null},"status":"pending","isSupplyPayment":true,"coverFees":true,"returnedAmount":"0.00","category":"services","amount":"10.00","currency":"EUR","sourceAmount":"10.88","sourceCurrency":"USD","targetAmount":"0.00","targetCurrency":"EUR","taxReportable":true,"taxBasisAmount":"10.00","taxBasisCurrency":"EUR","withholdingAmount":"0.00","withholdingCurrency":"EUR","equivalentWithholdingAmount":"0.00","equivalentWithholdingCurrency":"USD","exchangeRate":"0","fees":"4.00","recipientFees":"0.00","fxRate":"2.5","memo":"","externalId":"","processedAt":null,"createdAt":"2023-07-07T14:52:48.217Z","updatedAt":"2023-07-07T14:52:48.217Z","forceUsTaxActivity":false,"batch":{"id":"B-81AuTAM8LVjrA8cavGrVhM","status":"open","tags":[],"amount":"26.88","currency":"USD","totalPayments":2,"description":"Integration
296
+ Test Payments","sentAt":null,"completedAt":null,"createdAt":"2023-07-07T14:52:48.171Z","updatedAt":"2023-07-07T14:52:48.423Z","quoteExpiredAt":null},"checkNumber":null,"tags":[],"merchantFees":"4.00","compliance":{"status":"pending","checkedAt":null},"account":{"status":"primary","type":"bank-transfer","primary":true,"currency":"EUR","id":"A-6QHpGfMBduzArWnRPaGbph","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","recipientAccountId":"A-6QHpGfMBduzArWnRPaGbph","disabledAt":null,"recipientReferenceId":"R-4WeMhvokhsgTmtPd7kZWtt","deliveryBusinessDaysEstimate":5,"country":"DE","iban":"********************00","accountNum":"","bankAccountType":null,"bankCodeMappingId":null,"accountHolderName":"Tom
297
+ Jones","swiftBic":"COBADEFFXXX","branchId":"","bankId":"","bankName":"Commerzbank
298
+ AG","bankAddress":"Unter Sachsenhausen 21-27","bankCity":"Cologne","bankRegionCode":"Nordrhein-Westfalen","bankPostalCode":"50667","routeType":"sepa","recipientFees":"2"},"payoutMethod":"bank-transfer","methodDisplay":"Bank
299
+ Transfer","initiatedAt":null,"settledAt":null,"returnedAt":null,"returnedReason":[],"returnedNote":null,"estimatedDeliveryAt":null,"merchantId":"M-C7AsydAeAqW3husDNHSAND","taxes":[{"id":"OP-WuQQg98fA2oLyVPr3a8pjU","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","taxFormId":null,"entered":{"value":"10.00","currency":"EUR"},"withholding":{"value":"0.00","currency":"EUR"},"equivalentWithholding":{"value":"0.00","currency":"USD"},"amount":"10.00","currency":"EUR","withholdingAmount":"0.00","withholdingCurrency":"EUR","equivalentWithholdingAmount":"0.00","equivalentWithholdingCurrency":"USD","paymentId":"P-FBshMK9eXPCPPZufTpTeUY","externalId":null,"memo":"","payoutMethod":"bank-transfer","tags":[],"taxReportable":true,"category":"services","processedAt":"2023-07-07T14:52:48.194Z","forceUsTaxActivity":false,"taxWithholdingReason":null,"equivalentUntaxedAmount":{"value":"10.89","currency":"USD"},"modifiedSinceCreation":false,"taxPaidByWithholdingAgents":"0","status":"internal","enteredAmount":{"value":"10.00","currency":"EUR"},"updatedAt":"2023-07-07T14:52:48.210Z","createdAt":"2023-07-07T14:52:48.194Z","deletedAt":null,"dac7Meta":null}],"errors":["recipient-not-active","incomplete"],"routeMinimum":"0","routeType":"sepa"},{"id":"P-Hxrp5FJL6o9hZHPSTXH6cF","recipient":{"id":"R-4WeMhvokhsgTmtPd7kZWtt","referenceId":"R-4WeMhvokhsgTmtPd7kZWtt","parentRecipientId":null,"email":"test.created266fa63-752b-4a26-8679-2faf52b51801@example.com","name":"Tom
300
+ Jones","lastName":"Jones","firstName":"Tom","legalName":"","type":"individual","status":"incomplete","language":"en","complianceStatus":"pending","dob":null,"passport":"","placeOfBirth":null,"updatedAt":"2023-07-07T14:52:47.695Z","createdAt":"2023-07-07T14:52:47.205Z","tags":[],"isPortalUser":false,"taxDeliveryType":"mail","contactEmails":[],"occupation":"","address":{"street1":"","street2":"","city":"","postalCode":"","country":null,"region":null,"phone":"","phoneValidated":false},"compliance":{"status":"pending","checkedAt":null},"gravatarUrl":"https://www.gravatar.com/avatar/e4afbf51fd658ec0c4beb69c834cfd08?d=404","governmentId":null,"ssn":null,"governmentIds":[],"birthplace":{"country":null,"region":null,"city":null},"citizenships":[],"routeType":null,"routeMinimum":null,"estimatedFees":null,"accounts":[{"status":"primary","type":"bank-transfer","primary":true,"currency":"EUR","id":"A-6QHpGfMBduzArWnRPaGbph","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","recipientAccountId":"A-6QHpGfMBduzArWnRPaGbph","disabledAt":null,"recipientReferenceId":"R-4WeMhvokhsgTmtPd7kZWtt","deliveryBusinessDaysEstimate":5,"country":"DE","iban":"********************00","accountNum":"","bankAccountType":null,"bankCodeMappingId":null,"accountHolderName":"Tom
301
+ Jones","swiftBic":"COBADEFFXXX","branchId":"","bankId":"","bankName":"Commerzbank
302
+ AG","bankAddress":"Unter Sachsenhausen 21-27","bankCity":"Cologne","bankRegionCode":"Nordrhein-Westfalen","bankPostalCode":"50667","routeType":"sepa","recipientFees":"2"}],"payoutMethod":"bank-transfer","primaryCurrency":"EUR","riskScore":null,"riskScoreLabel":null,"merchantId":"M-C7AsydAeAqW3husDNHSAND","inactiveReasons":{"countryCode":"missing"},"taxWithholdingPercentage":null,"taxForm":null,"taxFormStatus":null},"status":"pending","isSupplyPayment":false,"coverFees":false,"returnedAmount":"0.00","category":"services","amount":"10.00","currency":"USD","sourceAmount":"10.00","sourceCurrency":"USD","targetAmount":"0.00","targetCurrency":"EUR","taxReportable":true,"taxBasisAmount":"10.00","taxBasisCurrency":"USD","withholdingAmount":"0.00","withholdingCurrency":"USD","equivalentWithholdingAmount":"0.00","equivalentWithholdingCurrency":"USD","exchangeRate":"0","fees":"4.00","recipientFees":"2.00","fxRate":"2.5","memo":"","externalId":"","processedAt":null,"createdAt":"2023-07-07T14:52:48.213Z","updatedAt":"2023-07-07T14:52:48.213Z","forceUsTaxActivity":false,"batch":{"id":"B-81AuTAM8LVjrA8cavGrVhM","status":"open","tags":[],"amount":"26.88","currency":"USD","totalPayments":2,"description":"Integration
303
+ Test Payments","sentAt":null,"completedAt":null,"createdAt":"2023-07-07T14:52:48.171Z","updatedAt":"2023-07-07T14:52:48.423Z","quoteExpiredAt":null},"checkNumber":null,"tags":[],"merchantFees":"2.00","compliance":{"status":"pending","checkedAt":null},"account":{"status":"primary","type":"bank-transfer","primary":true,"currency":"EUR","id":"A-6QHpGfMBduzArWnRPaGbph","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","recipientAccountId":"A-6QHpGfMBduzArWnRPaGbph","disabledAt":null,"recipientReferenceId":"R-4WeMhvokhsgTmtPd7kZWtt","deliveryBusinessDaysEstimate":5,"country":"DE","iban":"********************00","accountNum":"","bankAccountType":null,"bankCodeMappingId":null,"accountHolderName":"Tom
304
+ Jones","swiftBic":"COBADEFFXXX","branchId":"","bankId":"","bankName":"Commerzbank
305
+ AG","bankAddress":"Unter Sachsenhausen 21-27","bankCity":"Cologne","bankRegionCode":"Nordrhein-Westfalen","bankPostalCode":"50667","routeType":"sepa","recipientFees":"2"},"payoutMethod":"bank-transfer","methodDisplay":"Bank
306
+ Transfer","initiatedAt":null,"settledAt":null,"returnedAt":null,"returnedReason":[],"returnedNote":null,"estimatedDeliveryAt":null,"merchantId":"M-C7AsydAeAqW3husDNHSAND","taxes":[{"id":"OP-WBqLGmCtnoQLJ8Cp2U1skB","recipientId":"R-4WeMhvokhsgTmtPd7kZWtt","taxFormId":null,"entered":{"value":"10.00","currency":"USD"},"withholding":{"value":"0.00","currency":"USD"},"equivalentWithholding":{"value":"0.00","currency":"USD"},"amount":"10.00","currency":"USD","withholdingAmount":"0.00","withholdingCurrency":"USD","equivalentWithholdingAmount":"0.00","equivalentWithholdingCurrency":"USD","paymentId":"P-Hxrp5FJL6o9hZHPSTXH6cF","externalId":null,"memo":"","payoutMethod":"bank-transfer","tags":[],"taxReportable":true,"category":"services","processedAt":"2023-07-07T14:52:48.191Z","forceUsTaxActivity":false,"taxWithholdingReason":null,"equivalentUntaxedAmount":{"value":"10.00","currency":"USD"},"modifiedSinceCreation":false,"taxPaidByWithholdingAgents":"0","status":"internal","enteredAmount":{"value":"10.00","currency":"USD"},"updatedAt":"2023-07-07T14:52:48.206Z","createdAt":"2023-07-07T14:52:48.191Z","deletedAt":null,"dac7Meta":null}],"errors":["recipient-not-active","incomplete"],"routeMinimum":"0","routeType":"sepa"}],"meta":{"page":1,"pages":1,"records":2}}'
307
+ recorded_at: Fri, 07 Jul 2023 14:52:49 GMT
308
+ - request:
309
+ method: delete
310
+ uri: https://api.trolley.com/v1/batches/B-81AuTAM8LVjrA8cavGrVhM
311
+ body:
312
+ encoding: UTF-8
313
+ string: ''
314
+ headers:
315
+ X-Pr-Timestamp:
316
+ - '1688741569'
317
+ Content-Type:
318
+ - application/json
319
+ Accept-Encoding:
320
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
321
+ Accept:
322
+ - "*/*"
323
+ User-Agent:
324
+ - Ruby
325
+ response:
326
+ status:
327
+ code: 200
328
+ message: OK
329
+ headers:
330
+ Date:
331
+ - Fri, 07 Jul 2023 14:52:49 GMT
332
+ Content-Type:
333
+ - application/json; charset=utf-8
334
+ Content-Length:
335
+ - '11'
336
+ Connection:
337
+ - keep-alive
338
+ Cache-Control:
339
+ - no-store, no-cache
340
+ Content-Security-Policy:
341
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
342
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
343
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
344
+ X-Dns-Prefetch-Control:
345
+ - 'off'
346
+ Expect-Ct:
347
+ - max-age=0
348
+ Strict-Transport-Security:
349
+ - max-age=15552000; includeSubDomains
350
+ X-Download-Options:
351
+ - noopen
352
+ X-Content-Type-Options:
353
+ - nosniff
354
+ X-Permitted-Cross-Domain-Policies:
355
+ - none
356
+ Referrer-Policy:
357
+ - no-referrer
358
+ X-Xss-Protection:
359
+ - '0'
360
+ Access-Control-Allow-Origin:
361
+ - "*"
362
+ X-Rate-Limit-Limit:
363
+ - '600'
364
+ X-Rate-Limit-Remaining:
365
+ - '578'
366
+ X-Rate-Limit-Reset:
367
+ - '1688741619'
368
+ Vary:
369
+ - Origin
370
+ Etag:
371
+ - W/"b-Ai2R8hgEarLmHKwesT1qcY913ys"
372
+ body:
373
+ encoding: UTF-8
374
+ string: '{"ok":true}'
375
+ recorded_at: Fri, 07 Jul 2023 14:52:49 GMT
376
+ - request:
377
+ method: delete
378
+ uri: https://api.trolley.com/v1/recipients/R-4WeMhvokhsgTmtPd7kZWtt/accounts/A-6QHpGfMBduzArWnRPaGbph
379
+ body:
380
+ encoding: UTF-8
381
+ string: ''
382
+ headers:
383
+ X-Pr-Timestamp:
384
+ - '1688741569'
385
+ Content-Type:
386
+ - application/json
387
+ Accept-Encoding:
388
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
389
+ Accept:
390
+ - "*/*"
391
+ User-Agent:
392
+ - Ruby
393
+ response:
394
+ status:
395
+ code: 200
396
+ message: OK
397
+ headers:
398
+ Date:
399
+ - Fri, 07 Jul 2023 14:52:50 GMT
400
+ Content-Type:
401
+ - application/json; charset=utf-8
402
+ Content-Length:
403
+ - '11'
404
+ Connection:
405
+ - keep-alive
406
+ Cache-Control:
407
+ - no-store, no-cache
408
+ Content-Security-Policy:
409
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
410
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
411
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
412
+ X-Dns-Prefetch-Control:
413
+ - 'off'
414
+ Expect-Ct:
415
+ - max-age=0
416
+ Strict-Transport-Security:
417
+ - max-age=15552000; includeSubDomains
418
+ X-Download-Options:
419
+ - noopen
420
+ X-Content-Type-Options:
421
+ - nosniff
422
+ X-Permitted-Cross-Domain-Policies:
423
+ - none
424
+ Referrer-Policy:
425
+ - no-referrer
426
+ X-Xss-Protection:
427
+ - '0'
428
+ Access-Control-Allow-Origin:
429
+ - "*"
430
+ X-Rate-Limit-Limit:
431
+ - '600'
432
+ X-Rate-Limit-Remaining:
433
+ - '577'
434
+ X-Rate-Limit-Reset:
435
+ - '1688741619'
436
+ Vary:
437
+ - Origin
438
+ Etag:
439
+ - W/"b-Ai2R8hgEarLmHKwesT1qcY913ys"
440
+ body:
441
+ encoding: UTF-8
442
+ string: '{"ok":true}'
443
+ recorded_at: Fri, 07 Jul 2023 14:52:50 GMT
444
+ - request:
445
+ method: delete
446
+ uri: https://api.trolley.com/v1/recipients/R-4WeMhvokhsgTmtPd7kZWtt
447
+ body:
448
+ encoding: UTF-8
449
+ string: ''
450
+ headers:
451
+ X-Pr-Timestamp:
452
+ - '1688741570'
453
+ Content-Type:
454
+ - application/json
455
+ Accept-Encoding:
456
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
457
+ Accept:
458
+ - "*/*"
459
+ User-Agent:
460
+ - Ruby
461
+ response:
462
+ status:
463
+ code: 200
464
+ message: OK
465
+ headers:
466
+ Date:
467
+ - Fri, 07 Jul 2023 14:52:50 GMT
468
+ Content-Type:
469
+ - application/json; charset=utf-8
470
+ Content-Length:
471
+ - '11'
472
+ Connection:
473
+ - keep-alive
474
+ Cache-Control:
475
+ - no-store, no-cache
476
+ Content-Security-Policy:
477
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
478
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
479
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
480
+ X-Dns-Prefetch-Control:
481
+ - 'off'
482
+ Expect-Ct:
483
+ - max-age=0
484
+ Strict-Transport-Security:
485
+ - max-age=15552000; includeSubDomains
486
+ X-Download-Options:
487
+ - noopen
488
+ X-Content-Type-Options:
489
+ - nosniff
490
+ X-Permitted-Cross-Domain-Policies:
491
+ - none
492
+ Referrer-Policy:
493
+ - no-referrer
494
+ X-Xss-Protection:
495
+ - '0'
496
+ Access-Control-Allow-Origin:
497
+ - "*"
498
+ X-Rate-Limit-Limit:
499
+ - '600'
500
+ X-Rate-Limit-Remaining:
501
+ - '576'
502
+ X-Rate-Limit-Reset:
503
+ - '1688741619'
504
+ Vary:
505
+ - Origin
506
+ Etag:
507
+ - W/"b-Ai2R8hgEarLmHKwesT1qcY913ys"
508
+ body:
509
+ encoding: UTF-8
510
+ string: '{"ok":true}'
511
+ recorded_at: Fri, 07 Jul 2023 14:52:50 GMT
512
+ recorded_with: VCR 6.2.0