recurly 3.4.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +5 -1
- data/.github/workflows/docs.yml +28 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.md +107 -13
- data/GETTING_STARTED.md +61 -1
- data/README.md +1 -1
- data/lib/recurly/client.rb +126 -52
- data/lib/recurly/client/operations.rb +314 -1
- data/lib/recurly/http.rb +3 -2
- data/lib/recurly/pager.rb +31 -12
- data/lib/recurly/requests/add_on_create.rb +15 -3
- data/lib/recurly/requests/add_on_update.rb +9 -1
- data/lib/recurly/requests/billing_info_create.rb +26 -2
- data/lib/recurly/requests/external_transaction.rb +26 -0
- data/lib/recurly/requests/plan_create.rb +8 -0
- data/lib/recurly/requests/plan_update.rb +8 -0
- data/lib/recurly/requests/shipping_method_create.rb +26 -0
- data/lib/recurly/requests/shipping_method_update.rb +26 -0
- data/lib/recurly/requests/subscription_add_on_create.rb +9 -1
- data/lib/recurly/requests/subscription_add_on_tier.rb +18 -0
- data/lib/recurly/requests/subscription_add_on_update.rb +6 -2
- data/lib/recurly/requests/subscription_change_create.rb +1 -1
- data/lib/recurly/requests/tier.rb +18 -0
- data/lib/recurly/resources/add_on.rb +8 -0
- data/lib/recurly/resources/line_item.rb +1 -1
- data/lib/recurly/resources/payment_method.rb +4 -0
- data/lib/recurly/resources/plan.rb +8 -0
- data/lib/recurly/resources/shipping_method.rb +4 -0
- data/lib/recurly/resources/subscription_add_on.rb +16 -0
- data/lib/recurly/resources/subscription_add_on_tier.rb +18 -0
- data/lib/recurly/resources/subscription_change_preview.rb +74 -0
- data/lib/recurly/resources/tier.rb +18 -0
- data/lib/recurly/resources/transaction.rb +4 -0
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +5407 -2794
- data/recurly.gemspec +8 -0
- data/scripts/changelog +2 -0
- data/scripts/format +5 -1
- data/scripts/release +5 -3
- metadata +18 -4
    
        data/recurly.gemspec
    CHANGED
    
    | @@ -14,6 +14,14 @@ Gem::Specification.new do |spec| | |
| 14 14 | 
             
              spec.homepage = "https://github.com/recurly/recurly-client-ruby"
         | 
| 15 15 | 
             
              spec.license = "MIT"
         | 
| 16 16 |  | 
| 17 | 
            +
              spec.metadata = {
         | 
| 18 | 
            +
                "bug_tracker_uri" => "#{spec.homepage}/issues",
         | 
| 19 | 
            +
                "changelog_uri" => "#{spec.homepage}/blob/master/CHANGELOG.md",
         | 
| 20 | 
            +
                "documentation_uri" => "https://recurly.github.io/recurly-client-ruby/",
         | 
| 21 | 
            +
                "homepage_uri" => spec.homepage,
         | 
| 22 | 
            +
                "source_code_uri" => "#{spec.homepage}/tree/#{spec.version}",
         | 
| 23 | 
            +
              }
         | 
| 24 | 
            +
             | 
| 17 25 | 
             
              spec.files = `git ls-files -z`.split("\x0").reject do |f|
         | 
| 18 26 | 
             
                f.match(%r{^(test|spec|features)/})
         | 
| 19 27 | 
             
              end
         | 
    
        data/scripts/changelog
    CHANGED
    
    | @@ -6,6 +6,8 @@ if [ -z "$GITHUB_TOKEN" ]; then | |
| 6 6 | 
             
            else
         | 
| 7 7 | 
             
              if [ "$1" == "--pending" ]; then
         | 
| 8 8 | 
             
                github_changelog_generator -t $GITHUB_TOKEN --unreleased-only -o "$2"
         | 
| 9 | 
            +
              elif [ "$1" == "--release-tag" ]; then
         | 
| 10 | 
            +
                github_changelog_generator -t $GITHUB_TOKEN --unreleased true --unreleased-label "$2"
         | 
| 9 11 | 
             
              else
         | 
| 10 12 | 
             
                github_changelog_generator -t $GITHUB_TOKEN
         | 
| 11 13 | 
             
              fi
         | 
    
        data/scripts/format
    CHANGED
    
    | @@ -1,8 +1,12 @@ | |
| 1 1 | 
             
            #!/usr/bin/env bash
         | 
| 2 | 
            -
            set -e
         | 
| 3 2 |  | 
| 4 3 | 
             
            if [ "$1" == "--check" ]; then
         | 
| 5 4 | 
             
              ./bin/rufo . --check
         | 
| 5 | 
            +
              RESULT=$?
         | 
| 6 | 
            +
              if [ $RESULT != 0 ]; then
         | 
| 7 | 
            +
                echo "Code is not properly formatted. Please execute ./scripts/format to autoformat the code."
         | 
| 8 | 
            +
                exit $RESULT
         | 
| 9 | 
            +
              fi
         | 
| 6 10 | 
             
            else
         | 
| 7 11 | 
             
              ./bin/rufo . -x
         | 
| 8 12 | 
             
            fi
         | 
    
        data/scripts/release
    CHANGED
    
    | @@ -5,8 +5,8 @@ set -e | |
| 5 5 | 
             
            RELEASED_LOG="/tmp/ruby-pending-changes.md"
         | 
| 6 6 | 
             
            THIS_VERSION=$(./scripts/bump --this-version)
         | 
| 7 7 |  | 
| 8 | 
            -
            #  | 
| 9 | 
            -
            ./scripts/changelog
         | 
| 8 | 
            +
            # Generate the changelog with changes in this release
         | 
| 9 | 
            +
            ./scripts/changelog --release-tag "$THIS_VERSION"
         | 
| 10 10 | 
             
            git add CHANGELOG.md
         | 
| 11 11 | 
             
            git commit -m "Update Changelog for Release $THIS_VERSION"
         | 
| 12 12 | 
             
            git push origin master
         | 
| @@ -27,4 +27,6 @@ echo ":ruby: Ruby $THIS_VERSION Released :ruby:" | |
| 27 27 | 
             
            echo ":rubygems: Rubygems:  https://rubygems.org/gems/recurly/versions/$THIS_VERSION"
         | 
| 28 28 | 
             
            echo "Release: https://github.com/recurly/recurly-client-ruby/releases/tag/$THIS_VERSION"
         | 
| 29 29 | 
             
            echo "Changelog:"
         | 
| 30 | 
            -
             | 
| 30 | 
            +
            echo "\`\`\`"
         | 
| 31 | 
            +
            cat "$RELEASED_LOG"
         | 
| 32 | 
            +
            echo "\`\`\`"
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: recurly
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3. | 
| 4 | 
            +
              version: 3.8.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Recurly
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2020- | 
| 11 | 
            +
            date: 2020-07-01 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -118,6 +118,7 @@ files: | |
| 118 118 | 
             
            - ".bumpversion.cfg"
         | 
| 119 119 | 
             
            - ".github/ISSUE_TEMPLATE/bug-report.md"
         | 
| 120 120 | 
             
            - ".github/ISSUE_TEMPLATE/question-or-other.md"
         | 
| 121 | 
            +
            - ".github/workflows/docs.yml"
         | 
| 121 122 | 
             
            - ".github_changelog_generator"
         | 
| 122 123 | 
             
            - ".gitignore"
         | 
| 123 124 | 
             
            - ".rspec"
         | 
| @@ -160,6 +161,7 @@ files: | |
| 160 161 | 
             
            - lib/recurly/requests/coupon_update.rb
         | 
| 161 162 | 
             
            - lib/recurly/requests/custom_field.rb
         | 
| 162 163 | 
             
            - lib/recurly/requests/external_refund.rb
         | 
| 164 | 
            +
            - lib/recurly/requests/external_transaction.rb
         | 
| 163 165 | 
             
            - lib/recurly/requests/invoice_address.rb
         | 
| 164 166 | 
             
            - lib/recurly/requests/invoice_collect.rb
         | 
| 165 167 | 
             
            - lib/recurly/requests/invoice_create.rb
         | 
| @@ -178,8 +180,11 @@ files: | |
| 178 180 | 
             
            - lib/recurly/requests/shipping_address_create.rb
         | 
| 179 181 | 
             
            - lib/recurly/requests/shipping_address_update.rb
         | 
| 180 182 | 
             
            - lib/recurly/requests/shipping_fee_create.rb
         | 
| 183 | 
            +
            - lib/recurly/requests/shipping_method_create.rb
         | 
| 184 | 
            +
            - lib/recurly/requests/shipping_method_update.rb
         | 
| 181 185 | 
             
            - lib/recurly/requests/shipping_purchase.rb
         | 
| 182 186 | 
             
            - lib/recurly/requests/subscription_add_on_create.rb
         | 
| 187 | 
            +
            - lib/recurly/requests/subscription_add_on_tier.rb
         | 
| 183 188 | 
             
            - lib/recurly/requests/subscription_add_on_update.rb
         | 
| 184 189 | 
             
            - lib/recurly/requests/subscription_cancel.rb
         | 
| 185 190 | 
             
            - lib/recurly/requests/subscription_change_create.rb
         | 
| @@ -191,6 +196,7 @@ files: | |
| 191 196 | 
             
            - lib/recurly/requests/subscription_shipping_purchase.rb
         | 
| 192 197 | 
             
            - lib/recurly/requests/subscription_shipping_update.rb
         | 
| 193 198 | 
             
            - lib/recurly/requests/subscription_update.rb
         | 
| 199 | 
            +
            - lib/recurly/requests/tier.rb
         | 
| 194 200 | 
             
            - lib/recurly/resource.rb
         | 
| 195 201 | 
             
            - lib/recurly/resources.rb
         | 
| 196 202 | 
             
            - lib/recurly/resources/account.rb
         | 
| @@ -241,9 +247,12 @@ files: | |
| 241 247 | 
             
            - lib/recurly/resources/site.rb
         | 
| 242 248 | 
             
            - lib/recurly/resources/subscription.rb
         | 
| 243 249 | 
             
            - lib/recurly/resources/subscription_add_on.rb
         | 
| 250 | 
            +
            - lib/recurly/resources/subscription_add_on_tier.rb
         | 
| 244 251 | 
             
            - lib/recurly/resources/subscription_change.rb
         | 
| 252 | 
            +
            - lib/recurly/resources/subscription_change_preview.rb
         | 
| 245 253 | 
             
            - lib/recurly/resources/subscription_shipping.rb
         | 
| 246 254 | 
             
            - lib/recurly/resources/tax_info.rb
         | 
| 255 | 
            +
            - lib/recurly/resources/tier.rb
         | 
| 247 256 | 
             
            - lib/recurly/resources/transaction.rb
         | 
| 248 257 | 
             
            - lib/recurly/resources/transaction_error.rb
         | 
| 249 258 | 
             
            - lib/recurly/resources/transaction_payment_gateway.rb
         | 
| @@ -270,7 +279,12 @@ files: | |
| 270 279 | 
             
            homepage: https://github.com/recurly/recurly-client-ruby
         | 
| 271 280 | 
             
            licenses:
         | 
| 272 281 | 
             
            - MIT
         | 
| 273 | 
            -
            metadata: | 
| 282 | 
            +
            metadata:
         | 
| 283 | 
            +
              bug_tracker_uri: https://github.com/recurly/recurly-client-ruby/issues
         | 
| 284 | 
            +
              changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
         | 
| 285 | 
            +
              documentation_uri: https://recurly.github.io/recurly-client-ruby/
         | 
| 286 | 
            +
              homepage_uri: https://github.com/recurly/recurly-client-ruby
         | 
| 287 | 
            +
              source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.8.0
         | 
| 274 288 | 
             
            post_install_message: 
         | 
| 275 289 | 
             
            rdoc_options: []
         | 
| 276 290 | 
             
            require_paths:
         | 
| @@ -286,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 286 300 | 
             
                - !ruby/object:Gem::Version
         | 
| 287 301 | 
             
                  version: '0'
         | 
| 288 302 | 
             
            requirements: []
         | 
| 289 | 
            -
            rubygems_version: 3.0. | 
| 303 | 
            +
            rubygems_version: 3.0.3
         | 
| 290 304 | 
             
            signing_key: 
         | 
| 291 305 | 
             
            specification_version: 4
         | 
| 292 306 | 
             
            summary: The ruby client for Recurly's V3 API
         |