Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Release 2.6.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingenico ePayments committed Jun 27, 2017
1 parent ed5bef8 commit 2f3bbf2
Show file tree
Hide file tree
Showing 304 changed files with 5,130 additions and 2,485 deletions.
6 changes: 3 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
# built documents.
#
# The short X.Y version.
version = u'2.5.0'
version = u'2.6.0'
# The full version, including alpha/beta/rc tags.
release = u'2.5.0'
release = u'2.6.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -138,7 +138,7 @@
# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#
# html_title = u'Python SDK v2.5.0'
# html_title = u'Python SDK v2.6.0'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
4 changes: 4 additions & 0 deletions examples/merchant/captures/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#
# This file was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
#
22 changes: 22 additions & 0 deletions examples/merchant/captures/get_capture_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

from ingenico.connect.sdk.factory import Factory


class GetCaptureExample(object):

def example(self):
with self.__get_client() as client:
response = client.merchant("merchantId").captures().get("captureId")

def __get_client(self):
api_key_id = os.getenv("connect.api.apiKeyId", "someKey")
secret_api_key = os.getenv("connect.api.secretApiKey", "someSecret")
configuration_file_name = os.path.abspath(os.path.join(os.path.dirname(__file__),
'../../example_configuration.ini'))
return Factory.create_client_from_file(configuration_file_name=configuration_file_name,
api_key_id=api_key_id, secret_api_key=secret_api_key)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/payments/approve_payment_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/payments/cancel_payment_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
26 changes: 26 additions & 0 deletions examples/merchant/payments/capture_payment_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

from ingenico.connect.sdk.factory import Factory
from ingenico.connect.sdk.domain.payment.capture_payment_request import CapturePaymentRequest


class CapturePaymentExample(object):

def example(self):
with self.__get_client() as client:
body = CapturePaymentRequest()
body.amount = 2980

response = client.merchant("merchantId").payments().capture("paymentId", body)

def __get_client(self):
api_key_id = os.getenv("connect.api.apiKeyId", "someKey")
secret_api_key = os.getenv("connect.api.secretApiKey", "someSecret")
configuration_file_name = os.path.abspath(os.path.join(os.path.dirname(__file__),
'../../example_configuration.ini'))
return Factory.create_client_from_file(configuration_file_name=configuration_file_name,
api_key_id=api_key_id, secret_api_key=secret_api_key)
2 changes: 1 addition & 1 deletion examples/merchant/payments/create_payment_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
22 changes: 22 additions & 0 deletions examples/merchant/payments/get_payment_captures_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

from ingenico.connect.sdk.factory import Factory


class GetPaymentCapturesExample(object):

def example(self):
with self.__get_client() as client:
response = client.merchant("merchantId").payments().captures("paymentId")

def __get_client(self):
api_key_id = os.getenv("connect.api.apiKeyId", "someKey")
secret_api_key = os.getenv("connect.api.secretApiKey", "someSecret")
configuration_file_name = os.path.abspath(os.path.join(os.path.dirname(__file__),
'../../example_configuration.ini'))
return Factory.create_client_from_file(configuration_file_name=configuration_file_name,
api_key_id=api_key_id, secret_api_key=secret_api_key)
2 changes: 1 addition & 1 deletion examples/merchant/payments/get_payment_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/payments/refund_payment_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/payments/tokenize_payment_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/payouts/approve_payout_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/payouts/cancel_payout_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/payouts/create_payout_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/payouts/get_payout_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand All @@ -13,11 +13,11 @@ class GetPaymentProductGroupExample(object):
def example(self):
with self.__get_client() as client:
query = GetProductgroupParams()
query.country_code = "US"
query.currency_code = "USD"
query.locale = "en_US"
query.amount = 1000
query.is_recurring = True
query.country_code = "NL"
query.locale = "en_US"
query.currency_code = "EUR"
query.add_hide("fields")

response = client.merchant("merchantId").productgroups().get("cards", query)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand All @@ -13,11 +13,11 @@ class GetPaymentProductGroupsExample(object):
def example(self):
with self.__get_client() as client:
query = FindProductgroupsParams()
query.country_code = "US"
query.currency_code = "USD"
query.locale = "en_US"
query.amount = 1000
query.is_recurring = True
query.country_code = "NL"
query.locale = "en_US"
query.currency_code = "EUR"
query.add_hide("fields")

response = client.merchant("merchantId").productgroups().find(query)
Expand Down
4 changes: 2 additions & 2 deletions examples/merchant/products/get_directory_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand All @@ -13,8 +13,8 @@ class GetDirectoryExample(object):
def example(self):
with self.__get_client() as client:
query = DirectoryParams()
query.currency_code = "EUR"
query.country_code = "NL"
query.currency_code = "EUR"

response = client.merchant("merchantId").products().directory(809, query)

Expand Down
6 changes: 3 additions & 3 deletions examples/merchant/products/get_networks_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand All @@ -13,8 +13,8 @@ class GetNetworksExample(object):
def example(self):
with self.__get_client() as client:
query = NetworksParams()
query.country_code = "NL"
query.currency_code = "EUR"
query.country_code = "US"
query.currency_code = "USD"
query.amount = 1000
query.is_recurring = True

Expand Down
8 changes: 4 additions & 4 deletions examples/merchant/products/get_payment_product_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand All @@ -13,11 +13,11 @@ class GetPaymentProductExample(object):
def example(self):
with self.__get_client() as client:
query = GetProductParams()
query.amount = 1000
query.is_recurring = True
query.country_code = "US"
query.locale = "en_US"
query.currency_code = "USD"
query.locale = "en_US"
query.amount = 1000
query.is_recurring = True
query.add_hide("fields")

response = client.merchant("merchantId").products().get(1, query)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
8 changes: 4 additions & 4 deletions examples/merchant/products/get_payment_products_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand All @@ -13,11 +13,11 @@ class GetPaymentProductsExample(object):
def example(self):
with self.__get_client() as client:
query = FindProductsParams()
query.amount = 1000
query.is_recurring = True
query.country_code = "US"
query.locale = "en_US"
query.currency_code = "USD"
query.locale = "en_US"
query.amount = 1000
query.is_recurring = True
query.add_hide("fields")

response = client.merchant("merchantId").products().find(query)
Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/refunds/approve_refund_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/refunds/cancel_refund_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
2 changes: 1 addition & 1 deletion examples/merchant/refunds/get_refund_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This class was auto-generated from the API references found at
# https://developer.globalcollect.com/documentation/api/server/
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
import os

Expand Down
Loading

0 comments on commit 2f3bbf2

Please sign in to comment.