Get payments of credit note per page

        :param credit_note_id: the credit note id
        :param per_page: How many objects per page. Default: 1000
        :param page: Which page. Default: 1
        :return: list
188941
def get_payments_of_credit_note_per_page(self, credit_note_id, per_page=1000, page=1):
        
        return self._get_resource_per_page(
            resource=CREDIT_NOTE_PAYMENTS,
            per_page=per_page,
            page=page,
            params={'credit_note_id': credit_note_id},
        )
601857
def get_contact_notes(
        self,
        obj_id,
        search='',
        start=0,
        limit=0,
        order_by='',
        order_by_dir='ASC'
    ):
        

        parameters = {
            'search': search,
            'start': start,
            'limit': limit,
            'orderBy': order_by,
            'orderByDir': order_by_dir,
        }
        response = self._client.session.get(
            '{url}/{id}/notes'.format(
                url=self.endpoint_url, id=obj_id
            ),
            params=parameters
        )
        return self.process_response(response)
137093
def line_items
      if line_items_downloaded?
        @line_items

      # There is an credit_note_is so we can assume this record was loaded from Xero.
      # attempt to download the line_item records.
      elsif credit_note_id =~ GUID_REGEX
        raise NoGatewayError unless @gateway

        response = @gateway.get_credit_note(credit_note_id)
        raise CreditNoteNotFoundError, "CreditNote with ID #{credit_note_id} not found in Xero." unless response.success? && response.credit_note.is_a?(XeroGateway::CreditNote)

        @line_items = response.credit_note.line_items
        @line_items_downloaded = true

        @line_items

      # Otherwise, this is a new credit_note, so return the line_items reference.
      else
        @line_items
      end
    end
42590
def list(self, page=1, per_page=50):
        
        data = {"page": page,
                "per_page": per_page}
        return self.get(self.base_url, data=data)
13229
def get_tags_of_article_per_page(self, article_id, per_page=1000, page=1):
        
        return self._get_resource_per_page(
            resource=ARTICLE_TAGS,
            per_page=per_page,
            page=page,
            params={'article_id': article_id},
        )
648620
def get_delivery_notes_per_page(self, per_page=1000, page=1, params=None):
        
        return self._get_resource_per_page(resource=DELIVERY_NOTES, per_page=per_page, page=page, params=params)
910645
def page(self, page_number=0) -> list:
        
        # workaround flask-sqlalchemy/issues/516
        offset = page_number * self.limit
        sql = 'SELECT * FROM %s {} LIMIT :li OFFSET :o' \
            % (self.model.__tablename__)
        filter_query = self.__filter_query()
        if filter_query is None:
            sql = text(sql.format(''))
            result = self.model.db.engine.execute(
                sql, li=self.limit, o=offset)
        else:
            filter_query['binds']['li'] = self.limit
            filter_query['binds']['o'] = offset
            sql = text(sql.format(filter_query['query']))
            result = self.model.db.engine.execute(
                sql, **filter_query['binds'])
        result_keys = result.keys()
        result_models = []
        for row in result:
            model = self.model()
            key_count = 0
            for key in result_keys:
                setattr(model, key, row[key_count])
                key_count = key_count + 1
            result_models.append(model)
        return result_models
128325
def get_image_list(self, page=1, per_page=20):
        
        url = self.api_url + '/api/images'
        params = {
            'page': page,
            'per_page': per_page
        }
        response = self._request_url(
            url, 'get', params=params, with_access_token=True)
        headers, result = self._parse_and_check(response)
        images = ImageList.from_list(result)
        images.set_attributes_from_headers(headers)
        return images
498955
def credit(self, amount, debit_account, description, debit_memo="", credit_memo="", datetime=None):
        
        assert amount >= 0
        return self.post(-amount, debit_account, description, self_memo=credit_memo, other_memo=debit_memo, datetime=datetime)
883029
def get_confirmations_per_page(self, per_page=1000, page=1, params=None):
        
        return self._get_resource_per_page(resource=CONFIRMATIONS, per_page=per_page, page=page, params=params)
463696
def get_id(page):
  
  start_pos = page.find("<id>")
  end_pos = page.find("</id>")
  assert start_pos != -1
  assert end_pos != -1
  start_pos += len("<id>")
  return int(page[start_pos:end_pos])
254700
def get_offers_per_page(self, per_page=1000, page=1, params=None):
        
        return self._get_resource_per_page(resource=OFFERS, per_page=per_page, page=page, params=params)
1171734
public static CreditNote retrieve(String id, RequestOptions options) throws StripeException {
    return retrieve(id, (Map<String, Object>) null, options);
  }
1374049
def get_all_comments_of_offer(self, offer_id):
        
        return self._iterate_through_pages(
            get_function=self.get_comments_of_offer_per_page,
            resource=OFFER_COMMENTS,
            **{'offer_id': offer_id}
        )
1105316
def get_invoice_payments_per_page(self, per_page=1000, page=1, params=None):
        
        if not params:
            params = {}

        return self._get_resource_per_page(
            resource=INVOICE_PAYMENTS,
            per_page=per_page,
            page=page,
            params=params,
        )
1071516
def _get_search_page(
        self,
        query,
        page,
        per_page=1000,
        mentions=3,
        data=False,
    ):
        
        if mentions > 10:
            raise ValueError("You cannot search for more than 10 mentions")
        params = {
            'q': query,
            'page': page,
            'per_page': per_page,
            'mentions': mentions,
        }
        if data:
            params['data'] = 'true'
        response = self.fetch('search.json', params)
        return response.get("documents")
249219
def get_comments_of_confirmation_per_page(self, confirmation_id, per_page=1000, page=1):
        
        return self._get_resource_per_page(
            resource=CONFIRMATION_COMMENTS,
            per_page=per_page,
            page=page,
            params={'confirmation_id': confirmation_id},
        )