Skip to content

Resolves #198, Missing TenderTransaction endpoint #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/ShopifySDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
* @property-read Shop $Shop
* @property-read SmartCollection $SmartCollection
* @property-read ShopifyPayment $ShopifyPayment
* @property-read TenderTransaction $TenderTransaction
* @property-read Theme $Theme
* @property-read User $User
* @property-read Webhook $Webhook
Expand Down Expand Up @@ -148,6 +149,7 @@
* @method Shop Shop(integer $id = null)
* @method ShopifyPayment ShopifyPayment()
* @method SmartCollection SmartCollection(integer $id = null)
* @method TenderTransaction TenderTransaction()
* @method Theme Theme(int $id = null)
* @method User User(integer $id = null)
* @method Webhook Webhook(integer $id = null)
Expand Down Expand Up @@ -199,6 +201,7 @@ class ShopifySDK
'Shop',
'SmartCollection',
'ShopifyPayment',
'TenderTransaction',
'Theme',
'User',
'Webhook',
Expand Down
18 changes: 18 additions & 0 deletions lib/TenderTransaction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace PHPShopify;

class TenderTransaction extends ShopifyResource
{
/**
* @inheritDoc
*/
protected $resourceKey = 'tender_transaction';

/**
* If the resource is read only. (No POST / PUT / DELETE actions)
*
* @var boolean
*/
public $readOnly = true;
}