recurly 4.9.0 → 4.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.bumpversion.cfg +1 -1
  3. data/.travis.yml +3 -1
  4. data/CHANGELOG.md +50 -0
  5. data/GETTING_STARTED.md +9 -1
  6. data/lib/recurly/client/operations.rb +46 -3
  7. data/lib/recurly/client.rb +24 -4
  8. data/lib/recurly/connection_pool.rb +11 -9
  9. data/lib/recurly/errors/api_errors.rb +2 -0
  10. data/lib/recurly/requests/account_create.rb +4 -0
  11. data/lib/recurly/requests/account_purchase.rb +4 -0
  12. data/lib/recurly/requests/account_update.rb +4 -0
  13. data/lib/recurly/requests/add_on_create.rb +2 -2
  14. data/lib/recurly/requests/add_on_pricing.rb +4 -0
  15. data/lib/recurly/requests/billing_info_create.rb +24 -0
  16. data/lib/recurly/requests/invoice_collect.rb +1 -1
  17. data/lib/recurly/requests/line_item_create.rb +6 -2
  18. data/lib/recurly/requests/plan_pricing.rb +4 -0
  19. data/lib/recurly/requests/pricing.rb +4 -0
  20. data/lib/recurly/requests/purchase_create.rb +1 -1
  21. data/lib/recurly/requests/subscription_change_create.rb +5 -1
  22. data/lib/recurly/requests/subscription_create.rb +5 -1
  23. data/lib/recurly/requests/subscription_purchase.rb +4 -0
  24. data/lib/recurly/requests/subscription_update.rb +5 -1
  25. data/lib/recurly/resources/account.rb +4 -0
  26. data/lib/recurly/resources/account_invoice_template.rb +18 -0
  27. data/lib/recurly/resources/add_on_pricing.rb +4 -0
  28. data/lib/recurly/resources/invoice.rb +1 -1
  29. data/lib/recurly/resources/line_item.rb +7 -3
  30. data/lib/recurly/resources/plan_pricing.rb +4 -0
  31. data/lib/recurly/resources/pricing.rb +4 -0
  32. data/lib/recurly/resources/subscription_change.rb +4 -0
  33. data/lib/recurly/version.rb +1 -1
  34. data/openapi/api.yaml +251 -20
  35. metadata +4 -3
data/openapi/api.yaml CHANGED
@@ -232,7 +232,7 @@ tags:
232
232
  description: |-
233
233
  For merchants who sell the same things to many customers, documenting those offerings in a catalog allows for faster charge creation, easier management of offerings, and analytics about your offerings across all sales channels. Because your offerings can be physical, digital, or service-oriented, Recurly collectively calls these offerings "Items".
234
234
 
235
- Recurly's item catalog requires the Credit Invoices and Subscription Billing Terms features to be enabled.
235
+ Recurly's item catalog requires the Credit Invoices features to be enabled.
236
236
  - name: plan
237
237
  x-displayName: Plan
238
238
  description: A plan tells Recurly how often and how much to charge your customers.
@@ -6337,6 +6337,51 @@ paths:
6337
6337
  {\n\t\tfmt.Printf(\"Resource not found: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
6338
6338
  Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Fetched Custom
6339
6339
  Field Definition: %s\", definition.Id)"
6340
+ "/invoice_templates/{invoice_template_id}/accounts":
6341
+ get:
6342
+ tags:
6343
+ - account
6344
+ operationId: list_invoice_template_accounts
6345
+ summary: List an invoice template's associated accounts
6346
+ description: See the [Pagination Guide](/guides/pagination.html) to learn how
6347
+ to use pagination in the API and Client Libraries.
6348
+ parameters:
6349
+ - "$ref": "#/components/parameters/invoice_template_id"
6350
+ - "$ref": "#/components/parameters/ids"
6351
+ - "$ref": "#/components/parameters/limit"
6352
+ - "$ref": "#/components/parameters/order"
6353
+ - "$ref": "#/components/parameters/sort_dates"
6354
+ - "$ref": "#/components/parameters/filter_begin_time"
6355
+ - "$ref": "#/components/parameters/filter_end_time"
6356
+ - "$ref": "#/components/parameters/filter_account_email"
6357
+ - "$ref": "#/components/parameters/filter_account_subscriber"
6358
+ - "$ref": "#/components/parameters/filter_account_past_due"
6359
+ responses:
6360
+ '200':
6361
+ description: A list of an invoice template's associated accounts.
6362
+ content:
6363
+ application/json:
6364
+ schema:
6365
+ "$ref": "#/components/schemas/AccountList"
6366
+ '400':
6367
+ description: Invalid or unpermitted parameter.
6368
+ content:
6369
+ application/json:
6370
+ schema:
6371
+ "$ref": "#/components/schemas/Error"
6372
+ '404':
6373
+ description: Incorrect site or invoice template ID.
6374
+ content:
6375
+ application/json:
6376
+ schema:
6377
+ "$ref": "#/components/schemas/Error"
6378
+ default:
6379
+ description: Unexpected error.
6380
+ content:
6381
+ application/json:
6382
+ schema:
6383
+ "$ref": "#/components/schemas/Error"
6384
+ x-code-samples: []
6340
6385
  "/items":
6341
6386
  get:
6342
6387
  tags:
@@ -14579,7 +14624,8 @@ components:
14579
14624
  billing_info_id:
14580
14625
  name: billing_info_id
14581
14626
  in: path
14582
- description: Billing Info ID.
14627
+ description: Billing Info ID. Can ONLY be used for sites utilizing the Wallet
14628
+ feature.
14583
14629
  required: true
14584
14630
  schema:
14585
14631
  type: string
@@ -14613,6 +14659,13 @@ components:
14613
14659
  required: true
14614
14660
  schema:
14615
14661
  type: string
14662
+ invoice_template_id:
14663
+ name: invoice_template_id
14664
+ in: path
14665
+ description: Invoice template ID.
14666
+ required: true
14667
+ schema:
14668
+ type: string
14616
14669
  item_id:
14617
14670
  name: item_id
14618
14671
  in: path
@@ -15455,6 +15508,12 @@ components:
15455
15508
  dunning campaign should be assigned to this account. For sites without
15456
15509
  multiple dunning campaigns enabled, the default dunning campaign will
15457
15510
  always be used.
15511
+ invoice_template_id:
15512
+ type: string
15513
+ title: Invoice Template ID
15514
+ description: Unique ID to identify an invoice template. Available when
15515
+ the Invoice Customization feature is enabled. Used to specify which invoice
15516
+ template, if any, should be used to generate invoices for the account.
15458
15517
  address:
15459
15518
  "$ref": "#/components/schemas/Address"
15460
15519
  billing_info:
@@ -15539,6 +15598,8 @@ components:
15539
15598
  "$ref": "#/components/schemas/BillingInfo"
15540
15599
  custom_fields:
15541
15600
  "$ref": "#/components/schemas/CustomFields"
15601
+ invoice_template:
15602
+ "$ref": "#/components/schemas/AccountInvoiceTemplate"
15542
15603
  AccountNote:
15543
15604
  type: object
15544
15605
  required:
@@ -15635,6 +15696,20 @@ components:
15635
15696
  format: float
15636
15697
  title: Amount
15637
15698
  description: Total amount the account is past due.
15699
+ AccountInvoiceTemplate:
15700
+ type: object
15701
+ title: Invoice Template
15702
+ description: Invoice template associated to the account. Available when invoice
15703
+ customization flag is enabled.
15704
+ properties:
15705
+ id:
15706
+ type: string
15707
+ title: ID
15708
+ description: Unique ID to identify the invoice template.
15709
+ name:
15710
+ type: string
15711
+ title: Name
15712
+ description: Template name
15638
15713
  InvoiceAddress:
15639
15714
  allOf:
15640
15715
  - "$ref": "#/components/schemas/Address"
@@ -15899,16 +15974,16 @@ components:
15899
15974
  type: string
15900
15975
  title: Item Code
15901
15976
  description: Unique code to identify an item. Available when the `Credit
15902
- Invoices` and `Subscription Billing Terms` features are enabled. If `item_id`
15903
- and `item_code` are both present, `item_id` will be used.
15977
+ Invoices` feature are enabled. If `item_id` and `item_code` are both present,
15978
+ `item_id` will be used.
15904
15979
  pattern: "/^[a-z0-9_+-]+$/"
15905
15980
  maxLength: 50
15906
15981
  item_id:
15907
15982
  type: string
15908
15983
  title: Item ID
15909
15984
  description: System-generated unique identifier for an item. Available when
15910
- the `Credit Invoices` and `Subscription Billing Terms` features are enabled.
15911
- If `item_id` and `item_code` are both present, `item_id` will be used.
15985
+ the `Credit Invoices` feature is enabled. If `item_id` and `item_code`
15986
+ are both present, `item_id` will be used.
15912
15987
  maxLength: 13
15913
15988
  code:
15914
15989
  type: string
@@ -16345,6 +16420,28 @@ components:
16345
16420
  characters comprising a country code; two check digits; and a number that
16346
16421
  includes the domestic bank account number, branch identifier, and potential
16347
16422
  routing information
16423
+ name_on_account:
16424
+ type: string
16425
+ maxLength: 255
16426
+ description: The name associated with the bank account (ACH, SEPA, Bacs
16427
+ only)
16428
+ account_number:
16429
+ type: string
16430
+ maxLength: 255
16431
+ description: The bank account number. (ACH, Bacs only)
16432
+ routing_number:
16433
+ type: string
16434
+ maxLength: 15
16435
+ description: The bank's rounting number. (ACH only)
16436
+ sort_code:
16437
+ type: string
16438
+ maxLength: 15
16439
+ description: Bank identifier code for UK based banks. Required for Bacs
16440
+ based billing infos. (Bacs only)
16441
+ type:
16442
+ "$ref": "#/components/schemas/AchTypeEnum"
16443
+ account_type:
16444
+ "$ref": "#/components/schemas/AchAccountTypeEnum"
16348
16445
  tax_identifier:
16349
16446
  type: string
16350
16447
  description: Tax identifier is required if adding a billing info that is
@@ -17355,7 +17452,8 @@ components:
17355
17452
  description: The `billing_info_id` is the value that represents a specific
17356
17453
  billing info for an end customer. When `billing_info_id` is used to assign
17357
17454
  billing info to the subscription, all future billing events for the subscription
17358
- will bill to the specified billing info.
17455
+ will bill to the specified billing info. `billing_info_id` can ONLY be
17456
+ used for sites utilizing the Wallet feature.
17359
17457
  subscription_ids:
17360
17458
  type: array
17361
17459
  title: Subscription IDs
@@ -17612,7 +17710,8 @@ components:
17612
17710
  description: The `billing_info_id` is the value that represents a specific
17613
17711
  billing info for an end customer. When `billing_info_id` is used to assign
17614
17712
  billing info to the subscription, all future billing events for the subscription
17615
- will bill to the specified billing info.
17713
+ will bill to the specified billing info. `billing_info_id` can ONLY be
17714
+ used for sites utilizing the Wallet feature.
17616
17715
  InvoiceCollection:
17617
17716
  type: object
17618
17717
  title: Invoice collection
@@ -17863,20 +17962,20 @@ components:
17863
17962
  type: string
17864
17963
  title: Item Code
17865
17964
  description: Unique code to identify an item. Available when the Credit
17866
- Invoices and Subscription Billing Terms features are enabled.
17965
+ Invoices feature is enabled.
17867
17966
  pattern: "/^[a-z0-9_+-]+$/"
17868
17967
  maxLength: 50
17869
17968
  item_id:
17870
17969
  type: string
17871
17970
  title: Item ID
17872
17971
  description: System-generated unique identifier for an item. Available when
17873
- the Credit Invoices and Subscription Billing Terms features are enabled.
17972
+ the Credit Invoices feature is enabled.
17874
17973
  maxLength: 13
17875
17974
  external_sku:
17876
17975
  type: string
17877
17976
  title: External SKU
17878
17977
  description: Optional Stock Keeping Unit assigned to an item. Available
17879
- when the Credit Invoices and Subscription Billing Terms features are enabled.
17978
+ when the Credit Invoices feature is enabled.
17880
17979
  maxLength: 50
17881
17980
  revenue_schedule_type:
17882
17981
  title: Revenue schedule type
@@ -17898,6 +17997,12 @@ components:
17898
17997
  "$ref": "#/components/schemas/LegacyCategoryEnum"
17899
17998
  account:
17900
17999
  "$ref": "#/components/schemas/AccountMini"
18000
+ bill_for_account_id:
18001
+ type: string
18002
+ title: Bill For Account ID
18003
+ maxLength: 13
18004
+ description: The UUID of the account responsible for originating the line
18005
+ item.
17901
18006
  subscription_id:
17902
18007
  type: string
17903
18008
  title: Subscription ID
@@ -18150,6 +18255,13 @@ components:
18150
18255
  A positive or negative amount with `type=credit` will result in a negative `unit_amount`.
18151
18256
  If `item_code`/`item_id` is present, `unit_amount` can be passed in, to override the
18152
18257
  `Item`'s `unit_amount`. If `item_code`/`item_id` is not present then `unit_amount` is required.
18258
+ tax_inclusive:
18259
+ type: boolean
18260
+ title: Tax Inclusive?
18261
+ default: false
18262
+ description: Determines whether or not tax is included in the unit amount.
18263
+ The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
18264
+ feature) must be enabled to use this flag.
18153
18265
  quantity:
18154
18266
  type: integer
18155
18267
  title: Quantity
@@ -18166,14 +18278,14 @@ components:
18166
18278
  type: string
18167
18279
  title: Item Code
18168
18280
  description: Unique code to identify an item. Available when the Credit
18169
- Invoices and Subscription Billing Terms features are enabled.
18281
+ Invoices feature is enabled.
18170
18282
  pattern: "/^[a-z0-9_+-]+$/"
18171
18283
  maxLength: 50
18172
18284
  item_id:
18173
18285
  type: string
18174
18286
  title: Item ID
18175
18287
  description: System-generated unique identifier for an item. Available when
18176
- the Credit Invoices and Subscription Billing Terms features are enabled.
18288
+ the Credit Invoices feature is enabled.
18177
18289
  maxLength: 13
18178
18290
  revenue_schedule_type:
18179
18291
  title: Revenue schedule type
@@ -18663,6 +18775,13 @@ components:
18663
18775
  title: Unit price
18664
18776
  minimum: 0
18665
18777
  maximum: 1000000
18778
+ tax_inclusive:
18779
+ type: boolean
18780
+ title: Tax Inclusive?
18781
+ default: false
18782
+ description: Determines whether or not tax is included in the unit amount.
18783
+ The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
18784
+ feature) must be enabled to use this flag.
18666
18785
  PlanUpdate:
18667
18786
  type: object
18668
18787
  properties:
@@ -18821,6 +18940,13 @@ components:
18821
18940
  description: |
18822
18941
  Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`.
18823
18942
  If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
18943
+ tax_inclusive:
18944
+ type: boolean
18945
+ title: Tax Inclusive?
18946
+ default: false
18947
+ description: Determines whether or not tax is included in the unit amount.
18948
+ The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
18949
+ feature) must be enabled to use this flag.
18824
18950
  required:
18825
18951
  - currency
18826
18952
  TierPricing:
@@ -18863,6 +18989,13 @@ components:
18863
18989
  title: Unit price
18864
18990
  minimum: 0
18865
18991
  maximum: 1000000
18992
+ tax_inclusive:
18993
+ type: boolean
18994
+ title: Tax Inclusive?
18995
+ default: false
18996
+ description: Determines whether or not tax is included in the unit amount.
18997
+ The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
18998
+ feature) must be enabled to use this flag.
18866
18999
  required:
18867
19000
  - currency
18868
19001
  - unit_amount
@@ -19800,6 +19933,13 @@ components:
19800
19933
  type: number
19801
19934
  format: float
19802
19935
  title: Unit amount
19936
+ tax_inclusive:
19937
+ type: boolean
19938
+ title: Tax Inclusive?
19939
+ default: false
19940
+ description: Determines whether or not tax is included in the unit amount.
19941
+ The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
19942
+ feature) must be enabled to use this flag.
19803
19943
  quantity:
19804
19944
  type: integer
19805
19945
  title: Subscription quantity
@@ -19887,6 +20027,13 @@ components:
19887
20027
  be used.
19888
20028
  minimum: 0
19889
20029
  maximum: 1000000
20030
+ tax_inclusive:
20031
+ type: boolean
20032
+ title: Tax Inclusive?
20033
+ default: false
20034
+ description: Determines whether or not tax is included in the unit amount.
20035
+ The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
20036
+ feature) must be enabled to use this flag.
19890
20037
  quantity:
19891
20038
  type: integer
19892
20039
  title: Quantity
@@ -19961,8 +20108,10 @@ components:
19961
20108
  SubscriptionChangeShippingCreate:
19962
20109
  type: object
19963
20110
  title: Shipping details that will be changed on a subscription
19964
- description: The shipping address can currently only be changed immediately,
19965
- using SubscriptionUpdate.
20111
+ description: Shipping addresses are tied to a customer's account. Each account
20112
+ can have up to 20 different shipping addresses, and if you have enabled multiple
20113
+ subscriptions per account, you can associate different shipping addresses
20114
+ to each subscription.
19966
20115
  properties:
19967
20116
  method_id:
19968
20117
  type: string
@@ -20013,7 +20162,8 @@ components:
20013
20162
  description: The `billing_info_id` is the value that represents a specific
20014
20163
  billing info for an end customer. When `billing_info_id` is used to assign
20015
20164
  billing info to the subscription, all future billing events for the subscription
20016
- will bill to the specified billing info.
20165
+ will bill to the specified billing info. `billing_info_id` can ONLY be
20166
+ used for sites utilizing the Wallet feature.
20017
20167
  shipping:
20018
20168
  title: Shipping address
20019
20169
  description: Create a shipping address on the account and assign it to the
@@ -20037,6 +20187,13 @@ components:
20037
20187
  the subscription plan for the provided currency.
20038
20188
  minimum: 0
20039
20189
  maximum: 1000000
20190
+ tax_inclusive:
20191
+ type: boolean
20192
+ title: Tax Inclusive?
20193
+ default: false
20194
+ description: Determines whether or not tax is included in the unit amount.
20195
+ The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
20196
+ feature) must be enabled to use this flag.
20040
20197
  quantity:
20041
20198
  type: integer
20042
20199
  title: Quantity
@@ -20168,6 +20325,13 @@ components:
20168
20325
  the subscription plan for the provided currency.
20169
20326
  minimum: 0
20170
20327
  maximum: 1000000
20328
+ tax_inclusive:
20329
+ type: boolean
20330
+ title: Tax Inclusive?
20331
+ default: false
20332
+ description: Determines whether or not tax is included in the unit amount.
20333
+ The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
20334
+ feature) must be enabled to use this flag.
20171
20335
  quantity:
20172
20336
  type: integer
20173
20337
  title: Quantity
@@ -20304,6 +20468,13 @@ components:
20304
20468
  description: If present, this subscription's transactions will use the payment
20305
20469
  gateway with this code.
20306
20470
  maxLength: 13
20471
+ tax_inclusive:
20472
+ type: boolean
20473
+ title: Tax Inclusive?
20474
+ default: false
20475
+ description: Determines whether or not tax is included in the unit amount.
20476
+ The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
20477
+ feature) must be enabled to use this flag.
20307
20478
  shipping:
20308
20479
  "$ref": "#/components/schemas/SubscriptionShippingUpdate"
20309
20480
  billing_info_id:
@@ -20312,7 +20483,8 @@ components:
20312
20483
  description: The `billing_info_id` is the value that represents a specific
20313
20484
  billing info for an end customer. When `billing_info_id` is used to assign
20314
20485
  billing info to the subscription, all future billing events for the subscription
20315
- will bill to the specified billing info.
20486
+ will bill to the specified billing info. `billing_info_id` can ONLY be
20487
+ used for sites utilizing the Wallet feature.
20316
20488
  SubscriptionPause:
20317
20489
  type: object
20318
20490
  properties:
@@ -20910,7 +21082,8 @@ components:
20910
21082
  description: The `billing_info_id` is the value that represents a specific
20911
21083
  billing info for an end customer. When `billing_info_id` is used to assign
20912
21084
  billing info to the subscription, all future billing events for the subscription
20913
- will bill to the specified billing info.
21085
+ will bill to the specified billing info. `billing_info_id` can ONLY be
21086
+ used for sites utilizing the Wallet feature.
20914
21087
  collection_method:
20915
21088
  title: Collection method
20916
21089
  description: Must be set to manual in order to preview a purchase for an
@@ -21378,20 +21551,26 @@ components:
21378
21551
  - en-AU
21379
21552
  - en-CA
21380
21553
  - en-GB
21554
+ - en-IE
21381
21555
  - en-NZ
21382
21556
  - en-US
21383
21557
  - es-ES
21384
21558
  - es-MX
21385
21559
  - es-US
21560
+ - fi-FI
21386
21561
  - fr-CA
21387
21562
  - fr-FR
21388
21563
  - hi-IN
21564
+ - it-IT
21389
21565
  - ja-JP
21566
+ - ko-KR
21390
21567
  - nl-BE
21391
21568
  - nl-NL
21392
21569
  - pt-BR
21393
21570
  - pt-PT
21571
+ - ro-RO
21394
21572
  - ru-RU
21573
+ - sk-SK
21395
21574
  - tr-TR
21396
21575
  - zh-CN
21397
21576
  BillToEnum:
@@ -21531,16 +21710,22 @@ components:
21531
21710
  OriginEnum:
21532
21711
  type: string
21533
21712
  enum:
21713
+ - carryforward_credit
21714
+ - carryforward_gift_credit
21534
21715
  - credit
21716
+ - external_refund
21535
21717
  - gift_card
21536
21718
  - immediate_change
21719
+ - import
21537
21720
  - line_item_refund
21538
21721
  - open_amount_refund
21722
+ - prepayment
21539
21723
  - purchase
21724
+ - refund
21540
21725
  - renewal
21541
21726
  - termination
21727
+ - usage_correction
21542
21728
  - write_off
21543
- - prepayment
21544
21729
  InvoiceStateEnum:
21545
21730
  type: string
21546
21731
  enum:
@@ -21777,6 +21962,7 @@ components:
21777
21962
  - roku
21778
21963
  - sepadirectdebit
21779
21964
  - wire_transfer
21965
+ - braintree_v_zero
21780
21966
  CardTypeEnum:
21781
21967
  type: string
21782
21968
  enum:
@@ -21815,6 +22001,7 @@ components:
21815
22001
  - rate_limited
21816
22002
  - service_not_available
21817
22003
  - simultaneous_request
22004
+ - tax_service_error
21818
22005
  - transaction
21819
22006
  - unauthorized
21820
22007
  - unavailable_in_api_version
@@ -21852,6 +22039,7 @@ components:
21852
22039
  - ach_transactions_not_supported
21853
22040
  - ach_validation_exception
21854
22041
  - amazon_amount_exceeded
22042
+ - amazon_declined_review
21855
22043
  - amazon_invalid_authorization_status
21856
22044
  - amazon_invalid_close_attempt
21857
22045
  - amazon_invalid_create_order_reference
@@ -21868,13 +22056,17 @@ components:
21868
22056
  - batch_processing_error
21869
22057
  - billing_agreement_already_accepted
21870
22058
  - billing_agreement_not_accepted
22059
+ - billing_agreement_not_found
22060
+ - billing_agreement_replaced
21871
22061
  - call_issuer
21872
22062
  - call_issuer_update_cardholder_data
22063
+ - cancelled
21873
22064
  - cannot_refund_unsettled_transactions
21874
22065
  - card_not_activated
21875
22066
  - card_type_not_accepted
21876
22067
  - cardholder_requested_stop
21877
22068
  - contact_gateway
22069
+ - contract_not_found
21878
22070
  - currency_not_supported
21879
22071
  - customer_canceled_transaction
21880
22072
  - cvv_required
@@ -21886,9 +22078,12 @@ components:
21886
22078
  - declined_saveable
21887
22079
  - declined_security_code
21888
22080
  - deposit_referenced_chargeback
22081
+ - direct_debit_type_not_accepted
21889
22082
  - duplicate_transaction
21890
22083
  - exceeds_daily_limit
22084
+ - exceeds_max_amount
21891
22085
  - expired_card
22086
+ - finbot_disconnect
21892
22087
  - finbot_unavailable
21893
22088
  - fraud_address
21894
22089
  - fraud_address_recurly
@@ -21896,36 +22091,45 @@ components:
21896
22091
  - fraud_gateway
21897
22092
  - fraud_generic
21898
22093
  - fraud_ip_address
22094
+ - fraud_manual_decision
21899
22095
  - fraud_risk_check
21900
22096
  - fraud_security_code
21901
22097
  - fraud_stolen_card
21902
22098
  - fraud_too_many_attempts
21903
22099
  - fraud_velocity
22100
+ - gateway_account_setup_incomplete
21904
22101
  - gateway_error
21905
22102
  - gateway_rate_limited
21906
22103
  - gateway_timeout
21907
22104
  - gateway_token_not_found
21908
22105
  - gateway_unavailable
22106
+ - gateway_validation_exception
21909
22107
  - insufficient_funds
21910
22108
  - invalid_account_number
21911
22109
  - invalid_amount
22110
+ - invalid_billing_agreement_status
21912
22111
  - invalid_card_number
21913
22112
  - invalid_data
21914
22113
  - invalid_email
21915
- - invalid_gateway_configuration
21916
22114
  - invalid_gateway_access_token
22115
+ - invalid_gateway_configuration
21917
22116
  - invalid_issuer
21918
22117
  - invalid_login
21919
22118
  - invalid_merchant_type
22119
+ - invalid_name
22120
+ - invalid_payment_method
22121
+ - invalid_payment_method_hard
21920
22122
  - invalid_transaction
21921
22123
  - issuer_unavailable
21922
22124
  - merch_max_transaction_limit_exceeded
22125
+ - moneybot_disconnect
21923
22126
  - moneybot_unavailable
21924
22127
  - no_billing_information
21925
22128
  - no_gateway
21926
22129
  - no_gateway_found_for_transaction_amount
21927
22130
  - partial_approval
21928
22131
  - partial_credits_not_supported
22132
+ - payer_authentication_rejected
21929
22133
  - payment_cannot_void_authorization
21930
22134
  - payment_not_accepted
21931
22135
  - paypal_account_issue
@@ -21935,7 +22139,9 @@ components:
21935
22139
  - paypal_hard_decline
21936
22140
  - paypal_invalid_billing_agreement
21937
22141
  - paypal_primary_declined
22142
+ - processor_not_available
21938
22143
  - processor_unavailable
22144
+ - recurly_credentials_not_found
21939
22145
  - recurly_error
21940
22146
  - recurly_failed_to_get_token
21941
22147
  - recurly_token_mismatch
@@ -21943,10 +22149,19 @@ components:
21943
22149
  - reference_transactions_not_enabled
21944
22150
  - restricted_card
21945
22151
  - restricted_card_chargeback
22152
+ - rjs_token_expired
22153
+ - roku_invalid_card_number
22154
+ - roku_invalid_cib
22155
+ - roku_invalid_payment_method
22156
+ - roku_zip_code_mismatch
21946
22157
  - simultaneous
21947
22158
  - ssl_error
21948
22159
  - temporary_hold
22160
+ - three_d_secure_action_required
22161
+ - three_d_secure_action_result_token_mismatch
21949
22162
  - three_d_secure_authentication
22163
+ - three_d_secure_connection_error
22164
+ - three_d_secure_credential_error
21950
22165
  - three_d_secure_not_supported
21951
22166
  - too_many_attempts
21952
22167
  - total_credit_exceeds_capture
@@ -21958,10 +22173,13 @@ components:
21958
22173
  - transaction_cannot_be_voided
21959
22174
  - transaction_failed_to_settle
21960
22175
  - transaction_not_found
22176
+ - transaction_service_v2_disconnect
22177
+ - transaction_service_v2_unavailable
21961
22178
  - transaction_settled
21962
22179
  - transaction_stale_at_gateway
21963
22180
  - try_again
21964
22181
  - unknown
22182
+ - unmapped_partner_error
21965
22183
  - vaultly_service_unavailable
21966
22184
  - zero_dollar_auth_not_supported
21967
22185
  ExportDates:
@@ -22014,3 +22232,16 @@ components:
22014
22232
  - automatic
22015
22233
  - manual
22016
22234
  - trial
22235
+ AchTypeEnum:
22236
+ type: string
22237
+ description: The payment method type for a non-credit card based billing info.
22238
+ `bacs` and `becs` are the only accepted values.
22239
+ enum:
22240
+ - bacs
22241
+ - becs
22242
+ AchAccountTypeEnum:
22243
+ type: string
22244
+ description: The bank account type. (ACH only)
22245
+ enum:
22246
+ - checking
22247
+ - savings
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: 4.9.0
4
+ version: 4.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-16 00:00:00.000000000 Z
11
+ date: 2022-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -212,6 +212,7 @@ files:
212
212
  - lib/recurly/resources/account_acquisition_cost.rb
213
213
  - lib/recurly/resources/account_balance.rb
214
214
  - lib/recurly/resources/account_balance_amount.rb
215
+ - lib/recurly/resources/account_invoice_template.rb
215
216
  - lib/recurly/resources/account_mini.rb
216
217
  - lib/recurly/resources/account_note.rb
217
218
  - lib/recurly/resources/add_on.rb
@@ -302,7 +303,7 @@ metadata:
302
303
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
303
304
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
304
305
  homepage_uri: https://github.com/recurly/recurly-client-ruby
305
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.9.0
306
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.13.0
306
307
  post_install_message:
307
308
  rdoc_options: []
308
309
  require_paths: