recurly 4.58.0 → 4.59.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d74ffec1395f2101981161d4c237e809df86cc7107ce8a6721b3ba3f98e5fe9f
4
- data.tar.gz: 239bbfe41b4cd46e9a2ced544e1e7fe78ffaf3eafcb25acf6d31b63cde0fe071
3
+ metadata.gz: aa01a46479316edc7d1659eee1bb644658ac1b98b226a828f700f4e4604300b8
4
+ data.tar.gz: 9b940bfaaa7825fde720224a96206718612fd770edff7ce9b4a98a4b79ce3307
5
5
  SHA512:
6
- metadata.gz: 1b52c5bbb2fb3cf771add224e7a74ecf8e9cdca61ce11c088a856fc758ecae07bc3f3767477e2b940687100cfd34f4c932e5bb3933c739864701d9b7761c7bdb
7
- data.tar.gz: eb4001c518a55424eeb4cbc72e3d5f7a2c6a50d6246b8d94c51b83cb923d579af1c144746765bad3aa133391401c8fafd843e446716cde8e1242e4f03fffe7c5
6
+ metadata.gz: e3e62c1f06d5925e4ff0f729aa7c81e7753f221dacedc064da3fd18743219cd88b04d5550b64942355aa7c3bbe8309d163acfc78bca40638efc0ce1c9fc2c222
7
+ data.tar.gz: 58aba19b4411cc33dd7d556dc03413c73df4440424c7d3fcbe1b9cb2c0f8f9f529be371d9995873b6daf8bfa081188c31999f3c9cc2cf2b739684a2afd9fbafd
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 4.58.0
2
+ current_version = 4.59.0
3
3
  parse = (?P<major>\d+)
4
4
  \.(?P<minor>\d+)
5
5
  \.(?P<patch>\d+)
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.59.0](https://github.com/recurly/recurly-client-ruby/tree/4.59.0) (2025-02-26)
4
+
5
+ [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.58.0...4.59.0)
6
+
7
+
8
+ **Merged Pull Requests**
9
+
10
+ - Add `funding_source` to `BillingInfo` and `Transaction` [#921](https://github.com/recurly/recurly-client-ruby/pull/921) ([recurly-integrations](https://github.com/recurly-integrations))
11
+ - Generated Latest Changes for v2021-02-25 [#919](https://github.com/recurly/recurly-client-ruby/pull/919) ([recurly-integrations](https://github.com/recurly-integrations))
12
+
13
+
14
+
3
15
  ## [4.58.0](https://github.com/recurly/recurly-client-ruby/tree/4.58.0) (2024-12-16)
4
16
 
5
17
  [Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.57.0...4.58.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', '~> 4.58'
8
+ gem 'recurly', '~> 4.59'
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.
@@ -1698,6 +1698,7 @@ module Recurly
1698
1698
  # :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
1699
1699
  # *Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
1700
1700
  #
1701
+ # :redeemed [String] Filter unique coupon codes by redemption status. +true+ for redeemed, +false+ for not redeemed.
1701
1702
  #
1702
1703
  # @return [Pager<Resources::UniqueCouponCode>] A list of unique coupon codes that were generated
1703
1704
  #
@@ -63,7 +63,7 @@ module Recurly
63
63
  define_attribute :gateway_attributes, :GatewayAttributes
64
64
 
65
65
  # @!attribute gateway_code
66
- # @return [String] An identifier for a specific payment gateway. Must be used in conjunction with `gateway_token`.
66
+ # @return [String] An identifier for a specific payment gateway.
67
67
  define_attribute :gateway_code, String
68
68
 
69
69
  # @!attribute gateway_token
@@ -98,6 +98,10 @@ module Recurly
98
98
  # @return [String] Use for Online Banking billing info. This should only be used as part of a pending purchase request, when the billing info is nested inside an account object.
99
99
  define_attribute :online_banking_payment_type, String
100
100
 
101
+ # @!attribute payment_gateway_references
102
+ # @return [Array[PaymentGatewayReferences]] Array of Payment Gateway References, each a reference to a third-party gateway object of varying types.
103
+ define_attribute :payment_gateway_references, Array, { :item_type => :PaymentGatewayReferences }
104
+
101
105
  # @!attribute paypal_billing_agreement_id
102
106
  # @return [String] PayPal billing agreement ID
103
107
  define_attribute :paypal_billing_agreement_id, String
@@ -7,7 +7,7 @@ module Recurly
7
7
  class CouponBulkCreate < Request
8
8
 
9
9
  # @!attribute number_of_unique_codes
10
- # @return [Integer] The quantity of unique coupon codes to generate
10
+ # @return [Integer] The quantity of unique coupon codes to generate. A bulk coupon can have up to 100,000 unique codes (or your site's configured limit).
11
11
  define_attribute :number_of_unique_codes, Integer
12
12
  end
13
13
  end
@@ -0,0 +1,18 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
5
+ module Recurly
6
+ module Requests
7
+ class PaymentGatewayReferences < Request
8
+
9
+ # @!attribute reference_type
10
+ # @return [String] The type of reference token. Required if token is passed in for Stripe Gateway.
11
+ define_attribute :reference_type, String
12
+
13
+ # @!attribute token
14
+ # @return [String] Reference value used when the external token was created. If Stripe gateway is used, this value will need to be accompanied by its reference_type.
15
+ define_attribute :token, String
16
+ end
17
+ end
18
+ end
@@ -46,6 +46,10 @@ module Recurly
46
46
  # @return [String] Object type
47
47
  define_attribute :object, String
48
48
 
49
+ # @!attribute payment_gateway_references
50
+ # @return [Array[PaymentGatewayReferences]] Array of Payment Gateway References, each a reference to a third-party gateway object of varying types.
51
+ define_attribute :payment_gateway_references, Array, { :item_type => :PaymentGatewayReferences }
52
+
49
53
  # @!attribute payment_method
50
54
  # @return [PaymentMethod]
51
55
  define_attribute :payment_method, :PaymentMethod
@@ -15,7 +15,7 @@ module Recurly
15
15
  define_attribute :external_account_code, String
16
16
 
17
17
  # @!attribute external_connection_type
18
- # @return [String] Represents the connection type. `AppleAppStore` or `GooglePlayStore`
18
+ # @return [String] Represents the connection type. One of the connection types of your enabled App Connectors
19
19
  define_attribute :external_connection_type, String
20
20
 
21
21
  # @!attribute id
@@ -0,0 +1,18 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
5
+ module Recurly
6
+ module Resources
7
+ class PaymentGatewayReferences < Resource
8
+
9
+ # @!attribute reference_type
10
+ # @return [String] The type of reference token. Required if token is passed in for Stripe Gateway.
11
+ define_attribute :reference_type, String
12
+
13
+ # @!attribute token
14
+ # @return [String] Reference value used when the external token was created. If Stripe gateway is used, this value will need to be accompanied by its reference_type.
15
+ define_attribute :token, String
16
+ end
17
+ end
18
+ end
@@ -23,7 +23,7 @@ module Recurly
23
23
  define_attribute :card_type, String
24
24
 
25
25
  # @!attribute cc_bin_country
26
- # @return [String] The 2-letter ISO 3166-1 alpha-2 country code associated with the credit card BIN, if known by Recurly. Available on the BillingInfo object only. Available when the BIN country lookup feature is enabled.
26
+ # @return [String] The 2-letter ISO 3166-1 alpha-2 country code associated with the card's issuer, if known.
27
27
  define_attribute :cc_bin_country, String
28
28
 
29
29
  # @!attribute exp_month
@@ -38,6 +38,10 @@ module Recurly
38
38
  # @return [String] Credit card number's first six digits.
39
39
  define_attribute :first_six, String
40
40
 
41
+ # @!attribute funding_source
42
+ # @return [String] The funding source of the card, if known.
43
+ define_attribute :funding_source, String
44
+
41
45
  # @!attribute gateway_attributes
42
46
  # @return [GatewayAttributes] Gateway specific attributes associated with this PaymentMethod
43
47
  define_attribute :gateway_attributes, :GatewayAttributes
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "4.58.0"
2
+ VERSION = "4.59.0"
3
3
  end
data/openapi/api.yaml CHANGED
@@ -6265,8 +6265,7 @@ paths:
6265
6265
  schema:
6266
6266
  "$ref": "#/components/schemas/UniqueCouponCodeParams"
6267
6267
  '400':
6268
- description: Invalid or unpermitted parameter; perhaps you tried to generate
6269
- more than 200 codes at a time?
6268
+ description: Invalid or unpermitted parameter.
6270
6269
  content:
6271
6270
  application/json:
6272
6271
  schema:
@@ -6348,6 +6347,7 @@ paths:
6348
6347
  - "$ref": "#/components/parameters/sort_dates"
6349
6348
  - "$ref": "#/components/parameters/filter_begin_time"
6350
6349
  - "$ref": "#/components/parameters/filter_end_time"
6350
+ - "$ref": "#/components/parameters/filter_redeemed"
6351
6351
  responses:
6352
6352
  '200':
6353
6353
  description: A list of unique coupon codes that were generated
@@ -17184,6 +17184,13 @@ components:
17184
17184
  - `type=legacy`, only legacy invoices will be returned.
17185
17185
  schema:
17186
17186
  "$ref": "#/components/schemas/FilterInvoiceTypeEnum"
17187
+ filter_redeemed:
17188
+ name: redeemed
17189
+ in: query
17190
+ description: Filter unique coupon codes by redemption status. `true` for redeemed,
17191
+ `false` for not redeemed.
17192
+ schema:
17193
+ "$ref": "#/components/schemas/FilterRedeemedEnum"
17187
17194
  export_date:
17188
17195
  name: export_date
17189
17196
  in: path
@@ -18733,6 +18740,12 @@ components:
18733
18740
  description: The `backup_payment_method` field is used to indicate a billing
18734
18741
  info as a backup on the account that will be tried if the initial billing
18735
18742
  info used for an invoice is declined.
18743
+ payment_gateway_references:
18744
+ type: array
18745
+ description: Array of Payment Gateway References, each a reference to a
18746
+ third-party gateway object of varying types.
18747
+ items:
18748
+ "$ref": "#/components/schemas/PaymentGatewayReferences"
18736
18749
  created_at:
18737
18750
  type: string
18738
18751
  format: date-time
@@ -18815,9 +18828,21 @@ components:
18815
18828
  maxLength: 50
18816
18829
  gateway_code:
18817
18830
  type: string
18818
- title: An identifier for a specific payment gateway. Must be used in conjunction
18819
- with `gateway_token`.
18831
+ title: An identifier for a specific payment gateway.
18820
18832
  maxLength: 12
18833
+ payment_gateway_references:
18834
+ type: array
18835
+ description: Array of Payment Gateway References, each a reference to a
18836
+ third-party gateway object of varying types.
18837
+ items:
18838
+ "$ref": "#/components/schemas/PaymentGatewayReferences"
18839
+ properties:
18840
+ token:
18841
+ type: string
18842
+ maxLength: 50
18843
+ reference_type:
18844
+ type: string
18845
+ "$ref": "#/components/schemas/PaymentGatewayReferencesEnum"
18821
18846
  gateway_attributes:
18822
18847
  type: object
18823
18848
  description: Additional attributes to send to the gateway.
@@ -19282,9 +19307,9 @@ components:
19282
19307
  number_of_unique_codes:
19283
19308
  type: integer
19284
19309
  title: Number of unique codes
19285
- description: The quantity of unique coupon codes to generate
19310
+ description: The quantity of unique coupon codes to generate. A bulk coupon
19311
+ can have up to 100,000 unique codes (or your site's configured limit).
19286
19312
  minimum: 1
19287
- maximum: 200
19288
19313
  CouponMini:
19289
19314
  type: object
19290
19315
  properties:
@@ -21285,6 +21310,22 @@ components:
21285
21310
  - currency
21286
21311
  - unit_amount
21287
21312
  - type
21313
+ PaymentGatewayReferences:
21314
+ type: object
21315
+ title: Payment Gateway References Object
21316
+ description: Array of Payment Gateway References, each a reference to a third-party
21317
+ gateway object of varying types.
21318
+ properties:
21319
+ token:
21320
+ type: string
21321
+ title: Token
21322
+ description: Reference value used when the external token was created. If
21323
+ Stripe gateway is used, this value will need to be accompanied by its
21324
+ reference_type.
21325
+ reference_type:
21326
+ type: string
21327
+ title: Reference Type
21328
+ "$ref": "#/components/schemas/PaymentGatewayReferencesEnum"
21288
21329
  PlanMini:
21289
21330
  type: object
21290
21331
  title: Plan mini details
@@ -25273,7 +25314,8 @@ components:
25273
25314
  description: Represents the account code for the external account.
25274
25315
  external_connection_type:
25275
25316
  type: string
25276
- description: Represents the connection type. `AppleAppStore` or `GooglePlayStore`
25317
+ description: Represents the connection type. One of the connection types
25318
+ of your enabled App Connectors
25277
25319
  created_at:
25278
25320
  type: string
25279
25321
  format: date-time
@@ -25823,8 +25865,10 @@ components:
25823
25865
  cc_bin_country:
25824
25866
  type: string
25825
25867
  description: The 2-letter ISO 3166-1 alpha-2 country code associated with
25826
- the credit card BIN, if known by Recurly. Available on the BillingInfo
25827
- object only. Available when the BIN country lookup feature is enabled.
25868
+ the card's issuer, if known.
25869
+ funding_source:
25870
+ "$ref": "#/components/schemas/CardFundingSourceEnum"
25871
+ description: The funding source of the card, if known.
25828
25872
  gateway_code:
25829
25873
  type: string
25830
25874
  description: An identifier for a specific payment gateway.
@@ -26430,6 +26474,11 @@ components:
26430
26474
  - credit
26431
26475
  - legacy
26432
26476
  - non-legacy
26477
+ FilterRedeemedEnum:
26478
+ type: string
26479
+ enum:
26480
+ - true
26481
+ - false
26433
26482
  ChannelEnum:
26434
26483
  type: string
26435
26484
  enum:
@@ -26491,6 +26540,14 @@ components:
26491
26540
  enum:
26492
26541
  - email
26493
26542
  - post
26543
+ PaymentGatewayReferencesEnum:
26544
+ type: string
26545
+ description: The type of reference token. Required if token is passed in for
26546
+ Stripe Gateway.
26547
+ enum:
26548
+ - stripe_confirmation_token
26549
+ - stripe_customer
26550
+ - stripe_payment_method
26494
26551
  GatewayTransactionTypeEnum:
26495
26552
  type: string
26496
26553
  enum:
@@ -26964,6 +27021,14 @@ components:
26964
27021
  - Dankort
26965
27022
  - MasterCard
26966
27023
  - Visa
27024
+ CardFundingSourceEnum:
27025
+ type: string
27026
+ enum:
27027
+ - credit
27028
+ - debit
27029
+ - charge
27030
+ - prepaid
27031
+ - deferred_debit
26967
27032
  AccountTypeEnum:
26968
27033
  type: string
26969
27034
  enum:
data/recurly.gemspec CHANGED
@@ -29,6 +29,8 @@ Gem::Specification.new do |spec|
29
29
  # spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
+ spec.add_dependency "base64", "~> 0.2.0"
33
+
32
34
  spec.add_development_dependency "bundler", "~> 2.0"
33
35
  spec.add_development_dependency "rake", "~> 12.3.3"
34
36
  spec.add_development_dependency "rspec", "~> 3.0"
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.58.0
4
+ version: 4.59.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-16 00:00:00.000000000 Z
11
+ date: 2025-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: base64
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -199,6 +213,7 @@ files:
199
213
  - lib/recurly/requests/line_item_refund.rb
200
214
  - lib/recurly/requests/measured_unit_create.rb
201
215
  - lib/recurly/requests/measured_unit_update.rb
216
+ - lib/recurly/requests/payment_gateway_references.rb
202
217
  - lib/recurly/requests/percentage_tier.rb
203
218
  - lib/recurly/requests/percentage_tiers_by_currency.rb
204
219
  - lib/recurly/requests/plan_create.rb
@@ -300,6 +315,7 @@ files:
300
315
  - lib/recurly/resources/item_mini.rb
301
316
  - lib/recurly/resources/line_item.rb
302
317
  - lib/recurly/resources/measured_unit.rb
318
+ - lib/recurly/resources/payment_gateway_references.rb
303
319
  - lib/recurly/resources/payment_method.rb
304
320
  - lib/recurly/resources/percentage_tier.rb
305
321
  - lib/recurly/resources/percentage_tiers_by_currency.rb
@@ -361,8 +377,8 @@ metadata:
361
377
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
362
378
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
363
379
  homepage_uri: https://github.com/recurly/recurly-client-ruby
364
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.58.0
365
- post_install_message:
380
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.59.0
381
+ post_install_message:
366
382
  rdoc_options: []
367
383
  require_paths:
368
384
  - lib
@@ -378,7 +394,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
378
394
  version: '0'
379
395
  requirements: []
380
396
  rubygems_version: 3.0.3.1
381
- signing_key:
397
+ signing_key:
382
398
  specification_version: 4
383
399
  summary: The ruby client for Recurly's V3 API
384
400
  test_files: []