cybrid_api_organization_ruby 0.118.121 → 0.118.125

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +18 -6
  4. data/cybrid_api_organization_ruby.gemspec +2 -2
  5. data/docs/PostSubscriptionDeliveryOrganizationModel.md +20 -0
  6. data/docs/SubscriptionDeliveriesOrganizationApi.md +236 -0
  7. data/docs/SubscriptionDeliveryListOrganizationModel.md +24 -0
  8. data/docs/SubscriptionDeliveryOrganizationModel.md +38 -0
  9. data/docs/SubscriptionEventListOrganizationModel.md +24 -0
  10. data/docs/SubscriptionEventOrganizationModel.md +30 -0
  11. data/docs/SubscriptionEventsOrganizationApi.md +159 -0
  12. data/docs/SubscriptionOrganizationModel.md +6 -0
  13. data/docs/SubscriptionsOrganizationApi.md +11 -5
  14. data/lib/cybrid_api_organization_ruby/api/organizations_organization_api.rb +2 -2
  15. data/lib/cybrid_api_organization_ruby/api/subscription_deliveries_organization_api.rb +237 -0
  16. data/lib/cybrid_api_organization_ruby/api/subscription_events_organization_api.rb +163 -0
  17. data/lib/cybrid_api_organization_ruby/api/subscriptions_organization_api.rb +8 -2
  18. data/lib/cybrid_api_organization_ruby/api_client.rb +2 -2
  19. data/lib/cybrid_api_organization_ruby/api_error.rb +2 -2
  20. data/lib/cybrid_api_organization_ruby/configuration.rb +2 -2
  21. data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +2 -2
  22. data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +2 -2
  23. data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +2 -2
  24. data/lib/cybrid_api_organization_ruby/models/post_subscription_delivery_organization_model.rb +240 -0
  25. data/lib/cybrid_api_organization_ruby/models/post_subscription_organization_model.rb +2 -2
  26. data/lib/cybrid_api_organization_ruby/models/subscription_delivery_list_organization_model.rb +328 -0
  27. data/lib/cybrid_api_organization_ruby/models/subscription_delivery_organization_model.rb +383 -0
  28. data/lib/cybrid_api_organization_ruby/models/subscription_environment_organization_model.rb +2 -2
  29. data/lib/cybrid_api_organization_ruby/models/subscription_event_list_organization_model.rb +328 -0
  30. data/lib/cybrid_api_organization_ruby/models/subscription_event_organization_model.rb +305 -0
  31. data/lib/cybrid_api_organization_ruby/models/subscription_list_organization_model.rb +2 -2
  32. data/lib/cybrid_api_organization_ruby/models/subscription_organization_model.rb +63 -8
  33. data/lib/cybrid_api_organization_ruby/models/subscription_state_organization_model.rb +2 -2
  34. data/lib/cybrid_api_organization_ruby/models/subscription_type_organization_model.rb +2 -2
  35. data/lib/cybrid_api_organization_ruby/version.rb +3 -3
  36. data/lib/cybrid_api_organization_ruby.rb +9 -2
  37. data/spec/api/organizations_organization_api_spec.rb +2 -2
  38. data/spec/api/subscription_deliveries_organization_api_spec.rb +75 -0
  39. data/spec/api/subscription_events_organization_api_spec.rb +61 -0
  40. data/spec/api/subscriptions_organization_api_spec.rb +4 -2
  41. data/spec/api_client_spec.rb +2 -2
  42. data/spec/configuration_spec.rb +2 -2
  43. data/spec/models/error_response_organization_model_spec.rb +2 -2
  44. data/spec/models/organization_organization_model_spec.rb +2 -2
  45. data/spec/models/patch_organization_organization_model_spec.rb +2 -2
  46. data/spec/models/post_subscription_delivery_organization_model_spec.rb +40 -0
  47. data/spec/models/post_subscription_organization_model_spec.rb +2 -2
  48. data/spec/models/subscription_delivery_list_organization_model_spec.rb +52 -0
  49. data/spec/models/subscription_delivery_organization_model_spec.rb +98 -0
  50. data/spec/models/subscription_environment_organization_model_spec.rb +2 -2
  51. data/spec/models/subscription_event_list_organization_model_spec.rb +52 -0
  52. data/spec/models/subscription_event_organization_model_spec.rb +70 -0
  53. data/spec/models/subscription_list_organization_model_spec.rb +2 -2
  54. data/spec/models/subscription_organization_model_spec.rb +20 -2
  55. data/spec/models/subscription_state_organization_model_spec.rb +2 -2
  56. data/spec/models/subscription_type_organization_model_spec.rb +2 -2
  57. data/spec/spec_helper.rb +2 -2
  58. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  59. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  60. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.2/gem_make.out +5 -5
  61. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  62. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.1/gem_make.out +5 -5
  63. metadata +30 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c24d44eb6ea08fa661357f0217242e7fb0c0fc8ce71fc2c09198573346e4af7
4
- data.tar.gz: '0886e68c7b0a6a2c5c46a57c7a66229e73991e7e728cbf5291a7ef41f747ac33'
3
+ metadata.gz: 1f62df2916372698537be2b5d3b5f4c70fbaa426af010bf33e071bcefae7166c
4
+ data.tar.gz: f0565955c44c2a894906cec1c2bb0f59d66e089d92f9b9db3b0d3c13f0280361
5
5
  SHA512:
6
- metadata.gz: 1f69680d14e81eaf60fd3daee7289c82a054291e8e1e8c5b1c4644d1e13eda9a44fc58cb4dc010288b99db9b5aeceed02d784f2401868e503e43737b66d7e7a6
7
- data.tar.gz: 633a6b94e884e1a2cf3f1847b15fea97abe736d07cf423569251d95ed76c6b6f7ffddc761a7ddc2e79b6c46b7300857506986b3a560ef99e8ae55ed2a41b7890
6
+ metadata.gz: 7365c1235201af2845e25e0ed18548fac0227df5e42cd5e0dca4b335cc348c3a39e2a944fd491019ccc690b0707e2fe32e45ec06acdd66adcd775f4811806eb3
7
+ data.tar.gz: 7c99e15b16499bb564523b2feea5f2b1dca714ce7db7ae787212ac53cab113d3a3b5d0ace89da3004e4ee99e3d54b09d6742a944112381cca69b387f604d9c72
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cybrid_api_organization_ruby (0.118.121)
4
+ cybrid_api_organization_ruby (0.118.125)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -72,7 +72,7 @@ curl -X POST https://id.production.cybrid.app/oauth/token -d '{
72
72
  \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:write identity_verifications:execute\"
73
73
  }' -H \"Content-Type: application/json\"
74
74
 
75
- # When using Organization credentials set `scope` to 'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute identity_verifications:read'
75
+ # When using Organization credentials set `scope` to 'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications:read'
76
76
  ```
77
77
  <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font>
78
78
 
@@ -154,8 +154,8 @@ An `Organization` can have multiple `banks`, in either `Sandbox` or `Production`
154
154
 
155
155
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
156
156
 
157
- - API version: v0.118.121
158
- - Package version: 0.118.121
157
+ - API version: v0.118.125
158
+ - Package version: 0.118.125
159
159
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
160
160
 
161
161
  ## Installation
@@ -171,16 +171,16 @@ gem build cybrid_api_organization_ruby.gemspec
171
171
  Then either install the gem locally:
172
172
 
173
173
  ```shell
174
- gem install ./cybrid_api_organization_ruby-0.118.121.gem
174
+ gem install ./cybrid_api_organization_ruby-0.118.125.gem
175
175
  ```
176
176
 
177
- (for development, run `gem install --dev ./cybrid_api_organization_ruby-0.118.121.gem` to install the development dependencies)
177
+ (for development, run `gem install --dev ./cybrid_api_organization_ruby-0.118.125.gem` to install the development dependencies)
178
178
 
179
179
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
180
180
 
181
181
  Finally add this to the Gemfile:
182
182
 
183
- gem 'cybrid_api_organization_ruby', '~> 0.118.121'
183
+ gem 'cybrid_api_organization_ruby', '~> 0.118.125'
184
184
 
185
185
  ### Install from Git
186
186
 
@@ -234,6 +234,11 @@ Class | Method | HTTP request | Description
234
234
  ------------ | ------------- | ------------- | -------------
235
235
  *CybridApiOrganization::OrganizationsOrganizationApi* | [**get_organization**](docs/OrganizationsOrganizationApi.md#get_organization) | **GET** /api/organizations/{organization_guid} | Get organization
236
236
  *CybridApiOrganization::OrganizationsOrganizationApi* | [**update_organization**](docs/OrganizationsOrganizationApi.md#update_organization) | **PATCH** /api/organizations/{organization_guid} | Patch organization
237
+ *CybridApiOrganization::SubscriptionDeliveriesOrganizationApi* | [**create_subscription_delivery**](docs/SubscriptionDeliveriesOrganizationApi.md#create_subscription_delivery) | **POST** /api/subscription_deliveries/ | Create SubscriptionDelivery
238
+ *CybridApiOrganization::SubscriptionDeliveriesOrganizationApi* | [**get_subscription_delivery**](docs/SubscriptionDeliveriesOrganizationApi.md#get_subscription_delivery) | **GET** /api/subscription_deliveries/{subscription_delivery_guid} | Get Subscription Delivery
239
+ *CybridApiOrganization::SubscriptionDeliveriesOrganizationApi* | [**list_subscription_deliveries**](docs/SubscriptionDeliveriesOrganizationApi.md#list_subscription_deliveries) | **GET** /api/subscription_deliveries | Get subscription deliveries list
240
+ *CybridApiOrganization::SubscriptionEventsOrganizationApi* | [**get_subscription_event**](docs/SubscriptionEventsOrganizationApi.md#get_subscription_event) | **GET** /api/subscription_events/{subscription_event_guid} | Get Subscription Event
241
+ *CybridApiOrganization::SubscriptionEventsOrganizationApi* | [**list_subscription_events**](docs/SubscriptionEventsOrganizationApi.md#list_subscription_events) | **GET** /api/subscription_events | Get subscription events list
237
242
  *CybridApiOrganization::SubscriptionsOrganizationApi* | [**create_subscription**](docs/SubscriptionsOrganizationApi.md#create_subscription) | **POST** /api/subscriptions/ | Create Subscription
238
243
  *CybridApiOrganization::SubscriptionsOrganizationApi* | [**delete_subscription**](docs/SubscriptionsOrganizationApi.md#delete_subscription) | **DELETE** /api/subscriptions/{subscription_guid} | Delete Subscription
239
244
  *CybridApiOrganization::SubscriptionsOrganizationApi* | [**get_subscription**](docs/SubscriptionsOrganizationApi.md#get_subscription) | **GET** /api/subscriptions/{subscription_guid} | Get Subscription
@@ -245,8 +250,13 @@ Class | Method | HTTP request | Description
245
250
  - [CybridApiOrganization::ErrorResponseOrganizationModel](docs/ErrorResponseOrganizationModel.md)
246
251
  - [CybridApiOrganization::OrganizationOrganizationModel](docs/OrganizationOrganizationModel.md)
247
252
  - [CybridApiOrganization::PatchOrganizationOrganizationModel](docs/PatchOrganizationOrganizationModel.md)
253
+ - [CybridApiOrganization::PostSubscriptionDeliveryOrganizationModel](docs/PostSubscriptionDeliveryOrganizationModel.md)
248
254
  - [CybridApiOrganization::PostSubscriptionOrganizationModel](docs/PostSubscriptionOrganizationModel.md)
255
+ - [CybridApiOrganization::SubscriptionDeliveryListOrganizationModel](docs/SubscriptionDeliveryListOrganizationModel.md)
256
+ - [CybridApiOrganization::SubscriptionDeliveryOrganizationModel](docs/SubscriptionDeliveryOrganizationModel.md)
249
257
  - [CybridApiOrganization::SubscriptionEnvironmentOrganizationModel](docs/SubscriptionEnvironmentOrganizationModel.md)
258
+ - [CybridApiOrganization::SubscriptionEventListOrganizationModel](docs/SubscriptionEventListOrganizationModel.md)
259
+ - [CybridApiOrganization::SubscriptionEventOrganizationModel](docs/SubscriptionEventOrganizationModel.md)
250
260
  - [CybridApiOrganization::SubscriptionListOrganizationModel](docs/SubscriptionListOrganizationModel.md)
251
261
  - [CybridApiOrganization::SubscriptionOrganizationModel](docs/SubscriptionOrganizationModel.md)
252
262
  - [CybridApiOrganization::SubscriptionStateOrganizationModel](docs/SubscriptionStateOrganizationModel.md)
@@ -272,4 +282,6 @@ Class | Method | HTTP request | Description
272
282
  - subscriptions:write: subscriptions write
273
283
  - subscriptions:read: subscriptions read
274
284
  - subscriptions:execute: subscriptions execute
285
+ - subscription_events:read: subscription_events read
286
+ - subscription_events:execute: subscription_events execute
275
287
 
@@ -3,9 +3,9 @@
3
3
  =begin
4
4
  #Cybrid Organization API
5
5
 
6
- ## Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.production.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Understanding the Platform](https://kb.cybrid.xyz/understanding-the-platform) 2. [Getting Started in the Cybrid Sandbox](https://kb.cybrid.xyz/getting-started-guide) 3. [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading) 4. [Running the Web Demo App](https://kb.cybrid.xyz/locally-running-the-web-demo-app) (or, alternatively, [Testing with Hosted Web Demo App](https://kb.cybrid.xyz/testing-with-hosted-web-demo-app)) In [Getting Started in the Cybrid Sandbox](https://kb.cybrid.xyz/getting-started-guide), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. If you've already run through the first two guides, you can follow the [Running the Web Demo App](https://kb.cybrid.xyz/locally-running-the-web-demo-app) guide to test our web SDK with your sandbox `bank` and `customer`. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.production.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:write identity_verifications:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute identity_verifications:read' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|--------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | Organization | /api/users | Create and list organization users | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` typically does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and a passing `Identity Verification`. See the Identity Verifications section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
6
+ ## Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.production.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Understanding the Platform](https://kb.cybrid.xyz/understanding-the-platform) 2. [Getting Started in the Cybrid Sandbox](https://kb.cybrid.xyz/getting-started-guide) 3. [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading) 4. [Running the Web Demo App](https://kb.cybrid.xyz/locally-running-the-web-demo-app) (or, alternatively, [Testing with Hosted Web Demo App](https://kb.cybrid.xyz/testing-with-hosted-web-demo-app)) In [Getting Started in the Cybrid Sandbox](https://kb.cybrid.xyz/getting-started-guide), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. If you've already run through the first two guides, you can follow the [Running the Web Demo App](https://kb.cybrid.xyz/locally-running-the-web-demo-app) guide to test our web SDK with your sandbox `bank` and `customer`. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.production.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:write identity_verifications:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications:read' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|--------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | Organization | /api/users | Create and list organization users | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` typically does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and a passing `Identity Verification`. See the Identity Verifications section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
7
7
 
8
- The version of the OpenAPI document: v0.118.121
8
+ The version of the OpenAPI document: v0.118.125
9
9
  Contact: support@cybrid.app
10
10
  Generated by: https://openapi-generator.tech
11
11
  OpenAPI Generator version: 6.0.0
@@ -0,0 +1,20 @@
1
+ # CybridApiOrganization::PostSubscriptionDeliveryOrganizationModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **subscription_event_guid** | **String** | The event guid . | |
8
+ | **subscription_guid** | **String** | The subscription guid. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'cybrid_api_organization_ruby'
14
+
15
+ instance = CybridApiOrganization::PostSubscriptionDeliveryOrganizationModel.new(
16
+ subscription_event_guid: null,
17
+ subscription_guid: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,236 @@
1
+ # CybridApiOrganization::SubscriptionDeliveriesOrganizationApi
2
+
3
+ All URIs are relative to *https://organization.sandbox.cybrid.app*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_subscription_delivery**](SubscriptionDeliveriesOrganizationApi.md#create_subscription_delivery) | **POST** /api/subscription_deliveries/ | Create SubscriptionDelivery |
8
+ | [**get_subscription_delivery**](SubscriptionDeliveriesOrganizationApi.md#get_subscription_delivery) | **GET** /api/subscription_deliveries/{subscription_delivery_guid} | Get Subscription Delivery |
9
+ | [**list_subscription_deliveries**](SubscriptionDeliveriesOrganizationApi.md#list_subscription_deliveries) | **GET** /api/subscription_deliveries | Get subscription deliveries list |
10
+
11
+
12
+ ## create_subscription_delivery
13
+
14
+ > <SubscriptionDeliveryOrganizationModel> create_subscription_delivery(post_subscription_delivery_organization_model)
15
+
16
+ Create SubscriptionDelivery
17
+
18
+ Creates a SubscriptionDelivery. post Required scope: **subscription_events:execute
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'cybrid_api_organization_ruby'
25
+ # setup authorization
26
+ CybridApiOrganization.configure do |config|
27
+ # Configure Bearer authorization (JWT): BearerAuth
28
+ config.access_token = 'YOUR_BEARER_TOKEN'
29
+
30
+ # Configure OAuth2 access token for authorization: oauth2
31
+ config.access_token = 'YOUR ACCESS TOKEN'
32
+ end
33
+
34
+ api_instance = CybridApiOrganization::SubscriptionDeliveriesOrganizationApi.new
35
+ post_subscription_delivery_organization_model = CybridApiOrganization::PostSubscriptionDeliveryOrganizationModel.new({subscription_event_guid: 'subscription_event_guid_example', subscription_guid: 'subscription_guid_example'}) # PostSubscriptionDeliveryOrganizationModel |
36
+
37
+ begin
38
+ # Create SubscriptionDelivery
39
+ result = api_instance.create_subscription_delivery(post_subscription_delivery_organization_model)
40
+ p result
41
+ rescue CybridApiOrganization::ApiError => e
42
+ puts "Error when calling SubscriptionDeliveriesOrganizationApi->create_subscription_delivery: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the create_subscription_delivery_with_http_info variant
47
+
48
+ This returns an Array which contains the response data, status code and headers.
49
+
50
+ > <Array(<SubscriptionDeliveryOrganizationModel>, Integer, Hash)> create_subscription_delivery_with_http_info(post_subscription_delivery_organization_model)
51
+
52
+ ```ruby
53
+ begin
54
+ # Create SubscriptionDelivery
55
+ data, status_code, headers = api_instance.create_subscription_delivery_with_http_info(post_subscription_delivery_organization_model)
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => <SubscriptionDeliveryOrganizationModel>
59
+ rescue CybridApiOrganization::ApiError => e
60
+ puts "Error when calling SubscriptionDeliveriesOrganizationApi->create_subscription_delivery_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Name | Type | Description | Notes |
67
+ | ---- | ---- | ----------- | ----- |
68
+ | **post_subscription_delivery_organization_model** | [**PostSubscriptionDeliveryOrganizationModel**](PostSubscriptionDeliveryOrganizationModel.md) | | |
69
+
70
+ ### Return type
71
+
72
+ [**SubscriptionDeliveryOrganizationModel**](SubscriptionDeliveryOrganizationModel.md)
73
+
74
+ ### Authorization
75
+
76
+ [BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/json
81
+ - **Accept**: application/json
82
+
83
+
84
+ ## get_subscription_delivery
85
+
86
+ > <SubscriptionDeliveryOrganizationModel> get_subscription_delivery(subscription_delivery_guid)
87
+
88
+ Get Subscription Delivery
89
+
90
+ Retrieves a subscription delivery. Required scope: **subscription_events:read**
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'cybrid_api_organization_ruby'
97
+ # setup authorization
98
+ CybridApiOrganization.configure do |config|
99
+ # Configure Bearer authorization (JWT): BearerAuth
100
+ config.access_token = 'YOUR_BEARER_TOKEN'
101
+
102
+ # Configure OAuth2 access token for authorization: oauth2
103
+ config.access_token = 'YOUR ACCESS TOKEN'
104
+ end
105
+
106
+ api_instance = CybridApiOrganization::SubscriptionDeliveriesOrganizationApi.new
107
+ subscription_delivery_guid = 'subscription_delivery_guid_example' # String | Identifier for the subscription delivery.
108
+
109
+ begin
110
+ # Get Subscription Delivery
111
+ result = api_instance.get_subscription_delivery(subscription_delivery_guid)
112
+ p result
113
+ rescue CybridApiOrganization::ApiError => e
114
+ puts "Error when calling SubscriptionDeliveriesOrganizationApi->get_subscription_delivery: #{e}"
115
+ end
116
+ ```
117
+
118
+ #### Using the get_subscription_delivery_with_http_info variant
119
+
120
+ This returns an Array which contains the response data, status code and headers.
121
+
122
+ > <Array(<SubscriptionDeliveryOrganizationModel>, Integer, Hash)> get_subscription_delivery_with_http_info(subscription_delivery_guid)
123
+
124
+ ```ruby
125
+ begin
126
+ # Get Subscription Delivery
127
+ data, status_code, headers = api_instance.get_subscription_delivery_with_http_info(subscription_delivery_guid)
128
+ p status_code # => 2xx
129
+ p headers # => { ... }
130
+ p data # => <SubscriptionDeliveryOrganizationModel>
131
+ rescue CybridApiOrganization::ApiError => e
132
+ puts "Error when calling SubscriptionDeliveriesOrganizationApi->get_subscription_delivery_with_http_info: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ | Name | Type | Description | Notes |
139
+ | ---- | ---- | ----------- | ----- |
140
+ | **subscription_delivery_guid** | **String** | Identifier for the subscription delivery. | |
141
+
142
+ ### Return type
143
+
144
+ [**SubscriptionDeliveryOrganizationModel**](SubscriptionDeliveryOrganizationModel.md)
145
+
146
+ ### Authorization
147
+
148
+ [BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2)
149
+
150
+ ### HTTP request headers
151
+
152
+ - **Content-Type**: Not defined
153
+ - **Accept**: application/json
154
+
155
+
156
+ ## list_subscription_deliveries
157
+
158
+ > <SubscriptionDeliveryListOrganizationModel> list_subscription_deliveries(opts)
159
+
160
+ Get subscription deliveries list
161
+
162
+ Retrieves a listing of subscription deliveries s. Required scope: **subscription_events:read**
163
+
164
+ ### Examples
165
+
166
+ ```ruby
167
+ require 'time'
168
+ require 'cybrid_api_organization_ruby'
169
+ # setup authorization
170
+ CybridApiOrganization.configure do |config|
171
+ # Configure Bearer authorization (JWT): BearerAuth
172
+ config.access_token = 'YOUR_BEARER_TOKEN'
173
+
174
+ # Configure OAuth2 access token for authorization: oauth2
175
+ config.access_token = 'YOUR ACCESS TOKEN'
176
+ end
177
+
178
+ api_instance = CybridApiOrganization::SubscriptionDeliveriesOrganizationApi.new
179
+ opts = {
180
+ page: 56, # Integer | The page index to retrieve.
181
+ per_page: 56, # Integer | The number of entities per page to return.
182
+ guid: 'guid_example', # String | Comma separated subscription_delivery_guids to list subscription deliveries for.
183
+ subscription_event_guid: 'subscription_event_guid_example', # String | Comma separated subscription_event_guids to list subscription deliveries for.
184
+ subscription_guid: 'subscription_guid_example' # String | Comma separated subscription_guids to list subscription deliveries for.
185
+ }
186
+
187
+ begin
188
+ # Get subscription deliveries list
189
+ result = api_instance.list_subscription_deliveries(opts)
190
+ p result
191
+ rescue CybridApiOrganization::ApiError => e
192
+ puts "Error when calling SubscriptionDeliveriesOrganizationApi->list_subscription_deliveries: #{e}"
193
+ end
194
+ ```
195
+
196
+ #### Using the list_subscription_deliveries_with_http_info variant
197
+
198
+ This returns an Array which contains the response data, status code and headers.
199
+
200
+ > <Array(<SubscriptionDeliveryListOrganizationModel>, Integer, Hash)> list_subscription_deliveries_with_http_info(opts)
201
+
202
+ ```ruby
203
+ begin
204
+ # Get subscription deliveries list
205
+ data, status_code, headers = api_instance.list_subscription_deliveries_with_http_info(opts)
206
+ p status_code # => 2xx
207
+ p headers # => { ... }
208
+ p data # => <SubscriptionDeliveryListOrganizationModel>
209
+ rescue CybridApiOrganization::ApiError => e
210
+ puts "Error when calling SubscriptionDeliveriesOrganizationApi->list_subscription_deliveries_with_http_info: #{e}"
211
+ end
212
+ ```
213
+
214
+ ### Parameters
215
+
216
+ | Name | Type | Description | Notes |
217
+ | ---- | ---- | ----------- | ----- |
218
+ | **page** | **Integer** | The page index to retrieve. | [optional] |
219
+ | **per_page** | **Integer** | The number of entities per page to return. | [optional] |
220
+ | **guid** | **String** | Comma separated subscription_delivery_guids to list subscription deliveries for. | [optional] |
221
+ | **subscription_event_guid** | **String** | Comma separated subscription_event_guids to list subscription deliveries for. | [optional] |
222
+ | **subscription_guid** | **String** | Comma separated subscription_guids to list subscription deliveries for. | [optional] |
223
+
224
+ ### Return type
225
+
226
+ [**SubscriptionDeliveryListOrganizationModel**](SubscriptionDeliveryListOrganizationModel.md)
227
+
228
+ ### Authorization
229
+
230
+ [BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2)
231
+
232
+ ### HTTP request headers
233
+
234
+ - **Content-Type**: Not defined
235
+ - **Accept**: application/json
236
+
@@ -0,0 +1,24 @@
1
+ # CybridApiOrganization::SubscriptionDeliveryListOrganizationModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total** | **Integer** | The total number of records available. | |
8
+ | **page** | **Integer** | The page index to retrieve. | |
9
+ | **per_page** | **Integer** | The number of entities per page to return. | |
10
+ | **objects** | [**Array&lt;SubscriptionDeliveryOrganizationModel&gt;**](SubscriptionDeliveryOrganizationModel.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'cybrid_api_organization_ruby'
16
+
17
+ instance = CybridApiOrganization::SubscriptionDeliveryListOrganizationModel.new(
18
+ total: null,
19
+ page: null,
20
+ per_page: null,
21
+ objects: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,38 @@
1
+ # CybridApiOrganization::SubscriptionDeliveryOrganizationModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **guid** | **String** | Auto-generated unique identifier for the subscription delivery. | |
8
+ | **response** | **String** | The response of the subscription delivery. | [optional] |
9
+ | **subscription_event_guid** | **String** | The subscription event guid of the subscription delivery. | |
10
+ | **subscription_guid** | **String** | The subscription guid of the subscription delivery. | |
11
+ | **state** | **String** | The state of the subscription delivery. | |
12
+ | **next_attempt_at** | **Time** | ISO8601 datetime the next attempt will be made. | [optional] |
13
+ | **attempt_count** | **Integer** | The number of attempts made to deliver the event. | |
14
+ | **completed_at** | **Time** | ISO8601 datetime the event was delivered. | [optional] |
15
+ | **failed_at** | **Time** | ISO8601 datetime the event delivery was marked as failed. | [optional] |
16
+ | **created_at** | **Time** | ISO8601 datetime the record was created at. | [optional] |
17
+ | **updated_at** | **Time** | ISO8601 datetime the record was last updated at. | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'cybrid_api_organization_ruby'
23
+
24
+ instance = CybridApiOrganization::SubscriptionDeliveryOrganizationModel.new(
25
+ guid: null,
26
+ response: null,
27
+ subscription_event_guid: null,
28
+ subscription_guid: null,
29
+ state: null,
30
+ next_attempt_at: null,
31
+ attempt_count: null,
32
+ completed_at: null,
33
+ failed_at: null,
34
+ created_at: null,
35
+ updated_at: null
36
+ )
37
+ ```
38
+
@@ -0,0 +1,24 @@
1
+ # CybridApiOrganization::SubscriptionEventListOrganizationModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total** | **Integer** | The total number of records available. | |
8
+ | **page** | **Integer** | The page index to retrieve. | |
9
+ | **per_page** | **Integer** | The number of entities per page to return. | |
10
+ | **objects** | [**Array&lt;SubscriptionEventOrganizationModel&gt;**](SubscriptionEventOrganizationModel.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'cybrid_api_organization_ruby'
16
+
17
+ instance = CybridApiOrganization::SubscriptionEventListOrganizationModel.new(
18
+ total: null,
19
+ page: null,
20
+ per_page: null,
21
+ objects: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,30 @@
1
+ # CybridApiOrganization::SubscriptionEventOrganizationModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **guid** | **String** | Auto-generated unique identifier for the subscription event. | |
8
+ | **event_type** | **String** | The type of the subscription event. One of transfer.created or transfer.updated. | |
9
+ | **object_guid** | **String** | The object guid for which the event is received. | |
10
+ | **environment** | **String** | The environment that the subscription event is configured for; one of sandbox or production. | [optional] |
11
+ | **organization_guid** | **String** | The organization guid of the subscription event. | |
12
+ | **created_at** | **Time** | ISO8601 datetime the record was created at. | |
13
+ | **updated_at** | **Time** | ISO8601 datetime the record was last updated at. | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'cybrid_api_organization_ruby'
19
+
20
+ instance = CybridApiOrganization::SubscriptionEventOrganizationModel.new(
21
+ guid: null,
22
+ event_type: null,
23
+ object_guid: null,
24
+ environment: null,
25
+ organization_guid: null,
26
+ created_at: null,
27
+ updated_at: null
28
+ )
29
+ ```
30
+