Method: Ibanity::PontoConnect::Payment.create
- Defined in:
- lib/ibanity/api/ponto_connect/payment.rb
.create(account_id:, access_token: nil, **attributes) ⇒ Object
9 10 11 12 |
# File 'lib/ibanity/api/ponto_connect/payment.rb', line 9 def self.create(account_id:, access_token: nil, **attributes) uri = Ibanity.ponto_connect_api_schema["account"]["payments"].gsub("{accountId}", account_id).gsub("{paymentId}", "") create_by_uri(uri: uri, resource_type: "payment", attributes: attributes, customer_access_token: access_token) end |