lib/root_insurance/api/payment.rb
# Link a payment method to a policy
#
# @param [String] policy_id The unique identifier of the policy.
# @param [String] payment_method_id The unique identifier of the payment method.
#
# @example
#   client.link_payment_method(
#     policy_id:         "128ba0c0-3f6a-4f8b-9b40-e2066b02b59e",
#     payment_method_id: "e0b7b222-772f-47ac-b08d-c7ba38aa1b25")
#
Link a payment method to a policy
Link a payment method to a policy
def link_payment_method(policy_id:, payment_method_id:)
        data = {payment_method_id: payment_method_id}
        put("policies/#{policy_id}/payment-method", data)
      end
def link_payment_method ( policy_id : , payment_method_id : ) data = { payment_method_id : payment_method_id } put ( "policies/#{policy_id}/payment-method" , data ) end
Link a payment method to a policy
Link a payment method to a policy
policy_id
<not_specific>
payment_method_id
<not_specific>
<not_specific>
payment_method_id The unique identifier of the payment method.
payment_method_id The unique identifier of the payment method .
example
None