razorpay 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +2 -0
- data/documents/customer.md +242 -0
- data/documents/dispute.md +301 -0
- data/documents/documents.md +65 -0
- data/documents/order.md +71 -0
- data/documents/payment.md +253 -0
- data/documents/transfers.md +40 -0
- data/lib/razorpay/constants.rb +1 -1
- data/lib/razorpay/customer.rb +16 -0
- data/lib/razorpay/dispute.rb +26 -0
- data/lib/razorpay/document.rb +19 -0
- data/lib/razorpay/order.rb +8 -0
- data/lib/razorpay/payment.rb +4 -0
- data/lib/razorpay/transfer.rb +4 -0
- data/lib/razorpay.rb +2 -0
- data/test/fixtures/dispute_collection.json +67 -0
- data/test/fixtures/dispute_error.json +10 -0
- data/test/fixtures/document_error.json +10 -0
- data/test/fixtures/error_customer.json +10 -0
- data/test/fixtures/error_eligibility.json +10 -0
- data/test/fixtures/error_eligibility_check.json +10 -0
- data/test/fixtures/fake_bank_account.json +9 -0
- data/test/fixtures/fake_dispute.json +29 -0
- data/test/fixtures/fake_document.json +9 -0
- data/test/fixtures/fake_eligiblity.json +79 -0
- data/test/fixtures/fake_fulfillment.json +10 -0
- data/test/fixtures/fake_payment_expanded_details.json +38 -0
- data/test/fixtures/fake_payment_expanded_details_card.json +50 -0
- data/test/fixtures/fake_rto.json +15 -0
- data/test/fixtures/order_error.json +10 -0
- data/test/fixtures/payment_error.json +10 -0
- data/test/fixtures/reversals_collection.json +22 -0
- data/test/fixtures/transfer_error.json +10 -0
- data/test/razorpay/test_customer.rb +105 -0
- data/test/razorpay/test_dispute.rb +98 -0
- data/test/razorpay/test_document.rb +27 -0
- data/test/razorpay/test_order.rb +43 -1
- data/test/razorpay/test_payment.rb +23 -1
- data/test/razorpay/test_transfer.rb +17 -0
- metadata +47 -3
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: razorpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abhay Rana
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -135,6 +135,8 @@ files:
|
|
135
135
|
- documents/addon.md
|
136
136
|
- documents/card.md
|
137
137
|
- documents/customer.md
|
138
|
+
- documents/dispute.md
|
139
|
+
- documents/documents.md
|
138
140
|
- documents/emandate.md
|
139
141
|
- documents/fund.md
|
140
142
|
- documents/items.md
|
@@ -167,6 +169,8 @@ files:
|
|
167
169
|
- lib/razorpay/collection.rb
|
168
170
|
- lib/razorpay/constants.rb
|
169
171
|
- lib/razorpay/customer.rb
|
172
|
+
- lib/razorpay/dispute.rb
|
173
|
+
- lib/razorpay/document.rb
|
170
174
|
- lib/razorpay/entity.rb
|
171
175
|
- lib/razorpay/errors.rb
|
172
176
|
- lib/razorpay/errors/bad_request_error.rb
|
@@ -206,10 +210,17 @@ files:
|
|
206
210
|
- test/fixtures/create_json_payment.json
|
207
211
|
- test/fixtures/customer_collection.json
|
208
212
|
- test/fixtures/delete_token.json
|
213
|
+
- test/fixtures/dispute_collection.json
|
214
|
+
- test/fixtures/dispute_error.json
|
215
|
+
- test/fixtures/document_error.json
|
209
216
|
- test/fixtures/downtimes_collection.json
|
210
217
|
- test/fixtures/empty.json
|
218
|
+
- test/fixtures/error_customer.json
|
219
|
+
- test/fixtures/error_eligibility.json
|
220
|
+
- test/fixtures/error_eligibility_check.json
|
211
221
|
- test/fixtures/fake_account.json
|
212
222
|
- test/fixtures/fake_addon.json
|
223
|
+
- test/fixtures/fake_bank_account.json
|
213
224
|
- test/fixtures/fake_captured_payment.json
|
214
225
|
- test/fixtures/fake_card.json
|
215
226
|
- test/fixtures/fake_card_reference.json
|
@@ -217,7 +228,11 @@ files:
|
|
217
228
|
- test/fixtures/fake_customer.json
|
218
229
|
- test/fixtures/fake_customer_edited.json
|
219
230
|
- test/fixtures/fake_direct_transfer.json
|
231
|
+
- test/fixtures/fake_dispute.json
|
232
|
+
- test/fixtures/fake_document.json
|
220
233
|
- test/fixtures/fake_downtime.json
|
234
|
+
- test/fixtures/fake_eligiblity.json
|
235
|
+
- test/fixtures/fake_fulfillment.json
|
221
236
|
- test/fixtures/fake_fund_account.json
|
222
237
|
- test/fixtures/fake_iin_token.json
|
223
238
|
- test/fixtures/fake_instant_settlement.json
|
@@ -232,6 +247,8 @@ files:
|
|
232
247
|
- test/fixtures/fake_payment.json
|
233
248
|
- test/fixtures/fake_payment_authorized_webhook.json
|
234
249
|
- test/fixtures/fake_payment_bank_transfer.json
|
250
|
+
- test/fixtures/fake_payment_expanded_details.json
|
251
|
+
- test/fixtures/fake_payment_expanded_details_card.json
|
235
252
|
- test/fixtures/fake_payment_link.json
|
236
253
|
- test/fixtures/fake_pending_update.json
|
237
254
|
- test/fixtures/fake_plan.json
|
@@ -242,6 +259,7 @@ files:
|
|
242
259
|
- test/fixtures/fake_refund.json
|
243
260
|
- test/fixtures/fake_refunded_payment.json
|
244
261
|
- test/fixtures/fake_revoke_token.json
|
262
|
+
- test/fixtures/fake_rto.json
|
245
263
|
- test/fixtures/fake_settlement.json
|
246
264
|
- test/fixtures/fake_settlement_on_demand.json
|
247
265
|
- test/fixtures/fake_stakeholder.json
|
@@ -269,9 +287,11 @@ files:
|
|
269
287
|
- test/fixtures/issue_invoice.json
|
270
288
|
- test/fixtures/item_collection.json
|
271
289
|
- test/fixtures/order_collection.json
|
290
|
+
- test/fixtures/order_error.json
|
272
291
|
- test/fixtures/order_payments.json
|
273
292
|
- test/fixtures/payment_collection.json
|
274
293
|
- test/fixtures/payment_collection_with_one_payment.json
|
294
|
+
- test/fixtures/payment_error.json
|
275
295
|
- test/fixtures/payment_link_collection.json
|
276
296
|
- test/fixtures/payment_link_response.json
|
277
297
|
- test/fixtures/payment_methods_collection.json
|
@@ -280,6 +300,7 @@ files:
|
|
280
300
|
- test/fixtures/qrcode_payments_collection.json
|
281
301
|
- test/fixtures/refund_collection.json
|
282
302
|
- test/fixtures/refund_collection_for_payment.json
|
303
|
+
- test/fixtures/reversals_collection.json
|
283
304
|
- test/fixtures/settlement_collection.json
|
284
305
|
- test/fixtures/settlement_instant_collection.json
|
285
306
|
- test/fixtures/settlement_report_collection.json
|
@@ -287,6 +308,7 @@ files:
|
|
287
308
|
- test/fixtures/subscription_collection.json
|
288
309
|
- test/fixtures/success.json
|
289
310
|
- test/fixtures/tokens_collection.json
|
311
|
+
- test/fixtures/transfer_error.json
|
290
312
|
- test/fixtures/transfer_settlements_collection.json
|
291
313
|
- test/fixtures/transfers_collection.json
|
292
314
|
- test/fixtures/update_invoice.json
|
@@ -297,6 +319,8 @@ files:
|
|
297
319
|
- test/razorpay/test_addon.rb
|
298
320
|
- test/razorpay/test_card.rb
|
299
321
|
- test/razorpay/test_customer.rb
|
322
|
+
- test/razorpay/test_dispute.rb
|
323
|
+
- test/razorpay/test_document.rb
|
300
324
|
- test/razorpay/test_entity.rb
|
301
325
|
- test/razorpay/test_fund_account.rb
|
302
326
|
- test/razorpay/test_iin.rb
|
@@ -342,7 +366,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
342
366
|
- !ruby/object:Gem::Version
|
343
367
|
version: '0'
|
344
368
|
requirements: []
|
345
|
-
rubygems_version: 3.3.
|
369
|
+
rubygems_version: 3.3.27
|
346
370
|
signing_key:
|
347
371
|
specification_version: 4
|
348
372
|
summary: Razorpay's Ruby API
|
@@ -354,10 +378,17 @@ test_files:
|
|
354
378
|
- test/fixtures/create_json_payment.json
|
355
379
|
- test/fixtures/customer_collection.json
|
356
380
|
- test/fixtures/delete_token.json
|
381
|
+
- test/fixtures/dispute_collection.json
|
382
|
+
- test/fixtures/dispute_error.json
|
383
|
+
- test/fixtures/document_error.json
|
357
384
|
- test/fixtures/downtimes_collection.json
|
358
385
|
- test/fixtures/empty.json
|
386
|
+
- test/fixtures/error_customer.json
|
387
|
+
- test/fixtures/error_eligibility.json
|
388
|
+
- test/fixtures/error_eligibility_check.json
|
359
389
|
- test/fixtures/fake_account.json
|
360
390
|
- test/fixtures/fake_addon.json
|
391
|
+
- test/fixtures/fake_bank_account.json
|
361
392
|
- test/fixtures/fake_captured_payment.json
|
362
393
|
- test/fixtures/fake_card.json
|
363
394
|
- test/fixtures/fake_card_reference.json
|
@@ -365,7 +396,11 @@ test_files:
|
|
365
396
|
- test/fixtures/fake_customer.json
|
366
397
|
- test/fixtures/fake_customer_edited.json
|
367
398
|
- test/fixtures/fake_direct_transfer.json
|
399
|
+
- test/fixtures/fake_dispute.json
|
400
|
+
- test/fixtures/fake_document.json
|
368
401
|
- test/fixtures/fake_downtime.json
|
402
|
+
- test/fixtures/fake_eligiblity.json
|
403
|
+
- test/fixtures/fake_fulfillment.json
|
369
404
|
- test/fixtures/fake_fund_account.json
|
370
405
|
- test/fixtures/fake_iin_token.json
|
371
406
|
- test/fixtures/fake_instant_settlement.json
|
@@ -380,6 +415,8 @@ test_files:
|
|
380
415
|
- test/fixtures/fake_payment.json
|
381
416
|
- test/fixtures/fake_payment_authorized_webhook.json
|
382
417
|
- test/fixtures/fake_payment_bank_transfer.json
|
418
|
+
- test/fixtures/fake_payment_expanded_details.json
|
419
|
+
- test/fixtures/fake_payment_expanded_details_card.json
|
383
420
|
- test/fixtures/fake_payment_link.json
|
384
421
|
- test/fixtures/fake_pending_update.json
|
385
422
|
- test/fixtures/fake_plan.json
|
@@ -390,6 +427,7 @@ test_files:
|
|
390
427
|
- test/fixtures/fake_refund.json
|
391
428
|
- test/fixtures/fake_refunded_payment.json
|
392
429
|
- test/fixtures/fake_revoke_token.json
|
430
|
+
- test/fixtures/fake_rto.json
|
393
431
|
- test/fixtures/fake_settlement.json
|
394
432
|
- test/fixtures/fake_settlement_on_demand.json
|
395
433
|
- test/fixtures/fake_stakeholder.json
|
@@ -417,9 +455,11 @@ test_files:
|
|
417
455
|
- test/fixtures/issue_invoice.json
|
418
456
|
- test/fixtures/item_collection.json
|
419
457
|
- test/fixtures/order_collection.json
|
458
|
+
- test/fixtures/order_error.json
|
420
459
|
- test/fixtures/order_payments.json
|
421
460
|
- test/fixtures/payment_collection.json
|
422
461
|
- test/fixtures/payment_collection_with_one_payment.json
|
462
|
+
- test/fixtures/payment_error.json
|
423
463
|
- test/fixtures/payment_link_collection.json
|
424
464
|
- test/fixtures/payment_link_response.json
|
425
465
|
- test/fixtures/payment_methods_collection.json
|
@@ -428,6 +468,7 @@ test_files:
|
|
428
468
|
- test/fixtures/qrcode_payments_collection.json
|
429
469
|
- test/fixtures/refund_collection.json
|
430
470
|
- test/fixtures/refund_collection_for_payment.json
|
471
|
+
- test/fixtures/reversals_collection.json
|
431
472
|
- test/fixtures/settlement_collection.json
|
432
473
|
- test/fixtures/settlement_instant_collection.json
|
433
474
|
- test/fixtures/settlement_report_collection.json
|
@@ -435,6 +476,7 @@ test_files:
|
|
435
476
|
- test/fixtures/subscription_collection.json
|
436
477
|
- test/fixtures/success.json
|
437
478
|
- test/fixtures/tokens_collection.json
|
479
|
+
- test/fixtures/transfer_error.json
|
438
480
|
- test/fixtures/transfer_settlements_collection.json
|
439
481
|
- test/fixtures/transfers_collection.json
|
440
482
|
- test/fixtures/update_invoice.json
|
@@ -445,6 +487,8 @@ test_files:
|
|
445
487
|
- test/razorpay/test_addon.rb
|
446
488
|
- test/razorpay/test_card.rb
|
447
489
|
- test/razorpay/test_customer.rb
|
490
|
+
- test/razorpay/test_dispute.rb
|
491
|
+
- test/razorpay/test_document.rb
|
448
492
|
- test/razorpay/test_entity.rb
|
449
493
|
- test/razorpay/test_fund_account.rb
|
450
494
|
- test/razorpay/test_iin.rb
|