recurly 4.52.0 → 4.54.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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.bumpversion.cfg +1 -1
  3. data/CHANGELOG.md +22 -0
  4. data/GETTING_STARTED.md +1 -1
  5. data/lib/recurly/client/operations.rb +106 -4
  6. data/lib/recurly/requests/add_on_create.rb +15 -3
  7. data/lib/recurly/requests/add_on_update.rb +14 -2
  8. data/lib/recurly/requests/general_ledger_account_create.rb +22 -0
  9. data/lib/recurly/requests/general_ledger_account_update.rb +18 -0
  10. data/lib/recurly/requests/invoice_refund.rb +5 -1
  11. data/lib/recurly/requests/item_create.rb +13 -1
  12. data/lib/recurly/requests/item_update.rb +13 -1
  13. data/lib/recurly/requests/line_item_create.rb +21 -1
  14. data/lib/recurly/requests/line_item_refund.rb +10 -2
  15. data/lib/recurly/requests/plan_create.rb +25 -1
  16. data/lib/recurly/requests/plan_update.rb +25 -1
  17. data/lib/recurly/requests/shipping_method_create.rb +12 -0
  18. data/lib/recurly/requests/shipping_method_update.rb +12 -0
  19. data/lib/recurly/resources/add_on.rb +13 -1
  20. data/lib/recurly/resources/business_entity.rb +16 -0
  21. data/lib/recurly/resources/external_payment_phase.rb +0 -4
  22. data/lib/recurly/resources/external_subscription.rb +8 -0
  23. data/lib/recurly/resources/general_ledger_account.rb +38 -0
  24. data/lib/recurly/resources/gift_card.rb +12 -0
  25. data/lib/recurly/resources/item.rb +13 -1
  26. data/lib/recurly/resources/line_item.rb +21 -1
  27. data/lib/recurly/resources/performance_obligation.rb +26 -0
  28. data/lib/recurly/resources/plan.rb +1 -1
  29. data/lib/recurly/resources/shipping_method.rb +12 -0
  30. data/lib/recurly/version.rb +1 -1
  31. data/openapi/api.yaml +971 -75
  32. metadata +7 -3
data/openapi/api.yaml CHANGED
@@ -230,6 +230,8 @@ x-tagGroups:
230
230
  - shipping_method
231
231
  - dunning_campaigns
232
232
  - business_entities
233
+ - general_ledger_account
234
+ - performance_obligations
233
235
  tags:
234
236
  - name: site
235
237
  x-displayName: Site
@@ -242,7 +244,7 @@ tags:
242
244
  description: |-
243
245
  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".
244
246
 
245
- Recurly's item catalog requires the Credit Invoices features to be enabled.
247
+ Recurly's item catalog requires the Credit Invoices feature to be enabled.
246
248
  - name: plan
247
249
  x-displayName: Plan
248
250
  description: A plan tells Recurly how often and how much to charge your customers.
@@ -385,6 +387,55 @@ tags:
385
387
  x-displayName: Business Entities
386
388
  description: Describes the business address that will be used for invoices and taxes
387
389
  depending on settings and subscriber location.
390
+ - name: general_ledger_account
391
+ x-displayName: General Ledger Account
392
+ description: |
393
+ A general ledger account is an account of record used to sort, store
394
+ and summarize a company's transactions. Recurly supports the balance
395
+ sheet (Liability) account and income (Revenue) account to be attached
396
+ to business entities, plans, or at the item level.
397
+
398
+ When invoices are created, system can default to the accounts based
399
+ on the GL Accounts attached at the plan/item level. The accounts can
400
+ be defaulted from the business entity level as well.
401
+
402
+ These accounts will be used in the Revenue Recognition module to create
403
+ the revenue journals that can be posted into Merchant GL system.
404
+
405
+ Revenue and Liability accounts can defined in the system using this
406
+ API or via the General Ledger Accounting page in the Admin UI and then
407
+ used at the plan/item level.
408
+
409
+ Recurly allows merchants to default the accounts at the following levels:
410
+ - Business Entities (default)
411
+ - Plans
412
+ - Base Price
413
+ - Setup Fee
414
+ - Add-ons
415
+ - Items
416
+ - Charges
417
+ - Gift Cards
418
+ - Shipping Methods
419
+ - Credits
420
+
421
+ If you are interested in Recurly Revenue Recognition features, please
422
+ contact a Recurly customer service representative.
423
+ - name: performance_obligations
424
+ x-displayName: Performance Obligations
425
+ description: |
426
+ A performance obligation is a promise to provide a distinct good or
427
+ service or a series of distinct goods or services as defined by the revenue standard.
428
+ Performance obligations are completed and revenue is recognized either at a point in
429
+ time or over a period of time, depending on the type of obligation.
430
+ - Point in time a company has to go through the criteria and determine if a performance
431
+ obligation is satisfied over time. If it does not meet those criteria, then the performance
432
+ obligation is satisfied and revenue recognized at the point in time when control of the good
433
+ or service is transferred to the customer.
434
+ - Over a period of time a performance obligation is satisfied and revenue is recognized over
435
+ time if at least one of the following are met:
436
+ - The customer receives and consumes the benefits of the goods or services as they are provided
437
+ by the entity (routine, recurring services like a cleaning service are an example of a series of
438
+ services that are substantially the same and have the same pattern of transfer)
388
439
  paths:
389
440
  "/sites":
390
441
  get:
@@ -6566,7 +6617,7 @@ paths:
6566
6617
  - "$ref": "#/components/parameters/custom_field_definition_id"
6567
6618
  responses:
6568
6619
  '200':
6569
- description: An custom field definition.
6620
+ description: A custom field definition.
6570
6621
  content:
6571
6622
  application/json:
6572
6623
  schema:
@@ -6672,6 +6723,150 @@ paths:
6672
6723
  {\n\t\tfmt.Printf(\"Resource not found: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
6673
6724
  Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Fetched Custom
6674
6725
  Field Definition: %s\", definition.Id)"
6726
+ "/general_ledger_accounts":
6727
+ post:
6728
+ tags:
6729
+ - general_ledger_account
6730
+ operationId: create_general_ledger_account
6731
+ summary: Create a new general ledger account
6732
+ requestBody:
6733
+ content:
6734
+ application/json:
6735
+ schema:
6736
+ "$ref": "#/components/schemas/GeneralLedgerAccountCreate"
6737
+ required: true
6738
+ responses:
6739
+ '201':
6740
+ description: A new general ledger account.
6741
+ content:
6742
+ application/json:
6743
+ schema:
6744
+ "$ref": "#/components/schemas/GeneralLedgerAccount"
6745
+ default:
6746
+ description: Unexpected error.
6747
+ content:
6748
+ application/json:
6749
+ schema:
6750
+ "$ref": "#/components/schemas/Error"
6751
+ x-code-samples: []
6752
+ get:
6753
+ tags:
6754
+ - general_ledger_account
6755
+ operationId: list_general_ledger_accounts
6756
+ summary: List a site's general ledger accounts
6757
+ description: See the [Pagination Guide](/developers/guides/pagination.html)
6758
+ to learn how to use pagination in the API and Client Libraries.
6759
+ parameters:
6760
+ - "$ref": "#/components/parameters/ids"
6761
+ - "$ref": "#/components/parameters/limit"
6762
+ - "$ref": "#/components/parameters/order"
6763
+ - "$ref": "#/components/parameters/sort_dates"
6764
+ - "$ref": "#/components/parameters/general_ledger_account_type_enum"
6765
+ responses:
6766
+ '200':
6767
+ description: A list of the site's general ledger accounts.
6768
+ content:
6769
+ application/json:
6770
+ schema:
6771
+ "$ref": "#/components/schemas/GeneralLedgerAccountList"
6772
+ '404':
6773
+ description: Incorrect site ID.
6774
+ content:
6775
+ application/json:
6776
+ schema:
6777
+ "$ref": "#/components/schemas/Error"
6778
+ x-code-samples: []
6779
+ "/general_ledger_accounts/{general_ledger_account_id}":
6780
+ get:
6781
+ tags:
6782
+ - general_ledger_account
6783
+ operationId: get_general_ledger_account
6784
+ summary: Fetch a general ledger account
6785
+ parameters:
6786
+ - "$ref": "#/components/parameters/general_ledger_account_id"
6787
+ responses:
6788
+ '200':
6789
+ description: A general ledger account.
6790
+ content:
6791
+ application/json:
6792
+ schema:
6793
+ "$ref": "#/components/schemas/GeneralLedgerAccount"
6794
+ '404':
6795
+ description: Incorrect site or general ledger account ID.
6796
+ content:
6797
+ application/json:
6798
+ schema:
6799
+ "$ref": "#/components/schemas/Error"
6800
+ x-code-samples: []
6801
+ put:
6802
+ tags:
6803
+ - general_ledger_account
6804
+ operationId: update_general_ledger_account
6805
+ summary: Update a general ledger account
6806
+ parameters:
6807
+ - "$ref": "#/components/parameters/general_ledger_account_id"
6808
+ requestBody:
6809
+ content:
6810
+ application/json:
6811
+ schema:
6812
+ "$ref": "#/components/schemas/GeneralLedgerAccountUpdate"
6813
+ required: true
6814
+ responses:
6815
+ '200':
6816
+ description: The updated general ledger account.
6817
+ content:
6818
+ application/json:
6819
+ schema:
6820
+ "$ref": "#/components/schemas/GeneralLedgerAccount"
6821
+ '404':
6822
+ description: Incorrect site or general ledger account ID.
6823
+ content:
6824
+ application/json:
6825
+ schema:
6826
+ "$ref": "#/components/schemas/Error"
6827
+ x-code-samples: []
6828
+ "/performance_obligations/{performance_obligation_id}":
6829
+ get:
6830
+ tags:
6831
+ - performance_obligations
6832
+ operationId: get_performance_obligation
6833
+ summary: Get a single Performance Obligation.
6834
+ parameters:
6835
+ - "$ref": "#/components/parameters/performance_obligation_id"
6836
+ responses:
6837
+ '200':
6838
+ description: A single Performance Obligation.
6839
+ content:
6840
+ application/json:
6841
+ schema:
6842
+ "$ref": "#/components/schemas/PerformanceObligation"
6843
+ default:
6844
+ description: Unexpected error.
6845
+ content:
6846
+ application/json:
6847
+ schema:
6848
+ "$ref": "#/components/schemas/Error"
6849
+ x-code-samples: []
6850
+ "/performance_obligations":
6851
+ get:
6852
+ tags:
6853
+ - performance_obligations
6854
+ operationId: get_performance_obligations
6855
+ summary: Get a site's Performance Obligations
6856
+ responses:
6857
+ '200':
6858
+ description: A list of Performance Obligations.
6859
+ content:
6860
+ application/json:
6861
+ schema:
6862
+ "$ref": "#/components/schemas/PerformanceObligationList"
6863
+ default:
6864
+ description: Unexpected error.
6865
+ content:
6866
+ application/json:
6867
+ schema:
6868
+ "$ref": "#/components/schemas/Error"
6869
+ x-code-samples: []
6675
6870
  "/invoice_templates/{invoice_template_id}/accounts":
6676
6871
  get:
6677
6872
  tags:
@@ -8034,7 +8229,7 @@ paths:
8034
8229
  x-code-samples: []
8035
8230
  "/external_subscriptions/{external_subscription_id}":
8036
8231
  parameters:
8037
- - "$ref": "#/components/parameters/external_subscription_id"
8232
+ - "$ref": "#/components/parameters/external_subscription_id_fetch"
8038
8233
  get:
8039
8234
  tags:
8040
8235
  - external_subscriptions
@@ -16093,10 +16288,10 @@ paths:
16093
16288
  tags:
16094
16289
  - external_payment_phases
16095
16290
  operationId: get_external_subscription_external_payment_phase
16096
- summary: Fetch an external payment_phase
16291
+ summary: Fetch an external payment phase
16097
16292
  responses:
16098
16293
  '200':
16099
- description: Details for an external payment_phase.
16294
+ description: Details for an external payment phase.
16100
16295
  content:
16101
16296
  application/json:
16102
16297
  schema:
@@ -16545,6 +16740,14 @@ components:
16545
16740
  required: true
16546
16741
  schema:
16547
16742
  type: string
16743
+ external_subscription_id_fetch:
16744
+ name: external_subscription_id
16745
+ in: path
16746
+ description: External subscription ID or external_id. For ID no prefix is used
16747
+ e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g. `external-id-123456`.
16748
+ required: true
16749
+ schema:
16750
+ type: string
16548
16751
  external_subscription_id:
16549
16752
  name: external_subscription_id
16550
16753
  in: path
@@ -16559,6 +16762,25 @@ components:
16559
16762
  required: true
16560
16763
  schema:
16561
16764
  type: string
16765
+ general_ledger_account_id:
16766
+ name: general_ledger_account_id
16767
+ in: path
16768
+ description: General Ledger Account ID
16769
+ required: true
16770
+ schema:
16771
+ type: string
16772
+ title: General Ledger Account ID
16773
+ description: |
16774
+ The ID of a general ledger account. General ledger accounts are
16775
+ only accessible as a part of the Recurly RevRec Standard and
16776
+ Recurly RevRec Advanced features.
16777
+ maxLength: 13
16778
+ general_ledger_account_type_enum:
16779
+ name: account_type
16780
+ in: query
16781
+ description: General Ledger Account type by which to filter the response.
16782
+ schema:
16783
+ "$ref": "#/components/schemas/GeneralLedgerAccountTypeEnum"
16562
16784
  invoice_template_id:
16563
16785
  name: invoice_template_id
16564
16786
  in: path
@@ -16604,6 +16826,19 @@ components:
16604
16826
  required: true
16605
16827
  schema:
16606
16828
  type: string
16829
+ performance_obligation_id:
16830
+ name: performance_obligation_id
16831
+ in: path
16832
+ description: Performance Obligation id.
16833
+ required: true
16834
+ schema:
16835
+ type: string
16836
+ title: Performance Obligation ID
16837
+ description: |
16838
+ The ID of a performance obligation. Performance obligations are
16839
+ only accessible as a part of the Recurly RevRec Standard and
16840
+ Recurly RevRec Advanced features.
16841
+ maxLength: 13
16607
16842
  plan_id:
16608
16843
  name: plan_id
16609
16844
  in: path
@@ -17858,6 +18093,30 @@ components:
17858
18093
  description: System-generated unique identifier for an measured unit associated
17859
18094
  with the add-on.
17860
18095
  maxLength: 13
18096
+ liability_gl_account_id:
18097
+ type: string
18098
+ title: General Ledger Account ID
18099
+ description: |
18100
+ The ID of a general ledger account. General ledger accounts are
18101
+ only accessible as a part of the Recurly RevRec Standard and
18102
+ Recurly RevRec Advanced features.
18103
+ maxLength: 13
18104
+ revenue_gl_account_id:
18105
+ type: string
18106
+ title: General Ledger Account ID
18107
+ description: |
18108
+ The ID of a general ledger account. General ledger accounts are
18109
+ only accessible as a part of the Recurly RevRec Standard and
18110
+ Recurly RevRec Advanced features.
18111
+ maxLength: 13
18112
+ performance_obligation_id:
18113
+ type: string
18114
+ title: Performance Obligation ID
18115
+ description: |
18116
+ The ID of a performance obligation. Performance obligations are
18117
+ only accessible as a part of the Recurly RevRec Standard and
18118
+ Recurly RevRec Advanced features.
18119
+ maxLength: 13
17861
18120
  accounting_code:
17862
18121
  type: string
17863
18122
  title: Accounting code
@@ -17889,11 +18148,14 @@ components:
17889
18148
  minimum: 0
17890
18149
  tax_code:
17891
18150
  type: string
17892
- title: Tax code
17893
- description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
17894
- The tax code values are specific to each tax system. If you are using
17895
- Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
17896
18151
  maxLength: 50
18152
+ title: Tax code
18153
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
18154
+ tax solution to determine taxation rules. You can pass in specific tax
18155
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
18156
+ offering you can also choose to instead use simple values of `unknown`,
18157
+ `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of
18158
+ the request then `tax_code` must be absent.
17897
18159
  display_quantity:
17898
18160
  type: boolean
17899
18161
  title: Display quantity?
@@ -17972,7 +18234,7 @@ components:
17972
18234
  type: string
17973
18235
  title: Item Code
17974
18236
  description: Unique code to identify an item. Available when the `Credit
17975
- Invoices` feature are enabled. If `item_id` and `item_code` are both present,
18237
+ Invoices` feature is enabled. If `item_id` and `item_code` are both present,
17976
18238
  `item_id` will be used.
17977
18239
  pattern: "/^[a-z0-9_+-]+$/"
17978
18240
  maxLength: 50
@@ -18031,6 +18293,30 @@ components:
18031
18293
  title: Plan ID
18032
18294
  maxLength: 13
18033
18295
  readOnly: true
18296
+ liability_gl_account_id:
18297
+ type: string
18298
+ title: General Ledger Account ID
18299
+ description: |
18300
+ The ID of a general ledger account. General ledger accounts are
18301
+ only accessible as a part of the Recurly RevRec Standard and
18302
+ Recurly RevRec Advanced features.
18303
+ maxLength: 13
18304
+ revenue_gl_account_id:
18305
+ type: string
18306
+ title: General Ledger Account ID
18307
+ description: |
18308
+ The ID of a general ledger account. General ledger accounts are
18309
+ only accessible as a part of the Recurly RevRec Standard and
18310
+ Recurly RevRec Advanced features.
18311
+ maxLength: 13
18312
+ performance_obligation_id:
18313
+ type: string
18314
+ title: Performance Obligation ID
18315
+ description: |
18316
+ The ID of a performance obligation. Performance obligations are
18317
+ only accessible as a part of the Recurly RevRec Standard and
18318
+ Recurly RevRec Advanced features.
18319
+ maxLength: 13
18034
18320
  accounting_code:
18035
18321
  type: string
18036
18322
  title: Accounting code
@@ -18084,14 +18370,14 @@ components:
18084
18370
  minimum: 0
18085
18371
  tax_code:
18086
18372
  type: string
18087
- title: Tax code
18088
- description: Optional field used by Avalara, Vertex, and Recurly's EU VAT
18089
- tax feature to determine taxation rules. If you have your own AvaTax or
18090
- Vertex account configured, use their tax codes to assign specific tax
18091
- rules. If you are using Recurly's EU VAT feature, you can use values of
18092
- `unknown`, `physical`, or `digital`. If `item_code`/`item_id` is part
18093
- of the request then `tax_code` must be absent.
18094
18373
  maxLength: 50
18374
+ title: Tax code
18375
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
18376
+ tax solution to determine taxation rules. You can pass in specific tax
18377
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
18378
+ offering you can also choose to instead use simple values of `unknown`,
18379
+ `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of
18380
+ the request then `tax_code` must be absent.
18095
18381
  currencies:
18096
18382
  type: array
18097
18383
  title: Add-on pricing
@@ -18100,7 +18386,7 @@ components:
18100
18386
  minItems: 1
18101
18387
  description: |
18102
18388
  * If `item_code`/`item_id` is part of the request and the item
18103
- has a default currency then `currencies` is optional. If the item does
18389
+ has a default currency, then `currencies` is optional. If the item does
18104
18390
  not have a default currency, then `currencies` is required. If `item_code`/`item_id`
18105
18391
  is not present `currencies` is required.
18106
18392
  * If the add-on's `tier_type` is `tiered`, `volume`, or `stairstep`,
@@ -18189,6 +18475,30 @@ components:
18189
18475
  to the `AddOn` then `accounting code` must be absent.
18190
18476
  pattern: "/^[a-z0-9_+-]+$/"
18191
18477
  maxLength: 20
18478
+ liability_gl_account_id:
18479
+ type: string
18480
+ title: General Ledger Account ID
18481
+ description: |
18482
+ The ID of a general ledger account. General ledger accounts are
18483
+ only accessible as a part of the Recurly RevRec Standard and
18484
+ Recurly RevRec Advanced features.
18485
+ maxLength: 13
18486
+ revenue_gl_account_id:
18487
+ type: string
18488
+ title: General Ledger Account ID
18489
+ description: |
18490
+ The ID of a general ledger account. General ledger accounts are
18491
+ only accessible as a part of the Recurly RevRec Standard and
18492
+ Recurly RevRec Advanced features.
18493
+ maxLength: 13
18494
+ performance_obligation_id:
18495
+ type: string
18496
+ title: Performance Obligation ID
18497
+ description: |
18498
+ The ID of a performance obligation. Performance obligations are
18499
+ only accessible as a part of the Recurly RevRec Standard and
18500
+ Recurly RevRec Advanced features.
18501
+ maxLength: 13
18192
18502
  revenue_schedule_type:
18193
18503
  title: Revenue schedule type
18194
18504
  description: When this add-on is invoiced, the line item will use this revenue
@@ -18215,14 +18525,14 @@ components:
18215
18525
  minimum: 0
18216
18526
  tax_code:
18217
18527
  type: string
18218
- title: Tax code
18219
- description: Optional field used by Avalara, Vertex, and Recurly's EU VAT
18220
- tax feature to determine taxation rules. If you have your own AvaTax or
18221
- Vertex account configured, use their tax codes to assign specific tax
18222
- rules. If you are using Recurly's EU VAT feature, you can use values of
18223
- `unknown`, `physical`, or `digital`. If an `Item` is associated to the
18224
- `AddOn` then `tax code` must be absent.
18225
18528
  maxLength: 50
18529
+ title: Tax code
18530
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
18531
+ tax solution to determine taxation rules. You can pass in specific tax
18532
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
18533
+ offering you can also choose to instead use simple values of `unknown`,
18534
+ `physical`, or `digital` tax codes. If an `Item` is associated to the
18535
+ `AddOn` then `tax_code` must be absent.
18226
18536
  display_quantity:
18227
18537
  type: boolean
18228
18538
  title: Display quantity?
@@ -18271,7 +18581,7 @@ components:
18271
18581
  `percentage_tiers` is an array of objects, which must have the set of tiers
18272
18582
  per currency and the currency code. The tier_type must be `volume` or `tiered`,
18273
18583
  if not, it must be absent. There must be one tier without an `ending_amount` value
18274
- which represents the final tier. This feature is currently in development and
18584
+ which represents the final tier. This feature is currently in development and
18275
18585
  requires approval and enablement, please contact support.
18276
18586
  BillingInfo:
18277
18587
  type: object
@@ -19210,6 +19520,171 @@ components:
19210
19520
  are removed from the accouts or subscriptions, will be hard deleted an
19211
19521
  no longer visible.
19212
19522
  readOnly: true
19523
+ GeneralLedgerAccountId:
19524
+ type: string
19525
+ title: General Ledger Account ID
19526
+ description: |
19527
+ The ID of a general ledger account. General ledger accounts are
19528
+ only accessible as a part of the Recurly RevRec Standard and
19529
+ Recurly RevRec Advanced features.
19530
+ maxLength: 13
19531
+ GeneralLedgerAccountCode:
19532
+ type: string
19533
+ title: Accounting code for the ledger account.
19534
+ description: |
19535
+ Unique code to identify the ledger account. Each code must start
19536
+ with a letter or number. The following special characters are
19537
+ allowed: `-_.,:`
19538
+ pattern: "/^[A-Za-z0-9](( *)?[\\-A-Za-z0-9_.,:])*$/"
19539
+ maxLength: 255
19540
+ GeneralLedgerAccountDescription:
19541
+ type: string
19542
+ title: Description
19543
+ description: Optional description.
19544
+ maxLength: 255
19545
+ GeneralLedgerAccount:
19546
+ type: object
19547
+ description: Full general ledger account details.
19548
+ properties:
19549
+ id:
19550
+ type: string
19551
+ title: General Ledger Account ID
19552
+ description: |
19553
+ The ID of a general ledger account. General ledger accounts are
19554
+ only accessible as a part of the Recurly RevRec Standard and
19555
+ Recurly RevRec Advanced features.
19556
+ maxLength: 13
19557
+ object:
19558
+ type: string
19559
+ title: Object type
19560
+ default: general_ledger_account
19561
+ readOnly: true
19562
+ code:
19563
+ type: string
19564
+ title: Accounting code for the ledger account.
19565
+ description: |
19566
+ Unique code to identify the ledger account. Each code must start
19567
+ with a letter or number. The following special characters are
19568
+ allowed: `-_.,:`
19569
+ pattern: "/^[A-Za-z0-9](( *)?[\\-A-Za-z0-9_.,:])*$/"
19570
+ maxLength: 255
19571
+ description:
19572
+ type: string
19573
+ title: Description
19574
+ description: Optional description.
19575
+ maxLength: 255
19576
+ account_type:
19577
+ "$ref": "#/components/schemas/GeneralLedgerAccountTypeEnum"
19578
+ created_at:
19579
+ type: string
19580
+ format: date-time
19581
+ title: Created at
19582
+ readOnly: true
19583
+ updated_at:
19584
+ type: string
19585
+ format: date-time
19586
+ title: Last updated at
19587
+ readOnly: true
19588
+ GeneralLedgerAccountList:
19589
+ type: object
19590
+ properties:
19591
+ object:
19592
+ type: string
19593
+ title: Object type
19594
+ description: Will always be List.
19595
+ has_more:
19596
+ type: boolean
19597
+ description: Indicates there are more results on subsequent pages.
19598
+ next:
19599
+ type: string
19600
+ description: Path to subsequent page of results.
19601
+ data:
19602
+ type: array
19603
+ items:
19604
+ "$ref": "#/components/schemas/GeneralLedgerAccount"
19605
+ GeneralLedgerAccountCreate:
19606
+ type: object
19607
+ description: Create a new liability or revenue general ledger account.
19608
+ properties:
19609
+ code:
19610
+ type: string
19611
+ title: Accounting code for the ledger account.
19612
+ description: |
19613
+ Unique code to identify the ledger account. Each code must start
19614
+ with a letter or number. The following special characters are
19615
+ allowed: `-_.,:`
19616
+ pattern: "/^[A-Za-z0-9](( *)?[\\-A-Za-z0-9_.,:])*$/"
19617
+ maxLength: 255
19618
+ description:
19619
+ type: string
19620
+ title: Description
19621
+ description: Optional description.
19622
+ maxLength: 255
19623
+ account_type:
19624
+ "$ref": "#/components/schemas/GeneralLedgerAccountTypeEnum"
19625
+ GeneralLedgerAccountUpdate:
19626
+ type: object
19627
+ description: Update an existing general ledger account.
19628
+ properties:
19629
+ code:
19630
+ type: string
19631
+ title: Accounting code for the ledger account.
19632
+ description: |
19633
+ Unique code to identify the ledger account. Each code must start
19634
+ with a letter or number. The following special characters are
19635
+ allowed: `-_.,:`
19636
+ pattern: "/^[A-Za-z0-9](( *)?[\\-A-Za-z0-9_.,:])*$/"
19637
+ maxLength: 255
19638
+ description:
19639
+ type: string
19640
+ title: Description
19641
+ description: Optional description.
19642
+ maxLength: 255
19643
+ PerformanceObligationId:
19644
+ type: string
19645
+ title: Performance Obligation ID
19646
+ description: |
19647
+ The ID of a performance obligation. Performance obligations are
19648
+ only accessible as a part of the Recurly RevRec Standard and
19649
+ Recurly RevRec Advanced features.
19650
+ maxLength: 13
19651
+ PerformanceObligation:
19652
+ type: object
19653
+ description: Performance obligation details
19654
+ properties:
19655
+ id:
19656
+ type: string
19657
+ title: Performance Obligation ID
19658
+ description: |
19659
+ The ID of a performance obligation. Performance obligations are
19660
+ only accessible as a part of the Recurly RevRec Standard and
19661
+ Recurly RevRec Advanced features.
19662
+ maxLength: 13
19663
+ name:
19664
+ title: Performance Obligation Name
19665
+ type: string
19666
+ created_at:
19667
+ title: Created At
19668
+ type: string
19669
+ readOnly: true
19670
+ format: date-time
19671
+ updated_at:
19672
+ title: Last updated at
19673
+ type: string
19674
+ readOnly: true
19675
+ format: date-time
19676
+ PerformanceObligationList:
19677
+ type: object
19678
+ description: List of Performance Obligations
19679
+ properties:
19680
+ object:
19681
+ title: Object type
19682
+ type: string
19683
+ data:
19684
+ title: Performance Obligation
19685
+ type: array
19686
+ items:
19687
+ "$ref": "#/components/schemas/PerformanceObligation"
19213
19688
  ItemMini:
19214
19689
  type: object
19215
19690
  title: Item mini details
@@ -19294,6 +19769,30 @@ components:
19294
19769
  revenue_schedule_type:
19295
19770
  title: Revenue schedule type
19296
19771
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
19772
+ performance_obligation_id:
19773
+ type: string
19774
+ title: Performance Obligation ID
19775
+ description: |
19776
+ The ID of a performance obligation. Performance obligations are
19777
+ only accessible as a part of the Recurly RevRec Standard and
19778
+ Recurly RevRec Advanced features.
19779
+ maxLength: 13
19780
+ liability_gl_account_id:
19781
+ type: string
19782
+ title: General Ledger Account ID
19783
+ description: |
19784
+ The ID of a general ledger account. General ledger accounts are
19785
+ only accessible as a part of the Recurly RevRec Standard and
19786
+ Recurly RevRec Advanced features.
19787
+ maxLength: 13
19788
+ revenue_gl_account_id:
19789
+ type: string
19790
+ title: General Ledger Account ID
19791
+ description: |
19792
+ The ID of a general ledger account. General ledger accounts are
19793
+ only accessible as a part of the Recurly RevRec Standard and
19794
+ Recurly RevRec Advanced features.
19795
+ maxLength: 13
19297
19796
  avalara_transaction_type:
19298
19797
  type: integer
19299
19798
  title: Avalara Transaction Type
@@ -19312,11 +19811,13 @@ components:
19312
19811
  minimum: 0
19313
19812
  tax_code:
19314
19813
  type: string
19315
- title: Tax code
19316
- description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
19317
- The tax code values are specific to each tax system. If you are using
19318
- Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
19319
19814
  maxLength: 50
19815
+ title: Tax code
19816
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
19817
+ tax solution to determine taxation rules. You can pass in specific tax
19818
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
19819
+ offering you can also choose to instead use simple values of `unknown`,
19820
+ `physical`, or `digital` tax codes.
19320
19821
  tax_exempt:
19321
19822
  type: boolean
19322
19823
  title: Tax exempt?
@@ -19378,6 +19879,30 @@ components:
19378
19879
  revenue_schedule_type:
19379
19880
  title: Revenue schedule type
19380
19881
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
19882
+ performance_obligation_id:
19883
+ type: string
19884
+ title: Performance Obligation ID
19885
+ description: |
19886
+ The ID of a performance obligation. Performance obligations are
19887
+ only accessible as a part of the Recurly RevRec Standard and
19888
+ Recurly RevRec Advanced features.
19889
+ maxLength: 13
19890
+ liability_gl_account_id:
19891
+ type: string
19892
+ title: General Ledger Account ID
19893
+ description: |
19894
+ The ID of a general ledger account. General ledger accounts are
19895
+ only accessible as a part of the Recurly RevRec Standard and
19896
+ Recurly RevRec Advanced features.
19897
+ maxLength: 13
19898
+ revenue_gl_account_id:
19899
+ type: string
19900
+ title: General Ledger Account ID
19901
+ description: |
19902
+ The ID of a general ledger account. General ledger accounts are
19903
+ only accessible as a part of the Recurly RevRec Standard and
19904
+ Recurly RevRec Advanced features.
19905
+ maxLength: 13
19381
19906
  avalara_transaction_type:
19382
19907
  type: integer
19383
19908
  title: Avalara Transaction Type
@@ -19396,11 +19921,13 @@ components:
19396
19921
  minimum: 0
19397
19922
  tax_code:
19398
19923
  type: string
19399
- title: Tax code
19400
- description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
19401
- The tax code values are specific to each tax system. If you are using
19402
- Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
19403
19924
  maxLength: 50
19925
+ title: Tax code
19926
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
19927
+ tax solution to determine taxation rules. You can pass in specific tax
19928
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
19929
+ offering you can also choose to instead use simple values of `unknown`,
19930
+ `physical`, or `digital` tax codes.
19404
19931
  tax_exempt:
19405
19932
  type: boolean
19406
19933
  title: Tax exempt?
@@ -19450,6 +19977,30 @@ components:
19450
19977
  revenue_schedule_type:
19451
19978
  title: Revenue schedule type
19452
19979
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
19980
+ performance_obligation_id:
19981
+ type: string
19982
+ title: Performance Obligation ID
19983
+ description: |
19984
+ The ID of a performance obligation. Performance obligations are
19985
+ only accessible as a part of the Recurly RevRec Standard and
19986
+ Recurly RevRec Advanced features.
19987
+ maxLength: 13
19988
+ liability_gl_account_id:
19989
+ type: string
19990
+ title: General Ledger Account ID
19991
+ description: |
19992
+ The ID of a general ledger account. General ledger accounts are
19993
+ only accessible as a part of the Recurly RevRec Standard and
19994
+ Recurly RevRec Advanced features.
19995
+ maxLength: 13
19996
+ revenue_gl_account_id:
19997
+ type: string
19998
+ title: General Ledger Account ID
19999
+ description: |
20000
+ The ID of a general ledger account. General ledger accounts are
20001
+ only accessible as a part of the Recurly RevRec Standard and
20002
+ Recurly RevRec Advanced features.
20003
+ maxLength: 13
19453
20004
  avalara_transaction_type:
19454
20005
  type: integer
19455
20006
  title: Avalara Transaction Type
@@ -19468,11 +20019,13 @@ components:
19468
20019
  minimum: 0
19469
20020
  tax_code:
19470
20021
  type: string
19471
- title: Tax code
19472
- description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
19473
- The tax code values are specific to each tax system. If you are using
19474
- Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
19475
20022
  maxLength: 50
20023
+ title: Tax code
20024
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
20025
+ tax solution to determine taxation rules. You can pass in specific tax
20026
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
20027
+ offering you can also choose to instead use simple values of `unknown`,
20028
+ `physical`, or `digital` tax codes.
19476
20029
  tax_exempt:
19477
20030
  type: boolean
19478
20031
  title: Tax exempt?
@@ -19922,7 +20475,16 @@ components:
19922
20475
  title: Amount
19923
20476
  description: |
19924
20477
  The amount to be refunded. The amount will be split between the line items.
19925
- If no amount is specified, it will default to refunding the total refundable amount on the invoice.
20478
+ If `type` is "amount" and no amount is specified, it will default to refunding the total refundable amount on the invoice. Can only be present if `type` is "amount".
20479
+ percentage:
20480
+ type: integer
20481
+ title: Percentage
20482
+ description: The percentage of the remaining balance to be refunded. The
20483
+ percentage will be split between the line items. If `type` is "percentage"
20484
+ and no percentage is specified, it will default to refunding 100% of the
20485
+ refundable amount on the invoice. Can only be present if `type` is "percentage".
20486
+ minimum: 1
20487
+ maximum: 100
19926
20488
  line_items:
19927
20489
  type: array
19928
20490
  title: Line items
@@ -19938,7 +20500,7 @@ components:
19938
20500
  - `all_credit` – Issues credit to the account for the entire amount of the refund. Only available when the Credit Invoices feature is enabled.
19939
20501
  - `all_transaction` – Refunds the entire amount back to transactions, using transactions from previous invoices if necessary. Only available when the Credit Invoices feature is enabled.
19940
20502
  default: credit_first
19941
- "$ref": "#/components/schemas/RefuneMethodEnum"
20503
+ "$ref": "#/components/schemas/RefundMethodEnum"
19942
20504
  credit_customer_notes:
19943
20505
  type: string
19944
20506
  title: Credit customer notes
@@ -20269,6 +20831,32 @@ components:
20269
20831
  format: float
20270
20832
  title: Discount
20271
20833
  description: The discount applied to the line item.
20834
+ liability_gl_account_code:
20835
+ type: string
20836
+ title: Accounting code for the ledger account.
20837
+ description: |
20838
+ Unique code to identify the ledger account. Each code must start
20839
+ with a letter or number. The following special characters are
20840
+ allowed: `-_.,:`
20841
+ pattern: "/^[A-Za-z0-9](( *)?[\\-A-Za-z0-9_.,:])*$/"
20842
+ maxLength: 255
20843
+ revenue_gl_account_code:
20844
+ type: string
20845
+ title: Accounting code for the ledger account.
20846
+ description: |
20847
+ Unique code to identify the ledger account. Each code must start
20848
+ with a letter or number. The following special characters are
20849
+ allowed: `-_.,:`
20850
+ pattern: "/^[A-Za-z0-9](( *)?[\\-A-Za-z0-9_.,:])*$/"
20851
+ maxLength: 255
20852
+ performance_obligation_id:
20853
+ type: string
20854
+ title: Performance Obligation ID
20855
+ description: |
20856
+ The ID of a performance obligation. Performance obligations are
20857
+ only accessible as a part of the Recurly RevRec Standard and
20858
+ Recurly RevRec Advanced features.
20859
+ maxLength: 13
20272
20860
  tax:
20273
20861
  type: number
20274
20862
  format: float
@@ -20303,13 +20891,19 @@ components:
20303
20891
  minimum: 0
20304
20892
  tax_code:
20305
20893
  type: string
20306
- title: Tax code
20307
- description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
20308
- The tax code values are specific to each tax system. If you are using
20309
- Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
20310
20894
  maxLength: 50
20895
+ title: Tax code
20896
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
20897
+ tax solution to determine taxation rules. You can pass in specific tax
20898
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
20899
+ offering you can also choose to instead use simple values of `unknown`,
20900
+ `physical`, or `digital` tax codes.
20311
20901
  tax_info:
20312
20902
  "$ref": "#/components/schemas/TaxInfo"
20903
+ origin_tax_address_source:
20904
+ "$ref": "#/components/schemas/OriginTaxAddressSourceEnum"
20905
+ destination_tax_address_source:
20906
+ "$ref": "#/components/schemas/DestinationTaxAddressSourceEnum"
20313
20907
  proration_rate:
20314
20908
  type: number
20315
20909
  format: float
@@ -20377,15 +20971,35 @@ components:
20377
20971
  quantity:
20378
20972
  type: integer
20379
20973
  title: Quantity
20380
- description: Line item quantity to be refunded.
20974
+ description: Line item quantity to be refunded. Must be less than or equal
20975
+ to the `quantity_remaining`. If `quantity_decimal`, `amount`, and `percentage`
20976
+ are not present, `quantity` is required. If `amount` or `percentage` is
20977
+ present, `quantity` must be absent.
20381
20978
  quantity_decimal:
20382
20979
  type: string
20383
20980
  title: Quantity Decimal
20384
- description: A floating-point alternative to Quantity. If this value is
20385
- present, it will be used in place of Quantity for calculations, and Quantity
20386
- will be the rounded integer value of this number. This field supports
20387
- up to 9 decimal places. The Decimal Quantity feature must be enabled to
20388
- utilize this field.
20981
+ description: Decimal quantity to refund. The `quantity_decimal` will be
20982
+ used to refund charges that has a NOT null quantity decimal. Must be less
20983
+ than or equal to the `quantity_decimal_remaining`. If `quantity`, `amount`,
20984
+ and `percentage` are not present, `quantity_decimal` is required. If `amount`
20985
+ or `percentage` is present, `quantity_decimal` must be absent. The Decimal
20986
+ Quantity feature must be enabled to utilize this field.
20987
+ amount:
20988
+ type: number
20989
+ format: float
20990
+ description: The specific amount to be refunded from the adjustment. Must
20991
+ be less than or equal to the adjustment's remaining balance. If `quantity`,
20992
+ `quantity_decimal` and `percentage` are not present, `amount` is required.
20993
+ If `quantity`, `quantity_decimal`, or `percentage` is present, `amount`
20994
+ must be absent.
20995
+ percentage:
20996
+ type: integer
20997
+ description: The percentage of the adjustment's remaining balance to refund.
20998
+ If `quantity`, `quantity_decimal` and `amount_in_cents` are not present,
20999
+ `percentage` is required. If `quantity`, `quantity_decimal` or `amount_in_cents`
21000
+ is present, `percentage` must be absent.
21001
+ minimum: 1
21002
+ maximum: 100
20389
21003
  prorate:
20390
21004
  type: boolean
20391
21005
  title: Prorate
@@ -20470,6 +21084,30 @@ components:
20470
21084
  is part of the request then `accounting_code` must be absent.
20471
21085
  pattern: "/^[a-z0-9_+-]+$/"
20472
21086
  maxLength: 20
21087
+ liability_gl_account_id:
21088
+ type: string
21089
+ title: General Ledger Account ID
21090
+ description: |
21091
+ The ID of a general ledger account. General ledger accounts are
21092
+ only accessible as a part of the Recurly RevRec Standard and
21093
+ Recurly RevRec Advanced features.
21094
+ maxLength: 13
21095
+ revenue_gl_account_id:
21096
+ type: string
21097
+ title: General Ledger Account ID
21098
+ description: |
21099
+ The ID of a general ledger account. General ledger accounts are
21100
+ only accessible as a part of the Recurly RevRec Standard and
21101
+ Recurly RevRec Advanced features.
21102
+ maxLength: 13
21103
+ performance_obligation_id:
21104
+ type: string
21105
+ title: Performance Obligation ID
21106
+ description: |
21107
+ The ID of a performance obligation. Performance obligations are
21108
+ only accessible as a part of the Recurly RevRec Standard and
21109
+ Recurly RevRec Advanced features.
21110
+ maxLength: 13
20473
21111
  tax_exempt:
20474
21112
  type: boolean
20475
21113
  title: Tax exempt?
@@ -20497,13 +21135,13 @@ components:
20497
21135
  minimum: 0
20498
21136
  tax_code:
20499
21137
  type: string
20500
- title: Tax code
20501
- description: Optional field used by Avalara, Vertex, and Recurly's EU VAT
20502
- tax feature to determine taxation rules. If you have your own AvaTax or
20503
- Vertex account configured, use their tax codes to assign specific tax
20504
- rules. If you are using Recurly's EU VAT feature, you can use values of
20505
- `unknown`, `physical`, or `digital`.
20506
21138
  maxLength: 50
21139
+ title: Tax code
21140
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
21141
+ tax solution to determine taxation rules. You can pass in specific tax
21142
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
21143
+ offering you can also choose to instead use simple values of `unknown`,
21144
+ `physical`, or `digital` tax codes.
20507
21145
  product_code:
20508
21146
  type: string
20509
21147
  title: Product code
@@ -20537,6 +21175,10 @@ components:
20537
21175
  format: date-time
20538
21176
  title: End date
20539
21177
  description: If this date is provided, it indicates the end of a time range.
21178
+ origin_tax_address_source:
21179
+ "$ref": "#/components/schemas/OriginTaxAddressSourceEnum"
21180
+ destination_tax_address_source:
21181
+ "$ref": "#/components/schemas/DestinationTaxAddressSourceEnum"
20540
21182
  required:
20541
21183
  - currency
20542
21184
  - unit_amount
@@ -20697,11 +21339,13 @@ components:
20697
21339
  minimum: 0
20698
21340
  tax_code:
20699
21341
  type: string
20700
- title: Tax code
20701
- description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
20702
- The tax code values are specific to each tax system. If you are using
20703
- Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
20704
21342
  maxLength: 50
21343
+ title: Tax code
21344
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
21345
+ tax solution to determine taxation rules. You can pass in specific tax
21346
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
21347
+ offering you can also choose to instead use simple values of `unknown`,
21348
+ `physical`, or `digital` tax codes.
20705
21349
  tax_exempt:
20706
21350
  type: boolean
20707
21351
  title: Tax exempt?
@@ -20834,6 +21478,54 @@ components:
20834
21478
  revenue_schedule_type:
20835
21479
  title: Revenue schedule type
20836
21480
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
21481
+ liability_gl_account_id:
21482
+ type: string
21483
+ title: General Ledger Account ID
21484
+ description: |
21485
+ The ID of a general ledger account. General ledger accounts are
21486
+ only accessible as a part of the Recurly RevRec Standard and
21487
+ Recurly RevRec Advanced features.
21488
+ maxLength: 13
21489
+ revenue_gl_account_id:
21490
+ type: string
21491
+ title: General Ledger Account ID
21492
+ description: |
21493
+ The ID of a general ledger account. General ledger accounts are
21494
+ only accessible as a part of the Recurly RevRec Standard and
21495
+ Recurly RevRec Advanced features.
21496
+ maxLength: 13
21497
+ performance_obligation_id:
21498
+ type: string
21499
+ title: Performance Obligation ID
21500
+ description: |
21501
+ The ID of a performance obligation. Performance obligations are
21502
+ only accessible as a part of the Recurly RevRec Standard and
21503
+ Recurly RevRec Advanced features.
21504
+ maxLength: 13
21505
+ setup_fee_liability_gl_account_id:
21506
+ type: string
21507
+ title: General Ledger Account ID
21508
+ description: |
21509
+ The ID of a general ledger account. General ledger accounts are
21510
+ only accessible as a part of the Recurly RevRec Standard and
21511
+ Recurly RevRec Advanced features.
21512
+ maxLength: 13
21513
+ setup_fee_revenue_gl_account_id:
21514
+ type: string
21515
+ title: General Ledger Account ID
21516
+ description: |
21517
+ The ID of a general ledger account. General ledger accounts are
21518
+ only accessible as a part of the Recurly RevRec Standard and
21519
+ Recurly RevRec Advanced features.
21520
+ maxLength: 13
21521
+ setup_fee_performance_obligation_id:
21522
+ type: string
21523
+ title: Performance Obligation ID
21524
+ description: |
21525
+ The ID of a performance obligation. Performance obligations are
21526
+ only accessible as a part of the Recurly RevRec Standard and
21527
+ Recurly RevRec Advanced features.
21528
+ maxLength: 13
20837
21529
  setup_fee_revenue_schedule_type:
20838
21530
  title: Setup fee revenue schedule type
20839
21531
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
@@ -20862,13 +21554,13 @@ components:
20862
21554
  minimum: 0
20863
21555
  tax_code:
20864
21556
  type: string
20865
- title: Tax code
20866
- description: Optional field used by Avalara, Vertex, and Recurly's EU VAT
20867
- tax feature to determine taxation rules. If you have your own AvaTax or
20868
- Vertex account configured, use their tax codes to assign specific tax
20869
- rules. If you are using Recurly's EU VAT feature, you can use values of
20870
- `unknown`, `physical`, or `digital`.
20871
21557
  maxLength: 50
21558
+ title: Tax code
21559
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
21560
+ tax solution to determine taxation rules. You can pass in specific tax
21561
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
21562
+ offering you can also choose to instead use simple values of `unknown`,
21563
+ `physical`, or `digital` tax codes.
20872
21564
  tax_exempt:
20873
21565
  type: boolean
20874
21566
  title: Tax exempt?
@@ -21050,6 +21742,54 @@ components:
21050
21742
  revenue_schedule_type:
21051
21743
  title: Revenue schedule type
21052
21744
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
21745
+ liability_gl_account_id:
21746
+ type: string
21747
+ title: General Ledger Account ID
21748
+ description: |
21749
+ The ID of a general ledger account. General ledger accounts are
21750
+ only accessible as a part of the Recurly RevRec Standard and
21751
+ Recurly RevRec Advanced features.
21752
+ maxLength: 13
21753
+ revenue_gl_account_id:
21754
+ type: string
21755
+ title: General Ledger Account ID
21756
+ description: |
21757
+ The ID of a general ledger account. General ledger accounts are
21758
+ only accessible as a part of the Recurly RevRec Standard and
21759
+ Recurly RevRec Advanced features.
21760
+ maxLength: 13
21761
+ performance_obligation_id:
21762
+ type: string
21763
+ title: Performance Obligation ID
21764
+ description: |
21765
+ The ID of a performance obligation. Performance obligations are
21766
+ only accessible as a part of the Recurly RevRec Standard and
21767
+ Recurly RevRec Advanced features.
21768
+ maxLength: 13
21769
+ setup_fee_liability_gl_account_id:
21770
+ type: string
21771
+ title: General Ledger Account ID
21772
+ description: |
21773
+ The ID of a general ledger account. General ledger accounts are
21774
+ only accessible as a part of the Recurly RevRec Standard and
21775
+ Recurly RevRec Advanced features.
21776
+ maxLength: 13
21777
+ setup_fee_revenue_gl_account_id:
21778
+ type: string
21779
+ title: General Ledger Account ID
21780
+ description: |
21781
+ The ID of a general ledger account. General ledger accounts are
21782
+ only accessible as a part of the Recurly RevRec Standard and
21783
+ Recurly RevRec Advanced features.
21784
+ maxLength: 13
21785
+ setup_fee_performance_obligation_id:
21786
+ type: string
21787
+ title: Performance Obligation ID
21788
+ description: |
21789
+ The ID of a performance obligation. Performance obligations are
21790
+ only accessible as a part of the Recurly RevRec Standard and
21791
+ Recurly RevRec Advanced features.
21792
+ maxLength: 13
21053
21793
  setup_fee_revenue_schedule_type:
21054
21794
  title: Setup fee revenue schedule type
21055
21795
  "$ref": "#/components/schemas/RevenueScheduleTypeEnum"
@@ -21078,13 +21818,13 @@ components:
21078
21818
  minimum: 0
21079
21819
  tax_code:
21080
21820
  type: string
21081
- title: Tax code
21082
- description: Optional field used by Avalara, Vertex, and Recurly's EU VAT
21083
- tax feature to determine taxation rules. If you have your own AvaTax or
21084
- Vertex account configured, use their tax codes to assign specific tax
21085
- rules. If you are using Recurly's EU VAT feature, you can use values of
21086
- `unknown`, `physical`, or `digital`.
21087
21821
  maxLength: 50
21822
+ title: Tax code
21823
+ description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
21824
+ tax solution to determine taxation rules. You can pass in specific tax
21825
+ codes using any of these tax integrations. For Recurly's In-the-Box tax
21826
+ offering you can also choose to instead use simple values of `unknown`,
21827
+ `physical`, or `digital` tax codes.
21088
21828
  tax_exempt:
21089
21829
  type: boolean
21090
21830
  title: Tax exempt?
@@ -21508,6 +22248,30 @@ components:
21508
22248
  - `FR010200` – Delivery by Company Vehicle After Passage of Title
21509
22249
  - `NT` – Non-Taxable
21510
22250
  maxLength: 50
22251
+ liability_gl_account_id:
22252
+ type: string
22253
+ title: General Ledger Account ID
22254
+ description: |
22255
+ The ID of a general ledger account. General ledger accounts are
22256
+ only accessible as a part of the Recurly RevRec Standard and
22257
+ Recurly RevRec Advanced features.
22258
+ maxLength: 13
22259
+ revenue_gl_account_id:
22260
+ type: string
22261
+ title: General Ledger Account ID
22262
+ description: |
22263
+ The ID of a general ledger account. General ledger accounts are
22264
+ only accessible as a part of the Recurly RevRec Standard and
22265
+ Recurly RevRec Advanced features.
22266
+ maxLength: 13
22267
+ performance_obligation_id:
22268
+ type: string
22269
+ title: Performance Obligation ID
22270
+ description: |
22271
+ The ID of a performance obligation. Performance obligations are
22272
+ only accessible as a part of the Recurly RevRec Standard and
22273
+ Recurly RevRec Advanced features.
22274
+ maxLength: 13
21511
22275
  created_at:
21512
22276
  type: string
21513
22277
  format: date-time
@@ -21580,6 +22344,30 @@ components:
21580
22344
  - `FR010200` – Delivery by Company Vehicle After Passage of Title
21581
22345
  - `NT` – Non-Taxable
21582
22346
  maxLength: 50
22347
+ liability_gl_account_id:
22348
+ type: string
22349
+ title: General Ledger Account ID
22350
+ description: |
22351
+ The ID of a general ledger account. General ledger accounts are
22352
+ only accessible as a part of the Recurly RevRec Standard and
22353
+ Recurly RevRec Advanced features.
22354
+ maxLength: 13
22355
+ revenue_gl_account_id:
22356
+ type: string
22357
+ title: General Ledger Account ID
22358
+ description: |
22359
+ The ID of a general ledger account. General ledger accounts are
22360
+ only accessible as a part of the Recurly RevRec Standard and
22361
+ Recurly RevRec Advanced features.
22362
+ maxLength: 13
22363
+ performance_obligation_id:
22364
+ type: string
22365
+ title: Performance Obligation ID
22366
+ description: |
22367
+ The ID of a performance obligation. Performance obligations are
22368
+ only accessible as a part of the Recurly RevRec Standard and
22369
+ Recurly RevRec Advanced features.
22370
+ maxLength: 13
21583
22371
  required:
21584
22372
  - code
21585
22373
  - name
@@ -21618,6 +22406,30 @@ components:
21618
22406
  - `FR010200` – Delivery by Company Vehicle After Passage of Title
21619
22407
  - `NT` – Non-Taxable
21620
22408
  maxLength: 50
22409
+ liability_gl_account_id:
22410
+ type: string
22411
+ title: General Ledger Account ID
22412
+ description: |
22413
+ The ID of a general ledger account. General ledger accounts are
22414
+ only accessible as a part of the Recurly RevRec Standard and
22415
+ Recurly RevRec Advanced features.
22416
+ maxLength: 13
22417
+ revenue_gl_account_id:
22418
+ type: string
22419
+ title: General Ledger Account ID
22420
+ description: |
22421
+ The ID of a general ledger account. General ledger accounts are
22422
+ only accessible as a part of the Recurly RevRec Standard and
22423
+ Recurly RevRec Advanced features.
22424
+ maxLength: 13
22425
+ performance_obligation_id:
22426
+ type: string
22427
+ title: Performance Obligation ID
22428
+ description: |
22429
+ The ID of a performance obligation. Performance obligations are
22430
+ only accessible as a part of the Recurly RevRec Standard and
22431
+ Recurly RevRec Advanced features.
22432
+ maxLength: 13
21621
22433
  ShippingFeeCreate:
21622
22434
  type: object
21623
22435
  properties:
@@ -23980,8 +24792,6 @@ components:
23980
24792
  object:
23981
24793
  type: string
23982
24794
  title: Object type
23983
- external_subscription:
23984
- "$ref": "#/components/schemas/ExternalSubscription"
23985
24795
  started_at:
23986
24796
  type: string
23987
24797
  format: date-time
@@ -24279,6 +25089,12 @@ components:
24279
25089
  "$ref": "#/components/schemas/AccountMini"
24280
25090
  external_product_reference:
24281
25091
  "$ref": "#/components/schemas/ExternalProductReferenceMini"
25092
+ external_payment_phases:
25093
+ type: array
25094
+ title: External payment phases
25095
+ description: The phases of the external subscription payment lifecycle.
25096
+ items:
25097
+ "$ref": "#/components/schemas/ExternalPaymentPhase"
24282
25098
  external_id:
24283
25099
  type: string
24284
25100
  title: External Id
@@ -24352,6 +25168,12 @@ components:
24352
25168
  description: An indication of whether or not the external subscription was
24353
25169
  purchased in a sandbox environment.
24354
25170
  default: false
25171
+ imported:
25172
+ type: boolean
25173
+ title: Imported
25174
+ description: An indication of whether or not the external subscription was
25175
+ created by a historical data import.
25176
+ default: false
24355
25177
  created_at:
24356
25178
  type: string
24357
25179
  format: date-time
@@ -24682,6 +25504,10 @@ components:
24682
25504
  description: Address information for the business entity that will be used
24683
25505
  for calculating taxes.
24684
25506
  "$ref": "#/components/schemas/Address"
25507
+ origin_tax_address_source:
25508
+ "$ref": "#/components/schemas/OriginTaxAddressSourceEnum"
25509
+ destination_tax_address_source:
25510
+ "$ref": "#/components/schemas/DestinationTaxAddressSourceEnum"
24685
25511
  default_vat_number:
24686
25512
  type: string
24687
25513
  title: Default VAT number
@@ -24699,6 +25525,22 @@ components:
24699
25525
  items:
24700
25526
  type: string
24701
25527
  title: Country code
25528
+ default_liability_gl_account_id:
25529
+ type: string
25530
+ title: General Ledger Account ID
25531
+ description: |
25532
+ The ID of a general ledger account. General ledger accounts are
25533
+ only accessible as a part of the Recurly RevRec Standard and
25534
+ Recurly RevRec Advanced features.
25535
+ maxLength: 13
25536
+ default_revenue_gl_account_id:
25537
+ type: string
25538
+ title: General Ledger Account ID
25539
+ description: |
25540
+ The ID of a general ledger account. General ledger accounts are
25541
+ only accessible as a part of the Recurly RevRec Standard and
25542
+ Recurly RevRec Advanced features.
25543
+ maxLength: 13
24702
25544
  created_at:
24703
25545
  type: string
24704
25546
  format: date-time
@@ -24797,6 +25639,30 @@ components:
24797
25639
  description: The delivery details for the gift card.
24798
25640
  readOnly: true
24799
25641
  "$ref": "#/components/schemas/GiftCardDelivery"
25642
+ performance_obligation_id:
25643
+ type: string
25644
+ title: Performance Obligation ID
25645
+ description: |
25646
+ The ID of a performance obligation. Performance obligations are
25647
+ only accessible as a part of the Recurly RevRec Standard and
25648
+ Recurly RevRec Advanced features.
25649
+ maxLength: 13
25650
+ liability_gl_account_id:
25651
+ type: string
25652
+ title: General Ledger Account ID
25653
+ description: |
25654
+ The ID of a general ledger account. General ledger accounts are
25655
+ only accessible as a part of the Recurly RevRec Standard and
25656
+ Recurly RevRec Advanced features.
25657
+ maxLength: 13
25658
+ revenue_gl_account_id:
25659
+ type: string
25660
+ title: General Ledger Account ID
25661
+ description: |
25662
+ The ID of a general ledger account. General ledger accounts are
25663
+ only accessible as a part of the Recurly RevRec Standard and
25664
+ Recurly RevRec Advanced features.
25665
+ maxLength: 13
24800
25666
  created_at:
24801
25667
  type: string
24802
25668
  format: date-time
@@ -25407,8 +26273,9 @@ components:
25407
26273
  type: string
25408
26274
  enum:
25409
26275
  - amount
26276
+ - percentage
25410
26277
  - line_items
25411
- RefuneMethodEnum:
26278
+ RefundMethodEnum:
25412
26279
  type: string
25413
26280
  enum:
25414
26281
  - all_credit
@@ -25422,6 +26289,7 @@ components:
25422
26289
  - ach
25423
26290
  - amazon
25424
26291
  - apple_pay
26292
+ - braintree_apple_pay
25425
26293
  - check
25426
26294
  - credit_card
25427
26295
  - eft
@@ -25615,6 +26483,7 @@ components:
25615
26483
  - amazon_billing_agreement
25616
26484
  - apple_pay
25617
26485
  - bank_account_info
26486
+ - braintree_apple_pay
25618
26487
  - check
25619
26488
  - credit_card
25620
26489
  - eft
@@ -25978,3 +26847,30 @@ components:
25978
26847
  type: string
25979
26848
  enum:
25980
26849
  - paid
26850
+ GeneralLedgerAccountTypeEnum:
26851
+ type: string
26852
+ enum:
26853
+ - liability
26854
+ - revenue
26855
+ OriginTaxAddressSourceEnum:
26856
+ type: string
26857
+ title: Origin tax address source
26858
+ description: The source of the address that will be used as the origin in determining
26859
+ taxes. Available only when the site is on an Elite plan. A value of "origin"
26860
+ refers to the "Business entity tax address". A value of "destination" refers
26861
+ to the "Customer tax address".
26862
+ default: origin
26863
+ enum:
26864
+ - origin
26865
+ - destination
26866
+ DestinationTaxAddressSourceEnum:
26867
+ type: string
26868
+ title: Destination tax address source
26869
+ description: The source of the address that will be used as the destinaion in
26870
+ determining taxes. Available only when the site is on an Elite plan. A value
26871
+ of "destination" refers to the "Customer tax address". A value of "origin"
26872
+ refers to the "Business entity tax address".
26873
+ default: destination
26874
+ enum:
26875
+ - destination
26876
+ - origin