Plentymarkets interface documentation
PlentyMarketplace
Contracts
MarketplacePurchaseInformationContract
Get information about purchases on marketplace.
Namespace
Plenty\Modules\PlentyMarketplace\Contracts
Methods
public isPaid($pluginName):bool
Takes the Name of a plugin and returns true if the plugin has been paid for.
Name |
Type |
Description |
|
The plugin name. Must be exactly as provided in the plugin.json. |
SubscriptionInformationServiceContract
Get information about plugin subscriptions. Only suitable for subscription plugins.
Namespace
Plenty\Modules\PlentyMarketplace\Contracts
Methods
public isPaid($pluginName):bool
Takes the Name of a subscription plugin and returns true if the subscription has been paid for in the current payment period on the current system.
Name |
Type |
Description |
|
The plugin name. Must be exactly as provided in the plugin.json. |
public getSubscriptionInfo($pluginName):Plenty\Modules\PlentyMarketplace\Models\SubscriptionOrderInformation
Return type: SubscriptionOrderInformation
Takes the Name of a subscription plugin and returns information about the subscription.
Name |
Type |
Description |
|
The plugin name. Must be exactly as provided in the plugin.json. |
Models
SubscriptionChildOrderInformation
Eloquent model representing a SubscriptionChildOrderInformation.
Namespace
Plenty\Modules\PlentyMarketplace\Models
Name | Type | Description |
---|---|---|
paymentStatus |
||
paymentInformation |
Methods
public toArray()
Returns this model as an array.
SubscriptionChildPaymentInformation
Eloquent model representing a SubscriptionChildPaymentInformation.
Namespace
Plenty\Modules\PlentyMarketplace\Models
Name | Type | Description |
---|---|---|
amount |
The amount of the payment |
|
status |
The <a href="https://developers.plentymarkets.com/rest-doc/introduction#payment-statuses" target="_blank">status</a> of the payment |
|
unaccountable |
An unassigned payment. Unassigned payments have the value 1. |
|
currency |
The currency of the payment in ISO 4217 code. |
|
receivedAt |
The time the payment was received |
|
importedAt |
The time the payment was imported |
Methods
public toArray()
Returns this model as an array.
SubscriptionOrderInformation
Eloquent model representing a SubscriptionOrderInformation.
Namespace
Plenty\Modules\PlentyMarketplace\Models
Name | Type | Description |
---|---|---|
isPaid |
||
intervalType |
||
intervalValue |
||
startDate |
||
subscriptionLastRun |
||
subscriptionNextRun |
||
childOrders |
Methods
public toArray()
Returns this model as an array.