lib/paysafe/api/payments_api.rb in paysafe-0.10.0 vs lib/paysafe/api/payments_api.rb in paysafe-0.11.0
- old
+ new
@@ -8,11 +8,19 @@
def create_payment(**data)
perform_post_with_object("/paymenthub/v1/payments", data, Payment)
end
+ def create_standalone_credit(**data)
+ perform_post_with_object("/paymenthub/v1/standalonecredits", data, StandaloneCredit)
+ end
+
def get_payment(id:)
perform_get_with_object("/paymenthub/v1/payments/#{id}", Payment)
+ end
+
+ def get_standalone_credit(id:)
+ perform_get_with_object("/paymenthub/v1/standalonecredits/#{id}", StandaloneCredit)
end
end
end
end