ynab 3.7.0 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35929f4460ec30abd1a21c5c21542835c97e8f6bded66fb3f4ed15d13ec9658a
4
- data.tar.gz: 9046362bc5a2c09a4a3fef4dd670182f9718a44bb55b97d938eea75201983bee
3
+ metadata.gz: 592749c8eb00343aa7aea03bdf030ae1d7fa59813714fb01c16ef0aafaeae866
4
+ data.tar.gz: f8362f46d082ea4a7129b762dd514c66f0c61010995acddb5e3c1b7d1b1ef80f
5
5
  SHA512:
6
- metadata.gz: d26afdb2a437e4c4a795345f0aeb1d91ec30db31b2b4e89af3b3b1e80918da8480974e755772c90efd18ee4f557a86f7e69d2dfb4b86a3655cb7c37a23040193
7
- data.tar.gz: 36ce35994f670df1ded39b9738f8451a84fc5205dbdf36486ba94e01acb61198222f682baa746e5b52a08a4e6ff78b900c030c8df80f5c39f228cda733c87877
6
+ metadata.gz: 68bcc1e2b082320908fed204d10b87970d45163065a41d1a5b9c306ae7b45ac0cd4589adbe05f365e6b5bb48551bb7bffd93b73b8f6683a1bd6925f15d98336a
7
+ data.tar.gz: 22a9d1ae05fc0ebcf3c09c9230450f3e678b983d5d672c02303e3d8e7c5371a13dae4c09dee9cde7e327bd2872f3f67122c7dd5f0b7e8c7e3003988ea872a4e6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ynab (3.6.0)
4
+ ynab (3.7.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -5,10 +5,10 @@ All URIs are relative to *https://api.ynab.com/v1*
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**create_scheduled_transaction**](ScheduledTransactionsApi.md#create_scheduled_transaction) | **POST** /budgets/{budget_id}/scheduled_transactions | Create a single scheduled transaction |
8
- | [**delete_scheduled_transaction**](ScheduledTransactionsApi.md#delete_scheduled_transaction) | **DELETE** /budgets/{budget_id}/scheduled_transactions | Deletes an existing scheduled transaction |
8
+ | [**delete_scheduled_transaction**](ScheduledTransactionsApi.md#delete_scheduled_transaction) | **DELETE** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Deletes an existing scheduled transaction |
9
9
  | [**get_scheduled_transaction_by_id**](ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | **GET** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Single scheduled transaction |
10
10
  | [**get_scheduled_transactions**](ScheduledTransactionsApi.md#get_scheduled_transactions) | **GET** /budgets/{budget_id}/scheduled_transactions | List scheduled transactions |
11
- | [**update_scheduled_transaction**](ScheduledTransactionsApi.md#update_scheduled_transaction) | **PUT** /budgets/{budget_id}/scheduled_transactions | Updates an existing scheduled transaction |
11
+ | [**update_scheduled_transaction**](ScheduledTransactionsApi.md#update_scheduled_transaction) | **PUT** /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} | Updates an existing scheduled transaction |
12
12
 
13
13
 
14
14
  ## create_scheduled_transaction
@@ -120,7 +120,7 @@ module YNAB
120
120
  fail ArgumentError, "Missing the required parameter 'scheduled_transaction_id' when calling ScheduledTransactionsApi.delete_scheduled_transaction"
121
121
  end
122
122
  # resource path
123
- local_var_path = '/budgets/{budget_id}/scheduled_transactions'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))
123
+ local_var_path = '/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))
124
124
 
125
125
  # query parameters
126
126
  query_params = opts[:query_params] || {}
@@ -330,7 +330,7 @@ module YNAB
330
330
  fail ArgumentError, "Missing the required parameter 'put_scheduled_transaction_wrapper' when calling ScheduledTransactionsApi.update_scheduled_transaction"
331
331
  end
332
332
  # resource path
333
- local_var_path = '/budgets/{budget_id}/scheduled_transactions'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))
333
+ local_var_path = '/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))
334
334
 
335
335
  # query parameters
336
336
  query_params = opts[:query_params] || {}
data/lib/ynab/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module YNAB
2
- VERSION = '3.7.0'
2
+ VERSION = '3.8.0'
3
3
  end
data/open_api_spec.yaml CHANGED
@@ -1580,12 +1580,13 @@ paths:
1580
1580
  schema:
1581
1581
  $ref: "#/components/schemas/ErrorResponse"
1582
1582
  x-codegen-request-body-name: data
1583
- put:
1583
+ /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}:
1584
+ get:
1584
1585
  tags:
1585
1586
  - Scheduled Transactions
1586
- summary: Updates an existing scheduled transaction
1587
- description: Updates a single scheduled transaction
1588
- operationId: updateScheduledTransaction
1587
+ summary: Single scheduled transaction
1588
+ description: Returns a single scheduled transaction
1589
+ operationId: getScheduledTransactionById
1589
1590
  parameters:
1590
1591
  - name: budget_id
1591
1592
  in: path
@@ -1602,34 +1603,31 @@ paths:
1602
1603
  required: true
1603
1604
  schema:
1604
1605
  type: string
1605
- requestBody:
1606
- description: The scheduled transaction to update
1607
- content:
1608
- "application/json":
1609
- schema:
1610
- $ref: "#/components/schemas/PutScheduledTransactionWrapper"
1611
- required: true
1612
1606
  responses:
1613
1607
  "200":
1614
- description: The scheduled transaction was successfully updated
1608
+ description: The requested Scheduled Transaction
1615
1609
  content:
1616
1610
  application/json:
1617
1611
  schema:
1618
1612
  $ref: "#/components/schemas/ScheduledTransactionResponse"
1619
- "400":
1620
- description: >-
1621
- The request could not be understood due to malformed syntax or
1622
- validation error(s)
1613
+ "404":
1614
+ description: The scheduled transaction was not found
1623
1615
  content:
1624
1616
  application/json:
1625
1617
  schema:
1626
1618
  $ref: "#/components/schemas/ErrorResponse"
1627
- delete:
1619
+ default:
1620
+ description: An error occurred
1621
+ content:
1622
+ application/json:
1623
+ schema:
1624
+ $ref: "#/components/schemas/ErrorResponse"
1625
+ put:
1628
1626
  tags:
1629
1627
  - Scheduled Transactions
1630
- summary: Deletes an existing scheduled transaction
1631
- description: Deletes a scheduled transaction
1632
- operationId: deleteScheduledTransaction
1628
+ summary: Updates an existing scheduled transaction
1629
+ description: Updates a single scheduled transaction
1630
+ operationId: updateScheduledTransaction
1633
1631
  parameters:
1634
1632
  - name: budget_id
1635
1633
  in: path
@@ -1646,26 +1644,34 @@ paths:
1646
1644
  required: true
1647
1645
  schema:
1648
1646
  type: string
1647
+ requestBody:
1648
+ description: The scheduled transaction to update
1649
+ content:
1650
+ "application/json":
1651
+ schema:
1652
+ $ref: "#/components/schemas/PutScheduledTransactionWrapper"
1653
+ required: true
1649
1654
  responses:
1650
1655
  "200":
1651
- description: The scheduled transaction was successfully deleted
1656
+ description: The scheduled transaction was successfully updated
1652
1657
  content:
1653
1658
  application/json:
1654
1659
  schema:
1655
1660
  $ref: "#/components/schemas/ScheduledTransactionResponse"
1656
- "404":
1657
- description: The scheduled transaction was not found
1661
+ "400":
1662
+ description: >-
1663
+ The request could not be understood due to malformed syntax or
1664
+ validation error(s)
1658
1665
  content:
1659
1666
  application/json:
1660
1667
  schema:
1661
1668
  $ref: "#/components/schemas/ErrorResponse"
1662
- /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}:
1663
- get:
1669
+ delete:
1664
1670
  tags:
1665
1671
  - Scheduled Transactions
1666
- summary: Single scheduled transaction
1667
- description: Returns a single scheduled transaction
1668
- operationId: getScheduledTransactionById
1672
+ summary: Deletes an existing scheduled transaction
1673
+ description: Deletes a scheduled transaction
1674
+ operationId: deleteScheduledTransaction
1669
1675
  parameters:
1670
1676
  - name: budget_id
1671
1677
  in: path
@@ -1684,7 +1690,7 @@ paths:
1684
1690
  type: string
1685
1691
  responses:
1686
1692
  "200":
1687
- description: The requested Scheduled Transaction
1693
+ description: The scheduled transaction was successfully deleted
1688
1694
  content:
1689
1695
  application/json:
1690
1696
  schema:
@@ -1695,12 +1701,6 @@ paths:
1695
1701
  application/json:
1696
1702
  schema:
1697
1703
  $ref: "#/components/schemas/ErrorResponse"
1698
- default:
1699
- description: An error occurred
1700
- content:
1701
- application/json:
1702
- schema:
1703
- $ref: "#/components/schemas/ErrorResponse"
1704
1704
  components:
1705
1705
  schemas:
1706
1706
  ErrorResponse:
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ynab
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - YNAB
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-10 00:00:00.000000000 Z
10
+ date: 2025-03-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: typhoeus
@@ -367,7 +367,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
367
367
  - !ruby/object:Gem::Version
368
368
  version: '0'
369
369
  requirements: []
370
- rubygems_version: 3.6.5
370
+ rubygems_version: 3.6.6
371
371
  specification_version: 4
372
372
  summary: Official Ruby client for the YNAB API
373
373
  test_files: