@spritz-finance/api-client 0.3.0 → 0.3.2

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.
package/README.md CHANGED
@@ -735,34 +735,31 @@ const onrampPayment = await client.onrampPayment.create({
735
735
  ### Retrieve all onramp payments for an account
736
736
 
737
737
  ```typescript
738
- const payments = await client.onrampPayment.list()
738
+ const payments = await client.onrampPayment.list()[
739
+ // Example response
739
740
 
740
- // Example response
741
-
742
- [
743
741
  {
744
- "id": "653fab35ad263e5ae8b0e605",
745
- "amount": 100,
746
- "feeAmount": 1.5,
747
- "depositInstructions": {
748
- "amount": 101.5,
749
- "currency": "USD",
750
- "bankName": "Bank of Nowhere",
751
- "bankAddress": "1800 North Pole St., Orlando, FL 32801",
752
- "bankBeneficiaryName": "Bridge Ventures Inc",
753
- "bankRoutingNumber": "123456789",
754
- "bankAccountNumber": "11223344556677",
755
- "paymentMethod": "WIRE",
756
- "depositMessage": "BVI72D90851F051F4189"
742
+ id: '653fab35ad263e5ae8b0e605',
743
+ amount: 100,
744
+ feeAmount: 1.5,
745
+ depositInstructions: {
746
+ amount: 101.5,
747
+ currency: 'USD',
748
+ bankName: 'Bank of Nowhere',
749
+ bankAddress: '1800 North Pole St., Orlando, FL 32801',
750
+ bankBeneficiaryName: 'Bridge Ventures Inc',
751
+ bankRoutingNumber: '123456789',
752
+ bankAccountNumber: '11223344556677',
753
+ paymentMethod: 'WIRE',
754
+ depositMessage: 'BVI72D90851F051F4189',
757
755
  },
758
- "network": "ethereum",
759
- "token": "USDC",
760
- "address": "0xbb76483e33e01315438d8f6cf1aee9c9b85f433b",
761
- "status": "AWAITING_FUNDS",
762
- "createdAt": "2023-10-30T13:10:13.521Z"
756
+ network: 'ethereum',
757
+ token: 'USDC',
758
+ address: '0xbb76483e33e01315438d8f6cf1aee9c9b85f433b',
759
+ status: 'AWAITING_FUNDS',
760
+ createdAt: '2023-10-30T13:10:13.521Z',
763
761
  }
764
762
  ]
765
-
766
763
  ```
767
764
 
768
765
  ## Webhooks