You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+181-7
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Quaderno-ruby is a ruby wrapper for the [Quaderno API](https://developers.quaderno.io/api).
4
4
5
-
Current version is 2.2.0 → See the changelog [here](https://github.com/quaderno/quaderno-ruby/blob/master/changelog.md).
5
+
Current version is 3.0.0 → See the changelog [here](https://github.com/quaderno/quaderno-ruby/blob/master/changelog.md).
6
6
7
7
To learn more about our API and ecosystem, check [developers.quaderno.io](https://developers.quaderno.io).
8
8
@@ -132,8 +132,6 @@ will return the contact with the id passed as parameter.
132
132
133
133
will return the contact with the customer id passed as parameter.
134
134
135
-
*_Note_: `Quaderno::Contact.retrieve_customer` has been deprecated in favor of `Quaderno::Contact.retrieve`
136
-
137
135
### Creating a new contact
138
136
139
137
```ruby
@@ -567,23 +565,101 @@ will update the specified webhook with the data of the hash passed as second par
567
565
568
566
will delete the webhook with the id passed as parameter. If the deletion was successful, an instance of `Quaderno::Webhook` with the `deleted` attribute set to `true` will be returned.
will update the specified tax id with the data of the hash passed as second parameter.
647
+
648
+
### Deleting a tax id
649
+
650
+
```ruby
651
+
Quaderno::TaxId.delete(id) #=> Quaderno::TaxId
652
+
```
653
+
654
+
will delete the tax id with the id passed as parameter. If the deletion was successful, an instance of `Quaderno::TaxId` with the `deleted` attribute set to `true` will be returned.
655
+
656
+
### Validate a tax id
581
657
582
658
```ruby
583
659
country ='IE'
584
660
tax_id ='IE6388047V'
585
661
586
-
result =Quaderno::Tax.validate_tax_id(country, tax_id) #=> Quaderno::Tax
662
+
result =Quaderno::TaxId.validate(country, tax_id) #=> Quaderno::TaxId
587
663
588
664
result.valid #=> Boolean or nil
589
665
```
@@ -667,6 +743,91 @@ will return the report request with the id passed as parameter.
667
743
668
744
will create a report request using the information of the hash passed as parameter and return an instance of Quaderno::ReportRequest with the created report request.
669
745
746
+
## Connect: Managing custom accounts
747
+
748
+
### Getting custom accounts
749
+
750
+
```ruby
751
+
Quaderno::Account.all #=> Array
752
+
```
753
+
754
+
will return an array with all your custom accounts
755
+
756
+
### Finding a custom account
757
+
758
+
```ruby
759
+
Quaderno::Account.find(id) #=> Quaderno::Account
760
+
```
761
+
762
+
will return the account with the id passed as parameter.
0 commit comments