Sha256: be7bedbbb5818990ad990a852d1369d74061dd39b71f1604b3425c38ffd14761

Contents?: true

Size: 1.87 KB

Versions: 36

Compression:

Stored size: 1.87 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 headers 
  {
    :cache_control=>"no-store, no-cache, must-revalidate",
    :pragma=>"no-cache", 
    :content_type=>"application/json;charset=utf-8", 
    :content_length=>"986", 
    :date=>"Tue, 16 May 2023 08:12:00 GMT", 
    :server=>"ChargeBee"
  }
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

36 entries across 36 versions & 1 rubygems

Version Path
chargebee-2.51.1 spec/sample_response.rb
chargebee-2.51.0 spec/sample_response.rb
chargebee-2.50.1 spec/sample_response.rb
chargebee-2.50.0 spec/sample_response.rb
chargebee-2.49.0 spec/sample_response.rb
chargebee-2.48.0 spec/sample_response.rb
chargebee-2.47.1 spec/sample_response.rb
chargebee-2.47.0 spec/sample_response.rb
chargebee-2.47.0.beta.1 spec/sample_response.rb
chargebee-2.46.0 spec/sample_response.rb
chargebee-2.45.0 spec/sample_response.rb
chargebee-2.44.1 spec/sample_response.rb
chargebee-2.44.0 spec/sample_response.rb
chargebee-2.43.0 spec/sample_response.rb
chargebee-2.42.0 spec/sample_response.rb
chargebee-2.41.0 spec/sample_response.rb
chargebee-2.40.0 spec/sample_response.rb
chargebee-2.38.1 spec/sample_response.rb
chargebee-2.38.0 spec/sample_response.rb
chargebee-2.37.1 spec/sample_response.rb