{"id":19503640,"url":"https://github.com/im-cloud-spain-connectors/python-connect-business-objects","last_synced_at":"2025-02-25T21:44:29.030Z","repository":{"id":78684757,"uuid":"586932725","full_name":"IM-Cloud-Spain-Connectors/python-connect-business-objects","owner":"IM-Cloud-Spain-Connectors","description":"Connect Business Object (Request, Asset and Tier Configuration) Interface.","archived":false,"fork":false,"pushed_at":"2023-10-31T20:24:26.000Z","size":50,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-08T10:39:55.155Z","etag":null,"topics":["business-transaction","component","connect","models","objects","python","transaction"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IM-Cloud-Spain-Connectors.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-09T15:16:18.000Z","updated_at":"2023-11-23T11:09:58.000Z","dependencies_parsed_at":"2023-04-26T10:47:24.743Z","dependency_job_id":"5b9a66ba-988c-4c21-96ec-3fdfdb4cb655","html_url":"https://github.com/IM-Cloud-Spain-Connectors/python-connect-business-objects","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IM-Cloud-Spain-Connectors%2Fpython-connect-business-objects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IM-Cloud-Spain-Connectors%2Fpython-connect-business-objects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IM-Cloud-Spain-Connectors%2Fpython-connect-business-objects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IM-Cloud-Spain-Connectors%2Fpython-connect-business-objects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IM-Cloud-Spain-Connectors","download_url":"https://codeload.github.com/IM-Cloud-Spain-Connectors/python-connect-business-objects/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240754295,"owners_count":19852186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["business-transaction","component","connect","models","objects","python","transaction"],"created_at":"2024-11-10T22:22:26.306Z","updated_at":"2025-02-25T21:44:28.939Z","avatar_url":"https://github.com/IM-Cloud-Spain-Connectors.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Connect Business Objects\n\n[![Test](https://github.com/othercodes/python-connect-business-objects/actions/workflows/test.yml/badge.svg)](https://github.com/othercodes/python-connect-business-objects/actions/workflows/test.yml)\n\nConnect Business Object (Request, Asset and Tier Configuration) Interface.\n\n## Installation\n\nThe easiest way to install the Connect Business Objects library is to get the latest version from PyPI:\n\n```bash\n# using poetry\npoetry add rndi-connect-business-objects\n# using pip\npip install rndi-connect-business-objects\n```\n\n## The Contracts\n\nThis package provides the following contracts or interfaces:\n\n* `ConfigurationSource`\n* `ConfigurationBuilder`\n* `ConnectionSource`\n* `ConnectionBuilder`\n* `ContractSource`\n* `ContractBuilder`\n* `EventsSource`\n* `EventsBuilder`\n* `MarketplaceSource`\n* `MarketPlaceBuilder`\n* `ParametersSource`\n* `ProductSource`\n* `ProductBuilder`\n* `RequestSource`\n* `RequestBuilder`\n* `AssetSource`\n* `AssetBuilder`\n* `TierConfigurationSource`\n* `TierConfigurationBuilder`\n\n## The Adapters\n\nThis package provides several adapters and mixins that implements the contracts above. The main Adapters are:\n\n### Request\n\nAllow you to operate with a Connect Request Object (Asset Request or Tier Config Request).\n\n* Contracts: `RequestSource`, `RequestBuilder`.\n* Mixins: `HasContract`, `HasEvents`, `HasMarketplace`, `HasParameters`, `RequestSource`.\n\n```python\nfrom rndi.connect.business_objects.adapters import Request\n\n# Create a new Request and set some values.\nr = Request()\nr.with_id('PR-000-000-001')\nr.with_type('purchase')\nr.with_status('pending')\n\n# You can read the values too.\nr.id()  # PR-000-000-001\n```\n\n### Asset\n\nAllow you to operate with a Connect Asset Object.\n\n* Contracts: `AssetSource`, `AssetBuilder`.\n* Mixins: `HasConfiguration`, `HasConnection`, `HasContract`, `HasMarketplace`, `HasParameters`, `HasProduct`.\n\n```python\nfrom rndi.connect.business_objects.adapters import Asset\n\n# Create a new Asset and set some values.\na = Asset()\na.with_id('AS-000-000-001')\na.with_status('active')\na.with_external_id('123456789')\na.with_external_uid('9fb50525-a4a4-41a7-ace0-dc3c73796d32')\na.with_product('PRD-000-000-100', 'enabled')\n\n# You can read the values too.\na.id()  # AS-000-000-001\n```\n\n### TierConfiguration\n\nAllow you to operate with a Connect Tier Configuration Object.\n\n* Contracts: `TierConfigurationSource`, `TierConfigurationBuilder`.\n* Mixins: `HasConfiguration`, `HasConnection`, `HasMarketplace`, `HasParameters`, `HasProduct`.\n\n```python\nfrom rndi.connect.business_objects.adapters import TierConfiguration\n\n# Create a new TierConfiguration and set some values.\nt = TierConfiguration()\nt.with_id('TC-000-000-000')\nt.with_status('active')\nt.with_marketplace('MP-12345')\n\n# You can read the values too.\nt.id()  # TC-000-000-000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fim-cloud-spain-connectors%2Fpython-connect-business-objects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fim-cloud-spain-connectors%2Fpython-connect-business-objects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fim-cloud-spain-connectors%2Fpython-connect-business-objects/lists"}