Sha256: 59a3ed0f8703eced290b4404b8d56ca4410259196f80247099cbf0c391806ded
Contents?: true
Size: 550 Bytes
Versions: 10
Compression:
Stored size: 550 Bytes
Contents
module Paddle class Adjustment < Object class << self def list(**params) response = Client.get_request("adjustments", params: params) Collection.from_response(response, type: Adjustment) end def create(transaction_id:, action:, reason:, items:, **params) attrs = {transaction_id: transaction_id, action: action, reason: reason, items: items} response = Client.post_request("adjustments", body: attrs.merge(params)) Adjustment.new(response.body["data"]) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems