Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Oct 19, 2014
  1. @jeremywrowe
  2. @jeremywrowe
Commits on Oct 16, 2014
  1. @jeremywrowe

    Merge pull request #92 from ruby-fu-ninja/master

    jeremywrowe authored
    Support for Chargify Allocations
Commits on Sep 25, 2014
  1. @ruby-fu-ninja
Commits on Sep 18, 2014
  1. @jeremywrowe

    update gemfile.lock

    jeremywrowe authored
  2. @jeremywrowe
Commits on Sep 12, 2014
  1. @jeremywrowe

    Merge pull request #87 from aceofsales/only-new-rubies

    jeremywrowe authored
    Travis - test against modern rubies
Commits on Sep 10, 2014
  1. @jeremywrowe

    Merge pull request #88 from aceofsales/ignore-ruby-version

    jeremywrowe authored
    Ignore .ruby-[version|gemset]
Commits on Aug 25, 2014
  1. @ryansch
Commits on Aug 22, 2014
  1. @jeremywrowe

    Merge pull request #89 from aceofsales/add-taxation

    jeremywrowe authored
    Add blank Taxation and TaxRule classes
  2. @ryansch
  3. @ryansch

    Ignore .ruby-[version|gemset]

    ryansch authored
    All ruby version managers support .ruby-version and rvm supports
    .ruby-gemset.  That should cover all the bases.
  4. @ryansch
Commits on Aug 21, 2014
  1. @jeremywrowe
Commits on Aug 20, 2014
  1. @jeremywrowe

    Merge pull request #86 from chargify/metafields

    jeremywrowe authored
    [feature] Adds metafields and metadata
  2. @jeremywrowe

    Merge pull request #40 from carsonreinke/master

    jeremywrowe authored
    Subscription Cancel With Message
  3. @jeremywrowe

    [feature] Adds metafields and metadata

    jeremywrowe authored
    * Adds CustomerMetafield and SubscriptionMetafield resources
    * Updates to activeresource 3.2.16+ for bugfixes and to allow metafield
      resources.
    
    This is a pre-release that adds customer and subscription metafield
    endpoints.
    
    Example usage:
    
    (all examples work with SubscriptionMetafield or CustomerMetafield I
    chose to show CustomerMetafield for brevity)
    
    Creating a field
    
    ```ruby
    field = CustomerMetafield.build(name: 'shoe size')
    field.on_hosted_pages = product_id_1, product_id_2
    field.on_csv_export   = false
    ```
    
    Note that build is being used here instead of create. the `on_*` methods
    are helper methods. Without them it is painful to modify the scope of
    the metafield.
    
    Updating a field
    
    ```ruby
    metafields = CustomerMetafield.all
    field      = metafields.first
    
    field.name            = "new name"
    field.on_hosted_pages = product_id_1, product_id_2, ...
    field.on_csv_export   = true
    
    field.save
    ```
    
    Deleting a field
    
    ```ruby
    metafields = CustomerMetafield.all
    field = field.first
    field.destroy
    ```
    
    Note: finding an indivdual metafield is not supported. You will have to
    either create a record or use `all` and then find the record that way.
    
    It also might surprise you if you use `create` passing the `current_name`
    attribute for an existing field it will update the record instead of
    create a new one. Please see the API documentation for further information.
    
    This adds a handful of new methods to `Chargify::Subscription`
    
    `create_metadata` - allows you to create or update a metadata object for a
    subscription. It will be saved to the server as soon as it is called.
    
    Example
    
    ```ruby
    subscription = Chargify::Subscription.find(123)
    metadata     = subscription.create_metadata(:name => 'Shirt Size', :value => 'M')
    metadata.persisted? # => true
    ```
    
    `build_metadata` - allows you to create a new metadata object for a
    subscription *without* saving it. This is useful if you want to build up
    a metadata object and do some things with your internal application
    logic and then save it later.
    
    Example
    
    ```ruby
    subscription = Chargify::Subscription.find(123)
    metadata     = subscription.build_metadata(:name => 'Shirt Size')
    
    metadata.persisted? # => false
    ...
    
    metadata.value = 'L'
    metadata.save
    ```
    
    `metadata` - fetches all of your metadata for a given subscription. (A
    collection of metadata)
    
    Example
    
    ```ruby
    subscription = Chargify::Subscription.find(123)
    data         = subscription.metadata # => [data1, data2, ... datan]
    ```
    
    Important things to note about metadata
    
    To update a piece of metadata fetch it set it's value and save it. If
    you want to change the metadata name use the `name` field to update it
    after it is fetched. You'll notice that there is a `current_name` that
    is used for internal purposes to track changes. For mor information
    about metadata [see](https://docs.chargify.com/api-metadata)
Commits on Aug 17, 2014
  1. @jeremywrowe

    add code climate badge

    jeremywrowe authored
  2. @jeremywrowe
  3. @jeremywrowe
Commits on Aug 14, 2014
  1. @jeremywrowe

    Merge pull request #82 from nickhammond/update_gemfile_source

    jeremywrowe authored
    Update Gemfile source to https://rubygems.org due to Bundler deprecation
  2. @jeremywrowe

    Merge pull request #81 from nickhammond/strip_nested_bank_account_fro…

    jeremywrowe authored
    …m_subscription_on_save
    
    Remove 'bank_account' attribute from subscription upon save
  3. @jeremywrowe

    Merge pull request #83 from nickhammond/payment_profile

    jeremywrowe authored
    Update payment_profile on subscriptions to return active payment profile
Commits on Jul 10, 2014
  1. @nickhammond
Commits on May 24, 2014
  1. @nickhammond
Commits on May 23, 2014
  1. @nickhammond
Commits on May 14, 2014
  1. @jeremywrowe

    Update HISTORY.md

    jeremywrowe authored
Commits on May 13, 2014
  1. @jeremywrowe
Commits on Apr 7, 2014
  1. @jeremywrowe

    Update README.md

    jeremywrowe authored
  2. @jeremywrowe

    Update README.md

    jeremywrowe authored
Commits on Feb 3, 2014
  1. @jeremywrowe

    bumped version to 1.0.4

    jeremywrowe authored
  2. @jeremywrowe

    Merge pull request #76 from alexisraca/missing_require_for_invoice_model

    jeremywrowe authored
    missing require for invoice model
  3. @alexisraca
Commits on Jan 23, 2014
  1. @jeremywrowe
Commits on Jan 22, 2014
  1. @jeremywrowe

    Bump to version 1.0.3

    jeremywrowe authored
Something went wrong with that request. Please try again.