Skip to content

Commit

Permalink
pagesize
Browse files Browse the repository at this point in the history
  • Loading branch information
sehnem committed Mar 1, 2022
1 parent 6ef4175 commit 331909e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tap_netsuite/netsuite/transaction_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_all(self, last_modified_date=None):
return list(self.get_all_generator() if last_modified_date is None else self.get_all_generator(
last_modified_date=last_modified_date))

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
search_record = self.ns_client.basic_search_factory(type_name="Customer",
lastModifiedDate=last_modified_date)
ps = PaginatedSearch(client=self.ns_client, type_name='Customer', pageSize=page_size,
Expand All @@ -63,7 +63,7 @@ def get_all(self, last_modified_date=None):
return list(self.get_all_generator() if last_modified_date is None else self.get_all_generator(
last_modified_date=last_modified_date))

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='InventoryItem', operator='contains')
search_record = self.ns_client.basic_search_factory(type_name="Item",
recordType=record_type_search_field,
Expand All @@ -85,7 +85,7 @@ def get_all(self, last_modified_date=None):
return list(self.get_all_generator() if last_modified_date is None else self.get_all_generator(
last_modified_date=last_modified_date))

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='Opportunity', operator='contains')
basic_search = self.ns_client.basic_search_factory('Transaction', recordType=record_type_search_field,
lastModifiedDate=last_modified_date)
Expand All @@ -107,7 +107,7 @@ def __init__(self, ns_client):
def get_all(self, last_modified_date=None):
return self.get_all_generator(last_modified_date=last_modified_date)

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='SalesOrder', operator='contains')
basic_search = self.ns_client.basic_search_factory('Transaction',
lastModifiedDate=last_modified_date,
Expand All @@ -131,7 +131,7 @@ def get_all(self, last_modified_date=None):
return list(self.get_all_generator() if last_modified_date is None else self.get_all_generator(
last_modified_date=last_modified_date))

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='InventoryTransfer', operator='contains')
basic_search = self.ns_client.basic_search_factory('Transaction',
recordType=record_type_search_field,
Expand All @@ -155,7 +155,7 @@ def get_all(self, last_modified_date=None):
return list(self.get_all_generator() if last_modified_date is None else self.get_all_generator(
last_modified_date=last_modified_date))

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
search_record = self.ns_client.basic_search_factory(type_name="Item",
lastModifiedDate=last_modified_date)
ps = PaginatedSearch(client=self.ns_client, type_name='Item', pageSize=page_size,
Expand All @@ -174,7 +174,7 @@ def get_all(self, last_modified_date=None):
return list(self.get_all_generator() if last_modified_date is None else self.get_all_generator(
last_modified_date=last_modified_date))

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='InventoryAdjustment', operator='contains')
basic_search = self.ns_client.basic_search_factory('Transaction',
recordType=record_type_search_field,
Expand All @@ -197,7 +197,7 @@ def get_all(self, last_modified_date=None):
return list(self.get_all_generator() if last_modified_date is None else self.get_all_generator(
last_modified_date=last_modified_date))

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='VendorBill', operator='contains')
basic_search = self.ns_client.basic_search_factory('Transaction',
recordType=record_type_search_field,
Expand All @@ -219,7 +219,7 @@ def get_all(self, last_modified_date=None):
return list(self.get_all_generator() if last_modified_date is None else self.get_all_generator(
last_modified_date=last_modified_date))

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='VendorPayment', operator='contains')
basic_search = self.ns_client.basic_search_factory('Transaction',
recordType=record_type_search_field,
Expand All @@ -243,7 +243,7 @@ def get_all(self, last_modified_date=None):
return list(self.get_all_generator() if last_modified_date is None else self.get_all_generator(
last_modified_date=last_modified_date))

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='JournalEntry', operator='contains')
basic_search = self.ns_client.basic_search_factory('Transaction',
lastModifiedDate=last_modified_date,
Expand Down Expand Up @@ -305,7 +305,7 @@ def get_all(self, last_modified_date=None):
return list(self.get_all_generator() if last_modified_date is None else self.get_all_generator(
last_modified_date=last_modified_date))

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='Invoice', operator='contains')
basic_search = self.ns_client.basic_search_factory('Transaction',
lastModifiedDate=last_modified_date,
Expand All @@ -331,7 +331,7 @@ def __init__(self, ns_client):
def get_all(self, last_modified_date=None):
return self.get_all_generator(last_modified_date=last_modified_date)

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='CreditMemo', operator='contains')
basic_search = self.ns_client.basic_search_factory('Transaction',
lastModifiedDate=last_modified_date,
Expand All @@ -356,7 +356,7 @@ def __init__(self, ns_client):
def get_all(self, last_modified_date=None):
return self.get_all_generator(last_modified_date=last_modified_date)

def get_all_generator(self, page_size=300, last_modified_date=None):
def get_all_generator(self, page_size=200, last_modified_date=None):
record_type_search_field = self.ns_client.SearchStringField(searchValue='PurchaseOrder', operator='contains')
basic_search = self.ns_client.basic_search_factory('Transaction',
lastModifiedDate=last_modified_date,
Expand Down

0 comments on commit 331909e

Please sign in to comment.