Skip to content

Commit 1d1c3e8

Browse files
authored
Merge pull request #199 from ComplYantCo/master
Resolves #198, Missing TenderTransaction endpoint
2 parents 79df85f + b182f7a commit 1d1c3e8

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

lib/ShopifySDK.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
* @property-read Shop $Shop
106106
* @property-read SmartCollection $SmartCollection
107107
* @property-read ShopifyPayment $ShopifyPayment
108+
* @property-read TenderTransaction $TenderTransaction
108109
* @property-read Theme $Theme
109110
* @property-read User $User
110111
* @property-read Webhook $Webhook
@@ -148,6 +149,7 @@
148149
* @method Shop Shop(integer $id = null)
149150
* @method ShopifyPayment ShopifyPayment()
150151
* @method SmartCollection SmartCollection(integer $id = null)
152+
* @method TenderTransaction TenderTransaction()
151153
* @method Theme Theme(int $id = null)
152154
* @method User User(integer $id = null)
153155
* @method Webhook Webhook(integer $id = null)
@@ -199,6 +201,7 @@ class ShopifySDK
199201
'Shop',
200202
'SmartCollection',
201203
'ShopifyPayment',
204+
'TenderTransaction',
202205
'Theme',
203206
'User',
204207
'Webhook',

lib/TenderTransaction.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace PHPShopify;
4+
5+
class TenderTransaction extends ShopifyResource
6+
{
7+
/**
8+
* @inheritDoc
9+
*/
10+
protected $resourceKey = 'tender_transaction';
11+
12+
/**
13+
* If the resource is read only. (No POST / PUT / DELETE actions)
14+
*
15+
* @var boolean
16+
*/
17+
public $readOnly = true;
18+
}

0 commit comments

Comments
 (0)