| GET, POST | /fibuscan/Onlinehandel/PayPalListe |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class PayPalListeRequest
{
public Oem oem = null;
public Date VonDatum = null;
public Date BisDatum = null;
public Long BankID = null;
public Boolean AlleNeueLaden = null;
public String PayPalClientID = null;
public String PayPalSecret = null;
public String PayPalWaehrung = null;
public Boolean OnlinehandeDateiGenieren = null;
public Oem getOem() { return oem; }
public PayPalListeRequest setOem(Oem value) { this.oem = value; return this; }
public Date getVonDatum() { return VonDatum; }
public PayPalListeRequest setVonDatum(Date value) { this.VonDatum = value; return this; }
public Date getBisDatum() { return BisDatum; }
public PayPalListeRequest setBisDatum(Date value) { this.BisDatum = value; return this; }
public Long getBankID() { return BankID; }
public PayPalListeRequest setBankID(Long value) { this.BankID = value; return this; }
public Boolean isAlleNeueLaden() { return AlleNeueLaden; }
public PayPalListeRequest setAlleNeueLaden(Boolean value) { this.AlleNeueLaden = value; return this; }
public String getPayPalClientID() { return PayPalClientID; }
public PayPalListeRequest setPayPalClientID(String value) { this.PayPalClientID = value; return this; }
public String getPayPalSecret() { return PayPalSecret; }
public PayPalListeRequest setPayPalSecret(String value) { this.PayPalSecret = value; return this; }
public String getPayPalWaehrung() { return PayPalWaehrung; }
public PayPalListeRequest setPayPalWaehrung(String value) { this.PayPalWaehrung = value; return this; }
public Boolean isOnlinehandeDateiGenieren() { return OnlinehandeDateiGenieren; }
public PayPalListeRequest setOnlinehandeDateiGenieren(Boolean value) { this.OnlinehandeDateiGenieren = value; return this; }
}
public static enum Oem
{
Fibudata(0),
Spectrum(3);
private final int value;
Oem(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class PayPalListeListeResponse
{
public ArrayList<TransactionDetail> transaction_details = null;
public ArrayList<String> PayPalJson = null;
public ArrayList<ArrayList<OnlinehandelItem>> Liste = null;
public Long NeueDateiID = null;
public ArrayList<TransactionDetail> getTransactionDetails() { return transaction_details; }
public PayPalListeListeResponse setTransactionDetails(ArrayList<TransactionDetail> value) { this.transaction_details = value; return this; }
public ArrayList<String> getPayPalJson() { return PayPalJson; }
public PayPalListeListeResponse setPayPalJson(ArrayList<String> value) { this.PayPalJson = value; return this; }
public ArrayList<ArrayList<OnlinehandelItem>> getListe() { return Liste; }
public PayPalListeListeResponse setListe(ArrayList<ArrayList<OnlinehandelItem>> value) { this.Liste = value; return this; }
public Long getNeueDateiID() { return NeueDateiID; }
public PayPalListeListeResponse setNeueDateiID(Long value) { this.NeueDateiID = value; return this; }
}
public static class TransactionDetail
{
public TransactionInfo transaction_info = null;
public PayerInfo payer_info = null;
public ShippingInfo shipping_info = null;
public CartInfo cart_info = null;
public StoreInfo store_info = null;
public AuctionInfo auction_info = null;
public IncentiveInfo incentive_info = null;
public TransactionInfo getTransactionInfo() { return transaction_info; }
public TransactionDetail setTransactionInfo(TransactionInfo value) { this.transaction_info = value; return this; }
public PayerInfo getPayerInfo() { return payer_info; }
public TransactionDetail setPayerInfo(PayerInfo value) { this.payer_info = value; return this; }
public ShippingInfo getShippingInfo() { return shipping_info; }
public TransactionDetail setShippingInfo(ShippingInfo value) { this.shipping_info = value; return this; }
public CartInfo getCartInfo() { return cart_info; }
public TransactionDetail setCartInfo(CartInfo value) { this.cart_info = value; return this; }
public StoreInfo getStoreInfo() { return store_info; }
public TransactionDetail setStoreInfo(StoreInfo value) { this.store_info = value; return this; }
public AuctionInfo getAuctionInfo() { return auction_info; }
public TransactionDetail setAuctionInfo(AuctionInfo value) { this.auction_info = value; return this; }
public IncentiveInfo getIncentiveInfo() { return incentive_info; }
public TransactionDetail setIncentiveInfo(IncentiveInfo value) { this.incentive_info = value; return this; }
}
public static class TransactionInfo
{
public String paypal_account_id = null;
public String transaction_id = null;
public String transaction_event_code = null;
public Date transaction_initiation_date = null;
public Date transaction_updated_date = null;
public TransactionAmount transaction_amount = null;
public FeeAmount fee_amount = null;
public String transaction_status = null;
public String transaction_subject = null;
public EndingBalance ending_balance = null;
public AvailableBalance available_balance = null;
public String invoice_id = null;
public String custom_field = null;
public String protection_eligibility = null;
public String paypal_reference_id = null;
public String paypal_reference_id_type = null;
public String bank_reference_id = null;
public String credit_term = null;
public String transaction_note = null;
public String payment_method_type = null;
public String getPaypalAccountId() { return paypal_account_id; }
public TransactionInfo setPaypalAccountId(String value) { this.paypal_account_id = value; return this; }
public String getTransactionId() { return transaction_id; }
public TransactionInfo setTransactionId(String value) { this.transaction_id = value; return this; }
public String getTransactionEventCode() { return transaction_event_code; }
public TransactionInfo setTransactionEventCode(String value) { this.transaction_event_code = value; return this; }
public Date getTransactionInitiationDate() { return transaction_initiation_date; }
public TransactionInfo setTransactionInitiationDate(Date value) { this.transaction_initiation_date = value; return this; }
public Date getTransactionUpdatedDate() { return transaction_updated_date; }
public TransactionInfo setTransactionUpdatedDate(Date value) { this.transaction_updated_date = value; return this; }
public TransactionAmount getTransactionAmount() { return transaction_amount; }
public TransactionInfo setTransactionAmount(TransactionAmount value) { this.transaction_amount = value; return this; }
public FeeAmount getFeeAmount() { return fee_amount; }
public TransactionInfo setFeeAmount(FeeAmount value) { this.fee_amount = value; return this; }
public String getTransactionStatus() { return transaction_status; }
public TransactionInfo setTransactionStatus(String value) { this.transaction_status = value; return this; }
public String getTransactionSubject() { return transaction_subject; }
public TransactionInfo setTransactionSubject(String value) { this.transaction_subject = value; return this; }
public EndingBalance getEndingBalance() { return ending_balance; }
public TransactionInfo setEndingBalance(EndingBalance value) { this.ending_balance = value; return this; }
public AvailableBalance getAvailableBalance() { return available_balance; }
public TransactionInfo setAvailableBalance(AvailableBalance value) { this.available_balance = value; return this; }
public String getInvoiceId() { return invoice_id; }
public TransactionInfo setInvoiceId(String value) { this.invoice_id = value; return this; }
public String getCustomField() { return custom_field; }
public TransactionInfo setCustomField(String value) { this.custom_field = value; return this; }
public String getProtectionEligibility() { return protection_eligibility; }
public TransactionInfo setProtectionEligibility(String value) { this.protection_eligibility = value; return this; }
public String getPaypalReferenceId() { return paypal_reference_id; }
public TransactionInfo setPaypalReferenceId(String value) { this.paypal_reference_id = value; return this; }
public String getPaypalReferenceIdType() { return paypal_reference_id_type; }
public TransactionInfo setPaypalReferenceIdType(String value) { this.paypal_reference_id_type = value; return this; }
public String getBankReferenceId() { return bank_reference_id; }
public TransactionInfo setBankReferenceId(String value) { this.bank_reference_id = value; return this; }
public String getCreditTerm() { return credit_term; }
public TransactionInfo setCreditTerm(String value) { this.credit_term = value; return this; }
public String getTransactionNote() { return transaction_note; }
public TransactionInfo setTransactionNote(String value) { this.transaction_note = value; return this; }
public String getPaymentMethodType() { return payment_method_type; }
public TransactionInfo setPaymentMethodType(String value) { this.payment_method_type = value; return this; }
}
public static class TransactionAmount
{
public String currency_code = null;
public String value = null;
public String getCurrencyCode() { return currency_code; }
public TransactionAmount setCurrencyCode(String value) { this.currency_code = value; return this; }
public String getValue() { return value; }
public TransactionAmount setValue(String value) { this.value = value; return this; }
}
public static class FeeAmount
{
public String currency_code = null;
public String value = null;
public String getCurrencyCode() { return currency_code; }
public FeeAmount setCurrencyCode(String value) { this.currency_code = value; return this; }
public String getValue() { return value; }
public FeeAmount setValue(String value) { this.value = value; return this; }
}
public static class EndingBalance
{
public String currency_code = null;
public String value = null;
public String getCurrencyCode() { return currency_code; }
public EndingBalance setCurrencyCode(String value) { this.currency_code = value; return this; }
public String getValue() { return value; }
public EndingBalance setValue(String value) { this.value = value; return this; }
}
public static class AvailableBalance
{
public String currency_code = null;
public String value = null;
public String getCurrencyCode() { return currency_code; }
public AvailableBalance setCurrencyCode(String value) { this.currency_code = value; return this; }
public String getValue() { return value; }
public AvailableBalance setValue(String value) { this.value = value; return this; }
}
public static class PayerInfo
{
public String account_id = null;
public String email_address = null;
public String address_status = null;
public String payer_status = null;
public PayerName payer_name = null;
public String country_code = null;
public String getAccountId() { return account_id; }
public PayerInfo setAccountId(String value) { this.account_id = value; return this; }
public String getEmailAddress() { return email_address; }
public PayerInfo setEmailAddress(String value) { this.email_address = value; return this; }
public String getAddressStatus() { return address_status; }
public PayerInfo setAddressStatus(String value) { this.address_status = value; return this; }
public String getPayerStatus() { return payer_status; }
public PayerInfo setPayerStatus(String value) { this.payer_status = value; return this; }
public PayerName getPayerName() { return payer_name; }
public PayerInfo setPayerName(PayerName value) { this.payer_name = value; return this; }
public String getCountryCode() { return country_code; }
public PayerInfo setCountryCode(String value) { this.country_code = value; return this; }
}
public static class PayerName
{
public String given_name = null;
public String surname = null;
public String alternate_full_name = null;
public String middle_name = null;
public String getGivenName() { return given_name; }
public PayerName setGivenName(String value) { this.given_name = value; return this; }
public String getSurname() { return surname; }
public PayerName setSurname(String value) { this.surname = value; return this; }
public String getAlternateFullName() { return alternate_full_name; }
public PayerName setAlternateFullName(String value) { this.alternate_full_name = value; return this; }
public String getMiddleName() { return middle_name; }
public PayerName setMiddleName(String value) { this.middle_name = value; return this; }
}
public static class ShippingInfo
{
public String name = null;
public Address address = null;
public String getName() { return name; }
public ShippingInfo setName(String value) { this.name = value; return this; }
public Address getAddress() { return address; }
public ShippingInfo setAddress(Address value) { this.address = value; return this; }
}
public static class Address
{
public String line1 = null;
public String city = null;
public String country_code = null;
public String postal_code = null;
public String address_line_1 = null;
public String admin_area_2 = null;
public String getLine1() { return line1; }
public Address setLine1(String value) { this.line1 = value; return this; }
public String getCity() { return city; }
public Address setCity(String value) { this.city = value; return this; }
public String getCountryCode() { return country_code; }
public Address setCountryCode(String value) { this.country_code = value; return this; }
public String getPostalCode() { return postal_code; }
public Address setPostalCode(String value) { this.postal_code = value; return this; }
public String getAddressLine1() { return address_line_1; }
public Address setAddressLine1(String value) { this.address_line_1 = value; return this; }
public String getAdminArea2() { return admin_area_2; }
public Address setAdminArea2(String value) { this.admin_area_2 = value; return this; }
}
public static class CartInfo
{
public ArrayList<ItemDetail> item_details = null;
public ArrayList<ItemDetail> getItemDetails() { return item_details; }
public CartInfo setItemDetails(ArrayList<ItemDetail> value) { this.item_details = value; return this; }
}
public static class ItemDetail
{
public String item_code = null;
public String item_name = null;
public String item_description = null;
public String item_quantity = null;
public ItemUnitPrice item_unit_price = null;
public ItemAmount item_amount = null;
public TotalItemAmount total_item_amount = null;
public BasicShippingAmount basic_shipping_amount = null;
public String invoice_number = null;
public String tax_percentage = null;
public String getItemCode() { return item_code; }
public ItemDetail setItemCode(String value) { this.item_code = value; return this; }
public String getItemName() { return item_name; }
public ItemDetail setItemName(String value) { this.item_name = value; return this; }
public String getItemDescription() { return item_description; }
public ItemDetail setItemDescription(String value) { this.item_description = value; return this; }
public String getItemQuantity() { return item_quantity; }
public ItemDetail setItemQuantity(String value) { this.item_quantity = value; return this; }
public ItemUnitPrice getItemUnitPrice() { return item_unit_price; }
public ItemDetail setItemUnitPrice(ItemUnitPrice value) { this.item_unit_price = value; return this; }
public ItemAmount getItemAmount() { return item_amount; }
public ItemDetail setItemAmount(ItemAmount value) { this.item_amount = value; return this; }
public TotalItemAmount getTotalItemAmount() { return total_item_amount; }
public ItemDetail setTotalItemAmount(TotalItemAmount value) { this.total_item_amount = value; return this; }
public BasicShippingAmount getBasicShippingAmount() { return basic_shipping_amount; }
public ItemDetail setBasicShippingAmount(BasicShippingAmount value) { this.basic_shipping_amount = value; return this; }
public String getInvoiceNumber() { return invoice_number; }
public ItemDetail setInvoiceNumber(String value) { this.invoice_number = value; return this; }
public String getTaxPercentage() { return tax_percentage; }
public ItemDetail setTaxPercentage(String value) { this.tax_percentage = value; return this; }
}
public static class ItemUnitPrice
{
public String currency_code = null;
public String value = null;
public String getCurrencyCode() { return currency_code; }
public ItemUnitPrice setCurrencyCode(String value) { this.currency_code = value; return this; }
public String getValue() { return value; }
public ItemUnitPrice setValue(String value) { this.value = value; return this; }
}
public static class ItemAmount
{
public String currency_code = null;
public String value = null;
public String getCurrencyCode() { return currency_code; }
public ItemAmount setCurrencyCode(String value) { this.currency_code = value; return this; }
public String getValue() { return value; }
public ItemAmount setValue(String value) { this.value = value; return this; }
}
public static class TotalItemAmount
{
public String currency_code = null;
public String value = null;
public String getCurrencyCode() { return currency_code; }
public TotalItemAmount setCurrencyCode(String value) { this.currency_code = value; return this; }
public String getValue() { return value; }
public TotalItemAmount setValue(String value) { this.value = value; return this; }
}
public static class BasicShippingAmount
{
public String currency_code = null;
public String value = null;
public String getCurrencyCode() { return currency_code; }
public BasicShippingAmount setCurrencyCode(String value) { this.currency_code = value; return this; }
public String getValue() { return value; }
public BasicShippingAmount setValue(String value) { this.value = value; return this; }
}
public static class StoreInfo
{
}
public static class AuctionInfo
{
public String auction_site = null;
public String auction_item_site = null;
public String auction_buyer_id = null;
public Date auction_closing_date = null;
public String getAuctionSite() { return auction_site; }
public AuctionInfo setAuctionSite(String value) { this.auction_site = value; return this; }
public String getAuctionItemSite() { return auction_item_site; }
public AuctionInfo setAuctionItemSite(String value) { this.auction_item_site = value; return this; }
public String getAuctionBuyerId() { return auction_buyer_id; }
public AuctionInfo setAuctionBuyerId(String value) { this.auction_buyer_id = value; return this; }
public Date getAuctionClosingDate() { return auction_closing_date; }
public AuctionInfo setAuctionClosingDate(Date value) { this.auction_closing_date = value; return this; }
}
public static class IncentiveInfo
{
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /fibuscan/Onlinehandel/PayPalListe HTTP/1.1
Host: ws4.fibudata.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PayPalListeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
<AlleNeueLaden>false</AlleNeueLaden>
<BankID>0</BankID>
<BisDatum>0001-01-01T00:00:00</BisDatum>
<OnlinehandeDateiGenieren>false</OnlinehandeDateiGenieren>
<PayPalClientID>String</PayPalClientID>
<PayPalSecret>String</PayPalSecret>
<PayPalWaehrung>String</PayPalWaehrung>
<VonDatum>0001-01-01T00:00:00</VonDatum>
<oem>fibudata</oem>
</PayPalListeRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PayPalListeListeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
<Liste xmlns:d2p1="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Models">
<d2p1:ArrayOfOnlinehandelItem>
<d2p1:OnlinehandelItem>
<d2p1:col_nummer>0</d2p1:col_nummer>
<d2p1:datum>0001-01-01T00:00:00</d2p1:datum>
<d2p1:datum_string>String</d2p1:datum_string>
<d2p1:fehler>false</d2p1:fehler>
<d2p1:header>String</d2p1:header>
<d2p1:konfiguration>OrderiD</d2p1:konfiguration>
<d2p1:original>String</d2p1:original>
<d2p1:summenkonfiguration>false</d2p1:summenkonfiguration>
<d2p1:value />
<d2p1:zahl>0</d2p1:zahl>
<d2p1:zahl_string>String</d2p1:zahl_string>
</d2p1:OnlinehandelItem>
</d2p1:ArrayOfOnlinehandelItem>
</Liste>
<NeueDateiID>0</NeueDateiID>
<PayPalJson xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</PayPalJson>
<transaction_details xmlns:d2p1="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Common">
<d2p1:TransactionDetail>
<d2p1:auction_info>
<d2p1:auction_buyer_id>String</d2p1:auction_buyer_id>
<d2p1:auction_closing_date>0001-01-01T00:00:00</d2p1:auction_closing_date>
<d2p1:auction_item_site>String</d2p1:auction_item_site>
<d2p1:auction_site>String</d2p1:auction_site>
</d2p1:auction_info>
<d2p1:cart_info>
<d2p1:item_details>
<d2p1:ItemDetail>
<d2p1:basic_shipping_amount>
<d2p1:currency_code>String</d2p1:currency_code>
<d2p1:value>String</d2p1:value>
</d2p1:basic_shipping_amount>
<d2p1:invoice_number>String</d2p1:invoice_number>
<d2p1:item_amount>
<d2p1:currency_code>String</d2p1:currency_code>
<d2p1:value>String</d2p1:value>
</d2p1:item_amount>
<d2p1:item_code>String</d2p1:item_code>
<d2p1:item_description>String</d2p1:item_description>
<d2p1:item_name>String</d2p1:item_name>
<d2p1:item_quantity>String</d2p1:item_quantity>
<d2p1:item_unit_price>
<d2p1:currency_code>String</d2p1:currency_code>
<d2p1:value>String</d2p1:value>
</d2p1:item_unit_price>
<d2p1:tax_percentage>String</d2p1:tax_percentage>
<d2p1:total_item_amount>
<d2p1:currency_code>String</d2p1:currency_code>
<d2p1:value>String</d2p1:value>
</d2p1:total_item_amount>
</d2p1:ItemDetail>
</d2p1:item_details>
</d2p1:cart_info>
<d2p1:incentive_info />
<d2p1:payer_info>
<d2p1:account_id>String</d2p1:account_id>
<d2p1:address_status>String</d2p1:address_status>
<d2p1:country_code>String</d2p1:country_code>
<d2p1:email_address>String</d2p1:email_address>
<d2p1:payer_name>
<d2p1:alternate_full_name>String</d2p1:alternate_full_name>
<d2p1:given_name>String</d2p1:given_name>
<d2p1:middle_name>String</d2p1:middle_name>
<d2p1:surname>String</d2p1:surname>
</d2p1:payer_name>
<d2p1:payer_status>String</d2p1:payer_status>
</d2p1:payer_info>
<d2p1:shipping_info>
<d2p1:address>
<d2p1:address_line_1>String</d2p1:address_line_1>
<d2p1:admin_area_2>String</d2p1:admin_area_2>
<d2p1:city>String</d2p1:city>
<d2p1:country_code>String</d2p1:country_code>
<d2p1:line1>String</d2p1:line1>
<d2p1:postal_code>String</d2p1:postal_code>
</d2p1:address>
<d2p1:name>String</d2p1:name>
</d2p1:shipping_info>
<d2p1:store_info />
<d2p1:transaction_info>
<d2p1:available_balance>
<d2p1:currency_code>String</d2p1:currency_code>
<d2p1:value>String</d2p1:value>
</d2p1:available_balance>
<d2p1:bank_reference_id>String</d2p1:bank_reference_id>
<d2p1:credit_term>String</d2p1:credit_term>
<d2p1:custom_field>String</d2p1:custom_field>
<d2p1:ending_balance>
<d2p1:currency_code>String</d2p1:currency_code>
<d2p1:value>String</d2p1:value>
</d2p1:ending_balance>
<d2p1:fee_amount>
<d2p1:currency_code>String</d2p1:currency_code>
<d2p1:value>String</d2p1:value>
</d2p1:fee_amount>
<d2p1:invoice_id>String</d2p1:invoice_id>
<d2p1:payment_method_type>String</d2p1:payment_method_type>
<d2p1:paypal_account_id>String</d2p1:paypal_account_id>
<d2p1:paypal_reference_id>String</d2p1:paypal_reference_id>
<d2p1:paypal_reference_id_type>String</d2p1:paypal_reference_id_type>
<d2p1:protection_eligibility>String</d2p1:protection_eligibility>
<d2p1:transaction_amount>
<d2p1:currency_code>String</d2p1:currency_code>
<d2p1:value>String</d2p1:value>
</d2p1:transaction_amount>
<d2p1:transaction_event_code>String</d2p1:transaction_event_code>
<d2p1:transaction_id>String</d2p1:transaction_id>
<d2p1:transaction_initiation_date>0001-01-01T00:00:00</d2p1:transaction_initiation_date>
<d2p1:transaction_note>String</d2p1:transaction_note>
<d2p1:transaction_status>String</d2p1:transaction_status>
<d2p1:transaction_subject>String</d2p1:transaction_subject>
<d2p1:transaction_updated_date>0001-01-01T00:00:00</d2p1:transaction_updated_date>
</d2p1:transaction_info>
</d2p1:TransactionDetail>
</transaction_details>
</PayPalListeListeResponse>