Skip to content

Commit

Permalink
Generated Latest Changes for v2019-10-10
Browse files Browse the repository at this point in the history
  • Loading branch information
Recurly Integrations authored Mar 19, 2024
1 parent e4db4a8 commit f4cdcea
Show file tree
Hide file tree
Showing 14 changed files with 127 additions and 10 deletions.
3 changes: 3 additions & 0 deletions lib/recurly/client/operations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@ def list_account_credit_payments(account_id:, **options)
# * Records are returned in an arbitrary order. Since results are all
# returned at once you can sort the records yourself.
#
# @param state [String] Invoice state.
# @param limit [Integer] Limit number of records 1-200.
# @param order [String] Sort order.
# @param sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
Expand Down Expand Up @@ -1952,6 +1953,7 @@ def remove_measured_unit(measured_unit_id:, **options)
# * Records are returned in an arbitrary order. Since results are all
# returned at once you can sort the records yourself.
#
# @param state [String] Invoice state.
# @param limit [Integer] Limit number of records 1-200.
# @param order [String] Sort order.
# @param sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
Expand Down Expand Up @@ -3367,6 +3369,7 @@ def preview_subscription_change(subscription_id:, body:, **options)
# * Records are returned in an arbitrary order. Since results are all
# returned at once you can sort the records yourself.
#
# @param state [String] Invoice state.
# @param limit [Integer] Limit number of records 1-200.
# @param order [String] Sort order.
# @param sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/requests/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class Address < Request
# @return [String] First name
define_attribute :first_name, String

# @!attribute geo_code
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
define_attribute :geo_code, String

# @!attribute last_name
# @return [String] Last name
define_attribute :last_name, String
Expand Down
8 changes: 8 additions & 0 deletions lib/recurly/requests/billing_info_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class BillingInfoCreate < Request
# @return [Boolean] The `backup_payment_method` field is used to designate a billing info as a backup on the account that will be tried if the initial billing info used for an invoice is declined. All payment methods, including the billing info marked `primary_payment_method` can be set as a backup. An account can have a maximum of 1 backup, if a user sets a different payment method as a backup, the existing backup will no longer be marked as such.
define_attribute :backup_payment_method, :Boolean

# @!attribute card_network_preference
# @return [String] Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.
define_attribute :card_network_preference, String

# @!attribute company
# @return [String] Company name
define_attribute :company, String
Expand Down Expand Up @@ -90,6 +94,10 @@ class BillingInfoCreate < Request
# @return [Boolean] The `primary_payment_method` field is used to designate the primary billing info on the account. The first billing info created on an account will always become primary. Adding additional billing infos provides the flexibility to mark another billing info as primary, or adding additional non-primary billing infos. This can be accomplished by passing the `primary_payment_method` with a value of `true`. When adding billing infos via the billing_info and /accounts endpoints, this value is not permitted, and will return an error if provided.
define_attribute :primary_payment_method, :Boolean

# @!attribute roku_billing_agreement_id
# @return [String] Roku's CIB if billing through Roku
define_attribute :roku_billing_agreement_id, String

# @!attribute routing_number
# @return [String] The bank's rounting number. (ACH only)
define_attribute :routing_number, String
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/requests/gateway_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Requests
class GatewayAttributes < Request

# @!attribute account_reference
# @return [String] Used by Adyen gateways. The Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code.
# @return [String] Used by Adyen and Braintree gateways. For Adyen The Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code. For Braintree the PayPal PayerID is populated in the response.
define_attribute :account_reference, String
end
end
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/requests/invoice_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class InvoiceAddress < Request
# @return [String] First name
define_attribute :first_name, String

# @!attribute geo_code
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
define_attribute :geo_code, String

# @!attribute last_name
# @return [String] Last name
define_attribute :last_name, String
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/requests/shipping_address_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class ShippingAddressCreate < Request
# @return [String]
define_attribute :first_name, String

# @!attribute geo_code
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
define_attribute :geo_code, String

# @!attribute last_name
# @return [String]
define_attribute :last_name, String
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/requests/shipping_address_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class ShippingAddressUpdate < Request
# @return [String]
define_attribute :first_name, String

# @!attribute geo_code
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
define_attribute :geo_code, String

# @!attribute id
# @return [String] Shipping Address ID
define_attribute :id, String
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/resources/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class Address < Resource
# @return [String] First name
define_attribute :first_name, String

# @!attribute geo_code
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
define_attribute :geo_code, String

# @!attribute last_name
# @return [String] Last name
define_attribute :last_name, String
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/gateway_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Resources
class GatewayAttributes < Resource

# @!attribute account_reference
# @return [String] Used by Adyen gateways. The Shopper Reference value used when the external token was created.
# @return [String] Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the external token was created. For Braintree the PayPal PayerID is populated in the response.
define_attribute :account_reference, String
end
end
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/resources/invoice_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class InvoiceAddress < Resource
# @return [String] First name
define_attribute :first_name, String

# @!attribute geo_code
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
define_attribute :geo_code, String

# @!attribute last_name
# @return [String] Last name
define_attribute :last_name, String
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/resources/payment_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class PaymentMethod < Resource
# @return [String] Billing Agreement identifier. Only present for Amazon or Paypal payment methods.
define_attribute :billing_agreement_id, String

# @!attribute card_network_preference
# @return [String] Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.
define_attribute :card_network_preference, String

# @!attribute card_type
# @return [String] Visa, MasterCard, American Express, Discover, JCB, etc.
define_attribute :card_type, String
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/resources/shipping_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class ShippingAddress < Resource
# @return [String]
define_attribute :first_name, String

# @!attribute geo_code
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
define_attribute :geo_code, String

# @!attribute id
# @return [String] Shipping Address ID
define_attribute :id, String
Expand Down
8 changes: 8 additions & 0 deletions lib/recurly/resources/subscription_ramp_interval_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ module Recurly
module Resources
class SubscriptionRampIntervalResponse < Resource

# @!attribute ending_on
# @return [DateTime] Date the ramp interval ends
define_attribute :ending_on, DateTime

# @!attribute remaining_billing_cycles
# @return [Integer] Represents how many billing cycles are left in a ramp interval.
define_attribute :remaining_billing_cycles, Integer
Expand All @@ -14,6 +18,10 @@ class SubscriptionRampIntervalResponse < Resource
# @return [Integer] Represents the billing cycle where a ramp interval starts.
define_attribute :starting_billing_cycle, Integer

# @!attribute starting_on
# @return [DateTime] Date the ramp interval starts
define_attribute :starting_on, DateTime

# @!attribute unit_amount
# @return [Integer] Represents the price for the ramp interval.
define_attribute :unit_amount, Integer
Expand Down
82 changes: 74 additions & 8 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ paths:
Alabama St.\"),\n\t\t\tCity: recurly.String(\"San Francisco\"),\n\t\t\tPostalCode:
recurly.String(\"94110\"),\n\t\t\tCountry: recurly.String(\"US\"),\n\t\t\tRegion:
\ recurly.String(\"CA\"),\n\t\t},\n\t\tNumber: recurly.String(\"4111111111111111\"),\n\t\tMonth:
\ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"22\"),\n\t\tCvv:
\ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"30\"),\n\t\tCvv:
\ recurly.String(\"123\"),\n\t},\n}\n\naccount, err := client.CreateAccount(accountReq)\nif
e, ok := err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation
{\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
Expand Down Expand Up @@ -3195,6 +3195,7 @@ paths:
- "$ref": "#/components/parameters/site_id"
- "$ref": "#/components/parameters/account_id"
- "$ref": "#/components/parameters/ids"
- "$ref": "#/components/parameters/invoice_state"
- "$ref": "#/components/parameters/limit"
- "$ref": "#/components/parameters/order"
- "$ref": "#/components/parameters/sort_dates"
Expand Down Expand Up @@ -7394,6 +7395,7 @@ paths:
parameters:
- "$ref": "#/components/parameters/site_id"
- "$ref": "#/components/parameters/ids"
- "$ref": "#/components/parameters/invoice_state"
- "$ref": "#/components/parameters/limit"
- "$ref": "#/components/parameters/order"
- "$ref": "#/components/parameters/sort_dates"
Expand Down Expand Up @@ -7888,8 +7890,6 @@ paths:
summary: Apply available credit to a pending or past due charge invoice
description: Apply credit payment to the outstanding balance on an existing
charge invoice from an account’s available balance from existing credit invoices.
Credit that was refunded from the invoice cannot be applied back to the invoice
as payment.
parameters:
- "$ref": "#/components/parameters/site_id"
- "$ref": "#/components/parameters/invoice_id"
Expand Down Expand Up @@ -13059,6 +13059,7 @@ paths:
- "$ref": "#/components/parameters/site_id"
- "$ref": "#/components/parameters/subscription_id"
- "$ref": "#/components/parameters/ids"
- "$ref": "#/components/parameters/invoice_state"
- "$ref": "#/components/parameters/limit"
- "$ref": "#/components/parameters/order"
- "$ref": "#/components/parameters/sort_dates"
Expand Down Expand Up @@ -14724,6 +14725,18 @@ components:
required: true
schema:
type: string
invoice_state:
name: state
in: query
description: Invoice state.
schema:
type: string
default: all
enum:
- pending
- past_due
- paid
- failed
measured_unit_id:
name: measured_unit_id
in: path
Expand Down Expand Up @@ -15932,6 +15945,11 @@ components:
type: string
title: Country
description: Country, 2-letter ISO 3166-1 alpha-2 code.
geo_code:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
AddOnMini:
type: object
title: Add-on mini details
Expand Down Expand Up @@ -16652,16 +16670,30 @@ components:
properties:
account_reference:
type: string
description: Used by Adyen gateways. The Shopper Reference value used
when the external token was created. Must be used in conjunction with
gateway_token and gateway_code.
description: Used by Adyen and Braintree gateways. For Adyen The Shopper
Reference value used when the external token was created. Must be
used in conjunction with gateway_token and gateway_code. For Braintree
the PayPal PayerID is populated in the response.
maxLength: 264
card_network_preference:
type: string
description: Represents the card network preference associated with the
billing info for dual badged cards. Must be a supported card network.
enum:
- Bancontact
- CartesBancaires
- Dankort
- MasterCard
- Visa
amazon_billing_agreement_id:
type: string
title: Amazon billing agreement ID
paypal_billing_agreement_id:
type: string
title: PayPal billing agreement ID
roku_billing_agreement_id:
type: string
title: Roku's CIB if billing through Roku
fraud_session_id:
type: string
title: Fraud Session ID
Expand Down Expand Up @@ -19734,6 +19766,11 @@ components:
type: string
maxLength: 50
description: Country, 2-letter ISO 3166-1 alpha-2 code.
geo_code:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
created_at:
type: string
title: Created at
Expand Down Expand Up @@ -19789,6 +19826,11 @@ components:
type: string
maxLength: 50
description: Country, 2-letter ISO 3166-1 alpha-2 code.
geo_code:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
required:
- first_name
- last_name
Expand Down Expand Up @@ -20039,6 +20081,11 @@ components:
type: string
maxLength: 50
description: Country, 2-letter ISO 3166-1 alpha-2 code.
geo_code:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
Site:
type: object
properties:
Expand Down Expand Up @@ -21334,6 +21381,14 @@ components:
remaining_billing_cycles:
type: integer
description: Represents how many billing cycles are left in a ramp interval.
starting_on:
type: string
format: date-time
title: Date the ramp interval starts
ending_on:
type: string
format: date-time
title: Date the ramp interval ends
unit_amount:
type: integer
description: Represents the price for the ramp interval.
Expand Down Expand Up @@ -22275,9 +22330,20 @@ components:
properties:
account_reference:
type: string
description: Used by Adyen gateways. The Shopper Reference value used
when the external token was created.
description: Used by Adyen and Braintree gateways. For Adyen the Shopper
Reference value used when the external token was created. For Braintree
the PayPal PayerID is populated in the response.
maxLength: 264
card_network_preference:
type: string
description: Represents the card network preference associated with the
billing info for dual badged cards. Must be a supported card network.
enum:
- Bancontact
- CartesBancaires
- Dankort
- MasterCard
- Visa
billing_agreement_id:
type: string
description: Billing Agreement identifier. Only present for Amazon or Paypal
Expand Down

0 comments on commit f4cdcea

Please sign in to comment.