Esempio n. 1
0
 def delete(self, resource_id, **kwargs):
     '''
     Delete a prevoiusly created payment and returns a hash containing the details of the
     deleted payment.
     '''
     return Payment(
         self, **self.post('/v2/payments/' + resource_id + '/delete',
                           kwargs))
Esempio n. 2
0
 def payment_confirmation(self, resource_id, **kwargs):
     '''
     Get confirmation for a payment.
     '''
     return Payment(
         self,
         **self.get('/v2/payments/' + resource_id + '/confirmation',
                    kwargs))
Esempio n. 3
0
    def create(self, **kwargs):
        '''
        Creates a new payment and returns a hash containing the details of the created payment.

        Information that is required for your payment depends on the payment type (local or
        standard/SWIFT payment), originating country, payer country, payer legal entity type,
        beneficiary country, beneficiary entity type and payment destination country.

        For more detailed information please see our payment guide:
            http://help.currencycloud.com/world/faq/#mandatory-payment-information
        '''
        return Payment(self, **self.post('/v2/payments/create', kwargs))
Esempio n. 4
0
 def retrieve(self, resource_id, **kwargs):
     '''Returns a hash containing the details of the requested payment.'''
     return Payment(self,
                    **self.get('/v2/payments/' + resource_id, query=kwargs))
Esempio n. 5
0
 def find(self, **kwargs):
     '''Returns an Array of Payment objects matching the search criteria.'''
     response = self.get('/v2/payments/find', query=kwargs)
     data = [Payment(self, **fields) for fields in response['payments']]
     return PaginatedCollection(data, response['pagination'])
 def payment_delivery_date(self, **kwargs):
     '''
     Retrieves Payment Delivery Date.
      '''
     return Payment(self, **self.get('/v2/payments/payment_delivery_date', query=kwargs))
 def authorise(self, **kwargs):
     '''
     Authorise pending payment(s) and returns a hash containing the details of the payment authorisation.
      '''
     return Payment(self, **self.post('/v2/payments/authorise', kwargs))