Sha256: a7d94ddd15e9c6d20859b86d2bab51166157ab21737dff434f35d6e2a25c650d

Contents?: true

Size: 1.62 KB

Versions: 30

Compression:

Stored size: 1.62 KB

Contents

def api_index_urls()
  {
    :urls => ["http://mannar-test.localcb.com:8080/api/v1/subscriptions",
    "http://mannar-test.localcb.com:8080/api/v1/customers",
    "http://mannar-test.localcb.com:8080/api/v1/cards",
    "http://mannar-test.localcb.com:8080/api/v1/invoices",
    "http://mannar-test.localcb.com:8080/api/v1/transactions",
    "http://mannar-test.localcb.com:8080/api/v1/hosted_pages",
    "http://mannar-test.localcb.com:8080/api/v1/events"],
    :version => "v1"
  }
end

def simple_subscription
  {
    :subscription => {
      :id => 'simple_subscription',
      :plan_id => 'basic'
    },
    :customer => {
      :first_name => 'simple',
      :last_name => 'subscription'
    }
  }
end

def nested_subscription
  {
    :subscription => {
      :id => 'nested_subscription',
      :plan_id => 'basic',
      :addons => [
        {:id => 'monitor', :quantity => '10'},
        {:id => 'ssl'}
        ]
    }
  }
end

def test_subscription
  {
    :subscription => {
      :id => "sample_subscription",
      :plan_id => "basic"
      }
  }
end

def list_subscriptions()
  {:list => [test_subscription, test_subscription]}
end

def sample_event()
  {:event => {
      :id => 'ev_KyVqDX__dev__NTgtUgx1',
      :occurred_at => 1325356232,
      :event_type => "payment_collected",
      :webhook_status => "succeeded",
      :content => {
          :subscription => {
              :id => 'sample_subscription',
              :plan_id => 'basic',
              :plan_quantity=> 1,
          },
          :customer => {
              :first_name => "Sample",
              :last_name => "Subscription",
          },
      }
    }
  }
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
chargebee-1.7.5 spec/sample_response.rb
chargebee-1.7.4 spec/sample_response.rb
chargebee-1.7.3 spec/sample_response.rb
chargebee-1.7.2 spec/sample_response.rb
chargebee-1.7.1 spec/sample_response.rb
chargebee-1.7.0 spec/sample_response.rb
chargebee-1.6.9 spec/sample_response.rb
chargebee-1.6.8 spec/sample_response.rb
chargebee-1.6.7 spec/sample_response.rb
chargebee-1.6.6 spec/sample_response.rb
chargebee-1.6.5 spec/sample_response.rb
chargebee-1.6.4 spec/sample_response.rb
chargebee-1.6.3 spec/sample_response.rb
chargebee-1.6.2 spec/sample_response.rb
chargebee-1.6.1 spec/sample_response.rb
chargebee-1.6.0 spec/sample_response.rb
chargebee-1.5.9 spec/sample_response.rb
chargebee-1.5.8 spec/sample_response.rb
chargebee-1.5.7 spec/sample_response.rb
chargebee-1.5.6 spec/sample_response.rb