Skip to content

Commit 8f65e77

Browse files
authored
Sunset internet banking (#79)
## Description Sunset internet banking, only affects tests and examples.
1 parent 931bcb5 commit 8f65e77

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

omise/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ class Source(_MainResource, Base):
19941994
>>> source = omise.Source.create(
19951995
amount=100000,
19961996
currency='thb',
1997-
type='internet_banking_scb'
1997+
type='promptpay'
19981998
)
19991999
<Source id='src_test_59ldo3ltuz7418db4ol' at 0x106473668>
20002000
>>> charge = omise.Charge.create(
@@ -2013,7 +2013,7 @@ class Source(_MainResource, Base):
20132013
amount=100000,
20142014
currency='thb',
20152015
source={
2016-
'type': 'internet_banking_scb'
2016+
'type': 'promptpay'
20172017
},
20182018
return_uri='https://www.omise.co'
20192019
)

omise/test/test_charge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def test_create_with_source(self, api_call):
285285
"source": {
286286
"object": "source",
287287
"id": "src_test",
288-
"type": "internet_banking_test",
288+
"type": "promptpay",
289289
"flow": "redirect",
290290
"amount": 100000,
291291
"currency": "thb"
@@ -320,7 +320,7 @@ def test_create_with_source(self, api_call):
320320
amount=100000,
321321
currency='thb',
322322
source={
323-
'type': 'internet_banking_test'
323+
'type': 'promptpay'
324324
},
325325
return_uri='http://www.google.com'
326326
)
@@ -337,7 +337,7 @@ def test_create_with_source(self, api_call):
337337
'amount': 100000,
338338
'currency': 'thb',
339339
'source': {
340-
'type': 'internet_banking_test'
340+
'type': 'promptpay'
341341
},
342342
'return_uri': 'http://www.google.com'
343343
}

omise/test/test_source.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def _makeOne(self):
1414
return self._getTargetClass().from_data({
1515
'object': 'source',
1616
'id': 'src_test',
17-
'type': 'internet_banking_test',
17+
'type': 'promptpay',
1818
'flow': 'redirect',
1919
'amount': 100000,
2020
'currency': 'thb'
@@ -26,7 +26,7 @@ def test_create_offsite(self, api_call):
2626
self.mockResponse(api_call, """{
2727
"object": "source",
2828
"id": "src_test",
29-
"type": "internet_banking_test",
29+
"type": "promptpay",
3030
"flow": "redirect",
3131
"amount": 100000,
3232
"currency": "thb"
@@ -35,7 +35,7 @@ def test_create_offsite(self, api_call):
3535
source = class_.create(
3636
amount=100000,
3737
currency='thb',
38-
type='internet_banking_test'
38+
type='promptpay'
3939
)
4040
self.assertTrue(isinstance(source, class_))
4141
self.assertEqual(source.id, 'src_test')
@@ -46,7 +46,7 @@ def test_create_offsite(self, api_call):
4646
{
4747
'amount': 100000,
4848
'currency': 'thb',
49-
'type': 'internet_banking_test'
49+
'type': 'promptpay'
5050
}
5151
)
5252

@@ -86,7 +86,7 @@ def test_retrieve(self, api_call):
8686
self.mockResponse(api_call, """{
8787
"object": "source",
8888
"id": "src_test",
89-
"type": "internet_banking_test",
89+
"type": "promptpay",
9090
"flow": "redirect",
9191
"amount": 100000,
9292
"currency": "thb"
@@ -95,7 +95,7 @@ def test_retrieve(self, api_call):
9595
source = class_.retrieve('src_test')
9696
self.assertTrue(isinstance(source, class_))
9797
self.assertEqual(source.id, 'src_test')
98-
self.assertEqual(source.type, 'internet_banking_test')
98+
self.assertEqual(source.type, 'promptpay')
9999
self.assertEqual(source.flow, 'redirect')
100100
self.assertEqual(source.amount, 100000)
101101
self.assertEqual(source.currency, 'thb')

0 commit comments

Comments
 (0)