Connect Playground - easy way to fill in your account with production-like objects

Overview

Just set of scripts to initialise accpunt with production-like data:

A - Basic Distributor Account Initialization

INPUT

  • Distributor Account Token

ACTION(S)

  • Create 2 Hubs with API type
    • Production
    • Staging
  • Create 2 Marketplaces with Icons, descriptions, currencies and price list attributes activated
    • United States
    • Germany
  • Link Hubs with Marketplaces for Staging and Production environments
  • Create Program Agreement
  • Create Distribution Agreement for each Marketplace in the scope of the Program Agreement from the previous step

OUTPUT

  • Hub IDs
  • Marketplace IDs
  • Program Agreement ID
$ pip install -r requirements.txt
$ ccli play
Reading scripts library from /home/user/scripts
Usage: ccli play [OPTIONS] COMMAND [ARGS]...

Options:
  -h, --help  Show this message and exit.

Commands:
  all                       Initialize everything that possible.
  init-distributor-account  Initialize distributor account.
  vendor-account-creation   Create program contract, create vendor account.
  
$ ccli play init-distributor-account --help
Reading scripts library from /home/user/scripts
Usage: ccli play init-distributor-account [OPTIONS]

Options:
  --distributor_account_token TEXT
                                  Distributor account token
  -h, --help                      Show this message and exit.

$ ccli play init-distributor-account
Reading scripts library from /home/user/scripts
--- Init Distributor Account ---
Hub created: HB-5446-4577 "Playground Hub 44566 - Staging"
Hub created: HB-7859-9984 "Playground Hub 63412 - Production"
Hub Marketplace: MP-18375 "Playground Marketplace 44566" for HB-5446-4577
Hub Marketplace: MP-59882 "Playground Marketplace 63412" for HB-7859-9984
Created Program Agreement AGP-777-708-207 Playground Program Agreement 5366
Created Distribution Agreement AGD-887-501-260 Distribution Playground Program Agreement 5366 for MP-18375
Created Distribution Agreement AGD-554-900-752 Distribution Playground Program Agreement 5366 for MP-59882
Saving context into context.json
{
    "hubs": [
        "HB-5446-4577",
        "HB-7859-9984"
    ],
    "marketplaces": [
        "MP-18375",
        "MP-59882"
    ],
    "program_agreement_id": "AGP-777-708-207",
    "distribution_agreements": [
        "AGD-887-501-260",
        "AGD-554-900-752"
    ]
}

B - Vendor Account Creation

INPUT

  • Distributor Account Token
  • Program Agreement ID

ACTION(S)

  • Create Program Contract based on the Input

OUTPUT

  • Program Contract ID
  • Vendor Account ID
  • Vendor Account Token
$ ccli play vendor-account-creation --help

Reading scripts library from /home/user/scripts
Usage: ccli play vendor-account-creation [OPTIONS]

Options:
  --program_agreement_id TEXT     Specify program agreement ID
  --distributor_account_token TEXT
                                  Distributor account token
  -h, --help                      Show this message and exit.
  
$ ccli play vendor-account-creation 
Loading context from context.json
--- Vendor Account Creation ---
Program Contract created: CRP-40536-98496-31778 "Contract of Playground Program Agreement 4162"
Partner created: VA-502-744 "Vendor for Playground contract 71501"
Account activation Link is https://portal.cnct.info/contracts/activate?secret=...
Vendor Account created: VA-502-744 "Vendor for Playground contract 71501"
Vendor token created: SU-903-473-071 "Playground token" - ApiKey SU-903-473-071:...
Saving context into context.json
You might also like...
🔩 Like builtins, but boltons. 250+ constructs, recipes, and snippets which extend (and rely on nothing but) the Python standard library. Nothing like Michael Bolton.

Boltons boltons should be builtins. Boltons is a set of over 230 BSD-licensed, pure-Python utilities in the same spirit as — and yet conspicuously mis

🔩 Like builtins, but boltons. 250+ constructs, recipes, and snippets which extend (and rely on nothing but) the Python standard library. Nothing like Michael Bolton.

Boltons boltons should be builtins. Boltons is a set of over 230 BSD-licensed, pure-Python utilities in the same spirit as — and yet conspicuously mis

A C-like hardware description language (HDL) adding high level synthesis(HLS)-like automatic pipelining as a language construct/compiler feature.
A C-like hardware description language (HDL) adding high level synthesis(HLS)-like automatic pipelining as a language construct/compiler feature.

██████╗ ██╗██████╗ ███████╗██╗ ██╗███╗ ██╗███████╗ ██████╗ ██╔══██╗██║██╔══██╗██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝ ██████╔╝██║██████╔╝█

 🗽 Like yarn outdated/upgrade, but for pip. Upgrade all your pip packages and automate your Python Dependency Management.
🗽 Like yarn outdated/upgrade, but for pip. Upgrade all your pip packages and automate your Python Dependency Management.

pipupgrade The missing command for pip Table of Contents Features Quick Start Usage Basic Usage Docker Environment Variables FAQ License Features Upda

Freeze your objects in python

gelidum Freeze your objects in python. Latin English Caelum est hieme frigidum et gelidum; myrtos oleas quaeque alia assiduo tepore laetantur, asperna

Type Persian without confusing words for yourself and others, in Adobe Connect
Type Persian without confusing words for yourself and others, in Adobe Connect

About In the Adobe Connect chat section, to type in Persian or Arabic, the written words will be confused and will be written and sent illegibly (This

A companion web application to connect stash to deovr

stash-vr-companion This is a companion web application to connect stash to deovr. Stash is a self hosted web application to manage your porn collectio

This is sample project needed for security course to connect web service to database
This is sample project needed for security course to connect web service to database

secufaku This is sample project needed for security course to "connect web service to database". Why it suits alignment purpose It connects to postgre

A Bot Which Can generate Random Account Based On Your Hits.

AccountGenBot This Bot Can Generate Account With Hits You Save (Randomly) Keyfeatures Join To Use Support Limit Account Generation Using Sql Customiza

Owner
CloudBlue
We power :zap: your speed to market and revenue for traditional and digital products. CloudBlue :blue_heart: Open Source.
CloudBlue
Aoc 2021 kedro playground with python

AOC 2021 Overview This is your new Kedro project, which was generated using Kedro 0.17.5. Take a look at the Kedro documentation to get started. Rules

null 1 Dec 20, 2021
Simple Python-based web application to allow UGM students to fill their QR presence list without having another device in hand.

Praesentia Praesentia is a simple Python-based web application to allow UGM students to fill their QR presence list without having another device in h

loncat 20 Sep 29, 2022
This repository containing cross-section cut and fill calculations using Python programming language.

cross-section This repository is containing cut and fill calculations for cross-section using Python programming language. This codes is made to calcu

null 3 Jun 15, 2022
A way to write regex with objects instead of strings.

Py Idiomatic Regex (AKA iregex) Documentation Available Here An easier way to write regex in Python using OOP instead of strings. Makes the code much

Ryan Peach 18 Nov 15, 2021
Secret santa is a fun and easy way to get together with your friends and/or family with a gift for them.

Secret Santa What is Secret Santa? Secret santa is a fun and easy way to get together with your friends and/or family with a gift for them. The idea i

null 2 Dec 6, 2021
An easy way to access to your EPITECH subjects based on the Roslyn's database.

An easy way to access to your EPITECH subjects based on the Roslyn's database.

Mathias 1 Feb 9, 2022
Display your data in an attractive way in your notebook!

Bloxs Bloxs is a simple python package that helps you display information in an attractive way (formed in blocks). Perfect for building dashboards, re

MLJAR 192 Dec 28, 2022
The earliest beta version of pytgcalls on Linux x86_64 and ARM64! Use in production at your own risk!

Public beta test. Use in production at your own risk! tgcalls - a python binding for tgcalls (c++ lib by Telegram); pytgcalls - library connecting pyt

Il'ya 21 Jan 13, 2022
Easy way to build a SaaS application using Python and Dash

EasySaaS This project will be attempt to make a great starting point for your next big business as easy and efficent as possible. This project will cr

xianhu 3 Nov 17, 2022
An easy way to access the Scratch API!

The majority of people are likely here because they want to easily access the Scratch API!

rgantzos 0 May 4, 2022