Git Product home page Git Product logo

provision-provider-base's People

Contributors

nikiarsov777 avatar uphlewis avatar

Stargazers

 avatar

Watchers

 avatar  avatar

provision-provider-base's Issues

Private phone number validations

Task
If there aren't any updates available to the package(s) we use for intl phone validation, then we will need some way of overriding for certain countries.
Valid phone numbers which currently throw validation errors:

Zimbabwe: [redacted]
Morocco: [redacted]
Ivory Coast: [redacted]

Implement dynamic rules

For example when registering a domain name, some TLDs require additional fields such as registrant type (individual/organisation).

This could be defined in the RegisterParams dataset rules() like so:

    return new Rules([
        // ...
        'additional_fields' => ['upmind_dynamic_rules:getRegisterAdditionalFieldRules'],
        // ...
    ]);

The argument passed to the upmind_dynamic_rules would specify where to get the validation rules from for the additional_fields object, so in this case we need to call the provider's getRegisterAdditionalFieldRules() method, which in-turn may specify which params it requires in order to return the rules we need, such as the tld.

This allows the provision system client to build a dynamic html form for domain registrations, once it knows which tld the customer wants to register a domain for, and once it has determined which provision provider to use.

Caching the dynamic rules (per provider + tld and perhaps per provision configuration) should negate any performance impact of the blocking call to getRegisterAdditionalFieldRules().

Add capabilities to ProviderAbout

The idea here is that a provider can optionally specify which functions and/or parameters it supports, so that it's possible to know ahead of time whether to display a particular function or field in UIs when the provider is known and has specified its capabilities

Readme and composer.json

I have found that readme has a string composer require upmind/provision-provider-shared-hosting
but composer.json is "name": "upmind/provision-provider-base",

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.