Program Listing for File PaymentMethod.h

Return to documentation for file (axr.sdk/models/PaymentMethod.h)

// Copyright (C) AcceleratXR, Inc. All rights reserved.
#pragma once

#include "axr.sdk/EntityBase.h"
#include "./ProviderType.h"

#include <cpprest/details/basic_types.h>
#include <vector>

namespace axr {
namespace sdk {
namespace models {

class PaymentMethod : public EntityBase
{
public:
    class Status : public StringEnum<Status>
    {
    public:

        static const Status* CREATED;
        static const Status* CANCELED;
        static const Status* ACTION_NEEDED;
        static const Status* READY;
        static const Status* ERROR;

    private:
        Status(const utility::char_t* value)
            : StringEnum(value)
        {
        }
    };

    PaymentMethod() : EntityBase() {}
    PaymentMethod(const PaymentMethod& value) : EntityBase(value) {}
    PaymentMethod(PaymentMethod&& value) : EntityBase(value) {}
    virtual ~PaymentMethod() {}

    // Object overrides

    virtual PaymentMethod& SetProperties(const std::map<utility::string_t, Variant>& value) override
    {
        Object::SetProperties(value);
        return *this;
    }

    virtual PaymentMethod& SetProperties(std::map<utility::string_t, Variant>&& value) override
    {
        Object::SetProperties(value);
        return *this;
    }

    virtual PaymentMethod& SetProperty(const utility::char_t* name, const Variant& value) override
    {
        Object::SetProperty(name, value);
        return*this;
    }

    virtual PaymentMethod& SetProperty(const utility::string_t& name, const Variant& value) override
    {
        Object::SetProperty(name, value);
        return*this;
    }

    virtual PaymentMethod& SetRemoteUrl(const utility::string_t& url) override
    {
        Object::SetRemoteUrl(url);
        return *this;
    }

    // EntityBase overrides

    virtual PaymentMethod& SetUid(const utility::string_t& value) override
    {
        EntityBase::SetUid(value);
        return *this;
    }

    virtual PaymentMethod& SetDateCreated(const datetime& value) override
    {
        EntityBase::SetDateCreated(value);
        return *this;
    }

    virtual PaymentMethod& SetDateModified(const datetime& value) override
    {
        EntityBase::SetDateModified(value);
        return *this;
    }

    virtual PaymentMethod& SetVersion(const uint64_t value) override
    {
        EntityBase::SetVersion(value);
        return *this;
    }

    static const utility::char_t* ClassName()
    {
        return _XPLATSTR("axr::sdk::models::PaymentMethod");
    }

    void Validate() override;

    // PaymentMethod members

    std::shared_ptr<Object> GetData() const;

    PaymentMethod& SetData(std::shared_ptr<Object> value);

    bool IsDefault() const;

    PaymentMethod& SetDefault(bool value);

    const ProviderType* GetProvider() const;

    PaymentMethod& SetProvider(const ProviderType* value);

    const Status* GetStatus() const;
#ifdef AXR_COMPILE_SERVER
    PaymentMethod& SetStatus(const Status* value);
#endif // AXR_COMPILE_SERVER
    utility::string_t GetWalletUid() const;

    PaymentMethod& SetWalletUid(const utility::string_t& value);
};

} // namespace models
} // namespace axr
} // namespace sdk