lib/paddle/classic/resource.rb in paddle-2.2.0 vs lib/paddle/classic/resource.rb in paddle-2.2.1
- old
+ new
@@ -12,10 +12,10 @@
# def get_request(url, params: {}, headers: {})
# handle_response client.connection.get(url, params, headers)
# end
def post_request(url, body: {}, headers: {})
- attrs = {vendor_id: client.vendor_id, vendor_auth_code: client.vendor_auth_code}
+ attrs = { vendor_id: client.vendor_id, vendor_auth_code: client.vendor_auth_code }
handle_response client.connection.post(url, attrs.merge(body), headers)
end
# def patch_request(url, body:, headers: {})
# handle_response client.connection.patch(url, body, headers)