Sha256: 7a019575a7c3482e2b9dd2750f681bf1f97d08d189b799c35e0365a45fc7dbf1

Contents?: true

Size: 298 Bytes

Versions: 21

Compression:

Stored size: 298 Bytes

Contents

module Zuora
  class SubscribeRequest < ZObject
    def self.create(args={})
      self.client.subscribe([self.new(args).to_zobject])
    end

    def save
      result = self.class.client.subscribe([self.to_zobject])
      self.account.id = result.accountId
      result.success
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
active_zuora-1.5.2 lib/active_zuora/subscribe_request.rb
active_zuora-1.5.1 lib/active_zuora/subscribe_request.rb
active_zuora-1.5.0 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.21 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.20 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.19 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.18 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.17 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.16 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.15 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.13 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.12 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.11 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.8 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.7 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.6 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.5 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.4 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.2 lib/active_zuora/subscribe_request.rb
active_zuora-1.4.1 lib/active_zuora/subscribe_request.rb