recurly 3.21.0 → 3.22.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9218a6c207426f02771031f66b2f5def8e22805b4dd7e0d565909a943404bff
4
- data.tar.gz: 3269a3003e8446cabf915d742a554eb94af0f3e6fe5511de6f602b6adf41e287
3
+ metadata.gz: 66774f5d5a08c4cd26758c2dd4c073c8b9515129caf340a76756f3f5ed55e712
4
+ data.tar.gz: 529eec421b40a5c80bd143338786871325deeb19a9818aaca8bd1e673075461f
5
5
  SHA512:
6
- metadata.gz: f0dfe2d431ebbcacc24aa32c9bed1477e0ecec23235c6ed63bcfd94a2640508da40d635b30b205515c88f14d4f51f7b2e00a39f0c0fb6d36bab56730285885b5
7
- data.tar.gz: 0b76576ac5143019670a2c69320c801ac7c47df22661b703ee393313dbac7a3b542c46e2ff5dbfb0a9a04136f0389ab934957b0d9e3427838c60ffe6b44dd5ba
6
+ metadata.gz: d90a2cb844beef990fb9537c1e6e294a0868bab10854ebaf45151b552ed6025a79423b687ad24844ff10af555a181b46b0d6496e7ecedaa227aac6b8570fd4c7
7
+ data.tar.gz: 9a2e29e819378925cf72c9d4959fa02b9120e02af32c7f45f054cce93b827b5796e13784288ead5694514047b479eb39cb3ce5444ac7511de117cb3de18bd5d1
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 3.21.0
2
+ current_version = 3.22.0
3
3
  parse = (?P<major>\d+)
4
4
  \.(?P<minor>\d+)
5
5
  \.(?P<patch>\d+)
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.22.0](https://github.com/recurly/recurly-client-ruby/tree/3.22.0) (2022-10-21)
4
+
5
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.21.0...3.22.0)
6
+
7
+
8
+ **Merged Pull Requests**
9
+
10
+ - Generated Latest Changes for v2019-10-10(Decimal Usage and Quantities) [#800](https://github.com/recurly/recurly-client-ruby/pull/800) ([recurly-integrations](https://github.com/recurly-integrations))
11
+
12
+
13
+
3
14
  ## [3.21.0](https://github.com/recurly/recurly-client-ruby/tree/3.21.0) (2022-08-03)
4
15
 
5
16
  [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.20.0...3.21.0)
data/GETTING_STARTED.md CHANGED
@@ -5,7 +5,7 @@ This repository houses the official ruby client for Recurly's V3 API.
5
5
  In your Gemfile, add `recurly` as a dependency.
6
6
 
7
7
  ```ruby
8
- gem 'recurly', '~> 3.21'
8
+ gem 'recurly', '~> 3.22'
9
9
  ```
10
10
 
11
11
  > *Note*: We try to follow [semantic versioning](https://semver.org/) and will only apply breaking changes to major versions.
@@ -3841,12 +3841,13 @@ module Recurly
3841
3841
  #
3842
3842
  # {https://developers.recurly.com/api/v2019-10-10#operation/put_dunning_campaign_bulk_update put_dunning_campaign_bulk_update api documentation}
3843
3843
  #
3844
+ # @param dunning_campaign_id [String] Dunning Campaign ID, e.g. +e28zov4fw0v2+.
3844
3845
  # @param body [Requests::DunningCampaignsBulkUpdate] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::DunningCampaignsBulkUpdate}
3845
3846
  #
3846
3847
  # @return [Resources::DunningCampaignsBulkUpdateResponse] A list of updated plans.
3847
3848
  #
3848
- def put_dunning_campaign_bulk_update(body:)
3849
- path = "/dunning_campaigns/{dunning_campaign_id}/bulk_update"
3849
+ def put_dunning_campaign_bulk_update(dunning_campaign_id:, body:)
3850
+ path = interpolate_path("/dunning_campaigns/{dunning_campaign_id}/bulk_update", dunning_campaign_id: dunning_campaign_id)
3850
3851
  put(path, body, Requests::DunningCampaignsBulkUpdate)
3851
3852
  end
3852
3853
  end
@@ -17,6 +17,10 @@ module Recurly
17
17
  # @!attribute quantity
18
18
  # @return [Integer] Line item quantity to be refunded.
19
19
  define_attribute :quantity, Integer
20
+
21
+ # @!attribute quantity_decimal
22
+ # @return [String] A floating-point alternative to Quantity. If this value is present, it will be used in place of Quantity for calculations, and Quantity will be the rounded integer value of this number. This field supports up to 9 decimal places. The Decimal Quantity feature must be enabled to utilize this field.
23
+ define_attribute :quantity_decimal, String
20
24
  end
21
25
  end
22
26
  end
@@ -11,7 +11,7 @@ module Recurly
11
11
  define_attribute :currencies, Array, { :item_type => :PlanRampPricing }
12
12
 
13
13
  # @!attribute starting_billing_cycle
14
- # @return [Integer] Represents the first billing cycle of a ramp.
14
+ # @return [Integer] Represents the billing cycle where a ramp interval starts.
15
15
  define_attribute :starting_billing_cycle, Integer
16
16
  end
17
17
  end
@@ -7,7 +7,7 @@ module Recurly
7
7
  class SubscriptionRampInterval < Request
8
8
 
9
9
  # @!attribute starting_billing_cycle
10
- # @return [Integer] Represents how many billing cycles are included in a ramp interval.
10
+ # @return [Integer] Represents the billing cycle where a ramp interval starts.
11
11
  define_attribute :starting_billing_cycle, Integer
12
12
 
13
13
  # @!attribute unit_amount
@@ -7,7 +7,7 @@ module Recurly
7
7
  class UsageCreate < Request
8
8
 
9
9
  # @!attribute amount
10
- # @return [Float] The amount of usage. Can be positive, negative, or 0. No decimals allowed, we will strip them. If the usage-based add-on is billed with a percentage, your usage will be a monetary amount you will want to format in cents. (e.g., $5.00 is "500").
10
+ # @return [Float] The amount of usage. Can be positive, negative, or 0. If the Decimal Quantity feature is enabled, this value will be rounded to nine decimal places. Otherwise, all digits after the decimal will be stripped. If the usage-based add-on is billed with a percentage, your usage should be a monetary amount formatted in cents (e.g., $5.00 is "500").
11
11
  define_attribute :amount, Float
12
12
 
13
13
  # @!attribute merchant_tag
@@ -130,6 +130,10 @@ module Recurly
130
130
  # @return [Integer] This number will be multiplied by the unit amount to compute the subtotal before any discounts or taxes.
131
131
  define_attribute :quantity, Integer
132
132
 
133
+ # @!attribute quantity_decimal
134
+ # @return [String] A floating-point alternative to Quantity. If this value is present, it will be used in place of Quantity for calculations, and Quantity will be the rounded integer value of this number. This field supports up to 9 decimal places. The Decimal Quantity feature must be enabled to utilize this field.
135
+ define_attribute :quantity_decimal, String
136
+
133
137
  # @!attribute refund
134
138
  # @return [Boolean] Refund?
135
139
  define_attribute :refund, :Boolean
@@ -138,6 +142,10 @@ module Recurly
138
142
  # @return [Integer] For refund charges, the quantity being refunded. For non-refund charges, the total quantity refunded (possibly over multiple refunds).
139
143
  define_attribute :refunded_quantity, Integer
140
144
 
145
+ # @!attribute refunded_quantity_decimal
146
+ # @return [String] A floating-point alternative to Refunded Quantity. For refund charges, the quantity being refunded. For non-refund charges, the total quantity refunded (possibly over multiple refunds). The Decimal Quantity feature must be enabled to utilize this field.
147
+ define_attribute :refunded_quantity_decimal, String
148
+
141
149
  # @!attribute revenue_schedule_type
142
150
  # @return [String] Revenue schedule type
143
151
  define_attribute :revenue_schedule_type, String
@@ -11,7 +11,7 @@ module Recurly
11
11
  define_attribute :currencies, Array, { :item_type => :PlanRampPricing }
12
12
 
13
13
  # @!attribute starting_billing_cycle
14
- # @return [Integer] Represents the first billing cycle of a ramp.
14
+ # @return [Integer] Represents the billing cycle where a ramp interval starts.
15
15
  define_attribute :starting_billing_cycle, Integer
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module Recurly
11
11
  define_attribute :remaining_billing_cycles, Integer
12
12
 
13
13
  # @!attribute starting_billing_cycle
14
- # @return [Integer] Represents how many billing cycles are included in a ramp interval.
14
+ # @return [Integer] Represents the billing cycle where a ramp interval starts.
15
15
  define_attribute :starting_billing_cycle, Integer
16
16
 
17
17
  # @!attribute unit_amount
@@ -7,7 +7,7 @@ module Recurly
7
7
  class Usage < Resource
8
8
 
9
9
  # @!attribute amount
10
- # @return [Float] The amount of usage. Can be positive, negative, or 0. No decimals allowed, we will strip them. If the usage-based add-on is billed with a percentage, your usage will be a monetary amount you will want to format in cents. (e.g., $5.00 is "500").
10
+ # @return [Float] The amount of usage. Can be positive, negative, or 0. If the Decimal Quantity feature is enabled, this value will be rounded to nine decimal places. Otherwise, all digits after the decimal will be stripped. If the usage-based add-on is billed with a percentage, your usage should be a monetary amount formatted in cents (e.g., $5.00 is "500").
11
11
  define_attribute :amount, Float
12
12
 
13
13
  # @!attribute billed_at
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "3.21.0"
2
+ VERSION = "3.22.0"
3
3
  end
data/openapi/api.yaml CHANGED
@@ -14463,6 +14463,8 @@ paths:
14463
14463
  "$ref": "#/components/schemas/Error"
14464
14464
  x-code-samples: []
14465
14465
  "/dunning_campaigns/{dunning_campaign_id}/bulk_update":
14466
+ parameters:
14467
+ - "$ref": "#/components/parameters/dunning_campaign_id"
14466
14468
  put:
14467
14469
  tags:
14468
14470
  - dunning_campaigns
@@ -18423,6 +18425,14 @@ components:
18423
18425
  description: This number will be multiplied by the unit amount to compute
18424
18426
  the subtotal before any discounts or taxes.
18425
18427
  default: 1
18428
+ quantity_decimal:
18429
+ type: string
18430
+ title: Quantity Decimal
18431
+ description: A floating-point alternative to Quantity. If this value is
18432
+ present, it will be used in place of Quantity for calculations, and Quantity
18433
+ will be the rounded integer value of this number. This field supports
18434
+ up to 9 decimal places. The Decimal Quantity feature must be enabled to
18435
+ utilize this field.
18426
18436
  unit_amount:
18427
18437
  type: number
18428
18438
  format: float
@@ -18503,6 +18513,13 @@ components:
18503
18513
  title: Refunded Quantity
18504
18514
  description: For refund charges, the quantity being refunded. For non-refund
18505
18515
  charges, the total quantity refunded (possibly over multiple refunds).
18516
+ refunded_quantity_decimal:
18517
+ type: string
18518
+ title: Refunded Quantity Decimal
18519
+ description: A floating-point alternative to Refunded Quantity. For refund
18520
+ charges, the quantity being refunded. For non-refund charges, the total
18521
+ quantity refunded (possibly over multiple refunds). The Decimal Quantity
18522
+ feature must be enabled to utilize this field.
18506
18523
  credit_applied:
18507
18524
  type: number
18508
18525
  format: float
@@ -18544,6 +18561,14 @@ components:
18544
18561
  type: integer
18545
18562
  title: Quantity
18546
18563
  description: Line item quantity to be refunded.
18564
+ quantity_decimal:
18565
+ type: string
18566
+ title: Quantity Decimal
18567
+ description: A floating-point alternative to Quantity. If this value is
18568
+ present, it will be used in place of Quantity for calculations, and Quantity
18569
+ will be the rounded integer value of this number. This field supports
18570
+ up to 9 decimal places. The Decimal Quantity feature must be enabled to
18571
+ utilize this field.
18547
18572
  prorate:
18548
18573
  type: boolean
18549
18574
  title: Prorate
@@ -19335,7 +19360,7 @@ components:
19335
19360
  properties:
19336
19361
  starting_billing_cycle:
19337
19362
  type: integer
19338
- description: Represents the first billing cycle of a ramp.
19363
+ description: Represents the billing cycle where a ramp interval starts.
19339
19364
  default: 1
19340
19365
  currencies:
19341
19366
  type: array
@@ -21093,7 +21118,7 @@ components:
21093
21118
  properties:
21094
21119
  starting_billing_cycle:
21095
21120
  type: integer
21096
- description: Represents how many billing cycles are included in a ramp interval.
21121
+ description: Represents the billing cycle where a ramp interval starts.
21097
21122
  default: 1
21098
21123
  unit_amount:
21099
21124
  type: integer
@@ -21104,7 +21129,7 @@ components:
21104
21129
  properties:
21105
21130
  starting_billing_cycle:
21106
21131
  type: integer
21107
- description: Represents how many billing cycles are included in a ramp interval.
21132
+ description: Represents the billing cycle where a ramp interval starts.
21108
21133
  remaining_billing_cycles:
21109
21134
  type: integer
21110
21135
  description: Represents how many billing cycles are left in a ramp interval.
@@ -21533,10 +21558,11 @@ components:
21533
21558
  amount:
21534
21559
  type: number
21535
21560
  format: float
21536
- description: The amount of usage. Can be positive, negative, or 0. No decimals
21537
- allowed, we will strip them. If the usage-based add-on is billed with
21538
- a percentage, your usage will be a monetary amount you will want to format
21539
- in cents. (e.g., $5.00 is "500").
21561
+ description: The amount of usage. Can be positive, negative, or 0. If the
21562
+ Decimal Quantity feature is enabled, this value will be rounded to nine
21563
+ decimal places. Otherwise, all digits after the decimal will be stripped.
21564
+ If the usage-based add-on is billed with a percentage, your usage should
21565
+ be a monetary amount formatted in cents (e.g., $5.00 is "500").
21540
21566
  usage_type:
21541
21567
  type: string
21542
21568
  enum:
@@ -21609,10 +21635,11 @@ components:
21609
21635
  amount:
21610
21636
  type: number
21611
21637
  format: float
21612
- description: The amount of usage. Can be positive, negative, or 0. No decimals
21613
- allowed, we will strip them. If the usage-based add-on is billed with
21614
- a percentage, your usage will be a monetary amount you will want to format
21615
- in cents. (e.g., $5.00 is "500").
21638
+ description: The amount of usage. Can be positive, negative, or 0. If the
21639
+ Decimal Quantity feature is enabled, this value will be rounded to nine
21640
+ decimal places. Otherwise, all digits after the decimal will be stripped.
21641
+ If the usage-based add-on is billed with a percentage, your usage should
21642
+ be a monetary amount formatted in cents (e.g., $5.00 is "500").
21616
21643
  recording_timestamp:
21617
21644
  type: string
21618
21645
  format: date-time
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.21.0
4
+ version: 3.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -306,7 +306,7 @@ metadata:
306
306
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
307
307
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
308
308
  homepage_uri: https://github.com/recurly/recurly-client-ruby
309
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.21.0
309
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.22.0
310
310
  post_install_message:
311
311
  rdoc_options: []
312
312
  require_paths: