/// <summary>
    ///   <para>Type of payment option.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <param name="type">Payment source.</param>
    /// <returns>Reference to provided <paramref name="widget"/>.</returns>
    /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
    public static IYandexMoneyButtonWidget Type(this IYandexMoneyButtonWidget widget, YandexMoneyButtonType type)
    {
      Assertion.NotNull(widget);

      switch (type)
      {
        case YandexMoneyButtonType.Card :
          return widget.Type("any-card-payment-type");

        default:
          return widget.Type("yamoney-payment-type");
      }
    }
        /// <summary>
        ///   <para>Type of payment option.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</param>
        /// <param name="type">Payment source.</param>
        /// <returns>Reference to provided <paramref name="widget"/>.</returns>
        /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
        public static IYandexMoneyButtonWidget Type(this IYandexMoneyButtonWidget widget, YandexMoneyButtonType type)
        {
            Assertion.NotNull(widget);

            switch (type)
            {
            case YandexMoneyButtonType.Card:
                return(widget.Type("any-card-payment-type"));

            default:
                return(widget.Type("yamoney-payment-type"));
            }
        }