You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update CountryCodes
- Update getNotifications API in NotificationService to remove channel parameter
- Update getSubmission API in DocumentSubmissionService to add 2 new parameters
- Update getRecentDocuments API in DocumentService to rename direction parameter to invoiceDirection parameter
- Update searchDocuments API in DocumentService to remove continuationToken parameter, add pageNo parameter and rename direction parameter to invoiceDirection parameter
Copy file name to clipboardexpand all lines: src/Service/Document/DocumentService.php
+11-18
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ public function getDocumentDetail($id)
122
122
* @param DateTime|string $submissionDateTo Optional: The end date and time when the document was submitted to the e-Invoice API, Time to be supplied in UTC timezone. Mandatory when ‘submissionDateFrom’ is provided
123
123
* @param DateTime|string $issueDateFrom Optional: The start date and time when the document was issued. Mandatory when ‘issueDateTo’ is provided
124
124
* @param DateTime|string $issueDateTo Optional: The end date and time when the document was issued. Mandatory when ‘issueDateFrom’ is provided
125
-
* @param string $direction Optional: direction of the document. Possible values: (Sent, Received)
125
+
* @param string $invoiceDirection Optional: direction of the document. Possible values: (Sent, Received)
126
126
* @param string $status Optional: status of the document. Possible values: (Valid, Invalid, Cancelled, Submitted)
127
127
* @param string $documentType Optional: Document type code.
128
128
* @param string $receiverId Optional: Document recipient identifier. Only can be used when ‘Direction’ filter is set to Sent. Possible values: (Business registration number, National ID(IC), Passport Number, Army ID)
@@ -135,7 +135,7 @@ public function getDocumentDetail($id)
@@ -151,7 +151,7 @@ public function getRecentDocuments($pageNo = 1, $pageSize = 20, $submissionDateF
151
151
'submissionDateTo' => $submissionDateToString,
152
152
'issueDateFrom' => $issueDateFromString,
153
153
'issueDateTo' => $issueDateToString,
154
-
'direction' => $direction,
154
+
'invoiceDirection' => $invoiceDirection,
155
155
'status' => $status,
156
156
'documentType' => $documentType,
157
157
'receiverId' => $receiverId,
@@ -175,24 +175,20 @@ public function getRecentDocuments($pageNo = 1, $pageSize = 20, $submissionDateF
175
175
* @param string $id Optional: Unique ID of the document to retrieve.
176
176
* @param DateTime|string $submissionDateFrom Optional: The start date and time when the document was submitted to the e-Invoice API, Time to be supplied in UTC timezone. Mandatory when ‘submissionDateTo’ is provided or issueDate filters are not used
177
177
* @param DateTime|string $submissionDateTo Optional: The end date and time when the document was submitted to the e-Invoice API, Time to be supplied in UTC timezone. Mandatory when ‘submissionDateFrom’ is provided or issueDate filters are not used
178
-
* @param string$continuationToken Optional: Token provided to navigate to the next page. Must be omitted or use an empty string when requesting the first page.
178
+
* @param int $pageNoOptional: number of the page to retrieve. Typically this parameter value is derived from initial parameter less call when caller learns total amount of page of certain size
179
179
* @param int $pageSize Optional: number of the documents to retrieve per page. Page size cannot exceed system configured maximum page size for this API. Default is 100
180
180
* @param DateTime|string $issueDateFrom Optional: The start date and time when the document was issued. Mandatory when ‘issueDateTo’ is provided or submissionDate filters are not used
181
181
* @param DateTime|string $issueDateTo Optional: The end date and time when the document was issued. Mandatory when ‘issueDateFrom’ is provided or submissionDate filters are not used
182
-
* @param string $direction Optional: direction of the document. Possible values: (Sent, Received). When not provided sent and received documents are retrieved.
182
+
* @param string $invoiceDirection Optional: direction of the document. Possible values: (Sent, Received). When not provided sent and received documents are retrieved.
183
183
* @param string $status Optional: status of the document. Possible values: (Valid, Invalid, Cancelled, Submitted)
184
184
* @param string $documentType Optional: Unique name of the document type. Possible values: 01 [Invoice], 02 [Credit Note], 03 [Debit Note], 04 [Refund Note], 11 [Self-billed Invoice], 12 [Self-billed Credit Note], 13 [Self-billed Debit Note], 14 [Self-billed Refund Note]
185
-
* @param string $receiverId Optional: Document recipient identifier. Only can be used when ‘Direction’ filter is set to Sent. Possible values: (Business registration number, Passport Number, National ID)
186
-
* @param string $receiverIdType Optional: Document recipient identifier type. Only can be used when ‘Direction’ filter is set to Sent. Possible values: (BRN, PASSPORT, NRIC, ARMY) This is mandatory in case the receiverId is provided
187
-
* @param string $receiverTin Optional: Document recipient TIN. Only can be used when ‘Direction’ filter is set to Sent.
188
-
* @param string $issuerTin Optional: Document issuer identifier. Only can be used when ‘Direction’ filter is set to Received.
185
+
* @param string $searchQuery Optional: Free Text can be given. Possible Search parameters: (uuid, buyerTIN, supplierTIN, buyerName, supplierName, internalID, total) Special characters are not allowed
Copy file name to clipboardexpand all lines: src/Service/Document/DocumentSubmissionService.php
+11-3
Original file line number
Diff line number
Diff line change
@@ -38,13 +38,21 @@ public function __construct(MyInvoisClient $client, $prodMode = false)
38
38
/**
39
39
* This API returns information on documents submitted during a single submission by taxpayer.
40
40
*
41
-
* @param string $id Unique ID of the document submission to retrieve.
41
+
* @param string $id Mandatory: Unique ID of the document submission to retrieve.
42
+
* @param int $pageNo Optional: number of the page to retrieve
43
+
* @param int $pageSize Optional: number of the documents to retrieve per page. Page size cannot exceed system configured maximum page size for this API [100]
Copy file name to clipboardexpand all lines: src/Service/Notification/NotificationService.php
+1-3
Original file line number
Diff line number
Diff line change
@@ -44,14 +44,13 @@ public function __construct(MyInvoisClient $client, $prodMode = false)
44
44
* @param string $type Optional: type of notifications to retrieve specified as ID of the type
45
45
* @param string $language Optional: used to get notifications only if they were sent out in a specific language
46
46
* @param string $status Optional: used to get notifications of certain status only, e.g., only those that were not delivered. Values: pending, batched, delivered, error
47
-
* @param string $channel Optional: used to get notifications delivered over certain channel only. Values: email, push
48
47
* @param int $pageNo Optional: number of the page to retrieve. Typically this parameter value is derived from initial parameter less call when caller learns total amount of page of certain size
49
48
* @param int $pageSize Optional: number of the packages to retrieve per page. Page size cannot exceed system configured maximum page size for this API which is 100
0 commit comments