Sha256: 6f36f462a6b895d36c5364cc2cc096d0e546c64b06d88e8fa712ea629821d4c0
Contents?: true
Size: 795 Bytes
Versions: 1
Compression:
Stored size: 795 Bytes
Contents
module EasyPayULatam module RApi class Subscription < Request attr_reader :url, :plan, :customer, :card attr_accessor :resource, :params def initialize(customer) @customer = customer @customer = customer.response if !customer.nil? # @callback_url = callback_url @params = {} return if @customer.nil? # load("") end def invoice_url @url = RApi.base_url + "/rest/v4.9/recurringBill?customerId=#{@customer['id']}" end def url @url = RApi.base_url + '/rest/v4.9/subscriptions/' end def create! url super end def load(id) invoice_url super end def delete(id) url super end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_pay_u_latam-0.1.23 | lib/easy_pay_u_latam/r_api/subscription.rb |