Interface StripeService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> calculateTaxRate​(java.lang.String amount, java.lang.String countryIsoCode)
      This method returns data as object.
      java.lang.String cancelSubscriptionAfterActivePeriod​(java.lang.String sellerId)
      This method cancels a stripe subscription after expired stripe contract period.
      java.lang.String cancelSubscriptionImmediately​(java.lang.String sellerId)
      This method cancels a stripe subscription immediately.
      java.lang.String chargeCreditCard​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> chargeRequestAsMap)
      This method creates a charge for payment.
      java.lang.String chargeSepa​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> chargeRequestAsMap)
      This method creates a stripe charge entity.
      void chargeTariffCreditCard​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> chargeRequestAsMap)
      This method creates a charge tariff for payment.
      void chargeTariffSepa​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> chargeRequestAsMap)
      This method creates a stripe charge tariff.
      java.util.Map<java.lang.String,​java.lang.Object> createPaymentMethod​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> paymentMethod)
      This method returns data as object.
      java.util.Map<java.lang.String,​java.lang.String> getAmountByTariff​(java.lang.String tariff)
      This method returns data as map.
      java.lang.String getClientSecret()
      This method returns currency name
      java.util.Map<java.lang.String,​java.lang.Object> getContractEndDate​(java.lang.String createdDate, java.lang.String pattern)
      This method does return time.
      java.util.Map<java.lang.String,​java.lang.Object> getContractEndDateFromTimestamp​(java.lang.String created, java.lang.String pattern)
      This method does return time.
      java.lang.String getCurrency()
      This method returns currency name
      java.util.List<com.stripe.model.Invoice> getInvoices()
      This method returns data as list.
      java.util.Map<java.lang.String,​java.lang.Object> getPaymentMethod​(java.lang.String paymentMethodId)
      This method returns data as map.
      java.util.List<com.stripe.model.PaymentMethod> getPaymentMethods​(java.lang.String type)
      This method returns data as list.
      java.util.List<com.stripe.model.Product> getProducts()
      This method returns data as list.
      java.util.Map<java.lang.String,​java.lang.Object> getSubscription()
      This method returns data as object.
      boolean isStripeKeysDefined()
      This method does return boolean result.
      boolean isTariffEquals​(java.lang.String tariff)
      This method does return boolean result.
      void removePaymentMethod​(java.lang.String paymentMethodId)
      This method returns data as object.
    • Method Detail

      • isStripeKeysDefined

        boolean isStripeKeysDefined()
        This method does return boolean result.
        Returns:
        value as boolean
      • getClientSecret

        java.lang.String getClientSecret()
        This method returns currency name
        Returns:
        value as string
      • getCurrency

        java.lang.String getCurrency()
        This method returns currency name
        Returns:
        value as string
      • chargeSepa

        java.lang.String chargeSepa​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> chargeRequestAsMap)
                             throws com.stripe.exception.StripeException
        This method creates a stripe charge entity.
        Parameters:
        chargeRequestAsMap - map-representation of database entity
        Returns:
        optional value to externally interaction
        Throws:
        com.stripe.exception.StripeException - in create charge
      • chargeCreditCard

        java.lang.String chargeCreditCard​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> chargeRequestAsMap)
                                   throws com.stripe.exception.StripeException
        This method creates a charge for payment.
        Parameters:
        chargeRequestAsMap - map-representation of charge request
        Returns:
        value as text
        Throws:
        com.stripe.exception.StripeException - in create token and customer
      • chargeTariffSepa

        void chargeTariffSepa​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> chargeRequestAsMap)
                       throws com.stripe.exception.StripeException
        This method creates a stripe charge tariff.
        Parameters:
        chargeRequestAsMap - map-representation of database entity
        Throws:
        com.stripe.exception.StripeException - in create charge tariff
      • chargeTariffCreditCard

        void chargeTariffCreditCard​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> chargeRequestAsMap)
                             throws com.stripe.exception.StripeException
        This method creates a charge tariff for payment.
        Parameters:
        chargeRequestAsMap - map-representation of charge request
        Throws:
        com.stripe.exception.StripeException - in create token, customer and update subscription
      • getAmountByTariff

        java.util.Map<java.lang.String,​java.lang.String> getAmountByTariff​(java.lang.String tariff)
        This method returns data as map.
        Parameters:
        tariff - field for filter and return data
        Returns:
        data as map
      • getInvoices

        java.util.List<com.stripe.model.Invoice> getInvoices()
        This method returns data as list.
        Returns:
        data as list
      • getProducts

        java.util.List<com.stripe.model.Product> getProducts()
        This method returns data as list.
        Returns:
        data as list
      • createPaymentMethod

        java.util.Map<java.lang.String,​java.lang.Object> createPaymentMethod​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> paymentMethod)
        This method returns data as object.
        Parameters:
        paymentMethod - field for filter and return data
        Returns:
        map as object
      • removePaymentMethod

        void removePaymentMethod​(java.lang.String paymentMethodId)
        This method returns data as object.
        Parameters:
        paymentMethodId - field for filter and return data
      • getPaymentMethods

        java.util.List<com.stripe.model.PaymentMethod> getPaymentMethods​(java.lang.String type)
        This method returns data as list.
        Parameters:
        type - field for filter and return data
        Returns:
        data as list
      • getPaymentMethod

        java.util.Map<java.lang.String,​java.lang.Object> getPaymentMethod​(java.lang.String paymentMethodId)
        This method returns data as map.
        Parameters:
        paymentMethodId - field for filter and return data
        Returns:
        data as map
      • getSubscription

        java.util.Map<java.lang.String,​java.lang.Object> getSubscription()
        This method returns data as object.
        Returns:
        map as object
      • calculateTaxRate

        java.util.Map<java.lang.String,​java.lang.Object> calculateTaxRate​(java.lang.String amount,
                                                                                java.lang.String countryIsoCode)
        This method returns data as object.
        Parameters:
        amount - from this amount will be calculated a tax value
        countryIsoCode - field for filter and return data
        Returns:
        map as object
      • cancelSubscriptionAfterActivePeriod

        java.lang.String cancelSubscriptionAfterActivePeriod​(java.lang.String sellerId)
        This method cancels a stripe subscription after expired stripe contract period.
        Parameters:
        sellerId - identification bean which will be find database entity
        Returns:
        value as text
      • cancelSubscriptionImmediately

        java.lang.String cancelSubscriptionImmediately​(java.lang.String sellerId)
        This method cancels a stripe subscription immediately.
        Parameters:
        sellerId - identification bean which will be find database entity
        Returns:
        value as text
      • getContractEndDate

        java.util.Map<java.lang.String,​java.lang.Object> getContractEndDate​(java.lang.String createdDate,
                                                                                  java.lang.String pattern)
        This method does return time.
        Parameters:
        createdDate - from which can extracted time
        pattern - pattern for formatting a date
        Returns:
        data as map
      • getContractEndDateFromTimestamp

        java.util.Map<java.lang.String,​java.lang.Object> getContractEndDateFromTimestamp​(java.lang.String created,
                                                                                               java.lang.String pattern)
        This method does return time.
        Parameters:
        created - from which can extracted time
        pattern - pattern for formatting a date
        Returns:
        data as map
      • isTariffEquals

        boolean isTariffEquals​(java.lang.String tariff)
        This method does return boolean result.
        Parameters:
        tariff - value to check
        Returns:
        value as boolean