Sha256: ce57bc747655a3308668de4f1f844721bf7149943da459d15429d44c296be9a2

Contents?: true

Size: 1.62 KB

Versions: 110

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 => "v2"
  }
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

110 entries across 110 versions & 1 rubygems

Version Path
chargebee-2.26.0 spec/sample_response.rb
chargebee-2.25.0 spec/sample_response.rb
chargebee-2.24.0 spec/sample_response.rb
chargebee-2.23.0 spec/sample_response.rb
chargebee-2.22.1 spec/sample_response.rb
chargebee-2.22.0 spec/sample_response.rb
chargebee-2.21.0 spec/sample_response.rb
chargebee-2.20.0 spec/sample_response.rb
chargebee-2.19.0 spec/sample_response.rb
chargebee-2.18.0 spec/sample_response.rb
chargebee-2.17.0 spec/sample_response.rb
chargebee-2.16.0 spec/sample_response.rb
chargebee-2.15.0 spec/sample_response.rb
chargebee-2.14.1 spec/sample_response.rb
chargebee-2.14.0 spec/sample_response.rb
chargebee-2.13.1 spec/sample_response.rb
chargebee-2.13.0 spec/sample_response.rb
chargebee-2.12.0 spec/sample_response.rb
chargebee-2.11.2 spec/sample_response.rb
chargebee-2.11.1 spec/sample_response.rb