Skip to content
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
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,64 @@
### v4.29.0 (2026-11-13)
* * *
### New Resources:
- `BillingLineItem` has been added.
- `BillingMetadata` has been added.
- `GatewayRequestLog` has been added.
- `GatewayWebhookLog` has been added.
- `OrganizationDetail` has been added.


### New Attributes:
- `description` has been added to `Discount`.
- `billing_metadata` has been added to `GrantBlock`.
- `offline_payment_method` has been added to `Invoice`.


### New Parameters:
- `discounts.description` has been added as request body parameter to `estimate_for_creating_a_customer_and_subscription` in `Estimate`.
- `discounts.description` has been added as request body parameter to `estimate_for_updating_a_subscription` in `Estimate`.
- `discounts.description` has been added as request body parameter to `estimate_for_creating_a_subscription` in `Estimate`.
- `allowed_billing_frequencies` has been added as request body parameter to `checkout_gift_subscription_for_items` in `HostedPage`.
- `show_billing_frequency_selector` has been added as request body parameter to `checkout_gift_subscription_for_items` in `HostedPage`.
- `allowed_billing_frequencies` has been added as request body parameter to `create_checkout_for_a_new_subscription` in `HostedPage`.
- `show_billing_frequency_selector` has been added as request body parameter to `create_checkout_for_a_new_subscription` in `HostedPage`.
- `allowed_billing_frequencies` has been added as request body parameter to `create_checkout_to_update_a_subscription` in `HostedPage`.
- `show_billing_frequency_selector` has been added as request body parameter to `create_checkout_to_update_a_subscription` in `HostedPage`.
- `credit_notes.amount` has been added as request body parameter to `apply_credits_for_an_invoice` in `Invoice`.
- `credit_notes.applied_at` has been added as request body parameter to `apply_credits_for_an_invoice` in `Invoice`.
- `offline_payment_method` has been added as request body parameter to `create_invoice_for_items_and_one-time_charges` in `Invoice`.
- `discounts.description` has been added as request body parameter to `update_subscription_for_items` in `Subscription`.
- `discounts.description` has been added as request body parameter to `create_subscription_for_items` in `Subscription`.
- `group_by.window_size` has been added as request body parameter to `retrieve_usages_for_an_invoice_as_pdf` in `Usage`.


### New Events:
- `organization_details_updated` has been added.
- `organization_details_created` has been added.


### Deleted Actions:
- `list_citations_for_a_draft_request` has been removed from `DraftRequest`.
- `add_citations_to_a_draft_request` has been removed from `DraftRequest`.
- `execute_a_draft_request` has been removed from `DraftRequest`.
- `estimate_a_draft_request` has been removed from `DraftRequest`.
- `list_comments_for_a_draft_request` has been removed from `DraftRequest`.
- `add_comments_to_a_draft_request` has been removed from `DraftRequest`.
- `retrieve_a_draft_request` has been removed from `DraftRequest`.
- `update_a_draft_request` has been removed from `DraftRequest`.
- `create_a_draft_request` has been removed from `DraftRequest`.


### New Enums:
- `organization_details_created` and `organization_details_updated` have been added as new values enum `EventType`.
- `invocation_time` has been added as a new value to enum query parameter `sort_by.asc` in `list_gateway_request_logs` of `GatewayRequestLog`.
- `invocation_time` has been added as a new value to enum query parameter `sort_by.desc` in `list_gateway_request_logs` of `GatewayRequestLog`.
- `received_at` has been added as a new value to enum query parameter `sort_by.asc` in `list_gateway_webhook_logs` of `GatewayWebhookLog`.
- `received_at` has been added as a new value to enum query parameter `sort_by.desc` in `list_gateway_webhook_logs` of `GatewayWebhookLog`.
- `none` and `day` have been added as new values to enum request body parameter `group_by.window_size` in `retrieve_usages_for_an_invoice_as_pdf` of `Usage`.



### v4.28.0 (2026-11-02)
* * *
### New Resources:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.28.0
4.29.0
3 changes: 3 additions & 0 deletions src/Actions/Contracts/EstimateActionsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public function renewalEstimate(string $id, array $params = [], array $headers =
* included_in_mrr?: bool,
* item_price_id?: string,
* quantity?: int,
* description?: string,
* }>,
* item_tiers?: array<array{
* item_price_id?: string,
Expand Down Expand Up @@ -492,6 +493,7 @@ public function giftSubscriptionForItems(array $params, array $headers = []): Gi
* quantity?: int,
* operation_type?: string,
* id?: string,
* description?: string,
* }>,
* item_tiers?: array<array{
* item_price_id?: string,
Expand Down Expand Up @@ -638,6 +640,7 @@ public function regenerateInvoiceEstimate(string $id, array $params = [], array
* included_in_mrr?: bool,
* item_price_id?: string,
* quantity?: int,
* description?: string,
* }>,
* item_tiers?: array<array{
* item_price_id?: string,
Expand Down
8 changes: 4 additions & 4 deletions src/Actions/Contracts/ExportActionsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ public function differentialPrices(array $params = [], array $headers = []): Dif
* },
* },
* business_entity_id?: array{
* is_present?: mixed,
* is?: mixed,
* is_present?: mixed,
* },
* include_site_level_resources?: array{
* is?: mixed,
Expand Down Expand Up @@ -641,8 +641,8 @@ public function retrieve(string $id, array $headers = []): RetrieveExportRespons
* },
* },
* business_entity_id?: array{
* is_present?: mixed,
* is?: mixed,
* is_present?: mixed,
* },
* include_site_level_resources?: array{
* is?: mixed,
Expand Down Expand Up @@ -732,8 +732,8 @@ public function priceVariants(array $params = [], array $headers = []): PriceVar
* },
* },
* business_entity_id?: array{
* is_present?: mixed,
* is?: mixed,
* is_present?: mixed,
* },
* include_site_level_resources?: array{
* is?: mixed,
Expand Down Expand Up @@ -1901,8 +1901,8 @@ public function orders(array $params = [], array $headers = []): OrdersExportRes
* not_in?: mixed,
* },
* business_entity_id?: array{
* is_present?: mixed,
* is?: mixed,
* is_present?: mixed,
* },
* include_site_level_resources?: array{
* is?: mixed,
Expand Down
153 changes: 153 additions & 0 deletions src/Actions/Contracts/GatewayRequestLogActionsInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
<?php
namespace Chargebee\Actions\Contracts;

use Chargebee\Responses\GatewayRequestLogResponse\RetrieveGatewayRequestLogResponse;
use Chargebee\Responses\GatewayRequestLogResponse\ListGatewayRequestLogResponse;
use Exception;
use Chargebee\Exceptions\PaymentException;
use Chargebee\Exceptions\OperationFailedException;
use Chargebee\Exceptions\APIError;
use Chargebee\Exceptions\InvalidRequestException;

Interface GatewayRequestLogActionsInterface
{

/**
* @see https://apidocs.chargebee.com/docs/api/gateway_request_logs/retrieve-a-gateway-request-log?lang=php-v4
*
* @param string $id
* @param array<string, string> $headers
* @return RetrieveGatewayRequestLogResponse
* @throws PaymentException
* @throws OperationFailedException
* @throws APIError
* @throws InvalidRequestException
* @throws Exception
*/
public function retrieve(string $id, array $headers = []): RetrieveGatewayRequestLogResponse;

/**
* @see https://apidocs.chargebee.com/docs/api/gateway_request_logs/list-gateway-request-logs?lang=php-v4
* @param array{
* limit?: int,
* offset?: string,
* log_id?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* gateway?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* status_code?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* method?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* url?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* customer_handle?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* invoice_handle?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* transaction_handle?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* payment_method_handle?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* gateway_credential_handle?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* payment_attempt_handle?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* payment_intent_handle?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* operation_name?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* operation_type?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* source?: array{
* in?: mixed,
* is_not?: mixed,
* not_in?: mixed,
* is?: mixed,
* },
* invocation_time?: array{
* after?: mixed,
* before?: mixed,
* on?: mixed,
* between?: mixed,
* },
* response_received_at?: array{
* after?: mixed,
* before?: mixed,
* on?: mixed,
* between?: mixed,
* },
* sort_by?: array{
* asc?: string,
* desc?: string,
* },
* } $params Description of the parameters
*
* @param array<string, string> $headers
* @return ListGatewayRequestLogResponse
* @throws PaymentException
* @throws OperationFailedException
* @throws APIError
* @throws InvalidRequestException
* @throws Exception
*/
public function all(array $params = [], array $headers = []): ListGatewayRequestLogResponse;

}
?>
Loading
Loading